diff --git a/build/app.asset.php b/build/app.asset.php index 5b1a58a..cac2089 100644 --- a/build/app.asset.php +++ b/build/app.asset.php @@ -1 +1 @@ - array('react', 'react-dom', 'wp-element', 'wp-hooks', 'wp-polyfill'), 'version' => '02fff8d4c46a5a4f8b3c21bdfc979059'); \ No newline at end of file + array('react', 'react-dom', 'wp-element', 'wp-hooks', 'wp-polyfill'), 'version' => '40ec0092cbd7628bf9ba9809eef00614'); \ No newline at end of file diff --git a/build/app.js b/build/app.js index 5f29dad..ba02e48 100644 --- a/build/app.js +++ b/build/app.js @@ -1,7 +1,7 @@ -!function(){var e,t={633:function(e,t,n){"use strict";var r=n(9307);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var h=n(4184),m=n.n(h),v=(0,s.createContext)({});function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function b(e){return e<=1?100*Number(e)+"%":e}function E(e){return 1===e.length?"0"+e:String(e)}function T(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function w(e){return _(e)/255}function _(e){return parseInt(e,16)}var k={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function S(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(k[e])e=k[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=N.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=N.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=N.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=N.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=N.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=N.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=N.hex8.exec(e))?{r:_(n[1]),g:_(n[2]),b:_(n[3]),a:w(n[4]),format:t?"name":"hex8"}:(n=N.hex6.exec(e))?{r:_(n[1]),g:_(n[2]),b:_(n[3]),format:t?"name":"hex"}:(n=N.hex4.exec(e))?{r:_(n[1]+n[1]),g:_(n[2]+n[2]),b:_(n[3]+n[3]),a:w(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=N.hex3.exec(e))&&{r:_(n[1]+n[1]),g:_(n[2]+n[2]),b:_(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(A(e.r)&&A(e.g)&&A(e.b)?(t=function(e,t,n){return{r:255*g(e,255),g:255*g(t,255),b:255*g(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):A(e.h)&&A(e.s)&&A(e.v)?(r=b(e.s),i=b(e.v),t=function(e,t,n){e=6*g(e,360),t=g(t,100),n=g(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),c=r%6;return{r:255*[n,a,o,o,s,n][c],g:255*[s,n,n,a,o,o][c],b:255*[o,o,s,n,n,a][c]}}(e.h,r,i),a=!0,s="hsv"):A(e.h)&&A(e.s)&&A(e.l)&&(r=b(e.s),o=b(e.l),t=function(e,t,n){var r,i,o;if(e=g(e,360),t=g(t,100),n=g(n,100),0===t)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=T(s,a,e+1/3),i=T(s,a,e),o=T(s,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var O="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",C="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",x="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",N={CSS_UNIT:new RegExp(O),rgb:new RegExp("rgb"+C),rgba:new RegExp("rgba"+x),hsl:new RegExp("hsl"+C),hsla:new RegExp("hsla"+x),hsv:new RegExp("hsv"+C),hsva:new RegExp("hsva"+x),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function A(e){return Boolean(N.CSS_UNIT.exec(String(e)))}var D=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function L(e){var t=function(e,t,n){e=g(e,255),t=g(t,255),n=g(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,c=0===r?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function M(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function j(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function F(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=S(e),i=5;i>0;i-=1){var o=L(r),a=I(S({h:R(o,i,!0),s:M(o,i,!0),v:j(o,i,!0)}));n.push(a)}n.push(I(r));for(var s=1;s<=4;s+=1){var c=L(r),l=I(S({h:R(c,s),s:M(c,s),v:j(c,s)}));n.push(l)}return"dark"===t.theme?D.map((function(e){var r=e.index,i=e.opacity;return I(P(S(t.backgroundColor||"#141414"),S(n[r]),100*i))})):n}var V={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Q={},U={};Object.keys(V).forEach((function(e){Q[e]=F(V[e]),Q[e].primary=Q[e][5],U[e]=F(V[e],{theme:"dark",backgroundColor:"#141414"}),U[e].primary=U[e][5]})),Q.red,Q.volcano,Q.gold,Q.orange,Q.yellow,Q.lime,Q.green,Q.cyan,Q.blue,Q.geekblue,Q.purple,Q.magenta,Q.grey;var q={};function G(e,t){}var B=function(e,t){!function(e,t,n){t||q[n]||(e(!1,n),q[n]=!0)}(G,e,t)};function K(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var z="rc-util-key";function $(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function H(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!K())return null;var r,i=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(i.nonce=null===(r=n.csp)||void 0===r?void 0:r.nonce),i.innerHTML=e;var o=$(n),a=o.firstChild;return n.prepend&&o.prepend?o.prepend(i):n.prepend&&a?o.insertBefore(i,a):o.appendChild(i),i}var W=new Map;function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=$(n);if(!W.has(r)){var i=H("",n),o=i.parentNode;W.set(r,o),o.removeChild(i)}var a,s,c,l=Array.from(W.get(r).children).find((function(e){return"STYLE"===e.tagName&&e[z]===t}));if(l)return(null===(a=n.csp)||void 0===a?void 0:a.nonce)&&l.nonce!==(null===(s=n.csp)||void 0===s?void 0:s.nonce)&&(l.nonce=null===(c=n.csp)||void 0===c?void 0:c.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;var u=H(e,n);return u[z]=t,u}function J(e){return"object"===y(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===y(e.icon)||"function"==typeof e.icon)}function X(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):t[n]=r,t}),{})}function Z(e,t,n){return n?c().createElement(e.tag,a(a({key:t},X(e.attrs)),n),(e.children||[]).map((function(n,r){return Z(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):c().createElement(e.tag,a({key:t},X(e.attrs)),(e.children||[]).map((function(n,r){return Z(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function ee(e){return F(e)[0]}function te(e){return e?Array.isArray(e)?e:[e]:[]}var ne="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",re=["icon","className","onClick","style","primaryColor","secondaryColor"],ie={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},oe=function(e){var t,n,r=e.icon,i=e.className,o=e.onClick,c=e.style,l=e.primaryColor,u=e.secondaryColor,p=d(e,re),f=ie;if(l&&(f={primaryColor:l,secondaryColor:u||ee(l)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne,t=(0,s.useContext)(v).csp;(0,s.useEffect)((function(){Y(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=J(r),n="icon should be icon definiton, but got ".concat(r),B(t,"[@ant-design/icons] ".concat(n)),!J(r))return null;var h=r;return h&&"function"==typeof h.icon&&(h=a(a({},h),{},{icon:h.icon(f.primaryColor,f.secondaryColor)})),Z(h.icon,"svg-".concat(h.name),a({className:i,onClick:o,style:c,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},p))};oe.displayName="IconReact",oe.getTwoToneColors=function(){return a({},ie)},oe.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;ie.primaryColor=t,ie.secondaryColor=n||ee(t),ie.calculated=!!n};var ae=oe;function se(e){var t=f(te(e),2),n=t[0],r=t[1];return ae.setTwoToneColors({primaryColor:n,secondaryColor:r})}var ce=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];se("#1890ff");var le=s.forwardRef((function(e,t){var n,r=e.className,o=e.icon,c=e.spin,l=e.rotate,u=e.tabIndex,p=e.onClick,h=e.twoToneColor,y=d(e,ce),g=s.useContext(v).prefixCls,b=void 0===g?"anticon":g,E=m()(b,(i(n={},"".concat(b,"-").concat(o.name),!!o.name),i(n,"".concat(b,"-spin"),!!c||"loading"===o.name),n),r),T=u;void 0===T&&p&&(T=-1);var w=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,_=f(te(h),2),k=_[0],S=_[1];return s.createElement("span",a(a({role:"img","aria-label":o.name},y),{},{ref:t,tabIndex:T,onClick:p,className:E}),s.createElement(ae,{icon:o,primaryColor:k,secondaryColor:S,style:w}))}));le.displayName="AntdIcon",le.getTwoToneColor=function(){var e=ae.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},le.setTwoToneColor=se;var ue=le,pe=function(e,t){return s.createElement(ue,a(a({},e),{},{ref:t,icon:l}))};pe.displayName="CodeOutlined";var fe=s.forwardRef(pe),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},he=function(e,t){return s.createElement(ue,a(a({},e),{},{ref:t,icon:de}))};he.displayName="QuestionCircleOutlined";var me=s.forwardRef(he),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},ye=function(e,t){return s.createElement(ue,a(a({},e),{},{ref:t,icon:ve}))};ye.displayName="RightOutlined";var ge=s.forwardRef(ye),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ee=function(e,t){return s.createElement(ue,a(a({},e),{},{ref:t,icon:be}))};Ee.displayName="LeftOutlined";var Te=s.forwardRef(Ee);function we(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(){return _e=Object.assign||function(e){for(var t=1;t0),i(t,"".concat(c,"-rtl"),"rtl"===n),t),l),y=s.useMemo((function(){return{siderHook:{addSider:function(e){a((function(t){return[].concat(we(t),[e])}))},removeSider:function(e){a((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return s.createElement(He.Provider,{value:y},s.createElement(d,_e({className:v},h),u))})),Xe=We({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(Ye),Ze=We({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(Ye),et=We({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(Ye),tt=Je;function nt(e,t){var n=a({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var rt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},it=function(e,t){return s.createElement(ue,a(a({},e),{},{ref:t,icon:rt}))};it.displayName="BarsOutlined";var ot,at=s.forwardRef(it),st={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ct=s.createContext({}),lt=(ot=0,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ot+=1,"".concat(e).concat(ot)}),ut=s.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.trigger,a=e.children,c=e.defaultCollapsed,l=void 0!==c&&c,u=e.theme,p=void 0===u?"dark":u,d=e.style,h=void 0===d?{}:d,v=e.collapsible,y=void 0!==v&&v,g=e.reverseArrow,b=void 0!==g&&g,E=e.width,T=void 0===E?200:E,w=e.collapsedWidth,_=void 0===w?80:w,k=e.zeroWidthTriggerStyle,S=e.breakpoint,O=e.onCollapse,C=e.onBreakpoint,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i1&&void 0!==arguments[1]?arguments[1]:{},n=[];return c().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(gt(e)):(0,yt.isFragment)(e)&&e.props?n=n.concat(gt(e.props.children,t)):n.push(e))})),n}function bt(e,t){"function"==typeof e?e(t):"object"===y(e)&&e&&"current"in e&&(e.current=t)}function Et(){for(var e=arguments.length,t=new Array(e),n=0;n0},e.prototype.connect_=function(){Ot&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),At?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Ot&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Nt.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Lt=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),Gt="undefined"!=typeof WeakMap?new WeakMap:new St,Bt=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Dt.getInstance(),r=new qt(t,n,this);Gt.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Bt.prototype[e]=function(){var t;return(t=Gt.get(this))[e].apply(t,arguments)}}));var Kt=void 0!==Ct.ResizeObserver?Ct.ResizeObserver:Bt,zt=new Map,$t=new Kt((function(e){e.forEach((function(e){var t,n=e.target;null===(t=zt.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),Ht=function(e){xe(n,e);var t=Le(n);function n(){return ke(this,n),t.apply(this,arguments)}return Oe(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component),Wt=s.createContext(null);function Yt(e){var t=e.children,n=e.disabled,r=s.useRef(null),i=s.useRef(null),o=s.useContext(Wt),c=s.useRef({width:0,height:0,offsetWidth:0,offsetHeight:0}),l=s.isValidElement(t)&&Tt(t),u=l?t.ref:null,p=s.useMemo((function(){return Et(u,r)}),[u,r]),f=s.useRef(e);f.current=e;var d=s.useCallback((function(e){var t=f.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),s=i.width,l=i.height,u=e.offsetWidth,p=e.offsetHeight,d=Math.floor(s),h=Math.floor(l);if(c.current.width!==d||c.current.height!==h||c.current.offsetWidth!==u||c.current.offsetHeight!==p){var m={width:d,height:h,offsetWidth:u,offsetHeight:p};c.current=m;var v=u===Math.round(s)?s:u,y=p===Math.round(l)?l:p,g=a(a({},m),{},{offsetWidth:v,offsetHeight:y});null==o||o(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return s.useEffect((function(){var e,t,o=kt(r.current)||kt(i.current);return o&&!n&&(e=o,t=d,zt.has(e)||(zt.set(e,new Set),$t.observe(e)),zt.get(e).add(t)),function(){return function(e,t){zt.has(e)&&(zt.get(e).delete(t),zt.get(e).size||($t.unobserve(e),zt.delete(e)))}(o,d)}}),[r.current,n]),s.createElement(Ht,{ref:i},l?s.cloneElement(t,{ref:p}):t)}function Jt(e){return gt(e.children).map((function(t,n){var r=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return s.createElement(Yt,_e({},e,{key:r}),t)}))}Jt.Collection=function(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),i=s.useRef([]),o=s.useContext(Wt),a=s.useCallback((function(e,t,a){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){s===r.current&&(null==n||n(i.current),i.current=[])})),null==o||o(e,t,a)}),[n,o]);return s.createElement(Wt.Provider,{value:a},t)};var Xt=Jt,Zt=void 0;function en(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,c=e.responsive,l=e.registerSize,u=e.itemKey,p=e.className,f=e.style,h=e.children,v=e.display,y=e.order,g=e.component,b=void 0===g?"div":g,E=d(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","className","style","children","display","order","component"]),T=c&&!v;function w(e){l(u,e)}s.useEffect((function(){return function(){w(null)}}),[]);var _,k=o&&i!==Zt?o(i):h;r||(_={opacity:T?0:1,height:T?0:Zt,overflowY:T?"hidden":Zt,order:c?y:Zt,pointerEvents:T?"none":Zt,position:T?"absolute":Zt});var S={};T&&(S["aria-hidden"]=!0);var O=s.createElement(b,_e({className:m()(!r&&n,p),style:a(a({},_),f)},S,E,{ref:t}),k);return c&&(O=s.createElement(Xt,{onResize:function(e){w(e.offsetWidth)}},O)),O}var tn=s.forwardRef(en);tn.displayName="Item";var nn=tn,rn=function(e){return+setTimeout(e,16)},on=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(rn=function(e){return window.requestAnimationFrame(e)},on=function(e){return window.cancelAnimationFrame(e)});var an=0,sn=new Map;function cn(e){sn.delete(e)}function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=an+=1;function r(t){if(0===t)cn(n),e();else{var i=rn((function(){r(t-1)}));sn.set(n,i)}}return r(t),n}ln.cancel=function(e){var t=sn.get(e);return cn(t),on(t)};var un=function(e,t){var n=s.useContext(dn);if(!n){var r=e.component,i=void 0===r?"div":r,o=d(e,["component"]);return s.createElement(i,_e({},o,{ref:t}))}var a=n.className,c=d(n,["className"]),l=e.className,u=d(e,["className"]);return s.createElement(dn.Provider,{value:null},s.createElement(nn,_e({ref:t,className:m()(a,l)},c,u)))},pn=s.forwardRef(un);pn.displayName="RawItem";var fn=pn,dn=s.createContext(null),hn="responsive",mn="invalidate";function vn(e){return"+ ".concat(e.length," ...")}function yn(e,t){var n,r,i,o,c,l=e.prefixCls,u=void 0===l?"rc-overflow":l,p=e.data,h=void 0===p?[]:p,v=e.renderItem,y=e.renderRawItem,g=e.itemKey,b=e.itemWidth,E=void 0===b?10:b,T=e.ssr,w=e.style,_=e.className,k=e.maxCount,S=e.renderRest,O=e.renderRawRest,C=e.suffix,x=e.component,N=void 0===x?"div":x,A=e.itemComponent,D=e.onVisibleChange,L=d(e,["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"]),I=(n=f((0,s.useState)({}),2)[1],r=(0,s.useRef)([]),i=(0,s.useRef)(!1),o=0,c=0,(0,s.useEffect)((function(){return function(){i.current=!0}}),[]),function(e){var t=o;return o+=1,r.current.lengthk,fe=(0,s.useMemo)((function(){var e=h;return le?e=null===M&&P?h:h.slice(0,Math.min(h.length,F/E)):"number"==typeof k&&(e=h.slice(0,k)),e}),[h,E,M,k,le]),de=(0,s.useMemo)((function(){return le?h.slice(re+1):h.slice(fe.length)}),[h,fe,le,re]),he=(0,s.useCallback)((function(e,t){var n;return"function"==typeof g?g(e):null!==(n=g&&(null==e?void 0:e[g]))&&void 0!==n?n:t}),[g]),me=(0,s.useCallback)(v||function(e){return e},[v]);function ve(e,t){ne(e),t||(ae(eF){ve(r-1),Z(e-i-W+z);break}}C&&ge(0)+W>F&&Z(null)}}),[F,Q,z,W,he,fe]);var be=oe&&!!de.length,Ee={};null!==X&&le&&(Ee={position:"absolute",left:X,top:0});var Te,we={prefixCls:se,responsive:le,component:A,invalidate:ue},ke=y?function(e,t){var n=he(e,t);return s.createElement(dn.Provider,{key:n,value:a(a({},we),{},{order:t,item:e,itemKey:n,registerSize:ye,display:t<=re})},y(e,t))}:function(e,t){var n=he(e,t);return s.createElement(nn,_e({},we,{order:t,key:n,item:e,renderItem:me,itemKey:n,registerSize:ye,display:t<=re}))},Se={order:be?re:Number.MAX_SAFE_INTEGER,className:"".concat(se,"-rest"),registerSize:function(e,t){$(t),B(z)},display:be};if(O)O&&(Te=s.createElement(dn.Provider,{value:a(a({},we),Se)},O(de)));else{var Oe=S||vn;Te=s.createElement(nn,_e({},we,Se),"function"==typeof Oe?Oe(de):Oe)}var Ce=s.createElement(N,_e({className:m()(!ue&&u,_),style:w,ref:t},L),fe.map(ke),pe?Te:null,C&&s.createElement(nn,_e({},we,{order:re,className:"".concat(se,"-suffix"),registerSize:function(e,t){Y(t)},display:!0,style:Ee}),C));return le&&(Ce=s.createElement(Xt,{onResize:function(e,t){j(t.clientWidth)}},Ce)),Ce}var gn=s.forwardRef(yn);gn.displayName="Overflow",gn.Item=fn,gn.RESPONSIVE=hn,gn.INVALIDATE=mn;var bn=gn,En={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=En.F1&&t<=En.F12)return!1;switch(t){case En.ALT:case En.CAPS_LOCK:case En.CONTEXT_MENU:case En.CTRL:case En.DOWN:case En.END:case En.ESC:case En.HOME:case En.INSERT:case En.LEFT:case En.MAC_FF_META:case En.META:case En.NUMLOCK:case En.NUM_CENTER:case En.PAGE_DOWN:case En.PAGE_UP:case En.PAUSE:case En.PRINT_SCREEN:case En.RIGHT:case En.SHIFT:case En.UP:case En.WIN_KEY:case En.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=En.ZERO&&e<=En.NINE)return!0;if(e>=En.NUM_ZERO&&e<=En.NUM_MULTIPLY)return!0;if(e>=En.A&&e<=En.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case En.SPACE:case En.QUESTION_MARK:case En.NUM_PLUS:case En.NUM_MINUS:case En.NUM_PERIOD:case En.NUM_DIVISION:case En.SEMICOLON:case En.DASH:case En.EQUALS:case En.COMMA:case En.PERIOD:case En.SLASH:case En.APOSTROPHE:case En.SINGLE_QUOTE:case En.OPEN_SQUARE_BRACKET:case En.BACKSLASH:case En.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Tn=En,wn=["children","locked"],kn=s.createContext(null);function Sn(e){var t,n,r,i,o,c,l=e.children,u=e.locked,p=d(e,wn),f=s.useContext(kn),h=(t=[f,p],"value"in(c=s.useRef({})).current&&(i=c.current.condition,o=t,!!(u||i[0]===o[0]&&mt()(i[1],o[1])))||(c.current.value=(n=p,r=a({},f),Object.keys(n).forEach((function(e){var t=n[e];void 0!==t&&(r[e]=t)})),r),c.current.condition=t),c.current.value);return s.createElement(kn.Provider,{value:h},l)}function On(e,t,n,r){var i=s.useContext(kn),o=i.activeKey,a=i.onActive,c=i.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},l.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),c(e)}),l}var Cn=["item"];function xn(e){var t=e.item,n=d(e,Cn);return Object.defineProperty(n,"item",{get:function(){return B(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function Nn(e){var t=e.icon,n=e.props,r=e.children;return("function"==typeof t?s.createElement(t,a({},n)):t)||r||null}function An(e){var t=s.useContext(kn),n=t.mode,r=t.rtl,i=t.inlineIndent;return"inline"!==n?null:r?{paddingRight:e*i}:{paddingLeft:e*i}}var Dn=[],Ln=s.createContext(null);function In(){return s.useContext(Ln)}var Pn=s.createContext(Dn);function Rn(e){var t=s.useContext(Pn);return s.useMemo((function(){return void 0!==e?[].concat(we(t),[e]):t}),[t,e])}var Mn=s.createContext(null),jn=s.createContext(null);function Fn(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Vn(e){return Fn(s.useContext(jn),e)}var Qn=["title","attribute","elementRef"],Un=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],qn=["active"],Gn=function(e){xe(n,e);var t=Le(n);function n(){return ke(this,n),t.apply(this,arguments)}return Oe(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,i=nt(d(e,Qn),["eventKey"]);return B(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),s.createElement(bn.Item,_e({},n,{title:"string"==typeof t?t:void 0},i,{ref:r}))}}]),n}(s.Component),Bn=function(e){var t,n=e.style,r=e.className,o=e.eventKey,c=(e.warnKey,e.disabled),l=e.itemIcon,u=e.children,p=e.role,f=e.onMouseEnter,h=e.onMouseLeave,v=e.onClick,y=e.onKeyDown,g=e.onFocus,b=d(e,Un),E=Vn(o),T=s.useContext(kn),w=T.prefixCls,_=T.onItemClick,k=T.disabled,S=T.overflowDisabled,O=T.itemIcon,C=T.selectedKeys,x=T.onActive,N="".concat(w,"-item"),A=s.useRef(),D=s.useRef(),L=k||c,I=Rn(o),P=function(e){return{key:o,keyPath:we(I).reverse(),item:A.current,domEvent:e}},R=l||O,M=On(o,L,f,h),j=M.active,F=d(M,qn),V=C.includes(o),Q=An(I.length),U={};return"option"===e.role&&(U["aria-selected"]=V),s.createElement(Gn,_e({ref:A,elementRef:D,role:null===p?"none":p||"menuitem",tabIndex:c?null:-1,"data-menu-id":S&&E?null:E},b,F,U,{component:"li","aria-disabled":c,style:a(a({},Q),n),className:m()(N,(t={},i(t,"".concat(N,"-active"),j),i(t,"".concat(N,"-selected"),V),i(t,"".concat(N,"-disabled"),L),t),r),onClick:function(e){if(!L){var t=P(e);null==v||v(xn(t)),_(t)}},onKeyDown:function(e){if(null==y||y(e),e.which===Tn.ENTER){var t=P(e);null==v||v(xn(t)),_(t)}},onFocus:function(e){x(o),null==g||g(e)}}),u,s.createElement(Nn,{props:a(a({},e),{},{isSelected:V}),icon:R}))},Kn=function(e){var t=e.eventKey,n=In(),r=Rn(t);return s.useEffect((function(){if(n)return n.registerPath(t,r),function(){n.unregisterPath(t,r)}}),[r]),n?null:s.createElement(Bn,e)};function zn(e,t){return gt(e).map((function(e,n){if(s.isValidElement(e)){var r,i,o=e.key,a=null!==(r=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:o;null==a&&(a="tmp_key-".concat([].concat(we(t),[n]).join("-")));var c={key:a,eventKey:a};return s.cloneElement(e,c)}return e}))}function $n(e){var t=s.useRef(e);t.current=e;var n=s.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),i=0;i1&&void 0!==arguments[1]?arguments[1]:2;t();var o=ln((function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)}));e.current=o},t]}(),a=f(o,2),c=a[0],l=a[1];return Nr((function(){if(r!==_r&&r!==Cr){var e=Ar.indexOf(r),n=Ar[e+1],o=t(r);!1===o?i(n):c((function(e){function t(){e.isCanceled()||i(n)}!0===o?t():Promise.resolve(o).then(t)}))}}),[e,r]),s.useEffect((function(){return function(){l()}}),[]),[function(){i(kr)},r]}(I,(function(e){if(e===kr){var t=$.prepare;return!!t&&t(q())}var n;return Y in $&&j((null===(n=$[Y])||void 0===n?void 0:n.call($,q(),null))||null),Y===Or&&(z(q()),h>0&&(clearTimeout(V.current),V.current=setTimeout((function(){B({deadline:!0})}),h))),!0})),2),W=H[0],Y=H[1],J=Dr(Y);G.current=J,Nr((function(){D(t);var n,r=F.current;F.current=!0,e&&(!r&&t&&u&&(n=Er),r&&t&&c&&(n=Tr),(r&&!t&&d||!r&&m&&!t&&d)&&(n=wr),n&&(P(n),W()))}),[t]),(0,s.useEffect)((function(){(I===Er&&!u||I===Tr&&!c||I===wr&&!d)&&P(br)}),[u,c,d]),(0,s.useEffect)((function(){return function(){clearTimeout(V.current),Q.current=!0}}),[]),(0,s.useEffect)((function(){void 0!==A&&I===br&&(null==x||x(A))}),[A,I]);var X=M;return $.prepare&&Y===Sr&&(X=a({transition:"none"},X)),[I,Y,X,null!=A?A:t]}var Ir=function(e){xe(n,e);var t=Le(n);function n(){return ke(this,n),t.apply(this,arguments)}return Oe(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component),Pr=Ir,Rr=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===y(e)&&(t=e.transitionSupport);var r=s.forwardRef((function(e,t){var r=e.visible,o=void 0===r||r,c=e.removeOnLeave,l=void 0===c||c,u=e.forceRender,p=e.children,d=e.motionName,h=e.leavedClassName,v=e.eventProps,y=n(e),g=(0,s.useRef)(),b=(0,s.useRef)(),E=f(Lr(y,o,(function(){try{return kt(g.current||b.current)}catch(e){return null}}),e),4),T=E[0],w=E[1],_=E[2],k=E[3],S=s.useRef(k);k&&(S.current=!0);var O=(0,s.useRef)(t);O.current=t;var C,x=s.useCallback((function(e){g.current=e,bt(O.current,e)}),[]),N=a(a({},v),{},{visible:o});if(p)if(T!==br&&n(e)){var A,D;w===kr?D="prepare":Dr(w)?D="active":w===Sr&&(D="start"),C=p(a(a({},N),{},{className:m()(gr(d,T),(A={},i(A,gr(d,"".concat(T,"-").concat(D)),D),i(A,d,"string"==typeof d),A)),style:_}),x)}else C=k?p(a({},N),x):!l&&S.current?p(a(a({},N),{},{className:h}),x):u?p(a(a({},N),{},{style:{display:"none"}}),x):null;else C=null;return s.createElement(Pr,{ref:b},C)}));return r.displayName="CSSMotion",r}(mr),Mr="add",jr="keep",Fr="remove",Vr="removed";function Qr(e){var t;return a(a({},t=e&&"object"===y(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Ur(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(Qr)}function qr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,o=Ur(e),s=Ur(t);o.forEach((function(e){for(var t=!1,o=r;o1}));return l.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Fr}))).forEach((function(t){t.key===e&&(t.status=jr)}))})),n}var Gr=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rr,n=function(e){xe(r,e);var n=Le(r);function r(){var e;return ke(this,r),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:a(a({},e),{},{status:Vr})}))}}))},e}return Oe(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,i=r.component,o=r.children,a=r.onVisibleChanged,c=d(r,["component","children","onVisibleChanged"]),l=i||s.Fragment,u={};return Gr.forEach((function(e){u[e]=c[e],delete c[e]})),delete c.keys,s.createElement(l,c,n.map((function(n){var r=n.status,i=d(n,["status"]),c=r===Mr||r===jr;return s.createElement(t,_e({},u,{key:i.key,visible:c,eventProps:i,onVisibleChanged:function(t){null==a||a(t,{key:i.key}),t||e.removeKey(i.key)}}),o)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,i=Ur(n);return{keyEntities:qr(r,i).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Vr||e.status!==Fr}))}}}]),r}(s.Component);n.defaultProps={component:"div"}}(mr);var Br=Rr;function Kr(e){var t=e.prefixCls,n=e.motion,r=e.animation,i=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:i?{motionName:i}:null)}function zr(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,i=e.mask,o=e.maskMotion,c=e.maskAnimation,l=e.maskTransitionName;if(!i)return null;var u={};return(o||l||c)&&(u=a({motionAppear:!0},Kr({motion:o,prefixCls:t,transitionName:l,animation:c}))),s.createElement(Br,_e({},u,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return s.createElement("div",{style:{zIndex:r},className:m()("".concat(t,"-mask"),n)})}))}var $r,Hr=function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect();if(n.width||n.height)return!0}return!1};function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yr(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Mi(e){var t,n,r;if(Di.isWindow(e)||9===e.nodeType){var i=Di.getWindow(e);t={left:Di.getWindowScrollLeft(i),top:Di.getWindowScrollTop(i)},n=Di.viewportWidth(i),r=Di.viewportHeight(i)}else t=Di.offset(e),n=Di.outerWidth(e),r=Di.outerHeight(e);return t.width=n,t.height=r,t}function ji(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,o=e.height,a=e.left,s=e.top;return"c"===n?s+=o/2:"b"===n&&(s+=o),"c"===r?a+=i/2:"r"===r&&(a+=i),{left:a,top:s}}function Fi(e,t,n,r,i){var o=ji(t,n[1]),a=ji(e,n[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(e.left-s[0]+r[0]-i[0]),top:Math.round(e.top-s[1]+r[1]-i[1])}}function Vi(e,t,n){return e.leftn.right}function Qi(e,t,n){return e.topn.bottom}function Ui(e,t,n){var r=[];return Di.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function qi(e,t){return e[t]=-e[t],e}function Gi(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Bi(e,t){e[0]=Gi(e[0],t.width),e[1]=Gi(e[1],t.height)}function Ki(e,t,n,r){var i=n.points,o=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,c=n.source||e;o=[].concat(o),a=[].concat(a);var l={},u=0,p=Ri(c,!(!(s=s||{})||!s.alwaysByViewport)),f=Mi(c);Bi(o,f),Bi(a,t);var d=Fi(f,t,i,o,a),h=Di.merge(f,d);if(p&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&Vi(d,f,p)){var m=Ui(i,/[lr]/gi,{l:"r",r:"l"}),v=qi(o,0),y=qi(a,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&i.left+o.width>n.right&&(o.width-=i.left+o.width-n.right),r.adjustX&&i.left+o.width>n.right&&(i.left=Math.max(n.right-o.width,n.left)),r.adjustY&&i.top=n.top&&i.top+o.height>n.bottom&&(o.height-=i.top+o.height-n.bottom),r.adjustY&&i.top+o.height>n.bottom&&(i.top=Math.max(n.bottom-o.height,n.top)),Di.mix(i,o)}(d,f,p,l))}return h.width!==f.width&&Di.css(c,"width",Di.width(c)+h.width-f.width),h.height!==f.height&&Di.css(c,"height",Di.height(c)+h.height-f.height),Di.offset(c,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:o,targetOffset:a,overflow:l}}function zi(e,t,n){var r=n.target||t,i=Mi(r),o=!function(e,t){var n=Ri(e,t),r=Mi(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return Ki(e,i,n,o)}zi.__getOffsetParent=Ii,zi.__getVisibleRectForElement=Ri;var $i=n(8446),Hi=n.n($i);function Wi(e,t){var n=null,r=null,i=new Kt((function(e){var i=f(e,1)[0].target;if(document.documentElement.contains(i)){var o=i.getBoundingClientRect(),a=o.width,s=o.height,c=Math.floor(a),l=Math.floor(s);n===c&&r===l||Promise.resolve().then((function(){t({width:c,height:l})})),n=c,r=l}}));return e&&i.observe(e),function(){i.disconnect()}}function Yi(e){return"function"!=typeof e?null:e()}function Ji(e){return"object"===y(e)&&e?e:null}var Xi=function(e,t){var n=e.children,r=e.disabled,i=e.target,o=e.align,a=e.onAlign,s=e.monitorWindowResize,l=e.monitorBufferTime,u=void 0===l?0:l,p=c().useRef({}),d=c().useRef(),h=c().Children.only(n),m=c().useRef({});m.current.disabled=r,m.current.target=i,m.current.align=o,m.current.onAlign=a;var v=function(e,t){var n=c().useRef(!1),r=c().useRef(null);function i(){window.clearTimeout(r.current)}return[function e(o){if(n.current&&!0!==o)i(),r.current=window.setTimeout((function(){n.current=!1,e()}),t);else{if(!1===function(){var e=m.current,t=e.disabled,n=e.target,r=e.align,i=e.onAlign;if(!t&&n){var o,a=d.current,s=Yi(n),c=Ji(n);p.current.element=s,p.current.point=c,p.current.align=r;var l=document.activeElement;return s&&Hr(s)?o=zi(a,s,r):c&&(o=function(e,t,n){var r,i,o=Di.getDocument(e),a=o.defaultView||o.parentWindow,s=Di.getWindowScrollLeft(a),c=Di.getWindowScrollTop(a),l=Di.viewportWidth(a),u=Di.viewportHeight(a),p={left:r="pageX"in t?t.pageX:s+t.clientX,top:i="pageY"in t?t.pageY:c+t.clientY,width:0,height:0},f=r>=0&&r<=s+l&&i>=0&&i<=c+u,d=[n.points[0],"cc"];return Ki(e,p,Yr(Yr({},n),{},{points:d}),f)}(a,c,r)),function(e,t){e!==document.activeElement&&Xn(t,e)&&"function"==typeof e.focus&&e.focus()}(l,a),i&&o&&i(a,o),!0}return!1}())return;n.current=!0,i(),r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}(0,u),y=f(v,2),g=y[0],b=y[1],E=c().useRef({cancel:function(){}}),T=c().useRef({cancel:function(){}});c().useEffect((function(){var e,t,n=Yi(i),r=Ji(i);d.current!==T.current.element&&(T.current.cancel(),T.current.element=d.current,T.current.cancel=Wi(d.current,g)),p.current.element===n&&((e=p.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&Hi()(p.current.align,o)||(g(),E.current.element!==n&&(E.current.cancel(),E.current.element=n,E.current.cancel=Wi(n,g)))})),c().useEffect((function(){r?b():g()}),[r]);var w=c().useRef(null);return c().useEffect((function(){s?w.current||(w.current=Zn(window,"resize",g)):w.current&&(w.current.remove(),w.current=null)}),[s]),c().useEffect((function(){return function(){E.current.cancel(),T.current.cancel(),w.current&&w.current.remove(),b()}}),[]),c().useImperativeHandle(t,(function(){return{forceAlign:function(){return g(!0)}}})),c().isValidElement(h)&&(h=c().cloneElement(h,{ref:Et(h.ref,d)})),h},Zi=c().forwardRef(Xi);Zi.displayName="Align";var eo=Zi,to=window.regeneratorRuntime,no=n.n(to);function ro(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function io(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){ro(o,r,i,a,s,"next",e)}function s(e){ro(o,r,i,a,s,"throw",e)}a(void 0)}))}}var oo=["measure","align",null,"motion"],ao=s.forwardRef((function(e,t){var n=e.visible,r=e.prefixCls,i=e.className,o=e.style,c=e.children,l=e.zIndex,u=e.stretch,p=e.destroyPopupOnHide,d=e.forceRender,h=e.align,v=e.point,y=e.getRootDomNode,g=e.getClassNameFromAlign,b=e.onAlign,E=e.onMouseEnter,T=e.onMouseLeave,w=e.onMouseDown,_=e.onTouchStart,k=(0,s.useRef)(),S=(0,s.useRef)(),O=f((0,s.useState)(),2),C=O[0],x=O[1],N=function(e){var t=f(s.useState({width:0,height:0}),2),n=t[0],r=t[1];return[s.useMemo((function(){var t={};if(e){var r=n.width,i=n.height;-1!==e.indexOf("height")&&i?t.height=i:-1!==e.indexOf("minHeight")&&i&&(t.minHeight=i),-1!==e.indexOf("width")&&r?t.width=r:-1!==e.indexOf("minWidth")&&r&&(t.minWidth=r)}return t}),[e,n]),function(e){r({width:e.offsetWidth,height:e.offsetHeight})}]}(u),A=f(N,2),D=A[0],L=A[1],I=function(e,t){var n=f((0,s.useState)(null),2),r=n[0],i=n[1],o=(0,s.useRef)(),a=(0,s.useRef)(!1);function c(e){a.current||i(e)}function l(){ln.cancel(o.current)}return(0,s.useEffect)((function(){c("measure")}),[e]),(0,s.useEffect)((function(){"measure"===r&&(u&&L(y())),r&&(o.current=ln(io(no().mark((function e(){var t,n;return no().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=oo.indexOf(r),(n=oo[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),(0,s.useEffect)((function(){return function(){a.current=!0,l()}}),[]),[r,function(e){l(),o.current=ln((function(){c((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n),P=f(I,2),R=P[0],M=P[1],j=(0,s.useRef)();function F(){var e;null===(e=k.current)||void 0===e||e.forceAlign()}function V(e,t){var n=g(t);C!==n&&x(n),"align"===R&&(C!==n?Promise.resolve().then((function(){F()})):M((function(){var e;null===(e=j.current)||void 0===e||e.call(j)})),null==b||b(e,t))}var Q=a({},Kr(e));function U(){return new Promise((function(e){j.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=Q[e];Q[e]=function(e,n){return M(),null==t?void 0:t(e,n)}})),s.useEffect((function(){Q.motionName||"motion"!==R||M()}),[Q.motionName,R]),s.useImperativeHandle(t,(function(){return{forceAlign:F,getElement:function(){return S.current}}}));var q=a(a({},D),{},{zIndex:l,opacity:"motion"!==R&&"stable"!==R&&n?0:void 0,pointerEvents:"stable"===R?void 0:"none"},o),G=!0;!(null==h?void 0:h.points)||"align"!==R&&"stable"!==R||(G=!1);var B=c;return s.Children.count(c)>1&&(B=s.createElement("div",{className:"".concat(r,"-content")},c)),s.createElement(Br,_e({visible:n,ref:S,leavedClassName:"".concat(r,"-hidden")},Q,{onAppearPrepare:U,onEnterPrepare:U,removeOnLeave:p,forceRender:d}),(function(e,t){var n=e.className,o=e.style,c=m()(r,i,C,n);return s.createElement(eo,{target:v||y,key:"popup",ref:k,monitorWindowResize:!0,disabled:G,align:h,onAlign:V},s.createElement("div",{ref:t,className:c,onMouseEnter:E,onMouseLeave:T,onMouseDownCapture:w,onTouchStartCapture:_,style:a(a({},o),q)},B))}))}));ao.displayName="PopupInner";var so=ao,co=s.forwardRef((function(e,t){var n=e.prefixCls,r=e.visible,i=e.zIndex,o=e.children,c=e.mobile,l=(c=void 0===c?{}:c).popupClassName,u=c.popupStyle,p=c.popupMotion,f=void 0===p?{}:p,d=c.popupRender,h=s.useRef();s.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var v=a({zIndex:i},u),y=o;return s.Children.count(o)>1&&(y=s.createElement("div",{className:"".concat(n,"-content")},o)),d&&(y=d(y)),s.createElement(Br,_e({visible:r,ref:h,removeOnLeave:!0},f),(function(e,t){var r=e.className,i=e.style,o=m()(n,l,r);return s.createElement("div",{ref:t,className:o,style:a(a({},i),v)},y)}))}));co.displayName="MobilePopupInner";var lo=co,uo=["visible","mobile"],po=s.forwardRef((function(e,t){var n=e.visible,r=e.mobile,i=d(e,uo),o=f((0,s.useState)(n),2),c=o[0],l=o[1],u=f((0,s.useState)(!1),2),p=u[0],h=u[1],m=a(a({},i),{},{visible:c});(0,s.useEffect)((function(){l(n),n&&r&&h(rr())}),[n,r]);var v=p?s.createElement(lo,_e({},m,{mobile:r,ref:t})):s.createElement(so,_e({},m,{ref:t}));return s.createElement("div",null,s.createElement(zr,m),v)}));po.displayName="Popup";var fo=po,ho=s.createContext(null);function mo(){}var vo,yo,go=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],bo=(vo=tr,yo=function(e){xe(n,e);var t=Le(n);function n(e){var r,i;return ke(this,n),(r=t.call(this,e)).popupRef=s.createRef(),r.triggerRef=s.createRef(),r.attachId=void 0,r.clickOutsideHandler=void 0,r.touchOutsideHandler=void 0,r.contextMenuOutsideHandler1=void 0,r.contextMenuOutsideHandler2=void 0,r.mouseDownTimeout=void 0,r.focusTime=void 0,r.preClickTime=void 0,r.preTouchTime=void 0,r.delayTimer=void 0,r.hasPopupMouseDown=void 0,r.onMouseEnter=function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)},r.onMouseMove=function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)},r.onMouseLeave=function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onPopupMouseEnter=function(){r.clearDelayTimer()},r.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&Xn(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onFocus=function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))},r.onMouseDown=function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()},r.onTouchStart=function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()},r.onBlur=function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)},r.onContextMenu=function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)},r.onContextMenuClose=function(){r.isContextMenuToShow()&&r.close()},r.onClick=function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)},r.onPopupMouseDown=function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)},r.onDocumentClick=function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),i=r.getPopupDomNode();Xn(n,t)&&!r.isContextMenuOnly()||Xn(i,t)||r.hasPopupMouseDown||r.close()}},r.getRootDomNode=function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=kt(r.triggerRef.current);if(t)return t}catch(e){}return _t().findDOMNode(Ae(r))},r.getPopupClassNameFromAlign=function(e){var t=[],n=r.props,i=n.popupPlacement,o=n.builtinPlacements,a=n.prefixCls,s=n.alignPoint,c=n.getPopupClassNameFromAlign;return i&&o&&t.push(function(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1&&(E.motionAppear=!1);var T=E.onVisibleChanged;return E.onVisibleChanged=function(e){return m.current||e||g(!0),null==T?void 0:T(e)},y?null:s.createElement(Sn,{mode:o,locked:!m.current},s.createElement(Br,_e({visible:b},E,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(e){var n=e.className,r=e.style;return s.createElement(Jn,{id:t,className:n,style:r},i)})))}var Co=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],xo=["active"],No=function(e){var t,n=e.style,r=e.className,o=e.title,c=e.eventKey,l=(e.warnKey,e.disabled),u=e.internalPopupClose,p=e.children,h=e.itemIcon,v=e.expandIcon,y=e.popupClassName,g=e.popupOffset,b=e.onClick,E=e.onMouseEnter,T=e.onMouseLeave,w=e.onTitleClick,_=e.onTitleMouseEnter,k=e.onTitleMouseLeave,S=d(e,Co),O=Vn(c),C=s.useContext(kn),x=C.prefixCls,N=C.mode,A=C.openKeys,D=C.disabled,L=C.overflowDisabled,I=C.activeKey,P=C.selectedKeys,R=C.itemIcon,M=C.expandIcon,j=C.onItemClick,F=C.onOpenChange,V=C.onActive,Q=s.useContext(Mn).isSubPathKey,U=Rn(),q="".concat(x,"-submenu"),G=D||l,B=s.useRef(),K=s.useRef(),z=h||R,$=v||M,H=A.includes(c),W=!L&&H,Y=Q(P,c),J=On(c,G,_,k),X=J.active,Z=d(J,xo),ee=f(s.useState(!1),2),te=ee[0],ne=ee[1],re=function(e){G||ne(e)},ie=s.useMemo((function(){return X||"inline"!==N&&(te||Q([I],c))}),[N,X,I,te,c,Q]),oe=An(U.length),ae=$n((function(e){null==b||b(xn(e)),j(e)})),se=O&&"".concat(O,"-popup"),ce=s.createElement("div",_e({role:"menuitem",style:oe,className:"".concat(q,"-title"),tabIndex:G?null:-1,ref:B,title:"string"==typeof o?o:null,"data-menu-id":L&&O?null:O,"aria-expanded":W,"aria-haspopup":!0,"aria-controls":se,"aria-disabled":G,onClick:function(e){G||(null==w||w({key:c,domEvent:e}),"inline"===N&&F(c,!H))},onFocus:function(){V(c)}},Z),o,s.createElement(Nn,{icon:"horizontal"!==N?$:null,props:a(a({},e),{},{isOpen:W,isSubMenu:!0})},s.createElement("i",{className:"".concat(q,"-arrow")}))),le=s.useRef(N);if("inline"!==N&&(le.current=U.length>1?"vertical":N),!L){var ue=le.current;ce=s.createElement(So,{mode:ue,prefixCls:q,visible:!u&&W&&"inline"!==N,popupClassName:y,popupOffset:g,popup:s.createElement(Sn,{mode:"horizontal"===ue?"vertical":ue},s.createElement(Jn,{id:se,ref:K},p)),disabled:G,onVisibleChange:function(e){"inline"!==N&&F(c,e)}},ce)}return s.createElement(Sn,{onItemClick:ae,mode:"horizontal"===N?"vertical":N,itemIcon:z,expandIcon:$},s.createElement(bn.Item,_e({role:"none"},S,{component:"li",style:n,className:m()(q,"".concat(q,"-").concat(N),r,(t={},i(t,"".concat(q,"-open"),W),i(t,"".concat(q,"-active"),ie),i(t,"".concat(q,"-selected"),Y),i(t,"".concat(q,"-disabled"),G),t)),onMouseEnter:function(e){re(!0),null==E||E({key:c,domEvent:e})},onMouseLeave:function(e){re(!1),null==T||T({key:c,domEvent:e})}}),ce,!L&&s.createElement(Oo,{id:se,open:W,keyPath:U},p)))};function Ao(e){var t,n=e.eventKey,r=e.children,i=Rn(n),o=zn(r,i),a=In();return s.useEffect((function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}}),[i]),t=a?o:s.createElement(No,e,o),s.createElement(Pn.Provider,{value:i},t)}function Do(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Hr(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var Lo=Tn.LEFT,Io=Tn.RIGHT,Po=Tn.UP,Ro=Tn.DOWN,Mo=Tn.ENTER,jo=Tn.ESC,Fo=[Po,Ro,Lo,Io];function Vo(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=we(e.querySelectorAll("*")).filter((function(e){return Do(e,t)}));return Do(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}function Qo(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=Vo(e,t),o=i.length,a=i.findIndex((function(e){return n===e}));return r<0?-1===a?a=o-1:a-=1:r>0&&(a+=1),i[a=(a+o)%o]}var Uo=Math.random().toFixed(5).toString().slice(2),qo=0,Go="__RC_UTIL_PATH_SPLIT__",Bo=function(e){return e.join(Go)},Ko="rc-menu-more";var zo=["prefixCls","style","className","tabIndex","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName"],$o=[],Ho=["className","title","eventKey","children"],Wo=["children"],Yo=function(e){var t=e.className,n=e.title,r=(e.eventKey,e.children),i=d(e,Ho),o=s.useContext(kn).prefixCls,a="".concat(o,"-item-group");return s.createElement("li",_e({},i,{onClick:function(e){return e.stopPropagation()},className:m()(a,t)}),s.createElement("div",{className:"".concat(a,"-title"),title:"string"==typeof n?n:void 0},n),s.createElement("ul",{className:"".concat(a,"-list")},r))};function Jo(e){var t=e.children,n=d(e,Wo),r=zn(t,Rn(n.eventKey));return In()?r:s.createElement(Yo,nt(n,["warnKey"]),r)}function Xo(e){var t=e.className,n=e.style,r=s.useContext(kn).prefixCls;return In()?null:s.createElement("li",{className:m()("".concat(r,"-item-divider"),t),style:n})}var Zo=Rn,ea=function(e){var t,n,r=e.prefixCls,o=void 0===r?"rc-menu":r,c=e.style,l=e.className,u=e.tabIndex,p=void 0===u?0:u,h=e.children,v=e.direction,y=e.id,g=e.mode,b=void 0===g?"vertical":g,E=e.inlineCollapsed,T=e.disabled,w=e.disabledOverflow,_=e.subMenuOpenDelay,k=void 0===_?.1:_,S=e.subMenuCloseDelay,O=void 0===S?.1:S,C=e.forceSubMenuRender,x=e.defaultOpenKeys,N=e.openKeys,A=e.activeKey,D=e.defaultActiveFirst,L=e.selectable,I=void 0===L||L,P=e.multiple,R=void 0!==P&&P,M=e.defaultSelectedKeys,j=e.selectedKeys,F=e.onSelect,V=e.onDeselect,Q=e.inlineIndent,U=void 0===Q?24:Q,q=e.motion,G=e.defaultMotions,B=e.triggerSubMenuAction,K=void 0===B?"hover":B,z=e.builtinPlacements,$=e.itemIcon,H=e.expandIcon,W=e.overflowedIndicator,Y=void 0===W?"...":W,J=e.overflowedIndicatorPopupClassName,X=e.getPopupContainer,Z=e.onClick,ee=e.onOpenChange,te=e.onKeyDown,ne=(e.openAnimation,e.openTransitionName,d(e,zo)),re=zn(h,$o),ie=f(s.useState(!1),2),oe=ie[0],ae=ie[1],se=s.useRef(),ce=function(e){var t=f(vt(e,{value:e}),2),n=t[0],r=t[1];return s.useEffect((function(){qo+=1;var e="".concat(Uo,"-").concat(qo);r("rc-menu-uuid-".concat(e))}),[]),n}(y),le="rtl"===v,ue=f(s.useMemo((function(){return"inline"!==b&&"vertical"!==b||!E?[b,!1]:["vertical",E]}),[b,E]),2),pe=ue[0],fe=ue[1],de=f(s.useState(0),2),he=de[0],me=de[1],ve=he>=re.length-1||"horizontal"!==pe||w,ye=f(vt(x,{value:N,postState:function(e){return e||$o}}),2),ge=ye[0],be=ye[1],Ee=function(e){be(e),null==ee||ee(e)},Te=f(s.useState(ge),2),ke=Te[0],Se=Te[1],Oe="inline"===pe,Ce=s.useRef(!1);s.useEffect((function(){Oe&&Se(ge)}),[ge]),s.useEffect((function(){Ce.current?Oe?be(ke):Ee($o):Ce.current=!0}),[Oe]);var xe=function(){var e=f(s.useState({}),2)[1],t=(0,s.useRef)(new Map),n=(0,s.useRef)(new Map),r=f(s.useState([]),2),i=r[0],o=r[1],a=(0,s.useRef)(0),c=(0,s.useRef)(!1),l=(0,s.useCallback)((function(r,i){var o=Bo(i);n.current.set(o,r),t.current.set(r,o),a.current+=1;var s,l=a.current;s=function(){l===a.current&&(c.current||e({}))},Promise.resolve().then(s)}),[]),u=(0,s.useCallback)((function(e,r){var i=Bo(r);n.current.delete(i),t.current.delete(e)}),[]),p=(0,s.useCallback)((function(e){o(e)}),[]),d=(0,s.useCallback)((function(e,n){var r=(t.current.get(e)||"").split(Go);return n&&i.includes(r[0])&&r.unshift(Ko),r}),[i]),h=(0,s.useCallback)((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),m=(0,s.useCallback)((function(e){var r="".concat(t.current.get(e)).concat(Go),i=new Set;return we(n.current.keys()).forEach((function(e){e.startsWith(r)&&i.add(n.current.get(e))})),i}),[]);return s.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:l,unregisterPath:u,refreshOverflowKeys:p,isSubPathKey:h,getKeyPath:d,getKeys:function(){var e=we(t.current.keys());return i.length&&e.push(Ko),e},getSubPathKeys:m}}(),Ne=xe.registerPath,Ae=xe.unregisterPath,De=xe.refreshOverflowKeys,Le=xe.isSubPathKey,Ie=xe.getKeyPath,Pe=xe.getKeys,Re=xe.getSubPathKeys,Me=s.useMemo((function(){return{registerPath:Ne,unregisterPath:Ae}}),[Ne,Ae]),je=s.useMemo((function(){return{isSubPathKey:Le}}),[Le]);s.useEffect((function(){De(ve?$o:re.slice(he+1).map((function(e){return e.key})))}),[he,ve]);var Fe=f(vt(A||D&&(null===(t=re[0])||void 0===t?void 0:t.key),{value:A}),2),Ve=Fe[0],Qe=Fe[1],Ue=$n((function(e){Qe(e)})),qe=$n((function(){Qe(void 0)})),Ge=f(vt(M||[],{value:j,postState:function(e){return Array.isArray(e)?e:null==e?$o:[e]}}),2),Be=Ge[0],Ke=Ge[1],ze=$n((function(e){null==Z||Z(xn(e)),function(e){if(I){var t,n=e.key,r=Be.includes(n);t=R?r?Be.filter((function(e){return e!==n})):[].concat(we(Be),[n]):[n],Ke(t);var i=a(a({},e),{},{selectedKeys:t});r?null==V||V(i):null==F||F(i)}!R&&ge.length&&"inline"!==pe&&Ee($o)}(e)})),$e=$n((function(e,t){var n=ge.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==pe){var r=Re(e);n=n.filter((function(e){return!r.has(e)}))}mt()(ge,n)||Ee(n)})),He=$n(X),We=function(e,t,n,r,o,a,c,l,u,p){var f=s.useRef(),d=s.useRef();d.current=t;var h=function(){ln.cancel(f.current)};return s.useEffect((function(){return function(){h()}}),[]),function(s){var m=s.which;if([].concat(Fo,[Mo,jo]).includes(m)){var v,y,g,b=function(){return v=new Set,y=new Map,g=new Map,a().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(Fn(r,e),"']"));t&&(v.add(t),g.set(t,e),y.set(e,t))})),v};b();var E=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),v),T=g.get(E),w=function(e,t,n,r){var o,a,s,c,l="prev",u="next",p="children",f="parent";if("inline"===e&&r===Mo)return{inlineTrigger:!0};var d=(i(o={},Po,l),i(o,Ro,u),o),h=(i(a={},Lo,n?u:l),i(a,Io,n?l:u),i(a,Ro,p),i(a,Mo,p),a),m=(i(s={},Po,l),i(s,Ro,u),i(s,Mo,p),i(s,jo,f),i(s,Lo,n?p:f),i(s,Io,n?f:p),s);switch(null===(c={inline:d,horizontal:h,vertical:m,inlineSub:d,horizontalSub:m,verticalSub:m}["".concat(e).concat(t?"":"Sub")])||void 0===c?void 0:c[r]){case l:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case p:return{offset:1,sibling:!1};default:return null}}(e,1===c(T,!0).length,n,m);if(!w)return;Fo.includes(m)&&s.preventDefault();var _=function(e){if(e){var t=e,n=e.querySelector("a");(null==n?void 0:n.getAttribute("href"))&&(t=n);var r=g.get(e);l(r),h(),f.current=ln((function(){d.current===r&&t.focus()}))}};if(w.sibling||!E){var k=Qo(E&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(E):o.current,v,E,w.offset);_(k)}else if(w.inlineTrigger)u(T);else if(w.offset>0)u(T,!0),h(),f.current=ln((function(){b();var e=E.getAttribute("aria-controls"),t=Qo(document.getElementById(e),v);_(t)}),5);else if(w.offset<0){var S=c(T,!0),O=S[S.length-2],C=y.get(O);u(O,!1),_(C)}}null==p||p(s)}}(pe,Ve,le,ce,se,Pe,Ie,Qe,(function(e,t){var n=null!=t?t:!ge.includes(e);$e(e,n)}),te);s.useEffect((function(){ae(!0)}),[]);var Ye="horizontal"!==pe||w?re:re.map((function(e,t){return s.createElement(Sn,{key:e.key,overflowDisabled:t>he},e)})),Je=s.createElement(bn,_e({id:y,ref:se,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:Kn,className:m()(o,"".concat(o,"-root"),"".concat(o,"-").concat(pe),l,(n={},i(n,"".concat(o,"-inline-collapsed"),fe),i(n,"".concat(o,"-rtl"),le),n)),dir:v,style:c,role:"menu",tabIndex:p,data:Ye,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?re.slice(-t):null;return s.createElement(Ao,{eventKey:Ko,title:Y,disabled:ve,internalPopupClose:0===t,popupClassName:J},n)},maxCount:"horizontal"!==pe||w?bn.INVALIDATE:bn.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){me(e)},onKeyDown:We},ne));return s.createElement(jn.Provider,{value:ce},s.createElement(Sn,{prefixCls:o,mode:pe,openKeys:ge,rtl:le,disabled:T,motion:oe?q:null,defaultMotions:oe?G:null,activeKey:Ve,onActive:Ue,onInactive:qe,selectedKeys:Be,inlineIndent:U,subMenuOpenDelay:k,subMenuCloseDelay:O,forceSubMenuRender:C,builtinPlacements:z,triggerSubMenuAction:K,getPopupContainer:He,itemIcon:$,expandIcon:H,onItemClick:ze,onOpenChange:$e},s.createElement(Mn.Provider,{value:je},Je),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement(Ln.Provider,{value:Me},re))))};ea.Item=Kn,ea.SubMenu=Ao,ea.ItemGroup=Jo,ea.Divider=Xo;var ta=ea,na={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},ra=function(e,t){return s.createElement(ue,a(a({},e),{},{ref:t,icon:na}))};ra.displayName="EllipsisOutlined";var ia=s.forwardRef(ra),oa=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function aa(e,t){if(e.length!==t.length)return!1;for(var n=0;n=0||r.indexOf("Bottom")>=0?o.top="".concat(i.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(o.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?o.left="".concat(i.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(o.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(o.left," ").concat(o.top)}},overlayInnerStyle:R,arrowContent:s.createElement("span",{className:"".concat(S,"-arrow-content"),style:x}),motion:{motionName:Sa(O,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),C?la(D,{className:I}):D)}));xa.displayName="Tooltip",xa.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var Na=xa,Aa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);id)&&(V=(q=q.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var ts=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&es(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=is&&(is=t+1),ns.set(e,t),rs.set(t,e)},cs="style["+Ja+'][data-styled-version="5.3.3"]',ls=new RegExp("^"+Ja+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),us=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Ja))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(Ja,"active"),r.setAttribute("data-styled-version","5.3.3");var a=fs();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},hs=function(){function e(e){var t=this.element=ds(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(l+=e+",")})),r+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),Es=/(a)(d)/gi,Ts=function(e){return String.fromCharCode(e+(e>25?39:97))};function ws(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ts(t%52)+n;return(Ts(t%52)+n).replace(Es,"$1-$2")}var _s=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ks=function(e){return _s(5381,e)};function Ss(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=_s(this.baseHash,n.hash),u="",p=0;p>>0);if(!t.hasNameForId(r,m)){var v=n(u,"."+m,void 0,r);t.insertRules(r,m,v)}i.push(m)}}return i.join(" ")},e}(),xs=/^\s*\/\/.*$/gm,Ns=[":","[",".","#"];function As(e){var t,n,r,i,o=void 0===e?$a:e,a=o.options,s=void 0===a?$a:a,c=o.plugins,l=void 0===c?za:c,u=new ja(s),p=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,c,l,u,p){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(i[0]+r),"";default:return r+(0===p?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),d=function(e,r,o){return 0===r&&-1!==Ns.indexOf(o[n.length])||o.match(i)?e:"."+t};function h(e,o,a,s){void 0===s&&(s="&");var c=e.replace(xs,""),l=o&&a?a+" "+o+" { "+c+" }":c;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),u(a||!o?"":o,l)}return u.use([].concat(l,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,d))},f,function(e){if(-2===e){var t=p;return p=[],t}}])),h.hash=l.length?l.reduce((function(e,t){return t.name||es(15),_s(e,t.name)}),5381).toString():"",h}var Ds=c().createContext(),Ls=(Ds.Consumer,c().createContext()),Is=(Ls.Consumer,new bs),Ps=As();function Rs(){return(0,s.useContext)(Ds)||Is}function Ms(e){var t=(0,s.useState)(e.stylisPlugins),n=t[0],r=t[1],i=Rs(),o=(0,s.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,s.useMemo)((function(){return As({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,s.useEffect)((function(){mt()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),c().createElement(Ds.Provider,{value:o},c().createElement(Ls.Provider,{value:a},e.children))}var js=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ps);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return es(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Ps),this.name+e.hash},e}(),Fs=/([A-Z])/,Vs=/([A-Z])/g,Qs=/^ms-/,Us=function(e){return"-"+e.toLowerCase()};function qs(e){return Fs.test(e)?e.replace(Vs,Us).replace(Qs,"-ms-"):e}var Gs=function(e){return null==e||!1===e||""===e};function Bs(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,Hs=/(^-|-$)/g;function Ws(e){return e.replace($s,"-").replace(Hs,"")}function Ys(e){return"string"==typeof e&&!0}var Js=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Xs=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Zs(e,t,n){var r=e[n];Js(t)&&Js(r)?ec(r,t):e[n]=t}function ec(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>>0)}("5.3.3"+n+nc[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,p=t.displayName,f=void 0===p?function(e){return Ys(e)?"styled."+e:"Styled("+Wa(e)+")"}(e):p,d=t.displayName&&t.componentId?Ws(t.displayName)+"-"+t.componentId:t.componentId||u,h=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,m=t.shouldForwardProp;r&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var v,y=new Cs(n,d,r?e.componentStyle:void 0),g=y.isStatic&&0===a.length,b=function(e,t){return function(e,t,n,r){var i=e.attrs,o=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,l=e.shouldForwardProp,u=e.styledComponentId,p=e.target,f=function(e,t,n){void 0===e&&(e=$a);var r=Ga({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in Ha(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(function(e,t,n){return void 0===n&&(n=$a),e.theme!==n.theme&&e.theme||t||n.theme}(t,(0,s.useContext)(tc),a)||$a,t,i),d=f[0],h=f[1],m=function(e,t,n,r){var i=Rs(),o=(0,s.useContext)(Ls)||Ps;return t?e.generateAndInjectStyles($a,i,o):e.generateAndInjectStyles(n,i,o)}(o,r,d),v=n,y=h.$as||t.$as||h.as||t.as||p,g=Ys(y),b=h!==t?Ga({},t,{},h):t,E={};for(var T in b)"$"!==T[0]&&"as"!==T&&("forwardedAs"===T?E.as=b[T]:(l?l(T,Qa,y):!g||Qa(T))&&(E[T]=b[T]));return t.style&&h.style!==t.style&&(E.style=Ga({},t.style,{},h.style)),E.className=Array.prototype.concat(c,u,m!==u?m:null,t.className,h.className).filter(Boolean).join(" "),E.ref=v,(0,s.createElement)(y,E)}(v,e,t,g)};return b.displayName=f,(v=c().forwardRef(b)).attrs=h,v.componentStyle=y,v.displayName=f,v.shouldForwardProp=m,v.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):za,v.styledComponentId=d,v.target=r?e.target:e,v.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(Ys(e)?e:Ws(Wa(e)));return rc(e,Ga({},i,{attrs:h,componentId:o}),n)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?ec({},e.defaultProps,t):t}}),v.toString=function(){return"."+v.styledComponentId},i&&qa()(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var ic,oc=function(e){return function e(t,n,r){if(void 0===r&&(r=$a),!(0,yt.isValidElementType)(n))return es(1,String(n));var i=function(){return t(n,r,zs.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,Ga({},r,{},i))},i.attrs=function(i){return e(t,n,Ga({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(rc,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){oc[e]=oc(e)})),ic=function(e,t){this.rules=e,this.componentId=t,this.isStatic=Ss(e),bs.registerId(this.componentId+1)}.prototype,ic.createStyles=function(e,t,n,r){var i=r(Bs(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},ic.removeStyles=function(e,t){t.clearRules(this.componentId+e)},ic.renderStyles=function(e,t,n,r){e>2&&bs.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=fs();return""},this.getStyleTags=function(){return e.sealed?es(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return es(2);var n=((t={})[Ja]="",t["data-styled-version"]="5.3.3",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=fs();return r&&(n.nonce=r),[c().createElement("style",Ga({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new bs({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?es(2):c().createElement(Ms,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return es(3)}}();var ac,sc=oc,cc=n(5676),lc=function(e){return s.createElement(ze,null,(function(t){var n,r=t.getPrefixCls,o=t.direction,a=e.prefixCls,c=e.type,l=void 0===c?"horizontal":c,u=e.orientation,p=void 0===u?"center":u,f=e.className,d=e.children,h=e.dashed,v=e.plain,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0?"-".concat(p):p,E=!!d,T=m()(g,"".concat(g,"-").concat(l),(i(n={},"".concat(g,"-with-text"),E),i(n,"".concat(g,"-with-text").concat(b),E),i(n,"".concat(g,"-dashed"),!!h),i(n,"".concat(g,"-plain"),!!v),i(n,"".concat(g,"-rtl"),"rtl"===o),n),f);return s.createElement("div",_e({className:T},y,{role:"separator"}),d&&s.createElement("span",{className:"".concat(g,"-inner-text")},d))}))},uc=(0,s.createContext)({}),pc=["xxl","xl","lg","md","sm","xs"],fc={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},dc=new Map,hc=-1,mc={},vc={matchHandlers:{},dispatch:function(e){return mc=e,dc.forEach((function(e){return e(mc)})),dc.size>=1},subscribe:function(e){return dc.size||this.register(),hc+=1,dc.set(hc,e),e(mc),hc},unsubscribe:function(e){dc.delete(e),dc.size||this.unregister()},unregister:function(){var e=this;Object.keys(fc).forEach((function(t){var n=fc[t],r=e.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),dc.clear()},register:function(){var e=this;Object.keys(fc).forEach((function(t){var n=fc[t],r=function(n){var r=n.matches;e.dispatch(_e(_e({},mc),i({},t,r)))},o=window.matchMedia(n);o.addListener(r),e.matchHandlers[n]={mql:o,listener:r},r(o)}))}},yc=(Ea("top","middle","bottom","stretch"),Ea("start","end","center","space-around","space-between"),s.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.justify,a=e.align,c=e.className,l=e.style,u=e.children,p=e.gutter,d=void 0===p?0:p,h=e.wrap,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0?x[0]/-2:void 0,L=x[1]>0?x[1]/-2:void 0;if(D&&(A.marginLeft=D,A.marginRight=D),k){var I=f(x,2);A.rowGap=I[1]}else L&&(A.marginTop=L,A.marginBottom=L);var P=s.useMemo((function(){return{gutter:x,wrap:h,supportFlexGap:k}}),[x,h,k]);return s.createElement(uc.Provider,{value:P},s.createElement("div",_e({},v,{className:N,style:_e(_e({},A),l),ref:t}),u))})));yc.displayName="Row";var gc=yc,bc=["xs","sm","md","lg","xl","xxl"],Ec=s.forwardRef((function(e,t){var n,r=s.useContext(Ke),o=r.getPrefixCls,a=r.direction,c=s.useContext(uc),l=c.gutter,u=c.wrap,p=c.supportFlexGap,f=e.prefixCls,d=e.span,h=e.order,v=e.offset,g=e.push,b=e.pull,E=e.className,T=e.children,w=e.flex,_=e.style,k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0){var N=l[0]/2;x.paddingLeft=N,x.paddingRight=N}if(l&&l[1]>0&&!p){var A=l[1]/2;x.paddingTop=A,x.paddingBottom=A}return w&&(x.flex=function(e){return"number"==typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(w),!1!==u||x.minWidth||(x.minWidth=0)),s.createElement("div",_e({},k,{style:_e(_e({},x),_),className:C,ref:t}),T)}));Ec.displayName="Col";var Tc=Ec,wc=function(e){var t=e.prefixCls,n=e.className,r=e.hoverable,o=void 0===r||r,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);it?"left":"right"})})),2),Q=V[0],U=V[1],q=f(Vc(0,(function(e,t){!F&&A&&A({direction:e>t?"top":"bottom"})})),2),G=q[0],B=q[1],K=f((0,s.useState)(0),2),z=K[0],$=K[1],H=f((0,s.useState)(0),2),W=H[0],Y=H[1],J=f((0,s.useState)(0),2),X=J[0],Z=J[1],ee=f((0,s.useState)(0),2),te=ee[0],ne=ee[1],re=f((0,s.useState)(null),2),ie=re[0],oe=re[1],ae=f((0,s.useState)(null),2),se=ae[0],ce=ae[1],le=f((0,s.useState)(0),2),ue=le[0],pe=le[1],fe=f((0,s.useState)(0),2),de=fe[0],he=fe[1],me=(o=new Map,c=(0,s.useRef)([]),l=f((0,s.useState)({}),2)[1],u=(0,s.useRef)("function"==typeof o?o():o),p=_c((function(){var e=u.current;c.current.forEach((function(t){e=t(e)})),c.current=[],u.current=e,l({})})),[u.current,function(e){c.current.push(e),p()}]),ve=f(me,2),ye=ve[0],ge=ve[1],be=function(e,t,n){return(0,s.useMemo)((function(){for(var n,r=new Map,i=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Oc,o=i.left+i.width,s=0;ske?ke:e}F?w?(Te=0,ke=Math.max(0,z-ie)):(Te=Math.min(0,ie-z),ke=0):(Te=Math.min(0,se-W),ke=0);var Oe=(0,s.useRef)(),Ce=f((0,s.useState)(),2),xe=Ce[0],Ne=Ce[1];function Ae(){Ne(Date.now())}function De(){window.clearTimeout(Oe.current)}function Le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=be.get(e)||{width:0,height:0,left:0,right:0,top:0};if(F){var n=Q;w?t.rightQ+ie&&(n=t.right+t.width-ie):t.left<-Q?n=-t.left:t.left+t.width>-Q+ie&&(n=-(t.left+t.width-ie)),B(0),U(Se(n))}else{var r=G;t.top<-G?r=-t.top:t.top+t.height>-G+se&&(r=-(t.top+t.height-se)),U(0),B(Se(r))}}!function(e,t){var n=f((0,s.useState)(),2),r=n[0],i=n[1],o=f((0,s.useState)(0),2),a=o[0],c=o[1],l=f((0,s.useState)(0),2),u=l[0],p=l[1],d=f((0,s.useState)(),2),h=d[0],m=d[1],v=(0,s.useRef)(),y=(0,s.useRef)(),g=(0,s.useRef)(null);g.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(v.current)},onTouchMove:function(e){if(r){e.preventDefault();var n=e.touches[0],o=n.screenX,s=n.screenY;i({x:o,y:s});var l=o-r.x,u=s-r.y;t(l,u);var f=Date.now();c(f),p(f-a),m({x:l,y:u})}},onTouchEnd:function(){if(r&&(i(null),m(null),h)){var e=h.x/u,n=h.y/u,o=Math.abs(e),a=Math.abs(n);if(Math.max(o,a)<.1)return;var s=e,c=n;v.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(c)<.01?window.clearInterval(v.current):t(20*(s*=Fc),20*(c*=Fc))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,i=0,o=Math.abs(n),a=Math.abs(r);o===a?i="x"===y.current?n:r:o>a?(i=n,y.current="x"):(i=r,y.current="y"),t(-i,-i)&&e.preventDefault()}},s.useEffect((function(){function t(e){g.current.onTouchMove(e)}function n(e){g.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){g.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){g.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(D,(function(e,t){function n(e,t){e((function(e){return Se(e+t)}))}if(F){if(ie>=z)return!1;n(U,e)}else{if(se>=W)return!1;n(B,t)}return De(),Ae(),!0})),(0,s.useEffect)((function(){return De(),xe&&(Oe.current=window.setTimeout((function(){Ne(0)}),100)),De}),[xe]);var Ie=function(e,t,n,r,i){var o,a,c,l=i.tabs,u=i.tabPosition,p=i.rtl;["top","bottom"].includes(u)?(o="width",a=p?"right":"left",c=Math.abs(t.left)):(o="height",a="top",c=-t.top);var f=t[o],d=r[o],h=f;return n[o]+d>f&&(h=f-d),(0,s.useMemo)((function(){if(!l.length)return[0,0];for(var t=l.length,n=t,r=0;rc+h){n=r-1;break}}for(var s=0,u=t-1;u>=0;u-=1)if((e.get(l[u].key)||Cc)[a]0,We=Q+ie1&&void 0!==arguments[1]?arguments[1]:1,n=ll++,r=t;function i(){(r-=1)<=0?(e(),delete ul[n]):ul[n]=ln(i)}return ul[n]=ln(i),n}function fl(e){return!e||null===e.offsetParent||e.hidden}function dl(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}pl.cancel=function(e){void 0!==e&&(ln.cancel(ul[e]),delete ul[e])},pl.ids=ul;var hl=function(e){xe(n,e);var t=Le(n);function n(){var e;return ke(this,n),(e=t.apply(this,arguments)).containerRef=s.createRef(),e.animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){var r,i,o=e.props,a=o.insertExtraNode;if(!(o.disabled||!t||fl(t)||t.className.indexOf("-leave")>=0)){e.extraNode=document.createElement("div");var s=Ae(e).extraNode,c=e.context.getPrefixCls;s.className="".concat(c(""),"-click-animating-node");var l=e.getAttributeName();if(t.setAttribute(l,"true"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&dl(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){s.style.borderColor=n;var u=(null===(r=t.getRootNode)||void 0===r?void 0:r.call(t))||t.ownerDocument,p=u instanceof Document?u.body:null!==(i=u.firstChild)&&void 0!==i?i:u;al=Y("\n [".concat(c(""),"-click-animating-without-extra-node='true']::after, .").concat(c(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:e.csp,attachTo:p})}a&&t.appendChild(s),["transition","animation"].forEach((function(n){t.addEventListener("".concat(n,"start"),e.onTransitionStart),t.addEventListener("".concat(n,"end"),e.onTransitionEnd)}))}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!fl(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),pl.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=pl((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;if(e.csp=n,!s.isValidElement(r))return r;var i=e.containerRef;return Tt(r)&&(i=Et(r.ref,e.containerRef)),la(r,{ref:i})},e}return Oe(n,[{key:"componentDidMount",value:function(){var e=this.containerRef.current;e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){var t=this;if(e&&e!==this.extraNode&&e instanceof Element){var n=this.props.insertExtraNode,r=this.getAttributeName();e.setAttribute(r,"false"),al&&(al.innerHTML=""),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach((function(n){e.removeEventListener("".concat(n,"start"),t.onTransitionStart),e.removeEventListener("".concat(n,"end"),t.onTransitionEnd)}))}}},{key:"render",value:function(){return s.createElement(ze,null,this.renderWave)}}]),n}(s.Component);hl.contextType=Ke;var ml={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},vl=function(e,t){return s.createElement(ue,a(a({},e),{},{ref:t,icon:ml}))};vl.displayName="LoadingOutlined";var yl=s.forwardRef(vl),gl=function(){return{width:0,opacity:0,transform:"scale(0)"}},bl=function(e){return{width:e.scrollWidth,opacity:1,transform:"scale(1)"}},El=function(e){var t=e.prefixCls,n=!!e.loading;return e.existIcon?c().createElement("span",{className:"".concat(t,"-loading-icon")},c().createElement(yl,null)):c().createElement(Br,{visible:n,motionName:"".concat(t,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:gl,onAppearActive:bl,onEnterStart:gl,onEnterActive:bl,onLeaveStart:bl,onLeaveActive:gl},(function(e,n){var r=e.className,i=e.style;return c().createElement("span",{className:"".concat(t,"-loading-icon"),style:i,ref:n},c().createElement(yl,{className:r}))}))},Tl=/^[\u4e00-\u9fa5]{2}$/,wl=Tl.test.bind(Tl);function _l(e){return"text"===e||"link"===e}Ea("default","primary","ghost","dashed","link","text"),Ea("default","circle","round"),Ea("submit","button","reset");var kl=function(e,t){var n,r,o=e.loading,a=void 0!==o&&o,c=e.prefixCls,l=e.type,u=e.danger,p=e.shape,d=void 0===p?"default":p,h=e.size,v=e.className,g=e.children,b=e.icon,E=e.ghost,T=void 0!==E&&E,w=e.block,_=void 0!==w&&w,k=e.htmlType,S=void 0===k?"button":k,O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(b,"` at https://ant.design/components/icon")),La(!(T&&_l(l)),"Button","`link` or `text` button can't be a `ghost` button.");var q=R("btn",c),G=!1!==M,B="";switch(h||C){case"large":B="lg";break;case"small":B="sm"}var K=N?"loading":b,z=m()(q,(i(n={},"".concat(q,"-").concat(l),l),i(n,"".concat(q,"-").concat(d),"default"!==d&&d),i(n,"".concat(q,"-").concat(B),B),i(n,"".concat(q,"-icon-only"),!g&&0!==g&&!!K),i(n,"".concat(q,"-background-ghost"),T&&!_l(l)),i(n,"".concat(q,"-loading"),N),i(n,"".concat(q,"-two-chinese-chars"),L&&G),i(n,"".concat(q,"-block"),_),i(n,"".concat(q,"-dangerous"),!!u),i(n,"".concat(q,"-rtl"),"rtl"===j),n),v),$=b&&!N?b:s.createElement(El,{existIcon:!!b,prefixCls:q,loading:!!N}),H=g||0===g?function(e,t){var n=!1,r=[];return s.Children.forEach(e,(function(e){var t=y(e),i="string"===t||"number"===t;if(n&&i){var o=r.length-1,a=r[o];r[o]="".concat(a).concat(e)}else r.push(e);n=i})),s.Children.map(r,(function(e){return function(e,t){if(null!=e){var n,r=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&wl(e.props.children)?la(e,{children:e.props.children.split("").join(r)}):"string"==typeof e?wl(e)?s.createElement("span",null,e.split("").join(r)):s.createElement("span",null,e):(n=e,s.isValidElement(n)&&n.type===s.Fragment?s.createElement("span",null,e):e)}}(e,t)}))}(g,Q()&&G):null,W=nt(O,["navigate"]);if(void 0!==W.href)return s.createElement("a",_e({},W,{className:z,onClick:U,ref:F}),$,H);var Y=s.createElement("button",_e({},O,{type:S,className:z,onClick:U,ref:F}),$,H);return _l(l)?Y:s.createElement(hl,{disabled:!!N},Y)},Sl=s.forwardRef(kl);Sl.displayName="Button",Sl.Group=function(e){return s.createElement(ze,null,(function(t){var n,r=t.getPrefixCls,o=t.direction,a=e.prefixCls,c=e.size,l=e.className,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var h=n(4184),m=n.n(h),v=(0,s.createContext)({});function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function b(e){return e<=1?100*Number(e)+"%":e}function E(e){return 1===e.length?"0"+e:String(e)}function T(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function w(e){return _(e)/255}function _(e){return parseInt(e,16)}var k={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function S(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(k[e])e=k[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=N.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=N.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=N.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=N.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=N.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=N.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=N.hex8.exec(e))?{r:_(n[1]),g:_(n[2]),b:_(n[3]),a:w(n[4]),format:t?"name":"hex8"}:(n=N.hex6.exec(e))?{r:_(n[1]),g:_(n[2]),b:_(n[3]),format:t?"name":"hex"}:(n=N.hex4.exec(e))?{r:_(n[1]+n[1]),g:_(n[2]+n[2]),b:_(n[3]+n[3]),a:w(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=N.hex3.exec(e))&&{r:_(n[1]+n[1]),g:_(n[2]+n[2]),b:_(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(A(e.r)&&A(e.g)&&A(e.b)?(t=function(e,t,n){return{r:255*g(e,255),g:255*g(t,255),b:255*g(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):A(e.h)&&A(e.s)&&A(e.v)?(r=b(e.s),i=b(e.v),t=function(e,t,n){e=6*g(e,360),t=g(t,100),n=g(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),c=r%6;return{r:255*[n,a,o,o,s,n][c],g:255*[s,n,n,a,o,o][c],b:255*[o,o,s,n,n,a][c]}}(e.h,r,i),a=!0,s="hsv"):A(e.h)&&A(e.s)&&A(e.l)&&(r=b(e.s),o=b(e.l),t=function(e,t,n){var r,i,o;if(e=g(e,360),t=g(t,100),n=g(n,100),0===t)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=T(s,a,e+1/3),i=T(s,a,e),o=T(s,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var O="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",C="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",x="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",N={CSS_UNIT:new RegExp(O),rgb:new RegExp("rgb"+C),rgba:new RegExp("rgba"+x),hsl:new RegExp("hsl"+C),hsla:new RegExp("hsla"+x),hsv:new RegExp("hsv"+C),hsva:new RegExp("hsva"+x),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function A(e){return Boolean(N.CSS_UNIT.exec(String(e)))}var D=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function L(e){var t=function(e,t,n){e=g(e,255),t=g(t,255),n=g(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,c=0===r?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function M(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function j(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function F(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=S(e),i=5;i>0;i-=1){var o=L(r),a=I(S({h:R(o,i,!0),s:M(o,i,!0),v:j(o,i,!0)}));n.push(a)}n.push(I(r));for(var s=1;s<=4;s+=1){var c=L(r),l=I(S({h:R(c,s),s:M(c,s),v:j(c,s)}));n.push(l)}return"dark"===t.theme?D.map((function(e){var r=e.index,i=e.opacity;return I(P(S(t.backgroundColor||"#141414"),S(n[r]),100*i))})):n}var V={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Q={},q={};Object.keys(V).forEach((function(e){Q[e]=F(V[e]),Q[e].primary=Q[e][5],q[e]=F(V[e],{theme:"dark",backgroundColor:"#141414"}),q[e].primary=q[e][5]})),Q.red,Q.volcano,Q.gold,Q.orange,Q.yellow,Q.lime,Q.green,Q.cyan,Q.blue,Q.geekblue,Q.purple,Q.magenta,Q.grey;var U={};function G(e,t){}var B=function(e,t){!function(e,t,n){t||U[n]||(e(!1,n),U[n]=!0)}(G,e,t)};function K(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var z="rc-util-key";function $(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function H(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!K())return null;var r,i=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(i.nonce=null===(r=n.csp)||void 0===r?void 0:r.nonce),i.innerHTML=e;var o=$(n),a=o.firstChild;return n.prepend&&o.prepend?o.prepend(i):n.prepend&&a?o.insertBefore(i,a):o.appendChild(i),i}var W=new Map;function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=$(n);if(!W.has(r)){var i=H("",n),o=i.parentNode;W.set(r,o),o.removeChild(i)}var a,s,c,l=Array.from(W.get(r).children).find((function(e){return"STYLE"===e.tagName&&e[z]===t}));if(l)return(null===(a=n.csp)||void 0===a?void 0:a.nonce)&&l.nonce!==(null===(s=n.csp)||void 0===s?void 0:s.nonce)&&(l.nonce=null===(c=n.csp)||void 0===c?void 0:c.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;var u=H(e,n);return u[z]=t,u}function J(e){return"object"===y(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===y(e.icon)||"function"==typeof e.icon)}function X(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):t[n]=r,t}),{})}function Z(e,t,n){return n?c().createElement(e.tag,a(a({key:t},X(e.attrs)),n),(e.children||[]).map((function(n,r){return Z(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):c().createElement(e.tag,a({key:t},X(e.attrs)),(e.children||[]).map((function(n,r){return Z(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function ee(e){return F(e)[0]}function te(e){return e?Array.isArray(e)?e:[e]:[]}var ne="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",re=["icon","className","onClick","style","primaryColor","secondaryColor"],ie={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},oe=function(e){var t,n,r=e.icon,i=e.className,o=e.onClick,c=e.style,l=e.primaryColor,u=e.secondaryColor,p=d(e,re),f=ie;if(l&&(f={primaryColor:l,secondaryColor:u||ee(l)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne,t=(0,s.useContext)(v).csp;(0,s.useEffect)((function(){Y(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=J(r),n="icon should be icon definiton, but got ".concat(r),B(t,"[@ant-design/icons] ".concat(n)),!J(r))return null;var h=r;return h&&"function"==typeof h.icon&&(h=a(a({},h),{},{icon:h.icon(f.primaryColor,f.secondaryColor)})),Z(h.icon,"svg-".concat(h.name),a({className:i,onClick:o,style:c,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},p))};oe.displayName="IconReact",oe.getTwoToneColors=function(){return a({},ie)},oe.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;ie.primaryColor=t,ie.secondaryColor=n||ee(t),ie.calculated=!!n};var ae=oe;function se(e){var t=f(te(e),2),n=t[0],r=t[1];return ae.setTwoToneColors({primaryColor:n,secondaryColor:r})}var ce=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];se("#1890ff");var le=s.forwardRef((function(e,t){var n,r=e.className,o=e.icon,c=e.spin,l=e.rotate,u=e.tabIndex,p=e.onClick,h=e.twoToneColor,y=d(e,ce),g=s.useContext(v).prefixCls,b=void 0===g?"anticon":g,E=m()(b,(i(n={},"".concat(b,"-").concat(o.name),!!o.name),i(n,"".concat(b,"-spin"),!!c||"loading"===o.name),n),r),T=u;void 0===T&&p&&(T=-1);var w=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,_=f(te(h),2),k=_[0],S=_[1];return s.createElement("span",a(a({role:"img","aria-label":o.name},y),{},{ref:t,tabIndex:T,onClick:p,className:E}),s.createElement(ae,{icon:o,primaryColor:k,secondaryColor:S,style:w}))}));le.displayName="AntdIcon",le.getTwoToneColor=function(){var e=ae.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},le.setTwoToneColor=se;var ue=le,pe=function(e,t){return s.createElement(ue,a(a({},e),{},{ref:t,icon:l}))};pe.displayName="CodeOutlined";var fe=s.forwardRef(pe),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},he=function(e,t){return s.createElement(ue,a(a({},e),{},{ref:t,icon:de}))};he.displayName="QuestionCircleOutlined";var me=s.forwardRef(he),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},ye=function(e,t){return s.createElement(ue,a(a({},e),{},{ref:t,icon:ve}))};ye.displayName="RightOutlined";var ge=s.forwardRef(ye),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ee=function(e,t){return s.createElement(ue,a(a({},e),{},{ref:t,icon:be}))};Ee.displayName="LeftOutlined";var Te=s.forwardRef(Ee);function we(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(){return _e=Object.assign||function(e){for(var t=1;t0),i(t,"".concat(c,"-rtl"),"rtl"===n),t),l),y=s.useMemo((function(){return{siderHook:{addSider:function(e){a((function(t){return[].concat(we(t),[e])}))},removeSider:function(e){a((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return s.createElement(He.Provider,{value:y},s.createElement(d,_e({className:v},h),u))})),Xe=We({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(Ye),Ze=We({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(Ye),et=We({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(Ye),tt=Je;function nt(e,t){var n=a({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var rt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},it=function(e,t){return s.createElement(ue,a(a({},e),{},{ref:t,icon:rt}))};it.displayName="BarsOutlined";var ot,at=s.forwardRef(it),st={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ct=s.createContext({}),lt=(ot=0,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ot+=1,"".concat(e).concat(ot)}),ut=s.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.trigger,a=e.children,c=e.defaultCollapsed,l=void 0!==c&&c,u=e.theme,p=void 0===u?"dark":u,d=e.style,h=void 0===d?{}:d,v=e.collapsible,y=void 0!==v&&v,g=e.reverseArrow,b=void 0!==g&&g,E=e.width,T=void 0===E?200:E,w=e.collapsedWidth,_=void 0===w?80:w,k=e.zeroWidthTriggerStyle,S=e.breakpoint,O=e.onCollapse,C=e.onBreakpoint,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i1&&void 0!==arguments[1]?arguments[1]:{},n=[];return c().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(gt(e)):(0,yt.isFragment)(e)&&e.props?n=n.concat(gt(e.props.children,t)):n.push(e))})),n}function bt(e,t){"function"==typeof e?e(t):"object"===y(e)&&e&&"current"in e&&(e.current=t)}function Et(){for(var e=arguments.length,t=new Array(e),n=0;n0},e.prototype.connect_=function(){Ot&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),At?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Ot&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Nt.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Lt=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),Gt="undefined"!=typeof WeakMap?new WeakMap:new St,Bt=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Dt.getInstance(),r=new Ut(t,n,this);Gt.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Bt.prototype[e]=function(){var t;return(t=Gt.get(this))[e].apply(t,arguments)}}));var Kt=void 0!==Ct.ResizeObserver?Ct.ResizeObserver:Bt,zt=new Map,$t=new Kt((function(e){e.forEach((function(e){var t,n=e.target;null===(t=zt.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),Ht=function(e){xe(n,e);var t=Le(n);function n(){return ke(this,n),t.apply(this,arguments)}return Oe(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component),Wt=s.createContext(null);function Yt(e){var t=e.children,n=e.disabled,r=s.useRef(null),i=s.useRef(null),o=s.useContext(Wt),c=s.useRef({width:0,height:0,offsetWidth:0,offsetHeight:0}),l=s.isValidElement(t)&&Tt(t),u=l?t.ref:null,p=s.useMemo((function(){return Et(u,r)}),[u,r]),f=s.useRef(e);f.current=e;var d=s.useCallback((function(e){var t=f.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),s=i.width,l=i.height,u=e.offsetWidth,p=e.offsetHeight,d=Math.floor(s),h=Math.floor(l);if(c.current.width!==d||c.current.height!==h||c.current.offsetWidth!==u||c.current.offsetHeight!==p){var m={width:d,height:h,offsetWidth:u,offsetHeight:p};c.current=m;var v=u===Math.round(s)?s:u,y=p===Math.round(l)?l:p,g=a(a({},m),{},{offsetWidth:v,offsetHeight:y});null==o||o(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return s.useEffect((function(){var e,t,o=kt(r.current)||kt(i.current);return o&&!n&&(e=o,t=d,zt.has(e)||(zt.set(e,new Set),$t.observe(e)),zt.get(e).add(t)),function(){return function(e,t){zt.has(e)&&(zt.get(e).delete(t),zt.get(e).size||($t.unobserve(e),zt.delete(e)))}(o,d)}}),[r.current,n]),s.createElement(Ht,{ref:i},l?s.cloneElement(t,{ref:p}):t)}function Jt(e){return gt(e.children).map((function(t,n){var r=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return s.createElement(Yt,_e({},e,{key:r}),t)}))}Jt.Collection=function(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),i=s.useRef([]),o=s.useContext(Wt),a=s.useCallback((function(e,t,a){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){s===r.current&&(null==n||n(i.current),i.current=[])})),null==o||o(e,t,a)}),[n,o]);return s.createElement(Wt.Provider,{value:a},t)};var Xt=Jt,Zt=void 0;function en(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,c=e.responsive,l=e.registerSize,u=e.itemKey,p=e.className,f=e.style,h=e.children,v=e.display,y=e.order,g=e.component,b=void 0===g?"div":g,E=d(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","className","style","children","display","order","component"]),T=c&&!v;function w(e){l(u,e)}s.useEffect((function(){return function(){w(null)}}),[]);var _,k=o&&i!==Zt?o(i):h;r||(_={opacity:T?0:1,height:T?0:Zt,overflowY:T?"hidden":Zt,order:c?y:Zt,pointerEvents:T?"none":Zt,position:T?"absolute":Zt});var S={};T&&(S["aria-hidden"]=!0);var O=s.createElement(b,_e({className:m()(!r&&n,p),style:a(a({},_),f)},S,E,{ref:t}),k);return c&&(O=s.createElement(Xt,{onResize:function(e){w(e.offsetWidth)}},O)),O}var tn=s.forwardRef(en);tn.displayName="Item";var nn=tn,rn=function(e){return+setTimeout(e,16)},on=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(rn=function(e){return window.requestAnimationFrame(e)},on=function(e){return window.cancelAnimationFrame(e)});var an=0,sn=new Map;function cn(e){sn.delete(e)}function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=an+=1;function r(t){if(0===t)cn(n),e();else{var i=rn((function(){r(t-1)}));sn.set(n,i)}}return r(t),n}ln.cancel=function(e){var t=sn.get(e);return cn(t),on(t)};var un=function(e,t){var n=s.useContext(dn);if(!n){var r=e.component,i=void 0===r?"div":r,o=d(e,["component"]);return s.createElement(i,_e({},o,{ref:t}))}var a=n.className,c=d(n,["className"]),l=e.className,u=d(e,["className"]);return s.createElement(dn.Provider,{value:null},s.createElement(nn,_e({ref:t,className:m()(a,l)},c,u)))},pn=s.forwardRef(un);pn.displayName="RawItem";var fn=pn,dn=s.createContext(null),hn="responsive",mn="invalidate";function vn(e){return"+ ".concat(e.length," ...")}function yn(e,t){var n,r,i,o,c,l=e.prefixCls,u=void 0===l?"rc-overflow":l,p=e.data,h=void 0===p?[]:p,v=e.renderItem,y=e.renderRawItem,g=e.itemKey,b=e.itemWidth,E=void 0===b?10:b,T=e.ssr,w=e.style,_=e.className,k=e.maxCount,S=e.renderRest,O=e.renderRawRest,C=e.suffix,x=e.component,N=void 0===x?"div":x,A=e.itemComponent,D=e.onVisibleChange,L=d(e,["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"]),I=(n=f((0,s.useState)({}),2)[1],r=(0,s.useRef)([]),i=(0,s.useRef)(!1),o=0,c=0,(0,s.useEffect)((function(){return function(){i.current=!0}}),[]),function(e){var t=o;return o+=1,r.current.lengthk,fe=(0,s.useMemo)((function(){var e=h;return le?e=null===M&&P?h:h.slice(0,Math.min(h.length,F/E)):"number"==typeof k&&(e=h.slice(0,k)),e}),[h,E,M,k,le]),de=(0,s.useMemo)((function(){return le?h.slice(re+1):h.slice(fe.length)}),[h,fe,le,re]),he=(0,s.useCallback)((function(e,t){var n;return"function"==typeof g?g(e):null!==(n=g&&(null==e?void 0:e[g]))&&void 0!==n?n:t}),[g]),me=(0,s.useCallback)(v||function(e){return e},[v]);function ve(e,t){ne(e),t||(ae(eF){ve(r-1),Z(e-i-W+z);break}}C&&ge(0)+W>F&&Z(null)}}),[F,Q,z,W,he,fe]);var be=oe&&!!de.length,Ee={};null!==X&&le&&(Ee={position:"absolute",left:X,top:0});var Te,we={prefixCls:se,responsive:le,component:A,invalidate:ue},ke=y?function(e,t){var n=he(e,t);return s.createElement(dn.Provider,{key:n,value:a(a({},we),{},{order:t,item:e,itemKey:n,registerSize:ye,display:t<=re})},y(e,t))}:function(e,t){var n=he(e,t);return s.createElement(nn,_e({},we,{order:t,key:n,item:e,renderItem:me,itemKey:n,registerSize:ye,display:t<=re}))},Se={order:be?re:Number.MAX_SAFE_INTEGER,className:"".concat(se,"-rest"),registerSize:function(e,t){$(t),B(z)},display:be};if(O)O&&(Te=s.createElement(dn.Provider,{value:a(a({},we),Se)},O(de)));else{var Oe=S||vn;Te=s.createElement(nn,_e({},we,Se),"function"==typeof Oe?Oe(de):Oe)}var Ce=s.createElement(N,_e({className:m()(!ue&&u,_),style:w,ref:t},L),fe.map(ke),pe?Te:null,C&&s.createElement(nn,_e({},we,{order:re,className:"".concat(se,"-suffix"),registerSize:function(e,t){Y(t)},display:!0,style:Ee}),C));return le&&(Ce=s.createElement(Xt,{onResize:function(e,t){j(t.clientWidth)}},Ce)),Ce}var gn=s.forwardRef(yn);gn.displayName="Overflow",gn.Item=fn,gn.RESPONSIVE=hn,gn.INVALIDATE=mn;var bn=gn,En={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=En.F1&&t<=En.F12)return!1;switch(t){case En.ALT:case En.CAPS_LOCK:case En.CONTEXT_MENU:case En.CTRL:case En.DOWN:case En.END:case En.ESC:case En.HOME:case En.INSERT:case En.LEFT:case En.MAC_FF_META:case En.META:case En.NUMLOCK:case En.NUM_CENTER:case En.PAGE_DOWN:case En.PAGE_UP:case En.PAUSE:case En.PRINT_SCREEN:case En.RIGHT:case En.SHIFT:case En.UP:case En.WIN_KEY:case En.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=En.ZERO&&e<=En.NINE)return!0;if(e>=En.NUM_ZERO&&e<=En.NUM_MULTIPLY)return!0;if(e>=En.A&&e<=En.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case En.SPACE:case En.QUESTION_MARK:case En.NUM_PLUS:case En.NUM_MINUS:case En.NUM_PERIOD:case En.NUM_DIVISION:case En.SEMICOLON:case En.DASH:case En.EQUALS:case En.COMMA:case En.PERIOD:case En.SLASH:case En.APOSTROPHE:case En.SINGLE_QUOTE:case En.OPEN_SQUARE_BRACKET:case En.BACKSLASH:case En.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Tn=En,wn=["children","locked"],kn=s.createContext(null);function Sn(e){var t,n,r,i,o,c,l=e.children,u=e.locked,p=d(e,wn),f=s.useContext(kn),h=(t=[f,p],"value"in(c=s.useRef({})).current&&(i=c.current.condition,o=t,!!(u||i[0]===o[0]&&mt()(i[1],o[1])))||(c.current.value=(n=p,r=a({},f),Object.keys(n).forEach((function(e){var t=n[e];void 0!==t&&(r[e]=t)})),r),c.current.condition=t),c.current.value);return s.createElement(kn.Provider,{value:h},l)}function On(e,t,n,r){var i=s.useContext(kn),o=i.activeKey,a=i.onActive,c=i.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},l.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),c(e)}),l}var Cn=["item"];function xn(e){var t=e.item,n=d(e,Cn);return Object.defineProperty(n,"item",{get:function(){return B(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function Nn(e){var t=e.icon,n=e.props,r=e.children;return("function"==typeof t?s.createElement(t,a({},n)):t)||r||null}function An(e){var t=s.useContext(kn),n=t.mode,r=t.rtl,i=t.inlineIndent;return"inline"!==n?null:r?{paddingRight:e*i}:{paddingLeft:e*i}}var Dn=[],Ln=s.createContext(null);function In(){return s.useContext(Ln)}var Pn=s.createContext(Dn);function Rn(e){var t=s.useContext(Pn);return s.useMemo((function(){return void 0!==e?[].concat(we(t),[e]):t}),[t,e])}var Mn=s.createContext(null),jn=s.createContext(null);function Fn(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Vn(e){return Fn(s.useContext(jn),e)}var Qn=["title","attribute","elementRef"],qn=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Un=["active"],Gn=function(e){xe(n,e);var t=Le(n);function n(){return ke(this,n),t.apply(this,arguments)}return Oe(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,i=nt(d(e,Qn),["eventKey"]);return B(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),s.createElement(bn.Item,_e({},n,{title:"string"==typeof t?t:void 0},i,{ref:r}))}}]),n}(s.Component),Bn=function(e){var t,n=e.style,r=e.className,o=e.eventKey,c=(e.warnKey,e.disabled),l=e.itemIcon,u=e.children,p=e.role,f=e.onMouseEnter,h=e.onMouseLeave,v=e.onClick,y=e.onKeyDown,g=e.onFocus,b=d(e,qn),E=Vn(o),T=s.useContext(kn),w=T.prefixCls,_=T.onItemClick,k=T.disabled,S=T.overflowDisabled,O=T.itemIcon,C=T.selectedKeys,x=T.onActive,N="".concat(w,"-item"),A=s.useRef(),D=s.useRef(),L=k||c,I=Rn(o),P=function(e){return{key:o,keyPath:we(I).reverse(),item:A.current,domEvent:e}},R=l||O,M=On(o,L,f,h),j=M.active,F=d(M,Un),V=C.includes(o),Q=An(I.length),q={};return"option"===e.role&&(q["aria-selected"]=V),s.createElement(Gn,_e({ref:A,elementRef:D,role:null===p?"none":p||"menuitem",tabIndex:c?null:-1,"data-menu-id":S&&E?null:E},b,F,q,{component:"li","aria-disabled":c,style:a(a({},Q),n),className:m()(N,(t={},i(t,"".concat(N,"-active"),j),i(t,"".concat(N,"-selected"),V),i(t,"".concat(N,"-disabled"),L),t),r),onClick:function(e){if(!L){var t=P(e);null==v||v(xn(t)),_(t)}},onKeyDown:function(e){if(null==y||y(e),e.which===Tn.ENTER){var t=P(e);null==v||v(xn(t)),_(t)}},onFocus:function(e){x(o),null==g||g(e)}}),u,s.createElement(Nn,{props:a(a({},e),{},{isSelected:V}),icon:R}))},Kn=function(e){var t=e.eventKey,n=In(),r=Rn(t);return s.useEffect((function(){if(n)return n.registerPath(t,r),function(){n.unregisterPath(t,r)}}),[r]),n?null:s.createElement(Bn,e)};function zn(e,t){return gt(e).map((function(e,n){if(s.isValidElement(e)){var r,i,o=e.key,a=null!==(r=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:o;null==a&&(a="tmp_key-".concat([].concat(we(t),[n]).join("-")));var c={key:a,eventKey:a};return s.cloneElement(e,c)}return e}))}function $n(e){var t=s.useRef(e);t.current=e;var n=s.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),i=0;i1&&void 0!==arguments[1]?arguments[1]:2;t();var o=ln((function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)}));e.current=o},t]}(),a=f(o,2),c=a[0],l=a[1];return Nr((function(){if(r!==_r&&r!==Cr){var e=Ar.indexOf(r),n=Ar[e+1],o=t(r);!1===o?i(n):c((function(e){function t(){e.isCanceled()||i(n)}!0===o?t():Promise.resolve(o).then(t)}))}}),[e,r]),s.useEffect((function(){return function(){l()}}),[]),[function(){i(kr)},r]}(I,(function(e){if(e===kr){var t=$.prepare;return!!t&&t(U())}var n;return Y in $&&j((null===(n=$[Y])||void 0===n?void 0:n.call($,U(),null))||null),Y===Or&&(z(U()),h>0&&(clearTimeout(V.current),V.current=setTimeout((function(){B({deadline:!0})}),h))),!0})),2),W=H[0],Y=H[1],J=Dr(Y);G.current=J,Nr((function(){D(t);var n,r=F.current;F.current=!0,e&&(!r&&t&&u&&(n=Er),r&&t&&c&&(n=Tr),(r&&!t&&d||!r&&m&&!t&&d)&&(n=wr),n&&(P(n),W()))}),[t]),(0,s.useEffect)((function(){(I===Er&&!u||I===Tr&&!c||I===wr&&!d)&&P(br)}),[u,c,d]),(0,s.useEffect)((function(){return function(){clearTimeout(V.current),Q.current=!0}}),[]),(0,s.useEffect)((function(){void 0!==A&&I===br&&(null==x||x(A))}),[A,I]);var X=M;return $.prepare&&Y===Sr&&(X=a({transition:"none"},X)),[I,Y,X,null!=A?A:t]}var Ir=function(e){xe(n,e);var t=Le(n);function n(){return ke(this,n),t.apply(this,arguments)}return Oe(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component),Pr=Ir,Rr=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===y(e)&&(t=e.transitionSupport);var r=s.forwardRef((function(e,t){var r=e.visible,o=void 0===r||r,c=e.removeOnLeave,l=void 0===c||c,u=e.forceRender,p=e.children,d=e.motionName,h=e.leavedClassName,v=e.eventProps,y=n(e),g=(0,s.useRef)(),b=(0,s.useRef)(),E=f(Lr(y,o,(function(){try{return kt(g.current||b.current)}catch(e){return null}}),e),4),T=E[0],w=E[1],_=E[2],k=E[3],S=s.useRef(k);k&&(S.current=!0);var O=(0,s.useRef)(t);O.current=t;var C,x=s.useCallback((function(e){g.current=e,bt(O.current,e)}),[]),N=a(a({},v),{},{visible:o});if(p)if(T!==br&&n(e)){var A,D;w===kr?D="prepare":Dr(w)?D="active":w===Sr&&(D="start"),C=p(a(a({},N),{},{className:m()(gr(d,T),(A={},i(A,gr(d,"".concat(T,"-").concat(D)),D),i(A,d,"string"==typeof d),A)),style:_}),x)}else C=k?p(a({},N),x):!l&&S.current?p(a(a({},N),{},{className:h}),x):u?p(a(a({},N),{},{style:{display:"none"}}),x):null;else C=null;return s.createElement(Pr,{ref:b},C)}));return r.displayName="CSSMotion",r}(mr),Mr="add",jr="keep",Fr="remove",Vr="removed";function Qr(e){var t;return a(a({},t=e&&"object"===y(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function qr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(Qr)}function Ur(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,o=qr(e),s=qr(t);o.forEach((function(e){for(var t=!1,o=r;o1}));return l.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Fr}))).forEach((function(t){t.key===e&&(t.status=jr)}))})),n}var Gr=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rr,n=function(e){xe(r,e);var n=Le(r);function r(){var e;return ke(this,r),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:a(a({},e),{},{status:Vr})}))}}))},e}return Oe(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,i=r.component,o=r.children,a=r.onVisibleChanged,c=d(r,["component","children","onVisibleChanged"]),l=i||s.Fragment,u={};return Gr.forEach((function(e){u[e]=c[e],delete c[e]})),delete c.keys,s.createElement(l,c,n.map((function(n){var r=n.status,i=d(n,["status"]),c=r===Mr||r===jr;return s.createElement(t,_e({},u,{key:i.key,visible:c,eventProps:i,onVisibleChanged:function(t){null==a||a(t,{key:i.key}),t||e.removeKey(i.key)}}),o)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,i=qr(n);return{keyEntities:Ur(r,i).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Vr||e.status!==Fr}))}}}]),r}(s.Component);n.defaultProps={component:"div"}}(mr);var Br=Rr;function Kr(e){var t=e.prefixCls,n=e.motion,r=e.animation,i=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:i?{motionName:i}:null)}function zr(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,i=e.mask,o=e.maskMotion,c=e.maskAnimation,l=e.maskTransitionName;if(!i)return null;var u={};return(o||l||c)&&(u=a({motionAppear:!0},Kr({motion:o,prefixCls:t,transitionName:l,animation:c}))),s.createElement(Br,_e({},u,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return s.createElement("div",{style:{zIndex:r},className:m()("".concat(t,"-mask"),n)})}))}var $r,Hr=function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect();if(n.width||n.height)return!0}return!1};function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yr(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Mi(e){var t,n,r;if(Di.isWindow(e)||9===e.nodeType){var i=Di.getWindow(e);t={left:Di.getWindowScrollLeft(i),top:Di.getWindowScrollTop(i)},n=Di.viewportWidth(i),r=Di.viewportHeight(i)}else t=Di.offset(e),n=Di.outerWidth(e),r=Di.outerHeight(e);return t.width=n,t.height=r,t}function ji(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,o=e.height,a=e.left,s=e.top;return"c"===n?s+=o/2:"b"===n&&(s+=o),"c"===r?a+=i/2:"r"===r&&(a+=i),{left:a,top:s}}function Fi(e,t,n,r,i){var o=ji(t,n[1]),a=ji(e,n[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(e.left-s[0]+r[0]-i[0]),top:Math.round(e.top-s[1]+r[1]-i[1])}}function Vi(e,t,n){return e.leftn.right}function Qi(e,t,n){return e.topn.bottom}function qi(e,t,n){var r=[];return Di.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Ui(e,t){return e[t]=-e[t],e}function Gi(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Bi(e,t){e[0]=Gi(e[0],t.width),e[1]=Gi(e[1],t.height)}function Ki(e,t,n,r){var i=n.points,o=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,c=n.source||e;o=[].concat(o),a=[].concat(a);var l={},u=0,p=Ri(c,!(!(s=s||{})||!s.alwaysByViewport)),f=Mi(c);Bi(o,f),Bi(a,t);var d=Fi(f,t,i,o,a),h=Di.merge(f,d);if(p&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&Vi(d,f,p)){var m=qi(i,/[lr]/gi,{l:"r",r:"l"}),v=Ui(o,0),y=Ui(a,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&i.left+o.width>n.right&&(o.width-=i.left+o.width-n.right),r.adjustX&&i.left+o.width>n.right&&(i.left=Math.max(n.right-o.width,n.left)),r.adjustY&&i.top=n.top&&i.top+o.height>n.bottom&&(o.height-=i.top+o.height-n.bottom),r.adjustY&&i.top+o.height>n.bottom&&(i.top=Math.max(n.bottom-o.height,n.top)),Di.mix(i,o)}(d,f,p,l))}return h.width!==f.width&&Di.css(c,"width",Di.width(c)+h.width-f.width),h.height!==f.height&&Di.css(c,"height",Di.height(c)+h.height-f.height),Di.offset(c,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:o,targetOffset:a,overflow:l}}function zi(e,t,n){var r=n.target||t,i=Mi(r),o=!function(e,t){var n=Ri(e,t),r=Mi(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return Ki(e,i,n,o)}zi.__getOffsetParent=Ii,zi.__getVisibleRectForElement=Ri;var $i=n(8446),Hi=n.n($i);function Wi(e,t){var n=null,r=null,i=new Kt((function(e){var i=f(e,1)[0].target;if(document.documentElement.contains(i)){var o=i.getBoundingClientRect(),a=o.width,s=o.height,c=Math.floor(a),l=Math.floor(s);n===c&&r===l||Promise.resolve().then((function(){t({width:c,height:l})})),n=c,r=l}}));return e&&i.observe(e),function(){i.disconnect()}}function Yi(e){return"function"!=typeof e?null:e()}function Ji(e){return"object"===y(e)&&e?e:null}var Xi=function(e,t){var n=e.children,r=e.disabled,i=e.target,o=e.align,a=e.onAlign,s=e.monitorWindowResize,l=e.monitorBufferTime,u=void 0===l?0:l,p=c().useRef({}),d=c().useRef(),h=c().Children.only(n),m=c().useRef({});m.current.disabled=r,m.current.target=i,m.current.align=o,m.current.onAlign=a;var v=function(e,t){var n=c().useRef(!1),r=c().useRef(null);function i(){window.clearTimeout(r.current)}return[function e(o){if(n.current&&!0!==o)i(),r.current=window.setTimeout((function(){n.current=!1,e()}),t);else{if(!1===function(){var e=m.current,t=e.disabled,n=e.target,r=e.align,i=e.onAlign;if(!t&&n){var o,a=d.current,s=Yi(n),c=Ji(n);p.current.element=s,p.current.point=c,p.current.align=r;var l=document.activeElement;return s&&Hr(s)?o=zi(a,s,r):c&&(o=function(e,t,n){var r,i,o=Di.getDocument(e),a=o.defaultView||o.parentWindow,s=Di.getWindowScrollLeft(a),c=Di.getWindowScrollTop(a),l=Di.viewportWidth(a),u=Di.viewportHeight(a),p={left:r="pageX"in t?t.pageX:s+t.clientX,top:i="pageY"in t?t.pageY:c+t.clientY,width:0,height:0},f=r>=0&&r<=s+l&&i>=0&&i<=c+u,d=[n.points[0],"cc"];return Ki(e,p,Yr(Yr({},n),{},{points:d}),f)}(a,c,r)),function(e,t){e!==document.activeElement&&Xn(t,e)&&"function"==typeof e.focus&&e.focus()}(l,a),i&&o&&i(a,o),!0}return!1}())return;n.current=!0,i(),r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}(0,u),y=f(v,2),g=y[0],b=y[1],E=c().useRef({cancel:function(){}}),T=c().useRef({cancel:function(){}});c().useEffect((function(){var e,t,n=Yi(i),r=Ji(i);d.current!==T.current.element&&(T.current.cancel(),T.current.element=d.current,T.current.cancel=Wi(d.current,g)),p.current.element===n&&((e=p.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&Hi()(p.current.align,o)||(g(),E.current.element!==n&&(E.current.cancel(),E.current.element=n,E.current.cancel=Wi(n,g)))})),c().useEffect((function(){r?b():g()}),[r]);var w=c().useRef(null);return c().useEffect((function(){s?w.current||(w.current=Zn(window,"resize",g)):w.current&&(w.current.remove(),w.current=null)}),[s]),c().useEffect((function(){return function(){E.current.cancel(),T.current.cancel(),w.current&&w.current.remove(),b()}}),[]),c().useImperativeHandle(t,(function(){return{forceAlign:function(){return g(!0)}}})),c().isValidElement(h)&&(h=c().cloneElement(h,{ref:Et(h.ref,d)})),h},Zi=c().forwardRef(Xi);Zi.displayName="Align";var eo=Zi,to=window.regeneratorRuntime,no=n.n(to);function ro(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function io(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){ro(o,r,i,a,s,"next",e)}function s(e){ro(o,r,i,a,s,"throw",e)}a(void 0)}))}}var oo=["measure","align",null,"motion"],ao=s.forwardRef((function(e,t){var n=e.visible,r=e.prefixCls,i=e.className,o=e.style,c=e.children,l=e.zIndex,u=e.stretch,p=e.destroyPopupOnHide,d=e.forceRender,h=e.align,v=e.point,y=e.getRootDomNode,g=e.getClassNameFromAlign,b=e.onAlign,E=e.onMouseEnter,T=e.onMouseLeave,w=e.onMouseDown,_=e.onTouchStart,k=(0,s.useRef)(),S=(0,s.useRef)(),O=f((0,s.useState)(),2),C=O[0],x=O[1],N=function(e){var t=f(s.useState({width:0,height:0}),2),n=t[0],r=t[1];return[s.useMemo((function(){var t={};if(e){var r=n.width,i=n.height;-1!==e.indexOf("height")&&i?t.height=i:-1!==e.indexOf("minHeight")&&i&&(t.minHeight=i),-1!==e.indexOf("width")&&r?t.width=r:-1!==e.indexOf("minWidth")&&r&&(t.minWidth=r)}return t}),[e,n]),function(e){r({width:e.offsetWidth,height:e.offsetHeight})}]}(u),A=f(N,2),D=A[0],L=A[1],I=function(e,t){var n=f((0,s.useState)(null),2),r=n[0],i=n[1],o=(0,s.useRef)(),a=(0,s.useRef)(!1);function c(e){a.current||i(e)}function l(){ln.cancel(o.current)}return(0,s.useEffect)((function(){c("measure")}),[e]),(0,s.useEffect)((function(){"measure"===r&&(u&&L(y())),r&&(o.current=ln(io(no().mark((function e(){var t,n;return no().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=oo.indexOf(r),(n=oo[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),(0,s.useEffect)((function(){return function(){a.current=!0,l()}}),[]),[r,function(e){l(),o.current=ln((function(){c((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n),P=f(I,2),R=P[0],M=P[1],j=(0,s.useRef)();function F(){var e;null===(e=k.current)||void 0===e||e.forceAlign()}function V(e,t){var n=g(t);C!==n&&x(n),"align"===R&&(C!==n?Promise.resolve().then((function(){F()})):M((function(){var e;null===(e=j.current)||void 0===e||e.call(j)})),null==b||b(e,t))}var Q=a({},Kr(e));function q(){return new Promise((function(e){j.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=Q[e];Q[e]=function(e,n){return M(),null==t?void 0:t(e,n)}})),s.useEffect((function(){Q.motionName||"motion"!==R||M()}),[Q.motionName,R]),s.useImperativeHandle(t,(function(){return{forceAlign:F,getElement:function(){return S.current}}}));var U=a(a({},D),{},{zIndex:l,opacity:"motion"!==R&&"stable"!==R&&n?0:void 0,pointerEvents:"stable"===R?void 0:"none"},o),G=!0;!(null==h?void 0:h.points)||"align"!==R&&"stable"!==R||(G=!1);var B=c;return s.Children.count(c)>1&&(B=s.createElement("div",{className:"".concat(r,"-content")},c)),s.createElement(Br,_e({visible:n,ref:S,leavedClassName:"".concat(r,"-hidden")},Q,{onAppearPrepare:q,onEnterPrepare:q,removeOnLeave:p,forceRender:d}),(function(e,t){var n=e.className,o=e.style,c=m()(r,i,C,n);return s.createElement(eo,{target:v||y,key:"popup",ref:k,monitorWindowResize:!0,disabled:G,align:h,onAlign:V},s.createElement("div",{ref:t,className:c,onMouseEnter:E,onMouseLeave:T,onMouseDownCapture:w,onTouchStartCapture:_,style:a(a({},o),U)},B))}))}));ao.displayName="PopupInner";var so=ao,co=s.forwardRef((function(e,t){var n=e.prefixCls,r=e.visible,i=e.zIndex,o=e.children,c=e.mobile,l=(c=void 0===c?{}:c).popupClassName,u=c.popupStyle,p=c.popupMotion,f=void 0===p?{}:p,d=c.popupRender,h=s.useRef();s.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var v=a({zIndex:i},u),y=o;return s.Children.count(o)>1&&(y=s.createElement("div",{className:"".concat(n,"-content")},o)),d&&(y=d(y)),s.createElement(Br,_e({visible:r,ref:h,removeOnLeave:!0},f),(function(e,t){var r=e.className,i=e.style,o=m()(n,l,r);return s.createElement("div",{ref:t,className:o,style:a(a({},i),v)},y)}))}));co.displayName="MobilePopupInner";var lo=co,uo=["visible","mobile"],po=s.forwardRef((function(e,t){var n=e.visible,r=e.mobile,i=d(e,uo),o=f((0,s.useState)(n),2),c=o[0],l=o[1],u=f((0,s.useState)(!1),2),p=u[0],h=u[1],m=a(a({},i),{},{visible:c});(0,s.useEffect)((function(){l(n),n&&r&&h(rr())}),[n,r]);var v=p?s.createElement(lo,_e({},m,{mobile:r,ref:t})):s.createElement(so,_e({},m,{ref:t}));return s.createElement("div",null,s.createElement(zr,m),v)}));po.displayName="Popup";var fo=po,ho=s.createContext(null);function mo(){}var vo,yo,go=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],bo=(vo=tr,yo=function(e){xe(n,e);var t=Le(n);function n(e){var r,i;return ke(this,n),(r=t.call(this,e)).popupRef=s.createRef(),r.triggerRef=s.createRef(),r.attachId=void 0,r.clickOutsideHandler=void 0,r.touchOutsideHandler=void 0,r.contextMenuOutsideHandler1=void 0,r.contextMenuOutsideHandler2=void 0,r.mouseDownTimeout=void 0,r.focusTime=void 0,r.preClickTime=void 0,r.preTouchTime=void 0,r.delayTimer=void 0,r.hasPopupMouseDown=void 0,r.onMouseEnter=function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)},r.onMouseMove=function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)},r.onMouseLeave=function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onPopupMouseEnter=function(){r.clearDelayTimer()},r.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&Xn(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onFocus=function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))},r.onMouseDown=function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()},r.onTouchStart=function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()},r.onBlur=function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)},r.onContextMenu=function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)},r.onContextMenuClose=function(){r.isContextMenuToShow()&&r.close()},r.onClick=function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)},r.onPopupMouseDown=function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)},r.onDocumentClick=function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),i=r.getPopupDomNode();Xn(n,t)&&!r.isContextMenuOnly()||Xn(i,t)||r.hasPopupMouseDown||r.close()}},r.getRootDomNode=function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=kt(r.triggerRef.current);if(t)return t}catch(e){}return _t().findDOMNode(Ae(r))},r.getPopupClassNameFromAlign=function(e){var t=[],n=r.props,i=n.popupPlacement,o=n.builtinPlacements,a=n.prefixCls,s=n.alignPoint,c=n.getPopupClassNameFromAlign;return i&&o&&t.push(function(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1&&(E.motionAppear=!1);var T=E.onVisibleChanged;return E.onVisibleChanged=function(e){return m.current||e||g(!0),null==T?void 0:T(e)},y?null:s.createElement(Sn,{mode:o,locked:!m.current},s.createElement(Br,_e({visible:b},E,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(e){var n=e.className,r=e.style;return s.createElement(Jn,{id:t,className:n,style:r},i)})))}var Co=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],xo=["active"],No=function(e){var t,n=e.style,r=e.className,o=e.title,c=e.eventKey,l=(e.warnKey,e.disabled),u=e.internalPopupClose,p=e.children,h=e.itemIcon,v=e.expandIcon,y=e.popupClassName,g=e.popupOffset,b=e.onClick,E=e.onMouseEnter,T=e.onMouseLeave,w=e.onTitleClick,_=e.onTitleMouseEnter,k=e.onTitleMouseLeave,S=d(e,Co),O=Vn(c),C=s.useContext(kn),x=C.prefixCls,N=C.mode,A=C.openKeys,D=C.disabled,L=C.overflowDisabled,I=C.activeKey,P=C.selectedKeys,R=C.itemIcon,M=C.expandIcon,j=C.onItemClick,F=C.onOpenChange,V=C.onActive,Q=s.useContext(Mn).isSubPathKey,q=Rn(),U="".concat(x,"-submenu"),G=D||l,B=s.useRef(),K=s.useRef(),z=h||R,$=v||M,H=A.includes(c),W=!L&&H,Y=Q(P,c),J=On(c,G,_,k),X=J.active,Z=d(J,xo),ee=f(s.useState(!1),2),te=ee[0],ne=ee[1],re=function(e){G||ne(e)},ie=s.useMemo((function(){return X||"inline"!==N&&(te||Q([I],c))}),[N,X,I,te,c,Q]),oe=An(q.length),ae=$n((function(e){null==b||b(xn(e)),j(e)})),se=O&&"".concat(O,"-popup"),ce=s.createElement("div",_e({role:"menuitem",style:oe,className:"".concat(U,"-title"),tabIndex:G?null:-1,ref:B,title:"string"==typeof o?o:null,"data-menu-id":L&&O?null:O,"aria-expanded":W,"aria-haspopup":!0,"aria-controls":se,"aria-disabled":G,onClick:function(e){G||(null==w||w({key:c,domEvent:e}),"inline"===N&&F(c,!H))},onFocus:function(){V(c)}},Z),o,s.createElement(Nn,{icon:"horizontal"!==N?$:null,props:a(a({},e),{},{isOpen:W,isSubMenu:!0})},s.createElement("i",{className:"".concat(U,"-arrow")}))),le=s.useRef(N);if("inline"!==N&&(le.current=q.length>1?"vertical":N),!L){var ue=le.current;ce=s.createElement(So,{mode:ue,prefixCls:U,visible:!u&&W&&"inline"!==N,popupClassName:y,popupOffset:g,popup:s.createElement(Sn,{mode:"horizontal"===ue?"vertical":ue},s.createElement(Jn,{id:se,ref:K},p)),disabled:G,onVisibleChange:function(e){"inline"!==N&&F(c,e)}},ce)}return s.createElement(Sn,{onItemClick:ae,mode:"horizontal"===N?"vertical":N,itemIcon:z,expandIcon:$},s.createElement(bn.Item,_e({role:"none"},S,{component:"li",style:n,className:m()(U,"".concat(U,"-").concat(N),r,(t={},i(t,"".concat(U,"-open"),W),i(t,"".concat(U,"-active"),ie),i(t,"".concat(U,"-selected"),Y),i(t,"".concat(U,"-disabled"),G),t)),onMouseEnter:function(e){re(!0),null==E||E({key:c,domEvent:e})},onMouseLeave:function(e){re(!1),null==T||T({key:c,domEvent:e})}}),ce,!L&&s.createElement(Oo,{id:se,open:W,keyPath:q},p)))};function Ao(e){var t,n=e.eventKey,r=e.children,i=Rn(n),o=zn(r,i),a=In();return s.useEffect((function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}}),[i]),t=a?o:s.createElement(No,e,o),s.createElement(Pn.Provider,{value:i},t)}function Do(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Hr(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var Lo=Tn.LEFT,Io=Tn.RIGHT,Po=Tn.UP,Ro=Tn.DOWN,Mo=Tn.ENTER,jo=Tn.ESC,Fo=[Po,Ro,Lo,Io];function Vo(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=we(e.querySelectorAll("*")).filter((function(e){return Do(e,t)}));return Do(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}function Qo(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=Vo(e,t),o=i.length,a=i.findIndex((function(e){return n===e}));return r<0?-1===a?a=o-1:a-=1:r>0&&(a+=1),i[a=(a+o)%o]}var qo=Math.random().toFixed(5).toString().slice(2),Uo=0,Go="__RC_UTIL_PATH_SPLIT__",Bo=function(e){return e.join(Go)},Ko="rc-menu-more";var zo=["prefixCls","style","className","tabIndex","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName"],$o=[],Ho=["className","title","eventKey","children"],Wo=["children"],Yo=function(e){var t=e.className,n=e.title,r=(e.eventKey,e.children),i=d(e,Ho),o=s.useContext(kn).prefixCls,a="".concat(o,"-item-group");return s.createElement("li",_e({},i,{onClick:function(e){return e.stopPropagation()},className:m()(a,t)}),s.createElement("div",{className:"".concat(a,"-title"),title:"string"==typeof n?n:void 0},n),s.createElement("ul",{className:"".concat(a,"-list")},r))};function Jo(e){var t=e.children,n=d(e,Wo),r=zn(t,Rn(n.eventKey));return In()?r:s.createElement(Yo,nt(n,["warnKey"]),r)}function Xo(e){var t=e.className,n=e.style,r=s.useContext(kn).prefixCls;return In()?null:s.createElement("li",{className:m()("".concat(r,"-item-divider"),t),style:n})}var Zo=Rn,ea=function(e){var t,n,r=e.prefixCls,o=void 0===r?"rc-menu":r,c=e.style,l=e.className,u=e.tabIndex,p=void 0===u?0:u,h=e.children,v=e.direction,y=e.id,g=e.mode,b=void 0===g?"vertical":g,E=e.inlineCollapsed,T=e.disabled,w=e.disabledOverflow,_=e.subMenuOpenDelay,k=void 0===_?.1:_,S=e.subMenuCloseDelay,O=void 0===S?.1:S,C=e.forceSubMenuRender,x=e.defaultOpenKeys,N=e.openKeys,A=e.activeKey,D=e.defaultActiveFirst,L=e.selectable,I=void 0===L||L,P=e.multiple,R=void 0!==P&&P,M=e.defaultSelectedKeys,j=e.selectedKeys,F=e.onSelect,V=e.onDeselect,Q=e.inlineIndent,q=void 0===Q?24:Q,U=e.motion,G=e.defaultMotions,B=e.triggerSubMenuAction,K=void 0===B?"hover":B,z=e.builtinPlacements,$=e.itemIcon,H=e.expandIcon,W=e.overflowedIndicator,Y=void 0===W?"...":W,J=e.overflowedIndicatorPopupClassName,X=e.getPopupContainer,Z=e.onClick,ee=e.onOpenChange,te=e.onKeyDown,ne=(e.openAnimation,e.openTransitionName,d(e,zo)),re=zn(h,$o),ie=f(s.useState(!1),2),oe=ie[0],ae=ie[1],se=s.useRef(),ce=function(e){var t=f(vt(e,{value:e}),2),n=t[0],r=t[1];return s.useEffect((function(){Uo+=1;var e="".concat(qo,"-").concat(Uo);r("rc-menu-uuid-".concat(e))}),[]),n}(y),le="rtl"===v,ue=f(s.useMemo((function(){return"inline"!==b&&"vertical"!==b||!E?[b,!1]:["vertical",E]}),[b,E]),2),pe=ue[0],fe=ue[1],de=f(s.useState(0),2),he=de[0],me=de[1],ve=he>=re.length-1||"horizontal"!==pe||w,ye=f(vt(x,{value:N,postState:function(e){return e||$o}}),2),ge=ye[0],be=ye[1],Ee=function(e){be(e),null==ee||ee(e)},Te=f(s.useState(ge),2),ke=Te[0],Se=Te[1],Oe="inline"===pe,Ce=s.useRef(!1);s.useEffect((function(){Oe&&Se(ge)}),[ge]),s.useEffect((function(){Ce.current?Oe?be(ke):Ee($o):Ce.current=!0}),[Oe]);var xe=function(){var e=f(s.useState({}),2)[1],t=(0,s.useRef)(new Map),n=(0,s.useRef)(new Map),r=f(s.useState([]),2),i=r[0],o=r[1],a=(0,s.useRef)(0),c=(0,s.useRef)(!1),l=(0,s.useCallback)((function(r,i){var o=Bo(i);n.current.set(o,r),t.current.set(r,o),a.current+=1;var s,l=a.current;s=function(){l===a.current&&(c.current||e({}))},Promise.resolve().then(s)}),[]),u=(0,s.useCallback)((function(e,r){var i=Bo(r);n.current.delete(i),t.current.delete(e)}),[]),p=(0,s.useCallback)((function(e){o(e)}),[]),d=(0,s.useCallback)((function(e,n){var r=(t.current.get(e)||"").split(Go);return n&&i.includes(r[0])&&r.unshift(Ko),r}),[i]),h=(0,s.useCallback)((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),m=(0,s.useCallback)((function(e){var r="".concat(t.current.get(e)).concat(Go),i=new Set;return we(n.current.keys()).forEach((function(e){e.startsWith(r)&&i.add(n.current.get(e))})),i}),[]);return s.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:l,unregisterPath:u,refreshOverflowKeys:p,isSubPathKey:h,getKeyPath:d,getKeys:function(){var e=we(t.current.keys());return i.length&&e.push(Ko),e},getSubPathKeys:m}}(),Ne=xe.registerPath,Ae=xe.unregisterPath,De=xe.refreshOverflowKeys,Le=xe.isSubPathKey,Ie=xe.getKeyPath,Pe=xe.getKeys,Re=xe.getSubPathKeys,Me=s.useMemo((function(){return{registerPath:Ne,unregisterPath:Ae}}),[Ne,Ae]),je=s.useMemo((function(){return{isSubPathKey:Le}}),[Le]);s.useEffect((function(){De(ve?$o:re.slice(he+1).map((function(e){return e.key})))}),[he,ve]);var Fe=f(vt(A||D&&(null===(t=re[0])||void 0===t?void 0:t.key),{value:A}),2),Ve=Fe[0],Qe=Fe[1],qe=$n((function(e){Qe(e)})),Ue=$n((function(){Qe(void 0)})),Ge=f(vt(M||[],{value:j,postState:function(e){return Array.isArray(e)?e:null==e?$o:[e]}}),2),Be=Ge[0],Ke=Ge[1],ze=$n((function(e){null==Z||Z(xn(e)),function(e){if(I){var t,n=e.key,r=Be.includes(n);t=R?r?Be.filter((function(e){return e!==n})):[].concat(we(Be),[n]):[n],Ke(t);var i=a(a({},e),{},{selectedKeys:t});r?null==V||V(i):null==F||F(i)}!R&&ge.length&&"inline"!==pe&&Ee($o)}(e)})),$e=$n((function(e,t){var n=ge.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==pe){var r=Re(e);n=n.filter((function(e){return!r.has(e)}))}mt()(ge,n)||Ee(n)})),He=$n(X),We=function(e,t,n,r,o,a,c,l,u,p){var f=s.useRef(),d=s.useRef();d.current=t;var h=function(){ln.cancel(f.current)};return s.useEffect((function(){return function(){h()}}),[]),function(s){var m=s.which;if([].concat(Fo,[Mo,jo]).includes(m)){var v,y,g,b=function(){return v=new Set,y=new Map,g=new Map,a().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(Fn(r,e),"']"));t&&(v.add(t),g.set(t,e),y.set(e,t))})),v};b();var E=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),v),T=g.get(E),w=function(e,t,n,r){var o,a,s,c,l="prev",u="next",p="children",f="parent";if("inline"===e&&r===Mo)return{inlineTrigger:!0};var d=(i(o={},Po,l),i(o,Ro,u),o),h=(i(a={},Lo,n?u:l),i(a,Io,n?l:u),i(a,Ro,p),i(a,Mo,p),a),m=(i(s={},Po,l),i(s,Ro,u),i(s,Mo,p),i(s,jo,f),i(s,Lo,n?p:f),i(s,Io,n?f:p),s);switch(null===(c={inline:d,horizontal:h,vertical:m,inlineSub:d,horizontalSub:m,verticalSub:m}["".concat(e).concat(t?"":"Sub")])||void 0===c?void 0:c[r]){case l:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case p:return{offset:1,sibling:!1};default:return null}}(e,1===c(T,!0).length,n,m);if(!w)return;Fo.includes(m)&&s.preventDefault();var _=function(e){if(e){var t=e,n=e.querySelector("a");(null==n?void 0:n.getAttribute("href"))&&(t=n);var r=g.get(e);l(r),h(),f.current=ln((function(){d.current===r&&t.focus()}))}};if(w.sibling||!E){var k=Qo(E&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(E):o.current,v,E,w.offset);_(k)}else if(w.inlineTrigger)u(T);else if(w.offset>0)u(T,!0),h(),f.current=ln((function(){b();var e=E.getAttribute("aria-controls"),t=Qo(document.getElementById(e),v);_(t)}),5);else if(w.offset<0){var S=c(T,!0),O=S[S.length-2],C=y.get(O);u(O,!1),_(C)}}null==p||p(s)}}(pe,Ve,le,ce,se,Pe,Ie,Qe,(function(e,t){var n=null!=t?t:!ge.includes(e);$e(e,n)}),te);s.useEffect((function(){ae(!0)}),[]);var Ye="horizontal"!==pe||w?re:re.map((function(e,t){return s.createElement(Sn,{key:e.key,overflowDisabled:t>he},e)})),Je=s.createElement(bn,_e({id:y,ref:se,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:Kn,className:m()(o,"".concat(o,"-root"),"".concat(o,"-").concat(pe),l,(n={},i(n,"".concat(o,"-inline-collapsed"),fe),i(n,"".concat(o,"-rtl"),le),n)),dir:v,style:c,role:"menu",tabIndex:p,data:Ye,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?re.slice(-t):null;return s.createElement(Ao,{eventKey:Ko,title:Y,disabled:ve,internalPopupClose:0===t,popupClassName:J},n)},maxCount:"horizontal"!==pe||w?bn.INVALIDATE:bn.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){me(e)},onKeyDown:We},ne));return s.createElement(jn.Provider,{value:ce},s.createElement(Sn,{prefixCls:o,mode:pe,openKeys:ge,rtl:le,disabled:T,motion:oe?U:null,defaultMotions:oe?G:null,activeKey:Ve,onActive:qe,onInactive:Ue,selectedKeys:Be,inlineIndent:q,subMenuOpenDelay:k,subMenuCloseDelay:O,forceSubMenuRender:C,builtinPlacements:z,triggerSubMenuAction:K,getPopupContainer:He,itemIcon:$,expandIcon:H,onItemClick:ze,onOpenChange:$e},s.createElement(Mn.Provider,{value:je},Je),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement(Ln.Provider,{value:Me},re))))};ea.Item=Kn,ea.SubMenu=Ao,ea.ItemGroup=Jo,ea.Divider=Xo;var ta=ea,na={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},ra=function(e,t){return s.createElement(ue,a(a({},e),{},{ref:t,icon:na}))};ra.displayName="EllipsisOutlined";var ia=s.forwardRef(ra),oa=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function aa(e,t){if(e.length!==t.length)return!1;for(var n=0;n=0||r.indexOf("Bottom")>=0?o.top="".concat(i.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(o.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?o.left="".concat(i.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(o.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(o.left," ").concat(o.top)}},overlayInnerStyle:R,arrowContent:s.createElement("span",{className:"".concat(S,"-arrow-content"),style:x}),motion:{motionName:Sa(O,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),C?la(D,{className:I}):D)}));xa.displayName="Tooltip",xa.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var Na=xa,Aa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);id)&&(V=(U=U.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var ts=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&es(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=is&&(is=t+1),ns.set(e,t),rs.set(t,e)},cs="style["+Ja+'][data-styled-version="5.3.3"]',ls=new RegExp("^"+Ja+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),us=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Ja))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(Ja,"active"),r.setAttribute("data-styled-version","5.3.3");var a=fs();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},hs=function(){function e(e){var t=this.element=ds(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(l+=e+",")})),r+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),Es=/(a)(d)/gi,Ts=function(e){return String.fromCharCode(e+(e>25?39:97))};function ws(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ts(t%52)+n;return(Ts(t%52)+n).replace(Es,"$1-$2")}var _s=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ks=function(e){return _s(5381,e)};function Ss(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=_s(this.baseHash,n.hash),u="",p=0;p>>0);if(!t.hasNameForId(r,m)){var v=n(u,"."+m,void 0,r);t.insertRules(r,m,v)}i.push(m)}}return i.join(" ")},e}(),xs=/^\s*\/\/.*$/gm,Ns=[":","[",".","#"];function As(e){var t,n,r,i,o=void 0===e?$a:e,a=o.options,s=void 0===a?$a:a,c=o.plugins,l=void 0===c?za:c,u=new ja(s),p=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,c,l,u,p){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(i[0]+r),"";default:return r+(0===p?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),d=function(e,r,o){return 0===r&&-1!==Ns.indexOf(o[n.length])||o.match(i)?e:"."+t};function h(e,o,a,s){void 0===s&&(s="&");var c=e.replace(xs,""),l=o&&a?a+" "+o+" { "+c+" }":c;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),u(a||!o?"":o,l)}return u.use([].concat(l,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,d))},f,function(e){if(-2===e){var t=p;return p=[],t}}])),h.hash=l.length?l.reduce((function(e,t){return t.name||es(15),_s(e,t.name)}),5381).toString():"",h}var Ds=c().createContext(),Ls=(Ds.Consumer,c().createContext()),Is=(Ls.Consumer,new bs),Ps=As();function Rs(){return(0,s.useContext)(Ds)||Is}function Ms(e){var t=(0,s.useState)(e.stylisPlugins),n=t[0],r=t[1],i=Rs(),o=(0,s.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,s.useMemo)((function(){return As({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,s.useEffect)((function(){mt()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),c().createElement(Ds.Provider,{value:o},c().createElement(Ls.Provider,{value:a},e.children))}var js=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ps);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return es(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Ps),this.name+e.hash},e}(),Fs=/([A-Z])/,Vs=/([A-Z])/g,Qs=/^ms-/,qs=function(e){return"-"+e.toLowerCase()};function Us(e){return Fs.test(e)?e.replace(Vs,qs).replace(Qs,"-ms-"):e}var Gs=function(e){return null==e||!1===e||""===e};function Bs(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,Hs=/(^-|-$)/g;function Ws(e){return e.replace($s,"-").replace(Hs,"")}function Ys(e){return"string"==typeof e&&!0}var Js=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Xs=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Zs(e,t,n){var r=e[n];Js(t)&&Js(r)?ec(r,t):e[n]=t}function ec(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>>0)}("5.3.3"+n+nc[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,p=t.displayName,f=void 0===p?function(e){return Ys(e)?"styled."+e:"Styled("+Wa(e)+")"}(e):p,d=t.displayName&&t.componentId?Ws(t.displayName)+"-"+t.componentId:t.componentId||u,h=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,m=t.shouldForwardProp;r&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var v,y=new Cs(n,d,r?e.componentStyle:void 0),g=y.isStatic&&0===a.length,b=function(e,t){return function(e,t,n,r){var i=e.attrs,o=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,l=e.shouldForwardProp,u=e.styledComponentId,p=e.target,f=function(e,t,n){void 0===e&&(e=$a);var r=Ga({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in Ha(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(function(e,t,n){return void 0===n&&(n=$a),e.theme!==n.theme&&e.theme||t||n.theme}(t,(0,s.useContext)(tc),a)||$a,t,i),d=f[0],h=f[1],m=function(e,t,n,r){var i=Rs(),o=(0,s.useContext)(Ls)||Ps;return t?e.generateAndInjectStyles($a,i,o):e.generateAndInjectStyles(n,i,o)}(o,r,d),v=n,y=h.$as||t.$as||h.as||t.as||p,g=Ys(y),b=h!==t?Ga({},t,{},h):t,E={};for(var T in b)"$"!==T[0]&&"as"!==T&&("forwardedAs"===T?E.as=b[T]:(l?l(T,Qa,y):!g||Qa(T))&&(E[T]=b[T]));return t.style&&h.style!==t.style&&(E.style=Ga({},t.style,{},h.style)),E.className=Array.prototype.concat(c,u,m!==u?m:null,t.className,h.className).filter(Boolean).join(" "),E.ref=v,(0,s.createElement)(y,E)}(v,e,t,g)};return b.displayName=f,(v=c().forwardRef(b)).attrs=h,v.componentStyle=y,v.displayName=f,v.shouldForwardProp=m,v.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):za,v.styledComponentId=d,v.target=r?e.target:e,v.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(Ys(e)?e:Ws(Wa(e)));return rc(e,Ga({},i,{attrs:h,componentId:o}),n)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?ec({},e.defaultProps,t):t}}),v.toString=function(){return"."+v.styledComponentId},i&&Ua()(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var ic,oc=function(e){return function e(t,n,r){if(void 0===r&&(r=$a),!(0,yt.isValidElementType)(n))return es(1,String(n));var i=function(){return t(n,r,zs.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,Ga({},r,{},i))},i.attrs=function(i){return e(t,n,Ga({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(rc,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){oc[e]=oc(e)})),ic=function(e,t){this.rules=e,this.componentId=t,this.isStatic=Ss(e),bs.registerId(this.componentId+1)}.prototype,ic.createStyles=function(e,t,n,r){var i=r(Bs(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},ic.removeStyles=function(e,t){t.clearRules(this.componentId+e)},ic.renderStyles=function(e,t,n,r){e>2&&bs.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=fs();return""},this.getStyleTags=function(){return e.sealed?es(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return es(2);var n=((t={})[Ja]="",t["data-styled-version"]="5.3.3",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=fs();return r&&(n.nonce=r),[c().createElement("style",Ga({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new bs({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?es(2):c().createElement(Ms,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return es(3)}}();var ac,sc=oc,cc=n(5676),lc=function(e){return s.createElement(ze,null,(function(t){var n,r=t.getPrefixCls,o=t.direction,a=e.prefixCls,c=e.type,l=void 0===c?"horizontal":c,u=e.orientation,p=void 0===u?"center":u,f=e.className,d=e.children,h=e.dashed,v=e.plain,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0?"-".concat(p):p,E=!!d,T=m()(g,"".concat(g,"-").concat(l),(i(n={},"".concat(g,"-with-text"),E),i(n,"".concat(g,"-with-text").concat(b),E),i(n,"".concat(g,"-dashed"),!!h),i(n,"".concat(g,"-plain"),!!v),i(n,"".concat(g,"-rtl"),"rtl"===o),n),f);return s.createElement("div",_e({className:T},y,{role:"separator"}),d&&s.createElement("span",{className:"".concat(g,"-inner-text")},d))}))},uc=(0,s.createContext)({}),pc=["xxl","xl","lg","md","sm","xs"],fc={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},dc=new Map,hc=-1,mc={},vc={matchHandlers:{},dispatch:function(e){return mc=e,dc.forEach((function(e){return e(mc)})),dc.size>=1},subscribe:function(e){return dc.size||this.register(),hc+=1,dc.set(hc,e),e(mc),hc},unsubscribe:function(e){dc.delete(e),dc.size||this.unregister()},unregister:function(){var e=this;Object.keys(fc).forEach((function(t){var n=fc[t],r=e.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),dc.clear()},register:function(){var e=this;Object.keys(fc).forEach((function(t){var n=fc[t],r=function(n){var r=n.matches;e.dispatch(_e(_e({},mc),i({},t,r)))},o=window.matchMedia(n);o.addListener(r),e.matchHandlers[n]={mql:o,listener:r},r(o)}))}},yc=(Ea("top","middle","bottom","stretch"),Ea("start","end","center","space-around","space-between"),s.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.justify,a=e.align,c=e.className,l=e.style,u=e.children,p=e.gutter,d=void 0===p?0:p,h=e.wrap,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0?x[0]/-2:void 0,L=x[1]>0?x[1]/-2:void 0;if(D&&(A.marginLeft=D,A.marginRight=D),k){var I=f(x,2);A.rowGap=I[1]}else L&&(A.marginTop=L,A.marginBottom=L);var P=s.useMemo((function(){return{gutter:x,wrap:h,supportFlexGap:k}}),[x,h,k]);return s.createElement(uc.Provider,{value:P},s.createElement("div",_e({},v,{className:N,style:_e(_e({},A),l),ref:t}),u))})));yc.displayName="Row";var gc=yc,bc=["xs","sm","md","lg","xl","xxl"],Ec=s.forwardRef((function(e,t){var n,r=s.useContext(Ke),o=r.getPrefixCls,a=r.direction,c=s.useContext(uc),l=c.gutter,u=c.wrap,p=c.supportFlexGap,f=e.prefixCls,d=e.span,h=e.order,v=e.offset,g=e.push,b=e.pull,E=e.className,T=e.children,w=e.flex,_=e.style,k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0){var N=l[0]/2;x.paddingLeft=N,x.paddingRight=N}if(l&&l[1]>0&&!p){var A=l[1]/2;x.paddingTop=A,x.paddingBottom=A}return w&&(x.flex=function(e){return"number"==typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(w),!1!==u||x.minWidth||(x.minWidth=0)),s.createElement("div",_e({},k,{style:_e(_e({},x),_),className:C,ref:t}),T)}));Ec.displayName="Col";var Tc=Ec,wc=function(e){var t=e.prefixCls,n=e.className,r=e.hoverable,o=void 0===r||r,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);it?"left":"right"})})),2),Q=V[0],q=V[1],U=f(Vc(0,(function(e,t){!F&&A&&A({direction:e>t?"top":"bottom"})})),2),G=U[0],B=U[1],K=f((0,s.useState)(0),2),z=K[0],$=K[1],H=f((0,s.useState)(0),2),W=H[0],Y=H[1],J=f((0,s.useState)(0),2),X=J[0],Z=J[1],ee=f((0,s.useState)(0),2),te=ee[0],ne=ee[1],re=f((0,s.useState)(null),2),ie=re[0],oe=re[1],ae=f((0,s.useState)(null),2),se=ae[0],ce=ae[1],le=f((0,s.useState)(0),2),ue=le[0],pe=le[1],fe=f((0,s.useState)(0),2),de=fe[0],he=fe[1],me=(o=new Map,c=(0,s.useRef)([]),l=f((0,s.useState)({}),2)[1],u=(0,s.useRef)("function"==typeof o?o():o),p=_c((function(){var e=u.current;c.current.forEach((function(t){e=t(e)})),c.current=[],u.current=e,l({})})),[u.current,function(e){c.current.push(e),p()}]),ve=f(me,2),ye=ve[0],ge=ve[1],be=function(e,t,n){return(0,s.useMemo)((function(){for(var n,r=new Map,i=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Oc,o=i.left+i.width,s=0;ske?ke:e}F?w?(Te=0,ke=Math.max(0,z-ie)):(Te=Math.min(0,ie-z),ke=0):(Te=Math.min(0,se-W),ke=0);var Oe=(0,s.useRef)(),Ce=f((0,s.useState)(),2),xe=Ce[0],Ne=Ce[1];function Ae(){Ne(Date.now())}function De(){window.clearTimeout(Oe.current)}function Le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=be.get(e)||{width:0,height:0,left:0,right:0,top:0};if(F){var n=Q;w?t.rightQ+ie&&(n=t.right+t.width-ie):t.left<-Q?n=-t.left:t.left+t.width>-Q+ie&&(n=-(t.left+t.width-ie)),B(0),q(Se(n))}else{var r=G;t.top<-G?r=-t.top:t.top+t.height>-G+se&&(r=-(t.top+t.height-se)),q(0),B(Se(r))}}!function(e,t){var n=f((0,s.useState)(),2),r=n[0],i=n[1],o=f((0,s.useState)(0),2),a=o[0],c=o[1],l=f((0,s.useState)(0),2),u=l[0],p=l[1],d=f((0,s.useState)(),2),h=d[0],m=d[1],v=(0,s.useRef)(),y=(0,s.useRef)(),g=(0,s.useRef)(null);g.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(v.current)},onTouchMove:function(e){if(r){e.preventDefault();var n=e.touches[0],o=n.screenX,s=n.screenY;i({x:o,y:s});var l=o-r.x,u=s-r.y;t(l,u);var f=Date.now();c(f),p(f-a),m({x:l,y:u})}},onTouchEnd:function(){if(r&&(i(null),m(null),h)){var e=h.x/u,n=h.y/u,o=Math.abs(e),a=Math.abs(n);if(Math.max(o,a)<.1)return;var s=e,c=n;v.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(c)<.01?window.clearInterval(v.current):t(20*(s*=Fc),20*(c*=Fc))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,i=0,o=Math.abs(n),a=Math.abs(r);o===a?i="x"===y.current?n:r:o>a?(i=n,y.current="x"):(i=r,y.current="y"),t(-i,-i)&&e.preventDefault()}},s.useEffect((function(){function t(e){g.current.onTouchMove(e)}function n(e){g.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){g.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){g.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(D,(function(e,t){function n(e,t){e((function(e){return Se(e+t)}))}if(F){if(ie>=z)return!1;n(q,e)}else{if(se>=W)return!1;n(B,t)}return De(),Ae(),!0})),(0,s.useEffect)((function(){return De(),xe&&(Oe.current=window.setTimeout((function(){Ne(0)}),100)),De}),[xe]);var Ie=function(e,t,n,r,i){var o,a,c,l=i.tabs,u=i.tabPosition,p=i.rtl;["top","bottom"].includes(u)?(o="width",a=p?"right":"left",c=Math.abs(t.left)):(o="height",a="top",c=-t.top);var f=t[o],d=r[o],h=f;return n[o]+d>f&&(h=f-d),(0,s.useMemo)((function(){if(!l.length)return[0,0];for(var t=l.length,n=t,r=0;rc+h){n=r-1;break}}for(var s=0,u=t-1;u>=0;u-=1)if((e.get(l[u].key)||Cc)[a]0,We=Q+ie1&&void 0!==arguments[1]?arguments[1]:1,n=ll++,r=t;function i(){(r-=1)<=0?(e(),delete ul[n]):ul[n]=ln(i)}return ul[n]=ln(i),n}function fl(e){return!e||null===e.offsetParent||e.hidden}function dl(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}pl.cancel=function(e){void 0!==e&&(ln.cancel(ul[e]),delete ul[e])},pl.ids=ul;var hl=function(e){xe(n,e);var t=Le(n);function n(){var e;return ke(this,n),(e=t.apply(this,arguments)).containerRef=s.createRef(),e.animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){var r,i,o=e.props,a=o.insertExtraNode;if(!(o.disabled||!t||fl(t)||t.className.indexOf("-leave")>=0)){e.extraNode=document.createElement("div");var s=Ae(e).extraNode,c=e.context.getPrefixCls;s.className="".concat(c(""),"-click-animating-node");var l=e.getAttributeName();if(t.setAttribute(l,"true"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&dl(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){s.style.borderColor=n;var u=(null===(r=t.getRootNode)||void 0===r?void 0:r.call(t))||t.ownerDocument,p=u instanceof Document?u.body:null!==(i=u.firstChild)&&void 0!==i?i:u;al=Y("\n [".concat(c(""),"-click-animating-without-extra-node='true']::after, .").concat(c(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:e.csp,attachTo:p})}a&&t.appendChild(s),["transition","animation"].forEach((function(n){t.addEventListener("".concat(n,"start"),e.onTransitionStart),t.addEventListener("".concat(n,"end"),e.onTransitionEnd)}))}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!fl(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),pl.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=pl((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;if(e.csp=n,!s.isValidElement(r))return r;var i=e.containerRef;return Tt(r)&&(i=Et(r.ref,e.containerRef)),la(r,{ref:i})},e}return Oe(n,[{key:"componentDidMount",value:function(){var e=this.containerRef.current;e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){var t=this;if(e&&e!==this.extraNode&&e instanceof Element){var n=this.props.insertExtraNode,r=this.getAttributeName();e.setAttribute(r,"false"),al&&(al.innerHTML=""),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach((function(n){e.removeEventListener("".concat(n,"start"),t.onTransitionStart),e.removeEventListener("".concat(n,"end"),t.onTransitionEnd)}))}}},{key:"render",value:function(){return s.createElement(ze,null,this.renderWave)}}]),n}(s.Component);hl.contextType=Ke;var ml={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},vl=function(e,t){return s.createElement(ue,a(a({},e),{},{ref:t,icon:ml}))};vl.displayName="LoadingOutlined";var yl=s.forwardRef(vl),gl=function(){return{width:0,opacity:0,transform:"scale(0)"}},bl=function(e){return{width:e.scrollWidth,opacity:1,transform:"scale(1)"}},El=function(e){var t=e.prefixCls,n=!!e.loading;return e.existIcon?c().createElement("span",{className:"".concat(t,"-loading-icon")},c().createElement(yl,null)):c().createElement(Br,{visible:n,motionName:"".concat(t,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:gl,onAppearActive:bl,onEnterStart:gl,onEnterActive:bl,onLeaveStart:bl,onLeaveActive:gl},(function(e,n){var r=e.className,i=e.style;return c().createElement("span",{className:"".concat(t,"-loading-icon"),style:i,ref:n},c().createElement(yl,{className:r}))}))},Tl=/^[\u4e00-\u9fa5]{2}$/,wl=Tl.test.bind(Tl);function _l(e){return"text"===e||"link"===e}Ea("default","primary","ghost","dashed","link","text"),Ea("default","circle","round"),Ea("submit","button","reset");var kl=function(e,t){var n,r,o=e.loading,a=void 0!==o&&o,c=e.prefixCls,l=e.type,u=e.danger,p=e.shape,d=void 0===p?"default":p,h=e.size,v=e.className,g=e.children,b=e.icon,E=e.ghost,T=void 0!==E&&E,w=e.block,_=void 0!==w&&w,k=e.htmlType,S=void 0===k?"button":k,O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(b,"` at https://ant.design/components/icon")),La(!(T&&_l(l)),"Button","`link` or `text` button can't be a `ghost` button.");var U=R("btn",c),G=!1!==M,B="";switch(h||C){case"large":B="lg";break;case"small":B="sm"}var K=N?"loading":b,z=m()(U,(i(n={},"".concat(U,"-").concat(l),l),i(n,"".concat(U,"-").concat(d),"default"!==d&&d),i(n,"".concat(U,"-").concat(B),B),i(n,"".concat(U,"-icon-only"),!g&&0!==g&&!!K),i(n,"".concat(U,"-background-ghost"),T&&!_l(l)),i(n,"".concat(U,"-loading"),N),i(n,"".concat(U,"-two-chinese-chars"),L&&G),i(n,"".concat(U,"-block"),_),i(n,"".concat(U,"-dangerous"),!!u),i(n,"".concat(U,"-rtl"),"rtl"===j),n),v),$=b&&!N?b:s.createElement(El,{existIcon:!!b,prefixCls:U,loading:!!N}),H=g||0===g?function(e,t){var n=!1,r=[];return s.Children.forEach(e,(function(e){var t=y(e),i="string"===t||"number"===t;if(n&&i){var o=r.length-1,a=r[o];r[o]="".concat(a).concat(e)}else r.push(e);n=i})),s.Children.map(r,(function(e){return function(e,t){if(null!=e){var n,r=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&wl(e.props.children)?la(e,{children:e.props.children.split("").join(r)}):"string"==typeof e?wl(e)?s.createElement("span",null,e.split("").join(r)):s.createElement("span",null,e):(n=e,s.isValidElement(n)&&n.type===s.Fragment?s.createElement("span",null,e):e)}}(e,t)}))}(g,Q()&&G):null,W=nt(O,["navigate"]);if(void 0!==W.href)return s.createElement("a",_e({},W,{className:z,onClick:q,ref:F}),$,H);var Y=s.createElement("button",_e({},O,{type:S,className:z,onClick:q,ref:F}),$,H);return _l(l)?Y:s.createElement(hl,{disabled:!!N},Y)},Sl=s.forwardRef(kl);Sl.displayName="Button",Sl.Group=function(e){return s.createElement(ze,null,(function(t){var n,r=t.getPrefixCls,o=t.direction,a=e.prefixCls,c=e.size,l=e.className,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i(0,r.createElement)(Cl,null,(0,r.createElement)("h2",null,"Help"),(0,r.createElement)("p",null,"On this page you will find resources to help you understand WPGraphQL, how to use GraphQL with WordPress, how to customize it and make it work for you, and how to get plugged into the community."),(0,r.createElement)(lc,null),(0,r.createElement)("h3",null,"Documentation"),(0,r.createElement)("p",null,"Below are helpful links to the official WPGraphQL documentation."),(0,r.createElement)(gc,{gutter:[16,16]},(0,r.createElement)(Tc,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(sl,{style:{height:"100%"},title:"Getting Started",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/docs/introduction/",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Get Started with WPGraphQL"))]},(0,r.createElement)("p",null,"In the Getting Started are resources to learn about GraphQL, WordPress, how they work together, and more."))),(0,r.createElement)(Tc,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(sl,{style:{height:"100%"},title:"Beginner Guides",actions:[(0,r.createElement)("a",{target:"_blank",href:"https://www.wpgraphql.com/docs/intro-to-graphql/"},(0,r.createElement)(Ol,{type:"primary"},"Beginner Guides"))]},(0,r.createElement)("p",null,"The Beginner guides go over specific topics such as GraphQL, WordPress, tools and techniques to interact with GraphQL APIs and more."))),(0,r.createElement)(Tc,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(sl,{style:{height:"100%"},title:"Using WPGraphQL",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/docs/posts-and-pages/",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Using WPGraphQL"))]},(0,r.createElement)("p",null,"This section covers how WPGraphQL exposes WordPress data to the Graph, and shows how you can interact with this data using GraphQL."))),(0,r.createElement)(Tc,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(sl,{style:{height:"100%"},title:"Advanced Concepts",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/docs/wpgraphql-concepts/",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Advanced Concepts"))]},(0,r.createElement)("p",null,'Learn about concepts such as "connections", "edges", "nodes", "what is an application data graph?" and more'," ")))),(0,r.createElement)(lc,null),(0,r.createElement)("h3",null,"Developer Reference"),(0,r.createElement)("p",null,"Below are helpful links to the WPGraphQL developer reference. These links will be most helpful to developers looking to customize WPGraphQL"," "),(0,r.createElement)(gc,{gutter:[16,16]},(0,r.createElement)(Tc,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(sl,{style:{height:"100%"},title:"Recipes",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/recipes",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Recipes"))]},(0,r.createElement)("p",null,"Here you will find snippets of code you can use to customize WPGraphQL. Most snippets are PHP and intended to be included in your theme or plugin."))),(0,r.createElement)(Tc,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(sl,{style:{height:"100%"},title:"Actions",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/actions",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Actions"))]},(0,r.createElement)("p",null,'Here you will find an index of the WordPress "actions" that are used in the WPGraphQL codebase. Actions can be used to customize behaviors.'))),(0,r.createElement)(Tc,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(sl,{style:{height:"100%"},title:"Filters",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/filters",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Filters"))]},(0,r.createElement)("p",null,'Here you will find an index of the WordPress "filters" that are used in the WPGraphQL codebase. Filters are used to customize the Schema and more.'))),(0,r.createElement)(Tc,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(sl,{style:{height:"100%"},title:"Functions",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/functions",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Functions"))]},(0,r.createElement)("p",null,'Here you will find functions that can be used to customize the WPGraphQL Schema. Learn how to register GraphQL "fields", "types", and more.')))),(0,r.createElement)(lc,null),(0,r.createElement)("h3",null,"Community"),(0,r.createElement)(gc,{gutter:[16,16]},(0,r.createElement)(Tc,{xs:24,sm:24,md:24,lg:8,xl:8},(0,r.createElement)(sl,{style:{height:"100%"},title:"Blog",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/Blog",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Read the Blog"))]},(0,r.createElement)("p",null,"Keep up to date with the latest news and updates from the WPGraphQL team."))),(0,r.createElement)(Tc,{xs:24,sm:24,md:24,lg:8,xl:8},(0,r.createElement)(sl,{style:{height:"100%"},title:"Extensions",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/Extensions",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"View Extensions"))]},(0,r.createElement)("p",null,"Browse the list of extensions that are available to extend WPGraphQL to work with other popular WordPress plugins."))),(0,r.createElement)(Tc,{xs:24,sm:24,md:24,lg:8,xl:8},(0,r.createElement)(sl,{style:{height:"100%"},title:"Join us in Slack",actions:[(0,r.createElement)("a",{href:"https://join.slack.com/t/wp-graphql/shared_invite/zt-3vloo60z-PpJV2PFIwEathWDOxCTTLA",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Join us in Slack"))]},(0,r.createElement)("p",null,"There are more than 2,000 people in the WPGraphQL Slack community asking questions and helping each other. Join us today!"))))),Nl=function(){return Nl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1,o=null;if(i&&r){var a=this.state.highlight;o=c().createElement("ul",{className:"execute-options"},n.map((function(e,n){var r=e.name?e.name.value:"";return c().createElement("li",{key:r+"-"+n,className:e===a?"selected":void 0,onMouseOver:function(){return t.setState({highlight:e})},onMouseOut:function(){return t.setState({highlight:null})},onMouseUp:function(){return t._onOptionSelected(e)}},r)})))}!this.props.isRunning&&i||(e=this._onClick);var s=function(){};this.props.isRunning||!i||r||(s=this._onOptionsOpen);var l=this.props.isRunning?c().createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):c().createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"});return c().createElement("div",{className:"execute-button-wrap"},c().createElement("button",{type:"button",className:"execute-button",onMouseDown:s,onClick:e,title:"Execute Query (Ctrl-Enter)"},c().createElement("svg",{width:"34",height:"34"},l)),o)},t}(c().Component),uu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}();function pu(e){if("string"===e.type){var t=e.string.slice(1).slice(0,-1).trim();try{var n=window.location;return new URL(t,n.protocol+"//"+n.host)}catch(e){return}}}var fu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._node=null,t.state={width:null,height:null,src:null,mime:null},t}return uu(t,e),t.shouldRender=function(e){var t=pu(e);return!!t&&function(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}(t)},t.prototype.componentDidMount=function(){this._updateMetadata()},t.prototype.componentDidUpdate=function(){this._updateMetadata()},t.prototype.render=function(){var e,t=this,n=null;if(null!==this.state.width&&null!==this.state.height){var r=this.state.width+"x"+this.state.height;null!==this.state.mime&&(r+=" "+this.state.mime),n=c().createElement("div",null,r)}return c().createElement("div",null,c().createElement("img",{onLoad:function(){return t._updateMetadata()},ref:function(e){t._node=e},src:null===(e=pu(this.props.token))||void 0===e?void 0:e.href}),n)},t.prototype._updateMetadata=function(){var e=this;if(this._node){var t=this._node.naturalWidth,n=this._node.naturalHeight,r=this._node.src;r!==this.state.src&&(this.setState({src:r}),fetch(r,{method:"HEAD"}).then((function(t){e.setState({mime:t.headers.get("Content-Type")})}))),t===this.state.width&&n===this.state.height||this.setState({height:n,width:t})}},t}(c().Component),du=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),hu=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=function(){try{n.props.onClick(),n.setState({error:null})}catch(e){n.setState({error:e})}},n.state={error:null},n}return du(t,e),t.prototype.render=function(){var e=this.state.error;return c().createElement("button",{className:"toolbar-button"+(e?" error":""),onClick:this.handleClick,title:e?e.message:this.props.title,"aria-invalid":e?"true":"false"},this.props.label)},t}(c().Component);function mu(e){var t=e.children;return c().createElement("div",{className:"toolbar-button-group"},t)}var vu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),yu=function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){bu(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return vu(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e=this,t=this.state.visible;return c().createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:bu,ref:function(t){t&&(e._node=t)},title:this.props.title},this.props.label,c().createElement("svg",{width:"14",height:"8"},c().createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),c().createElement("ul",{className:"toolbar-menu-items"+(t?" open":"")},this.props.children))},t.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},t.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},t.prototype.handleClick=function(e){this._node!==e.target&&(e.preventDefault(),this.setState({visible:!1}),this._release())},t}(c().Component),gu=function(e){var t=e.onSelect,n=e.title,r=e.label;return c().createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:bu,onMouseUp:t,title:n},r)};function bu(e){e.preventDefault()}var Eu=n(9980),Tu=n.n(Eu),wu=Array.from({length:11},(function(e,t){return String.fromCharCode(8192+t)})).concat(["\u2028","\u2029"," "," "]),_u=new RegExp("["+wu.join("")+"]","g");function ku(e){return e.replace(_u," ")}var Su,Ou=n(5573),Cu=n.n(Ou),xu=new(Tu());function Nu(e,t,r){var i,o;n(4631).on(t,"select",(function(e,t){if(!i){var n,a=t.parentNode;(i=document.createElement("div")).className="CodeMirror-hint-information",a.appendChild(i),(o=document.createElement("div")).className="CodeMirror-hint-deprecation",a.appendChild(o),a.addEventListener("DOMNodeRemoved",n=function(e){e.target===a&&(a.removeEventListener("DOMNodeRemoved",n),i=null,o=null,n=null)})}var s=e.description?xu.render(e.description):"Self descriptive.",c=e.type?''+Au(e.type)+"":"";if(i.innerHTML='
'+("

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

"+c+s.slice(3):c+s)+"

",e&&o&&e.deprecationReason){var l=e.deprecationReason?xu.render(e.deprecationReason):"";o.innerHTML='Deprecated'+l,o.style.display="block"}else o&&(o.style.display="none");r&&r(i)}))}function Au(e){return e instanceof iu.GraphQLNonNull?Au(e.ofType)+"!":e instanceof iu.GraphQLList?"["+Au(e.ofType)+"]":''+Cu()(e.name)+""}var Du=!1;"object"==typeof window&&(Du="MacIntel"===window.navigator.platform);var Lu=((Su={})[Du?"Cmd-F":"Ctrl-F"]="findPersistent",Su["Cmd-G"]="findPersistent",Su["Ctrl-G"]="findPersistent",Su["Ctrl-Left"]="goSubwordLeft",Su["Ctrl-Right"]="goSubwordRight",Su["Alt-Left"]="goGroupLeft",Su["Alt-Right"]="goGroupRight",Su),Iu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),Pu=function(){return Pu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=65&&r<=90||!t.shiftKey&&r>=48&&r<=57||t.shiftKey&&189===r||t.shiftKey&&222===r)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){n.editor&&(n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue)))},n._onHasCompletion=function(e,t){Nu(0,t,n.props.onHintInformationRender)},n.cachedValue=t.value||"",n}return Fu(t,e),t.prototype.componentDidMount=function(){var e=this;this.CodeMirror=n(4631),n(1707),n(4328),n(2801),n(5688),n(9700),n(3256),n(2095),n(4568),n(5292),n(3412),n(6094),n(373),n(9677);var t=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",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:Vu({"Cmd-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Ctrl-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Alt-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Shift-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Cmd-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Ctrl-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Shift-Ctrl-P":function(){e.props.onPrettifyQuery&&e.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){e.props.onMergeQuery&&e.props.onMergeQuery()}},Lu)});t.on("change",this._onEdit),t.on("keyup",this._onKeyUp),t.on("hasCompletion",this._onHasCompletion)},t.prototype.componentDidUpdate=function(e){if(this.CodeMirror=n(4631),this.editor){if(this.ignoreChangeEvent=!0,this.props.variableToType!==e.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!==e.value&&this.props.value!==this.cachedValue){var t=this.props.value||"";this.cachedValue=t,this.editor.setValue(t)}this.ignoreChangeEvent=!1}},t.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)},t.prototype.render=function(){var e=this;return c().createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(t){e._node=t}})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(c().Component),Uu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),qu=function(){return qu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=65&&r<=90||!t.shiftKey&&r>=48&&r<=57||t.shiftKey&&189===r||t.shiftKey&&222===r)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){n.editor&&(n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue)))},n._onHasCompletion=function(e,t){Nu(0,t,n.props.onHintInformationRender)},n.cachedValue=t.value||"",n}return Uu(t,e),t.prototype.componentDidMount=function(){var e=this;this.CodeMirror=n(4631),n(1707),n(4328),n(2801),n(5688),n(9700),n(3256),n(2095),n(4568),n(5292),n(6876),n(3412);var t=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",foldGutter:{minFoldSize:4},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:qu({"Cmd-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Ctrl-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Alt-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Shift-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Cmd-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Ctrl-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Shift-Ctrl-P":function(){e.props.onPrettifyQuery&&e.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){e.props.onMergeQuery&&e.props.onMergeQuery()}},Lu)});t.on("change",this._onEdit),t.on("keyup",this._onKeyUp),t.on("hasCompletion",this._onHasCompletion)},t.prototype.componentDidUpdate=function(e){if(this.CodeMirror=n(4631),this.editor){if(this.ignoreChangeEvent=!0,this.props.value!==e.value&&this.props.value!==this.cachedValue){var t=this.props.value||"";this.cachedValue=t,this.editor.setValue(t)}this.ignoreChangeEvent=!1}},t.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)},t.prototype.render=function(){var e=this;return c().createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(t){e._node=t}})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(c().Component),Bu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),Ku=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.viewer=null,t._node=null,t}return Bu(t,e),t.prototype.componentDidMount=function(){var e=n(4631);n(9700),n(5688),n(5292),n(1699),n(2095),n(4568),n(3412),n(6276);var t=this.props.ResultsTooltip,r=this.props.ImagePreview;if(t||r){n(9965);var i=document.createElement("div");e.registerHelper("info","graphql-results",(function(e,n,o,a){var s=[];return t&&s.push(c().createElement(t,{pos:a})),r&&"function"==typeof r.shouldRender&&r.shouldRender(e)&&s.push(c().createElement(r,{token:e})),s.length?(_t().render(c().createElement("div",null,s),i),i):(_t().unmountComponentAtNode(i),null)}))}this.viewer=e(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:Boolean(this.props.ResultsTooltip||this.props.ImagePreview),extraKeys:Lu})},t.prototype.shouldComponentUpdate=function(e){return this.props.value!==e.value},t.prototype.componentDidUpdate=function(){this.viewer&&this.viewer.setValue(this.props.value||"")},t.prototype.componentWillUnmount=function(){this.viewer=null},t.prototype.render=function(){var e=this;return c().createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:function(t){t&&(e.props.registerRef(t),e._node=t)}})},t.prototype.getCodeMirror=function(){return this.viewer},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(c().Component);function zu(e){var t=e.onClick?e.onClick:function(){return null};return $u(e.type,t)}function $u(e,t){return e instanceof iu.GraphQLNonNull?c().createElement("span",null,$u(e.ofType,t),"!"):e instanceof iu.GraphQLList?c().createElement("span",null,"[",$u(e.ofType,t),"]"):c().createElement("a",{className:"type-name",onClick:function(n){n.preventDefault(),t(e,n)},href:"#"},null==e?void 0:e.name)}function Hu(e){var t,n=e.field;return"defaultValue"in n&&void 0!==n.defaultValue?c().createElement("span",null," = ",c().createElement("span",{className:"arg-default-value"},(t=(0,iu.astFromValue)(n.defaultValue,n.type))?(0,iu.print)(t):"")):null}function Wu(e){var t=e.arg,n=e.onClickType,r=e.showDefaultValue;return c().createElement("span",{className:"arg"},c().createElement("span",{className:"arg-name"},t.name),": ",c().createElement(zu,{type:t.type,onClick:n}),!1!==r&&c().createElement(Hu,{field:t}))}function Yu(e){var t=e.directive;return c().createElement("span",{className:"doc-category-item",id:t.name.value},"@",t.name.value)}var Ju=new(Tu())({linkify:!0});function Xu(e){var t=e.markdown,n=e.className;return t?c().createElement("div",{className:n,dangerouslySetInnerHTML:{__html:Ju.render(t)}}):c().createElement("div",null)}function Zu(e){var t,n,r=e.field,i=e.onClickType;return r&&"args"in r&&r.args.length>0&&(t=c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"arguments"),r.args.map((function(e){return c().createElement("div",{key:e.name,className:"doc-category-item"},c().createElement("div",null,c().createElement(Wu,{arg:e,onClickType:i})),c().createElement(Xu,{className:"doc-value-description",markdown:e.description}))})))),r&&r.astNode&&r.astNode.directives&&r.astNode.directives.length>0&&(n=c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"directives"),r.astNode.directives.map((function(e){return c().createElement("div",{key:e.name.value,className:"doc-category-item"},c().createElement("div",null,c().createElement(Yu,{directive:e})))})))),c().createElement("div",null,c().createElement(Xu,{className:"doc-type-description",markdown:(null==r?void 0:r.description)||"No Description"}),r&&"deprecationReason"in r&&c().createElement(Xu,{className:"doc-deprecation",markdown:null==r?void 0:r.deprecationReason}),c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"type"),c().createElement(zu,{type:null==r?void 0:r.type,onClick:i})),t,n)}function ep(e){var t=e.schema,n=e.onClickType,r=t.getQueryType(),i=t.getMutationType&&t.getMutationType(),o=t.getSubscriptionType&&t.getSubscriptionType();return c().createElement("div",null,c().createElement(Xu,{className:"doc-type-description",markdown:t.description||"A GraphQL schema provides a root type for each kind of operation."}),c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"root types"),c().createElement("div",{className:"doc-category-item"},c().createElement("span",{className:"keyword"},"query"),": ",c().createElement(zu,{type:r,onClick:n})),i&&c().createElement("div",{className:"doc-category-item"},c().createElement("span",{className:"keyword"},"mutation"),": ",c().createElement(zu,{type:i,onClick:n})),o&&c().createElement("div",{className:"doc-category-item"},c().createElement("span",{className:"keyword"},"subscription"),": ",c().createElement(zu,{type:o,onClick:n}))))}function tp(e,t){var n;return function(){for(var r=this,i=[],o=0;o=100)return"break";var t=p[e];if(r!==t&&sp(e,n)&&l.push(c().createElement("div",{className:"doc-category-item",key:e},c().createElement(zu,{type:t,onClick:o}))),t&&"getFields"in t){var i=t.getFields();Object.keys(i).forEach((function(l){var p,f=i[l];if(!sp(l,n)){if(!("args"in f)||!f.args.length)return;if(0===(p=f.args.filter((function(e){return sp(e.name,n)}))).length)return}var d=c().createElement("div",{className:"doc-category-item",key:e+"."+l},r!==t&&[c().createElement(zu,{key:"type",type:t,onClick:o}),"."],c().createElement("a",{className:"field-name",onClick:function(e){return a(f,t,e)}},f.name),p&&["(",c().createElement("span",{key:"args"},p.map((function(e){return c().createElement(Wu,{key:e.name,arg:e,onClickType:o,showDefaultValue:!1})}))),")"]);r===t?s.push(d):u.push(d)}))}};try{for(var h=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),m=h.next();!m.done&&"break"!==d(m.value);m=h.next());}catch(t){e={error:t}}finally{try{m&&!m.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}return s.length+l.length+u.length===0?c().createElement("span",{className:"doc-alert-text"},"No results found."):r&&l.length+u.length>0?c().createElement("div",null,s,c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"other results"),l,u)):c().createElement("div",{className:"doc-search-items"},s,l,u)},t}(c().Component),ap=op;function sp(e,t){try{var n=t.replace(/[^_0-9A-Za-z]/g,(function(e){return"\\"+e}));return-1!==e.search(new RegExp(n,"i"))}catch(n){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}}var cp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),lp=function(e){function t(t){var n=e.call(this,t)||this;return n.handleShowDeprecated=function(){return n.setState({showDeprecated:!0})},n.state={showDeprecated:!1},n}return cp(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.props.type!==e.type||this.props.schema!==e.schema||this.state.showDeprecated!==t.showDeprecated},t.prototype.render=function(){var e,t,n,r,i,o=this.props.schema,a=this.props.type,s=this.props.onClickType,l=this.props.onClickField,u=null,p=[];if(a instanceof iu.GraphQLUnionType?(u="possible types",p=o.getPossibleTypes(a)):a instanceof iu.GraphQLInterfaceType?(u="implementations",p=o.getPossibleTypes(a)):a instanceof iu.GraphQLObjectType&&(u="implements",p=a.getInterfaces()),p&&p.length>0&&(e=c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},u),p.map((function(e){return c().createElement("div",{key:e.name,className:"doc-category-item"},c().createElement(zu,{type:e,onClick:s}))})))),a&&"getFields"in a){var f=a.getFields(),d=Object.keys(f).map((function(e){return f[e]}));t=c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"fields"),d.filter((function(e){return!e.deprecationReason})).map((function(e){return c().createElement(up,{key:e.name,type:a,field:e,onClickType:s,onClickField:l})})));var h=d.filter((function(e){return Boolean(e.deprecationReason)}));h.length>0&&(n=c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"deprecated fields"),this.state.showDeprecated?h.map((function(e){return c().createElement(up,{key:e.name,type:a,field:e,onClickType:s,onClickField:l})})):c().createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated fields...")))}if(a instanceof iu.GraphQLEnumType){var m=a.getValues();r=c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"values"),m.filter((function(e){return Boolean(!e.deprecationReason)})).map((function(e){return c().createElement(pp,{key:e.name,value:e})})));var v=m.filter((function(e){return Boolean(e.deprecationReason)}));v.length>0&&(i=c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?v.map((function(e){return c().createElement(pp,{key:e.name,value:e})})):c().createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return c().createElement("div",null,c().createElement(Xu,{className:"doc-type-description",markdown:"description"in a&&a.description||"No Description"}),a instanceof iu.GraphQLObjectType&&e,t,n,r,i,!(a instanceof iu.GraphQLObjectType)&&e)},t}(c().Component);function up(e){var t=e.type,n=e.field,r=e.onClickType,i=e.onClickField;return c().createElement("div",{className:"doc-category-item"},c().createElement("a",{className:"field-name",onClick:function(e){return i(n,t,e)}},n.name),"args"in n&&n.args&&n.args.length>0&&["(",c().createElement("span",{key:"args"},n.args.map((function(e){return c().createElement(Wu,{key:e.name,arg:e,onClickType:r})}))),")"],": ",c().createElement(zu,{type:n.type,onClick:r}),c().createElement(Hu,{field:n}),n.description&&c().createElement(Xu,{className:"field-short-description",markdown:n.description}),"deprecationReason"in n&&n.deprecationReason&&c().createElement(Xu,{className:"doc-deprecation",markdown:n.deprecationReason}))}function pp(e){var t=e.value;return c().createElement("div",{className:"doc-category-item"},c().createElement("div",{className:"enum-value"},t.name),c().createElement(Xu,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&c().createElement(Xu,{className:"doc-deprecation",markdown:t.deprecationReason}))}var fp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),dp=function(){return dp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&n.setState({navStack:n.state.navStack.slice(0,-1)})},n.handleClickType=function(e){n.showDoc(e)},n.handleClickField=function(e){n.showDoc(e)},n.handleSearch=function(e){n.showSearch(e)},n.state={navStack:[hp]},n}return fp(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.props.schema!==e.schema||this.state.navStack!==t.navStack||this.props.schemaErrors!==e.schemaErrors},t.prototype.render=function(){var e,t=this.props,n=t.schema,r=t.schemaErrors,i=this.state.navStack,o=i[i.length-1];e=r?c().createElement("div",{className:"error-container"},"Error fetching schema"):void 0===n?c().createElement("div",{className:"spinner-container"},c().createElement("div",{className:"spinner"})):n?o.search?c().createElement(ap,{searchValue:o.search,withinType:o.def,schema:n,onClickType:this.handleClickType,onClickField:this.handleClickField}):1===i.length?c().createElement(ep,{schema:n,onClickType:this.handleClickType}):(0,iu.isType)(o.def)?c().createElement(lp,{schema:n,type:o.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):c().createElement(Zu,{field:o.def,onClickType:this.handleClickType}):c().createElement("div",{className:"error-container"},"No Schema Available");var a,s=1===i.length||(0,iu.isType)(o.def)&&"getFields"in o.def;return i.length>1&&(a=i[i.length-2].name),c().createElement("section",{className:"doc-explorer",key:o.name,"aria-label":"Documentation Explorer"},c().createElement("div",{className:"doc-explorer-title-bar"},a&&c().createElement("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to "+a},a),c().createElement("div",{className:"doc-explorer-title"},o.title||o.name),c().createElement("div",{className:"doc-explorer-rhs"},this.props.children)),c().createElement("div",{className:"doc-explorer-contents"},s&&c().createElement(rp,{value:o.search,placeholder:"Search "+o.name+"...",onSearch:this.handleSearch}),e))},t.prototype.showDoc=function(e){var t=this.state.navStack;t[t.length-1].def!==e&&this.setState({navStack:t.concat([{name:e.name,def:e}])})},t.prototype.showDocForReference=function(e){e&&"Type"===e.kind?this.showDoc(e.type):"Field"===e.kind||"Argument"===e.kind&&e.field?this.showDoc(e.field):"EnumValue"===e.kind&&e.type&&this.showDoc(e.type)},t.prototype.showSearch=function(e){var t=this.state.navStack.slice(),n=t[t.length-1];t[t.length-1]=dp(dp({},n),{search:e}),this.setState({navStack:t})},t.prototype.reset=function(){this.setState({navStack:[hp]})},t}(c().Component),vp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),yp=function(e){function t(t){var n=e.call(this,t)||this;return n.state={editable:!1},n.editField=null,n}return vp(t,e),t.prototype.render=function(){var e,t=this,n=this.props.label||this.props.operationName||(null===(e=this.props.query)||void 0===e?void 0:e.split("\n").filter((function(e){return 0!==e.indexOf("#")})).join("")),r=this.props.favorite?"★":"☆";return c().createElement("li",{className:this.state.editable?"editable":void 0},this.state.editable?c().createElement("input",{type:"text",defaultValue:this.props.label,ref:function(e){t.editField=e},onBlur:this.handleFieldBlur.bind(this),onKeyDown:this.handleFieldKeyDown.bind(this),placeholder:"Type a label"}):c().createElement("button",{className:"history-label",onClick:this.handleClick.bind(this)},n),c().createElement("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label"},"✎"),c().createElement("button",{className:this.props.favorite?"favorited":void 0,onClick:this.handleStarClick.bind(this),"aria-label":this.props.favorite?"Remove favorite":"Add favorite"},r))},t.prototype.handleClick=function(){this.props.onSelect(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label)},t.prototype.handleStarClick=function(e){e.stopPropagation(),this.props.handleToggleFavorite(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label,this.props.favorite)},t.prototype.handleFieldBlur=function(e){e.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,e.target.value,this.props.favorite)},t.prototype.handleFieldKeyDown=function(e){13===e.keyCode&&(e.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,e.currentTarget.value,this.props.favorite))},t.prototype.handleEditClick=function(e){var t=this;e.stopPropagation(),this.setState({editable:!0},(function(){t.editField&&t.editField.focus()}))},t}(c().Component),gp=yp,bp=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Ep=function(){function e(e,t,n){void 0===n&&(n=null),this.key=e,this.storage=t,this.maxSize=n,this.items=this.fetchAll()}return Object.defineProperty(e.prototype,"length",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),e.prototype.contains=function(e){return this.items.some((function(t){return t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName}))},e.prototype.edit=function(e){var t=this.items.findIndex((function(t){return t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName}));-1!==t&&(this.items.splice(t,1,e),this.save())},e.prototype.delete=function(e){var t=this.items.findIndex((function(t){return t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName}));-1!==t&&(this.items.splice(t,1),this.save())},e.prototype.fetchRecent=function(){return this.items[this.items.length-1]},e.prototype.fetchAll=function(){var e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]},e.prototype.push=function(e){var t,n=function(){for(var e=[],t=0;tthis.maxSize&&n.shift();for(var r=0;r<5;r++){var i=this.storage.set(this.key,JSON.stringify(((t={})[this.key]=n,t)));if(i&&i.error){if(!i.isQuotaError||!this.maxSize)return;n.shift()}else this.items=n}},e.prototype.save=function(){var e;this.storage.set(this.key,JSON.stringify(((e={})[this.key]=this.items,e)))},e}(),Tp=Ep,wp=function(){return wp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},kp=function(){for(var e=[],t=0;t1e5)return!1;if(!r)return!0;if(JSON.stringify(e)===JSON.stringify(r.query)){if(JSON.stringify(t)===JSON.stringify(r.variables)){if(JSON.stringify(n)===JSON.stringify(r.headers))return!1;if(n&&!r.headers)return!1}if(t&&!r.variables)return!1}return!0},this.fetchAllQueries=function(){var e=n.history.fetchAll(),t=n.favorite.fetchAll();return e.concat(t)},this.updateHistory=function(e,t,r,i){if(n.shouldSaveQuery(e,t,r,n.history.fetchRecent())){n.history.push({query:e,variables:t,headers:r,operationName:i});var o=n.history.items,a=n.favorite.items;n.queries=o.concat(a)}},this.toggleFavorite=function(e,t,r,i,o,a){var s={query:e,variables:t,headers:r,operationName:i,label:o};n.favorite.contains(s)?a&&(s.favorite=!1,n.favorite.delete(s)):(s.favorite=!0,n.favorite.push(s)),n.queries=kp(n.history.items,n.favorite.items)},this.editLabel=function(e,t,r,i,o,a){var s={query:e,variables:t,headers:r,operationName:i,label:o};a?n.favorite.edit(wp(wp({},s),{favorite:a})):n.history.edit(s),n.queries=kp(n.history.items,n.favorite.items)},this.history=new Tp("queries",this.storage,this.maxHistoryLength),this.favorite=new Tp("favorites",this.storage,null),this.queries=this.fetchAllQueries()},Op=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),Cp=function(){return Cp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},qp=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Gp=function(){for(var e=[],t=0;t=0)continue;c.push(f)}var d=e[p.name.value];if(d){var h=d.typeCondition,m=d.directives,v=d.selectionSet;p={kind:iu.Kind.INLINE_FRAGMENT,typeCondition:h,directives:m,selectionSet:v}}}if(p.kind===iu.Kind.INLINE_FRAGMENT&&(!p.directives||0===(null===(o=p.directives)||void 0===o?void 0:o.length))){var y=p.typeCondition?p.typeCondition.name.value:null;if(!y||y===a){s.push.apply(s,Gp(Bp(e,p.selectionSet.selections,n)));continue}}s.push(p)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return s}function Kp(e,t){var n,r,i=t?new iu.TypeInfo(t):null,o=Object.create(null);try{for(var a=Up(e.definitions),s=a.next();!s.done;s=a.next()){var c=s.value;c.kind===iu.Kind.FRAGMENT_DEFINITION&&(o[c.name.value]=c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}var l={SelectionSet:function(e){var t=i?i.getParentType():null,n=e.selections;return n=function(e,t){var n,r,i,o=new Map,a=[];try{for(var s=Up(e),c=s.next();!c.done;c=s.next()){var l=c.value;if("Field"===l.kind){var u=(i=l).alias?i.alias.value:i.name.value,p=o.get(u);if(l.directives&&l.directives.length){var f=Qp({},l);a.push(f)}else p&&p.selectionSet&&l.selectionSet?p.selectionSet.selections=Gp(p.selectionSet.selections,l.selectionSet.selections):p||(f=Qp({},l),o.set(u,f),a.push(f))}else a.push(l)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a}(n=Bp(o,n,t)),Qp(Qp({},e),{selections:n})},FragmentDefinition:function(){return null}};return(0,iu.visit)(e,i?(0,iu.visitWithTypeInfo)(i,l):l)}var zp=(0,iu.getIntrospectionQuery)(),$p="IntrospectionQuery",Hp=zp.replace("subscriptionType { name }","");function Wp(e,t,n){if("object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},rf=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};if(parseInt(c().version.slice(0,2),10)<16)throw Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join("\n"));var of=function(e){return JSON.stringify(e,null,2)},af=function(e){return e instanceof iu.GraphQLError?e.toString():e instanceof Error?function(e){return Xp(Xp({},e),{message:e.message,stack:e.stack})}(e):e},sf=function(e){function t(n){var r,i,o,a=e.call(this,n)||this;if(a._editorQueryID=0,a.safeSetState=function(e,t){a.componentIsMounted&&a.setState(e,t)},a.handleClickReference=function(e){a.setState({docExplorerOpen:!0},(function(){a.docExplorerComponent&&a.docExplorerComponent.showDocForReference(e)})),a._storage.set("docExplorerOpen",JSON.stringify(a.state.docExplorerOpen))},a.handleRunQuery=function(e){return Zp(a,void 0,void 0,(function(){var n,r,i,o,a,s,c,l,u,p=this;return ef(this,(function(f){switch(f.label){case 0:this._editorQueryID++,n=this._editorQueryID,r=this.autoCompleteLeafs()||this.state.query,i=this.state.variables,o=this.state.headers,a=this.state.shouldPersistHeaders,s=this.state.operationName,e&&e!==s&&(s=e,this.handleEditOperationName(s)),f.label=1;case 1:return f.trys.push([1,3,,4]),this.setState({isWaitingForResponse:!0,response:void 0,operationName:s}),this._storage.set("operationName",s),this._queryHistory?this._queryHistory.onUpdateHistory(r,i,o,s):this._historyStore&&this._historyStore.updateHistory(r,i,o,s),c={data:{}},[4,this._fetchQuery(r,i,o,s,a,(function(e){var r,i;if(n===p._editorQueryID){var o=!!Array.isArray(e)&&e;if(!o&&"string"!=typeof e&&null!==e&&"hasNext"in e&&(o=[e]),o){var a={data:c.data},s=function(){for(var e=[],t=0;t0&&(g=t.formatError(E),y=void 0,b=E)}return a.state=Xp({schema:y,query:l,variables:p,headers:f,operationName:d,docExplorerOpen:h,schemaErrors:b,response:g,editorFlex:Number(a._storage.get("editorFlex"))||1,secondaryEditorOpen:c,secondaryEditorHeight:Number(a._storage.get("secondaryEditorHeight"))||200,variableEditorActive:"true"!==a._storage.get("variableEditorActive")&&!n.headerEditorEnabled||"true"!==a._storage.get("headerEditorActive"),headerEditorActive:"true"===a._storage.get("headerEditorActive"),headerEditorEnabled:m,shouldPersistHeaders:v,historyPaneOpen:"true"===a._storage.get("historyPaneOpen")||!1,docExplorerWidth:Number(a._storage.get("docExplorerWidth"))||350,isWaitingForResponse:!1,subscription:null,maxHistoryLength:s},u),a}return Jp(t,e),t.formatResult=function(e){return JSON.stringify(e,null,2)},t.prototype.componentDidMount=function(){this.componentIsMounted=!0,void 0===this.state.schema&&this.fetchSchema(),this.codeMirrorSizer=new Np,n.g.g=this},t.prototype.UNSAFE_componentWillMount=function(){this.componentIsMounted=!1},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this,n=this.state.schema,r=this.state.query,i=this.state.variables,o=this.state.headers,a=this.state.operationName,s=this.state.response;if(void 0!==e.schema&&(n=e.schema),void 0!==e.query&&this.props.query!==e.query&&(r=e.query),void 0!==e.variables&&this.props.variables!==e.variables&&(i=e.variables),void 0!==e.headers&&this.props.headers!==e.headers&&(o=e.headers),void 0!==e.operationName&&(a=e.operationName),void 0!==e.response&&(s=e.response),r&&n&&(n!==this.state.schema||r!==this.state.query||a!==this.state.operationName)){if(!this.props.dangerouslyAssumeSchemaIsValid){var c=(0,iu.validateSchema)(n);c&&c.length>0&&(this.handleSchemaErrors(c),n=void 0)}var l=this._updateQueryFacts(r,a,this.state.operations,n);void 0!==l&&(a=l.operationName,this.setState(l))}void 0===e.schema&&e.fetcher!==this.props.fetcher&&(n=void 0),this._storage.set("operationName",a),this.setState({schema:n,query:r,variables:i,headers:o,operationName:a,response:s},(function(){void 0===t.state.schema&&(t.docExplorerComponent&&t.docExplorerComponent.reset(),t.fetchSchema())}))},t.prototype.componentDidUpdate=function(){this.codeMirrorSizer.updateSizes([this.queryEditorComponent,this.variableEditorComponent,this.headerEditorComponent,this.resultComponent])},t.prototype.render=function(){var e,n=this,r=c().Children.toArray(this.props.children),i=Ip(r,(function(e){return vf(e,t.Logo)}))||c().createElement(t.Logo,null),o=Ip(r,(function(e){return vf(e,t.Toolbar)}))||c().createElement(t.Toolbar,null,c().createElement(hu,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),c().createElement(hu,{onClick:this.handleMergeQuery,title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),c().createElement(hu,{onClick:this.handleCopyQuery,title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),c().createElement(hu,{onClick:this.handleToggleHistory,title:"Show History",label:"History"}),(null===(e=this.props.toolbar)||void 0===e?void 0:e.additionalContent)?this.props.toolbar.additionalContent:null),a=Ip(r,(function(e){return vf(e,t.Footer)})),s={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},l={display:"block",width:this.state.docExplorerWidth},u="docExplorerWrap"+(this.state.docExplorerWidth<200?" doc-explorer-narrow":""),p={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:7},f=this.state.secondaryEditorOpen,d={height:f?this.state.secondaryEditorHeight:void 0};return c().createElement("div",{ref:function(e){n.graphiqlContainer=e},className:"graphiql-container"},this.state.historyPaneOpen&&c().createElement("div",{className:"historyPaneWrap",style:p},c().createElement(xp,{ref:function(e){n._queryHistory=e},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},c().createElement("button",{className:"docExplorerHide",onClick:this.handleToggleHistory,"aria-label":"Close History"},"✕"))),c().createElement("div",{className:"editorWrap"},c().createElement("div",{className:"topBarWrap"},c().createElement("div",{className:"topBar"},i,c().createElement(lu,{isRunning:Boolean(this.state.subscription),onRun:this.handleRunQuery,onStop:this.handleStopQuery,operations:this.state.operations}),o),!this.state.docExplorerOpen&&c().createElement("button",{className:"docExplorerShow",onClick:this.handleToggleDocs,"aria-label":"Open Documentation Explorer"},"Docs")),c().createElement("div",{ref:function(e){n.editorBarComponent=e},className:"editorBar",onDoubleClick:this.handleResetResize,onMouseDown:this.handleResizeStart},c().createElement("div",{className:"queryWrap",style:s},c().createElement(ju,{ref:function(e){n.queryEditorComponent=e},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}),c().createElement("section",{className:"variable-editor secondary-editor",style:d,"aria-label":this.state.variableEditorActive?"Query Variables":"Request Headers"},c().createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title",style:{cursor:f?"row-resize":"n-resize"},onMouseDown:this.handleSecondaryEditorResizeStart},c().createElement("div",{style:{cursor:"pointer",color:this.state.variableEditorActive?"#000":"gray",display:"inline-block"},onClick:this.handleOpenVariableEditorTab,onMouseDown:this.handleTabClickPropogation},"Query Variables"),this.state.headerEditorEnabled&&c().createElement("div",{style:{cursor:"pointer",color:this.state.headerEditorActive?"#000":"gray",display:"inline-block",marginLeft:"20px"},onClick:this.handleOpenHeaderEditorTab,onMouseDown:this.handleTabClickPropogation},"Request Headers")),c().createElement(Qu,{ref:function(e){n.variableEditorComponent=e},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&&c().createElement(Gu,{ref:function(e){n.headerEditorComponent=e},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}))),c().createElement("div",{className:"resultWrap"},this.state.isWaitingForResponse&&c().createElement("div",{className:"spinner-container"},c().createElement("div",{className:"spinner"})),c().createElement(Ku,{registerRef:function(e){n.resultViewerElement=e},ref:function(e){n.resultComponent=e},value:this.state.response,editorTheme:this.props.editorTheme,ResultsTooltip:this.props.ResultsTooltip,ImagePreview:fu}),a))),this.state.docExplorerOpen&&c().createElement("div",{className:u,style:l},c().createElement("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),c().createElement(mp,{ref:function(e){n.docExplorerComponent=e},schemaErrors:this.state.schemaErrors,schema:this.state.schema},c().createElement("button",{className:"docExplorerHide",onClick:this.handleToggleDocs,"aria-label":"Close Documentation Explorer"},"✕"))))},t.prototype.getQueryEditor=function(){if(this.queryEditorComponent)return this.queryEditorComponent.getCodeMirror()},t.prototype.getVariableEditor=function(){return this.variableEditorComponent?this.variableEditorComponent.getCodeMirror():null},t.prototype.getHeaderEditor=function(){return this.headerEditorComponent?this.headerEditorComponent.getCodeMirror():null},t.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()},t.prototype.autoCompleteLeafs=function(){var e=Pp(this.state.schema,this.state.query,this.props.getDefaultFieldNames),t=e.insertions,n=e.result;if(t&&t.length>0){var r=this.getQueryEditor();r&&r.operation((function(){var e=r.getCursor(),i=r.indexFromPos(e);r.setValue(n||"");var o=0,a=t.map((function(e){var t=e.index,n=e.string;return r.markText(r.posFromIndex(t+o),r.posFromIndex(t+(o+=n.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})}));setTimeout((function(){return a.forEach((function(e){return e.clear()}))}),7e3);var s=i;t.forEach((function(e){var t=e.index,n=e.string;t2?r.headers=JSON.parse(this.state.headers):this.props.headers&&(r.headers=JSON.parse(this.props.headers));var i=mf(n({query:zp,operationName:$p},r));ff(i)?i.then((function(e){if("string"!=typeof e&&"data"in e)return e;var t=mf(n({query:Hp,operationName:$p},r));if(!ff(i))throw new Error("Fetcher did not return a Promise for introspection.");return t})).then((function(n){if(void 0===e.state.schema)if(n&&n.data&&"__schema"in(null==n?void 0:n.data)){var r=(0,iu.buildClientSchema)(n.data);if(!e.props.dangerouslyAssumeSchemaIsValid){var i=(0,iu.validateSchema)(r);i&&i.length>0&&(r=void 0,e.handleSchemaErrors(i))}if(r){var o=Dp(r,e.state.query);e.safeSetState(Xp(Xp({schema:r},o),{schemaErrors:void 0}))}}else{var a="string"==typeof n?n:t.formatResult(n);e.handleSchemaErrors([a])}})).catch((function(t){e.handleSchemaErrors([t])})):this.setState({response:"Fetcher did not return a Promise for introspection."})},t.prototype.handleSchemaErrors=function(e){this.safeSetState({response:e?t.formatError(e):void 0,schema:void 0,schemaErrors:e})},t.prototype._fetchQuery=function(e,n,r,i,o,a){return Zp(this,void 0,void 0,(function(){var s,c,l,u,p,f,d=this;return ef(this,(function(h){s=this.props.fetcher,c=null,l=null;try{c=n&&""!==n.trim()?JSON.parse(n):null}catch(e){throw new Error("Variables are invalid JSON: "+e.message+".")}if("object"!=typeof c)throw new Error("Variables are not a JSON object.");try{l=r&&""!==r.trim()?JSON.parse(r):null}catch(e){throw new Error("Headers are invalid JSON: "+e.message+".")}if("object"!=typeof l)throw new Error("Headers are not a JSON object.");return this.props.externalFragments&&(u=new Map,Array.isArray(this.props.externalFragments)?this.props.externalFragments.forEach((function(e){u.set(e.name.value,e)})):(0,iu.visit)((0,iu.parse)(this.props.externalFragments,{allowLegacyFragmentVariables:!0}),{FragmentDefinition:function(e){u.set(e.name.value,e)}}),(p=(0,su.getFragmentDependenciesForAST)(this.state.documentAST,u)).length>0&&(e+="\n"+p.map((function(e){return(0,iu.print)(e)})).join("\n"))),f=s({query:e,variables:c,operationName:i},{headers:l,shouldPersistHeaders:o,documentAST:this.state.documentAST}),[2,Promise.resolve(f).then((function(e){return df(e)?e.subscribe({next:a,error:function(e){d.safeSetState({isWaitingForResponse:!1,response:e?t.formatError(e):void 0,subscription:null})},complete:function(){d.safeSetState({isWaitingForResponse:!1,subscription:null})}}):hf(e)?(Zp(d,void 0,void 0,(function(){var n,r,i,o,s,c,l;return ef(this,(function(u){switch(u.label){case 0:u.trys.push([0,13,,14]),u.label=1;case 1:u.trys.push([1,6,7,12]),n=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof rf?rf(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}(e),u.label=2;case 2:return[4,n.next()];case 3:if((r=u.sent()).done)return[3,5];i=r.value,a(i),u.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return o=u.sent(),c={error:o},[3,12];case 7:return u.trys.push([7,,10,11]),r&&!r.done&&(l=n.return)?[4,l.call(n)]:[3,9];case 8:u.sent(),u.label=9;case 9:return[3,11];case 10:if(c)throw c.error;return[7];case 11:return[7];case 12:return this.safeSetState({isWaitingForResponse:!1,subscription:null}),[3,14];case 13:return s=u.sent(),this.safeSetState({isWaitingForResponse:!1,response:s?t.formatError(s):void 0,subscription:null}),[3,14];case 14:return[2]}}))})),{unsubscribe:function(){var t,n;return null===(n=(t=e[Symbol.asyncIterator]()).return)||void 0===n?void 0:n.call(t)}}):(a(e),null)})).catch((function(e){return d.safeSetState({isWaitingForResponse:!1,response:e?t.formatError(e):void 0}),null}))]}))}))},t.prototype._runQueryAtCursor=function(){if(this.state.subscription)this.handleStopQuery();else{var e,t=this.state.operations;if(t){var n=this.getQueryEditor();if(n&&n.hasFocus())for(var r=n.getCursor(),i=n.indexFromPos(r),o=0;o=i){e=a.name&&a.name.value;break}}}this.handleRunQuery(e)}},t.prototype._didClickDragBar=function(e){if(0!==e.button||e.ctrlKey)return!1;var t=e.target;if(0!==t.className.indexOf("CodeMirror-gutter"))return!1;for(var n=this.resultViewerElement;t;){if(t===n)return!0;t=t.parentNode}return!1},t.formatError=function(e){return Array.isArray(e)?of({errors:e.map((function(e){return af(e)}))}):of({errors:af(e)})},t.Logo=cf,t.Toolbar=lf,t.Footer=uf,t.QueryEditor=ju,t.VariableEditor=Qu,t.HeaderEditor=Gu,t.ResultViewer=Ku,t.Button=hu,t.ToolbarButton=hu,t.Group=mu,t.Menu=yu,t.MenuItem=gu,t}(c().Component);function cf(e){return c().createElement("div",{className:"title"},e.children||c().createElement("span",null,"Graph",c().createElement("em",null,"i"),"QL"))}function lf(e){return c().createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}function uf(e){return c().createElement("div",{className:"footer"},e.children)}cf.displayName="GraphiQLLogo",lf.displayName="GraphiQLToolbar",uf.displayName="GraphiQLFooter";var pf='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify Query: Shift-Ctrl-P (or press the prettify button above)\n#\n# Merge Query: Shift-Ctrl-M (or press the merge button above)\n#\n# Run Query: Ctrl-Enter (or press the play button above)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';function ff(e){return"object"==typeof e&&"function"==typeof e.then}function df(e){return"object"==typeof e&&"subscribe"in e&&"function"==typeof e.subscribe}function hf(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function mf(e){return Promise.resolve(e).then((function(e){return hf(e)?(n=e,new Promise((function(e,t){var r,i=null===(r=("return"in n?n:n[Symbol.asyncIterator]()).return)||void 0===r?void 0:r.bind(n);("next"in n?n:n[Symbol.asyncIterator]()).next.bind(n)().then((function(t){e(t.value),null==i||i()})).catch((function(e){t(e)}))}))):df(e)?(t=e,new Promise((function(e,n){var r=t.subscribe({next:function(t){e(t),r.unsubscribe()},error:n,complete:function(){n(new Error("no value resolved"))}})}))):e;var t,n}))}function vf(e,t){var n;return!(!(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.displayName)||e.type.displayName!==t.displayName)||e.type===t}var yf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),gf=function(){return gf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n(0,r.useContext)(If),Rf=e=>{let{children:t}=e;const{queryParams:n,setQueryParams:i}=Lf(),[o,a]=(0,r.useState)((()=>{var e;let t=null,r=null!==(e=n.query)&&void 0!==e?e:null;r&&(t=xf().decompressFromEncodedURIComponent(r),null===t&&(t=r));try{t=(0,Af.print)((0,Af.parse)(t))}catch(e){var i,o,a;t=null!==(i=null===(o=window)||void 0===o||null===(a=o.localStorage)||void 0===a?void 0:a.getItem("graphiql:query"))&&void 0!==i?i:'# Welcome to GraphiQL\n #\n # GraphiQL is an in-browser tool for writing, validating, and\n # testing GraphQL queries.\n #\n # Type queries into this side of the screen, and you will see intelligent\n # typeaheads aware of the current GraphQL type schema and live syntax and\n # validation errors highlighted within the text.\n #\n # GraphQL queries typically start with a "{" character. Lines that starts\n # with a # are ignored.\n #\n # An example GraphQL query might look like:\n #\n query GetPosts {\n posts {\n nodes {\n id\n title\n date\n } \n }\n }\n #\n # Keyboard shortcuts:\n #\n # Prettify Query: Shift-Ctrl-P (or press the prettify button above)\n #\n # Run Query: Ctrl-Enter (or press the play button above)\n #\n # Auto Complete: Ctrl-Space (or just start typing)\n #\n '}return t})()),[s,c]=(0,r.useState)({}),[l,u]=(0,r.useState)((()=>{var e,t;const n=null!==(e=null===(t=wpGraphiQLSettings)||void 0===t?void 0:t.externalFragments)&&void 0!==e?e:null;if(!n)return[];const r=[];return n.map((e=>{let t,n;try{var i,o;t=Nf(e),n=null!==(i=null===(o=t)||void 0===o?void 0:o.definitions[0])&&void 0!==i?i:null}catch(e){}n&&r.push(n)})),r})()),p=Df.applyFilters("graphiql_context_value",{query:o,setQuery:e=>{Df.doAction("graphiql_update_query",{query:o,newQuery:e});let t,r,s=!1;if(null!==e&&e===o)return;if(null===e||""===e)s=!0;else{r=xf().decompressFromEncodedURIComponent(e),t=null===r?xf().compressToEncodedURIComponent(e):e;try{(0,Af.parse)(e),s=!0}catch(t){return void console.warn({error:{e:t,newQuery:e}})}}if(!s)return;var c;window&&window.localStorage&&""!==e&&null!==e&&(null===(c=window)||void 0===c||c.localStorage.setItem("graphiql:query",e));const l={...n,query:t};JSON.stringify(l!==JSON.stringify(n))&&i(l),o!==e&&a(e)},variables:s,setVariables:c,externalFragments:l,setExternalFragments:u});return(0,r.createElement)(If.Provider,{value:p},t)},{hooks:Mf}=wpGraphiQL;var jf=e=>{const{graphiql:t}=e;const n=Pf(),i={...e,GraphiQL:sf,graphiqlContext:n},o=Mf.applyFilters("graphiql_toolbar_buttons",[{label:"Prettify",title:"Prettify Query (Shift-Ctrl-P)",onClick:e=>{e().handlePrettifyQuery()}},{label:"History",title:"Show History",onClick:e=>{e().handleToggleHistory()}}],i),a=Mf.applyFilters("graphiql_toolbar_before_buttons",[],i),s=Mf.applyFilters("graphiql_toolbar_after_buttons",[],i);return(0,r.createElement)("div",{"data-testid":"graphiql-toolbar",style:{display:"flex"}},a.length>0?a:null,o&&o.length&&o.map(((e,n)=>{const{label:i,title:o,onClick:a}=e;return(0,r.createElement)(sf.Button,{"data-testid":i,key:n,onClick:()=>{a(t)},label:i,title:o})})),s.length>0?s:null)};const{hooks:Ff,useAppContext:Vf,GraphQL:Qf}=wpGraphiQL,{parse:Uf,specifiedRules:qf}=Qf,Gf=sc.div` +`;var xl=()=>(0,r.createElement)(Cl,null,(0,r.createElement)("h2",null,"Help"),(0,r.createElement)("p",null,"On this page you will find resources to help you understand WPGraphQL, how to use GraphQL with WordPress, how to customize it and make it work for you, and how to get plugged into the community."),(0,r.createElement)(lc,null),(0,r.createElement)("h3",null,"Documentation"),(0,r.createElement)("p",null,"Below are helpful links to the official WPGraphQL documentation."),(0,r.createElement)(gc,{gutter:[16,16]},(0,r.createElement)(Tc,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(sl,{style:{height:"100%"},title:"Getting Started",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/docs/introduction/",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Get Started with WPGraphQL"))]},(0,r.createElement)("p",null,"In the Getting Started are resources to learn about GraphQL, WordPress, how they work together, and more."))),(0,r.createElement)(Tc,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(sl,{style:{height:"100%"},title:"Beginner Guides",actions:[(0,r.createElement)("a",{target:"_blank",href:"https://www.wpgraphql.com/docs/intro-to-graphql/"},(0,r.createElement)(Ol,{type:"primary"},"Beginner Guides"))]},(0,r.createElement)("p",null,"The Beginner guides go over specific topics such as GraphQL, WordPress, tools and techniques to interact with GraphQL APIs and more."))),(0,r.createElement)(Tc,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(sl,{style:{height:"100%"},title:"Using WPGraphQL",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/docs/posts-and-pages/",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Using WPGraphQL"))]},(0,r.createElement)("p",null,"This section covers how WPGraphQL exposes WordPress data to the Graph, and shows how you can interact with this data using GraphQL."))),(0,r.createElement)(Tc,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(sl,{style:{height:"100%"},title:"Advanced Concepts",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/docs/wpgraphql-concepts/",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Advanced Concepts"))]},(0,r.createElement)("p",null,'Learn about concepts such as "connections", "edges", "nodes", "what is an application data graph?" and more'," ")))),(0,r.createElement)(lc,null),(0,r.createElement)("h3",null,"Developer Reference"),(0,r.createElement)("p",null,"Below are helpful links to the WPGraphQL developer reference. These links will be most helpful to developers looking to customize WPGraphQL"," "),(0,r.createElement)(gc,{gutter:[16,16]},(0,r.createElement)(Tc,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(sl,{style:{height:"100%"},title:"Recipes",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/recipes",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Recipes"))]},(0,r.createElement)("p",null,"Here you will find snippets of code you can use to customize WPGraphQL. Most snippets are PHP and intended to be included in your theme or plugin."))),(0,r.createElement)(Tc,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(sl,{style:{height:"100%"},title:"Actions",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/actions",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Actions"))]},(0,r.createElement)("p",null,'Here you will find an index of the WordPress "actions" that are used in the WPGraphQL codebase. Actions can be used to customize behaviors.'))),(0,r.createElement)(Tc,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(sl,{style:{height:"100%"},title:"Filters",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/filters",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Filters"))]},(0,r.createElement)("p",null,'Here you will find an index of the WordPress "filters" that are used in the WPGraphQL codebase. Filters are used to customize the Schema and more.'))),(0,r.createElement)(Tc,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(sl,{style:{height:"100%"},title:"Functions",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/functions",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Functions"))]},(0,r.createElement)("p",null,'Here you will find functions that can be used to customize the WPGraphQL Schema. Learn how to register GraphQL "fields", "types", and more.')))),(0,r.createElement)(lc,null),(0,r.createElement)("h3",null,"Community"),(0,r.createElement)(gc,{gutter:[16,16]},(0,r.createElement)(Tc,{xs:24,sm:24,md:24,lg:8,xl:8},(0,r.createElement)(sl,{style:{height:"100%"},title:"Blog",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/Blog",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Read the Blog"))]},(0,r.createElement)("p",null,"Keep up to date with the latest news and updates from the WPGraphQL team."))),(0,r.createElement)(Tc,{xs:24,sm:24,md:24,lg:8,xl:8},(0,r.createElement)(sl,{style:{height:"100%"},title:"Extensions",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/Extensions",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"View Extensions"))]},(0,r.createElement)("p",null,"Browse the list of extensions that are available to extend WPGraphQL to work with other popular WordPress plugins."))),(0,r.createElement)(Tc,{xs:24,sm:24,md:24,lg:8,xl:8},(0,r.createElement)(sl,{style:{height:"100%"},title:"Join us in Slack",actions:[(0,r.createElement)("a",{href:"https://join.slack.com/t/wp-graphql/shared_invite/zt-3vloo60z-PpJV2PFIwEathWDOxCTTLA",target:"_blank"},(0,r.createElement)(Ol,{type:"primary"},"Join us in Slack"))]},(0,r.createElement)("p",null,"There are more than 2,000 people in the WPGraphQL Slack community asking questions and helping each other. Join us today!"))))),Nl=function(){return Nl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1,o=null;if(i&&r){var a=this.state.highlight;o=c().createElement("ul",{className:"execute-options"},n.map((function(e,n){var r=e.name?e.name.value:"";return c().createElement("li",{key:r+"-"+n,className:e===a?"selected":void 0,onMouseOver:function(){return t.setState({highlight:e})},onMouseOut:function(){return t.setState({highlight:null})},onMouseUp:function(){return t._onOptionSelected(e)}},r)})))}!this.props.isRunning&&i||(e=this._onClick);var s=function(){};this.props.isRunning||!i||r||(s=this._onOptionsOpen);var l=this.props.isRunning?c().createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):c().createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"});return c().createElement("div",{className:"execute-button-wrap"},c().createElement("button",{type:"button",className:"execute-button",onMouseDown:s,onClick:e,title:"Execute Query (Ctrl-Enter)"},c().createElement("svg",{width:"34",height:"34"},l)),o)},t}(c().Component),uu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}();function pu(e){if("string"===e.type){var t=e.string.slice(1).slice(0,-1).trim();try{var n=window.location;return new URL(t,n.protocol+"//"+n.host)}catch(e){return}}}var fu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._node=null,t.state={width:null,height:null,src:null,mime:null},t}return uu(t,e),t.shouldRender=function(e){var t=pu(e);return!!t&&function(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}(t)},t.prototype.componentDidMount=function(){this._updateMetadata()},t.prototype.componentDidUpdate=function(){this._updateMetadata()},t.prototype.render=function(){var e,t=this,n=null;if(null!==this.state.width&&null!==this.state.height){var r=this.state.width+"x"+this.state.height;null!==this.state.mime&&(r+=" "+this.state.mime),n=c().createElement("div",null,r)}return c().createElement("div",null,c().createElement("img",{onLoad:function(){return t._updateMetadata()},ref:function(e){t._node=e},src:null===(e=pu(this.props.token))||void 0===e?void 0:e.href}),n)},t.prototype._updateMetadata=function(){var e=this;if(this._node){var t=this._node.naturalWidth,n=this._node.naturalHeight,r=this._node.src;r!==this.state.src&&(this.setState({src:r}),fetch(r,{method:"HEAD"}).then((function(t){e.setState({mime:t.headers.get("Content-Type")})}))),t===this.state.width&&n===this.state.height||this.setState({height:n,width:t})}},t}(c().Component),du=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),hu=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=function(){try{n.props.onClick(),n.setState({error:null})}catch(e){n.setState({error:e})}},n.state={error:null},n}return du(t,e),t.prototype.render=function(){var e=this.state.error;return c().createElement("button",{className:"toolbar-button"+(e?" error":""),onClick:this.handleClick,title:e?e.message:this.props.title,"aria-invalid":e?"true":"false"},this.props.label)},t}(c().Component);function mu(e){var t=e.children;return c().createElement("div",{className:"toolbar-button-group"},t)}var vu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),yu=function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){bu(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return vu(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e=this,t=this.state.visible;return c().createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:bu,ref:function(t){t&&(e._node=t)},title:this.props.title},this.props.label,c().createElement("svg",{width:"14",height:"8"},c().createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),c().createElement("ul",{className:"toolbar-menu-items"+(t?" open":"")},this.props.children))},t.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},t.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},t.prototype.handleClick=function(e){this._node!==e.target&&(e.preventDefault(),this.setState({visible:!1}),this._release())},t}(c().Component),gu=function(e){var t=e.onSelect,n=e.title,r=e.label;return c().createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:bu,onMouseUp:t,title:n},r)};function bu(e){e.preventDefault()}var Eu=n(9980),Tu=n.n(Eu),wu=Array.from({length:11},(function(e,t){return String.fromCharCode(8192+t)})).concat(["\u2028","\u2029"," "," "]),_u=new RegExp("["+wu.join("")+"]","g");function ku(e){return e.replace(_u," ")}var Su,Ou=n(5573),Cu=n.n(Ou),xu=new(Tu());function Nu(e,t,r){var i,o;n(4631).on(t,"select",(function(e,t){if(!i){var n,a=t.parentNode;(i=document.createElement("div")).className="CodeMirror-hint-information",a.appendChild(i),(o=document.createElement("div")).className="CodeMirror-hint-deprecation",a.appendChild(o),a.addEventListener("DOMNodeRemoved",n=function(e){e.target===a&&(a.removeEventListener("DOMNodeRemoved",n),i=null,o=null,n=null)})}var s=e.description?xu.render(e.description):"Self descriptive.",c=e.type?''+Au(e.type)+"":"";if(i.innerHTML='
'+("

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

"+c+s.slice(3):c+s)+"

",e&&o&&e.deprecationReason){var l=e.deprecationReason?xu.render(e.deprecationReason):"";o.innerHTML='Deprecated'+l,o.style.display="block"}else o&&(o.style.display="none");r&&r(i)}))}function Au(e){return e instanceof iu.GraphQLNonNull?Au(e.ofType)+"!":e instanceof iu.GraphQLList?"["+Au(e.ofType)+"]":''+Cu()(e.name)+""}var Du=!1;"object"==typeof window&&(Du="MacIntel"===window.navigator.platform);var Lu=((Su={})[Du?"Cmd-F":"Ctrl-F"]="findPersistent",Su["Cmd-G"]="findPersistent",Su["Ctrl-G"]="findPersistent",Su["Ctrl-Left"]="goSubwordLeft",Su["Ctrl-Right"]="goSubwordRight",Su["Alt-Left"]="goGroupLeft",Su["Alt-Right"]="goGroupRight",Su),Iu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),Pu=function(){return Pu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=65&&r<=90||!t.shiftKey&&r>=48&&r<=57||t.shiftKey&&189===r||t.shiftKey&&222===r)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){n.editor&&(n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue)))},n._onHasCompletion=function(e,t){Nu(0,t,n.props.onHintInformationRender)},n.cachedValue=t.value||"",n}return Fu(t,e),t.prototype.componentDidMount=function(){var e=this;this.CodeMirror=n(4631),n(1707),n(4328),n(2801),n(5688),n(9700),n(3256),n(2095),n(4568),n(5292),n(3412),n(6094),n(373),n(9677);var t=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",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:Vu({"Cmd-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Ctrl-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Alt-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Shift-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Cmd-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Ctrl-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Shift-Ctrl-P":function(){e.props.onPrettifyQuery&&e.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){e.props.onMergeQuery&&e.props.onMergeQuery()}},Lu)});t.on("change",this._onEdit),t.on("keyup",this._onKeyUp),t.on("hasCompletion",this._onHasCompletion)},t.prototype.componentDidUpdate=function(e){if(this.CodeMirror=n(4631),this.editor){if(this.ignoreChangeEvent=!0,this.props.variableToType!==e.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!==e.value&&this.props.value!==this.cachedValue){var t=this.props.value||"";this.cachedValue=t,this.editor.setValue(t)}this.ignoreChangeEvent=!1}},t.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)},t.prototype.render=function(){var e=this;return c().createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(t){e._node=t}})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(c().Component),qu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),Uu=function(){return Uu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=65&&r<=90||!t.shiftKey&&r>=48&&r<=57||t.shiftKey&&189===r||t.shiftKey&&222===r)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){n.editor&&(n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue)))},n._onHasCompletion=function(e,t){Nu(0,t,n.props.onHintInformationRender)},n.cachedValue=t.value||"",n}return qu(t,e),t.prototype.componentDidMount=function(){var e=this;this.CodeMirror=n(4631),n(1707),n(4328),n(2801),n(5688),n(9700),n(3256),n(2095),n(4568),n(5292),n(6876),n(3412);var t=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",foldGutter:{minFoldSize:4},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Uu({"Cmd-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Ctrl-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Alt-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Shift-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Cmd-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Ctrl-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Shift-Ctrl-P":function(){e.props.onPrettifyQuery&&e.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){e.props.onMergeQuery&&e.props.onMergeQuery()}},Lu)});t.on("change",this._onEdit),t.on("keyup",this._onKeyUp),t.on("hasCompletion",this._onHasCompletion)},t.prototype.componentDidUpdate=function(e){if(this.CodeMirror=n(4631),this.editor){if(this.ignoreChangeEvent=!0,this.props.value!==e.value&&this.props.value!==this.cachedValue){var t=this.props.value||"";this.cachedValue=t,this.editor.setValue(t)}this.ignoreChangeEvent=!1}},t.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)},t.prototype.render=function(){var e=this;return c().createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(t){e._node=t}})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(c().Component),Bu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),Ku=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.viewer=null,t._node=null,t}return Bu(t,e),t.prototype.componentDidMount=function(){var e=n(4631);n(9700),n(5688),n(5292),n(1699),n(2095),n(4568),n(3412),n(6276);var t=this.props.ResultsTooltip,r=this.props.ImagePreview;if(t||r){n(9965);var i=document.createElement("div");e.registerHelper("info","graphql-results",(function(e,n,o,a){var s=[];return t&&s.push(c().createElement(t,{pos:a})),r&&"function"==typeof r.shouldRender&&r.shouldRender(e)&&s.push(c().createElement(r,{token:e})),s.length?(_t().render(c().createElement("div",null,s),i),i):(_t().unmountComponentAtNode(i),null)}))}this.viewer=e(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:Boolean(this.props.ResultsTooltip||this.props.ImagePreview),extraKeys:Lu})},t.prototype.shouldComponentUpdate=function(e){return this.props.value!==e.value},t.prototype.componentDidUpdate=function(){this.viewer&&this.viewer.setValue(this.props.value||"")},t.prototype.componentWillUnmount=function(){this.viewer=null},t.prototype.render=function(){var e=this;return c().createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:function(t){t&&(e.props.registerRef(t),e._node=t)}})},t.prototype.getCodeMirror=function(){return this.viewer},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(c().Component);function zu(e){var t=e.onClick?e.onClick:function(){return null};return $u(e.type,t)}function $u(e,t){return e instanceof iu.GraphQLNonNull?c().createElement("span",null,$u(e.ofType,t),"!"):e instanceof iu.GraphQLList?c().createElement("span",null,"[",$u(e.ofType,t),"]"):c().createElement("a",{className:"type-name",onClick:function(n){n.preventDefault(),t(e,n)},href:"#"},null==e?void 0:e.name)}function Hu(e){var t,n=e.field;return"defaultValue"in n&&void 0!==n.defaultValue?c().createElement("span",null," = ",c().createElement("span",{className:"arg-default-value"},(t=(0,iu.astFromValue)(n.defaultValue,n.type))?(0,iu.print)(t):"")):null}function Wu(e){var t=e.arg,n=e.onClickType,r=e.showDefaultValue;return c().createElement("span",{className:"arg"},c().createElement("span",{className:"arg-name"},t.name),": ",c().createElement(zu,{type:t.type,onClick:n}),!1!==r&&c().createElement(Hu,{field:t}))}function Yu(e){var t=e.directive;return c().createElement("span",{className:"doc-category-item",id:t.name.value},"@",t.name.value)}var Ju=new(Tu())({linkify:!0});function Xu(e){var t=e.markdown,n=e.className;return t?c().createElement("div",{className:n,dangerouslySetInnerHTML:{__html:Ju.render(t)}}):c().createElement("div",null)}function Zu(e){var t,n,r=e.field,i=e.onClickType;return r&&"args"in r&&r.args.length>0&&(t=c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"arguments"),r.args.map((function(e){return c().createElement("div",{key:e.name,className:"doc-category-item"},c().createElement("div",null,c().createElement(Wu,{arg:e,onClickType:i})),c().createElement(Xu,{className:"doc-value-description",markdown:e.description}))})))),r&&r.astNode&&r.astNode.directives&&r.astNode.directives.length>0&&(n=c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"directives"),r.astNode.directives.map((function(e){return c().createElement("div",{key:e.name.value,className:"doc-category-item"},c().createElement("div",null,c().createElement(Yu,{directive:e})))})))),c().createElement("div",null,c().createElement(Xu,{className:"doc-type-description",markdown:(null==r?void 0:r.description)||"No Description"}),r&&"deprecationReason"in r&&c().createElement(Xu,{className:"doc-deprecation",markdown:null==r?void 0:r.deprecationReason}),c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"type"),c().createElement(zu,{type:null==r?void 0:r.type,onClick:i})),t,n)}function ep(e){var t=e.schema,n=e.onClickType,r=t.getQueryType(),i=t.getMutationType&&t.getMutationType(),o=t.getSubscriptionType&&t.getSubscriptionType();return c().createElement("div",null,c().createElement(Xu,{className:"doc-type-description",markdown:t.description||"A GraphQL schema provides a root type for each kind of operation."}),c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"root types"),c().createElement("div",{className:"doc-category-item"},c().createElement("span",{className:"keyword"},"query"),": ",c().createElement(zu,{type:r,onClick:n})),i&&c().createElement("div",{className:"doc-category-item"},c().createElement("span",{className:"keyword"},"mutation"),": ",c().createElement(zu,{type:i,onClick:n})),o&&c().createElement("div",{className:"doc-category-item"},c().createElement("span",{className:"keyword"},"subscription"),": ",c().createElement(zu,{type:o,onClick:n}))))}function tp(e,t){var n;return function(){for(var r=this,i=[],o=0;o=100)return"break";var t=p[e];if(r!==t&&sp(e,n)&&l.push(c().createElement("div",{className:"doc-category-item",key:e},c().createElement(zu,{type:t,onClick:o}))),t&&"getFields"in t){var i=t.getFields();Object.keys(i).forEach((function(l){var p,f=i[l];if(!sp(l,n)){if(!("args"in f)||!f.args.length)return;if(0===(p=f.args.filter((function(e){return sp(e.name,n)}))).length)return}var d=c().createElement("div",{className:"doc-category-item",key:e+"."+l},r!==t&&[c().createElement(zu,{key:"type",type:t,onClick:o}),"."],c().createElement("a",{className:"field-name",onClick:function(e){return a(f,t,e)}},f.name),p&&["(",c().createElement("span",{key:"args"},p.map((function(e){return c().createElement(Wu,{key:e.name,arg:e,onClickType:o,showDefaultValue:!1})}))),")"]);r===t?s.push(d):u.push(d)}))}};try{for(var h=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),m=h.next();!m.done&&"break"!==d(m.value);m=h.next());}catch(t){e={error:t}}finally{try{m&&!m.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}return s.length+l.length+u.length===0?c().createElement("span",{className:"doc-alert-text"},"No results found."):r&&l.length+u.length>0?c().createElement("div",null,s,c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"other results"),l,u)):c().createElement("div",{className:"doc-search-items"},s,l,u)},t}(c().Component),ap=op;function sp(e,t){try{var n=t.replace(/[^_0-9A-Za-z]/g,(function(e){return"\\"+e}));return-1!==e.search(new RegExp(n,"i"))}catch(n){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}}var cp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),lp=function(e){function t(t){var n=e.call(this,t)||this;return n.handleShowDeprecated=function(){return n.setState({showDeprecated:!0})},n.state={showDeprecated:!1},n}return cp(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.props.type!==e.type||this.props.schema!==e.schema||this.state.showDeprecated!==t.showDeprecated},t.prototype.render=function(){var e,t,n,r,i,o=this.props.schema,a=this.props.type,s=this.props.onClickType,l=this.props.onClickField,u=null,p=[];if(a instanceof iu.GraphQLUnionType?(u="possible types",p=o.getPossibleTypes(a)):a instanceof iu.GraphQLInterfaceType?(u="implementations",p=o.getPossibleTypes(a)):a instanceof iu.GraphQLObjectType&&(u="implements",p=a.getInterfaces()),p&&p.length>0&&(e=c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},u),p.map((function(e){return c().createElement("div",{key:e.name,className:"doc-category-item"},c().createElement(zu,{type:e,onClick:s}))})))),a&&"getFields"in a){var f=a.getFields(),d=Object.keys(f).map((function(e){return f[e]}));t=c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"fields"),d.filter((function(e){return!e.deprecationReason})).map((function(e){return c().createElement(up,{key:e.name,type:a,field:e,onClickType:s,onClickField:l})})));var h=d.filter((function(e){return Boolean(e.deprecationReason)}));h.length>0&&(n=c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"deprecated fields"),this.state.showDeprecated?h.map((function(e){return c().createElement(up,{key:e.name,type:a,field:e,onClickType:s,onClickField:l})})):c().createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated fields...")))}if(a instanceof iu.GraphQLEnumType){var m=a.getValues();r=c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"values"),m.filter((function(e){return Boolean(!e.deprecationReason)})).map((function(e){return c().createElement(pp,{key:e.name,value:e})})));var v=m.filter((function(e){return Boolean(e.deprecationReason)}));v.length>0&&(i=c().createElement("div",{className:"doc-category"},c().createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?v.map((function(e){return c().createElement(pp,{key:e.name,value:e})})):c().createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return c().createElement("div",null,c().createElement(Xu,{className:"doc-type-description",markdown:"description"in a&&a.description||"No Description"}),a instanceof iu.GraphQLObjectType&&e,t,n,r,i,!(a instanceof iu.GraphQLObjectType)&&e)},t}(c().Component);function up(e){var t=e.type,n=e.field,r=e.onClickType,i=e.onClickField;return c().createElement("div",{className:"doc-category-item"},c().createElement("a",{className:"field-name",onClick:function(e){return i(n,t,e)}},n.name),"args"in n&&n.args&&n.args.length>0&&["(",c().createElement("span",{key:"args"},n.args.map((function(e){return c().createElement(Wu,{key:e.name,arg:e,onClickType:r})}))),")"],": ",c().createElement(zu,{type:n.type,onClick:r}),c().createElement(Hu,{field:n}),n.description&&c().createElement(Xu,{className:"field-short-description",markdown:n.description}),"deprecationReason"in n&&n.deprecationReason&&c().createElement(Xu,{className:"doc-deprecation",markdown:n.deprecationReason}))}function pp(e){var t=e.value;return c().createElement("div",{className:"doc-category-item"},c().createElement("div",{className:"enum-value"},t.name),c().createElement(Xu,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&c().createElement(Xu,{className:"doc-deprecation",markdown:t.deprecationReason}))}var fp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),dp=function(){return dp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&n.setState({navStack:n.state.navStack.slice(0,-1)})},n.handleClickType=function(e){n.showDoc(e)},n.handleClickField=function(e){n.showDoc(e)},n.handleSearch=function(e){n.showSearch(e)},n.state={navStack:[hp]},n}return fp(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.props.schema!==e.schema||this.state.navStack!==t.navStack||this.props.schemaErrors!==e.schemaErrors},t.prototype.render=function(){var e,t=this.props,n=t.schema,r=t.schemaErrors,i=this.state.navStack,o=i[i.length-1];e=r?c().createElement("div",{className:"error-container"},"Error fetching schema"):void 0===n?c().createElement("div",{className:"spinner-container"},c().createElement("div",{className:"spinner"})):n?o.search?c().createElement(ap,{searchValue:o.search,withinType:o.def,schema:n,onClickType:this.handleClickType,onClickField:this.handleClickField}):1===i.length?c().createElement(ep,{schema:n,onClickType:this.handleClickType}):(0,iu.isType)(o.def)?c().createElement(lp,{schema:n,type:o.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):c().createElement(Zu,{field:o.def,onClickType:this.handleClickType}):c().createElement("div",{className:"error-container"},"No Schema Available");var a,s=1===i.length||(0,iu.isType)(o.def)&&"getFields"in o.def;return i.length>1&&(a=i[i.length-2].name),c().createElement("section",{className:"doc-explorer",key:o.name,"aria-label":"Documentation Explorer"},c().createElement("div",{className:"doc-explorer-title-bar"},a&&c().createElement("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to "+a},a),c().createElement("div",{className:"doc-explorer-title"},o.title||o.name),c().createElement("div",{className:"doc-explorer-rhs"},this.props.children)),c().createElement("div",{className:"doc-explorer-contents"},s&&c().createElement(rp,{value:o.search,placeholder:"Search "+o.name+"...",onSearch:this.handleSearch}),e))},t.prototype.showDoc=function(e){var t=this.state.navStack;t[t.length-1].def!==e&&this.setState({navStack:t.concat([{name:e.name,def:e}])})},t.prototype.showDocForReference=function(e){e&&"Type"===e.kind?this.showDoc(e.type):"Field"===e.kind||"Argument"===e.kind&&e.field?this.showDoc(e.field):"EnumValue"===e.kind&&e.type&&this.showDoc(e.type)},t.prototype.showSearch=function(e){var t=this.state.navStack.slice(),n=t[t.length-1];t[t.length-1]=dp(dp({},n),{search:e}),this.setState({navStack:t})},t.prototype.reset=function(){this.setState({navStack:[hp]})},t}(c().Component),vp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),yp=function(e){function t(t){var n=e.call(this,t)||this;return n.state={editable:!1},n.editField=null,n}return vp(t,e),t.prototype.render=function(){var e,t=this,n=this.props.label||this.props.operationName||(null===(e=this.props.query)||void 0===e?void 0:e.split("\n").filter((function(e){return 0!==e.indexOf("#")})).join("")),r=this.props.favorite?"★":"☆";return c().createElement("li",{className:this.state.editable?"editable":void 0},this.state.editable?c().createElement("input",{type:"text",defaultValue:this.props.label,ref:function(e){t.editField=e},onBlur:this.handleFieldBlur.bind(this),onKeyDown:this.handleFieldKeyDown.bind(this),placeholder:"Type a label"}):c().createElement("button",{className:"history-label",onClick:this.handleClick.bind(this)},n),c().createElement("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label"},"✎"),c().createElement("button",{className:this.props.favorite?"favorited":void 0,onClick:this.handleStarClick.bind(this),"aria-label":this.props.favorite?"Remove favorite":"Add favorite"},r))},t.prototype.handleClick=function(){this.props.onSelect(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label)},t.prototype.handleStarClick=function(e){e.stopPropagation(),this.props.handleToggleFavorite(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label,this.props.favorite)},t.prototype.handleFieldBlur=function(e){e.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,e.target.value,this.props.favorite)},t.prototype.handleFieldKeyDown=function(e){13===e.keyCode&&(e.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,e.currentTarget.value,this.props.favorite))},t.prototype.handleEditClick=function(e){var t=this;e.stopPropagation(),this.setState({editable:!0},(function(){t.editField&&t.editField.focus()}))},t}(c().Component),gp=yp,bp=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Ep=function(){function e(e,t,n){void 0===n&&(n=null),this.key=e,this.storage=t,this.maxSize=n,this.items=this.fetchAll()}return Object.defineProperty(e.prototype,"length",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),e.prototype.contains=function(e){return this.items.some((function(t){return t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName}))},e.prototype.edit=function(e){var t=this.items.findIndex((function(t){return t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName}));-1!==t&&(this.items.splice(t,1,e),this.save())},e.prototype.delete=function(e){var t=this.items.findIndex((function(t){return t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName}));-1!==t&&(this.items.splice(t,1),this.save())},e.prototype.fetchRecent=function(){return this.items[this.items.length-1]},e.prototype.fetchAll=function(){var e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]},e.prototype.push=function(e){var t,n=function(){for(var e=[],t=0;tthis.maxSize&&n.shift();for(var r=0;r<5;r++){var i=this.storage.set(this.key,JSON.stringify(((t={})[this.key]=n,t)));if(i&&i.error){if(!i.isQuotaError||!this.maxSize)return;n.shift()}else this.items=n}},e.prototype.save=function(){var e;this.storage.set(this.key,JSON.stringify(((e={})[this.key]=this.items,e)))},e}(),Tp=Ep,wp=function(){return wp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},kp=function(){for(var e=[],t=0;t1e5)return!1;if(!r)return!0;if(JSON.stringify(e)===JSON.stringify(r.query)){if(JSON.stringify(t)===JSON.stringify(r.variables)){if(JSON.stringify(n)===JSON.stringify(r.headers))return!1;if(n&&!r.headers)return!1}if(t&&!r.variables)return!1}return!0},this.fetchAllQueries=function(){var e=n.history.fetchAll(),t=n.favorite.fetchAll();return e.concat(t)},this.updateHistory=function(e,t,r,i){if(n.shouldSaveQuery(e,t,r,n.history.fetchRecent())){n.history.push({query:e,variables:t,headers:r,operationName:i});var o=n.history.items,a=n.favorite.items;n.queries=o.concat(a)}},this.toggleFavorite=function(e,t,r,i,o,a){var s={query:e,variables:t,headers:r,operationName:i,label:o};n.favorite.contains(s)?a&&(s.favorite=!1,n.favorite.delete(s)):(s.favorite=!0,n.favorite.push(s)),n.queries=kp(n.history.items,n.favorite.items)},this.editLabel=function(e,t,r,i,o,a){var s={query:e,variables:t,headers:r,operationName:i,label:o};a?n.favorite.edit(wp(wp({},s),{favorite:a})):n.history.edit(s),n.queries=kp(n.history.items,n.favorite.items)},this.history=new Tp("queries",this.storage,this.maxHistoryLength),this.favorite=new Tp("favorites",this.storage,null),this.queries=this.fetchAllQueries()},Op=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),Cp=function(){return Cp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Up=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Gp=function(){for(var e=[],t=0;t=0)continue;c.push(f)}var d=e[p.name.value];if(d){var h=d.typeCondition,m=d.directives,v=d.selectionSet;p={kind:iu.Kind.INLINE_FRAGMENT,typeCondition:h,directives:m,selectionSet:v}}}if(p.kind===iu.Kind.INLINE_FRAGMENT&&(!p.directives||0===(null===(o=p.directives)||void 0===o?void 0:o.length))){var y=p.typeCondition?p.typeCondition.name.value:null;if(!y||y===a){s.push.apply(s,Gp(Bp(e,p.selectionSet.selections,n)));continue}}s.push(p)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return s}function Kp(e,t){var n,r,i=t?new iu.TypeInfo(t):null,o=Object.create(null);try{for(var a=qp(e.definitions),s=a.next();!s.done;s=a.next()){var c=s.value;c.kind===iu.Kind.FRAGMENT_DEFINITION&&(o[c.name.value]=c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}var l={SelectionSet:function(e){var t=i?i.getParentType():null,n=e.selections;return n=function(e,t){var n,r,i,o=new Map,a=[];try{for(var s=qp(e),c=s.next();!c.done;c=s.next()){var l=c.value;if("Field"===l.kind){var u=(i=l).alias?i.alias.value:i.name.value,p=o.get(u);if(l.directives&&l.directives.length){var f=Qp({},l);a.push(f)}else p&&p.selectionSet&&l.selectionSet?p.selectionSet.selections=Gp(p.selectionSet.selections,l.selectionSet.selections):p||(f=Qp({},l),o.set(u,f),a.push(f))}else a.push(l)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a}(n=Bp(o,n,t)),Qp(Qp({},e),{selections:n})},FragmentDefinition:function(){return null}};return(0,iu.visit)(e,i?(0,iu.visitWithTypeInfo)(i,l):l)}var zp=(0,iu.getIntrospectionQuery)(),$p="IntrospectionQuery",Hp=zp.replace("subscriptionType { name }","");function Wp(e,t,n){if("object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},rf=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};if(parseInt(c().version.slice(0,2),10)<16)throw Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join("\n"));var of=function(e){return JSON.stringify(e,null,2)},af=function(e){return e instanceof iu.GraphQLError?e.toString():e instanceof Error?function(e){return Xp(Xp({},e),{message:e.message,stack:e.stack})}(e):e},sf=function(e){function t(n){var r,i,o,a=e.call(this,n)||this;if(a._editorQueryID=0,a.safeSetState=function(e,t){a.componentIsMounted&&a.setState(e,t)},a.handleClickReference=function(e){a.setState({docExplorerOpen:!0},(function(){a.docExplorerComponent&&a.docExplorerComponent.showDocForReference(e)})),a._storage.set("docExplorerOpen",JSON.stringify(a.state.docExplorerOpen))},a.handleRunQuery=function(e){return Zp(a,void 0,void 0,(function(){var n,r,i,o,a,s,c,l,u,p=this;return ef(this,(function(f){switch(f.label){case 0:this._editorQueryID++,n=this._editorQueryID,r=this.autoCompleteLeafs()||this.state.query,i=this.state.variables,o=this.state.headers,a=this.state.shouldPersistHeaders,s=this.state.operationName,e&&e!==s&&(s=e,this.handleEditOperationName(s)),f.label=1;case 1:return f.trys.push([1,3,,4]),this.setState({isWaitingForResponse:!0,response:void 0,operationName:s}),this._storage.set("operationName",s),this._queryHistory?this._queryHistory.onUpdateHistory(r,i,o,s):this._historyStore&&this._historyStore.updateHistory(r,i,o,s),c={data:{}},[4,this._fetchQuery(r,i,o,s,a,(function(e){var r,i;if(n===p._editorQueryID){var o=!!Array.isArray(e)&&e;if(!o&&"string"!=typeof e&&null!==e&&"hasNext"in e&&(o=[e]),o){var a={data:c.data},s=function(){for(var e=[],t=0;t0&&(g=t.formatError(E),y=void 0,b=E)}return a.state=Xp({schema:y,query:l,variables:p,headers:f,operationName:d,docExplorerOpen:h,schemaErrors:b,response:g,editorFlex:Number(a._storage.get("editorFlex"))||1,secondaryEditorOpen:c,secondaryEditorHeight:Number(a._storage.get("secondaryEditorHeight"))||200,variableEditorActive:"true"!==a._storage.get("variableEditorActive")&&!n.headerEditorEnabled||"true"!==a._storage.get("headerEditorActive"),headerEditorActive:"true"===a._storage.get("headerEditorActive"),headerEditorEnabled:m,shouldPersistHeaders:v,historyPaneOpen:"true"===a._storage.get("historyPaneOpen")||!1,docExplorerWidth:Number(a._storage.get("docExplorerWidth"))||350,isWaitingForResponse:!1,subscription:null,maxHistoryLength:s},u),a}return Jp(t,e),t.formatResult=function(e){return JSON.stringify(e,null,2)},t.prototype.componentDidMount=function(){this.componentIsMounted=!0,void 0===this.state.schema&&this.fetchSchema(),this.codeMirrorSizer=new Np,n.g.g=this},t.prototype.UNSAFE_componentWillMount=function(){this.componentIsMounted=!1},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this,n=this.state.schema,r=this.state.query,i=this.state.variables,o=this.state.headers,a=this.state.operationName,s=this.state.response;if(void 0!==e.schema&&(n=e.schema),void 0!==e.query&&this.props.query!==e.query&&(r=e.query),void 0!==e.variables&&this.props.variables!==e.variables&&(i=e.variables),void 0!==e.headers&&this.props.headers!==e.headers&&(o=e.headers),void 0!==e.operationName&&(a=e.operationName),void 0!==e.response&&(s=e.response),r&&n&&(n!==this.state.schema||r!==this.state.query||a!==this.state.operationName)){if(!this.props.dangerouslyAssumeSchemaIsValid){var c=(0,iu.validateSchema)(n);c&&c.length>0&&(this.handleSchemaErrors(c),n=void 0)}var l=this._updateQueryFacts(r,a,this.state.operations,n);void 0!==l&&(a=l.operationName,this.setState(l))}void 0===e.schema&&e.fetcher!==this.props.fetcher&&(n=void 0),this._storage.set("operationName",a),this.setState({schema:n,query:r,variables:i,headers:o,operationName:a,response:s},(function(){void 0===t.state.schema&&(t.docExplorerComponent&&t.docExplorerComponent.reset(),t.fetchSchema())}))},t.prototype.componentDidUpdate=function(){this.codeMirrorSizer.updateSizes([this.queryEditorComponent,this.variableEditorComponent,this.headerEditorComponent,this.resultComponent])},t.prototype.render=function(){var e,n=this,r=c().Children.toArray(this.props.children),i=Ip(r,(function(e){return vf(e,t.Logo)}))||c().createElement(t.Logo,null),o=Ip(r,(function(e){return vf(e,t.Toolbar)}))||c().createElement(t.Toolbar,null,c().createElement(hu,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),c().createElement(hu,{onClick:this.handleMergeQuery,title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),c().createElement(hu,{onClick:this.handleCopyQuery,title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),c().createElement(hu,{onClick:this.handleToggleHistory,title:"Show History",label:"History"}),(null===(e=this.props.toolbar)||void 0===e?void 0:e.additionalContent)?this.props.toolbar.additionalContent:null),a=Ip(r,(function(e){return vf(e,t.Footer)})),s={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},l={display:"block",width:this.state.docExplorerWidth},u="docExplorerWrap"+(this.state.docExplorerWidth<200?" doc-explorer-narrow":""),p={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:7},f=this.state.secondaryEditorOpen,d={height:f?this.state.secondaryEditorHeight:void 0};return c().createElement("div",{ref:function(e){n.graphiqlContainer=e},className:"graphiql-container"},this.state.historyPaneOpen&&c().createElement("div",{className:"historyPaneWrap",style:p},c().createElement(xp,{ref:function(e){n._queryHistory=e},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},c().createElement("button",{className:"docExplorerHide",onClick:this.handleToggleHistory,"aria-label":"Close History"},"✕"))),c().createElement("div",{className:"editorWrap"},c().createElement("div",{className:"topBarWrap"},c().createElement("div",{className:"topBar"},i,c().createElement(lu,{isRunning:Boolean(this.state.subscription),onRun:this.handleRunQuery,onStop:this.handleStopQuery,operations:this.state.operations}),o),!this.state.docExplorerOpen&&c().createElement("button",{className:"docExplorerShow",onClick:this.handleToggleDocs,"aria-label":"Open Documentation Explorer"},"Docs")),c().createElement("div",{ref:function(e){n.editorBarComponent=e},className:"editorBar",onDoubleClick:this.handleResetResize,onMouseDown:this.handleResizeStart},c().createElement("div",{className:"queryWrap",style:s},c().createElement(ju,{ref:function(e){n.queryEditorComponent=e},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}),c().createElement("section",{className:"variable-editor secondary-editor",style:d,"aria-label":this.state.variableEditorActive?"Query Variables":"Request Headers"},c().createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title",style:{cursor:f?"row-resize":"n-resize"},onMouseDown:this.handleSecondaryEditorResizeStart},c().createElement("div",{style:{cursor:"pointer",color:this.state.variableEditorActive?"#000":"gray",display:"inline-block"},onClick:this.handleOpenVariableEditorTab,onMouseDown:this.handleTabClickPropogation},"Query Variables"),this.state.headerEditorEnabled&&c().createElement("div",{style:{cursor:"pointer",color:this.state.headerEditorActive?"#000":"gray",display:"inline-block",marginLeft:"20px"},onClick:this.handleOpenHeaderEditorTab,onMouseDown:this.handleTabClickPropogation},"Request Headers")),c().createElement(Qu,{ref:function(e){n.variableEditorComponent=e},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&&c().createElement(Gu,{ref:function(e){n.headerEditorComponent=e},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}))),c().createElement("div",{className:"resultWrap"},this.state.isWaitingForResponse&&c().createElement("div",{className:"spinner-container"},c().createElement("div",{className:"spinner"})),c().createElement(Ku,{registerRef:function(e){n.resultViewerElement=e},ref:function(e){n.resultComponent=e},value:this.state.response,editorTheme:this.props.editorTheme,ResultsTooltip:this.props.ResultsTooltip,ImagePreview:fu}),a))),this.state.docExplorerOpen&&c().createElement("div",{className:u,style:l},c().createElement("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),c().createElement(mp,{ref:function(e){n.docExplorerComponent=e},schemaErrors:this.state.schemaErrors,schema:this.state.schema},c().createElement("button",{className:"docExplorerHide",onClick:this.handleToggleDocs,"aria-label":"Close Documentation Explorer"},"✕"))))},t.prototype.getQueryEditor=function(){if(this.queryEditorComponent)return this.queryEditorComponent.getCodeMirror()},t.prototype.getVariableEditor=function(){return this.variableEditorComponent?this.variableEditorComponent.getCodeMirror():null},t.prototype.getHeaderEditor=function(){return this.headerEditorComponent?this.headerEditorComponent.getCodeMirror():null},t.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()},t.prototype.autoCompleteLeafs=function(){var e=Pp(this.state.schema,this.state.query,this.props.getDefaultFieldNames),t=e.insertions,n=e.result;if(t&&t.length>0){var r=this.getQueryEditor();r&&r.operation((function(){var e=r.getCursor(),i=r.indexFromPos(e);r.setValue(n||"");var o=0,a=t.map((function(e){var t=e.index,n=e.string;return r.markText(r.posFromIndex(t+o),r.posFromIndex(t+(o+=n.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})}));setTimeout((function(){return a.forEach((function(e){return e.clear()}))}),7e3);var s=i;t.forEach((function(e){var t=e.index,n=e.string;t2?r.headers=JSON.parse(this.state.headers):this.props.headers&&(r.headers=JSON.parse(this.props.headers));var i=mf(n({query:zp,operationName:$p},r));ff(i)?i.then((function(e){if("string"!=typeof e&&"data"in e)return e;var t=mf(n({query:Hp,operationName:$p},r));if(!ff(i))throw new Error("Fetcher did not return a Promise for introspection.");return t})).then((function(n){if(void 0===e.state.schema)if(n&&n.data&&"__schema"in(null==n?void 0:n.data)){var r=(0,iu.buildClientSchema)(n.data);if(!e.props.dangerouslyAssumeSchemaIsValid){var i=(0,iu.validateSchema)(r);i&&i.length>0&&(r=void 0,e.handleSchemaErrors(i))}if(r){var o=Dp(r,e.state.query);e.safeSetState(Xp(Xp({schema:r},o),{schemaErrors:void 0}))}}else{var a="string"==typeof n?n:t.formatResult(n);e.handleSchemaErrors([a])}})).catch((function(t){e.handleSchemaErrors([t])})):this.setState({response:"Fetcher did not return a Promise for introspection."})},t.prototype.handleSchemaErrors=function(e){this.safeSetState({response:e?t.formatError(e):void 0,schema:void 0,schemaErrors:e})},t.prototype._fetchQuery=function(e,n,r,i,o,a){return Zp(this,void 0,void 0,(function(){var s,c,l,u,p,f,d=this;return ef(this,(function(h){s=this.props.fetcher,c=null,l=null;try{c=n&&""!==n.trim()?JSON.parse(n):null}catch(e){throw new Error("Variables are invalid JSON: "+e.message+".")}if("object"!=typeof c)throw new Error("Variables are not a JSON object.");try{l=r&&""!==r.trim()?JSON.parse(r):null}catch(e){throw new Error("Headers are invalid JSON: "+e.message+".")}if("object"!=typeof l)throw new Error("Headers are not a JSON object.");return this.props.externalFragments&&(u=new Map,Array.isArray(this.props.externalFragments)?this.props.externalFragments.forEach((function(e){u.set(e.name.value,e)})):(0,iu.visit)((0,iu.parse)(this.props.externalFragments,{allowLegacyFragmentVariables:!0}),{FragmentDefinition:function(e){u.set(e.name.value,e)}}),(p=(0,su.getFragmentDependenciesForAST)(this.state.documentAST,u)).length>0&&(e+="\n"+p.map((function(e){return(0,iu.print)(e)})).join("\n"))),f=s({query:e,variables:c,operationName:i},{headers:l,shouldPersistHeaders:o,documentAST:this.state.documentAST}),[2,Promise.resolve(f).then((function(e){return df(e)?e.subscribe({next:a,error:function(e){d.safeSetState({isWaitingForResponse:!1,response:e?t.formatError(e):void 0,subscription:null})},complete:function(){d.safeSetState({isWaitingForResponse:!1,subscription:null})}}):hf(e)?(Zp(d,void 0,void 0,(function(){var n,r,i,o,s,c,l;return ef(this,(function(u){switch(u.label){case 0:u.trys.push([0,13,,14]),u.label=1;case 1:u.trys.push([1,6,7,12]),n=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof rf?rf(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}(e),u.label=2;case 2:return[4,n.next()];case 3:if((r=u.sent()).done)return[3,5];i=r.value,a(i),u.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return o=u.sent(),c={error:o},[3,12];case 7:return u.trys.push([7,,10,11]),r&&!r.done&&(l=n.return)?[4,l.call(n)]:[3,9];case 8:u.sent(),u.label=9;case 9:return[3,11];case 10:if(c)throw c.error;return[7];case 11:return[7];case 12:return this.safeSetState({isWaitingForResponse:!1,subscription:null}),[3,14];case 13:return s=u.sent(),this.safeSetState({isWaitingForResponse:!1,response:s?t.formatError(s):void 0,subscription:null}),[3,14];case 14:return[2]}}))})),{unsubscribe:function(){var t,n;return null===(n=(t=e[Symbol.asyncIterator]()).return)||void 0===n?void 0:n.call(t)}}):(a(e),null)})).catch((function(e){return d.safeSetState({isWaitingForResponse:!1,response:e?t.formatError(e):void 0}),null}))]}))}))},t.prototype._runQueryAtCursor=function(){if(this.state.subscription)this.handleStopQuery();else{var e,t=this.state.operations;if(t){var n=this.getQueryEditor();if(n&&n.hasFocus())for(var r=n.getCursor(),i=n.indexFromPos(r),o=0;o=i){e=a.name&&a.name.value;break}}}this.handleRunQuery(e)}},t.prototype._didClickDragBar=function(e){if(0!==e.button||e.ctrlKey)return!1;var t=e.target;if(0!==t.className.indexOf("CodeMirror-gutter"))return!1;for(var n=this.resultViewerElement;t;){if(t===n)return!0;t=t.parentNode}return!1},t.formatError=function(e){return Array.isArray(e)?of({errors:e.map((function(e){return af(e)}))}):of({errors:af(e)})},t.Logo=cf,t.Toolbar=lf,t.Footer=uf,t.QueryEditor=ju,t.VariableEditor=Qu,t.HeaderEditor=Gu,t.ResultViewer=Ku,t.Button=hu,t.ToolbarButton=hu,t.Group=mu,t.Menu=yu,t.MenuItem=gu,t}(c().Component);function cf(e){return c().createElement("div",{className:"title"},e.children||c().createElement("span",null,"Graph",c().createElement("em",null,"i"),"QL"))}function lf(e){return c().createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}function uf(e){return c().createElement("div",{className:"footer"},e.children)}cf.displayName="GraphiQLLogo",lf.displayName="GraphiQLToolbar",uf.displayName="GraphiQLFooter";var pf='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify Query: Shift-Ctrl-P (or press the prettify button above)\n#\n# Merge Query: Shift-Ctrl-M (or press the merge button above)\n#\n# Run Query: Ctrl-Enter (or press the play button above)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';function ff(e){return"object"==typeof e&&"function"==typeof e.then}function df(e){return"object"==typeof e&&"subscribe"in e&&"function"==typeof e.subscribe}function hf(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function mf(e){return Promise.resolve(e).then((function(e){return hf(e)?(n=e,new Promise((function(e,t){var r,i=null===(r=("return"in n?n:n[Symbol.asyncIterator]()).return)||void 0===r?void 0:r.bind(n);("next"in n?n:n[Symbol.asyncIterator]()).next.bind(n)().then((function(t){e(t.value),null==i||i()})).catch((function(e){t(e)}))}))):df(e)?(t=e,new Promise((function(e,n){var r=t.subscribe({next:function(t){e(t),r.unsubscribe()},error:n,complete:function(){n(new Error("no value resolved"))}})}))):e;var t,n}))}function vf(e,t){var n;return!(!(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.displayName)||e.type.displayName!==t.displayName)||e.type===t}var yf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),gf=function(){return gf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n(0,r.useContext)(If),Rf=e=>{let{children:t}=e;const{queryParams:n,setQueryParams:i}=Lf(),[o,a]=(0,r.useState)((()=>{var e;let t=null,r=null!==(e=n.query)&&void 0!==e?e:null;r&&(t=xf().decompressFromEncodedURIComponent(r),null===t&&(t=r));try{t=(0,Af.print)((0,Af.parse)(t))}catch(e){var i,o,a;t=null!==(i=null===(o=window)||void 0===o||null===(a=o.localStorage)||void 0===a?void 0:a.getItem("graphiql:query"))&&void 0!==i?i:'# Welcome to GraphiQL\n #\n # GraphiQL is an in-browser tool for writing, validating, and\n # testing GraphQL queries.\n #\n # Type queries into this side of the screen, and you will see intelligent\n # typeaheads aware of the current GraphQL type schema and live syntax and\n # validation errors highlighted within the text.\n #\n # GraphQL queries typically start with a "{" character. Lines that starts\n # with a # are ignored.\n #\n # An example GraphQL query might look like:\n #\n query GetPosts {\n posts {\n nodes {\n id\n title\n date\n } \n }\n }\n #\n # Keyboard shortcuts:\n #\n # Prettify Query: Shift-Ctrl-P (or press the prettify button above)\n #\n # Run Query: Ctrl-Enter (or press the play button above)\n #\n # Auto Complete: Ctrl-Space (or just start typing)\n #\n '}return t})()),[s,c]=(0,r.useState)({}),[l,u]=(0,r.useState)((()=>{var e,t;const n=null!==(e=null===(t=wpGraphiQLSettings)||void 0===t?void 0:t.externalFragments)&&void 0!==e?e:null;if(!n)return[];const r=[];return n.map((e=>{let t,n;try{var i,o;t=Nf(e),n=null!==(i=null===(o=t)||void 0===o?void 0:o.definitions[0])&&void 0!==i?i:null}catch(e){}n&&r.push(n)})),r})()),p=Df.applyFilters("graphiql_context_value",{query:o,setQuery:e=>{Df.doAction("graphiql_update_query",{query:o,newQuery:e});let t,r,s=!1;if(null!==e&&e===o)return;if(null===e||""===e)s=!0;else{r=xf().decompressFromEncodedURIComponent(e),t=null===r?xf().compressToEncodedURIComponent(e):e;try{(0,Af.parse)(e),s=!0}catch(t){return void console.warn({error:{e:t,newQuery:e}})}}if(!s)return;var c;window&&window.localStorage&&""!==e&&null!==e&&(null===(c=window)||void 0===c||c.localStorage.setItem("graphiql:query",e));const l={...n,query:t};JSON.stringify(l!==JSON.stringify(n))&&i(l),o!==e&&a(e)},variables:s,setVariables:c,externalFragments:l,setExternalFragments:u});return(0,r.createElement)(If.Provider,{value:p},t)},{hooks:Mf}=wpGraphiQL;var jf=e=>{const{graphiql:t}=e;const n=Pf(),i={...e,GraphiQL:sf,graphiqlContext:n},o=Mf.applyFilters("graphiql_toolbar_buttons",[{label:"Prettify",title:"Prettify Query (Shift-Ctrl-P)",onClick:e=>{e().handlePrettifyQuery()}},{label:"History",title:"Show History",onClick:e=>{e().handleToggleHistory()}}],i),a=Mf.applyFilters("graphiql_toolbar_before_buttons",[],i),s=Mf.applyFilters("graphiql_toolbar_after_buttons",[],i);return(0,r.createElement)("div",{"data-testid":"graphiql-toolbar",style:{display:"flex"}},a.length>0?a:null,o&&o.length&&o.map(((e,n)=>{const{label:i,title:o,onClick:a}=e;return(0,r.createElement)(sf.Button,{"data-testid":i,key:n,onClick:()=>{a(t)},label:i,title:o})})),s.length>0?s:null)};const{hooks:Ff,useAppContext:Vf,GraphQL:Qf}=wpGraphiQL,{parse:qf,specifiedRules:Uf}=Qf,Gf=sc.div` display: flex; .topBar { height: 50px; @@ -23,12 +23,12 @@ margin: 0 14px; } padding: 20px; -`,Bf=()=>{let e=(0,r.useRef)(null);const t=Vf(),n=Pf(),{query:i,setQuery:o,externalFragments:a}=n,{endpoint:s,nonce:c,schema:l,setSchema:u}=t;let p=((e,t)=>{const{nonce:n}=t;return t=>{const r={method:"POST",headers:{Accept:"application/json","content-type":"application/json","X-WP-Nonce":n},body:JSON.stringify(t),credentials:"include"};return fetch(e,r).then((e=>e.json()))}})(s,{nonce:c});p=Ff.applyFilters("graphiql_fetcher",p,t);const f=Ff.applyFilters("graphiql_before_graphiql",[],{...t,...n}),d=Ff.applyFilters("graphiql_after_graphiql",[],{...t,...n});return(0,r.createElement)(Gf,{"data-testid":"wp-graphiql-wrapper",id:"wp-graphiql-wrapper"},f.length>0?f:null,(0,r.createElement)(Tf,{ref:t=>{e=t},fetcher:e=>p(e),schema:l,query:i,onEditQuery:e=>{let t=!1;if(e!==i){if(null===e||""===e)t=!0;else try{Uf(e),t=!0}catch(e){return}t&&o(e)}},validationRules:qf,readOnly:!1,externalFragments:a,headerEditorEnabled:!1,onSchemaChange:e=>{l!==e&&u(e)},variables:JSON.stringify({first:10},null,2)},(0,r.createElement)(Tf.Toolbar,null,(0,r.createElement)(jf,{graphiql:()=>e})),(0,r.createElement)(Tf.Logo,null,(0,r.createElement)(r.Fragment,null))),d.length>0?d:null)};var Kf=()=>{const e=Vf(),{schema:t}=e;return t?(0,r.createElement)(Rf,{appContext:e},(0,r.createElement)(Bf,null)):(0,r.createElement)(Of,{style:{margin:"50px"}})},zf=function(e,t){return zf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},zf(e,t)};function $f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}zf(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var Hf=function(){return Hf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=od){var t=console[e]||console.log;return t.apply(console,arguments)}}}function sd(e){try{return e()}catch(e){}}!function(e){e.debug=ad("debug"),e.log=ad("log"),e.warn=ad("warn"),e.error=ad("error")}(rd||(rd={}));var cd=sd((function(){return globalThis}))||sd((function(){return window}))||sd((function(){return self}))||sd((function(){return global}))||sd((function(){return Function("return this")()})),__="__",ld=[__,__].join("DEV"),ud=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(cd,ld,{value:"production"!==sd((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),cd[ld]}}();function pd(e){try{return e()}catch(e){}}var fd=pd((function(){return globalThis}))||pd((function(){return window}))||pd((function(){return self}))||pd((function(){return n.g}))||pd((function(){return Function("return this")()})),dd=!1;function hd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[Td]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=_d(t,Td);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return Sd(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(gd("iterator")&&(r=_d(t,Ed)))return new n((function(e){Cd((function(){if(!e.closed){for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return hd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hd(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){Cd((function(){if(!e.closed){for(var n=0;n0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),"".concat(n.connection.key,"(").concat(Bd(i),")")}return n.connection.key}var o=e;if(t){var a=Bd(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach((function(e){-1===qd.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(Bd(n[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=Bd;return Bd=e,t}}),Bd=function(e){return JSON.stringify(e,Kd)};function Kd(e,t){return Rd(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function zd(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return Ud(n,r,i,t)})),n}return null}function $d(e){return e.alias?e.alias.value:e.name.value}function Hd(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r=300&&fh(e,t,"Response not successful: Received status code ".concat(e.status)),Array.isArray(t)||dh.call(t,"data")||dh.call(t,"errors")||fh(e,t,"Server response was missing for query '".concat(Array.isArray(i)?i.map((function(e){return e.operationName})):i.operationName,"'.")),t}))})).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){d&&d.abort()}}))}))},Eh=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,bh(t).request)||this;return n.options=t,n}return $f(t,e),t}(ch),Th=Object.prototype,wh=Th.toString,_h=Th.hasOwnProperty,kh=Function.prototype.toString,Sh=new Map;function Oh(e,t){try{return Ch(e,t)}finally{Sh.clear()}}function Ch(e,t){if(e===t)return!0;var n,r,i,o=wh.call(e);if(o!==wh.call(t))return!1;switch(o){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(Dh(e,t))return!0;var a=xh(e),s=xh(t),c=a.length;if(c!==s.length)return!1;for(var l=0;l=0&&n.indexOf(r,i)===i))}return!1}function xh(e){return Object.keys(e).filter(Nh,e)}function Nh(e){return void 0!==this[e]}var Ah="{ [native code] }";function Dh(e,t){var n=Sh.get(e);if(n){if(n.has(t))return!0}else Sh.set(e,n=new Set);return n.add(t),!1}var Lh,Ih,Ph=function(){return Object.create(null)},Rh=Array.prototype,Mh=Rh.forEach,jh=Rh.slice,Fh=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=Ph),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t0||!1}function $h(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var Hh={kind:"Field",name:{kind:"Name",value:"__typename"}};function Wh(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&Wh(t[e.name.value],t)}))}function Yh(e){return Wh(Xd(e)||function(e){__DEV__?rd("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):rd("Document"===e.kind,48),__DEV__?rd(e.definitions.length<=1,"Fragment must have exactly one definition."):rd(e.definitions.length<=1,49);var t=e.definitions[0];return __DEV__?rd("FragmentDefinition"===t.kind,"Must be a fragment definition."):rd("FragmentDefinition"===t.kind,50),t}(e),jd(eh(e)))?null:e}function Jh(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function Xh(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=Yh((0,iu.visit)(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(Jh(e)))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&tm(t.selectionSet).forEach((function(e){o.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(t){if(Jh(e)(t))return null}}}));return a&&$h(r,(function(e){return!!e.name&&!n[e.name]})).length&&(a=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return Yh((0,iu.visit)(t,{OperationDefinition:{enter:function(t){return Hf(Hf({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(r,a)),a&&$h(o,(function(e){return!!e.name&&!i[e.name]})).length&&(a=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return Yh((0,iu.visit)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var Zh=Object.assign((function(e){return(0,iu.visit)(Jd(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some((function(e){return Wd(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(Wd(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return Hf(Hf({},e),{selections:Xf(Xf([],r,!0),[Hh],!1)})}}}}})}),{added:function(e){return e===Hh}}),em={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&rd.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function tm(e){var t=[];return e.selections.forEach((function(e){(Wd(e)||Yd(e))&&e.selectionSet?tm(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function nm(e){return"query"===nh(e).operation?e:(0,iu.visit)(e,{OperationDefinition:{enter:function(e){return Hf(Hf({},e),{operation:"query"})}}})}function rm(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];return e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;__DEV__?rd(n&&1===n.length,"Incorrect number of arguments for the @".concat(r," directive.")):rd(n&&1===n.length,38);var i=n[0];__DEV__?rd(i.name&&"if"===i.name.value,"Invalid argument for the @".concat(r," directive.")):rd(i.name&&"if"===i.name.value,39);var o=i.value;__DEV__?rd(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @".concat(r," directive must be a variable or a boolean value.")):rd(o&&("Variable"===o.kind||"BooleanValue"===o.kind),40),t.push({directive:e,ifArgument:i})}})),t}(n).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?rd(void 0!==i,"Invalid variable referenced in @".concat(n.name.value," directive.")):rd(void 0!==i,37)):i=r.value.value,"skip"===n.name.value?!i:i}))}function im(e,t){return function(e){var t=[];return(0,iu.visit)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function om(e){return e&&im(["client"],e)&&im(["export"],e)}var am=new Map;function sm(e){var t=am.get(e)||1;return am.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function cm(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function lm(e){function t(t){Object.defineProperty(e,t,{value:Pd})}return Uh&&Symbol.species&&t(Symbol.species),t("@@species"),e}function um(e){return e&&"function"==typeof e.then}var pm=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],cm(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),cm(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?um(e)?e.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),cm(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"==typeof t&&(t=[new Pd(t)]),um(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return $f(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},o=this.addCount;this.addObserver(i),this.addCount=o},t}(Pd);function fm(e){return Array.isArray(e)&&e.length>0}lm(pm);var dm,hm=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.clientErrors,s=n.networkError,c=n.errorMessage,l=n.extraInfo,u=e.call(this,c)||this;return u.graphQLErrors=o||[],u.clientErrors=a||[],u.networkError=s||null,u.message=c||(i="",(fm((r=u).graphQLErrors)||fm(r.clientErrors))&&(r.graphQLErrors||[]).concat(r.clientErrors||[]).forEach((function(e){var t=e?e.message:"Error message not found.";i+="".concat(t,"\n")})),r.networkError&&(i+="".concat(r.networkError.message,"\n")),i=i.replace(/\n$/,"")),u.extraInfo=l,u.__proto__=t.prototype,u}return $f(t,e),t}(Error);function mm(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(dm||(dm={}));var vm=Object.prototype.toString;function ym(e){return gm(e)}function gm(e,t){switch(vm.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=gm(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=gm(e[n],t)})),r;default:return e}}var bm=Object.assign,Em=Object.hasOwnProperty,Tm=!1,wm=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=_m)}catch(e){}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.isTornDown=!1,o.options=i,o.queryId=r.queryId||n.generateQueryId();var a=Xd(i.query);return o.queryName=a&&a.name&&a.name.value,o.initialFetchPolicy=i.fetchPolicy||"cache-first",o.queryManager=n,o.queryInfo=r,o}return $f(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||dm.ready,r=Hf(Hf({},t),{loading:mm(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if("network-only"===o||"no-cache"===o||"standby"===o||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),Oh(r.data,{})&&(r.data=void 0),a.complete?(delete r.partial,!a.complete||r.networkStatus!==dm.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=dm.ready,r.loading=!1)):r.partial=!0,!__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||km(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!Oh(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Oh(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if(n.fetchPolicy="standby"===r||"cache-and-network"===r?r:"no-cache"===r?"no-cache":"network-only",__DEV__&&e&&Em.call(e,"variables")){var i=th(this.options.query),o=i.variableDefinitions;o&&o.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&rd.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=i.name)||void 0===t?void 0:t.value)||JSON.stringify(i),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!Oh(this.options.variables,e)&&(n.variables=this.options.variables=Hf(Hf({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,dm.refetch)},t.prototype.fetchMore=function(e){var t=this,n=Hf(Hf({},e.query?e:Hf(Hf(Hf({},this.options),e),{variables:Hf(Hf({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=dm.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,dm.fetchMore).then((function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!Tm&&(__DEV__&&rd.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),Tm=!0),t.updateQuery((function(e){return o(e,{fetchMoreResult:i,variables:n.variables})}))):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r})).finally((function(){t.queryManager.stopQuery(r),t.reobserve()}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError?e.onError(t):__DEV__&&rd.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return Oh(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},dm.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?rd(n,"Attempted to start a polling query without a polling interval."):rd(n,10),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(mm(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},dm.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=Hf(Hf({},this.last),{result:this.queryManager.assumeImmutableResults?e:ym(e),variables:t}),fm(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===dm.refetch||t===dm.fetchMore||t===dm.poll,i=this.options.variables,o=r?uh(this.options,e):bm(this.options,uh(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!Oh(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=dm.setVariables)));var a=o.variables&&Hf({},o.variables),s=this.fetch(o,t),c={next:function(e){n.reportResult(e,a)},error:function(e){n.reportError(e,a)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=s,this.observer=c),s.addObserver(c),s.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){(this.getLastError()||this.isDifferentFromLastResult(e))&&(this.updateLastResult(e,t),cm(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=Hf(Hf({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:dm.error,loading:!1});this.updateLastResult(n,t),cm(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(Pd);function _m(e){__DEV__&&rd.error("Unhandled error",e.message,e.stack)}function km(e){__DEV__&&e&&__DEV__&&rd.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}lm(wm);var Sm=Object.prototype.hasOwnProperty;function Om(){for(var e=[],t=0;t1)for(var r=new Nm,i=1;ithis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),Vm=new Rm,Qm=Object.prototype.hasOwnProperty,Um=void 0===(jm=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:jm;function qm(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Gm=[];function Bm(e,t){if(!e)throw new Error(t||"assertion failure")}function Km(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var zm=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!Wm(this))return $m(this),this.value[0]},e.prototype.recompute=function(e){return Bm(!this.recomputing,"already recomputing"),$m(this),Wm(this)?function(e,t){return nv(e),Vm.withValue(e,Hm,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{qm(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,Wm(e)||Jm(e)}(e),Km(e.value)}(this,e):Km(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Ym(this),qm(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),nv(this),Xm(this,(function(t,n){t.setDirty(),rv(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=Gm.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(Um(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),Gm.push(this.deps),this.deps=null)},e.count=0,e}();function $m(e){var t=Vm.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Wm(e)?Zm(t,e):ev(t,e),t}function Hm(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function Wm(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Ym(e){Xm(e,Zm)}function Jm(e){Xm(e,ev)}function Xm(e,t){var n=e.parents.size;if(n)for(var r=Um(e.parents),i=0;i0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),tv(e,t),Wm(e)||Jm(e)}function tv(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Gm.length<100&&Gm.push(n),e.dirtyChildren=null))}function nv(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){rv(e,n)})),e.forgetDeps(),Bm(null===e.dirtyChildren)}function rv(e,t){t.parents.delete(e),e.childValues.delete(t),tv(e,t)}var iv={setDirty:!0,dispose:!0,forget:!0};function ov(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=Vm.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(qm(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&Qm.call(iv,n)?n:"setDirty";Um(r).forEach((function(e){return e[i]()})),t.delete(e),qm(r)}},r}function av(){var e=new Fh("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}av();var sv=new Set;function cv(e,t){void 0===t&&(t=Object.create(null));var n=new Fm(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||av(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new zm(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),sv.add(n),Vm.hasValue()||(sv.forEach((function(e){return e.clean()})),sv.clear()),s};function a(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function c(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=c,o.forget=function(){return c(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var lv=new Rm,uv=new WeakMap;function pv(e){var t=uv.get(e);return t||uv.set(e,t={vars:new Set,dep:ov()}),t}function fv(e){pv(e).vars.forEach((function(t){return t.forgetCache(e)}))}function dv(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){pv(e).dep.dirty(r),hv(e)}));var a=Array.from(n);n.clear(),a.forEach((function(t){return t(e)}))}}else{var s=lv.getValue();s&&(i(s),pv(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),pv(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function hv(e){e.broadcastWatches&&e.broadcastWatches()}var mv=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Om(t.resolvers,e)})):this.resolvers=Om(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return Yf(this,void 0,void 0,(function(){return Jf(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return Hf(Hf({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return im(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){Jd(e);var t=Xh([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,iu.visit)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return Wd(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return Hf(Hf({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),Yf(this,void 0,void 0,(function(){return Jf(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return Hf(Hf({},t),e.exportedVariables)}))]:[2,Hf({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,iu.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return iu.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:nm(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),Yf(this,void 0,void 0,(function(){var a,s,c,l,u,p,f,d,h;return Jf(this,(function(m){return a=nh(e),s=eh(e),c=jd(s),l=a.operation,u=l?l.charAt(0).toUpperCase()+l.slice(1):"Query",f=(p=this).cache,d=p.client,h={fragmentMap:c,context:Hf(Hf({},n),{cache:f,client:d}),variables:r,fragmentMatcher:i,defaultOperationType:u,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return Yf(this,void 0,void 0,(function(){var r,i,o,a,s,c=this;return Jf(this,(function(l){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return Yf(c,void 0,void 0,(function(){var s,c;return Jf(this,(function(l){return rm(e,o)?Wd(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&a.push(((n={})[$d(e)]=t,n))}))]:(Yd(e)?s=e:(s=r[e.name.value],__DEV__?rd(s,"No fragment named ".concat(e.name.value)):rd(s,9)),s&&s.typeCondition&&(c=s.typeCondition.name.value,n.fragmentMatcher(t,c,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return Cm(a)}))]}))}))},e.prototype.resolveField=function(e,t,n){return Yf(this,void 0,void 0,(function(){var r,i,o,a,s,c,l,u,p,f=this;return Jf(this,(function(d){return r=n.variables,i=e.name.value,o=$d(e),a=i!==o,s=t[o]||t[i],c=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=t.__typename||n.defaultOperationType,(u=this.resolvers&&this.resolvers[l])&&(p=u[a?i:o])&&(c=Promise.resolve(lv.withValue(this.cache,p,[t,zd(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,c.then((function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?f.resolveSubSelectedArray(e,t,n):e.selectionSet?f.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}(),vv=new(Vh?WeakMap:Map);function yv(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return vv.set(e,(vv.get(e)+1)%1e15),n.apply(this,arguments)})}function gv(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var bv=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;vv.has(n)||(vv.set(n,0),yv(n,"evict"),yv(n,"modify"),yv(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||dm.loading;return this.variables&&this.networkStatus!==dm.loading&&!Oh(this.variables,e.variables)&&(t=dm.setVariables),Oh(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){gv(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&Oh(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||Oh(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;gv(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(mm(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=Hf(Hf({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Oh(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===vv.get(this.cache)&&Oh(t,n.variables)&&Oh(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=fm(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(Ev(e,t.errorPolicy)?this.cache.performTransaction((function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:vv.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var o=r.getDiffOptions(t.variables),a=i.diff(o);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(a,o),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=dm.ready},e.prototype.markError=function(e){return this.networkStatus=dm.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Ev(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!zh(e);return!r&&n&&e.data&&(r=!0),r}var Tv=Object.prototype.hasOwnProperty,wv=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,o=e.onBroadcast,a=e.ssrMode,s=void 0!==a&&a,c=e.clientAwareness,l=void 0===c?{}:c,u=e.localState,p=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Vh?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.queryDeduplication=i,this.clientAwareness=l,this.localState=u||new mv({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!p,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new nd("QueryManager stopped while query was in flight"):new nd(11))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,c=void 0!==s&&s,l=e.update,u=e.onQueryUpdated,p=e.errorPolicy,f=void 0===p?"none":p,d=e.fetchPolicy,h=void 0===d?"network-only":d,m=e.keepRootFields,v=e.context;return Yf(this,void 0,void 0,(function(){var e,o,s;return Jf(this,(function(p){switch(p.label){case 0:return __DEV__?rd(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):rd(t,12),__DEV__?rd("network-only"===h||"no-cache"===h,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):rd("network-only"===h||"no-cache"===h,13),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,v)]:[3,2];case 1:n=p.sent(),p.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:h,errorPolicy:f,context:v,updateQueries:i,update:l,keepRootFields:m}),this.broadcastQueries(),s=this,[2,new Promise((function(p,d){return Kh(s.getObservableFromLink(t,Hf(Hf({},v),{optimisticResponse:r}),n,!1),(function(p){if(zh(p)&&"none"===f)throw new hm({graphQLErrors:p.errors});o&&(o.loading=!1,o.error=null);var d=Hf({},p);return"function"==typeof a&&(a=a(d)),"ignore"===f&&zh(d)&&delete d.errors,s.markMutationResult({mutationId:e,result:d,document:t,variables:n,fetchPolicy:h,errorPolicy:f,context:v,update:l,updateQueries:i,awaitRefetchQueries:c,refetchQueries:a,removeOptimistic:r?e:void 0,onQueryUpdated:u,keepRootFields:m})})).subscribe({next:function(e){s.broadcastQueries(),p(e)},error:function(t){o&&(o.loading=!1,o.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),d(t instanceof hm?t:new hm({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&Ev(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var a=e.updateQueries;a&&this.queries.forEach((function(e,o){var s=e.observableQuery,c=s&&s.queryName;if(c&&Tv.call(a,c)){var l=a[c],u=n.queries.get(o),p=u.document,f=u.variables,d=t.diff({query:p,variables:f,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var m=l(h,{mutationResult:r,queryName:p&&Zd(p)||void 0,queryVariables:f});m&&i.push({result:m,dataId:"ROOT_QUERY",query:p,variables:f})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach((function(e){return t.write(e)}));var a=e.update;if(a){if(!o){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=Hf(Hf({},r),{data:s.result}))}a(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return s.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(Hf(Hf({},t),{result:{data:r}}),e)}catch(e){__DEV__&&rd.error(e)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t,n=this.transformCache;if(!n.has(e)){var r=this.cache.transformDocument(e),i=(t=this.cache.transformForLink(r),Xh([em],Jd(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:om(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:rh(Xd(r)),asQuery:Hf(Hf({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?Hf(Hf({},e),{operation:"query"}):e}))})},c=function(e){e&&!n.has(e)&&n.set(e,s)};c(e),c(r),c(o),c(a)}return n.get(e)},e.prototype.getVariables=function(e,t){return Hf(Hf({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=Hf(Hf({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new bv(this),n=new wm({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?rd(e.query,"query option is required. You must specify your GraphQL document in the query option."):rd(e.query,14),__DEV__?rd("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):rd("Document"===e.query.kind,15),__DEV__?rd(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):rd(!e.returnPartialData,16),__DEV__?rd(!e.pollInterval,"pollInterval option only supported on watchQuery."):rd(!e.pollInterval,17),this.fetchQuery(t,e).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new nd("Store reset while query was in flight (not completed in link chain)"):new nd(18)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=dm.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){var n;"string"==typeof e?r.set(e,!1):Rd(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):Rd(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void n.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}})),i.size&&i.forEach((function(e){var r=sm("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new wm({queryManager:t,queryInfo:i,options:Hf(Hf({},e),{fetchPolicy:"network-only"})});rd(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&rd.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var c=function(e){return t.getObservableFromLink(n,s,e).map((function(o){if("no-cache"!==r&&(Ev(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),zh(o))throw new hm({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var l=this.localState.addExportedVariables(n,o,s).then(c);return new Pd((function(e){var t=null;return l.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var c=this.inFlightLinkObservables,l=this.link,u={query:s,variables:n,operationName:Zd(s)||void 0,context:this.prepareContext(Hf(Hf({},t),{forceFetch:!r}))};if(t=u.context,r){var p=c.get(s)||new Map;c.set(s,p);var f=Gh(n);if(!(o=p.get(f))){var d=new pm([lh(l,u)]);p.set(f,o=d),d.cleanup((function(){p.delete(f)&&p.size<1&&c.delete(s)}))}}else o=new pm([lh(l,u)])}else o=new pm([Pd.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=Kh(o,(function(e){return a.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})}))),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return Kh(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=fm(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new hm({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||dm.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new hm({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=dm.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=t.fetchPolicy,c=void 0===s?"cache-first":s,l=t.errorPolicy,u=void 0===l?"none":l,p=t.returnPartialData,f=void 0!==p&&p,d=t.notifyOnNetworkStatusChange,h=void 0!==d&&d,m=t.context,v=void 0===m?{}:m,y=Object.assign({},t,{query:i,variables:o,fetchPolicy:c,errorPolicy:u,returnPartialData:f,notifyOnNetworkStatusChange:h,context:v}),g=function(e){return y.variables=e,r.fetchQueryByPolicy(a,y,n)};this.fetchCancelFns.set(e,(function(e){setTimeout((function(){return b.cancel(e)}))}));var b=new pm(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(g):g(y.variables));return b.cleanup((function(){r.fetchCancelFns.delete(e),function(e){var t=e.fetchPolicy,n=void 0===t?"cache-first":t,r=e.nextFetchPolicy;r&&(e.fetchPolicy="function"==typeof r?r.call(e,n):r)}(t)})),b},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?sm("refetchQueries"):void 0:a,c=e.onQueryUpdated,l=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){l.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var u=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof bv&&e.watcher.observableQuery;if(r){if(c){l.delete(r.queryId);var i=c(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&u.set(r,i),i}null!==c&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=c(i,a,o)}c&&!0!==r||(r=i.refetch()),!1!==r&&u.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),u},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,l=t.returnPartialData,u=t.context,p=t.notifyOnNetworkStatusChange,f=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var d=function(){return e.getDiff(o)},h=function(t,n){void 0===n&&(n=e.networkStatus||dm.loading);var a=t.result;!__DEV__||l||Oh(a,{})||km(t.missing);var s=function(e){return Pd.of(Hf({data:e,loading:mm(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:u,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):s(a)},m="no-cache"===a?0:n===dm.refetch&&"merge"!==s?1:2,v=function(){return r.getResultsFromLink(e,m,{variables:o,context:u,fetchPolicy:a,errorPolicy:c})},y=p&&"number"==typeof f&&f!==n&&mm(n);switch(a){default:case"cache-first":return(g=d()).complete?[h(g,e.markReady())]:l||y?[h(g),v()]:[v()];case"cache-and-network":var g;return(g=d()).complete||l||y?[h(g),v()]:[v()];case"cache-only":return[h(d(),e.markReady())];case"network-only":return y?[h(d()),v()]:[v()];case"no-cache":return y?[h(e.getDiff()),v()]:[v()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new bv(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Hf(Hf({},t),{clientAwareness:this.clientAwareness})},e}(),_v=!1;function kv(e,t){return uh(e,t,t.variables&&{variables:Hf(Hf({},e.variables),t.variables)})}var Sv=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,c=e.ssrForceFetchDelay,l=void 0===c?0:c,u=e.connectToDevTools,p=void 0===u?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:u,f=e.queryDeduplication,d=void 0===f||f,h=e.defaultOptions,m=e.assumeImmutableResults,v=void 0!==m&&m,y=e.resolvers,g=e.typeDefs,b=e.fragmentMatcher,E=e.name,T=e.version,w=e.link;if(w||(w=n?new Eh({uri:n,credentials:r,headers:i}):ch.empty()),!o)throw __DEV__?new nd("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new nd(7);if(this.link=w,this.cache=o,this.disableNetworkFetches=s||l>0,this.queryDeduplication=d,this.defaultOptions=h||{},this.typeDefs=g,l&&setTimeout((function(){return t.disableNetworkFetches=!1}),l),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),p&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!_v&&__DEV__&&(_v=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var _=window.navigator,k=_&&_.userAgent,S=void 0;"string"==typeof k&&(k.indexOf("Chrome/")>-1?S="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":k.indexOf("Firefox/")>-1&&(S="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),S&&__DEV__&&rd.log("Download the Apollo DevTools for a better development experience: "+S)}this.version="3.5.5",this.localState=new mv({cache:o,client:this,resolvers:y,fragmentMatcher:b}),this.queryManager=new wv({cache:this.cache,link:this.link,queryDeduplication:d,ssrMode:s,clientAwareness:{name:E,version:T},localState:this.localState,assumeImmutableResults:v,onBroadcast:p?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=kv(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Hf(Hf({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=kv(this.defaultOptions.query,e)),__DEV__?rd("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):rd("cache-and-network"!==e.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Hf(Hf({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=kv(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return lh(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){__DEV__&&rd.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),Ov=function(){function e(){this.getFragmentDoc=cv(Md)}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(n)}),r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Hf(Hf({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Hf(Hf({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=Wf(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=Wf(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),i=t(r);return null==i?r:(n.writeQuery(Hf(Hf({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),i=t(r);return null==i?r:(n.writeFragment(Hf(Hf({},e),{data:i})),i)}})},e}(),Cv=function(e,t,n,r){this.message=e,this.path=t,this.query=n,this.variables=r};function xv(e){return __DEV__&&(t=e,(n=new Set([t])).forEach((function(e){Rd(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(t){Rd(e[t])&&n.add(e[t])}))}))),e;var t,n}var Nv=Object.prototype.hasOwnProperty;function Av(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var Dv={dataIdFromObject:Av,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Lv(e){var t=e.canonizeResults;return void 0===t?Dv.canonizeResults:t}var Iv=/^[_a-z][_0-9a-z]*/i;function Pv(e){var t=e.match(Iv);return t?t[0]:e}function Rv(e,t,n){return!!Rd(t)&&(Array.isArray(t)?t.every((function(t){return Rv(e,t,n)})):e.selections.every((function(e){if(Wd(e)&&rm(e,n)){var r=$d(e);return Nv.call(t,r)&&(!e.selectionSet||Rv(e.selectionSet,t[r],n))}return!0})))}function Mv(e){return Rd(e)&&!Qd(e)&&!Array.isArray(e)}var jv=Object.create(null),Fv=function(){return jv},Vv=Object.create(null),Qv=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return xv(Qd(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Qd(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Vd(e);if(Qd(e))return e;var r=n.policies.identify(e)[0];if(r){var i=Vd(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return Hf({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),Nv.call(this.data,e)){var n=this.data[e];if(n&&Nv.call(n,t))return n[t]}return"__typename"===t&&Nv.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Bv?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),Nv.call(this.data,e)?this.data[e]:this instanceof Bv?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;Qd(e)&&(e=e.__ref),Qd(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){__DEV__?rd("string"==typeof n,"store.merge expects a string ID"):rd("string"==typeof n,1);var a=new Nm(zv).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=Pv(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof Bv||delete a[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==a.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,a=!0,s={DELETE:jv,INVALIDATE:Vv,isReference:Qd,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||Vd(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(c){var l=Pv(c),u=r[c];if(void 0!==u){var p="function"==typeof t?t:t[c]||t[l];if(p){var f=p===Fv?jv:p(xv(u),Hf(Hf({},s),{fieldName:l,storeFieldName:c,storage:n.getStorage(e,c)}));f===Vv?n.group.dirty(e,c):(f===jv&&(f=void 0),f!==u&&(i[c]=f,o=!0,u=f))}void 0!==u&&(a=!1)}})),o)return this.merge(e,i),a&&(this instanceof Bv?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=Fv,r):Fv)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(Nv.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Bv&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){Nv.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&Nv.call(e,n)||t.delete(n)})),e){var n=e.__META,r=Wf(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Bv?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){Nv.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof Bv;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!Nv.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){Qd(e)&&(t[e.__ref]=!0),Rd(e)&&Object.keys(e).forEach((function(t){var n=e[t];Rd(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Uv=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?ov():null,this.keyMaker=new Fh(Vh)},e.prototype.depend=function(e,t){if(this.d){this.d(qv(e,t));var n=Pv(t);n!==t&&this.d(qv(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(qv(e,t),"__exists"===t?"forget":"setDirty")},e}();function qv(e,t){return t+"#"+e}function Gv(e,t){$v(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new Uv(i))||this;return a.stump=new Kv(a),a.storageTrie=new Fh(Vh),o&&a.replace(o),a}return $f(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(Qv||(Qv={}));var Bv=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return $f(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){Oh(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return Hf(Hf({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return Nv.call(this.data,t)?Hf(Hf({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(Qv),Kv=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new Uv(t.group.caching,t.group))||this}return $f(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Bv);function zv(e,t,n){var r=e[n],i=t[n];return Oh(r,i)?r:i}function $v(e){return!!(e instanceof Qv&&e.group.caching)}function Hv(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Wv=function(){function e(e){var t=this;this.knownResults=new(Vh?WeakMap:Map),this.config=uh(e,{addTypename:!1!==e.addTypename,canonizeResults:Lv(e)}),this.canon=e.canon||new qh,this.executeSelectionSet=cv((function(e){var n,r=e.context.canonizeResults,i=Hv(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?Hf(Hf({},o),{result:t.canon.admit(o.result)}):o:(Gv(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:Hv,makeCacheKey:function(e,t,n,r){if($v(n.store))return n.store.makeCacheKey(e,Qd(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=cv((function(e){return Gv(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if($v(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new qh},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,a=e.returnPartialData,s=void 0===a||a,c=e.canonizeResults,l=void 0===c?this.config.canonizeResults:c,u=this.config.cache.policies;o=Hf(Hf({},rh(th(n))),o);var p,f=Vd(i),d=new Nm,h=this.executeSelectionSet({selectionSet:nh(n).selectionSet,objectOrReference:f,enclosingRef:f,context:{store:t,query:n,policies:u,variables:o,varString:Gh(o),canonizeResults:l,fragmentMap:jd(eh(n)),merge:function(e,t){return d.merge(e,t)}}});if(h.missing&&(p=[new Cv(Yv(h.missing),h.missing,n,o)],!s))throw p[0];return{result:h.result,complete:!p,missing:p}},e.prototype.isFresh=function(e,t,n,r){if($v(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(Qd(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var a,s=o.variables,c=o.policies,l=o.store.getFieldValue(r,"__typename"),u={};function p(e,t){var n;return e.missing&&(a=o.merge(a,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&(u={__typename:l});var f=new Set(n.selections);f.forEach((function(e){var n,d;if(rm(e,s))if(Wd(e)){var h=c.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),m=$d(e);void 0===h?Zh.added(e)||(a=o.merge(a,((n={})[m]="Can't find field '".concat(e.name.value,"' on ").concat(Qd(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):Array.isArray(h)?h=p(t.executeSubSelectedArray({field:e,array:h,enclosingRef:i,context:o}),m):e.selectionSet?null!=h&&(h=p(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:h,enclosingRef:Qd(h)?h:i,context:o}),m)):o.canonizeResults&&(h=t.canon.pass(h)),void 0!==h&&(u=o.merge(u,((d={})[m]=h,d)))}else{var v=Fd(e,o.fragmentMap);v&&c.fragmentMatches(v,l)&&v.selectionSet.selections.forEach(f.add,f)}}));var d={result:u,missing:a},h=o.canonizeResults?this.canon.admit(d):xv(d);return h.result&&this.knownResults.set(h.result,n),h},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context;function s(e,n){var r;return e.missing&&(t=a.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:Array.isArray(e)?s(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?s(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:Qd(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){Rd(n)&&(__DEV__?rd(!Qd(n),"Missing selection set for object of type ".concat(function(e,t){return Qd(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)," returned for query field ").concat(t.name.value)):rd(!Qd(n),5),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),e)})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function Yv(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var Jv=Object.create(null);function Xv(e){var t=JSON.stringify(e);return Jv[t]||(Jv[t]=Object.create(null))}function Zv(e){var t=Xv(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=ty(e,(function(e){var i=iy(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&Nv.call(t,e[0])&&(i=iy(t,e,ry)),__DEV__?rd(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):rd(void 0!==i,2),i}));return"".concat(n.typename,":").concat(JSON.stringify(i))})}function ey(e){var t=Xv(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=ty(e,(function(e){var n=e[0],o=n.charAt(0);if("@"!==o)if("$"!==o){if(t)return iy(t,e)}else{var a=n.slice(1);if(i&&Nv.call(i,a)){var s=e.slice(0);return s[0]=a,iy(i,s)}}else if(r&&fm(r.directives)){var c=n.slice(1),l=r.directives.find((function(e){return e.name.value===c})),u=l&&zd(l,i);return u&&iy(u,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function ty(e,t){var n=new Nm;return ny(e).reduce((function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e}),Object.create(null))}function ny(e){var t=Xv(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,i){Array.isArray(t)?(ny(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),Array.isArray(e[i+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function ry(e,t){return e[t]}function iy(e,t,n){return n=n||ry,oy(t.reduce((function e(t,r){return Array.isArray(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function oy(e){return Rd(e)?Array.isArray(e)?e.map(oy):ty(Object.keys(e).sort(),(function(t){return iy(e,t)})):e}function ay(e){return void 0!==e.args?e.args:e.field?zd(e.field,e.variables):null}Gd.setStringify(Gh);var sy=function(){},cy=function(e,t){return t.fieldName},ly=function(e,t,n){return(0,n.mergeObjects)(e,t)},uy=function(e,t){return t},py=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=Hf({dataIdFromObject:Av},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r=this,i=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var o,a=t&&t.storeObject||e,s=Hf(Hf({},t),{typename:i,storeObject:a,readField:t&&t.readField||function(){var e=dy(arguments,a);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),c=i&&this.getTypePolicy(i),l=c&&c.keyFn||this.config.dataIdFromObject;l;){var u=l(e,s);if(!Array.isArray(u)){o=u;break}l=Zv(u)}return o=o?String(o):void 0,s.keyObject?[o,s.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=Wf(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),Nv.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?ly:!1===t?uy:e.merge}a(r,t.merge),r.keyFn=!1===i?sy:Array.isArray(i)?Zv(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,c=i.read,l=i.merge;r.keyFn=!1===s?cy:Array.isArray(s)?ey(s):"function"==typeof s?s:r.keyFn,"function"==typeof c&&(r.read=c),a(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||cy)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?rd(!r||r===e,"Cannot change root ".concat(e," __typename more than once")):rd(!r||r===e,3),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(Iv);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!Nv.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,o=Wf(r,["fields"]);Object.assign(n,o),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},l=!(!n||!this.fuzzySubtypes.size),u=!1,p=0;p1?s:t}:(r=Hf({},a),Nv.call(r,"from")||(r.from=t)),__DEV__&&void 0===r.from&&__DEV__&&rd.warn("Undefined 'from' passed to readField with arguments ".concat((i=Array.from(e),o=sm("stringifyForDisplay"),JSON.stringify(i,(function(e,t){return void 0===t?o:t})).split(JSON.stringify(o)).join("")))),void 0===r.variables&&(r.variables=n),r}function hy(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new nd("Cannot automatically merge arrays"):new nd(4);if(Rd(t)&&Rd(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(Qd(t)&&Mv(n))return e.merge(t.__ref,n),t;if(Mv(t)&&Qd(n))return e.merge(t,n.__ref),n;if(Mv(t)&&Mv(n))return Hf(Hf({},t),n)}return n}}function my(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:Hf(Hf({},e),{clientOnly:t,deferred:n})),i}var vy=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,c=Xd(r),l=new Nm;a=Hf(Hf({},rh(c)),a);var u={store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:a,varString:Gh(a),fragmentMap:jd(eh(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},p=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:u});if(!Qd(p))throw __DEV__?new nd("Could not identify object ".concat(JSON.stringify(i))):new nd(6);return u.incomingById.forEach((function(t,r){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=Vd(r);if(o&&o.map.size){var c=n.applyMerges(o,s,i,u);if(Qd(c))return;i=c}if(__DEV__&&!u.overwrite){var l=Object.create(null);a.forEach((function(e){e.selectionSet&&(l[e.name.value]=!0)})),Object.keys(i).forEach((function(e){(function(e){return!0===l[Pv(e)]})(e)&&!function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},o=i(e);if(o){var a=i(t);if(a&&!Qd(o)&&!Oh(o,a)&&!Object.keys(o).every((function(e){return void 0!==r.getFieldValue(a,e)}))){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=Pv(n),l="".concat(s,".").concat(c);if(!wy.has(l)){wy.add(l);var u=[];Array.isArray(o)||Array.isArray(a)||[o,a].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||u.includes(t)||u.push(t)})),__DEV__&&rd.warn("Cache data may be lost when replacing the ".concat(c," field of a ").concat(s," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(l," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(o).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(a).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(s,i,e,u.store)}))}e.merge(r,i)})),e.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,c=Object.create(null),l=n&&s.rootTypenamesById[n]||Hd(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof l&&(c.__typename=l);var u=function(){var e=dy(arguments,c,o.variables);if(Qd(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var n=s.readField(Hf(Hf({},e),{from:t.storeObject}),o);if(void 0!==n)return n}}return s.readField(e,o)},p=new Set;this.flattenFields(i,r,o,l).forEach((function(e,n){var i,o=$d(n),f=r[o];if(p.add(n),void 0!==f){var d=s.getStoreFieldName({typename:l,fieldName:n.name.value,field:n,variables:e.variables}),h=gy(a,d),m=t.processFieldValue(f,n,n.selectionSet?my(e,!1,!1):e,h),v=void 0;n.selectionSet&&(Qd(m)||Mv(m))&&(v=u("__typename",m));var y=s.getMergeFunction(l,n.name.value,v);y?h.info={field:n,typename:l,merge:y}:Ty(a,d),c=e.merge(c,((i={})[d]=m,i))}else!__DEV__||e.clientOnly||e.deferred||Zh.added(n)||s.getReadFunction(l,n.name.value)||__DEV__&&rd.error("Missing field '".concat($d(n),"' while writing result ").concat(JSON.stringify(r,null,2)).substring(0,1e3))}));try{var f=s.identify(r,{typename:l,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:c,readField:u}),d=f[0],h=f[1];n=n||d,h&&(c=o.merge(c,h))}catch(e){if(!n)throw e}if("string"==typeof n){var m=Vd(n),v=o.written[n]||(o.written[n]=[]);if(v.indexOf(i)>=0)return m;if(v.push(i),this.reader&&this.reader.isFresh(r,m,i,o))return m;var y=o.incomingById.get(n);return y?(y.storeObject=o.merge(y.storeObject,c),y.mergeTree=by(y.mergeTree,a),p.forEach((function(e){return y.fieldNodeSet.add(e)}))):o.incomingById.set(n,{storeObject:c,mergeTree:Ey(a)?void 0:a,fieldNodeSet:p}),m}return c},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,gy(r,o));return Ty(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?ym(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=Hd(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,a=new Fh(!1);return function e(s,c){var l=a.lookup(s,c.clientOnly,c.deferred);l.visited||(l.visited=!0,s.selections.forEach((function(a){if(rm(a,n.variables)){var s=c.clientOnly,l=c.deferred;if(s&&l||!fm(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=zd(e,n.variables);r&&!1===r.if||(l=!0)}})),Wd(a)){var u=i.get(a);u&&(s=s&&u.clientOnly,l=l&&u.deferred),i.set(a,my(n,s,l))}else{var p=Fd(a,n.fragmentMap);p&&o.fragmentMatches(p,r,t,n.variables)&&e(p.selectionSet,my(n,s,l))}}})))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!Qd(n)){var s,c=Array.isArray(n)||!Qd(t)&&!Mv(t)?void 0:t,l=n;c&&!i&&(i=[Qd(c)?c.__ref:c]);var u=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=u(c,t),o=u(l,t);if(void 0!==o){i&&i.push(t);var p=a.applyMerges(e,n,o,r,i);p!==o&&(s=s||new Map).set(t,p),i&&rd(i.pop()===t)}})),s&&(n=Array.isArray(l)?l.slice(0):Hf({},l),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},e}(),yy=[];function gy(e,t){var n=e.map;return n.has(t)||n.set(t,yy.pop()||{map:new Map}),n.get(t)}function by(e,t){if(e===t||!t||Ey(t))return e;if(!e||Ey(e))return t;var n=e.info&&t.info?Hf(Hf({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,by(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,by(t.map.get(n),e.map.get(n)))}))}return i}function Ey(e){return!e||!(e.info||e.map.size)}function Ty(e,t){var n=e.map,r=n.get(t);r&&Ey(r)&&(yy.push(r),n.delete(t))}var wy=new Set,_y=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=dv,n.txCount=0,n.config=function(e){return uh(Dv,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new py({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return $f(t,e),t.prototype.init=function(){var e=this.data=new Qv.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader;this.storeWriter=new vy(this,this.storeReader=new Wv({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Lv(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=cv((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if($v(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,Gh({optimistic:r,rootId:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(Hf(Hf({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof Cv)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(Nv.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(Hf(Hf({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,n=this;return this.watches.size||pv(t=this).vars.forEach((function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){n.watches.delete(e)&&!n.watches.size&&fv(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){Gh.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(Qd(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&rd.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(Nv.call(e,"id"))return!1;e=Hf(Hf({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),Gh.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),fv(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,s=e.onWatchUpdated,c=function(e){var i=n,o=i.data,a=i.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=o,n.optimisticData=a}},l=new Set;return s&&!this.txCount&&this.broadcastWatches(Hf(Hf({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,c):!1===o?c(this.data):c(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&l.size?(this.broadcastWatches(Hf(Hf({},e),{onWatchUpdated:function(e,t){var n=s.call(this,e,t);return!1!==n&&l.delete(e),n}})),l.size&&l.forEach((function(e){return n.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Zh(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&Oh(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(Ov),ky=new Map,Sy=new Map,Oy=!0,Cy=!1;function xy(e){return e.replace(/[\s,]+/g," ").trim()}function Ny(e){var t,n,r,i=xy(e);if(!ky.has(i)){var o=(0,iu.parse)(e,{experimentalFragmentVariables:Cy,allowLegacyFragmentVariables:Cy});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");ky.set(i,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=o,n=new Set,r=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=xy((a=e.loc).source.body.substring(a.start,a.end)),o=Sy.get(t);o&&!o.has(i)?Oy&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||Sy.set(t,o=new Set),o.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var a})),Hf(Hf({},t),{definitions:r}))))}return ky.get(i)}function Ay(e){for(var t=[],n=1;n{let e=(0,r.useRef)(null);const t=Vf(),n=Pf(),{query:i,setQuery:o,externalFragments:a}=n,{endpoint:s,nonce:c,schema:l,setSchema:u}=t;let p=((e,t)=>{const{nonce:n}=t;return t=>{const r={method:"POST",headers:{Accept:"application/json","content-type":"application/json","X-WP-Nonce":n},body:JSON.stringify(t),credentials:"include"};return fetch(e,r).then((e=>e.json()))}})(s,{nonce:c});p=Ff.applyFilters("graphiql_fetcher",p,t);const f=Ff.applyFilters("graphiql_before_graphiql",[],{...t,...n}),d=Ff.applyFilters("graphiql_after_graphiql",[],{...t,...n});return(0,r.createElement)(Gf,{"data-testid":"wp-graphiql-wrapper",id:"wp-graphiql-wrapper"},f.length>0?f:null,(0,r.createElement)(Tf,{ref:t=>{e=t},fetcher:e=>p(e),schema:l,query:i,onEditQuery:e=>{let t=!1;if(e!==i){if(null===e||""===e)t=!0;else try{qf(e),t=!0}catch(e){return}t&&o(e)}},validationRules:Uf,readOnly:!1,externalFragments:a,headerEditorEnabled:!1,onSchemaChange:e=>{l!==e&&u(e)},variables:JSON.stringify({first:10},null,2)},(0,r.createElement)(Tf.Toolbar,null,(0,r.createElement)(jf,{graphiql:()=>e})),(0,r.createElement)(Tf.Logo,null,(0,r.createElement)(r.Fragment,null))),d.length>0?d:null)};var Kf=()=>{const e=Vf(),{schema:t}=e;return t?(0,r.createElement)(Rf,{appContext:e},(0,r.createElement)(Bf,null)):(0,r.createElement)(Of,{style:{margin:"50px"}})},zf=function(e,t){return zf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},zf(e,t)};function $f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}zf(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var Hf=function(){return Hf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=od){var t=console[e]||console.log;return t.apply(console,arguments)}}}function sd(e){try{return e()}catch(e){}}!function(e){e.debug=ad("debug"),e.log=ad("log"),e.warn=ad("warn"),e.error=ad("error")}(rd||(rd={}));var cd=sd((function(){return globalThis}))||sd((function(){return window}))||sd((function(){return self}))||sd((function(){return global}))||sd((function(){return Function("return this")()})),__="__",ld=[__,__].join("DEV"),ud=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(cd,ld,{value:"production"!==sd((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),cd[ld]}}();function pd(e){try{return e()}catch(e){}}var fd=pd((function(){return globalThis}))||pd((function(){return window}))||pd((function(){return self}))||pd((function(){return n.g}))||pd((function(){return Function("return this")()})),dd=!1;function hd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[Td]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=_d(t,Td);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return Sd(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(gd("iterator")&&(r=_d(t,Ed)))return new n((function(e){Cd((function(){if(!e.closed){for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return hd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hd(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){Cd((function(){if(!e.closed){for(var n=0;n0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),"".concat(n.connection.key,"(").concat(Bd(i),")")}return n.connection.key}var o=e;if(t){var a=Bd(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach((function(e){-1===Ud.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(Bd(n[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=Bd;return Bd=e,t}}),Bd=function(e){return JSON.stringify(e,Kd)};function Kd(e,t){return Rd(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function zd(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return qd(n,r,i,t)})),n}return null}function $d(e){return e.alias?e.alias.value:e.name.value}function Hd(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r=300&&fh(e,t,"Response not successful: Received status code ".concat(e.status)),Array.isArray(t)||dh.call(t,"data")||dh.call(t,"errors")||fh(e,t,"Server response was missing for query '".concat(Array.isArray(i)?i.map((function(e){return e.operationName})):i.operationName,"'.")),t}))})).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){d&&d.abort()}}))}))},Eh=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,bh(t).request)||this;return n.options=t,n}return $f(t,e),t}(ch),Th=Object.prototype,wh=Th.toString,_h=Th.hasOwnProperty,kh=Function.prototype.toString,Sh=new Map;function Oh(e,t){try{return Ch(e,t)}finally{Sh.clear()}}function Ch(e,t){if(e===t)return!0;var n,r,i,o=wh.call(e);if(o!==wh.call(t))return!1;switch(o){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(Dh(e,t))return!0;var a=xh(e),s=xh(t),c=a.length;if(c!==s.length)return!1;for(var l=0;l=0&&n.indexOf(r,i)===i))}return!1}function xh(e){return Object.keys(e).filter(Nh,e)}function Nh(e){return void 0!==this[e]}var Ah="{ [native code] }";function Dh(e,t){var n=Sh.get(e);if(n){if(n.has(t))return!0}else Sh.set(e,n=new Set);return n.add(t),!1}var Lh,Ih,Ph=function(){return Object.create(null)},Rh=Array.prototype,Mh=Rh.forEach,jh=Rh.slice,Fh=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=Ph),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t0||!1}function $h(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var Hh={kind:"Field",name:{kind:"Name",value:"__typename"}};function Wh(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&Wh(t[e.name.value],t)}))}function Yh(e){return Wh(Xd(e)||function(e){__DEV__?rd("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):rd("Document"===e.kind,48),__DEV__?rd(e.definitions.length<=1,"Fragment must have exactly one definition."):rd(e.definitions.length<=1,49);var t=e.definitions[0];return __DEV__?rd("FragmentDefinition"===t.kind,"Must be a fragment definition."):rd("FragmentDefinition"===t.kind,50),t}(e),jd(eh(e)))?null:e}function Jh(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function Xh(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=Yh((0,iu.visit)(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(Jh(e)))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&tm(t.selectionSet).forEach((function(e){o.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(t){if(Jh(e)(t))return null}}}));return a&&$h(r,(function(e){return!!e.name&&!n[e.name]})).length&&(a=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return Yh((0,iu.visit)(t,{OperationDefinition:{enter:function(t){return Hf(Hf({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(r,a)),a&&$h(o,(function(e){return!!e.name&&!i[e.name]})).length&&(a=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return Yh((0,iu.visit)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var Zh=Object.assign((function(e){return(0,iu.visit)(Jd(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some((function(e){return Wd(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(Wd(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return Hf(Hf({},e),{selections:Xf(Xf([],r,!0),[Hh],!1)})}}}}})}),{added:function(e){return e===Hh}}),em={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&rd.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function tm(e){var t=[];return e.selections.forEach((function(e){(Wd(e)||Yd(e))&&e.selectionSet?tm(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function nm(e){return"query"===nh(e).operation?e:(0,iu.visit)(e,{OperationDefinition:{enter:function(e){return Hf(Hf({},e),{operation:"query"})}}})}function rm(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];return e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;__DEV__?rd(n&&1===n.length,"Incorrect number of arguments for the @".concat(r," directive.")):rd(n&&1===n.length,38);var i=n[0];__DEV__?rd(i.name&&"if"===i.name.value,"Invalid argument for the @".concat(r," directive.")):rd(i.name&&"if"===i.name.value,39);var o=i.value;__DEV__?rd(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @".concat(r," directive must be a variable or a boolean value.")):rd(o&&("Variable"===o.kind||"BooleanValue"===o.kind),40),t.push({directive:e,ifArgument:i})}})),t}(n).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?rd(void 0!==i,"Invalid variable referenced in @".concat(n.name.value," directive.")):rd(void 0!==i,37)):i=r.value.value,"skip"===n.name.value?!i:i}))}function im(e,t){return function(e){var t=[];return(0,iu.visit)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function om(e){return e&&im(["client"],e)&&im(["export"],e)}var am=new Map;function sm(e){var t=am.get(e)||1;return am.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function cm(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function lm(e){function t(t){Object.defineProperty(e,t,{value:Pd})}return qh&&Symbol.species&&t(Symbol.species),t("@@species"),e}function um(e){return e&&"function"==typeof e.then}var pm=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],cm(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),cm(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?um(e)?e.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),cm(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"==typeof t&&(t=[new Pd(t)]),um(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return $f(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},o=this.addCount;this.addObserver(i),this.addCount=o},t}(Pd);function fm(e){return Array.isArray(e)&&e.length>0}lm(pm);var dm,hm=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.clientErrors,s=n.networkError,c=n.errorMessage,l=n.extraInfo,u=e.call(this,c)||this;return u.graphQLErrors=o||[],u.clientErrors=a||[],u.networkError=s||null,u.message=c||(i="",(fm((r=u).graphQLErrors)||fm(r.clientErrors))&&(r.graphQLErrors||[]).concat(r.clientErrors||[]).forEach((function(e){var t=e?e.message:"Error message not found.";i+="".concat(t,"\n")})),r.networkError&&(i+="".concat(r.networkError.message,"\n")),i=i.replace(/\n$/,"")),u.extraInfo=l,u.__proto__=t.prototype,u}return $f(t,e),t}(Error);function mm(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(dm||(dm={}));var vm=Object.prototype.toString;function ym(e){return gm(e)}function gm(e,t){switch(vm.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=gm(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=gm(e[n],t)})),r;default:return e}}var bm=Object.assign,Em=Object.hasOwnProperty,Tm=!1,wm=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=_m)}catch(e){}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.isTornDown=!1,o.options=i,o.queryId=r.queryId||n.generateQueryId();var a=Xd(i.query);return o.queryName=a&&a.name&&a.name.value,o.initialFetchPolicy=i.fetchPolicy||"cache-first",o.queryManager=n,o.queryInfo=r,o}return $f(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||dm.ready,r=Hf(Hf({},t),{loading:mm(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if("network-only"===o||"no-cache"===o||"standby"===o||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),Oh(r.data,{})&&(r.data=void 0),a.complete?(delete r.partial,!a.complete||r.networkStatus!==dm.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=dm.ready,r.loading=!1)):r.partial=!0,!__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||km(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!Oh(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Oh(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if(n.fetchPolicy="standby"===r||"cache-and-network"===r?r:"no-cache"===r?"no-cache":"network-only",__DEV__&&e&&Em.call(e,"variables")){var i=th(this.options.query),o=i.variableDefinitions;o&&o.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&rd.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=i.name)||void 0===t?void 0:t.value)||JSON.stringify(i),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!Oh(this.options.variables,e)&&(n.variables=this.options.variables=Hf(Hf({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,dm.refetch)},t.prototype.fetchMore=function(e){var t=this,n=Hf(Hf({},e.query?e:Hf(Hf(Hf({},this.options),e),{variables:Hf(Hf({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=dm.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,dm.fetchMore).then((function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!Tm&&(__DEV__&&rd.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),Tm=!0),t.updateQuery((function(e){return o(e,{fetchMoreResult:i,variables:n.variables})}))):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r})).finally((function(){t.queryManager.stopQuery(r),t.reobserve()}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError?e.onError(t):__DEV__&&rd.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return Oh(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},dm.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?rd(n,"Attempted to start a polling query without a polling interval."):rd(n,10),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(mm(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},dm.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=Hf(Hf({},this.last),{result:this.queryManager.assumeImmutableResults?e:ym(e),variables:t}),fm(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===dm.refetch||t===dm.fetchMore||t===dm.poll,i=this.options.variables,o=r?uh(this.options,e):bm(this.options,uh(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!Oh(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=dm.setVariables)));var a=o.variables&&Hf({},o.variables),s=this.fetch(o,t),c={next:function(e){n.reportResult(e,a)},error:function(e){n.reportError(e,a)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=s,this.observer=c),s.addObserver(c),s.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){(this.getLastError()||this.isDifferentFromLastResult(e))&&(this.updateLastResult(e,t),cm(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=Hf(Hf({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:dm.error,loading:!1});this.updateLastResult(n,t),cm(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(Pd);function _m(e){__DEV__&&rd.error("Unhandled error",e.message,e.stack)}function km(e){__DEV__&&e&&__DEV__&&rd.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}lm(wm);var Sm=Object.prototype.hasOwnProperty;function Om(){for(var e=[],t=0;t1)for(var r=new Nm,i=1;ithis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),Vm=new Rm,Qm=Object.prototype.hasOwnProperty,qm=void 0===(jm=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:jm;function Um(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Gm=[];function Bm(e,t){if(!e)throw new Error(t||"assertion failure")}function Km(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var zm=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!Wm(this))return $m(this),this.value[0]},e.prototype.recompute=function(e){return Bm(!this.recomputing,"already recomputing"),$m(this),Wm(this)?function(e,t){return nv(e),Vm.withValue(e,Hm,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{Um(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,Wm(e)||Jm(e)}(e),Km(e.value)}(this,e):Km(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Ym(this),Um(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),nv(this),Xm(this,(function(t,n){t.setDirty(),rv(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=Gm.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(qm(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),Gm.push(this.deps),this.deps=null)},e.count=0,e}();function $m(e){var t=Vm.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Wm(e)?Zm(t,e):ev(t,e),t}function Hm(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function Wm(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Ym(e){Xm(e,Zm)}function Jm(e){Xm(e,ev)}function Xm(e,t){var n=e.parents.size;if(n)for(var r=qm(e.parents),i=0;i0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),tv(e,t),Wm(e)||Jm(e)}function tv(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Gm.length<100&&Gm.push(n),e.dirtyChildren=null))}function nv(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){rv(e,n)})),e.forgetDeps(),Bm(null===e.dirtyChildren)}function rv(e,t){t.parents.delete(e),e.childValues.delete(t),tv(e,t)}var iv={setDirty:!0,dispose:!0,forget:!0};function ov(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=Vm.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(Um(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&Qm.call(iv,n)?n:"setDirty";qm(r).forEach((function(e){return e[i]()})),t.delete(e),Um(r)}},r}function av(){var e=new Fh("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}av();var sv=new Set;function cv(e,t){void 0===t&&(t=Object.create(null));var n=new Fm(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||av(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new zm(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),sv.add(n),Vm.hasValue()||(sv.forEach((function(e){return e.clean()})),sv.clear()),s};function a(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function c(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=c,o.forget=function(){return c(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var lv=new Rm,uv=new WeakMap;function pv(e){var t=uv.get(e);return t||uv.set(e,t={vars:new Set,dep:ov()}),t}function fv(e){pv(e).vars.forEach((function(t){return t.forgetCache(e)}))}function dv(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){pv(e).dep.dirty(r),hv(e)}));var a=Array.from(n);n.clear(),a.forEach((function(t){return t(e)}))}}else{var s=lv.getValue();s&&(i(s),pv(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),pv(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function hv(e){e.broadcastWatches&&e.broadcastWatches()}var mv=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Om(t.resolvers,e)})):this.resolvers=Om(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return Yf(this,void 0,void 0,(function(){return Jf(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return Hf(Hf({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return im(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){Jd(e);var t=Xh([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,iu.visit)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return Wd(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return Hf(Hf({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),Yf(this,void 0,void 0,(function(){return Jf(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return Hf(Hf({},t),e.exportedVariables)}))]:[2,Hf({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,iu.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return iu.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:nm(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),Yf(this,void 0,void 0,(function(){var a,s,c,l,u,p,f,d,h;return Jf(this,(function(m){return a=nh(e),s=eh(e),c=jd(s),l=a.operation,u=l?l.charAt(0).toUpperCase()+l.slice(1):"Query",f=(p=this).cache,d=p.client,h={fragmentMap:c,context:Hf(Hf({},n),{cache:f,client:d}),variables:r,fragmentMatcher:i,defaultOperationType:u,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return Yf(this,void 0,void 0,(function(){var r,i,o,a,s,c=this;return Jf(this,(function(l){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return Yf(c,void 0,void 0,(function(){var s,c;return Jf(this,(function(l){return rm(e,o)?Wd(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&a.push(((n={})[$d(e)]=t,n))}))]:(Yd(e)?s=e:(s=r[e.name.value],__DEV__?rd(s,"No fragment named ".concat(e.name.value)):rd(s,9)),s&&s.typeCondition&&(c=s.typeCondition.name.value,n.fragmentMatcher(t,c,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return Cm(a)}))]}))}))},e.prototype.resolveField=function(e,t,n){return Yf(this,void 0,void 0,(function(){var r,i,o,a,s,c,l,u,p,f=this;return Jf(this,(function(d){return r=n.variables,i=e.name.value,o=$d(e),a=i!==o,s=t[o]||t[i],c=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=t.__typename||n.defaultOperationType,(u=this.resolvers&&this.resolvers[l])&&(p=u[a?i:o])&&(c=Promise.resolve(lv.withValue(this.cache,p,[t,zd(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,c.then((function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?f.resolveSubSelectedArray(e,t,n):e.selectionSet?f.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}(),vv=new(Vh?WeakMap:Map);function yv(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return vv.set(e,(vv.get(e)+1)%1e15),n.apply(this,arguments)})}function gv(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var bv=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;vv.has(n)||(vv.set(n,0),yv(n,"evict"),yv(n,"modify"),yv(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||dm.loading;return this.variables&&this.networkStatus!==dm.loading&&!Oh(this.variables,e.variables)&&(t=dm.setVariables),Oh(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){gv(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&Oh(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||Oh(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;gv(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(mm(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=Hf(Hf({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Oh(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===vv.get(this.cache)&&Oh(t,n.variables)&&Oh(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=fm(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(Ev(e,t.errorPolicy)?this.cache.performTransaction((function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:vv.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var o=r.getDiffOptions(t.variables),a=i.diff(o);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(a,o),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=dm.ready},e.prototype.markError=function(e){return this.networkStatus=dm.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Ev(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!zh(e);return!r&&n&&e.data&&(r=!0),r}var Tv=Object.prototype.hasOwnProperty,wv=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,o=e.onBroadcast,a=e.ssrMode,s=void 0!==a&&a,c=e.clientAwareness,l=void 0===c?{}:c,u=e.localState,p=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Vh?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.queryDeduplication=i,this.clientAwareness=l,this.localState=u||new mv({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!p,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new nd("QueryManager stopped while query was in flight"):new nd(11))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,c=void 0!==s&&s,l=e.update,u=e.onQueryUpdated,p=e.errorPolicy,f=void 0===p?"none":p,d=e.fetchPolicy,h=void 0===d?"network-only":d,m=e.keepRootFields,v=e.context;return Yf(this,void 0,void 0,(function(){var e,o,s;return Jf(this,(function(p){switch(p.label){case 0:return __DEV__?rd(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):rd(t,12),__DEV__?rd("network-only"===h||"no-cache"===h,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):rd("network-only"===h||"no-cache"===h,13),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,v)]:[3,2];case 1:n=p.sent(),p.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:h,errorPolicy:f,context:v,updateQueries:i,update:l,keepRootFields:m}),this.broadcastQueries(),s=this,[2,new Promise((function(p,d){return Kh(s.getObservableFromLink(t,Hf(Hf({},v),{optimisticResponse:r}),n,!1),(function(p){if(zh(p)&&"none"===f)throw new hm({graphQLErrors:p.errors});o&&(o.loading=!1,o.error=null);var d=Hf({},p);return"function"==typeof a&&(a=a(d)),"ignore"===f&&zh(d)&&delete d.errors,s.markMutationResult({mutationId:e,result:d,document:t,variables:n,fetchPolicy:h,errorPolicy:f,context:v,update:l,updateQueries:i,awaitRefetchQueries:c,refetchQueries:a,removeOptimistic:r?e:void 0,onQueryUpdated:u,keepRootFields:m})})).subscribe({next:function(e){s.broadcastQueries(),p(e)},error:function(t){o&&(o.loading=!1,o.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),d(t instanceof hm?t:new hm({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&Ev(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var a=e.updateQueries;a&&this.queries.forEach((function(e,o){var s=e.observableQuery,c=s&&s.queryName;if(c&&Tv.call(a,c)){var l=a[c],u=n.queries.get(o),p=u.document,f=u.variables,d=t.diff({query:p,variables:f,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var m=l(h,{mutationResult:r,queryName:p&&Zd(p)||void 0,queryVariables:f});m&&i.push({result:m,dataId:"ROOT_QUERY",query:p,variables:f})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach((function(e){return t.write(e)}));var a=e.update;if(a){if(!o){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=Hf(Hf({},r),{data:s.result}))}a(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return s.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(Hf(Hf({},t),{result:{data:r}}),e)}catch(e){__DEV__&&rd.error(e)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t,n=this.transformCache;if(!n.has(e)){var r=this.cache.transformDocument(e),i=(t=this.cache.transformForLink(r),Xh([em],Jd(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:om(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:rh(Xd(r)),asQuery:Hf(Hf({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?Hf(Hf({},e),{operation:"query"}):e}))})},c=function(e){e&&!n.has(e)&&n.set(e,s)};c(e),c(r),c(o),c(a)}return n.get(e)},e.prototype.getVariables=function(e,t){return Hf(Hf({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=Hf(Hf({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new bv(this),n=new wm({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?rd(e.query,"query option is required. You must specify your GraphQL document in the query option."):rd(e.query,14),__DEV__?rd("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):rd("Document"===e.query.kind,15),__DEV__?rd(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):rd(!e.returnPartialData,16),__DEV__?rd(!e.pollInterval,"pollInterval option only supported on watchQuery."):rd(!e.pollInterval,17),this.fetchQuery(t,e).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new nd("Store reset while query was in flight (not completed in link chain)"):new nd(18)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=dm.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){var n;"string"==typeof e?r.set(e,!1):Rd(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):Rd(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void n.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}})),i.size&&i.forEach((function(e){var r=sm("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new wm({queryManager:t,queryInfo:i,options:Hf(Hf({},e),{fetchPolicy:"network-only"})});rd(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&rd.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var c=function(e){return t.getObservableFromLink(n,s,e).map((function(o){if("no-cache"!==r&&(Ev(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),zh(o))throw new hm({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var l=this.localState.addExportedVariables(n,o,s).then(c);return new Pd((function(e){var t=null;return l.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var c=this.inFlightLinkObservables,l=this.link,u={query:s,variables:n,operationName:Zd(s)||void 0,context:this.prepareContext(Hf(Hf({},t),{forceFetch:!r}))};if(t=u.context,r){var p=c.get(s)||new Map;c.set(s,p);var f=Gh(n);if(!(o=p.get(f))){var d=new pm([lh(l,u)]);p.set(f,o=d),d.cleanup((function(){p.delete(f)&&p.size<1&&c.delete(s)}))}}else o=new pm([lh(l,u)])}else o=new pm([Pd.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=Kh(o,(function(e){return a.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})}))),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return Kh(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=fm(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new hm({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||dm.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new hm({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=dm.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=t.fetchPolicy,c=void 0===s?"cache-first":s,l=t.errorPolicy,u=void 0===l?"none":l,p=t.returnPartialData,f=void 0!==p&&p,d=t.notifyOnNetworkStatusChange,h=void 0!==d&&d,m=t.context,v=void 0===m?{}:m,y=Object.assign({},t,{query:i,variables:o,fetchPolicy:c,errorPolicy:u,returnPartialData:f,notifyOnNetworkStatusChange:h,context:v}),g=function(e){return y.variables=e,r.fetchQueryByPolicy(a,y,n)};this.fetchCancelFns.set(e,(function(e){setTimeout((function(){return b.cancel(e)}))}));var b=new pm(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(g):g(y.variables));return b.cleanup((function(){r.fetchCancelFns.delete(e),function(e){var t=e.fetchPolicy,n=void 0===t?"cache-first":t,r=e.nextFetchPolicy;r&&(e.fetchPolicy="function"==typeof r?r.call(e,n):r)}(t)})),b},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?sm("refetchQueries"):void 0:a,c=e.onQueryUpdated,l=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){l.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var u=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof bv&&e.watcher.observableQuery;if(r){if(c){l.delete(r.queryId);var i=c(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&u.set(r,i),i}null!==c&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=c(i,a,o)}c&&!0!==r||(r=i.refetch()),!1!==r&&u.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),u},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,l=t.returnPartialData,u=t.context,p=t.notifyOnNetworkStatusChange,f=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var d=function(){return e.getDiff(o)},h=function(t,n){void 0===n&&(n=e.networkStatus||dm.loading);var a=t.result;!__DEV__||l||Oh(a,{})||km(t.missing);var s=function(e){return Pd.of(Hf({data:e,loading:mm(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:u,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):s(a)},m="no-cache"===a?0:n===dm.refetch&&"merge"!==s?1:2,v=function(){return r.getResultsFromLink(e,m,{variables:o,context:u,fetchPolicy:a,errorPolicy:c})},y=p&&"number"==typeof f&&f!==n&&mm(n);switch(a){default:case"cache-first":return(g=d()).complete?[h(g,e.markReady())]:l||y?[h(g),v()]:[v()];case"cache-and-network":var g;return(g=d()).complete||l||y?[h(g),v()]:[v()];case"cache-only":return[h(d(),e.markReady())];case"network-only":return y?[h(d()),v()]:[v()];case"no-cache":return y?[h(e.getDiff()),v()]:[v()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new bv(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Hf(Hf({},t),{clientAwareness:this.clientAwareness})},e}(),_v=!1;function kv(e,t){return uh(e,t,t.variables&&{variables:Hf(Hf({},e.variables),t.variables)})}var Sv=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,c=e.ssrForceFetchDelay,l=void 0===c?0:c,u=e.connectToDevTools,p=void 0===u?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:u,f=e.queryDeduplication,d=void 0===f||f,h=e.defaultOptions,m=e.assumeImmutableResults,v=void 0!==m&&m,y=e.resolvers,g=e.typeDefs,b=e.fragmentMatcher,E=e.name,T=e.version,w=e.link;if(w||(w=n?new Eh({uri:n,credentials:r,headers:i}):ch.empty()),!o)throw __DEV__?new nd("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new nd(7);if(this.link=w,this.cache=o,this.disableNetworkFetches=s||l>0,this.queryDeduplication=d,this.defaultOptions=h||{},this.typeDefs=g,l&&setTimeout((function(){return t.disableNetworkFetches=!1}),l),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),p&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!_v&&__DEV__&&(_v=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var _=window.navigator,k=_&&_.userAgent,S=void 0;"string"==typeof k&&(k.indexOf("Chrome/")>-1?S="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":k.indexOf("Firefox/")>-1&&(S="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),S&&__DEV__&&rd.log("Download the Apollo DevTools for a better development experience: "+S)}this.version="3.5.5",this.localState=new mv({cache:o,client:this,resolvers:y,fragmentMatcher:b}),this.queryManager=new wv({cache:this.cache,link:this.link,queryDeduplication:d,ssrMode:s,clientAwareness:{name:E,version:T},localState:this.localState,assumeImmutableResults:v,onBroadcast:p?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=kv(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Hf(Hf({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=kv(this.defaultOptions.query,e)),__DEV__?rd("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):rd("cache-and-network"!==e.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Hf(Hf({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=kv(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return lh(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){__DEV__&&rd.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),Ov=function(){function e(){this.getFragmentDoc=cv(Md)}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(n)}),r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Hf(Hf({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Hf(Hf({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=Wf(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=Wf(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),i=t(r);return null==i?r:(n.writeQuery(Hf(Hf({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),i=t(r);return null==i?r:(n.writeFragment(Hf(Hf({},e),{data:i})),i)}})},e}(),Cv=function(e,t,n,r){this.message=e,this.path=t,this.query=n,this.variables=r};function xv(e){return __DEV__&&(t=e,(n=new Set([t])).forEach((function(e){Rd(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(t){Rd(e[t])&&n.add(e[t])}))}))),e;var t,n}var Nv=Object.prototype.hasOwnProperty;function Av(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var Dv={dataIdFromObject:Av,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Lv(e){var t=e.canonizeResults;return void 0===t?Dv.canonizeResults:t}var Iv=/^[_a-z][_0-9a-z]*/i;function Pv(e){var t=e.match(Iv);return t?t[0]:e}function Rv(e,t,n){return!!Rd(t)&&(Array.isArray(t)?t.every((function(t){return Rv(e,t,n)})):e.selections.every((function(e){if(Wd(e)&&rm(e,n)){var r=$d(e);return Nv.call(t,r)&&(!e.selectionSet||Rv(e.selectionSet,t[r],n))}return!0})))}function Mv(e){return Rd(e)&&!Qd(e)&&!Array.isArray(e)}var jv=Object.create(null),Fv=function(){return jv},Vv=Object.create(null),Qv=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return xv(Qd(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Qd(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Vd(e);if(Qd(e))return e;var r=n.policies.identify(e)[0];if(r){var i=Vd(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return Hf({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),Nv.call(this.data,e)){var n=this.data[e];if(n&&Nv.call(n,t))return n[t]}return"__typename"===t&&Nv.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Bv?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),Nv.call(this.data,e)?this.data[e]:this instanceof Bv?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;Qd(e)&&(e=e.__ref),Qd(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){__DEV__?rd("string"==typeof n,"store.merge expects a string ID"):rd("string"==typeof n,1);var a=new Nm(zv).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=Pv(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof Bv||delete a[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==a.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,a=!0,s={DELETE:jv,INVALIDATE:Vv,isReference:Qd,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||Vd(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(c){var l=Pv(c),u=r[c];if(void 0!==u){var p="function"==typeof t?t:t[c]||t[l];if(p){var f=p===Fv?jv:p(xv(u),Hf(Hf({},s),{fieldName:l,storeFieldName:c,storage:n.getStorage(e,c)}));f===Vv?n.group.dirty(e,c):(f===jv&&(f=void 0),f!==u&&(i[c]=f,o=!0,u=f))}void 0!==u&&(a=!1)}})),o)return this.merge(e,i),a&&(this instanceof Bv?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=Fv,r):Fv)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(Nv.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Bv&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){Nv.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&Nv.call(e,n)||t.delete(n)})),e){var n=e.__META,r=Wf(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Bv?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){Nv.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof Bv;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!Nv.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){Qd(e)&&(t[e.__ref]=!0),Rd(e)&&Object.keys(e).forEach((function(t){var n=e[t];Rd(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),qv=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?ov():null,this.keyMaker=new Fh(Vh)},e.prototype.depend=function(e,t){if(this.d){this.d(Uv(e,t));var n=Pv(t);n!==t&&this.d(Uv(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Uv(e,t),"__exists"===t?"forget":"setDirty")},e}();function Uv(e,t){return t+"#"+e}function Gv(e,t){$v(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new qv(i))||this;return a.stump=new Kv(a),a.storageTrie=new Fh(Vh),o&&a.replace(o),a}return $f(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(Qv||(Qv={}));var Bv=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return $f(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){Oh(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return Hf(Hf({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return Nv.call(this.data,t)?Hf(Hf({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(Qv),Kv=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new qv(t.group.caching,t.group))||this}return $f(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Bv);function zv(e,t,n){var r=e[n],i=t[n];return Oh(r,i)?r:i}function $v(e){return!!(e instanceof Qv&&e.group.caching)}function Hv(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Wv=function(){function e(e){var t=this;this.knownResults=new(Vh?WeakMap:Map),this.config=uh(e,{addTypename:!1!==e.addTypename,canonizeResults:Lv(e)}),this.canon=e.canon||new Uh,this.executeSelectionSet=cv((function(e){var n,r=e.context.canonizeResults,i=Hv(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?Hf(Hf({},o),{result:t.canon.admit(o.result)}):o:(Gv(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:Hv,makeCacheKey:function(e,t,n,r){if($v(n.store))return n.store.makeCacheKey(e,Qd(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=cv((function(e){return Gv(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if($v(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Uh},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,a=e.returnPartialData,s=void 0===a||a,c=e.canonizeResults,l=void 0===c?this.config.canonizeResults:c,u=this.config.cache.policies;o=Hf(Hf({},rh(th(n))),o);var p,f=Vd(i),d=new Nm,h=this.executeSelectionSet({selectionSet:nh(n).selectionSet,objectOrReference:f,enclosingRef:f,context:{store:t,query:n,policies:u,variables:o,varString:Gh(o),canonizeResults:l,fragmentMap:jd(eh(n)),merge:function(e,t){return d.merge(e,t)}}});if(h.missing&&(p=[new Cv(Yv(h.missing),h.missing,n,o)],!s))throw p[0];return{result:h.result,complete:!p,missing:p}},e.prototype.isFresh=function(e,t,n,r){if($v(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(Qd(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var a,s=o.variables,c=o.policies,l=o.store.getFieldValue(r,"__typename"),u={};function p(e,t){var n;return e.missing&&(a=o.merge(a,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&(u={__typename:l});var f=new Set(n.selections);f.forEach((function(e){var n,d;if(rm(e,s))if(Wd(e)){var h=c.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),m=$d(e);void 0===h?Zh.added(e)||(a=o.merge(a,((n={})[m]="Can't find field '".concat(e.name.value,"' on ").concat(Qd(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):Array.isArray(h)?h=p(t.executeSubSelectedArray({field:e,array:h,enclosingRef:i,context:o}),m):e.selectionSet?null!=h&&(h=p(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:h,enclosingRef:Qd(h)?h:i,context:o}),m)):o.canonizeResults&&(h=t.canon.pass(h)),void 0!==h&&(u=o.merge(u,((d={})[m]=h,d)))}else{var v=Fd(e,o.fragmentMap);v&&c.fragmentMatches(v,l)&&v.selectionSet.selections.forEach(f.add,f)}}));var d={result:u,missing:a},h=o.canonizeResults?this.canon.admit(d):xv(d);return h.result&&this.knownResults.set(h.result,n),h},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context;function s(e,n){var r;return e.missing&&(t=a.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:Array.isArray(e)?s(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?s(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:Qd(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){Rd(n)&&(__DEV__?rd(!Qd(n),"Missing selection set for object of type ".concat(function(e,t){return Qd(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)," returned for query field ").concat(t.name.value)):rd(!Qd(n),5),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),e)})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function Yv(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var Jv=Object.create(null);function Xv(e){var t=JSON.stringify(e);return Jv[t]||(Jv[t]=Object.create(null))}function Zv(e){var t=Xv(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=ty(e,(function(e){var i=iy(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&Nv.call(t,e[0])&&(i=iy(t,e,ry)),__DEV__?rd(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):rd(void 0!==i,2),i}));return"".concat(n.typename,":").concat(JSON.stringify(i))})}function ey(e){var t=Xv(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=ty(e,(function(e){var n=e[0],o=n.charAt(0);if("@"!==o)if("$"!==o){if(t)return iy(t,e)}else{var a=n.slice(1);if(i&&Nv.call(i,a)){var s=e.slice(0);return s[0]=a,iy(i,s)}}else if(r&&fm(r.directives)){var c=n.slice(1),l=r.directives.find((function(e){return e.name.value===c})),u=l&&zd(l,i);return u&&iy(u,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function ty(e,t){var n=new Nm;return ny(e).reduce((function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e}),Object.create(null))}function ny(e){var t=Xv(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,i){Array.isArray(t)?(ny(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),Array.isArray(e[i+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function ry(e,t){return e[t]}function iy(e,t,n){return n=n||ry,oy(t.reduce((function e(t,r){return Array.isArray(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function oy(e){return Rd(e)?Array.isArray(e)?e.map(oy):ty(Object.keys(e).sort(),(function(t){return iy(e,t)})):e}function ay(e){return void 0!==e.args?e.args:e.field?zd(e.field,e.variables):null}Gd.setStringify(Gh);var sy=function(){},cy=function(e,t){return t.fieldName},ly=function(e,t,n){return(0,n.mergeObjects)(e,t)},uy=function(e,t){return t},py=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=Hf({dataIdFromObject:Av},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r=this,i=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var o,a=t&&t.storeObject||e,s=Hf(Hf({},t),{typename:i,storeObject:a,readField:t&&t.readField||function(){var e=dy(arguments,a);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),c=i&&this.getTypePolicy(i),l=c&&c.keyFn||this.config.dataIdFromObject;l;){var u=l(e,s);if(!Array.isArray(u)){o=u;break}l=Zv(u)}return o=o?String(o):void 0,s.keyObject?[o,s.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=Wf(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),Nv.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?ly:!1===t?uy:e.merge}a(r,t.merge),r.keyFn=!1===i?sy:Array.isArray(i)?Zv(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,c=i.read,l=i.merge;r.keyFn=!1===s?cy:Array.isArray(s)?ey(s):"function"==typeof s?s:r.keyFn,"function"==typeof c&&(r.read=c),a(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||cy)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?rd(!r||r===e,"Cannot change root ".concat(e," __typename more than once")):rd(!r||r===e,3),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(Iv);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!Nv.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,o=Wf(r,["fields"]);Object.assign(n,o),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},l=!(!n||!this.fuzzySubtypes.size),u=!1,p=0;p1?s:t}:(r=Hf({},a),Nv.call(r,"from")||(r.from=t)),__DEV__&&void 0===r.from&&__DEV__&&rd.warn("Undefined 'from' passed to readField with arguments ".concat((i=Array.from(e),o=sm("stringifyForDisplay"),JSON.stringify(i,(function(e,t){return void 0===t?o:t})).split(JSON.stringify(o)).join("")))),void 0===r.variables&&(r.variables=n),r}function hy(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new nd("Cannot automatically merge arrays"):new nd(4);if(Rd(t)&&Rd(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(Qd(t)&&Mv(n))return e.merge(t.__ref,n),t;if(Mv(t)&&Qd(n))return e.merge(t,n.__ref),n;if(Mv(t)&&Mv(n))return Hf(Hf({},t),n)}return n}}function my(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:Hf(Hf({},e),{clientOnly:t,deferred:n})),i}var vy=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,c=Xd(r),l=new Nm;a=Hf(Hf({},rh(c)),a);var u={store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:a,varString:Gh(a),fragmentMap:jd(eh(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},p=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:u});if(!Qd(p))throw __DEV__?new nd("Could not identify object ".concat(JSON.stringify(i))):new nd(6);return u.incomingById.forEach((function(t,r){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=Vd(r);if(o&&o.map.size){var c=n.applyMerges(o,s,i,u);if(Qd(c))return;i=c}if(__DEV__&&!u.overwrite){var l=Object.create(null);a.forEach((function(e){e.selectionSet&&(l[e.name.value]=!0)})),Object.keys(i).forEach((function(e){(function(e){return!0===l[Pv(e)]})(e)&&!function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},o=i(e);if(o){var a=i(t);if(a&&!Qd(o)&&!Oh(o,a)&&!Object.keys(o).every((function(e){return void 0!==r.getFieldValue(a,e)}))){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=Pv(n),l="".concat(s,".").concat(c);if(!wy.has(l)){wy.add(l);var u=[];Array.isArray(o)||Array.isArray(a)||[o,a].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||u.includes(t)||u.push(t)})),__DEV__&&rd.warn("Cache data may be lost when replacing the ".concat(c," field of a ").concat(s," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(l," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(o).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(a).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(s,i,e,u.store)}))}e.merge(r,i)})),e.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,c=Object.create(null),l=n&&s.rootTypenamesById[n]||Hd(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof l&&(c.__typename=l);var u=function(){var e=dy(arguments,c,o.variables);if(Qd(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var n=s.readField(Hf(Hf({},e),{from:t.storeObject}),o);if(void 0!==n)return n}}return s.readField(e,o)},p=new Set;this.flattenFields(i,r,o,l).forEach((function(e,n){var i,o=$d(n),f=r[o];if(p.add(n),void 0!==f){var d=s.getStoreFieldName({typename:l,fieldName:n.name.value,field:n,variables:e.variables}),h=gy(a,d),m=t.processFieldValue(f,n,n.selectionSet?my(e,!1,!1):e,h),v=void 0;n.selectionSet&&(Qd(m)||Mv(m))&&(v=u("__typename",m));var y=s.getMergeFunction(l,n.name.value,v);y?h.info={field:n,typename:l,merge:y}:Ty(a,d),c=e.merge(c,((i={})[d]=m,i))}else!__DEV__||e.clientOnly||e.deferred||Zh.added(n)||s.getReadFunction(l,n.name.value)||__DEV__&&rd.error("Missing field '".concat($d(n),"' while writing result ").concat(JSON.stringify(r,null,2)).substring(0,1e3))}));try{var f=s.identify(r,{typename:l,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:c,readField:u}),d=f[0],h=f[1];n=n||d,h&&(c=o.merge(c,h))}catch(e){if(!n)throw e}if("string"==typeof n){var m=Vd(n),v=o.written[n]||(o.written[n]=[]);if(v.indexOf(i)>=0)return m;if(v.push(i),this.reader&&this.reader.isFresh(r,m,i,o))return m;var y=o.incomingById.get(n);return y?(y.storeObject=o.merge(y.storeObject,c),y.mergeTree=by(y.mergeTree,a),p.forEach((function(e){return y.fieldNodeSet.add(e)}))):o.incomingById.set(n,{storeObject:c,mergeTree:Ey(a)?void 0:a,fieldNodeSet:p}),m}return c},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,gy(r,o));return Ty(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?ym(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=Hd(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,a=new Fh(!1);return function e(s,c){var l=a.lookup(s,c.clientOnly,c.deferred);l.visited||(l.visited=!0,s.selections.forEach((function(a){if(rm(a,n.variables)){var s=c.clientOnly,l=c.deferred;if(s&&l||!fm(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=zd(e,n.variables);r&&!1===r.if||(l=!0)}})),Wd(a)){var u=i.get(a);u&&(s=s&&u.clientOnly,l=l&&u.deferred),i.set(a,my(n,s,l))}else{var p=Fd(a,n.fragmentMap);p&&o.fragmentMatches(p,r,t,n.variables)&&e(p.selectionSet,my(n,s,l))}}})))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!Qd(n)){var s,c=Array.isArray(n)||!Qd(t)&&!Mv(t)?void 0:t,l=n;c&&!i&&(i=[Qd(c)?c.__ref:c]);var u=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=u(c,t),o=u(l,t);if(void 0!==o){i&&i.push(t);var p=a.applyMerges(e,n,o,r,i);p!==o&&(s=s||new Map).set(t,p),i&&rd(i.pop()===t)}})),s&&(n=Array.isArray(l)?l.slice(0):Hf({},l),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},e}(),yy=[];function gy(e,t){var n=e.map;return n.has(t)||n.set(t,yy.pop()||{map:new Map}),n.get(t)}function by(e,t){if(e===t||!t||Ey(t))return e;if(!e||Ey(e))return t;var n=e.info&&t.info?Hf(Hf({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,by(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,by(t.map.get(n),e.map.get(n)))}))}return i}function Ey(e){return!e||!(e.info||e.map.size)}function Ty(e,t){var n=e.map,r=n.get(t);r&&Ey(r)&&(yy.push(r),n.delete(t))}var wy=new Set,_y=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=dv,n.txCount=0,n.config=function(e){return uh(Dv,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new py({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return $f(t,e),t.prototype.init=function(){var e=this.data=new Qv.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader;this.storeWriter=new vy(this,this.storeReader=new Wv({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Lv(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=cv((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if($v(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,Gh({optimistic:r,rootId:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(Hf(Hf({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof Cv)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(Nv.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(Hf(Hf({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,n=this;return this.watches.size||pv(t=this).vars.forEach((function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){n.watches.delete(e)&&!n.watches.size&&fv(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){Gh.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(Qd(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&rd.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(Nv.call(e,"id"))return!1;e=Hf(Hf({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),Gh.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),fv(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,s=e.onWatchUpdated,c=function(e){var i=n,o=i.data,a=i.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=o,n.optimisticData=a}},l=new Set;return s&&!this.txCount&&this.broadcastWatches(Hf(Hf({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,c):!1===o?c(this.data):c(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&l.size?(this.broadcastWatches(Hf(Hf({},e),{onWatchUpdated:function(e,t){var n=s.call(this,e,t);return!1!==n&&l.delete(e),n}})),l.size&&l.forEach((function(e){return n.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Zh(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&Oh(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(Ov),ky=new Map,Sy=new Map,Oy=!0,Cy=!1;function xy(e){return e.replace(/[\s,]+/g," ").trim()}function Ny(e){var t,n,r,i=xy(e);if(!ky.has(i)){var o=(0,iu.parse)(e,{experimentalFragmentVariables:Cy,allowLegacyFragmentVariables:Cy});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");ky.set(i,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=o,n=new Set,r=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=xy((a=e.loc).source.body.substring(a.start,a.end)),o=Sy.get(t);o&&!o.has(i)?Oy&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||Sy.set(t,o=new Set),o.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var a})),Hf(Hf({},t),{definitions:r}))))}return ky.get(i)}function Ay(e){for(var t=[],n=1;n{const{setQueryParams:t,setCurrentScreen:n,currentScreen:i,screens:o}=e,[a,s]=(0,r.useState)(!0);return(0,r.createElement)(Fy,{id:"graphiql-router-sider","data-testid":"graphiql-router-sider",className:"graphiql-app-screen-sider",collapsible:!0,defaultCollapsed:a,collapsed:a,trigger:(0,r.createElement)("span",{"data-testid":"router-menu-collapse-trigger"},a?(0,r.createElement)(ge,null):(0,r.createElement)(Te,null)),onCollapse:()=>{s(!a)}},(0,r.createElement)(Ma,{theme:"dark",mode:"inline",selectedKeys:i,activeKey:i},o&&o.map((e=>(0,r.createElement)(Ma.Item,{"data-testid":`router-menu-item-${e.id}`,id:`router-menu-item-${e.id}`,key:e.id,icon:e.icon,onClick:()=>{(e=>{n(e),t({screen:e})})(e.id)}},e.title)))))};var Uy,qy,Gy,By,Ky,zy,$y=(Uy={screen:(By=Al,Ky="graphiql",void 0===zy&&(zy=!0),Nl(Nl({},By),{decode:function(){for(var e=[],t=0;t{const[t,n]=zl({screen:Al}),{endpoint:i,schema:o,setSchema:a}=Py(),{screen:s}=t,[c,l]=(0,r.useState)((()=>{const e=[{id:"graphiql",title:"GraphiQL",icon:(0,r.createElement)(fe,null),render:()=>(0,r.createElement)(Kf,null)},{id:"help",title:"Help",icon:(0,r.createElement)(me,null),render:()=>(0,r.createElement)(xl,null)}],t=cc.P.applyFilters("graphiql_router_screens",e);return!0===Array.isArray(t)?t:e})());(0,r.useEffect)((()=>{if(null!==o)return;const e=My();var t;(t=i,new Sv({uri:t,cache:new _y})).query({query:Iy` +`,Qy=e=>{const{setQueryParams:t,setCurrentScreen:n,currentScreen:i,screens:o}=e,[a,s]=(0,r.useState)(!0);return(0,r.createElement)(Fy,{id:"graphiql-router-sider","data-testid":"graphiql-router-sider",className:"graphiql-app-screen-sider",collapsible:!0,defaultCollapsed:a,collapsed:a,trigger:(0,r.createElement)("span",{"data-testid":"router-menu-collapse-trigger"},a?(0,r.createElement)(ge,null):(0,r.createElement)(Te,null)),onCollapse:()=>{s(!a)}},(0,r.createElement)(Ma,{theme:"dark",mode:"inline",selectedKeys:i,activeKey:i},o&&o.map((e=>(0,r.createElement)(Ma.Item,{"data-testid":`router-menu-item-${e.id}`,id:`router-menu-item-${e.id}`,key:e.id,icon:e.icon,onClick:()=>{(e=>{n(e),t({screen:e})})(e.id)}},e.title)))))};var qy,Uy,Gy,By,Ky,zy,$y=(qy={screen:(By=Al,Ky="graphiql",void 0===zy&&(zy=!0),Nl(Nl({},By),{decode:function(){for(var e=[],t=0;t{const[t,n]=zl({screen:Al}),{endpoint:i,schema:o,setSchema:a}=Py(),{screen:s}=t,[c,l]=(0,r.useState)((()=>{const e=[{id:"graphiql",title:"GraphiQL",icon:(0,r.createElement)(fe,null),render:()=>(0,r.createElement)(Kf,null)},{id:"help",title:"Help",icon:(0,r.createElement)(me,null),render:()=>(0,r.createElement)(xl,null)}],t=cc.P.applyFilters("graphiql_router_screens",e);return!0===Array.isArray(t)?t:e})());(0,r.useEffect)((()=>{if(null!==o)return;const e=My();var t;(t=i,new Sv({uri:t,cache:new _y})).query({query:Iy` ${e} - `}).then((e=>{const t=null!=e&&e.data?jy(e.data):null;t!==o&&a(t)}))}),[i]);const[u,p]=(0,r.useState)((()=>{const e=c&&c.find((e=>e.id===s));return e?e.id:"graphiql"})());return u?(0,r.createElement)(Vy,{"data-testid":"graphiql-router"},(0,r.createElement)(dt,{style:{height:"calc(100vh - 65px)",width:"100%"}},(0,r.createElement)(Qy,{setQueryParams:n,setCurrentScreen:p,currentScreen:u,screens:c}),(0,r.createElement)(dt,{className:"screen-layout",style:{background:"#fff"}},(e=>{const t=null!==(n=c.find((e=>e.id===u)))&&void 0!==n?n:c[0];var n;return t?(0,r.createElement)(dt,{"data-testid":`router-screen-${t.id}`},null==t?void 0:t.render(e)):null})(e)))):null},Gy=function(e){var t=$l(Uy),n=t[0],r=t[1];return s.createElement(qy,Hl({query:n,setQuery:r},e))},Gy.displayName="withQueryParams("+(qy.displayName||qy.name||"Component")+")",Gy);const{hooks:Hy,AppContextProvider:Wy,useAppContext:Yy}=window.wpGraphiQL,Jy=()=>{const e=Yy();return Hy.applyFilters("graphiql_app",(0,r.createElement)($y,null),{appContext:e})};(0,r.render)((0,r.createElement)((()=>{const e=Hy.applyFilters("graphiql_query_params_provider_config",{query:Al,variables:Al}),[t,n]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{t||(Hy.doAction("graphiql_rendered"),n(!0))}),[]),t?(0,r.createElement)(ru,null,(0,r.createElement)(Zl,{config:e},(e=>{const{query:t,setQuery:n}=e;return(0,r.createElement)(Wy,{queryParams:t,setQueryParams:n},(0,r.createElement)(Jy,null))}))):null}),null),document.getElementById("graphiql"))},5676:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n(20),i=window.wp.hooks,o=n(9307);const a=(0,o.createContext)(),s=(0,i.createHooks)();window.wpGraphiQL={GraphQL:r,hooks:s,useAppContext:()=>(0,o.useContext)(a),AppContextProvider:e=>{let{children:t,setQueryParams:n,queryParams:r}=e;const[i,c]=(0,o.useState)(null),[l,u]=(0,o.useState)(null!==(p=null===(f=window)||void 0===f||null===(d=f.wpGraphiQLSettings)||void 0===d?void 0:d.nonce)&&void 0!==p?p:null);var p,f,d;const[h,m]=(0,o.useState)(null!==(v=null===(y=window)||void 0===y||null===(g=y.wpGraphiQLSettings)||void 0===g?void 0:g.graphqlEndpoint)&&void 0!==v?v:null);var v,y,g;const[b,E]=(0,o.useState)(r);let T={endpoint:h,setEndpoint:m,nonce:l,setNonce:u,schema:i,setSchema:c,queryParams:b,setQueryParams:e=>{E(e),n(e)}},w=s.applyFilters("graphiql_app_context",T);return(0,o.createElement)(a.Provider,{value:w},t)}}},4184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t0&&(l.from=i.default.Pos(l.from.line,l.from.ch),l.to=i.default.Pos(l.to.line,l.to.ch),i.default.signal(e,"hasCompletion",e,l,a)),l}}))},122:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(875),o=r(n(4631)),a=r(n(9068)),s=n(2311);function c(e,t,n){var r,i=(null===(r=t.fieldDef)||void 0===r?void 0:r.name)||"";"__"!==i.slice(0,2)&&(p(e,t,n,t.parentType),d(e,".")),d(e,i,"field-name",n,s.getFieldReference(t))}function l(e,t,n){var r;d(e,"@"+((null===(r=t.directiveDef)||void 0===r?void 0:r.name)||""),"directive-name",n,s.getDirectiveReference(t))}function u(e,t,n,r){d(e,": "),p(e,t,n,r)}function p(e,t,n,r){r instanceof i.GraphQLNonNull?(p(e,t,n,r.ofType),d(e,"!")):r instanceof i.GraphQLList?(d(e,"["),p(e,t,n,r.ofType),d(e,"]")):d(e,(null==r?void 0:r.name)||"","type-name",n,s.getTypeReference(t,r))}function f(e,t,n){var r=n.description;if(r){var i=document.createElement("div");i.className="info-description",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r)),e.appendChild(i)}!function(e,t,n){var r=n.deprecationReason;if(r){var i=document.createElement("div");i.className="info-deprecation",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r));var o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),i.insertBefore(o,i.firstChild),e.appendChild(i)}}(e,t,n)}function d(e,t,n,r,i){if(void 0===n&&(n=""),void 0===r&&(r={onClick:null}),void 0===i&&(i=null),n){var o=r.onClick,a=void 0;o?((a=document.createElement("a")).href="javascript:void 0",a.addEventListener("click",(function(e){o(i,e)}))):a=document.createElement("span"),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}else e.appendChild(document.createTextNode(t))}n(9965),o.default.registerHelper("info","graphql",(function(e,t){if(t.schema&&e.state){var n,r=e.state,i=r.kind,o=r.step,h=a.default(t.schema,e.state);return"Field"===i&&0===o&&h.fieldDef||"AliasedField"===i&&2===o&&h.fieldDef?(function(e,t,n){c(e,t,n),u(e,t,n,t.type)}(n=document.createElement("div"),h,t),f(n,t,h.fieldDef),n):"Directive"===i&&1===o&&h.directiveDef?(l(n=document.createElement("div"),h,t),f(n,t,h.directiveDef),n):"Argument"===i&&0===o&&h.argDef?(function(e,t,n){var r;t.directiveDef?l(e,t,n):t.fieldDef&&c(e,t,n);var i=(null===(r=t.argDef)||void 0===r?void 0:r.name)||"";d(e,"("),d(e,i,"arg-name",n,s.getArgumentReference(t)),u(e,t,n,t.inputType),d(e,")")}(n=document.createElement("div"),h,t),f(n,t,h.argDef),n):"EnumValue"===i&&h.enumValue&&h.enumValue.description?(function(e,t,n){var r,i=(null===(r=t.enumValue)||void 0===r?void 0:r.name)||"";p(e,t,n,t.inputType),d(e,"."),d(e,i,"enum-value",n,s.getEnumValueReference(t))}(n=document.createElement("div"),h,t),f(n,t,h.enumValue),n):"NamedType"===i&&h.type&&h.type.description?(p(n=document.createElement("div"),h,t,h.type),f(n,t,h.type),n):void 0}}))},2570:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4631)),o=r(n(9068)),a=n(2311);n(5805),i.default.registerHelper("jump","graphql",(function(e,t){if(t.schema&&t.onClick&&e.state){var n=e.state,r=n.kind,i=n.step,s=o.default(t.schema,n);return"Field"===r&&0===i&&s.fieldDef||"AliasedField"===r&&2===i&&s.fieldDef?a.getFieldReference(s):"Directive"===r&&1===i&&s.directiveDef?a.getDirectiveReference(s):"Argument"===r&&0===i&&s.argDef?a.getArgumentReference(s):"EnumValue"===r&&s.enumValue?a.getEnumValueReference(s):"NamedType"===r&&s.type?a.getTypeReference(s):void 0}}))},1871:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4631)),o=n(2188),a=["error","warning","information","hint"],s={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};i.default.registerHelper("lint","graphql",(function(e,t){var n=t.schema;return o.getDiagnostics(e,n,t.validationRules,void 0,t.externalFragments).map((function(e){return{message:e.message,severity:e.severity?a[e.severity-1]:a[0],type:e.source?s[e.source]:void 0,from:i.default.Pos(e.range.start.line,e.range.start.character),to:i.default.Pos(e.range.end.line,e.range.end.character)}}))}))},9229:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4631)),o=r(n(88));i.default.defineMode("graphql",o.default)},6276:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4631)),o=n(2188);function a(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}i.default.defineMode("graphql-results",(function(e){var t=o.onlineParser({eatWhitespace:function(e){return e.eatSpace()},lexRules:s,parseRules:c,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var s={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[o.p("{"),o.list("Entry",o.p(",")),o.p("}")],Entry:[o.t("String","def"),o.p(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[o.t("Number","number")],StringValue:[o.t("String","string")],BooleanValue:[o.t("Keyword","builtin")],NullValue:[o.t("Keyword","keyword")],ListValue:[o.p("["),o.list("Value",o.p(",")),o.p("]")],ObjectValue:[o.p("{"),o.list("ObjectField",o.p(",")),o.p("}")],ObjectField:[o.t("String","property"),o.p(":"),"Value"]}},2311:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeReference=t.getEnumValueReference=t.getArgumentReference=t.getDirectiveReference=t.getFieldReference=void 0;var r=n(875);function i(e){return"__"===e.name.slice(0,2)}t.getFieldReference=function(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:i(e.fieldDef)?null:e.parentType}},t.getDirectiveReference=function(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}},t.getArgumentReference=function(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:i(e.fieldDef)?null:e.parentType}},t.getEnumValueReference=function(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?r.getNamedType(e.inputType):void 0}},t.getTypeReference=function(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}},3285:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=[],r=e;r&&r.kind;)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}},9068:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(875),o=n(8155),a=r(n(3285));function s(e,t,n){return n===o.SchemaMetaFieldDef.name&&e.getQueryType()===t?o.SchemaMetaFieldDef:n===o.TypeMetaFieldDef.name&&e.getQueryType()===t?o.TypeMetaFieldDef:n===o.TypeNameMetaFieldDef.name&&i.isCompositeType(t)?o.TypeNameMetaFieldDef:t&&t.getFields?t.getFields()[n]:void 0}t.default=function(e,t){var n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return a.default(t,(function(t){switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?s(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case"SelectionSet":n.parentType=n.type?i.getNamedType(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":var r=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&s(e,n.parentType,t.prevState.name):null:null;n.argDefs=r?r.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(var o=0;o1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+s))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,o){var a=function(e,t){return t?n(n(e.map((function(e){return{proximity:i(r(e.text),t),entry:e}})),(function(e){return e.proximity<=2})),(function(e){return!e.entry.isDeprecated})).sort((function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length})).map((function(e){return e.entry})):n(e,(function(e){return!e.isDeprecated}))}(o,r(t.string));if(a){var s=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:a,from:{line:e.line,ch:s},to:{line:e.line,ch:t.end}}}}},9965:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4631));function o(e,t){var n=e.state.info,r=t.target||t.srcElement;if(r instanceof HTMLElement&&"SPAN"===r.nodeName&&void 0===n.hoverTimeout){var o=r.getBoundingClientRect(),a=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(c,l)},s=function(){i.default.off(document,"mousemove",a),i.default.off(e.getWrapperElement(),"mouseout",s),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},c=function(){i.default.off(document,"mousemove",a),i.default.off(e.getWrapperElement(),"mouseout",s),n.hoverTimeout=void 0,function(e,t){var n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),r=e.state.info.options,o=r.render||e.getHelper(n,"info");if(o){var a=e.getTokenAt(n,!0);if(a){var s=o(a,r,e,n);s&&function(e,t,n){var r=document.createElement("div");r.className="CodeMirror-info",r.appendChild(n),document.body.appendChild(r);var o=r.getBoundingClientRect(),a=window.getComputedStyle(r),s=o.right-o.left+parseFloat(a.marginLeft)+parseFloat(a.marginRight),c=o.bottom-o.top+parseFloat(a.marginTop)+parseFloat(a.marginBottom),l=t.bottom;c>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(l=t.top-c),l<0&&(l=t.bottom);var u,p=Math.max(0,window.innerWidth-s-15);p>t.left&&(p=t.left),r.style.opacity="1",r.style.top=l+"px",r.style.left=p+"px";var f=function(){clearTimeout(u)},d=function(){clearTimeout(u),u=setTimeout(h,200)},h=function(){i.default.off(r,"mouseover",f),i.default.off(r,"mouseout",d),i.default.off(e.getWrapperElement(),"mouseout",d),r.style.opacity?(r.style.opacity="0",setTimeout((function(){r.parentNode&&r.parentNode.removeChild(r)}),600)):r.parentNode&&r.parentNode.removeChild(r)};i.default.on(r,"mouseover",f),i.default.on(r,"mouseout",d),i.default.on(e.getWrapperElement(),"mouseout",d)}(e,t,s)}}}(e,o)},l=function(e){var t=e.state.info.options;return t&&t.hoverTime||500}(e);n.hoverTimeout=setTimeout(c,l),i.default.on(document,"mousemove",a),i.default.on(e.getWrapperElement(),"mouseout",s)}}i.default.defineOption("info",!1,(function(e,t,n){if(n&&n!==i.default.Init){var r=e.state.info.onMouseOver;i.default.off(e.getWrapperElement(),"mouseover",r),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var a=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);a.onMouseOver=o.bind(null,e),i.default.on(e.getWrapperElement(),"mouseover",a.onMouseOver)}}))},1277:function(e,t){"use strict";var n,r,i,o,a,s,c;function l(){var e=i,t=[];if(d("{"),!m("}")){do{t.push(u())}while(m(","));d("}")}return{kind:"Object",start:e,end:a,members:t}}function u(){var e=i,t="String"===c?f():null;d("String"),d(":");var n=p();return{kind:"Member",start:e,end:a,key:t,value:n}}function p(){switch(c){case"[":return function(){var e=i,t=[];if(d("["),!m("]")){do{t.push(p())}while(m(","));d("]")}return{kind:"Array",start:e,end:a,values:t}}();case"{":return l();case"String":case"Number":case"Boolean":case"Null":var e=f();return y(),e}d("Value")}function f(){return{kind:c,start:i,end:o,value:JSON.parse(n.slice(i,o))}}function d(e){if(c!==e){var t;if("EOF"===c)t="[end of file]";else if(o-i>1)t="`"+n.slice(i,o)+"`";else{var r=n.slice(i).match(/^.+?\b/);t="`"+(r?r[0]:n[i])+"`"}throw h("Expected "+e+" but found "+t+".")}y()}function h(e){return{message:e,start:i,end:o}}function m(e){if(c===e)return y(),!0}function v(){return o31;)if(92===s)switch(s=v()){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:v();break;case 117:v(),g(),g(),g(),g();break;default:throw h("Bad character escape sequence.")}else{if(o===r)throw h("Unterminated string.");v()}if(34!==s)throw h("Unterminated string.");v()}();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return c="Number",45===s&&v(),48===s?v():b(),46===s&&(v(),b()),void(69!==s&&101!==s||(43!==(s=v())&&45!==s||v(),b()));case 102:if("false"!==n.slice(i,i+5))break;return o+=4,v(),void(c="Boolean");case 110:if("null"!==n.slice(i,i+4))break;return o+=3,v(),void(c="Null");case 116:if("true"!==n.slice(i,i+4))break;return o+=3,v(),void(c="Boolean")}c=n[i],v()}else c="EOF"}function g(){if(s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102)return v();throw h("Expected hexadecimal digit.")}function b(){if(s<48||s>57)throw h("Expected decimal digit.");do{v()}while(s>=48&&s<=57)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){n=e,r=e.length,i=o=a=-1,v(),y();var t=l();return d("EOF"),t}},5805:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4631));function o(e,t){var n=t.target||t.srcElement;if(n instanceof HTMLElement&&"SPAN"===(null==n?void 0:n.nodeName)){var r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&l(e)}}function a(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&u(e):e.state.jump.cursor=null}function s(e,t){if(!e.state.jump.isHoldingModifier&&t.key===(c?"Meta":"Control")){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&l(e);var n=function(a){a.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&u(e),i.default.off(document,"keyup",n),i.default.off(document,"click",r),e.off("mousedown",o))},r=function(t){var n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)},o=function(t,n){e.state.jump.destination&&(n.codemirrorIgnore=!0)};i.default.on(document,"keyup",n),i.default.on(document,"click",r),e.on("mousedown",o)}}i.default.defineOption("jump",!1,(function(e,t,n){if(n&&n!==i.default.Init){var r=e.state.jump.onMouseOver;i.default.off(e.getWrapperElement(),"mouseover",r);var c=e.state.jump.onMouseOut;i.default.off(e.getWrapperElement(),"mouseout",c),i.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){var l=e.state.jump={options:t,onMouseOver:o.bind(null,e),onMouseOut:a.bind(null,e),onKeyDown:s.bind(null,e)};i.default.on(e.getWrapperElement(),"mouseover",l.onMouseOver),i.default.on(e.getWrapperElement(),"mouseout",l.onMouseOut),i.default.on(document,"keydown",l.onKeyDown)}}));var c="undefined"!=typeof navigator&&navigator&&-1!==navigator.appVersion.indexOf("Mac");function l(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,n=e.coordsChar(t),r=e.getTokenAt(n,!0),i=e.state.jump.options,o=i.getDestination||e.getHelper(n,"jump");if(o){var a=o(r,i,e);if(a){var s=e.markText({line:n.line,ch:r.start},{line:n.line,ch:r.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=s,e.state.jump.destination=a}}}}function u(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}},88:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(2188),o=r(n(9655));t.default=function(e){var t=i.onlineParser({eatWhitespace:function(e){return e.eatWhile(i.isIgnored)},lexRules:i.LexRules,parseRules:i.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o.default,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}}},9655:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}},6094:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4631)),o=n(875),a=r(n(3285)),s=r(n(8984));i.default.registerHelper("hint","graphql-variables",(function(e,t){var n=e.getCursor(),r=e.getTokenAt(n),c=function(e,t,n){var r="Invalid"===t.state.kind?t.state.prevState:t.state,i=r.kind,c=r.step;if("Document"===i&&0===c)return s.default(e,t,[{text:"{"}]);var l=n.variableToType;if(l){var u=function(e,t){var n={type:null,fields:null};return a.default(t,(function(t){if("Variable"===t.kind)n.type=e[t.name];else if("ListValue"===t.kind){var r=n.type?o.getNullableType(n.type):void 0;n.type=r instanceof o.GraphQLList?r.ofType:null}else if("ObjectValue"===t.kind){var i=n.type?o.getNamedType(n.type):void 0;n.fields=i instanceof o.GraphQLInputObjectType?i.getFields():null}else if("ObjectField"===t.kind){var a=t.name&&n.fields?n.fields[t.name]:null;n.type=a&&a.type}})),n}(l,t.state);if("Document"===i||"Variable"===i&&0===c){var p=Object.keys(l);return s.default(e,t,p.map((function(e){return{text:'"'+e+'": ',type:l[e]}})))}if(("ObjectValue"===i||"ObjectField"===i&&0===c)&&u.fields){var f=Object.keys(u.fields).map((function(e){return u.fields[e]}));return s.default(e,t,f.map((function(e){return{text:'"'+e.name+'": ',type:e.type,description:e.description}})))}if("StringValue"===i||"NumberValue"===i||"BooleanValue"===i||"NullValue"===i||"ListValue"===i&&1===c||"ObjectField"===i&&2===c||"Variable"===i&&2===c){var d=u.type?o.getNamedType(u.type):void 0;if(d instanceof o.GraphQLInputObjectType)return s.default(e,t,[{text:"{"}]);if(d instanceof o.GraphQLEnumType){var h=d.getValues();return s.default(e,t,h.map((function(e){return{text:'"'+e.name+'"',type:d,description:e.description}})))}if(d===o.GraphQLBoolean)return s.default(e,t,[{text:"true",type:o.GraphQLBoolean,description:"Not false."},{text:"false",type:o.GraphQLBoolean,description:"Not true."}])}}}(n,r,t);return c&&c.list&&c.list.length>0&&(c.from=i.default.Pos(c.from.line,c.from.ch),c.to=i.default.Pos(c.to.line,c.to.ch),i.default.signal(e,"hasCompletion",e,c,r)),c}))},373:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(4631)),a=n(875),s=i(n(1277));function c(e,t){if(!e||!t)return[];if(e instanceof a.GraphQLNonNull)return"Null"===t.kind?[[t,'Type "'+e+'" is non-nullable and cannot be null.']]:c(e.ofType,t);if("Null"===t.kind)return[];if(e instanceof a.GraphQLList){var n=e.ofType;return"Array"===t.kind?u(t.values||[],(function(e){return c(n,e)})):c(n,t)}if(e instanceof a.GraphQLInputObjectType){if("Object"!==t.kind)return[[t,'Type "'+e+'" must be an Object.']];var r=Object.create(null),i=u(t.members,(function(t){var n,i=null===(n=null==t?void 0:t.key)||void 0===n?void 0:n.value;r[i]=!0;var o=e.getFields()[i];return o?c(o?o.type:void 0,t.value):[[t.key,'Type "'+e+'" does not have a field "'+i+'".']]}));return Object.keys(e.getFields()).forEach((function(n){r[n]||e.getFields()[n].type instanceof a.GraphQLNonNull&&i.push([t,'Object of type "'+e+'" is missing required field "'+n+'".'])})),i}return"Boolean"===e.name&&"Boolean"!==t.kind||"String"===e.name&&"String"!==t.kind||"ID"===e.name&&"Number"!==t.kind&&"String"!==t.kind||"Float"===e.name&&"Number"!==t.kind||"Int"===e.name&&("Number"!==t.kind||(0|t.value)!==t.value)||(e instanceof a.GraphQLEnumType||e instanceof a.GraphQLScalarType)&&("String"!==t.kind&&"Number"!==t.kind&&"Boolean"!==t.kind&&"Null"!==t.kind||null==(o=e.parseValue(t.value))||o!=o)?[[t,'Expected value of type "'+e+'".']]:[];var o}function l(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function u(e,t){return Array.prototype.concat.apply([],e.map(t))}o.default.registerHelper("lint","graphql-variables",(function(e,t,n){if(!e)return[];var i;try{i=s.default(e)}catch(e){if(e.stack)throw e;return[l(n,e,e.message)]}var o=t.variableToType;return o?function(e,t,n){var i=[];return n.members.forEach((function(n){var o;if(n){var a=null===(o=n.key)||void 0===o?void 0:o.value,s=t[a];s?c(s,n.value).forEach((function(t){var n=r(t,2),o=n[0],a=n[1];i.push(l(e,o,a))})):i.push(l(e,n.key,'Variable "$'+a+'" does not appear in any GraphQL query.'))}})),i}(n,o,i):[]}))},9677:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4631)),o=n(2188);function a(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}i.default.defineMode("graphql-variables",(function(e){var t=o.onlineParser({eatWhitespace:function(e){return e.eatSpace()},lexRules:s,parseRules:c,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var s={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[o.p("{"),o.list("Variable",o.opt(o.p(","))),o.p("}")],Variable:[l("variable"),o.p(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[o.t("Number","number")],StringValue:[o.t("String","string")],BooleanValue:[o.t("Keyword","builtin")],NullValue:[o.t("Keyword","keyword")],ListValue:[o.p("["),o.list("Value",o.opt(o.p(","))),o.p("]")],ObjectValue:[o.p("{"),o.list("ObjectField",o.opt(o.p(","))),o.p("}")],ObjectField:[l("attribute"),o.p(":"),"Value"]};function l(e){return{style:e,match:function(e){return"String"===e.kind},update:function(e,t){e.name=t.value.slice(1,-1)}}}},4504:function(e,t,n){!function(e){"use strict";var t={},n=/[^\s\u00a0]/,r=e.Pos,i=e.cmpPos;function o(e){var t=e.search(n);return-1==t?0:t}function a(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=t);for(var n=this,i=1/0,o=this.listSelections(),a=null,s=o.length-1;s>=0;s--){var c=o[s].from(),l=o[s].to();c.line>=i||(l.line>=i&&(l=r(i,0)),i=c.line,null==a?n.uncomment(c,l,e)?a="un":(n.lineComment(c,l,e),a="line"):"un"==a?n.uncomment(c,l,e):n.lineComment(c,l,e))}})),e.defineExtension("lineComment",(function(e,i,s){s||(s=t);var c,l,u=this,p=a(u,e),f=u.getLine(e.line);if(null!=f&&(c=e,l=f,!/\bstring\b/.test(u.getTokenTypeAt(r(c.line,0)))||/^[\'\"\`]/.test(l))){var d=s.lineComment||p.lineComment;if(d){var h=Math.min(0!=i.ch||i.line==e.line?i.line+1:i.line,u.lastLine()+1),m=null==s.padding?" ":s.padding,v=s.commentBlankLines||e.line==i.line;u.operation((function(){if(s.indent){for(var t=null,i=e.line;ia.length)&&(t=a)}for(i=e.line;if||c.operation((function(){if(0!=s.fullLines){var t=n.test(c.getLine(f));c.replaceRange(d+p,r(f)),c.replaceRange(u+d,r(e.line,0));var a=s.blockCommentLead||l.blockCommentLead;if(null!=a)for(var h=e.line+1;h<=f;++h)(h!=f||t)&&c.replaceRange(a+d,r(h,0))}else{var m=0==i(c.getCursor("to"),o),v=!c.somethingSelected();c.replaceRange(p,o),m&&c.setSelection(v?o:c.getCursor("from"),o),c.replaceRange(u,e)}}))}}else(s.lineComment||l.lineComment)&&0!=s.fullLines&&c.lineComment(e,o,s)})),e.defineExtension("uncomment",(function(e,i,o){o||(o=t);var s,c=this,l=a(c,e),u=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,c.lastLine()),p=Math.min(e.line,u),f=o.lineComment||l.lineComment,d=[],h=null==o.padding?" ":o.padding;e:if(f){for(var m=p;m<=u;++m){var v=c.getLine(m),y=v.indexOf(f);if(y>-1&&!/comment/.test(c.getTokenTypeAt(r(m,y+1)))&&(y=-1),-1==y&&n.test(v))break e;if(y>-1&&n.test(v.slice(0,y)))break e;d.push(v)}if(c.operation((function(){for(var e=p;e<=u;++e){var t=d[e-p],n=t.indexOf(f),i=n+f.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),s=!0,c.replaceRange("",r(e,n),r(e,i)))}})),s)return!0}var g=o.blockCommentStart||l.blockCommentStart,b=o.blockCommentEnd||l.blockCommentEnd;if(!g||!b)return!1;var E=o.blockCommentLead||l.blockCommentLead,T=c.getLine(p),w=T.indexOf(g);if(-1==w)return!1;var _=u==p?T:c.getLine(u),k=_.indexOf(b,u==p?w+g.length:0),S=r(p,w+1),O=r(u,k+1);if(-1==k||!/comment/.test(c.getTokenTypeAt(S))||!/comment/.test(c.getTokenTypeAt(O))||c.getRange(S,O,"\n").indexOf(b)>-1)return!1;var C=T.lastIndexOf(g,e.ch),x=-1==C?-1:T.slice(0,e.ch).indexOf(b,C+g.length);if(-1!=C&&-1!=x&&x+b.length!=e.ch)return!1;x=_.indexOf(b,i.ch);var N=_.slice(i.ch).lastIndexOf(g,x-i.ch);return C=-1==x||-1==N?-1:i.ch+N,(-1==x||-1==C||C==i.ch)&&(c.operation((function(){c.replaceRange("",r(u,k-(h&&_.slice(k-h.length,k)==h?h.length:0)),r(u,k+b.length));var e=w+g.length;if(h&&T.slice(e,e+h.length)==h&&(e+=h.length),c.replaceRange("",r(p,w),r(p,e)),E)for(var t=p+1;t<=u;++t){var i=c.getLine(t),o=i.indexOf(E);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+E.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),c.replaceRange("",r(t,o),r(t,a))}}})),!0)}))}(n(4631))},5292:function(e,t,n){!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,c=this;function l(t){if("string"==typeof t)p.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus(),o.onClose&&o.onClose(a)}}var u,p=a.getElementsByTagName("input")[0];return p?(p.focus(),o.value&&(p.value=o.value,!1!==o.selectValueOnOpen&&p.select()),o.onInput&&e.on(p,"input",(function(e){o.onInput(e,p.value,l)})),o.onKeyUp&&e.on(p,"keyup",(function(e){o.onKeyUp(e,p.value,l)})),e.on(p,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,p.value,l)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(p.blur(),e.e_stop(t),l()),13==t.keyCode&&i(p.value,t))})),!1!==o.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&l()}))):(u=a.getElementsByTagName("button")[0])&&(e.on(u,"click",(function(){l(),c.focus()})),!1!==o.closeOnBlur&&e.on(u,"blur",l),u.focus()),l})),e.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),c=!1,l=this,u=1;function p(){c||(c=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus())}s[0].focus();for(var f=0;f",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))}));var i={Backspace:function(t){var i=s(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),c=0;c=0;c--){var p=a[c].head;t.replaceRange("",n(p.line,p.ch-1),n(p.line,p.ch+1),"+delete")}},Enter:function(t){var n=s(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a1&&h.indexOf(i)>=0&&t.getRange(n(T.line,T.ch-2),T)==i+i){if(T.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(T.line,T.ch-2))))return e.Pass;b="addFour"}else if(m){var _=0==T.ch?" ":t.getRange(n(T.line,T.ch-1),T);if(e.isWordChar(w)||_==i||e.isWordChar(_))return e.Pass;b="both"}else{if(!y||!(0===w.length||/\s/.test(w)||d.indexOf(w)>-1))return e.Pass;b="both"}else b=m&&p(t,T)?"both":h.indexOf(i)>=0&&t.getRange(T,n(T.line,T.ch+3))==i+i+i?"skipThree":"skip";if(f){if(f!=b)return e.Pass}else f=b}var k=u%2?a.charAt(u-1):i,S=u%2?i:a.charAt(u+1);t.operation((function(){if("skip"==f)c(t,1);else if("skipThree"==f)c(t,3);else if("surround"==f){for(var e=t.getSelections(),n=0;n0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,i)}function l(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function u(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function p(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")}(n(4631))},4328:function(e,t,n){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),c=t.ch-1,l=o&&o.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var u=i(o),p=!l&&c>=0&&u.test(s.text.charAt(c))&&r[s.text.charAt(c)]||u.test(s.text.charAt(c+1))&&r[s.text.charAt(++c)];if(!p)return null;var f=">"==p.charAt(1)?1:-1;if(o&&o.strict&&f>0!=(c==t.ch))return null;var d=e.getTokenTypeAt(n(t.line,c+1)),h=a(e,n(t.line,c+(f>0?1:0)),f,d,o);return null==h?null:{from:n(t.line,c),to:h&&h.pos,match:h&&h.ch==p.charAt(0),forward:f>0}}function a(e,t,o,a,s){for(var c=s&&s.maxScanLineLength||1e4,l=s&&s.maxScanLines||1e3,u=[],p=i(s),f=o>0?Math.min(t.line+l,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-l),d=t.line;d!=f;d+=o){var h=e.getLine(d);if(h){var m=o>0?0:h.length-1,v=o>0?h.length:-1;if(!(h.length>c))for(d==t.line&&(m=t.ch-(o<0?1:0));m!=v;m+=o){var y=h.charAt(m);if(p.test(y)&&(void 0===a||(e.getTokenTypeAt(n(d,m+1))||"")==(a||""))){var g=r[y];if(g&&">"==g.charAt(1)==o>0)u.push(y);else{if(!u.length)return{pos:n(d,m),ch:y};u.pop()}}}}}return d-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,c=[],l=e.listSelections(),u=0;uu))l=u,s="{",c="}";else{if(null==p)return;l=p,s="[",c="]"}var f,d,h=1,m=t.lastLine();e:for(var v=i;v<=m;++v)for(var y=t.getLine(v),g=v==i?l:0;;){var b=y.indexOf(s,g),E=y.indexOf(c,g);if(b<0&&(b=y.length),E<0&&(E=y.length),(g=Math.min(b,E))==y.length)break;if(t.getTokenTypeAt(e.Pos(v,g+1))==r)if(g==b)++h;else if(!--h){f=v,d=g;break e}++g}if(null!=f&&i!=f)return{from:e.Pos(i,l),to:e.Pos(f,d)}})),e.registerHelper("fold","import",(function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var c=r(s.line+1);if(null==c)break;s=c.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}})),e.registerHelper("fold","include",(function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}}))}(n(4631))},8657:function(e,t,n){!function(e){"use strict";function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=r(t,i,"minFoldSize");function c(e){var r=a(t,n);if(!r||r.to.line-r.from.linet.firstLine();)n=e.Pos(n.line-1,0),l=c(!1);if(l&&!l.cleared&&"unfold"!==o){var u=function(e,t,n){var i=r(e,t,"widget");if("function"==typeof i&&(i=i(n.from,n.to)),"string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}(t,i,l);e.on(u,"mousedown",(function(t){p.clear(),e.e_preventDefault(t)}));var p=t.markText(l.from,l.to,{replacedWith:u,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});p.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,l.from,l.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n=l){if(f&&a&&f.test(a.className))return;o=i(s.indicatorOpen)}}(o||a)&&e.setGutterMarker(n,s.gutter,o)}))}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function s(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){o(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function c(e,n,i){var o=e.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var s=r(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function l(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){s(e)}),n.foldOnChangeTimeSpan||600)}}function u(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?s(e):e.operation((function(){n.fromt.to&&(o(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function p(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var i=0;il.clientHeight+1;if(setTimeout((function(){x=a.getScrollInfo()})),N.bottom-C>0){var D=N.bottom-N.top;if(y.top-(y.bottom-N.top)-D>0)l.style.top=(b=y.top-D-w)+"px",E=!1;else if(D>C){l.style.height=C-5+"px",l.style.top=(b=y.bottom-N.top-w)+"px";var L=a.getCursor();n.from.ch!=L.ch&&(y=a.cursorCoords(L),l.style.left=(g=y.left-T)+"px",N=l.getBoundingClientRect())}}var I,P=N.right-O;if(A&&(P+=a.display.nativeBarWidth),P>0&&(N.right-N.left>O&&(l.style.width=O-5+"px",P-=N.right-N.left-O),l.style.left=(g=y.left-P-T)+"px"),A)for(var R=l.firstChild;R;R=R.nextSibling)R.style.paddingRight=a.display.nativeBarWidth+"px";a.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return i}(t,{moveFocus:function(e,t){r.changeActive(r.selectedHint+e,t)},setFocus:function(e){r.changeActive(e)},menuSize:function(){return r.screenAmount()},length:p.length,close:function(){t.close()},pick:function(){r.pick()},data:n})),t.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){I=setTimeout((function(){t.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(I)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect();x||(x=a.getScrollInfo());var r=b+x.top-e.top,i=r-(c.pageYOffset||(s.documentElement||s.body).scrollTop);if(E||(i+=l.offsetHeight),i<=n.top||i>=n.bottom)return t.close();l.style.top=r+"px",l.style.left=g+x.left-e.left+"px"}),e.on(l,"dblclick",(function(e){var t=o(l,e.target||e.srcElement);t&&null!=t.hintId&&(r.changeActive(t.hintId),r.pick())})),e.on(l,"click",(function(e){var n=o(l,e.target||e.srcElement);n&&null!=n.hintId&&(r.changeActive(n.hintId),t.options.completeOnSingleClick&&r.pick())})),e.on(l,"mousedown",(function(){setTimeout((function(){a.focus()}),20)}));var M=this.getSelectedHintRange();return 0===M.from&&0===M.to||this.scrollToActive(),e.signal(n,"select",p[this.selectedHint],l.childNodes[this.selectedHint]),!0}function s(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],o=this;this.cm.operation((function(){r.hint?r.hint(o.cm,t,r):o.cm.replaceRange(i(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),o.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(r(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),i=this.cm.getLine(t.line);if(t.line!=this.startPos.line||i.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" CodeMirror-hint-active",""),r.removeAttribute("aria-selected")),(r=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",r.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",r.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],r=this.hints.firstChild;t.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r0?t(e):i(o+1)}))}(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",(function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(n(4631))},3256:function(e,t,n){!function(e){"use strict";var t="CodeMirror-lint-markers";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(t,r,i,o){var a=function(t,n,r){var i=document.createElement("div");function o(t){if(!i.parentNode)return e.off(document,"mousemove",o);i.style.top=Math.max(0,t.clientY-i.offsetHeight-5)+"px",i.style.left=t.clientX+5+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),e.on(document,"mousemove",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}(t,r,i);function s(){var t;e.off(o,"mouseout",s),a&&((t=a).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout((function(){n(t)}),600)),a=null)}var c=setInterval((function(){if(a)for(var e=o;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){s();break}}if(!a)return clearInterval(c)}),400);e.on(o,"mouseout",s)}function i(e,t,n){for(var i in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},o)this.options[i]=o[i];for(var i in t)o.hasOwnProperty(i)?null!=t[i]&&(this.options[i]=t[i]):t.options||(this.linterOptions[i]=t[i]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,s=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),l=[],u=0;u-1)&&d.push(e.message)}));for(var h=null,m=o.hasGutter&&document.createDocumentFragment(),v=0;v1,l.tooltips)),l.highlightLines&&e.addLineClass(p,"wrap","CodeMirror-lint-line-"+h)}}l.onUpdateLinting&&l.onUpdateLinting(n,u,e)}}function p(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){l(e)}),t.options.delay))}e.defineOption("lint",!1,(function(n,r,o){if(o&&o!=e.Init&&(a(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",p),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var s=n.getOption("gutters"),c=!1,u=0;u '+e.phrase("(Use line:column or scroll% syntax)")+""}(e),e.phrase("Jump to line:"),n.line+1+":"+n.ch,(function(r){var i;if(r)if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(r))e.setCursor(t(e,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(r)){var o=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=n.line+o+1),e.setCursor(o-1,n.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(r))&&e.setCursor(t(e,i[1]),n.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}(n(4631),n(5292))},1699:function(e,t,n){!function(e){"use strict";function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:r(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function a(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function s(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=a(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function c(e,t,n){t.queryText=n,t.query=s(n),e.removeOverlay(t.overlay,r(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function l(t,r,i,a){var s=n(t);if(s.query)return u(t,r);var l=t.getSelection()||s.lastQuery;if(l instanceof RegExp&&"x^"==l.source&&(l=null),i&&t.openDialog){var f=null,h=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(c(t,s,n),s.posFrom=s.posTo=t.getCursor()),f&&(f.style.opacity=1),u(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((f=r).style.opacity=.4)})))};(function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){p(e)},onKeyDown:i,bottom:e.options.search.bottom})})(t,d(t),l,h,(function(r,i){var o=e.keyName(r),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(r),c(t,n(t),i),t.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(r),h(i,r))})),a&&l&&(c(t,s,l),u(t,r))}else o(t,d(t),"Search for:",l,(function(e){e&&!s.query&&t.operation((function(){c(t,s,e),s.posFrom=s.posTo=t.getCursor(),u(t,r)}))}))}function u(t,r,o){t.operation((function(){var a=n(t),s=i(t,a.query,r?a.posFrom:a.posTo);(s.find(r)||(s=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))}))}function p(e){e.operation((function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function f(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;iu);p++){var f=e.getLine(l++);s=null==s?f:s+"\n"+f}c*=2,t.lastIndex=n.ch;var d=t.exec(s);if(d){var h=s.slice(0,d.index).split("\n"),m=d[0].split("\n"),v=n.line+h.length-1,y=h[h.length-1].length;return{from:r(v,y),to:r(v+m.length-1,1==m.length?y+m[0].length:m[m.length-1].length),match:d}}}}function c(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function l(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var l=e.getLine(o),u=c(l,t,a<0?0:l.length-a);if(u)return{from:r(o,u.index),to:r(o,u.index+u[0].length),match:u}}}function u(e,t,n){if(!o(t))return l(e,t,n);t=i(t,"gm");for(var a,s=1,u=e.getLine(n.line).length-n.ch,p=n.line,f=e.firstLine();p>=f;){for(var d=0;d=f;d++){var h=e.getLine(p--);a=null==a?h:h+"\n"+a}s*=2;var m=c(a,t,u);if(m){var v=a.slice(0,m.index).split("\n"),y=m[0].split("\n"),g=p+v.length,b=v[v.length-1].length;return{from:r(g,b),to:r(g+y.length-1,1==y.length?b+y[0].length:y[y.length-1].length),match:m}}}}function p(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,c=s(i).split(/\r|\n\r?/);e:for(var l=o.line,u=o.ch,f=e.lastLine()+1-c.length;l<=f;l++,u=0){var d=e.getLine(l).slice(u),h=s(d);if(1==c.length){var m=h.indexOf(c[0]);if(-1==m)continue e;return o=p(d,h,m,s)+u,{from:r(l,p(d,h,m,s)+u),to:r(l,p(d,h,m+c[0].length,s)+u)}}var v=h.length-c[0].length;if(h.slice(v)==c[0]){for(var y=1;y=f;l--,u=-1){var d=e.getLine(l);u>-1&&(d=d.slice(0,u));var h=s(d);if(1==c.length){var m=h.lastIndexOf(c[0]);if(-1==m)continue e;return{from:r(l,p(d,h,m,s)),to:r(l,p(d,h,m+c[0].length,s))}}var v=c[c.length-1];if(h.slice(0,v.length)==v){var y=1;for(o=l-c.length+1;y(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new h(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new h(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(4631))},3412:function(e,t,n){!function(e){"use strict";var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy((function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",c=r.ch,l=c,u=i<0?0:o.length,p=0;l!=u;l+=i,p++){var f=o.charAt(i<0?l-1:l),d="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==d&&f.toUpperCase()==f&&(d="W"),"start"==s)"o"!=d?(s="in",a=d):c=l+i;else if("in"==s&&a!=d){if("w"==a&&"W"==d&&i<0&&l--,"W"==a&&"w"==d&&i>0){if(l==c+1){a="w";continue}l--}break}}return n(r.line,l)}(t.doc,i.head,r):r<0?i.from():i.to()}))}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;io.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;s--){var l=r[i[s]];if(!(c&&e.cmpPos(l.head,c)>0)){var u=o(t,l.head);c=u.from,t.replaceRange(n(u.word),u.from,u.to)}}}))}function f(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function d(e,t){var r=f(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){c(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!c(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,l(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,l(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;so?i.push(l,u):i.length&&(i[i.length-1]=u),o=u}t.operation((function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],c=s.to().line+1,l=s.from().line;0!=s.to().ch||s.empty()||c--,c=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),c=e.countColumn(s,null,t.getOption("tabSize")),l=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&c%i==0){var u=new n(a.line,e.findColumn(s,c-i,i));u.ch!=a.ch&&(l=u)}t.replaceRange("",l,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){p(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){p(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){d(e,!0)},t.findUnderPrevious=function(e){d(e,!1)},t.findAllUnder=function(e){var t=f(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var h=e.keyMap;h.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(h.macSublime),h.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(h.pcSublime);var m=h.default==h.macDefault;h.sublime=m?h.macSublime:h.pcSublime}(n(4631),n(2095),n(4328))},4631:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),c=!o&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\//.test(e),p=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),g=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),E=/win/i.test(t),T=p&&e.match(/Version\/(\d*\.\d*)/);T&&(T=Number(T[1])),T&&T>=15&&(p=!1,c=!0);var w=g&&(l||p&&(null==T||T<12.11)),_=n||a&&s>=9;function k(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,O=function(e,t){var n=e.className,r=k(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function C(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function x(e,t){return C(e).appendChild(t)}function N(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?R=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(R=function(e){try{e.select()}catch(e){}});var V=function(){this.id=null,this.f=null,this.time=0,this.handler=M(this.onTimeout,this)};function Q(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var z=[""];function $(e){for(;z.length<=e;)z.push(H(z)+" ");return z[e]}function H(e){return e[e.length-1]}function W(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||X.test(e))}function ee(e,t){return t?!!(t.source.indexOf("\\w")>-1&&Z(e))||t.test(e):Z(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function re(e){return e.charCodeAt(0)>=768&&ne.test(e)}function ie(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ae=null;function se(e,t,n){var r;ae=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ae=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ae=i)}return null!=r?r:ae}var ce=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var c,l="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var u=a.length,p=[],f=0;f-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function he(e,t){var n=fe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function ge(e){e.prototype.on=function(e,t){pe(this,e,t)},e.prototype.off=function(e,t){de(this,e,t)}}function be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ee(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Te(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function we(e){be(e),Ee(e)}function _e(e){return e.target||e.srcElement}function ke(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),g&&e.ctrlKey&&1==t&&(t=3),t}var Se,Oe,Ce=function(){if(a&&s<9)return!1;var e=N("div");return"draggable"in e||"dragDrop"in e}();function xe(e){if(null==Se){var t=N("span","​");x(e,N("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Se=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Se?N("span","​"):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ne(e){if(null!=Oe)return Oe;var t=x(e,document.createTextNode("AخA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return C(e),!(!n||n.left==n.right)&&(Oe=r.right-n.right<3)}var Ae,De=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Le=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ie="oncopy"in(Ae=N("div"))||(Ae.setAttribute("oncopy","return;"),"function"==typeof Ae.oncopy),Pe=null;var Re={},Me={};function je(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Re[e]=t}function Fe(e){if("string"==typeof e&&Me.hasOwnProperty(e))e=Me[e];else if(e&&"string"==typeof e.name&&Me.hasOwnProperty(e.name)){var t=Me[e.name];"string"==typeof t&&(t={name:t}),(e=J(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Fe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Fe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ve(e,t){t=Fe(t);var n=Re[t.name];if(!n)return Ve(e,"text/plain");var r=n(e,t);if(Qe.hasOwnProperty(t.name)){var i=Qe[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Qe={};function Ue(e,t){j(t,Qe.hasOwnProperty(e)?Qe[e]:Qe[e]={})}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ge(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Be(e,t,n){return!e.startState||e.startState(t,n)}var Ke=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function ze(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?et(n,ze(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,ze(e,t.line).text.length)}function ct(e,t){for(var n=[],r=0;r=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.post},Ke.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ke.prototype.backUp=function(e){this.pos-=e},Ke.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ke.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ke.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var lt=function(e,t){this.state=e,this.lookAhead=t},ut=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function pt(e,t,n,r){var i=[e.state.modeGen],o={};Et(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],c=1,l=0;n.state=!0,Et(e,t.text,s.mode,n,(function(e,t){for(var n=c;le&&i.splice(c,1,e,i[c+1],r),c+=2,l=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,c-n,e,"overlay "+t),c=n+2;else for(;ne.options.maxHighlightLength&&qe(e.doc.mode,r.state),o=pt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function dt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ut(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var c=ze(o,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof lt?l.lookAhead:0)<=o.modeFrontier))return s;var u=F(c.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}(e,t,n),a=o>r.first&&ze(r,o-1).stateAfter,s=a?ut.fromSaved(r,a,o):new ut(r,Be(r.mode),o);return r.iter(o,t,(function(n){ht(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ut.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ut.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ut.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ut.fromSaved=function(e,t,n){return t instanceof lt?new ut(e,qe(e.mode,t.state),n,t.lookAhead):new ut(e,qe(e.mode,t),n)},ut.prototype.save=function(e){var t=!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new lt(t,this.maxLookAhead):t};var yt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function gt(e,t,n,r){var i,o,a=e.doc,s=a.mode,c=ze(a,(t=st(a,t)).line),l=dt(e,t.line,n),u=new Ke(c.text,e.options.tabSize,l);for(r&&(o=[]);(r||u.pose.options.maxHighlightLength?(s=!1,a&&ht(e,t,r,p.pos),p.pos=t.length,c=null):c=bt(vt(n,p,r.state,f),o),f){var d=f[0].name;d&&(c="m-"+(c?d+" "+c:d))}if(!s||u!=c){for(;l=t:o.to>t);(r||(r=[])).push(new _t(a,o.from,s?null:o.to))}}return r}(n,i,a),c=function(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;bt)&&(!n||Lt(n,o.marker)<0)&&(n=o.marker)}return n}function jt(e,t,n,r,i){var o=ze(e,t),a=wt&&o.markedSpans;if(a)for(var s=0;s=0&&p<=0||u<=0&&p>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?tt(l.to,n)>=0:tt(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?tt(l.from,r)<=0:tt(l.from,r)<0)))return!0}}}function Ft(e){for(var t;t=Pt(e);)e=t.find(-1,!0).line;return e}function Vt(e,t){var n=ze(e,t),r=Ft(n);return n==r?t:Ye(r)}function Qt(e,t){if(t>e.lastLine())return t;var n,r=ze(e,t);if(!Ut(e,r))return t;for(;n=Rt(r);)r=n.find(1,!0).line;return Ye(r)+1}function Ut(e,t){var n=wt&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var zt=function(e,t,n){this.text=e,Nt(this,t),this.height=n?n(this):1};function $t(e){e.parent=null,xt(e)}zt.prototype.lineNo=function(){return Ye(this)},ge(zt);var Ht={},Wt={};function Yt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Wt:Ht;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Jt(e,t){var n=A("span",null,null,c?"padding-right: .1px":null),r={pre:A("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=Zt,Ne(e.display.measure)&&(a=le(o,e.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[],nn(o,r,ft(e,o,t!=e.display.externalMeasured&&Ye(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=P(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=P(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(xe(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return he(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=P(r.pre.className,r.textClass||"")),r}function Xt(e){var t=N("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Zt(e,t,n,r,i,o,c){if(t){var l,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;il&&p.from<=l);f++);if(p.to>=u)return e(n,r,i,o,a,s,c);e(n,r.slice(0,p.to-l),i,o,null,s,c),o=null,r=r.slice(p.to-l),l=p.to}}}function tn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,c,l,u,p,f,d=i.length,h=0,m=1,v="",y=0;;){if(y==h){c=l=u=s="",f=null,p=null,y=1/0;for(var g=[],b=void 0,E=0;Eh||w.collapsed&&T.to==h&&T.from==h)){if(null!=T.to&&T.to!=h&&y>T.to&&(y=T.to,l=""),w.className&&(c+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&T.from==h&&(u+=" "+w.startStyle),w.endStyle&&T.to==y&&(b||(b=[])).push(w.endStyle,T.to),w.title&&((f||(f={})).title=w.title),w.attributes)for(var _ in w.attributes)(f||(f={}))[_]=w.attributes[_];w.collapsed&&(!p||Lt(p.marker,w)<0)&&(p=T)}else T.from>h&&y>T.from&&(y=T.from)}if(b)for(var k=0;k=d)break;for(var O=Math.min(d,y);;){if(v){var C=h+v.length;if(!p){var x=C>O?v.slice(0,O-h):v;t.addToken(t,x,a?a+c:c,u,h+x.length==y?l:"",s,f)}if(C>=O){v=v.slice(O-h),h=O;break}h=C,u=""}v=i.slice(o,o=n[m++]),a=Yt(n[m++],t.cm.options)}}else for(var N=1;Nn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Dn(e,t,n,r){return Pn(e,In(e,t),n,r)}function Ln(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&o.push((c.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=jn(t.map,n,r),c=o.node,l=o.start,u=o.end,p=o.collapse;if(3==c.nodeType){for(var f=0;f<4;f++){for(;l&&re(t.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+u1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var d;l>0&&(p=r="right"),i=e.options.lineWrapping&&(d=c.getClientRects()).length>1?d["right"==r?d.length-1:0]:c.getBoundingClientRect()}if(a&&s<9&&!l&&(!i||!i.left&&!i.right)){var h=c.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+or(e.display),top:h.top,bottom:h.bottom}:Mn}for(var m=i.top-t.rect.top,v=i.bottom-t.rect.top,y=(m+v)/2,g=t.view.measure.heights,b=0;bt)&&(i=(o=c-s)-1,t>=c&&(a="right")),null!=i){if(r=e[l+2],s==c&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],a="left";if("right"==n&&i==c-s)for(;l=0&&(n=e[i]).left==n.right;i--);return n}function Vn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(c=r.text.length,l="before"):c<=0&&(c=0,l="after"),!s)return a("before"==l?c-1:c,"before"==l);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var p=se(s,c,l),f=ae,d=u(c,p,"before"==l);return null!=f&&(d.other=u(c,f,"before"!=l)),d}function Wn(e,t){var n=0;t=st(e.doc,t),e.options.lineWrapping||(n=or(e.display)*t.ch);var r=ze(e.doc,t.line),i=Gt(r)+kn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Yn(e,t,n,r,i){var o=et(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Jn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Yn(r.first,0,null,-1,-1);var i=Je(r,n),o=r.first+r.size-1;if(i>o)return Yn(r.first+r.size-1,ze(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=ze(r,i);;){var s=tr(e,a,i,t,n),c=Mt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!c)return s;var l=c.find(1);if(l.line==i)return l;a=ze(r,i=l.line)}}function Xn(e,t,n,r){r-=Bn(t);var i=t.text.length,o=oe((function(t){return Pn(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=oe((function(t){return Pn(e,n,t).top>r}),o,i)}}function Zn(e,t,n,r){return n||(n=In(e,t)),Xn(e,t,n,Kn(e,t,Pn(e,n,r),"line").top)}function er(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function tr(e,t,n,r,i){i-=Gt(t);var o=In(e,t),a=Bn(t),s=0,c=t.text.length,l=!0,u=le(t,e.doc.direction);if(u){var p=(e.options.lineWrapping?rr:nr)(e,t,n,o,u,r,i);s=(l=1!=p.level)?p.from:p.to-1,c=l?p.to:p.from-1}var f,d,h=null,m=null,v=oe((function(t){var n=Pn(e,o,t);return n.top+=a,n.bottom+=a,!!er(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,c),y=!1;if(m){var g=r-m.left=E.bottom?1:0}return Yn(n,v=ie(t.text,v,1),d,y,r-f)}function nr(e,t,n,r,i,o,a){var s=oe((function(s){var c=i[s],l=1!=c.level;return er(Hn(e,et(n,l?c.to:c.from,l?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),c=i[s];if(s>0){var l=1!=c.level,u=Hn(e,et(n,l?c.from:c.to,l?"after":"before"),"line",t,r);er(u,o,a,!0)&&u.top>a&&(c=i[s-1])}return c}function rr(e,t,n,r,i,o,a){var s=Xn(e,t,r,a),c=s.begin,l=s.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var u=null,p=null,f=0;f=l||d.to<=c)){var h=Pn(e,r,1!=d.level?Math.min(l,d.to)-1:Math.max(c,d.from)).right,m=hm)&&(u=d,p=m)}}return u||(u=i[i.length-1]),u.froml&&(u={from:u.from,to:l,level:u.level}),u}function ir(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Rn){Rn=N("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Rn.appendChild(document.createTextNode("x")),Rn.appendChild(N("br"));Rn.appendChild(document.createTextNode("x"))}x(e.measure,Rn);var n=Rn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),C(e.measure),n||1}function or(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=N("span","xxxxxxxxxx"),n=N("pre",[t],"CodeMirror-line-like");x(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function ar(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:sr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function sr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function cr(e){var t=ir(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/or(e.display)-3);return function(i){if(Ut(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(c=ze(e.doc,l.line).text).length==l.ch){var u=F(c,c.length,e.options.tabSize)-c.length;l=et(l.line,Math.max(0,Math.round((o-On(e.display).left)/or(e.display))-u))}return l}function pr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)wt&&Vt(e.doc,t)i.viewFrom?hr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)hr(e);else if(t<=i.viewFrom){var o=mr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):hr(e)}else if(n>=i.viewTo){var a=mr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):hr(e)}else{var s=mr(e,t,t,-1),c=mr(e,n,n+r,1);s&&c?(i.view=i.view.slice(0,s.index).concat(on(e,s.lineN,c.lineN)).concat(i.view.slice(c.index)),i.viewTo+=r):hr(e)}var l=i.externalMeasured;l&&(n=i.lineN&&t=r.viewTo)){var o=r.view[pr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==Q(a,n)&&a.push(n)}}}function hr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function mr(e,t,n,r){var i,o=pr(e,t),a=e.display.view;if(!wt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,c=0;c0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Vt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function vr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||c.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(N("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Er(e,t){return e.top-t.top||e.left-t.left}function Tr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=On(e.display),s=a.left,c=Math.max(r.sizerWidth,xn(e)-r.sizer.offsetLeft)-a.right,l="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(N("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?c-e:n)+"px;\n height: "+(r-t)+"px"))}function p(t,n,r){var o,a,p=ze(i,t),f=p.text.length;function d(n,r){return $n(e,et(t,n),"div",p,r)}function h(t,n,r){var i=Zn(e,p,null,t),o="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(p.text.charAt(i.end-1))?2:1),o)[o]}var m=le(p,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?f:r,(function(e,t,i,p){var v="ltr"==i,y=d(e,v?"left":"right"),g=d(t-1,v?"right":"left"),b=null==n&&0==e,E=null==r&&t==f,T=0==p,w=!m||p==m.length-1;if(g.top-y.top<=3){var _=(l?E:b)&&w,k=(l?b:E)&&T?s:(v?y:g).left,S=_?c:(v?g:y).right;u(k,y.top,S-k,y.bottom)}else{var O,C,x,N;v?(O=l&&b&&T?s:y.left,C=l?c:h(e,i,"before"),x=l?s:h(t,i,"after"),N=l&&E&&w?c:g.right):(O=l?h(e,i,"before"):s,C=!l&&b&&T?c:y.right,x=!l&&E&&w?s:g.left,N=l?h(t,i,"after"):c),u(O,y.top,C-O,y.bottom),y.bottom0?t.blinker=setInterval((function(){e.hasFocus()||Or(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function _r(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Sr(e))}function kr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Or(e))}),100)}function Sr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(he(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),c&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),wr(e))}function Or(e,t){e.state.delayingBlurEvent||(e.state.focused&&(he(e,"blur",e,t),e.state.focused=!1,O(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Cr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,c=0;c.005||m<-.005)&&(ie.display.sizerWidth){var y=Math.ceil(f/or(e.display));y>e.display.maxLineLength&&(e.display.maxLineLength=y,e.display.maxLine=l.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function xr(e){if(e.widgets)for(var t=0;t=a&&(o=Je(t,Gt(ze(t,c))-e.wrapper.clientHeight),a=c)}return{from:o,to:Math.max(a,o+1)}}function Ar(e,t){var n=e.display,r=ir(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Nn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Sn(n),c=t.tops-r;if(t.topi+o){var u=Math.min(t.top,(l?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var p=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-p,d=xn(e)-n.gutters.offsetWidth,h=t.right-t.left>d;return h&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.leftd+f-3&&(a.scrollLeft=t.right+(h?0:10)-d),a}function Dr(e,t){null!=t&&(Pr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Lr(e){Pr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ir(e,t,n){null==t&&null==n||Pr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Pr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Rr(e,Wn(e,t.from),Wn(e,t.to),t.margin))}function Rr(e,t,n,r){var i=Ar(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Ir(e,i.scrollLeft,i.scrollTop)}function Mr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||li(e,{top:t}),jr(e,t,!0),n&&li(e),ii(e,100))}function jr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Fr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,fi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Vr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Sn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Cn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Qr=function(e,t,n){this.cm=n;var r=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),pe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),pe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Qr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Qr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Qr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Qr.prototype.zeroWidthHack=function(){var e=g&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},Qr.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}))},Qr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ur=function(){};function qr(e,t){t||(t=Vr(e));var n=e.display.barWidth,r=e.display.barHeight;Gr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Cr(e),Gr(e,Vr(e)),n=e.display.barWidth,r=e.display.barHeight}function Gr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Ur.prototype.update=function(){return{bottom:0,right:0}},Ur.prototype.setScrollLeft=function(){},Ur.prototype.setScrollTop=function(){},Ur.prototype.clear=function(){};var Br={native:Qr,null:Ur};function Kr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&O(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Br[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Fr(e,t):Mr(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var zr=0;function $r(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++zr,markArrays:null},t=e.curOp,an?an.ops.push(t):t.ownsGroup=an={ops:[t],delayedCallbacks:[]}}function Hr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ai(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Yr(e){e.updatedDisplay=e.mustUpdate&&si(e.cm,e.update)}function Jr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Cr(t),e.barMeasure=Vr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Dn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Cn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-xn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Xr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=N("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-kn(e.display))+"px;\n height: "+(t.bottom-t.top+Cn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?et(t.line,t.ch+1,"before"):t,t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Hn(e,t),c=n&&n!=t?Hn(e,n):s,l=Ar(e,i={left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-r,right:Math.max(s.left,c.left),bottom:Math.max(s.bottom,c.bottom)+r}),u=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=l.scrollTop&&(Mr(e,l.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=l.scrollLeft&&(Fr(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(a=!0)),!a)break}return i}(t,st(r,e.scrollToPos.from),st(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a=e.display.viewTo)){var n=+new Date+e.options.workTime,r=dt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?qe(t.mode,r.state):null,c=pt(e,o,r,!0);s&&(r.state=s),o.styles=c.styles;var l=o.styleClasses,u=c.classes;u?o.styleClasses=u:l&&(o.styleClasses=null);for(var p=!a||a.length!=o.styles.length||l!=u&&(!l||!u||l.bgClass!=u.bgClass||l.textClass!=u.textClass),f=0;!p&&fn)return ii(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ei(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==vr(e))return!1;di(e)&&(hr(e),t.dims=ar(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),wt&&(o=Vt(e.doc,o),a=Qt(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;(function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=on(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=on(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,pr(e,n)))),r.viewTo=n})(e,o,a),n.viewOffset=Gt(ze(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=vr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(e){if(e.hasFocus())return null;var t=L();if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return l>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return c&&g&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var l=r.view,u=r.viewFrom,p=0;p-1&&(d=!1),un(e,f,u,n)),d&&(C(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(Ze(e.options,u)))),a=f.node.nextSibling}else{var h=yn(e,f,u,n);o.insertBefore(h,a)}u+=f.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=L()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(u),C(n.cursorDiv),C(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ii(e,400)),n.updateLineNumbers=null,!0}function ci(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=xn(e))r&&(t.visible=Nr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Sn(e.display)-Nn(e),n.top)}),t.visible=Nr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!si(e,t))break;Cr(e);var i=Vr(e);yr(e),qr(e,i),pi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function li(e,t){var n=new ai(e,t);if(si(e,n)){Cr(e),ci(e,n);var r=Vr(e);yr(e),qr(e,r),pi(e,r),n.finish()}}function ui(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",cn(e,"gutterChanged",e)}function pi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Cn(e)+"px"}function fi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=sr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;al.clientWidth,f=l.scrollHeight>l.clientHeight;if(i&&u||o&&f){if(o&&g&&c)e:for(var d=t.target,h=s.view;d!=l;d=d.parentNode)for(var m=0;m=0&&tt(e,r.to())<=0)return n}return-1};var ki=function(e,t){this.anchor=e,this.head=t};function Si(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return tt(e.from(),t.from())})),n=Q(t,i);for(var o=1;o0:c>=0){var l=ot(s.from(),a.from()),u=it(s.to(),a.to()),p=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new ki(p?u:l,p?l:u))}}return new _i(t,n)}function Oi(e,t){return new _i([new ki(e,t||e)],0)}function Ci(e){return e.text?et(e.from.line+e.text.length-1,H(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function xi(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return Ci(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Ci(t).ch-t.to.ch),et(n,r)}function Ni(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,y)}cn(e,"change",e,t)}function Ri(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;as-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Qi(e.done),H(e.done)):e.done.length&&!H(e.done).ranges?H(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),H(e.done)):void 0}(i,i.lastOp==r)))a=H(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,a.to)?a.to=Ci(t):o.changes.push(Vi(e,t));else{var c=H(i.done);for(c&&c.ranges||Gi(e.sel,i.done),o={changes:[Vi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||he(e,"historyAdded")}function qi(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,H(i.done),t))?i.done[i.done.length-1]=t:Gi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Qi(i.undone)}function Gi(e,t){var n=H(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Bi(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Ki(e){if(!e)return null;for(var t,n=0;n-1&&(H(s)[p]=l[p],delete l[p])}}}return r}function Hi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=tt(t,i)<0;o!=tt(n,i)<0?(i=t,t=n):o!=tt(t,n)<0&&(t=n)}return new ki(i,t)}return new ki(n||t,t)}function Wi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),eo(e,new _i([Hi(e.sel.primary(),t,n,i)],0),r)}function Yi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(he(c,"beforeCursorEnter"),c.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!c.atomic)continue;if(n){var p=c.find(r<0?1:-1),f=void 0;if((r<0?u:l)&&(p=so(e,p,-r,p&&p.line==t.line?o:null)),p&&p.line==t.line&&(f=tt(p,n))&&(r<0?f<0:f>0))return oo(e,p,t,r,i)}var d=c.find(r<0?-1:1);return(r<0?l:u)&&(d=so(e,d,r,d.line==t.line?o:null)),d?oo(e,d,t,r,i):null}}return t}function ao(e,t,n,r,i){var o=r||1;return oo(e,t,n,o,i)||!i&&oo(e,t,n,o,!0)||oo(e,t,n,-o,i)||!i&&oo(e,t,n,-o,!0)||(e.cantEdit=!0,et(e.first,0))}function so(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?st(e,et(t.line-1)):null:n>0&&t.ch==(r||ze(e,t.line)).text.length?t.line0)){var u=[c,1],p=tt(l.from,s.from),f=tt(l.to,s.to);(p<0||!a.inclusiveLeft&&!p)&&u.push({from:l.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)po(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else po(e,t)}}function po(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=Ni(e,t);Ui(e,t,n,e.cm?e.cm.curOp.id:NaN),mo(e,t,n,Ot(e,t));var r=[];Ri(e,(function(e,n){n||-1!=Q(r,e.history)||(bo(e.history,t),r.push(e.history)),mo(e,t,null,Ot(e,t))}))}}function fo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,c="undo"==t?o.undone:o.done,l=0;l=0;--d){var h=f(d);if(h)return h.v}}}}function ho(e,t){if(0!=t&&(e.first+=t,e.sel=new _i(W(e.sel.ranges,(function(e){return new ki(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){fr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:et(o,ze(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=$e(e,t.from,t.to),n||(n=Ni(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,c=o.line;e.options.lineWrapping||(c=Ye(Ft(ze(r,o.line))),r.iter(c,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ve(e),Pi(r,t,n,cr(e)),e.options.lineWrapping||(r.iter(c,o.line+t.text.length,(function(e){var t=Bt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=ze(e,r).stateAfter;if(i&&(!(i instanceof lt)||r+i.lookAhead1||!(this.children[0]instanceof To))){var s=[];this.collapse(s),this.children=[new To(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=A("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(jt(e,t.line,t,n,o)||t.line!=n.line&&jt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");wt=!0}o.addToHistory&&Ui(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,c=t.line,l=e.cm;if(e.iter(c,n.line+1,(function(r){l&&o.collapsed&&!l.options.lineWrapping&&Ft(r)==l.display.maxLine&&(s=!0),o.collapsed&&c!=t.line&&We(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new _t(o,c==t.line?t.ch:null,c==n.line?n.ch:null),e.cm&&e.cm.curOp),++c})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Ut(e,t)&&We(t,0)})),o.clearOnEnter&&pe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Tt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++So,o.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),o.collapsed)fr(l,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)dr(l,u,"text");o.atomic&&ro(l.doc),cn(l,"markerAdded",l,o)}return o}Oo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&$r(e),ye(this,"clear")){var n=this.find();n&&cn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&fr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ro(e.doc)),e&&cn(e,"markerCleared",e,this,r,i),t&&Hr(e),this.parent&&this.parent.clear()}},Oo.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;c--)uo(this,r[c]);s?Zi(this,s):this.cm&&Lr(this.cm)})),undo:ri((function(){fo(this,"undo")})),redo:ri((function(){fo(this,"redo")})),undoSelection:ri((function(){fo(this,"undo",!0)})),redoSelection:ri((function(){fo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=st(this,e),t=st(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=c.to||null==c.from&&i!=e.line||null!=c.from&&i==t.line&&c.from>=t.ch||n&&!n(c.marker)||r.push(c.marker.parent||c.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n})),st(this,et(n,t))},indexFromPos:function(e){var t=(e=st(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var p=e.dataTransfer.getData("Text");if(p){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),to(t.doc,Oi(n,n)),f)for(var d=0;d=0;t--)vo(e.doc,"",r[t].from,r[t].to,"+delete");Lr(e)}))}function Zo(e,t,n){var r=ie(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ea(e,t,n){var r=Zo(e,t.ch,n);return null==r?null:new et(t.line,r,n<0?"after":"before")}function ta(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=le(n,t.doc.direction);if(o){var a,s=i<0?H(o):o[0],c=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var l=In(t,n);a=i<0?n.text.length-1:0;var u=Pn(t,l,a).top;a=oe((function(e){return Pn(t,l,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=Zo(n,a,1))}else a=i<0?s.to:s.from;return new et(r,a,c)}}return new et(r,i<0?n.text.length:0,i<0?"before":"after")}Bo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Bo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Bo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Bo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Bo.default=g?Bo.macDefault:Bo.pcDefault;var na={selectAll:co,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return Xo(e,(function(t){if(t.empty()){var n=ze(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new et(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),et(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=ze(e.doc,i.line-1).text;a&&(i=new et(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),et(i.line-1,a.length-1),i,"+transpose"))}n.push(new ki(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return ei(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(tt((i=l.ranges[i]).from(),t)<0||t.xRel>0)&&(tt(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,l=ti(e,(function(t){c&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:kr(e)),de(i.wrapper.ownerDocument,"mouseup",l),de(i.wrapper.ownerDocument,"mousemove",u),de(i.scroller,"dragstart",p),de(i.scroller,"drop",l),o||(be(t),r.addNew||Wi(e.doc,n,null,null,r.extend),c&&!f||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},p=function(){return o=!0};c&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,pe(i.wrapper.ownerDocument,"mouseup",l),pe(i.wrapper.ownerDocument,"mousemove",u),pe(i.scroller,"dragstart",p),pe(i.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&kr(e);var i=e.display,o=e.doc;be(t);var s,c,l=o.sel,u=l.ranges;if(r.addNew&&!r.extend?(c=o.sel.contains(n),s=c>-1?u[c]:new ki(n,n)):(s=o.sel.primary(),c=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new ki(n,n)),n=ur(e,t,!0,!0),c=-1;else{var p=ga(e,n,r.unit);s=r.extend?Hi(s,p.anchor,p.head,r.extend):p}r.addNew?-1==c?(c=u.length,eo(o,Si(e,u.concat([s]),c),{scroll:!1,origin:"*mouse"})):u.length>1&&u[c].empty()&&"char"==r.unit&&!r.extend?(eo(o,Si(e,u.slice(0,c).concat(u.slice(c+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Ji(o,c,s,G):(c=0,eo(o,new _i([s],0),G),l=o.sel);var f=n;function d(t){if(0!=tt(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,u=F(ze(o,n.line).text,n.ch,a),p=F(ze(o,t.line).text,t.ch,a),d=Math.min(u,p),h=Math.max(u,p),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var y=ze(o,m).text,g=K(y,d,a);d==h?i.push(new ki(et(m,g),et(m,g))):y.length>g&&i.push(new ki(et(m,g),et(m,K(y,h,a))))}i.length||i.push(new ki(n,n)),eo(o,Si(e,l.ranges.slice(0,c).concat(i),c),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,E=s,T=ga(e,t,r.unit),w=E.anchor;tt(T.anchor,w)>0?(b=T.head,w=ot(E.from(),T.anchor)):(b=T.anchor,w=it(E.to(),T.head));var _=l.ranges.slice(0);_[c]=function(e,t){var n=t.anchor,r=t.head,i=ze(e.doc,n.line);if(0==tt(n,r)&&n.sticky==r.sticky)return t;var o=le(i);if(!o)return t;var a=se(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var c,l=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==o.length)return t;if(r.line!=n.line)c=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=se(o,r.ch,r.sticky),p=u-a||(r.ch-n.ch)*(1==s.level?-1:1);c=u==l-1||u==l?p<0:p>0}var f=o[l+(c?-1:0)],d=c==(1==f.level),h=d?f.from:f.to,m=d?"after":"before";return n.ch==h&&n.sticky==m?t:new ki(new et(n.line,h,m),r)}(e,new ki(st(o,w),b)),eo(o,Si(e,_,c),G)}}var h=i.wrapper.getBoundingClientRect(),m=0;function v(t){var n=++m,a=ur(e,t,!0,"rectangle"==r.unit);if(a)if(0!=tt(a,f)){e.curOp.focus=L(),d(a);var s=Nr(i,o);(a.line>=s.to||a.lineh.bottom?20:0;c&&setTimeout(ti(e,(function(){m==n&&(i.scroller.scrollTop+=c,v(t))})),50)}}function y(t){e.state.selectingText=!1,m=1/0,t&&(be(t),i.input.focus()),de(i.wrapper.ownerDocument,"mousemove",g),de(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var g=ti(e,(function(e){0!==e.buttons&&ke(e)?v(e):y(e)})),b=ti(e,y);e.state.selectingText=b,pe(i.wrapper.ownerDocument,"mousemove",g),pe(i.wrapper.ownerDocument,"mouseup",b)}(e,r,t,o)}(t,r,o,e):_e(e)==n.scroller&&be(e):2==i?(r&&Wi(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(_?t.display.input.onContextMenu(e):kr(t)))}}function ga(e,t,n){if("char"==n)return new ki(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ki(et(t.line,0),st(e.doc,et(t.line+1,0)));var r=n(e,t);return new ki(r.from,r.to)}function ba(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&be(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ye(e,n))return Te(t);o-=s.top-a.viewOffset;for(var c=0;c=i)return he(e,n,e,Je(e.doc,o),e.display.gutterSpecs[c].className,t),Te(t)}}function Ea(e,t){return ba(e,t,"gutterClick",!0)}function Ta(e,t){wn(e.display,t)||function(e,t){return!!ye(e,"gutterContextMenu")&&ba(e,t,"gutterContextMenu",!1)}(e,t)||me(e,t,"contextmenu")||_||e.display.input.onContextMenu(t)}function wa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Un(e)}va.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var _a={toString:function(){return"CodeMirror.Init"}},ka={},Sa={};function Oa(e,t,n){if(!t!=!(n&&n!=_a)){var r=e.display.dragFunctions,i=t?pe:de;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Ca(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(O(e.display.wrapper,"CodeMirror-wrap"),Kt(e)),lr(e),fr(e),Un(e),setTimeout((function(){return qr(e)}),100)}function xa(e,t){var n=this;if(!(this instanceof xa))return new xa(e,t);this.options=t=t?j(t):{},j(ka,t,!1);var r=t.value;"string"==typeof r?r=new Lo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new xa.inputStyles[t.inputStyle](this),o=this.display=new yi(e,r,i,t);for(var l in o.wrapper.CodeMirror=this,wa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;pe(t.scroller,"mousedown",ti(e,ya)),pe(t.scroller,"dblclick",a&&s<11?ti(e,(function(t){if(!me(e,t)){var n=ur(e,t);if(n&&!Ea(e,t)&&!wn(e.display,t)){be(t);var r=e.findWordAt(n);Wi(e.doc,r.anchor,r.head)}}})):function(t){return me(e,t)||be(t)}),pe(t.scroller,"contextmenu",(function(t){return Ta(e,t)})),pe(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Ta(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function c(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}pe(t.scroller,"touchstart",(function(i){if(!me(e,i)&&!o(i)&&!Ea(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),pe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),pe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!wn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||c(r,r.prev)?new ki(a,a):!r.prev.prev||c(r,r.prev.prev)?e.findWordAt(a):new ki(et(a.line,0),st(e.doc,et(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),be(n)}i()})),pe(t.scroller,"touchcancel",i),pe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Mr(e,t.scroller.scrollTop),Fr(e,t.scroller.scrollLeft,!0),he(e,"scroll",e))})),pe(t.scroller,"mousewheel",(function(t){return wi(e,t)})),pe(t.scroller,"DOMMouseScroll",(function(t){return wi(e,t)})),pe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){me(e,t)||we(t)},over:function(t){me(e,t)||(function(e,t){var n=ur(e,t);if(n){var r=document.createDocumentFragment();br(e,n,r),e.display.dragCursor||(e.display.dragCursor=N("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),x(e.display.dragCursor,r)}}(e,t),we(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Io<100))we(t);else if(!me(e,t)&&!wn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=N("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}(e,t)},drop:ti(e,Po),leave:function(t){me(e,t)||Ro(e)}};var l=t.input.getField();pe(l,"keyup",(function(t){return fa.call(e,t)})),pe(l,"keydown",ti(e,pa)),pe(l,"keypress",ti(e,da)),pe(l,"focus",(function(t){return Sr(e,t)})),pe(l,"blur",(function(t){return Or(e,t)}))}(this),Fo(),$r(this),this.curOp.forceUpdate=!0,Mi(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Sr(n)}),20):Or(this),Sa)Sa.hasOwnProperty(l)&&Sa[l](this,t[l],_a);di(this),t.finishInit&&t.finishInit(this);for(var u=0;u150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?F(ze(o,t-1).text,null,a):0:"add"==n?l=c+e.options.indentUnit:"subtract"==n?l=c-e.options.indentUnit:"number"==typeof n&&(l=c+n),l=Math.max(0,l);var p="",f=0;if(e.options.indentWithTabs)for(var d=Math.floor(l/a);d;--d)f+=a,p+="\t";if(fa,c=De(t),l=null;if(s&&r.ranges.length>1)if(Da&&Da.text.join("\n")==t){if(r.ranges.length%Da.text.length==0){l=[];for(var u=0;u=0;f--){var d=r.ranges[f],h=d.from(),m=d.to();d.empty()&&(n&&n>0?h=et(h.line,h.ch-n):e.state.overwrite&&!s?m=et(m.line,Math.min(ze(o,m.line).text.length,m.ch+H(c).length)):s&&Da&&Da.lineWise&&Da.text.join("\n")==c.join("\n")&&(h=m=et(h.line,0)));var v={from:h,to:m,text:l?l[f%l.length]:c,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};uo(e.doc,v),cn(e,"inputRead",e,v)}t&&!s&&Ra(e,t),Lr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Pa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||ei(t,(function(){return Ia(t,n,0,null,"paste")})),!0}function Ra(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Aa(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(ze(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Aa(e,i.head.line,"smart"));a&&cn(e,"electricInput",e,i.head.line)}}}function Ma(e){for(var t=[],n=[],r=0;r0?0:-1));if(isNaN(u))a=null;else{var p=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new et(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(p?2:1))),-n)}}else a=i?function(e,t,n,r){var i=le(t,e.doc.direction);if(!i)return ea(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=se(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&f>=u.begin)){var d=p?"before":"after";return new et(n.line,f,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new et(n.line,c(e,1),"before"):new et(n.line,e,"after")};e>=0&&e0==(1!=a.level),l=s?r.begin:c(r.end,-1);if(a.from<=l&&l0?u.end:c(u.begin,-1);return null==v||r>0&&v==t.text.length||!(m=h(r>0?0:i.length-1,r,l(v)))?null:m}(e.cm,s,t,n):ea(s,t,n);if(null==a){if(o||((l=t.line+c)=e.first+e.size||(t=new et(l,t.ch,t.sticky),!(s=ze(e,l)))))return!1;t=ta(i,e.cm,s,t.line,c)}else t=a;return!0}if("char"==r||"codepoint"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var u=null,p="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||l(!d);d=!1){var h=s.text.charAt(t.ch)||"\n",m=ee(h,f)?"w":p&&"\n"==h?"n":!p||/\s/.test(h)?null:"p";if(!p||d||m||(m="s"),u&&u!=m){n<0&&(n=1,l(),t.sticky="after");break}if(m&&(u=m),n>0&&!l(!d))break}var v=ao(e,t,o,a,!0);return nt(o,v)&&(v.hitSide=!0),v}function Qa(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var c=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(c-.5*ir(e.display),3);i=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Jn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ua=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function qa(e,t){var n=Ln(e,t.line);if(!n||n.hidden)return null;var r=ze(e.doc,t.line),i=An(n,r,t.line),o=le(r,e.doc.direction),a="left";o&&(a=se(o,t.ch)%2?"right":"left");var s=jn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Ga(e,t){return t&&(e.bad=!0),e}function Ba(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Ga(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||o.line=t.display.viewFrom&&qa(t,i)||{node:c[0].measure.map[2],offset:0},u=o.liner.firstLine()&&(a=et(a.line-1,ze(r.doc,a.line-1).length)),s.ch==ze(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=pr(r,a.line))?(t=Ye(i.view[0].line),n=i.view[0].node):(t=Ye(i.view[e].line),n=i.view[e-1].node.nextSibling);var c,l,u=pr(r,s.line);if(u==i.view.length-1?(c=i.viewTo-1,l=i.lineDiv.lastChild):(c=Ye(i.view[u+1].line)-1,l=i.view[u+1].node.previousSibling),!n)return!1;for(var p=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),c=!1;function l(){a&&(o+=s,c&&(o+=s),a=c=!1)}function u(e){e&&(l(),o+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,f=t.getAttribute("cm-marker");if(f){var d=e.findMarks(et(r,0),et(i+1,0),(v=+f,function(e){return e.id==v}));return void(d.length&&(o=d[0].find(0))&&u($e(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&l();for(var m=0;m1&&f.length>1;)if(H(p)==H(f))p.pop(),f.pop(),c--;else{if(p[0]!=f[0])break;p.shift(),f.shift(),t++}for(var d=0,h=0,m=p[0],v=f[0],y=Math.min(m.length,v.length);da.ch&&g.charCodeAt(g.length-h-1)==b.charCodeAt(b.length-h-1);)d--,h++;p[p.length-1]=g.slice(0,g.length-h).replace(/^\u200b+/,""),p[0]=p[0].slice(d).replace(/\u200b+$/,"");var T=et(t,d),w=et(c,f.length?H(f).length-h:0);return p.length>1||p[0]||tt(T,w)?(vo(r.doc,p,T,w,"+input"),!0):void 0},Ua.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ua.prototype.reset=function(){this.forceCompositionEnd()},Ua.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ua.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Ua.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ei(this.cm,(function(){return fr(e.cm)}))},Ua.prototype.setUneditable=function(e){e.contentEditable="false"},Ua.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ti(this.cm,Ia)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ua.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ua.prototype.onContextMenu=function(){},Ua.prototype.resetPosition=function(){},Ua.prototype.needsContentAttribute=!0;var za=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null};za.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!me(r,e)){if(r.somethingSelected())La({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ma(r);La({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,q):(n.prevInput="",i.value=t.text.join("\n"),R(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),pe(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),pe(i,"paste",(function(e){me(r,e)||Pa(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pe(i,"cut",o),pe(i,"copy",o),pe(e.scroller,"paste",(function(t){if(!wn(e,t)&&!me(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),pe(e.lineSpace,"selectstart",(function(t){wn(e,t)||be(t)})),pe(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pe(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},za.prototype.createField=function(e){this.wrapper=Fa(),this.textarea=this.wrapper.firstChild},za.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},za.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=gr(e);if(e.options.moveInputWithCursor){var i=Hn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},za.prototype.showSelection=function(e){var t=this.cm.display;x(t.cursorDiv,e.cursors),x(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},za.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&R(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},za.prototype.getField=function(){return this.textarea},za.prototype.supportsTouch=function(){return!1},za.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||L()!=this.textarea))try{this.textarea.focus()}catch(e){}},za.prototype.blur=function(){this.textarea.blur()},za.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},za.prototype.receivedFocus=function(){this.slowPoll()},za.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},za.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},za.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Le(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||g&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var c=0,l=Math.min(r.length,i.length);c1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},za.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},za.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},za.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=ur(n,e),l=r.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ti(n,eo)(n.doc,Oi(o),q);var u,f=i.style.cssText,d=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",c&&(u=window.scrollY),r.input.focus(),c&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),_){we(e);var m=function(){de(window,"mouseup",m),setTimeout(y,20)};pe(window,"mouseup",m)}else setTimeout(y,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=f,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ti(n,co)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},za.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},za.prototype.setUneditable=function(){},za.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=_a&&i(e,t,n)}:i)}e.defineOption=n,e.Init=_a,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Di(e)}),!0),n("indentUnit",2,Di,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Li(e),Un(e),fr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(et(r,o))}r++}));for(var i=n.length-1;i>=0;i--)vo(e.doc,t,n[i],et(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=_a&&e.refresh()})),n("specialCharPlaceholder",Xt,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!E),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){wa(e),vi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Jo(t),i=n!=_a&&Jo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ca,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=hi(t,e.options.lineNumbers),vi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?sr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return qr(e)}),!0),n("scrollbarStyle","native",(function(e){Kr(e),qr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=hi(e.options.gutters,t),vi(e)}),!0),n("firstLineNumber",1,vi,!0),n("lineNumberFormatter",(function(e){return e}),vi,!0),n("showCursorWhenSelecting",!1,yr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Or(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Oa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,yr,!0),n("singleCursorHeightPerLine",!0,yr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Li,!0),n("addModeClass",!1,Li,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Li,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(xa),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ti(this,t[e])(this,n,i),he(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Jo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Aa(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Lr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var c=s;c0&&Ji(this.doc,r,new ki(o,l[r].to()),q)}}})),getTokenAt:function(e,t){return gt(this,e,t)},getLineTokens:function(e,t){return gt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=st(this.doc,e);var t,n=ft(this,ze(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=ze(this.doc,e)}else r=e;return Kn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Gt(r):0)},defaultTextHeight:function(){return ir(this.display)},defaultCharWidth:function(){return or(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,c=this.display,l=(e=Hn(this,st(this.doc,e))).bottom,u=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),c.sizer.appendChild(t),"over"==r)l=e.top;else if("above"==r||"near"==r){var p=Math.max(c.wrapper.clientHeight,this.doc.height),f=Math.max(c.sizer.clientWidth,c.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>p)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=p&&(l=e.bottom),u+t.offsetWidth>f&&(u=f-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(u=c.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(c.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&(o=this,a={left:u,top:l,right:u+t.offsetWidth,bottom:l+t.offsetHeight},null!=(s=Ar(o,a)).scrollTop&&Mr(o,s.scrollTop),null!=s.scrollLeft&&Fr(o,s.scrollLeft))},triggerOnKeyDown:ni(pa),triggerOnKeyPress:ni(da),triggerOnKeyUp:fa,triggerOnMouseDown:ni(ya),execCommand:function(e){if(na.hasOwnProperty(e))return na[e].call(null,this)},triggerElectric:ni((function(e){Ra(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=st(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&lr(this),he(this,"refresh",this)})),swapDoc:ni((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Mi(this,e),Un(this),this.display.input.reset(),Ir(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,cn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ge(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(xa);var $a="iter insert remove copy getEditor constructor".split(" ");for(var Ha in Lo.prototype)Lo.prototype.hasOwnProperty(Ha)&&Q($a,Ha)<0&&(xa.prototype[Ha]=function(e){return function(){return e.apply(this.doc,arguments)}}(Lo.prototype[Ha]));return ge(Lo),xa.inputStyles={textarea:za,contenteditable:Ua},xa.defineMode=function(e){xa.defaults.mode||"null"==e||(xa.defaults.mode=e),je.apply(this,arguments)},xa.defineMIME=function(e,t){Me[e]=t},xa.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),xa.defineMIME("text/plain","null"),xa.defineExtension=function(e,t){xa.prototype[e]=t},xa.defineDocExtension=function(e,t){Lo.prototype[e]=t},xa.fromTextArea=function(e,t){if((t=t?j(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=L();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(pe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(de(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=xa((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=de,e.on=pe,e.wheelEventPixels=Ti,e.Doc=Lo,e.splitLines=De,e.countColumn=F,e.findColumn=K,e.isWordChar=Z,e.Pass=U,e.signal=he,e.Line=zt,e.changeEnd=Ci,e.scrollbarModel=Br,e.Pos=et,e.cmpPos=tt,e.modes=Re,e.mimeModes=Me,e.resolveMode=Fe,e.getMode=Ve,e.modeExtensions=Qe,e.extendMode=Ue,e.copyState=qe,e.startState=Be,e.innerMode=Ge,e.commands=na,e.keyMap=Bo,e.keyName=Yo,e.isModifierKey=Ho,e.lookupKey=$o,e.normalizeKeyMap=zo,e.StringStream=Ke,e.SharedTextMarker=xo,e.TextMarker=Oo,e.LineWidget=_o,e.e_preventDefault=be,e.e_stopPropagation=Ee,e.e_stop=we,e.addClass=I,e.contains=D,e.rmClass=O,e.keyNames=Qo}(xa),xa.version="5.64.0",xa}()},6876:function(e,t,n){!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,c=n.json||s,l=!1!==n.trackScope,u=n.typescript,p=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e,t,n){return r=e,i=n,t}function v(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(h))return t.tokenize=v,m("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=v),m("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==r&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return m(r);if("="==r&&e.eat(">"))return m("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==r)return e.eat("*")?(t.tokenize=y,y(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):Ze(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==r)return t.tokenize=g,g(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==r&&e.eatWhile(p))return m("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(d.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?m("."):m("operator","operator",e.current());if(p.test(r)){e.eatWhile(p);var i=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return m(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",i)}return m("variable","variable",i)}}function y(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=v;break}r="*"==n}return m("comment","comment")}function g(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=v;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(u){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),c="([{}])".indexOf(s);if(c>=0&&c<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(c>=3&&c<6)++i;else if(p.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var E={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function T(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function w(e,t){if(!l)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function _(e,t,n,r,i){var o=e.cc;for(k.state=e,k.stream=i,k.marked=null,k.cc=o,k.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():c?q:Q)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return k.marked?k.marked:"variable"==n&&w(e,r)?"variable-2":t}}var k={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function O(){return S.apply(null,arguments),!0}function C(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function x(e){var t=k.state;if(k.marked="def",l){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=N(e,t.context);if(null!=r)return void(t.context=r)}else if(!C(e,t.localVars))return void(t.localVars=new L(e,t.localVars));n.globalVars&&!C(e,t.globalVars)&&(t.globalVars=new L(e,t.globalVars))}}function N(e,t){if(t){if(t.block){var n=N(e,t.prev);return n?n==t.prev?t:new D(n,t.vars,!0):null}return C(e,t.vars)?t:new D(t.prev,new L(e,t.vars),!1)}return null}function A(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function D(e,t,n){this.prev=e,this.vars=t,this.block=n}function L(e,t){this.name=e,this.next=t}var I=new L("this",new L("arguments",null));function P(){k.state.context=new D(k.state.context,k.state.localVars,!1),k.state.localVars=I}function R(){k.state.context=new D(k.state.context,k.state.localVars,!0),k.state.localVars=null}function M(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function j(e,t){var n=function(){var n=k.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new T(r,k.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function F(){var e=k.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function V(e){return function t(n){return n==e?O():";"==e||"}"==n||")"==n||"]"==n?S():O(t)}}function Q(e,t){return"var"==e?O(j("vardef",t),ke,V(";"),F):"keyword a"==e?O(j("form"),B,Q,F):"keyword b"==e?O(j("form"),Q,F):"keyword d"==e?k.stream.match(/^\s*$/,!1)?O():O(j("stat"),z,V(";"),F):"debugger"==e?O(V(";")):"{"==e?O(j("}"),R,ce,F,M):";"==e?O():"if"==e?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==F&&k.state.cc.pop()(),O(j("form"),B,Q,F,Ae)):"function"==e?O(Pe):"for"==e?O(j("form"),R,De,Q,M,F):"class"==e||u&&"interface"==t?(k.marked="keyword",O(j("form","class"==e?e:t),Ve,F)):"variable"==e?u&&"declare"==t?(k.marked="keyword",O(Q)):u&&("module"==t||"enum"==t||"type"==t)&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword","enum"==t?O(Je):"type"==t?O(Me,V("operator"),de,V(";")):O(j("form"),Se,V("{"),j("}"),ce,F,F)):u&&"namespace"==t?(k.marked="keyword",O(j("form"),q,Q,F)):u&&"abstract"==t?(k.marked="keyword",O(Q)):O(j("stat"),te):"switch"==e?O(j("form"),B,V("{"),j("}","switch"),R,ce,F,F,M):"case"==e?O(q,V(":")):"default"==e?O(V(":")):"catch"==e?O(j("form"),P,U,Q,F,M):"export"==e?O(j("stat"),Ge,F):"import"==e?O(j("stat"),Ke,F):"async"==e?O(Q):"@"==t?O(q,Q):S(j("stat"),q,V(";"),F)}function U(e){if("("==e)return O(je,V(")"))}function q(e,t){return K(e,t,!1)}function G(e,t){return K(e,t,!0)}function B(e){return"("!=e?S():O(j(")"),z,V(")"),F)}function K(e,t,n){if(k.state.fatArrowAt==k.stream.start){var r=n?X:J;if("("==e)return O(P,j(")"),ae(je,")"),F,V("=>"),r,M);if("variable"==e)return S(P,Se,V("=>"),r,M)}var i=n?H:$;return E.hasOwnProperty(e)?O(i):"function"==e?O(Pe,i):"class"==e||u&&"interface"==t?(k.marked="keyword",O(j("form"),Fe,F)):"keyword c"==e||"async"==e?O(n?G:q):"("==e?O(j(")"),z,V(")"),F,i):"operator"==e||"spread"==e?O(n?G:q):"["==e?O(j("]"),Ye,F,i):"{"==e?se(re,"}",null,i):"quasi"==e?S(W,i):"new"==e?O(function(e){return function(t){return"."==t?O(e?ee:Z):"variable"==t&&u?O(Te,e?H:$):S(e?G:q)}}(n)):O()}function z(e){return e.match(/[;\}\)\],]/)?S():S(q)}function $(e,t){return","==e?O(z):H(e,t,!1)}function H(e,t,n){var r=0==n?$:H,i=0==n?q:G;return"=>"==e?O(P,n?X:J,M):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?O(r):u&&"<"==t&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(j(">"),ae(de,">"),F,r):"?"==t?O(q,V(":"),i):O(i):"quasi"==e?S(W,r):";"!=e?"("==e?se(G,")","call",r):"."==e?O(ne,r):"["==e?O(j("]"),z,V("]"),F,r):u&&"as"==t?(k.marked="keyword",O(de,r)):"regexp"==e?(k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),O(i)):void 0:void 0}function W(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?O(W):O(z,Y)}function Y(e){if("}"==e)return k.marked="string-2",k.state.tokenize=g,O(W)}function J(e){return b(k.stream,k.state),S("{"==e?Q:q)}function X(e){return b(k.stream,k.state),S("{"==e?Q:G)}function Z(e,t){if("target"==t)return k.marked="keyword",O($)}function ee(e,t){if("target"==t)return k.marked="keyword",O(H)}function te(e){return":"==e?O(F,Q):S($,V(";"),F)}function ne(e){if("variable"==e)return k.marked="property",O()}function re(e,t){return"async"==e?(k.marked="property",O(re)):"variable"==e||"keyword"==k.style?(k.marked="property","get"==t||"set"==t?O(ie):(u&&k.state.fatArrowAt==k.stream.start&&(n=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+n[0].length),O(oe))):"number"==e||"string"==e?(k.marked=s?"property":k.style+" property",O(oe)):"jsonld-keyword"==e?O(oe):u&&A(t)?(k.marked="keyword",O(re)):"["==e?O(q,le,V("]"),oe):"spread"==e?O(G,oe):"*"==t?(k.marked="keyword",O(re)):":"==e?S(oe):void 0;var n}function ie(e){return"variable"!=e?S(oe):(k.marked="property",O(Pe))}function oe(e){return":"==e?O(G):"("==e?S(Pe):void 0}function ae(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=k.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),O((function(n,r){return n==t||r==t?S():S(e)}),r)}return i==t||o==t?O():n&&n.indexOf(";")>-1?S(e):O(V(t))}return function(n,i){return n==t||i==t?O():S(e,r)}}function se(e,t,n){for(var r=3;r"),de):"quasi"==e?S(ye,Ee):void 0}function he(e){if("=>"==e)return O(de)}function me(e){return e.match(/[\}\)\]]/)?O():","==e||";"==e?O(me):S(ve,me)}function ve(e,t){return"variable"==e||"keyword"==k.style?(k.marked="property",O(ve)):"?"==t||"number"==e||"string"==e?O(ve):":"==e?O(de):"["==e?O(V("variable"),ue,V("]"),ve):"("==e?S(Re,ve):e.match(/[;\}\)\],]/)?void 0:O()}function ye(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?O(ye):O(de,ge)}function ge(e){if("}"==e)return k.marked="string-2",k.state.tokenize=g,O(ye)}function be(e,t){return"variable"==e&&k.stream.match(/^\s*[?:]/,!1)||"?"==t?O(be):":"==e?O(de):"spread"==e?O(be):S(de)}function Ee(e,t){return"<"==t?O(j(">"),ae(de,">"),F,Ee):"|"==t||"."==e||"&"==t?O(de):"["==e?O(de,V("]"),Ee):"extends"==t||"implements"==t?(k.marked="keyword",O(de)):"?"==t?O(de,V(":"),de):void 0}function Te(e,t){if("<"==t)return O(j(">"),ae(de,">"),F,Ee)}function we(){return S(de,_e)}function _e(e,t){if("="==t)return O(de)}function ke(e,t){return"enum"==t?(k.marked="keyword",O(Je)):S(Se,le,xe,Ne)}function Se(e,t){return u&&A(t)?(k.marked="keyword",O(Se)):"variable"==e?(x(t),O()):"spread"==e?O(Se):"["==e?se(Ce,"]"):"{"==e?se(Oe,"}"):void 0}function Oe(e,t){return"variable"!=e||k.stream.match(/^\s*:/,!1)?("variable"==e&&(k.marked="property"),"spread"==e?O(Se):"}"==e?S():"["==e?O(q,V("]"),V(":"),Oe):O(V(":"),Se,xe)):(x(t),O(xe))}function Ce(){return S(Se,xe)}function xe(e,t){if("="==t)return O(G)}function Ne(e){if(","==e)return O(ke)}function Ae(e,t){if("keyword b"==e&&"else"==t)return O(j("form","else"),Q,F)}function De(e,t){return"await"==t?O(De):"("==e?O(j(")"),Le,F):void 0}function Le(e){return"var"==e?O(ke,Ie):"variable"==e?O(Ie):S(Ie)}function Ie(e,t){return")"==e?O():";"==e?O(Ie):"in"==t||"of"==t?(k.marked="keyword",O(q,Ie)):S(q,Ie)}function Pe(e,t){return"*"==t?(k.marked="keyword",O(Pe)):"variable"==e?(x(t),O(Pe)):"("==e?O(P,j(")"),ae(je,")"),F,pe,Q,M):u&&"<"==t?O(j(">"),ae(we,">"),F,Pe):void 0}function Re(e,t){return"*"==t?(k.marked="keyword",O(Re)):"variable"==e?(x(t),O(Re)):"("==e?O(P,j(")"),ae(je,")"),F,pe,M):u&&"<"==t?O(j(">"),ae(we,">"),F,Re):void 0}function Me(e,t){return"keyword"==e||"variable"==e?(k.marked="type",O(Me)):"<"==t?O(j(">"),ae(we,">"),F):void 0}function je(e,t){return"@"==t&&O(q,je),"spread"==e?O(je):u&&A(t)?(k.marked="keyword",O(je)):u&&"this"==e?O(le,xe):S(Se,le,xe)}function Fe(e,t){return"variable"==e?Ve(e,t):Qe(e,t)}function Ve(e,t){if("variable"==e)return x(t),O(Qe)}function Qe(e,t){return"<"==t?O(j(">"),ae(we,">"),F,Qe):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(k.marked="keyword"),O(u?de:q,Qe)):"{"==e?O(j("}"),Ue,F):void 0}function Ue(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&A(t))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(k.marked="keyword",O(Ue)):"variable"==e||"keyword"==k.style?(k.marked="property",O(qe,Ue)):"number"==e||"string"==e?O(qe,Ue):"["==e?O(q,le,V("]"),qe,Ue):"*"==t?(k.marked="keyword",O(Ue)):u&&"("==e?S(Re,Ue):";"==e||","==e?O(Ue):"}"==e?O():"@"==t?O(q,Ue):void 0}function qe(e,t){if("!"==t)return O(qe);if("?"==t)return O(qe);if(":"==e)return O(de,xe);if("="==t)return O(G);var n=k.state.lexical.prev;return S(n&&"interface"==n.info?Re:Pe)}function Ge(e,t){return"*"==t?(k.marked="keyword",O(We,V(";"))):"default"==t?(k.marked="keyword",O(q,V(";"))):"{"==e?O(ae(Be,"}"),We,V(";")):S(Q)}function Be(e,t){return"as"==t?(k.marked="keyword",O(V("variable"))):"variable"==e?S(G,Be):void 0}function Ke(e){return"string"==e?O():"("==e?S(q):"."==e?S($):S(ze,$e,We)}function ze(e,t){return"{"==e?se(ze,"}"):("variable"==e&&x(t),"*"==t&&(k.marked="keyword"),O(He))}function $e(e){if(","==e)return O(ze,$e)}function He(e,t){if("as"==t)return k.marked="keyword",O(ze)}function We(e,t){if("from"==t)return k.marked="keyword",O(q)}function Ye(e){return"]"==e?O():S(ae(G,"]"))}function Je(){return S(j("form"),Se,V("{"),j("}"),ae(Xe,"}"),F,F)}function Xe(){return S(Se,xe)}function Ze(e,t,n){return t.tokenize==v&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return M.lex=!0,F.lex=!0,{startState:function(e){var t={tokenize:v,lastType:"sof",cc:[],lexical:new T((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new D(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=y&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",_(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==y||t.tokenize==g)return e.Pass;if(t.tokenize!=v)return 0;var i,s=r&&r.charAt(0),c=t.lexical;if(!/^\s*else\b/.test(r))for(var l=t.cc.length-1;l>=0;--l){var u=t.cc[l];if(u==F)c=c.prev;else if(u!=Ae&&u!=M)break}for(;("stat"==c.type||"form"==c.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==$||i==H)&&!/^[,\.=+\-*:?[\(]/.test(r));)c=c.prev;a&&")"==c.type&&"stat"==c.prev.type&&(c=c.prev);var p=c.type,f=s==p;return"vardef"==p?c.indented+("operator"==t.lastType||","==t.lastType?c.info.length+1:0):"form"==p&&"{"==s?c.indented:"form"==p?c.indented+o:"stat"==p?c.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=c.info||f||0==n.doubleIndentSwitch?c.align?c.column+(f?0:1):c.indented+(f?0:o):c.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:c?null:"/*",blockCommentEnd:c?null:"*/",blockCommentContinue:c?null:" * ",lineComment:c?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:c?"json":"javascript",jsonldMode:s,jsonMode:c,expressionAllowed:Ze,skipExpression:function(t){_(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(4631))},640:function(e,t,n){"use strict";var r=n(1742),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,c,l,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),c=document.getSelection(),(l=document.createElement("span")).textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),s.selectNodeContents(l),c.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(s):c.removeAllRanges()),l&&document.body.removeChild(l),a()}return u}},4020:function(e){"use strict";var t="%[a-f0-9]{2}",n=new RegExp(t,"gi"),r=new RegExp("("+t+")+","gi");function i(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n),r=1;r]/;e.exports=function(e){var n,r=""+e,i=t.exec(r);if(!i)return r;var o="",a=0,s=0;for(a=i.index;a{return t=void 0,n=void 0,o=function*(){var t;const{requestOpts:n,uri:i,introspectionOptions:o}=e;if(!i)return null;const a=yield fetch(i,Object.assign({method:null!==(t=null==n?void 0:n.method)&&void 0!==t?t:"post",body:JSON.stringify({query:(0,r.getIntrospectionQuery)(o),operationName:"IntrospectionQuery"}),credentials:"omit",headers:(null==n?void 0:n.headers)||{"Content-Type":"application/json"}},n)),s=yield a.json();return null==s?void 0:s.data},new((i=void 0)||(i=Promise))((function(e,r){function a(e){try{c(o.next(e))}catch(e){r(e)}}function s(e){try{c(o.throw(e))}catch(e){r(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,s)}c((o=o.apply(t,n||[])).next())}));var t,n,i,o};function o(e,t){if(!e)throw Error("Empty schema response");return"__schema"in e?(0,r.buildClientSchema)(e,t):(0,r.buildASTSchema)(e,t)}var a,s,c,l,u,p,f,d,h,m,v,y,g,b,E,T,w,_,k,S,O,C,x,N,A,D,L=n(8155);function I(e){let t;return R(e,(e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}})),t}function P(e,t,n){return n===L.SchemaMetaFieldDef.name&&e.getQueryType()===t?L.SchemaMetaFieldDef:n===L.TypeMetaFieldDef.name&&e.getQueryType()===t?L.TypeMetaFieldDef:n===L.TypeNameMetaFieldDef.name&&(0,r.isCompositeType)(t)?L.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[n]:null}function R(e,t){const n=[];let r=e;for(;r&&r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}function M(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i({proximity:Q(V(e.label),t),entry:e}))),(e=>e.proximity<=2)),(e=>!e.entry.isDeprecated)).sort(((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length)).map((e=>e.entry)):F(e,(e=>!e.isDeprecated))}(t,V(e.string))}function F(e,t){const n=e.filter(t);return 0===n.length?e:n}function V(e){return e.toLowerCase().replace(/\W/g,"")}function Q(e,t){let n=function(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}!function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647}(a||(a={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647}(s||(s={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&Ee.uinteger(t.line)&&Ee.uinteger(t.character)}}(c||(c={})),function(e){e.create=function(e,t,n,r){if(Ee.uinteger(e)&&Ee.uinteger(t)&&Ee.uinteger(n)&&Ee.uinteger(r))return{start:c.create(e,t),end:c.create(n,r)};if(c.is(e)&&c.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&c.is(t.start)&&c.is(t.end)}}(l||(l={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return Ee.defined(t)&&l.is(t.range)&&(Ee.string(t.uri)||Ee.undefined(t.uri))}}(u||(u={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return Ee.defined(t)&&l.is(t.targetRange)&&Ee.string(t.targetUri)&&(l.is(t.targetSelectionRange)||Ee.undefined(t.targetSelectionRange))&&(l.is(t.originSelectionRange)||Ee.undefined(t.originSelectionRange))}}(p||(p={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return Ee.numberRange(t.red,0,1)&&Ee.numberRange(t.green,0,1)&&Ee.numberRange(t.blue,0,1)&&Ee.numberRange(t.alpha,0,1)}}(f||(f={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return l.is(t.range)&&f.is(t.color)}}(d||(d={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return Ee.string(t.label)&&(Ee.undefined(t.textEdit)||_.is(t))&&(Ee.undefined(t.additionalTextEdits)||Ee.typedArray(t.additionalTextEdits,_.is))}}(h||(h={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(m||(m={})),function(e){e.create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return Ee.defined(n)&&(o.startCharacter=n),Ee.defined(r)&&(o.endCharacter=r),Ee.defined(i)&&(o.kind=i),o},e.is=function(e){var t=e;return Ee.uinteger(t.startLine)&&Ee.uinteger(t.startLine)&&(Ee.undefined(t.startCharacter)||Ee.uinteger(t.startCharacter))&&(Ee.undefined(t.endCharacter)||Ee.uinteger(t.endCharacter))&&(Ee.undefined(t.kind)||Ee.string(t.kind))}}(v||(v={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return Ee.defined(t)&&u.is(t.location)&&Ee.string(t.message)}}(y||(y={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(g||(g={})),function(e){e.Unnecessary=1,e.Deprecated=2}(b||(b={})),function(e){e.is=function(e){var t=e;return null!=t&&Ee.string(t.href)}}(E||(E={})),function(e){e.create=function(e,t,n,r,i,o){var a={range:e,message:t};return Ee.defined(n)&&(a.severity=n),Ee.defined(r)&&(a.code=r),Ee.defined(i)&&(a.source=i),Ee.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t,n=e;return Ee.defined(n)&&l.is(n.range)&&Ee.string(n.message)&&(Ee.number(n.severity)||Ee.undefined(n.severity))&&(Ee.integer(n.code)||Ee.string(n.code)||Ee.undefined(n.code))&&(Ee.undefined(n.codeDescription)||Ee.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ee.string(n.source)||Ee.undefined(n.source))&&(Ee.undefined(n.relatedInformation)||Ee.typedArray(n.relatedInformation,y.is))}}(T||(T={})),function(e){e.create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.title)&&Ee.string(t.command)}}(w||(w={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&Ee.string(t.newText)&&l.is(t.range)}}(_||(_={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return void 0!==t&&Ee.objectLiteral(t)&&Ee.string(t.label)&&(Ee.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ee.string(t.description)||void 0===t.description)}}(k||(k={})),function(e){e.is=function(e){return"string"==typeof e}}(S||(S={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return _.is(t)&&(k.is(t.annotationId)||S.is(t.annotationId))}}(O||(O={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return Ee.defined(t)&&G.is(t.textDocument)&&Array.isArray(t.edits)}}(C||(C={})),function(e){e.create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"create"===t.kind&&Ee.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ee.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ee.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(x||(x={})),function(e){e.create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},e.is=function(e){var t=e;return t&&"rename"===t.kind&&Ee.string(t.oldUri)&&Ee.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ee.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ee.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(N||(N={})),function(e){e.create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"delete"===t.kind&&Ee.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ee.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ee.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(A||(A={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return Ee.string(e.kind)?x.is(e)||N.is(e)||A.is(e):C.is(e)})))}}(D||(D={}));var U,q,G,B,K,z,$,H,W,Y,J,X,Z,ee,te,ne,re,ie,oe,ae,se,ce,le,ue,pe,fe,de,he,me,ve,ye,ge=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=_.insert(e,t):S.is(n)?(i=n,r=O.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=O.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=_.replace(e,t):S.is(n)?(i=n,r=O.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=O.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=_.del(e):S.is(t)?(r=t,n=O.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=O.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),be=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(S.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new be(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(C.is(e)){var n=new ge(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ge(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(G.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new ge(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ge(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new be,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(k.is(t)||S.is(t)?r=t:n=t,void 0===r?i=x.create(e,n):(o=S.is(r)?r:this._changeAnnotations.manage(r),i=x.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(k.is(n)||S.is(n)?i=n:r=n,void 0===i?o=N.create(e,t,r):(a=S.is(i)?i:this._changeAnnotations.manage(i),o=N.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(k.is(t)||S.is(t)?r=t:n=t,void 0===r?i=A.create(e,n):(o=S.is(r)?r:this._changeAnnotations.manage(r),i=A.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.uri)}}(U||(U={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.uri)&&Ee.integer(t.version)}}(q||(q={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.uri)&&(null===t.version||Ee.integer(t.version))}}(G||(G={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.uri)&&Ee.string(t.languageId)&&Ee.integer(t.version)&&Ee.string(t.text)}}(B||(B={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(K||(K={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(K||(K={})),function(e){e.is=function(e){var t=e;return Ee.objectLiteral(e)&&K.is(t.kind)&&Ee.string(t.value)}}(z||(z={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}($||($={})),function(e){e.PlainText=1,e.Snippet=2}(H||(H={})),function(e){e.Deprecated=1}(W||(W={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&Ee.string(t.newText)&&l.is(t.insert)&&l.is(t.replace)}}(Y||(Y={})),function(e){e.asIs=1,e.adjustIndentation=2}(J||(J={})),function(e){e.create=function(e){return{label:e}}}(X||(X={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(Z||(Z={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return Ee.string(t)||Ee.objectLiteral(t)&&Ee.string(t.language)&&Ee.string(t.value)}}(ee||(ee={})),function(e){e.is=function(e){var t=e;return!!t&&Ee.objectLiteral(t)&&(z.is(t.contents)||ee.is(t.contents)||Ee.typedArray(t.contents,ee.is))&&(void 0===e.range||l.is(e.range))}}(te||(te={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(ne||(ne={})),function(e){e.create=function(e,t){for(var n=[],r=2;r=0;a--){var s=i[a],c=e.offsetAt(s.range.start),l=e.offsetAt(s.range.end);if(!(l<=o))throw new Error("Overlapping edit");r=r.substring(0,c)+s.newText+r.substring(l,r.length),o=c}return r}}(ye||(ye={}));var Ee,Te=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return c.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return c.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let r=null,i=null;return"string"==typeof e?(i=new RegExp(e,n?"i":"g").test(this._sourceText.substr(this._pos,e.length)),r=e):e instanceof RegExp&&(i=this._sourceText.slice(this._pos).match(e),r=i&&i[0]),!(null==i||!("string"==typeof e||i instanceof Array&&this._sourceText.startsWith(i[0],this._pos)))&&(t&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),i)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}function _e(e){return{ofRule:e}}function ke(e,t){return{ofRule:e,isList:!0,separator:t}}function Se(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every((t=>t.match&&!t.match(e)))},e}function Oe(e,t){return{style:t,match:t=>t.kind===e}}function Ce(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}const xe=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,Ne={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:/^#.*/},Ae={Document:[ke("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return r.Kind.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:[De("query"),_e(Le("def")),_e("VariableDefinitions"),ke("Directive"),"SelectionSet"],Mutation:[De("mutation"),_e(Le("def")),_e("VariableDefinitions"),ke("Directive"),"SelectionSet"],Subscription:[De("subscription"),_e(Le("def")),_e("VariableDefinitions"),ke("Directive"),"SelectionSet"],VariableDefinitions:[Ce("("),ke("VariableDefinition"),Ce(")")],VariableDefinition:["Variable",Ce(":"),"Type",_e("DefaultValue")],Variable:[Ce("$","variable"),Le("variable")],DefaultValue:[Ce("="),"Value"],SelectionSet:[Ce("{"),ke("Selection"),Ce("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[Le("property"),Ce(":"),Le("qualifier"),_e("Arguments"),ke("Directive"),_e("SelectionSet")],Field:[Le("property"),_e("Arguments"),ke("Directive"),_e("SelectionSet")],Arguments:[Ce("("),ke("Argument"),Ce(")")],Argument:[Le("attribute"),Ce(":"),"Value"],FragmentSpread:[Ce("..."),Le("def"),ke("Directive")],InlineFragment:[Ce("..."),_e("TypeCondition"),ke("Directive"),"SelectionSet"],FragmentDefinition:[De("fragment"),_e(Se(Le("def"),[De("on")])),"TypeCondition",ke("Directive"),"SelectionSet"],TypeCondition:[De("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[Oe("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Oe("Name","builtin")],NullValue:[Oe("Name","keyword")],EnumValue:[Le("string-2")],ListValue:[Ce("["),ke("Value"),Ce("]")],ObjectValue:[Ce("{"),ke("ObjectField"),Ce("}")],ObjectField:[Le("attribute"),Ce(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[Ce("["),"Type",Ce("]"),_e(Ce("!"))],NonNullType:["NamedType",_e(Ce("!"))],NamedType:[("atom",{style:"atom",match:e=>"Name"===e.kind,update(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[Ce("@","meta"),Le("meta"),_e("Arguments")],DirectiveDef:[De("directive"),Ce("@","meta"),Le("meta"),_e("ArgumentsDef"),De("on"),ke("DirectiveLocation",Ce("|"))],InterfaceDef:[De("interface"),Le("atom"),_e("Implements"),ke("Directive"),Ce("{"),ke("FieldDef"),Ce("}")],Implements:[De("implements"),ke("NamedType",Ce("&"))],DirectiveLocation:[Le("string-2")],SchemaDef:[De("schema"),ke("Directive"),Ce("{"),ke("OperationTypeDef"),Ce("}")],OperationTypeDef:[Le("keyword"),Ce(":"),Le("atom")],ScalarDef:[De("scalar"),Le("atom"),ke("Directive")],ObjectTypeDef:[De("type"),Le("atom"),_e("Implements"),ke("Directive"),Ce("{"),ke("FieldDef"),Ce("}")],FieldDef:[Le("property"),_e("ArgumentsDef"),Ce(":"),"Type",ke("Directive")],ArgumentsDef:[Ce("("),ke("InputValueDef"),Ce(")")],InputValueDef:[Le("attribute"),Ce(":"),"Type",_e("DefaultValue"),ke("Directive")],UnionDef:[De("union"),Le("atom"),ke("Directive"),Ce("="),ke("UnionMember",Ce("|"))],UnionMember:["NamedType"],EnumDef:[De("enum"),Le("atom"),ke("Directive"),Ce("{"),ke("EnumValueDef"),Ce("}")],EnumValueDef:[Le("string-2"),ke("Directive")],InputDef:[De("input"),Le("atom"),ke("Directive"),Ce("{"),ke("InputValueDef"),Ce("}")],ExtendDef:[De("extend"),"ObjectTypeDef"]};function De(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function Le(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function Ie(e={eatWhitespace:e=>e.eatWhile(xe),lexRules:Ne,parseRules:Ae,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return Me(e.parseRules,t,r.Kind.DOCUMENT),t},token:(t,n)=>function(e,t,n){if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:r,parseRules:i,eatWhitespace:o,editorConfig:a}=n;if(t.rule&&0===t.rule.length?je(t):t.needsAdvance&&(t.needsAdvance=!1,Fe(t,!0)),e.sol()){const n=a&&a.tabSize||2;t.indentLevel=Math.floor(e.indentation()/n)}if(o(e))return"ws";const s=function(e,t){const n=Object.keys(e);for(let r=0;r0&&e[e.length-1]e)),c=new Set;$e(i,((e,t)=>{var i,a,l,u,p;if(t.name&&(t.kind!==qe.INTERFACE_DEF||s.includes(t.name)||c.add(t.name),t.kind===qe.NAMED_TYPE&&(null===(i=t.prevState)||void 0===i?void 0:i.kind)===qe.IMPLEMENTS))if(o.interfaceDef){if(null===(a=o.interfaceDef)||void 0===a?void 0:a.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),i=null===(l=o.interfaceDef)||void 0===l?void 0:l.toConfig();o.interfaceDef=new r.GraphQLInterfaceType(Object.assign(Object.assign({},i),{interfaces:[...i.interfaces,e||new r.GraphQLInterfaceType({name:t.name,fields:{}})]}))}else if(o.objectTypeDef){if(null===(u=o.objectTypeDef)||void 0===u?void 0:u.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),i=null===(p=o.objectTypeDef)||void 0===p?void 0:p.toConfig();o.objectTypeDef=new r.GraphQLObjectType(Object.assign(Object.assign({},i),{interfaces:[...i.interfaces,e||new r.GraphQLInterfaceType({name:t.name,fields:{}})]}))}}));const l=o.interfaceDef||o.objectTypeDef,u=((null==l?void 0:l.getInterfaces())||[]).map((({name:e})=>e));return j(e,a.concat([...c].map((e=>({name:e})))).filter((({name:e})=>e!==(null==l?void 0:l.name)&&!u.includes(e))).map((e=>{const t={label:e.name,kind:$.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t})))}(s,c,e,t,p);if(l===qe.SELECTION_SET||l===qe.FIELD||l===qe.ALIASED_FIELD)return function(e,t,n){if(t.parentType){const i=t.parentType;let o=[];return"getFields"in i&&(o=M(i.getFields())),(0,r.isCompositeType)(i)&&o.push(r.TypeNameMetaFieldDef),i===n.getQueryType()&&o.push(r.SchemaMetaFieldDef,r.TypeMetaFieldDef),j(e,o.map(((e,t)=>{var n;return{sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:$.Field,type:e.type}})))}return[]}(s,p,e);if(l===qe.ARGUMENTS||l===qe.ARGUMENT&&0===u){const e=p.argDefs;if(e)return j(s,e.map((e=>{var t;return{label:e.name,insertText:e.name+": ",command:{command:"editor.action.triggerSuggest",title:"Suggestions"},detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:$.Variable,type:e.type}})))}if((l===qe.OBJECT_VALUE||l===qe.OBJECT_FIELD&&0===u)&&p.objectFieldDefs){const e=M(p.objectFieldDefs),t=l===qe.OBJECT_VALUE?$.Value:$.Field;return j(s,e.map((e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,kind:t,type:e.type}})))}if(l===qe.ENUM_VALUE||l===qe.LIST_VALUE&&1===u||l===qe.OBJECT_FIELD&&2===u||l===qe.ARGUMENT&&2===u)return function(e,t,n,i){const o=(0,r.getNamedType)(t.inputType),a=Be(n,i,e).filter((e=>e.detail===o.name));return o instanceof r.GraphQLEnumType?j(e,o.getValues().map((e=>{var t;return{label:e.name,detail:String(o),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:$.EnumMember,type:o}})).concat(a)):o===r.GraphQLBoolean?j(e,a.concat([{label:"true",detail:String(r.GraphQLBoolean),documentation:"Not false.",kind:$.Variable,type:r.GraphQLBoolean},{label:"false",detail:String(r.GraphQLBoolean),documentation:"Not true.",kind:$.Variable,type:r.GraphQLBoolean}])):a}(s,p,t,e);if(l===qe.VARIABLE&&1===u){const n=(0,r.getNamedType)(p.inputType);return j(s,Be(t,e,s).filter((e=>e.detail===(null==n?void 0:n.name))))}return l===qe.TYPE_CONDITION&&1===u||l===qe.NAMED_TYPE&&null!=c.prevState&&c.prevState.kind===qe.TYPE_CONDITION?function(e,t,n,i){let o;if(t.parentType)if((0,r.isAbstractType)(t.parentType)){const e=(0,r.assertAbstractType)(t.parentType),i=n.getPossibleTypes(e),a=Object.create(null);i.forEach((e=>{e.getInterfaces().forEach((e=>{a[e.name]=e}))})),o=i.concat(M(a))}else o=[t.parentType];else o=M(n.getTypeMap()).filter(r.isCompositeType);return j(e,o.map((e=>{const t=(0,r.getNamedType)(e);return{label:String(e),documentation:t&&t.description||"",kind:$.Field}})))}(s,p,e):l===qe.FRAGMENT_SPREAD&&1===u?function(e,t,n,i,o){if(!i)return[];const a=n.getTypeMap(),s=I(e.state),c=Ke(i);o&&o.length>0&&c.push(...o);return j(e,c.filter((e=>a[e.typeCondition.name.value]&&!(s&&s.kind===qe.FRAGMENT_DEFINITION&&s.name===e.name.value)&&(0,r.isCompositeType)(t.parentType)&&(0,r.isCompositeType)(a[e.typeCondition.name.value])&&(0,r.doTypesOverlap)(n,t.parentType,a[e.typeCondition.name.value]))).map((e=>({label:e.name.value,detail:String(a[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,kind:$.Field,type:a[e.typeCondition.name.value]}))))}(s,p,e,t,Array.isArray(o)?o:(e=>{const t=[];return e&&(0,r.visit)((0,r.parse)(e,{allowLegacyFragmentVariables:!0}),{FragmentDefinition(e){t.push(e)}}),t})(o)):l===qe.VARIABLE_DEFINITION&&2===u||l===qe.LIST_TYPE&&1===u||l===qe.NAMED_TYPE&&c.prevState&&(c.prevState.kind===qe.VARIABLE_DEFINITION||c.prevState.kind===qe.LIST_TYPE||c.prevState.kind===qe.NON_NULL_TYPE)?function(e,t,n){return j(e,M(t.getTypeMap()).filter(r.isInputType).map((e=>({label:e.name,documentation:e.description,kind:$.Variable}))))}(s,e):l===qe.DIRECTIVE?function(e,t,n,r){return t.prevState&&t.prevState.kind?j(e,n.getDirectives().filter((e=>He(t.prevState,e))).map((e=>({label:e.name,documentation:e.description||"",kind:$.Function})))):[]}(s,c,e):[]}function Be(e,t,n){let r,i=null;const o=Object.create({});return $e(e,((e,a)=>{if((null==a?void 0:a.kind)===qe.VARIABLE&&a.name&&(i=a.name),(null==a?void 0:a.kind)===qe.NAMED_TYPE&&i){const e=((e,t)=>{var n,r,i,o,a,s,c,l,u,p;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(i=null===(r=e.prevState)||void 0===r?void 0:r.prevState)||void 0===i?void 0:i.kind)===t?e.prevState.prevState:(null===(s=null===(a=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.kind)===t?e.prevState.prevState.prevState:(null===(p=null===(u=null===(l=null===(c=e.prevState)||void 0===c?void 0:c.prevState)||void 0===l?void 0:l.prevState)||void 0===u?void 0:u.prevState)||void 0===p?void 0:p.kind)===t?e.prevState.prevState.prevState.prevState:void 0})(a,qe.TYPE);(null==e?void 0:e.type)&&(r=t.getType(null==e?void 0:e.type))}if(i&&r&&!o[i]){const e="$"===n.string?i:"$"+i;o[i]={detail:r.toString(),label:e,type:r,kind:$.Variable},i=null,r=null}})),M(o)}function Ke(e){const t=[];return $e(e,((e,n)=>{n.kind===qe.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:qe.FRAGMENT_DEFINITION,name:{kind:r.Kind.NAME,value:n.name},selectionSet:{kind:qe.SELECTION_SET,selections:[]},typeCondition:{kind:qe.NAMED_TYPE,name:{kind:r.Kind.NAME,value:n.type}}})})),t}function ze(e,t){let n=null,r=null,i=null;const o=$e(e,((e,o,a,s)=>{if(s===t.line&&e.getCurrentPosition()>=t.character)return n=a,r=Object.assign({},o),i=e.current(),"BREAK"}));return{start:o.start,end:o.end,string:i||o.string,state:r||o.state,style:n||o.style}}function $e(e,t){const n=e.split("\n"),r=Ie();let i=r.startState(),o="",a=new we("");for(let e=0;e{switch(t.kind){case qe.QUERY:case"ShortQuery":f=e.getQueryType();break;case qe.MUTATION:f=e.getMutationType();break;case qe.SUBSCRIPTION:f=e.getSubscriptionType();break;case qe.INLINE_FRAGMENT:case qe.FRAGMENT_DEFINITION:t.type&&(f=e.getType(t.type));break;case qe.FIELD:case qe.ALIASED_FIELD:f&&t.name?(s=p?P(e,p,t.name):null,f=s?s.type:null):s=null;break;case qe.SELECTION_SET:p=(0,r.getNamedType)(f);break;case qe.DIRECTIVE:o=t.name?e.getDirective(t.name):null;break;case qe.INTERFACE_DEF:t.name&&(l=null,d=new r.GraphQLInterfaceType({name:t.name,interfaces:[],fields:{}}));break;case qe.OBJECT_TYPE_DEF:t.name&&(d=null,l=new r.GraphQLObjectType({name:t.name,interfaces:[],fields:{}}));break;case qe.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case qe.FIELD:i=s&&s.args;break;case qe.DIRECTIVE:i=o&&o.args;break;case qe.ALIASED_FIELD:{const n=t.prevState&&t.prevState.name;if(!n){i=null;break}const r=p?P(e,p,n):null;if(!r){i=null;break}i=r.args;break}default:i=null}else i=null;break;case qe.ARGUMENT:if(i)for(let e=0;e{if(!t)return[];let n;try{n=(0,r.parse)(e)}catch(e){return[]}return Ze(n,t)},Ze=(e,t)=>{if(!t)return[];const n=new Map,i=new Set;(0,r.visit)(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){i.has(e.name.value)||i.add(e.name.value)}});const o=new Set;i.forEach((e=>{!n.has(e)&&t.has(e)&&o.add(Je()(t.get(e)))}));const a=[];return o.forEach((e=>{(0,r.visit)(e,{FragmentSpread(e){!i.has(e.name.value)&&t.get(e.name.value)&&(o.add(Je()(t.get(e.name.value))),i.add(e.name.value))}}),n.has(e.name.value)||a.push(e)})),a};function et(e,t,n){const i=tt(e,n);let o;return(0,r.visit)(t,{enter(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=i&&i<=e.loc.end))return!1;o=e},leave(e){if(e.loc&&e.loc.start<=i&&i<=e.loc.end)return!1}}),o}function tt(e,t){const n=e.split("\n").slice(0,t.line);return t.character+n.map((e=>e.length+1)).reduce(((e,t)=>e+t),0)}class nt{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new rt(e,t)}setEnd(e,t){this.end=new rt(e,t)}}class rt{constructor(e,t){this.lessThanOrEqualTo=e=>this.linee!==r.NoUnusedFragmentsRule&&e!==r.ExecutableDefinitionsRule&&(!i||e!==r.KnownFragmentNamesRule)));return n&&Array.prototype.push.apply(o,n),(0,r.validate)(e,t,o).filter((e=>{if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===r.Kind.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0}))}var st=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const ct="GraphQL";function lt(e,t){if(!e)throw new Error(t)}function ut(e,t){const n=t.loc;return lt(n,"Expected ASTNode to have a location."),ot(e,n)}function pt(e,t){const n=t.loc;return lt(n,"Expected ASTNode to have a location."),it(e,n.start)}function ft(e,t,n){return st(this,void 0,void 0,(function*(){const r=t.name.value,i=n.filter((({definition:e})=>e.name&&e.name.value===r));if(0===i.length)throw Error(`Definition not found for GraphQL type ${r}`);const o=i.map((({filePath:e,content:t,definition:n})=>function(e,t,n){const r=n.name;return lt(r,"Expected ASTNode to have a Name."),{path:e,position:pt(t,n),range:ut(t,n),name:r.value||"",language:ct,projectRoot:e}}(e||"",t,n)));return{definitions:o,queryRange:o.map((n=>ut(e,t)))}}))}function dt(e,t,n){return st(this,void 0,void 0,(function*(){const r=t.name.value,i=n.filter((({definition:e})=>e.name.value===r));if(0===i.length)throw Error(`Definition not found for GraphQL fragment ${r}`);const o=i.map((({filePath:e,content:t,definition:n})=>mt(e||"",t,n)));return{definitions:o,queryRange:o.map((n=>ut(e,t)))}}))}function ht(e,t,n){return{definitions:[mt(e,t,n)],queryRange:n.name?[ut(t,n.name)]:[]}}function mt(e,t,n){const r=n.name;if(!r)throw Error("Expected ASTNode to have a Name.");return{path:e,position:pt(t,n),range:ut(t,n),name:r.value||"",language:ct,projectRoot:e}}const vt={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},yt={[vt.Error]:1,[vt.Warning]:2,[vt.Information]:3,[vt.Hint]:4},gt=(e,t)=>{if(!e)throw new Error(t)};function bt(e,t=null,n,i,o){let a=null;o&&(e+="string"==typeof o?"\n\n"+o:"\n\n"+o.reduce(((e,t)=>e+((0,r.print)(t)+"\n\n")),""));try{a=(0,r.parse)(e)}catch(t){const n=_t(t.locations[0],e);return[{severity:yt.Error,message:t.message,source:"GraphQL: Syntax",range:n}]}return Et(a,t,n,i)}function Et(e,t=null,n,i){if(!t)return[];const o=Tt(at(t,e,n,i),(e=>wt(e,yt.Error,"Validation"))),a=Tt((0,r.validate)(t,e,[r.NoDeprecatedCustomRule]),(e=>wt(e,yt.Warning,"Deprecation")));return o.concat(a)}function Tt(e,t){return Array.prototype.concat.apply([],e.map(t))}function wt(e,t,n){if(!e.nodes)return[];const r=[];return e.nodes.forEach((i=>{const o="Variable"!==i.kind&&"name"in i&&void 0!==i.name?i.name:"variable"in i&&void 0!==i.variable?i.variable:i;if(o){gt(e.locations,"GraphQL validation error requires locations.");const i=e.locations[0],a=function(e){const t=e.loc;return gt(t,"Expected ASTNode to have a location."),t}(o),s=i.column+(a.end-a.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new nt(new rt(i.line-1,i.column-1),new rt(i.line-1,s))})}})),r}function _t(e,t){const n=Ie(),r=n.startState(),i=t.split("\n");gt(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let t=0;t({representativeName:t.name,startPosition:it(e,t.loc.start),endPosition:it(e,t.loc.end),kind:t.kind,children:t.selectionSet||t.fields||t.values||t.arguments||[]});return{Field:e=>{const n=e.alias?[Ot("plain",e.alias),Ot("plain",": ")]:[];return n.push(Ot("plain",e.name)),Object.assign({tokenizedText:n},t(e))},OperationDefinition:e=>Object.assign({tokenizedText:[Ot("keyword",e.operation),Ot("whitespace"," "),Ot("class-name",e.name)]},t(e)),Document:e=>e.definitions,SelectionSet:e=>function(e,t){const n=[];for(let t=0;te.value,FragmentDefinition:e=>Object.assign({tokenizedText:[Ot("keyword","fragment"),Ot("whitespace"," "),Ot("class-name",e.name)]},t(e)),InterfaceTypeDefinition:e=>Object.assign({tokenizedText:[Ot("keyword","interface"),Ot("whitespace"," "),Ot("class-name",e.name)]},t(e)),EnumTypeDefinition:e=>Object.assign({tokenizedText:[Ot("keyword","enum"),Ot("whitespace"," "),Ot("class-name",e.name)]},t(e)),EnumValueDefinition:e=>Object.assign({tokenizedText:[Ot("plain",e.name)]},t(e)),ObjectTypeDefinition:e=>Object.assign({tokenizedText:[Ot("keyword","type"),Ot("whitespace"," "),Ot("class-name",e.name)]},t(e)),InputObjectTypeDefinition:e=>Object.assign({tokenizedText:[Ot("keyword","input"),Ot("whitespace"," "),Ot("class-name",e.name)]},t(e)),FragmentSpread:e=>Object.assign({tokenizedText:[Ot("plain","..."),Ot("class-name",e.name)]},t(e)),InputValueDefinition:e=>Object.assign({tokenizedText:[Ot("plain",e.name)]},t(e)),FieldDefinition:e=>Object.assign({tokenizedText:[Ot("plain",e.name)]},t(e)),InlineFragment:e=>e.selectionSet}}(e);return{outlineTrees:(0,r.visit)(t,{leave:e=>void 0!==n&&e.kind in n?n[e.kind](e):null})}}function Ot(e,t){return{kind:e,value:t}}function Ct(e,t,n,r,i){const o=r||ze(t,n);if(!e||!o||!o.state)return"";const a=o.state,s=a.kind,c=a.step,l=We(e,o.state),u=Object.assign(Object.assign({},i),{schema:e});if("Field"===s&&0===c&&l.fieldDef||"AliasedField"===s&&2===c&&l.fieldDef){const e=[];return xt(e,u),function(e,t,n){At(e,t,n),Lt(e,t,n,t.type)}(e,l,u),Nt(e,u),Pt(e,0,l.fieldDef),e.join("").trim()}if("Directive"===s&&1===c&&l.directiveDef){const e=[];return xt(e,u),Dt(e,l),Nt(e,u),Pt(e,0,l.directiveDef),e.join("").trim()}if("Argument"===s&&0===c&&l.argDef){const e=[];return xt(e,u),function(e,t,n){if(t.directiveDef?Dt(e,t):t.fieldDef&&At(e,t,n),!t.argDef)return;const r=t.argDef.name;Rt(e,"("),Rt(e,r),Lt(e,t,n,t.inputType),Rt(e,")")}(e,l,u),Nt(e,u),Pt(e,0,l.argDef),e.join("").trim()}if("EnumValue"===s&&l.enumValue&&"description"in l.enumValue){const e=[];return xt(e,u),function(e,t,n){if(!t.enumValue)return;const r=t.enumValue.name;It(e,t,n,t.inputType),Rt(e,"."),Rt(e,r)}(e,l,u),Nt(e,u),Pt(e,0,l.enumValue),e.join("").trim()}if("NamedType"===s&&l.type&&"description"in l.type){const e=[];return xt(e,u),It(e,l,u,l.type),Nt(e,u),Pt(e,0,l.type),e.join("").trim()}return""}function xt(e,t){t.useMarkdown&&Rt(e,"```graphql\n")}function Nt(e,t){t.useMarkdown&&Rt(e,"\n```")}function At(e,t,n){if(!t.fieldDef)return;const r=t.fieldDef.name;"__"!==r.slice(0,2)&&(It(e,t,n,t.parentType),Rt(e,".")),Rt(e,r)}function Dt(e,t,n){t.directiveDef&&Rt(e,"@"+t.directiveDef.name)}function Lt(e,t,n,r){Rt(e,": "),It(e,t,n,r)}function It(e,t,n,i){i&&(i instanceof r.GraphQLNonNull?(It(e,t,n,i.ofType),Rt(e,"!")):i instanceof r.GraphQLList?(Rt(e,"["),It(e,t,n,i.ofType),Rt(e,"]")):Rt(e,i.name))}function Pt(e,t,n){if(!n)return;const r="string"==typeof n.description?n.description:null;r&&(Rt(e,"\n\n"),Rt(e,r)),function(e,t,n){if(!n)return;const r=n.deprecationReason?n.deprecationReason:null;r&&(Rt(e,"\n\n"),Rt(e,"Deprecated: "),Rt(e,r))}(e,0,n)}function Rt(e,t){e.push(t)}var Mt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const{FRAGMENT_DEFINITION:jt,OBJECT_TYPE_DEFINITION:Ft,INTERFACE_TYPE_DEFINITION:Vt,ENUM_TYPE_DEFINITION:Qt,UNION_TYPE_DEFINITION:Ut,SCALAR_TYPE_DEFINITION:qt,INPUT_OBJECT_TYPE_DEFINITION:Gt,SCALAR_TYPE_EXTENSION:Bt,OBJECT_TYPE_EXTENSION:Kt,INTERFACE_TYPE_EXTENSION:zt,UNION_TYPE_EXTENSION:$t,ENUM_TYPE_EXTENSION:Ht,INPUT_OBJECT_TYPE_EXTENSION:Wt,DIRECTIVE_DEFINITION:Yt,FRAGMENT_SPREAD:Jt,OPERATION_DEFINITION:Xt,NAMED_TYPE:Zt}=r.Kind,en={[r.Kind.FIELD]:ae.Field,[r.Kind.OPERATION_DEFINITION]:ae.Class,[r.Kind.FRAGMENT_DEFINITION]:ae.Class,[r.Kind.FRAGMENT_SPREAD]:ae.Struct,[r.Kind.OBJECT_TYPE_DEFINITION]:ae.Class,[r.Kind.ENUM_TYPE_DEFINITION]:ae.Enum,[r.Kind.ENUM_VALUE_DEFINITION]:ae.EnumMember,[r.Kind.INPUT_OBJECT_TYPE_DEFINITION]:ae.Class,[r.Kind.INPUT_VALUE_DEFINITION]:ae.Field,[r.Kind.FIELD_DEFINITION]:ae.Field,[r.Kind.INTERFACE_TYPE_DEFINITION]:ae.Interface,[r.Kind.DOCUMENT]:ae.File,FieldWithArguments:ae.Method};function tn(e){return"FieldDefinition"===e.kind&&e.children&&e.children.length>0?en.FieldWithArguments:en[e.kind]}class nn{constructor(e){this._graphQLCache=e,this._graphQLConfig=e.getGraphQLConfig()}getConfigForURI(e){const t=this._graphQLCache.getProjectForFile(e);if(t)return t;throw Error(`No config found for uri: ${e}`)}getDiagnostics(e,t,n){return Mt(this,void 0,void 0,(function*(){let i=!1;const o=this.getConfigForURI(t);if(!o)return[];const{schema:a,name:s,extensions:c}=o;try{const n=(0,r.parse)(e);a&&t===a||(i=n.definitions.some((e=>{switch(e.kind){case Ft:case Vt:case Qt:case Ut:case qt:case Gt:case Bt:case Kt:case zt:case $t:case Ht:case Wt:case Yt:return!0}return!1})))}catch(t){const n=_t(t.locations[0],e);return[{severity:yt.Error,message:t.message,source:"GraphQL: Syntax",range:n}]}let l=e;const u=yield this._graphQLCache.getFragmentDefinitions(o);l=`${l} ${(yield this._graphQLCache.getFragmentDependencies(e,u)).reduce(((e,t)=>`${e} ${(0,r.print)(t.definition)}`),"")}`;let p=null;try{p=(0,r.parse)(l)}catch(e){return[]}let f=null;(null==c?void 0:c.customValidationRules)&&"function"==typeof c.customValidationRules&&(f=c.customValidationRules(this._graphQLConfig));const d=yield this._graphQLCache.getSchema(s,i);return d?Et(p,d,f,n):[]}))}getAutocompleteSuggestions(e,t,n){return Mt(this,void 0,void 0,(function*(){const r=this.getConfigForURI(n),i=yield this._graphQLCache.getSchema(r.name),o=yield this._graphQLCache.getFragmentDefinitions(r),a=Array.from(o).map((([,e])=>e.definition));return i?Ge(i,e,t,void 0,a):[]}))}getHoverInformation(e,t,n,r){return Mt(this,void 0,void 0,(function*(){const i=this.getConfigForURI(n),o=yield this._graphQLCache.getSchema(i.name);return o?Ct(o,e,t,void 0,r):""}))}getDefinition(e,t,n){return Mt(this,void 0,void 0,(function*(){const i=this.getConfigForURI(n);let o;try{o=(0,r.parse)(e)}catch(e){return null}const a=et(e,o,t);if(a)switch(a.kind){case Jt:return this._getDefinitionForFragmentSpread(e,o,a,n,i);case jt:case Xt:return ht(n,e,a);case Zt:return this._getDefinitionForNamedType(e,o,a,n,i)}return null}))}getDocumentSymbols(e,t){return Mt(this,void 0,void 0,(function*(){const n=yield this.getOutline(e);if(!n)return[];const r=[],i=n.outlineTrees.map((e=>[null,e]));for(;i.length>0;){const e=i.pop();if(!e)return[];const[n,o]=e;if(!o)return[];r.push({name:o.representativeName,kind:tn(o),location:{uri:t,range:{start:o.startPosition,end:o.endPosition}},containerName:n?n.representativeName:void 0}),i.push(...o.children.map((e=>[o,e])))}return r}))}_getDefinitionForNamedType(e,t,n,r,i){return Mt(this,void 0,void 0,(function*(){const o=yield this._graphQLCache.getObjectTypeDefinitions(i),a=yield this._graphQLCache.getObjectTypeDependenciesForAST(t,o),s=t.definitions.filter((e=>e.kind===Ft||e.kind===Gt||e.kind===Qt||e.kind===qt||e.kind===Vt)).map((t=>({filePath:r,content:e,definition:t})));return yield ft(e,n,a.concat(s))}))}_getDefinitionForFragmentSpread(e,t,n,r,i){return Mt(this,void 0,void 0,(function*(){const o=yield this._graphQLCache.getFragmentDefinitions(i),a=yield this._graphQLCache.getFragmentDependenciesForAST(t,o),s=t.definitions.filter((e=>e.kind===jt)).map((t=>({filePath:r,content:e,definition:t})));return yield dt(e,n,a.concat(s))}))}getOutline(e){return Mt(this,void 0,void 0,(function*(){return St(e)}))}}var rn=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class on{constructor({parser:e,schemaLoader:t,schemaBuilder:n,schemaConfig:a,schemaString:s,parseOptions:c,exteralFragmentDefinitions:l}){this._parser=r.parse,this._schema=null,this._schemaResponse=null,this._schemaLoader=i,this._schemaBuilder=o,this._schemaString=null,this._parseOptions=void 0,this._exteralFragmentDefinitionNodes=null,this._exteralFragmentDefinitionsString=null,this.getCompletion=(e,t,n)=>rn(this,void 0,void 0,(function*(){const e=yield this.getSchema();return!t||t.length<1||!e?[]:Ge(e,t,n,void 0,yield this.getExternalFragmentDefinitions())})),this.getDiagnostics=(e,t,n)=>rn(this,void 0,void 0,(function*(){const e=yield this.getSchema();return!t||t.length<1||!e?[]:bt(t,e,n)})),this.getHover=(e,t,n,r)=>rn(this,void 0,void 0,(function*(){return Ct(yield this.getSchema(),t,n,void 0,Object.assign({useMarkdown:!0},r))})),this._schemaConfig=a,e&&(this._parser=e),t&&(this._schemaLoader=t),n&&(this._schemaBuilder=n),s&&(this._schemaString=s),c&&(this._parseOptions=c),l&&(Array.isArray(l)?this._exteralFragmentDefinitionNodes=l:this._exteralFragmentDefinitionsString=l)}get schema(){return this._schema}getSchema(){return rn(this,void 0,void 0,(function*(){return this.schema?this.schema:this.loadSchema()}))}getExternalFragmentDefinitions(){return rn(this,void 0,void 0,(function*(){if(!this._exteralFragmentDefinitionNodes&&this._exteralFragmentDefinitionsString){const e=[];try{(0,r.visit)(yield this._parser(this._exteralFragmentDefinitionsString),{FragmentDefinition(t){e.push(t)}})}catch(e){throw Error(`Failed parsing exteralFragmentDefinitions string:\n${this._exteralFragmentDefinitionsString}`)}this._exteralFragmentDefinitionNodes=e}return this._exteralFragmentDefinitionNodes}))}setSchema(e){return rn(this,void 0,void 0,(function*(){this._schemaString=e,yield this.loadSchema()}))}getSchemaResponse(){return rn(this,void 0,void 0,(function*(){return this._schemaResponse?this._schemaResponse:this.loadSchemaResponse()}))}loadSchemaResponse(){var e;return rn(this,void 0,void 0,(function*(){return this._schemaString?"string"==typeof this._schemaString?this.parse(this._schemaString):this._schemaString:(null===(e=this._schemaConfig)||void 0===e?void 0:e.uri)?(this._schemaResponse=yield this._schemaLoader(this._schemaConfig),this._schemaResponse):null}))}loadSchema(){return rn(this,void 0,void 0,(function*(){const e=yield this.loadSchemaResponse();return e?(this._schema=this._schemaBuilder(e,this._schemaConfig.buildSchemaOptions),this._schema):null}))}parse(e,t){return rn(this,void 0,void 0,(function*(){return this._parser(e,t||this._parseOptions)}))}}const an={Created:1,Changed:2,Deleted:3}},5822:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=void 0,t.formatError=function(e){return e.toJSON()},t.printError=function(e){return e.toString()};var r=n(5690),i=n(9016),o=n(8038);class a extends Error{constructor(e,t,n,o,c,l,u){var p,f,d;super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=l?l:void 0,this.nodes=s(Array.isArray(t)?t:t?[t]:void 0);const h=s(null===(p=this.nodes)||void 0===p?void 0:p.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=n?n:null==h||null===(f=h[0])||void 0===f?void 0:f.source,this.positions=null!=o?o:null==h?void 0:h.map((e=>e.start)),this.locations=o&&n?o.map((e=>(0,i.getLocation)(n,e))):null==h?void 0:h.map((e=>(0,i.getLocation)(e.source,e.start)));const m=(0,r.isObjectLike)(null==l?void 0:l.extensions)?null==l?void 0:l.extensions:void 0;this.extensions=null!==(d=null!=u?u:m)&&void 0!==d?d:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=l&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+(0,o.printLocation)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}t.GraphQLError=a},6972:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return r.formatError}}),Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return o.locatedError}}),Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return r.printError}}),Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return i.syntaxError}});var r=n(5822),i=n(338),o=n(1993)},1993:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locatedError=function(e,t,n){var o;const a=e instanceof Error?e:new Error("Unexpected error value: "+(0,r.inspect)(e));return s=a,Array.isArray(s.path)?a:new i.GraphQLError(a.message,null!==(o=a.nodes)&&void 0!==o?o:t,a.source,a.positions,n,a);var s};var r=n(8002),i=n(5822)},338:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new r.GraphQLError(`Syntax Error: ${n}`,void 0,e,[t])};var r=n(5822)},8950:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.collectFields=function(e,t,n,r,i){const o=new Map;return c(e,t,n,r,i,o,new Set),o},t.collectSubfields=function(e,t,n,r,i){const o=new Map,a=new Set;for(const s of i)s.selectionSet&&c(e,t,n,r,s.selectionSet,o,a);return o};var r=n(2828),i=n(7197),o=n(5003),a=n(5115),s=n(8840);function c(e,t,n,i,o,a,s){for(const f of o.selections)switch(f.kind){case r.Kind.FIELD:{if(!l(n,f))continue;const e=(p=f).alias?p.alias.value:p.name.value,t=a.get(e);void 0!==t?t.push(f):a.set(e,[f]);break}case r.Kind.INLINE_FRAGMENT:if(!l(n,f)||!u(e,f,i))continue;c(e,t,n,i,f.selectionSet,a,s);break;case r.Kind.FRAGMENT_SPREAD:{const r=f.name.value;if(s.has(r)||!l(n,f))continue;s.add(r);const o=t[r];if(!o||!u(e,o,i))continue;c(e,t,n,i,o.selectionSet,a,s);break}}var p}function l(e,t){const n=(0,s.getDirectiveValues)(i.GraphQLSkipDirective,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=(0,s.getDirectiveValues)(i.GraphQLIncludeDirective,t,e);return!1!==(null==r?void 0:r.if)}function u(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=(0,a.typeFromAST)(e,r);return i===n||!!(0,o.isAbstractType)(i)&&e.isSubType(i,n)}},192:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidExecutionArguments=S,t.buildExecutionContext=O,t.buildResolveInfo=N,t.defaultTypeResolver=t.defaultFieldResolver=void 0,t.execute=_,t.executeSync=function(e){const t=_(e);if((0,s.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t},t.getFieldDef=j;var r=n(8002),i=n(5456),o=n(7706),a=n(7242),s=n(4221),c=n(5690),l=n(9915),u=n(3179),p=n(7059),f=n(6609),d=n(5822),h=n(1993),m=n(1807),v=n(2828),y=n(1671),g=n(8155),b=n(5003),E=n(8840),T=n(8950);const w=(0,i.memoize3)(((e,t,n)=>(0,T.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n)));function _(e){const{schema:t,document:n,variableValues:r,rootValue:i}=e;S(t,n,r);const o=O(e);if(!("schema"in o))return{errors:o};try{const{operation:e}=o,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new d.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,t);const i=(0,T.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case m.OperationTypeNode.QUERY:return C(e,r,n,o,i);case m.OperationTypeNode.MUTATION:return function(e,t,n,r,i){return(0,l.promiseReduce)(i.entries(),((r,[i,o])=>{const a=(0,p.addPath)(undefined,i,t.name),c=x(e,t,n,o,a);return void 0===c?r:(0,s.isPromise)(c)?c.then((e=>(r[i]=e,r))):(r[i]=c,r)}),Object.create(null))}(e,r,n,0,i);case m.OperationTypeNode.SUBSCRIPTION:return C(e,r,n,o,i)}}(o,e,i);return(0,s.isPromise)(t)?t.then((e=>k(e,o.errors)),(e=>(o.errors.push(e),k(null,o.errors)))):k(t,o.errors)}catch(e){return o.errors.push(e),k(null,o.errors)}}function k(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function S(e,t,n){t||(0,a.devAssert)(!1,"Must provide document."),(0,y.assertValidSchema)(e),null==n||(0,c.isObjectLike)(n)||(0,a.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function O(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:a,variableValues:s,operationName:c,fieldResolver:l,typeResolver:u,subscribeFieldResolver:p}=e;let f;const h=Object.create(null);for(const e of i.definitions)switch(e.kind){case v.Kind.OPERATION_DEFINITION:if(null==c){if(void 0!==f)return[new d.GraphQLError("Must provide operation name if query contains multiple operations.")];f=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===c&&(f=e);break;case v.Kind.FRAGMENT_DEFINITION:h[e.name.value]=e}if(!f)return null!=c?[new d.GraphQLError(`Unknown operation named "${c}".`)]:[new d.GraphQLError("Must provide an operation.")];const m=null!==(n=f.variableDefinitions)&&void 0!==n?n:[],y=(0,E.getVariableValues)(r,m,null!=s?s:{},{maxErrors:50});return y.errors?y.errors:{schema:r,fragments:h,rootValue:o,contextValue:a,operation:f,variableValues:y.coerced,fieldResolver:null!=l?l:M,typeResolver:null!=u?u:R,subscribeFieldResolver:null!=p?p:M,errors:[]}}function C(e,t,n,r,i){const o=Object.create(null);let a=!1;for(const[c,l]of i.entries()){const i=x(e,t,n,l,(0,p.addPath)(r,c,t.name));void 0!==i&&(o[c]=i,(0,s.isPromise)(i)&&(a=!0))}return a?(0,u.promiseForObject)(o):o}function x(e,t,n,r,i){var o;const a=j(e.schema,t,r[0]);if(!a)return;const c=a.type,l=null!==(o=a.resolve)&&void 0!==o?o:e.fieldResolver,u=N(e,a,r,t,i);try{const t=l(n,(0,E.getArgumentValues)(a,r[0],e.variableValues),e.contextValue,u);let o;return o=(0,s.isPromise)(t)?t.then((t=>D(e,c,r,u,i,t))):D(e,c,r,u,i,t),(0,s.isPromise)(o)?o.then(void 0,(t=>A((0,h.locatedError)(t,r,(0,p.pathToArray)(i)),c,e))):o}catch(t){return A((0,h.locatedError)(t,r,(0,p.pathToArray)(i)),c,e)}}function N(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function A(e,t,n){if((0,b.isNonNullType)(t))throw e;return n.errors.push(e),null}function D(e,t,n,i,a,c){if(c instanceof Error)throw c;if((0,b.isNonNullType)(t)){const r=D(e,t.ofType,n,i,a,c);if(null===r)throw new Error(`Cannot return null for non-nullable field ${i.parentType.name}.${i.fieldName}.`);return r}return null==c?null:(0,b.isListType)(t)?function(e,t,n,r,i,o){if(!(0,f.isIterableObject)(o))throw new d.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const a=t.ofType;let c=!1;const l=Array.from(o,((t,o)=>{const l=(0,p.addPath)(i,o,void 0);try{let i;return i=(0,s.isPromise)(t)?t.then((t=>D(e,a,n,r,l,t))):D(e,a,n,r,l,t),(0,s.isPromise)(i)?(c=!0,i.then(void 0,(t=>A((0,h.locatedError)(t,n,(0,p.pathToArray)(l)),a,e)))):i}catch(t){return A((0,h.locatedError)(t,n,(0,p.pathToArray)(l)),a,e)}}));return c?Promise.all(l):l}(e,t,n,i,a,c):(0,b.isLeafType)(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${(0,r.inspect)(e)}.serialize(${(0,r.inspect)(t)})\` to return non-nullable value, returned: ${(0,r.inspect)(n)}`);return n}(t,c):(0,b.isAbstractType)(t)?function(e,t,n,r,i,o){var a;const c=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,l=e.contextValue,u=c(o,l,r,t);return(0,s.isPromise)(u)?u.then((a=>I(e,L(a,e,t,n,r,o),n,r,i,o))):I(e,L(u,e,t,n,r,o),n,r,i,o)}(e,t,n,i,a,c):(0,b.isObjectType)(t)?I(e,t,n,i,a,c):void(0,o.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,r.inspect)(t))}function L(e,t,n,i,o,a){if(null==e)throw new d.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,i);if((0,b.isObjectType)(e))throw new d.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new d.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${(0,r.inspect)(a)}, received "${(0,r.inspect)(e)}".`);const s=t.schema.getType(e);if(null==s)throw new d.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,i);if(!(0,b.isObjectType)(s))throw new d.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,i);if(!t.schema.isSubType(n,s))throw new d.GraphQLError(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,i);return s}function I(e,t,n,r,i,o){const a=w(e,t,n);if(t.isTypeOf){const c=t.isTypeOf(o,e.contextValue,r);if((0,s.isPromise)(c))return c.then((r=>{if(!r)throw P(t,o,n);return C(e,t,o,i,a)}));if(!c)throw P(t,o,n)}return C(e,t,o,i,a)}function P(e,t,n){return new d.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,r.inspect)(t)}.`,n)}const R=function(e,t,n,r){if((0,c.isObjectLike)(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r{for(let t=0;tr(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}},6234:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSourceEventStream=f,t.subscribe=async function(e){const{schema:t,document:n,rootValue:r,contextValue:o,variableValues:a,operationName:s,fieldResolver:c,subscribeFieldResolver:l}=e,d=await f(t,n,r,o,a,s,l);return(0,i.isAsyncIterable)(d)?(0,p.mapAsyncIterator)(d,(e=>(0,u.execute)({schema:t,document:n,rootValue:e,contextValue:o,variableValues:a,operationName:s,fieldResolver:c}))):d};var r=n(8002),i=n(8648),o=n(7059),a=n(5822),s=n(1993),c=n(8950),l=n(8840),u=n(192),p=n(6082);async function f(e,t,n,p,f,d,h){(0,u.assertValidExecutionArguments)(e,t,f);const m=(0,u.buildExecutionContext)({schema:e,document:t,rootValue:n,contextValue:p,variableValues:f,operationName:d,subscribeFieldResolver:h});if(!("schema"in m))return{errors:m};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:p}=e,f=t.getSubscriptionType();if(null==f)throw new a.GraphQLError("Schema is not configured to execute subscription operation.",r);const d=(0,c.collectFields)(t,n,i,f,r.selectionSet),[h,m]=[...d.entries()][0],v=(0,u.getFieldDef)(t,f,m[0]);if(!v){const e=m[0].name.value;throw new a.GraphQLError(`The subscription field "${e}" is not defined.`,m)}const y=(0,o.addPath)(void 0,h,f.name),g=(0,u.buildResolveInfo)(e,v,m,f,y);try{var b;const t=(0,l.getArgumentValues)(v,m[0],i),n=e.contextValue,r=null!==(b=v.subscribe)&&void 0!==b?b:e.subscribeFieldResolver,o=await r(p,t,n,g);if(o instanceof Error)throw o;return o}catch(e){throw(0,s.locatedError)(e,m,(0,o.pathToArray)(y))}}(m);if(!(0,i.isAsyncIterable)(e))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,r.inspect)(e)}.`);return e}catch(e){if(e instanceof a.GraphQLError)return{errors:[e]};throw e}}},8840:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArgumentValues=d,t.getDirectiveValues=function(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find((t=>t.name.value===e.name));if(i)return d(e,i,n)},t.getVariableValues=function(e,t,n,r){const s=[],d=null==r?void 0:r.maxErrors;try{const r=function(e,t,n,r){const s={};for(const d of t){const t=d.variable.name.value,m=(0,u.typeFromAST)(e,d.type);if(!(0,l.isInputType)(m)){const e=(0,c.print)(d.type);r(new a.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,d.type));continue}if(!h(n,t)){if(d.defaultValue)s[t]=(0,p.valueFromAST)(d.defaultValue,m);else if((0,l.isNonNullType)(m)){const e=(0,i.inspect)(m);r(new a.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,d))}continue}const v=n[t];if(null===v&&(0,l.isNonNullType)(m)){const e=(0,i.inspect)(m);r(new a.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,d))}else s[t]=(0,f.coerceInputValue)(v,m,((e,n,s)=>{let c=`Variable "$${t}" got invalid value `+(0,i.inspect)(n);e.length>0&&(c+=` at "${t}${(0,o.printPathArray)(e)}"`),r(new a.GraphQLError(c+"; "+s.message,d,void 0,void 0,void 0,s.originalError))}))}return s}(e,t,n,(e=>{if(null!=d&&s.length>=d)throw new a.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");s.push(e)}));if(0===s.length)return{coerced:r}}catch(e){s.push(e)}return{errors:s}};var r=n(2863),i=n(8002),o=n(737),a=n(5822),s=n(2828),c=n(3033),l=n(5003),u=n(5115),p=n(3770),f=n(3679);function d(e,t,n){var o;const u={},f=null!==(o=t.arguments)&&void 0!==o?o:[],d=(0,r.keyMap)(f,(e=>e.name.value));for(const r of e.args){const e=r.name,o=r.type,f=d[e];if(!f){if(void 0!==r.defaultValue)u[e]=r.defaultValue;else if((0,l.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of required type "${(0,i.inspect)(o)}" was not provided.`,t);continue}const m=f.value;let v=m.kind===s.Kind.NULL;if(m.kind===s.Kind.VARIABLE){const t=m.name.value;if(null==n||!h(n,t)){if(void 0!==r.defaultValue)u[e]=r.defaultValue;else if((0,l.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of required type "${(0,i.inspect)(o)}" was provided the variable "$${t}" which was not provided a runtime value.`,m);continue}v=null==n[t]}if(v&&(0,l.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of non-null type "${(0,i.inspect)(o)}" must not be null.`,m);const y=(0,p.valueFromAST)(m,o,n);if(void 0===y)throw new a.GraphQLError(`Argument "${e}" has invalid value ${(0,c.print)(m)}.`,m);u[e]=y}return u}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},9728:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.graphql=function(e){return new Promise((t=>t(c(e))))},t.graphqlSync=function(e){const t=c(e);if((0,r.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t};var r=n(4221),i=n(8370),o=n(9504),a=n(1671),s=n(192);function c(e){const{schema:t,source:n,rootValue:r,contextValue:c,variableValues:l,operationName:u,fieldResolver:p,typeResolver:f}=e,d=(0,a.validateSchema)(t);if(d.length>0)return{errors:d};let h;try{h=(0,i.parse)(n)}catch(e){return{errors:[e]}}const m=(0,o.validate)(t,h);return m.length>0?{errors:m}:(0,s.execute)({schema:t,document:h,rootValue:r,contextValue:c,variableValues:l,operationName:u,fieldResolver:p,typeResolver:f})}},20:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return a.BREAK}}),Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return u.BreakingChangeType}}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return u.DangerousChangeType}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return a.DirectiveLocation}}),Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return c.ExecutableDefinitionsRule}}),Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return c.FieldsOnCorrectTypeRule}}),Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return c.FragmentsOnCompositeTypesRule}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return o.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return o.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return l.GraphQLError}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return o.GraphQLFloat}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return o.GraphQLID}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return o.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return o.GraphQLInt}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return o.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return o.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return o.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return o.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return o.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return o.GraphQLSchema}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return o.GraphQLSpecifiedByDirective}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return o.GraphQLString}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return o.GraphQLUnionType}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return a.Kind}}),Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return c.KnownArgumentNamesRule}}),Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return c.KnownDirectivesRule}}),Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return c.KnownFragmentNamesRule}}),Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return c.KnownTypeNamesRule}}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return a.Lexer}}),Object.defineProperty(t,"Location",{enumerable:!0,get:function(){return a.Location}}),Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return c.LoneAnonymousOperationRule}}),Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return c.LoneSchemaDefinitionRule}}),Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return c.NoDeprecatedCustomRule}}),Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return c.NoFragmentCyclesRule}}),Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return c.NoSchemaIntrospectionCustomRule}}),Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return c.NoUndefinedVariablesRule}}),Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return c.NoUnusedFragmentsRule}}),Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return c.NoUnusedVariablesRule}}),Object.defineProperty(t,"OperationTypeNode",{enumerable:!0,get:function(){return a.OperationTypeNode}}),Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return c.OverlappingFieldsCanBeMergedRule}}),Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return c.PossibleFragmentSpreadsRule}}),Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return c.PossibleTypeExtensionsRule}}),Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return c.ProvidedRequiredArgumentsRule}}),Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return c.ScalarLeafsRule}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return o.SchemaMetaFieldDef}}),Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return c.SingleFieldSubscriptionsRule}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return a.Source}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return a.Token}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return a.TokenKind}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return u.TypeInfo}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return o.TypeKind}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return o.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return o.TypeNameMetaFieldDef}}),Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return c.UniqueArgumentDefinitionNamesRule}}),Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return c.UniqueArgumentNamesRule}}),Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return c.UniqueDirectiveNamesRule}}),Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return c.UniqueDirectivesPerLocationRule}}),Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return c.UniqueEnumValueNamesRule}}),Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return c.UniqueFieldDefinitionNamesRule}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return c.UniqueFragmentNamesRule}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return c.UniqueInputFieldNamesRule}}),Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return c.UniqueOperationNamesRule}}),Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return c.UniqueOperationTypesRule}}),Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return c.UniqueTypeNamesRule}}),Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return c.UniqueVariableNamesRule}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return c.ValidationContext}}),Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return c.ValuesOfCorrectTypeRule}}),Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return c.VariablesAreInputTypesRule}}),Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return c.VariablesInAllowedPositionRule}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return o.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return o.__DirectiveLocation}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return o.__EnumValue}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return o.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return o.__InputValue}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return o.__Schema}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return o.__Type}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return o.__TypeKind}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return o.assertAbstractType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return o.assertCompositeType}}),Object.defineProperty(t,"assertDirective",{enumerable:!0,get:function(){return o.assertDirective}}),Object.defineProperty(t,"assertEnumType",{enumerable:!0,get:function(){return o.assertEnumType}}),Object.defineProperty(t,"assertEnumValueName",{enumerable:!0,get:function(){return o.assertEnumValueName}}),Object.defineProperty(t,"assertInputObjectType",{enumerable:!0,get:function(){return o.assertInputObjectType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return o.assertInputType}}),Object.defineProperty(t,"assertInterfaceType",{enumerable:!0,get:function(){return o.assertInterfaceType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return o.assertLeafType}}),Object.defineProperty(t,"assertListType",{enumerable:!0,get:function(){return o.assertListType}}),Object.defineProperty(t,"assertName",{enumerable:!0,get:function(){return o.assertName}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return o.assertNamedType}}),Object.defineProperty(t,"assertNonNullType",{enumerable:!0,get:function(){return o.assertNonNullType}}),Object.defineProperty(t,"assertNullableType",{enumerable:!0,get:function(){return o.assertNullableType}}),Object.defineProperty(t,"assertObjectType",{enumerable:!0,get:function(){return o.assertObjectType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return o.assertOutputType}}),Object.defineProperty(t,"assertScalarType",{enumerable:!0,get:function(){return o.assertScalarType}}),Object.defineProperty(t,"assertSchema",{enumerable:!0,get:function(){return o.assertSchema}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return o.assertType}}),Object.defineProperty(t,"assertUnionType",{enumerable:!0,get:function(){return o.assertUnionType}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return u.assertValidName}}),Object.defineProperty(t,"assertValidSchema",{enumerable:!0,get:function(){return o.assertValidSchema}}),Object.defineProperty(t,"assertWrappingType",{enumerable:!0,get:function(){return o.assertWrappingType}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return u.astFromValue}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return u.buildASTSchema}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return u.buildClientSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return u.buildSchema}}),Object.defineProperty(t,"coerceInputValue",{enumerable:!0,get:function(){return u.coerceInputValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return u.concatAST}}),Object.defineProperty(t,"createSourceEventStream",{enumerable:!0,get:function(){return s.createSourceEventStream}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return s.defaultFieldResolver}}),Object.defineProperty(t,"defaultTypeResolver",{enumerable:!0,get:function(){return s.defaultTypeResolver}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return u.doTypesOverlap}}),Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return s.execute}}),Object.defineProperty(t,"executeSync",{enumerable:!0,get:function(){return s.executeSync}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return u.extendSchema}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return u.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return u.findDangerousChanges}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return l.formatError}}),Object.defineProperty(t,"getDirectiveValues",{enumerable:!0,get:function(){return s.getDirectiveValues}}),Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:!0,get:function(){return a.getEnterLeaveForKind}}),Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return u.getIntrospectionQuery}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return a.getLocation}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return o.getNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return o.getNullableType}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return u.getOperationAST}}),Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return u.getOperationRootType}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return a.getVisitFn}}),Object.defineProperty(t,"graphql",{enumerable:!0,get:function(){return i.graphql}}),Object.defineProperty(t,"graphqlSync",{enumerable:!0,get:function(){return i.graphqlSync}}),Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return u.introspectionFromSchema}}),Object.defineProperty(t,"introspectionTypes",{enumerable:!0,get:function(){return o.introspectionTypes}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return o.isAbstractType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return o.isCompositeType}}),Object.defineProperty(t,"isConstValueNode",{enumerable:!0,get:function(){return a.isConstValueNode}}),Object.defineProperty(t,"isDefinitionNode",{enumerable:!0,get:function(){return a.isDefinitionNode}}),Object.defineProperty(t,"isDirective",{enumerable:!0,get:function(){return o.isDirective}}),Object.defineProperty(t,"isEnumType",{enumerable:!0,get:function(){return o.isEnumType}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return u.isEqualType}}),Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return a.isExecutableDefinitionNode}}),Object.defineProperty(t,"isInputObjectType",{enumerable:!0,get:function(){return o.isInputObjectType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return o.isInputType}}),Object.defineProperty(t,"isInterfaceType",{enumerable:!0,get:function(){return o.isInterfaceType}}),Object.defineProperty(t,"isIntrospectionType",{enumerable:!0,get:function(){return o.isIntrospectionType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return o.isLeafType}}),Object.defineProperty(t,"isListType",{enumerable:!0,get:function(){return o.isListType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return o.isNamedType}}),Object.defineProperty(t,"isNonNullType",{enumerable:!0,get:function(){return o.isNonNullType}}),Object.defineProperty(t,"isNullableType",{enumerable:!0,get:function(){return o.isNullableType}}),Object.defineProperty(t,"isObjectType",{enumerable:!0,get:function(){return o.isObjectType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return o.isOutputType}}),Object.defineProperty(t,"isRequiredArgument",{enumerable:!0,get:function(){return o.isRequiredArgument}}),Object.defineProperty(t,"isRequiredInputField",{enumerable:!0,get:function(){return o.isRequiredInputField}}),Object.defineProperty(t,"isScalarType",{enumerable:!0,get:function(){return o.isScalarType}}),Object.defineProperty(t,"isSchema",{enumerable:!0,get:function(){return o.isSchema}}),Object.defineProperty(t,"isSelectionNode",{enumerable:!0,get:function(){return a.isSelectionNode}}),Object.defineProperty(t,"isSpecifiedDirective",{enumerable:!0,get:function(){return o.isSpecifiedDirective}}),Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:!0,get:function(){return o.isSpecifiedScalarType}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return o.isType}}),Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:!0,get:function(){return a.isTypeDefinitionNode}}),Object.defineProperty(t,"isTypeExtensionNode",{enumerable:!0,get:function(){return a.isTypeExtensionNode}}),Object.defineProperty(t,"isTypeNode",{enumerable:!0,get:function(){return a.isTypeNode}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return u.isTypeSubTypeOf}}),Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return a.isTypeSystemDefinitionNode}}),Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return a.isTypeSystemExtensionNode}}),Object.defineProperty(t,"isUnionType",{enumerable:!0,get:function(){return o.isUnionType}}),Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return u.isValidNameError}}),Object.defineProperty(t,"isValueNode",{enumerable:!0,get:function(){return a.isValueNode}}),Object.defineProperty(t,"isWrappingType",{enumerable:!0,get:function(){return o.isWrappingType}}),Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return u.lexicographicSortSchema}}),Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return l.locatedError}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(t,"parseConstValue",{enumerable:!0,get:function(){return a.parseConstValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return a.parseType}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return a.parseValue}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return a.print}}),Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return l.printError}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return u.printIntrospectionSchema}}),Object.defineProperty(t,"printLocation",{enumerable:!0,get:function(){return a.printLocation}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return u.printSchema}}),Object.defineProperty(t,"printSourceLocation",{enumerable:!0,get:function(){return a.printSourceLocation}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return u.printType}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return s.responsePathAsArray}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return u.separateOperations}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return c.specifiedRules}}),Object.defineProperty(t,"specifiedScalarTypes",{enumerable:!0,get:function(){return o.specifiedScalarTypes}}),Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:!0,get:function(){return u.stripIgnoredCharacters}}),Object.defineProperty(t,"subscribe",{enumerable:!0,get:function(){return s.subscribe}}),Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return l.syntaxError}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return u.typeFromAST}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.validate}}),Object.defineProperty(t,"validateSchema",{enumerable:!0,get:function(){return o.validateSchema}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return u.valueFromAST}}),Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return u.valueFromASTUntyped}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return r.version}}),Object.defineProperty(t,"versionInfo",{enumerable:!0,get:function(){return r.versionInfo}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return a.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return a.visitInParallel}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return u.visitWithTypeInfo}});var r=n(8696),i=n(9728),o=n(3226),a=n(2178),s=n(9931),c=n(1122),l=n(6972),u=n(9548)},7059:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPath=function(e,t,n){return{prev:e,key:t,typename:n}},t.pathToArray=function(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}},7242:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.devAssert=function(e,t){if(!Boolean(e))throw new Error(t)}},166:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.didYouMean=function(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map((e=>`"${e}"`));switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}},4620:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=function(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}},3317:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identityFunc=function(e){return e}},8002:function(e,t){"use strict";function n(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:n(t,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const r=Math.min(10,e.length),i=e.length-r,o=[];for(let i=0;i1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(e,r);return function(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const i=r.map((([e,r])=>e+": "+n(r,t)));return"{ "+i.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.inspect=function(e){return n(e,[])}},5752:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instanceOf=void 0,n(8002);t.instanceOf=function(e,t){return e instanceof t}},7706:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}},8648:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=function(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}},6609:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterableObject=function(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}},5690:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},4221:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=function(e){return"function"==typeof(null==e?void 0:e.then)}},2863:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyMap=function(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}},7154:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyValMap=function(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}},6124:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapValue=function(e,t){const n=Object.create(null);for(const[r,i]of Object.entries(e))n[r]=t(i,r);return n}},5456:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize3=function(e){let t;return function(n,r,i){void 0===t&&(t=new WeakMap);let o=t.get(n);void 0===o&&(o=new WeakMap,t.set(n,o));let a=o.get(r);void 0===a&&(a=new WeakMap,o.set(r,a));let s=a.get(i);return void 0===s&&(s=e(n,r,i),a.set(i,s)),s}}},5250:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.naturalCompare=function(e,t){let i=0,o=0;for(;i0);let l=0;do{++o,l=10*l+s-n,s=t.charCodeAt(o)}while(r(s)&&l>0);if(cl)return 1}else{if(as)return 1;++i,++o}}return e.length-t.length};const n=48;function r(e){return!isNaN(e)&&n<=e&&e<=57}},737:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printPathArray=function(e){return e.map((e=>"number"==typeof e?"["+e.toString()+"]":"."+e)).join("")}},3179:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promiseForObject=function(e){return Promise.all(Object.values(e)).then((t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n}))}},9915:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promiseReduce=function(e,t,n){let i=n;for(const n of e)i=(0,r.isPromise)(i)?i.then((e=>t(e,n))):t(i,n);return i};var r=n(4221)},8070:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.suggestionList=function(e,t){const n=Object.create(null),o=new i(e),a=Math.floor(.4*e.length)+1;for(const e of t){const t=o.measure(e,a);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const i=n[e]-n[t];return 0!==i?i:(0,r.naturalCompare)(e,t)}))};var r=n(5250);class i{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=o(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=o(n),i=this._inputArray;if(r.lengtht)return;const c=this._rows;for(let e=0;e<=s;e++)c[0][e]=e;for(let e=1;e<=a;e++){const n=c[(e-1)%3],o=c[e%3];let a=o[0]=e;for(let t=1;t<=s;t++){const s=r[e-1]===i[t-1]?0:1;let l=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=c[(e-2)%3][t-2];l=Math.min(l,n+1)}lt)return}const l=c[a%3][s];return l<=t?l:void 0}}function o(e){const t=e.length,n=new Array(t);for(let r=0;ro&&n(t[a-1]);)--a;return t.slice(o,a).join("\n")},t.getBlockStringIndentation=r,t.printBlockString=function(e,t=!1){const n=!e.includes("\n"),r=e.startsWith(" ")||e.startsWith("\t"),i=e.endsWith('"'),o=e.endsWith("\\"),a=!n||i||o||t;let s="";return!a||n&&r||(s+="\n"),s+=e,a&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}},100:function(e,t){"use strict";function n(e){return e>=48&&e<=57}function r(e){return e>=97&&e<=122||e>=65&&e<=90}Object.defineProperty(t,"__esModule",{value:!0}),t.isDigit=n,t.isLetter=r,t.isNameContinue=function(e){return r(e)||n(e)||95===e},t.isNameStart=function(e){return r(e)||95===e}},8333:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0,t.DirectiveLocation=n,function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(n||(t.DirectiveLocation=n={}))},2178:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return p.BREAK}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return h.DirectiveLocation}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return a.Kind}}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return c.Lexer}}),Object.defineProperty(t,"Location",{enumerable:!0,get:function(){return f.Location}}),Object.defineProperty(t,"OperationTypeNode",{enumerable:!0,get:function(){return f.OperationTypeNode}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return r.Source}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return f.Token}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return s.TokenKind}}),Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:!0,get:function(){return p.getEnterLeaveForKind}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return i.getLocation}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return p.getVisitFn}}),Object.defineProperty(t,"isConstValueNode",{enumerable:!0,get:function(){return d.isConstValueNode}}),Object.defineProperty(t,"isDefinitionNode",{enumerable:!0,get:function(){return d.isDefinitionNode}}),Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return d.isExecutableDefinitionNode}}),Object.defineProperty(t,"isSelectionNode",{enumerable:!0,get:function(){return d.isSelectionNode}}),Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:!0,get:function(){return d.isTypeDefinitionNode}}),Object.defineProperty(t,"isTypeExtensionNode",{enumerable:!0,get:function(){return d.isTypeExtensionNode}}),Object.defineProperty(t,"isTypeNode",{enumerable:!0,get:function(){return d.isTypeNode}}),Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return d.isTypeSystemDefinitionNode}}),Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return d.isTypeSystemExtensionNode}}),Object.defineProperty(t,"isValueNode",{enumerable:!0,get:function(){return d.isValueNode}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return l.parse}}),Object.defineProperty(t,"parseConstValue",{enumerable:!0,get:function(){return l.parseConstValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return l.parseType}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return l.parseValue}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return u.print}}),Object.defineProperty(t,"printLocation",{enumerable:!0,get:function(){return o.printLocation}}),Object.defineProperty(t,"printSourceLocation",{enumerable:!0,get:function(){return o.printSourceLocation}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return p.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return p.visitInParallel}});var r=n(2412),i=n(9016),o=n(8038),a=n(2828),s=n(3175),c=n(4274),l=n(8370),u=n(3033),p=n(285),f=n(1807),d=n(1352),h=n(8333)},2828:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0,t.Kind=n,function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(t.Kind=n={}))},4274:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0,t.isPunctuatorTokenKind=function(e){return e===o.TokenKind.BANG||e===o.TokenKind.DOLLAR||e===o.TokenKind.AMP||e===o.TokenKind.PAREN_L||e===o.TokenKind.PAREN_R||e===o.TokenKind.SPREAD||e===o.TokenKind.COLON||e===o.TokenKind.EQUALS||e===o.TokenKind.AT||e===o.TokenKind.BRACKET_L||e===o.TokenKind.BRACKET_R||e===o.TokenKind.BRACE_L||e===o.TokenKind.PIPE||e===o.TokenKind.BRACE_R};var r=n(338),i=n(1807),o=n(3175),a=n(849),s=n(100);class c{constructor(e){const t=new i.Token(o.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==o.TokenKind.EOF)do{if(e.next)e=e.next;else{const t=m(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===o.TokenKind.COMMENT);return e}}function l(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function u(e,t){return p(e.charCodeAt(t))&&f(e.charCodeAt(t+1))}function p(e){return e>=55296&&e<=56319}function f(e){return e>=56320&&e<=57343}function d(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return o.TokenKind.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function h(e,t,n,r,o){const a=e.line,s=1+n-e.lineStart;return new i.Token(t,n,r,a,s,o)}function m(e,t){const n=e.source.body,i=n.length;let a=t;for(;a=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function k(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,r.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function S(e,t){const n=e.source.body,s=n.length,c=e.line,p=1+t-e.lineStart;let f=t+3,h=f,m="";for(;f=t)break;n=a.index+a[0].length,o+=1}return{line:o,column:t+1-n}};var r=n(7706);const i=/\r\n|[\n\r]/g},8370:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0,t.parse=function(e,t){return new u(e,t).parseDocument()},t.parseConstValue=function(e,t){const n=new u(e,t);n.expectToken(a.TokenKind.SOF);const r=n.parseConstValueLiteral();return n.expectToken(a.TokenKind.EOF),r},t.parseType=function(e,t){const n=new u(e,t);n.expectToken(a.TokenKind.SOF);const r=n.parseTypeReference();return n.expectToken(a.TokenKind.EOF),r},t.parseValue=function(e,t){const n=new u(e,t);n.expectToken(a.TokenKind.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(a.TokenKind.EOF),r};var r=n(338),i=n(2828),o=n(1807),a=n(3175),s=n(2412),c=n(8333),l=n(4274);class u{constructor(e,t){const n=(0,s.isSource)(e)?e:new s.Source(e);this._lexer=new l.Lexer(n),this._options=t}parseName(){const e=this.expectToken(a.TokenKind.NAME);return this.node(e,{kind:i.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:i.Kind.DOCUMENT,definitions:this.many(a.TokenKind.SOF,this.parseDefinition,a.TokenKind.EOF)})}parseDefinition(){if(this.peek(a.TokenKind.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===a.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(a.TokenKind.BRACE_L))return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:o.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(a.TokenKind.NAME)&&(n=this.parseName()),this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(a.TokenKind.NAME);switch(e.value){case"query":return o.OperationTypeNode.QUERY;case"mutation":return o.OperationTypeNode.MUTATION;case"subscription":return o.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(a.TokenKind.PAREN_L,this.parseVariableDefinition,a.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:i.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(a.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(a.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(a.TokenKind.DOLLAR),this.node(e,{kind:i.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:i.Kind.SELECTION_SET,selections:this.many(a.TokenKind.BRACE_L,this.parseSelection,a.TokenKind.BRACE_R)})}parseSelection(){return this.peek(a.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(a.TokenKind.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:i.Kind.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(a.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(a.TokenKind.PAREN_L,t,a.TokenKind.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(a.TokenKind.COLON),this.node(t,{kind:i.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(a.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(a.TokenKind.NAME)?this.node(e,{kind:i.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:i.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;const t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)?this.node(t,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case a.TokenKind.BRACKET_L:return this.parseList(e);case a.TokenKind.BRACE_L:return this.parseObject(e);case a.TokenKind.INT:return this._lexer.advance(),this.node(t,{kind:i.Kind.INT,value:t.value});case a.TokenKind.FLOAT:return this._lexer.advance(),this.node(t,{kind:i.Kind.FLOAT,value:t.value});case a.TokenKind.STRING:case a.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case a.TokenKind.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:i.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:i.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:i.Kind.NULL});default:return this.node(t,{kind:i.Kind.ENUM,value:t.value})}case a.TokenKind.DOLLAR:if(e){if(this.expectToken(a.TokenKind.DOLLAR),this._lexer.token.kind===a.TokenKind.NAME){const e=this._lexer.token.value;throw(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable()}throw this.unexpected()}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this._lexer.advance(),this.node(e,{kind:i.Kind.STRING,value:e.value,block:e.kind===a.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:i.Kind.LIST,values:this.any(a.TokenKind.BRACKET_L,(()=>this.parseValueLiteral(e)),a.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:i.Kind.OBJECT,fields:this.any(a.TokenKind.BRACE_L,(()=>this.parseObjectField(e)),a.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(a.TokenKind.COLON),this.node(t,{kind:i.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(a.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(a.TokenKind.AT),this.node(t,{kind:i.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(a.TokenKind.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(a.TokenKind.BRACKET_R),t=this.node(e,{kind:i.Kind.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(a.TokenKind.BANG)?this.node(e,{kind:i.Kind.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:i.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(a.TokenKind.STRING)||this.peek(a.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(a.TokenKind.BRACE_L,this.parseOperationTypeDefinition,a.TokenKind.BRACE_R);return this.node(e,{kind:i.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(a.TokenKind.COLON);const n=this.parseNamedType();return this.node(e,{kind:i.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:i.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(a.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(a.TokenKind.BRACE_L,this.parseFieldDefinition,a.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(a.TokenKind.COLON);const o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:i.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(a.TokenKind.PAREN_L,this.parseInputValueDef,a.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(a.TokenKind.COLON);const r=this.parseTypeReference();let o;this.expectOptionalToken(a.TokenKind.EQUALS)&&(o=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:i.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(e,{kind:i.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(a.TokenKind.EQUALS)?this.delimitedMany(a.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(e,{kind:i.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o})}parseEnumValuesDefinition(){return this.optionalMany(a.TokenKind.BRACE_L,this.parseEnumValueDefinition,a.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:i.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,`${p(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(a.TokenKind.BRACE_L,this.parseInputValueDef,a.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===a.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(a.TokenKind.BRACE_L,this.parseOperationTypeDefinition,a.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:i.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:i.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:i.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:i.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:i.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:i.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(a.TokenKind.AT);const n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:i.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(a.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(c.DirectiveLocation,t.value))return t;throw this.unexpected(e)}node(e,t){var n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation)&&(t.loc=new o.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected ${f(e)}, found ${p(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==a.TokenKind.NAME||t.value!==e)throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${p(t)}.`);this._lexer.advance()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===a.TokenKind.NAME&&t.value===e&&(this._lexer.advance(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected ${p(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}}function p(e){const t=e.value;return f(e.kind)+(null!=t?` "${t}"`:"")}function f(e){return(0,l.isPunctuatorTokenKind)(e)?`"${e}"`:e}t.Parser=u},1352:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isConstValueNode=function e(t){return o(t)&&(t.kind===r.Kind.LIST?t.values.some(e):t.kind===r.Kind.OBJECT?t.fields.some((t=>e(t.value))):t.kind!==r.Kind.VARIABLE)},t.isDefinitionNode=function(e){return i(e)||a(e)||c(e)},t.isExecutableDefinitionNode=i,t.isSelectionNode=function(e){return e.kind===r.Kind.FIELD||e.kind===r.Kind.FRAGMENT_SPREAD||e.kind===r.Kind.INLINE_FRAGMENT},t.isTypeDefinitionNode=s,t.isTypeExtensionNode=l,t.isTypeNode=function(e){return e.kind===r.Kind.NAMED_TYPE||e.kind===r.Kind.LIST_TYPE||e.kind===r.Kind.NON_NULL_TYPE},t.isTypeSystemDefinitionNode=a,t.isTypeSystemExtensionNode=c,t.isValueNode=o;var r=n(2828);function i(e){return e.kind===r.Kind.OPERATION_DEFINITION||e.kind===r.Kind.FRAGMENT_DEFINITION}function o(e){return e.kind===r.Kind.VARIABLE||e.kind===r.Kind.INT||e.kind===r.Kind.FLOAT||e.kind===r.Kind.STRING||e.kind===r.Kind.BOOLEAN||e.kind===r.Kind.NULL||e.kind===r.Kind.ENUM||e.kind===r.Kind.LIST||e.kind===r.Kind.OBJECT}function a(e){return e.kind===r.Kind.SCHEMA_DEFINITION||s(e)||e.kind===r.Kind.DIRECTIVE_DEFINITION}function s(e){return e.kind===r.Kind.SCALAR_TYPE_DEFINITION||e.kind===r.Kind.OBJECT_TYPE_DEFINITION||e.kind===r.Kind.INTERFACE_TYPE_DEFINITION||e.kind===r.Kind.UNION_TYPE_DEFINITION||e.kind===r.Kind.ENUM_TYPE_DEFINITION||e.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function c(e){return e.kind===r.Kind.SCHEMA_EXTENSION||l(e)}function l(e){return e.kind===r.Kind.SCALAR_TYPE_EXTENSION||e.kind===r.Kind.OBJECT_TYPE_EXTENSION||e.kind===r.Kind.INTERFACE_TYPE_EXTENSION||e.kind===r.Kind.UNION_TYPE_EXTENSION||e.kind===r.Kind.ENUM_TYPE_EXTENSION||e.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}},8038:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return i(e.source,(0,r.getLocation)(e.source,e.start))},t.printSourceLocation=i;var r=n(9016);function i(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,s=t.line+a,c=1===t.line?n:0,l=t.column+c,u=`${e.name}:${s}:${l}\n`,p=r.split(/\r\n|[\n\r]/g),f=p[i];if(f.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+o([[s-1+" |",p[i-1]],[`${s} |`,f],["|","^".padStart(l)],[`${s+1} |`,p[i+1]]])}function o(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}},8942:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printString=function(e){return`"${e.replace(n,r)}"`};const n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function r(e){return i[e.charCodeAt(0)]}const i=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},3033:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,r.visit)(e,a)};var r=n(285),i=n(849),o=n(8942);const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>s(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=l("(",s(e.variableDefinitions,", "),")"),n=s([e.operation,s([e.name,t]),s(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+l(" = ",n)+l(" ",s(r," "))},SelectionSet:{leave:({selections:e})=>c(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=l("",e,": ")+t;let a=o+l("(",s(n,", "),")");return a.length>80&&(a=o+l("(\n",u(s(n,"\n")),"\n)")),s([a,s(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+l(" ",s(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>s(["...",l("on ",e),s(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${l("(",s(n,", "),")")} on ${t} ${l("",s(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,i.printBlockString)(e):(0,o.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+s(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+s(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+l("(",s(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>l("",e,"\n")+s(["schema",s(t," "),c(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>l("",e,"\n")+s(["scalar",t,s(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>l("",e,"\n")+s(["type",t,l("implements ",s(n," & ")),s(r," "),c(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>l("",e,"\n")+t+(p(n)?l("(\n",u(s(n,"\n")),"\n)"):l("(",s(n,", "),")"))+": "+r+l(" ",s(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>l("",e,"\n")+s([t+": "+n,l("= ",r),s(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>l("",e,"\n")+s(["interface",t,l("implements ",s(n," & ")),s(r," "),c(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>l("",e,"\n")+s(["union",t,s(n," "),l("= ",s(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>l("",e,"\n")+s(["enum",t,s(n," "),c(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>l("",e,"\n")+s([t,s(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>l("",e,"\n")+s(["input",t,s(n," "),c(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>l("",e,"\n")+"directive @"+t+(p(n)?l("(\n",u(s(n,"\n")),"\n)"):l("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>s(["extend schema",s(e," "),c(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>s(["extend scalar",e,s(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend type",e,l("implements ",s(t," & ")),s(n," "),c(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend interface",e,l("implements ",s(t," & ")),s(n," "),c(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>s(["extend union",e,s(t," "),l("= ",s(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>s(["extend enum",e,s(t," "),c(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>s(["extend input",e,s(t," "),c(n)]," ")}};function s(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function c(e){return l("{\n",u(s(e,"\n")),"\n}")}function l(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function u(e){return l(" ",e.replace(/\n/g,"\n "))}function p(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}},2412:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0,t.isSource=function(e){return(0,o.instanceOf)(e,a)};var r=n(8002),i=n(7242),o=n(5752);class a{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,i.devAssert)(!1,`Body must be a string. Received: ${(0,r.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,i.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,i.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=a},3175:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.TokenKind=n,function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(n||(t.TokenKind=n={}))},285:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=void 0,t.getEnterLeaveForKind=c,t.getVisitFn=function(e,t,n){const{enter:r,leave:i}=c(e,t);return n?i:r},t.visit=function(e,t,n=o.QueryDocumentKeys){const l=new Map;for(const e of Object.values(a.Kind))l.set(e,c(t,e));let u,p,f,d,h=Array.isArray(e),m=[e],v=-1,y=[];const g=[],b=[];let E=e;do{v++;const e=v===m.length,a=e&&0!==y.length;if(e){if(f=0===b.length?void 0:g[g.length-1],p=d,d=b.pop(),a)if(h){p=p.slice();let e=0;for(const[t,n]of y){const r=t-e;null===n?(p.splice(r,1),e++):p[r]=n}}else{p=Object.defineProperties({},Object.getOwnPropertyDescriptors(p));for(const[e,t]of y)p[e]=t}v=u.index,m=u.keys,y=u.edits,h=u.inArray,u=u.prev}else{if(f=d?h?v:m[v]:void 0,p=d?d[f]:E,null==p)continue;d&&g.push(f)}let c;if(!Array.isArray(p)){var T,w;(0,o.isNode)(p)||(0,i.devAssert)(!1,`Invalid AST Node: ${(0,r.inspect)(p)}.`);const n=e?null===(T=l.get(p.kind))||void 0===T?void 0:T.leave:null===(w=l.get(p.kind))||void 0===w?void 0:w.enter;if(c=null==n?void 0:n.call(t,p,f,d,g,b),c===s)break;if(!1===c){if(!e){g.pop();continue}}else if(void 0!==c&&(y.push([f,c]),!e)){if(!(0,o.isNode)(c)){g.pop();continue}p=c}}var _;void 0===c&&a&&y.push([f,p]),e?g.pop():(u={inArray:h,index:v,keys:m,edits:y,prev:u},h=Array.isArray(p),m=h?p:null!==(_=n[p.kind])&&void 0!==_?_:[],v=-1,y=[],d&&b.push(d),d=p)}while(void 0!==u);return 0!==y.length&&(E=y[y.length-1][1]),E},t.visitInParallel=function(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(a.Kind)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;tc((0,y.valueFromASTUntyped)(e,t)),this.extensions=(0,a.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(o=e.extensionASTNodes)&&void 0!==o?o:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,s.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,r.inspect)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,s.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,s.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=Q;class U{constructor(e){var t;this.name=(0,g.assertName)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=(0,a.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>G(e),this._interfaces=()=>q(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,s.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,r.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:z(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function q(e){var t;const n=F(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,s.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function G(e){const t=V(e.fields);return K(t)||(0,s.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,o.mapValue)(t,((t,n)=>{var i;K(t)||(0,s.devAssert)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,s.devAssert)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,r.inspect)(t.resolve)}.`);const o=null!==(i=t.args)&&void 0!==i?i:{};return K(o)||(0,s.devAssert)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,g.assertName)(n),description:t.description,type:t.type,args:B(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,a.toObjMap)(t.extensions),astNode:t.astNode}}))}function B(e){return Object.entries(e).map((([e,t])=>({name:(0,g.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,a.toObjMap)(t.extensions),astNode:t.astNode})))}function K(e){return(0,p.isObjectLike)(e)&&!Array.isArray(e)}function z(e){return(0,o.mapValue)(e,(e=>({description:e.description,type:e.type,args:$(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function $(e){return(0,c.keyValMap)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}t.GraphQLObjectType=U;class H{constructor(e){var t;this.name=(0,g.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,a.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=G.bind(void 0,e),this._interfaces=q.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,s.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,r.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:z(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=H;class W{constructor(e){var t;this.name=(0,g.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,a.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Y.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,s.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,r.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Y(e){const t=F(e.types);return Array.isArray(t)||(0,s.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}t.GraphQLUnionType=W;class J{constructor(e){var t,n,o;this.name=(0,g.assertName)(e.name),this.description=e.description,this.extensions=(0,a.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=(n=this.name,K(o=e.values)||(0,s.devAssert)(!1,`${n} values must be an object with value names as keys.`),Object.entries(o).map((([e,t])=>(K(t)||(0,s.devAssert)(!1,`${n}.${e} must refer to an object with a "value" key representing an internal value but got: ${(0,r.inspect)(t)}.`),{name:(0,g.assertEnumValueName)(e),description:t.description,value:void 0!==t.value?t.value:e,deprecationReason:t.deprecationReason,extensions:(0,a.toObjMap)(t.extensions),astNode:t.astNode})))),this._valueLookup=new Map(this._values.map((e=>[e.value,e]))),this._nameLookup=(0,i.keyMap)(this._values,(e=>e.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new h.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,r.inspect)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=(0,r.inspect)(e);throw new h.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+X(this,t))}const t=this.getValue(e);if(null==t)throw new h.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+X(this,e));return t.value}parseLiteral(e,t){if(e.kind!==m.Kind.ENUM){const t=(0,v.print)(e);throw new h.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+X(this,t),e)}const n=this.getValue(e.value);if(null==n){const t=(0,v.print)(e);throw new h.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+X(this,t),e)}return n.value}toConfig(){const e=(0,c.keyValMap)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function X(e,t){const n=e.getValues().map((e=>e.name)),r=(0,d.suggestionList)(t,n);return(0,u.didYouMean)("the enum value",r)}t.GraphQLEnumType=J;class Z{constructor(e){var t;this.name=(0,g.assertName)(e.name),this.description=e.description,this.extensions=(0,a.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=ee.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=(0,o.mapValue)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ee(e){const t=V(e.fields);return K(t)||(0,s.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,o.mapValue)(t,((t,n)=>(!("resolve"in t)||(0,s.devAssert)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,g.assertName)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,a.toObjMap)(t.extensions),astNode:t.astNode})))}t.GraphQLInputObjectType=Z},7197:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0,t.assertDirective=function(e){if(!f(e))throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL directive.`);return e},t.isDirective=f,t.isSpecifiedDirective=function(e){return b.some((({name:t})=>t===e.name))},t.specifiedDirectives=void 0;var r=n(8002),i=n(7690),o=n(7242),a=n(5752),s=n(5690),c=n(8333),l=n(3058),u=n(2229),p=n(5003);function f(e){return(0,a.instanceOf)(e,d)}class d{constructor(e){var t,n;this.name=(0,l.assertName)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=(0,i.toObjMap)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,o.devAssert)(!1,`@${e.name} locations must be an Array.`);const r=null!==(n=e.args)&&void 0!==n?n:{};(0,s.isObjectLike)(r)&&!Array.isArray(r)||(0,o.devAssert)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=(0,p.defineArguments)(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,p.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=d;const h=new d({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new p.GraphQLNonNull(u.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=h;const m=new d({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new p.GraphQLNonNull(u.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=m;const v="No longer supported";t.DEFAULT_DEPRECATION_REASON=v;const y=new d({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.DirectiveLocation.FIELD_DEFINITION,c.DirectiveLocation.ARGUMENT_DEFINITION,c.DirectiveLocation.INPUT_FIELD_DEFINITION,c.DirectiveLocation.ENUM_VALUE],args:{reason:{type:u.GraphQLString,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:v}}});t.GraphQLDeprecatedDirective=y;const g=new d({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[c.DirectiveLocation.SCALAR],args:{url:{type:new p.GraphQLNonNull(u.GraphQLString),description:"The URL that specifies the behaviour of this scalar."}}});t.GraphQLSpecifiedByDirective=g;const b=Object.freeze([h,m,y,g]);t.specifiedDirectives=b},3226:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return a.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return i.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return a.GraphQLFloat}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return a.GraphQLID}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return i.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return a.GraphQLInt}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return i.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return i.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return i.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return i.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return i.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return r.GraphQLSchema}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return o.GraphQLSpecifiedByDirective}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return a.GraphQLString}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return i.GraphQLUnionType}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return s.SchemaMetaFieldDef}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return s.TypeKind}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return s.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return s.TypeNameMetaFieldDef}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return s.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return s.__DirectiveLocation}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return s.__EnumValue}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return s.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return s.__InputValue}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return s.__Schema}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return s.__Type}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return s.__TypeKind}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return i.assertAbstractType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return i.assertCompositeType}}),Object.defineProperty(t,"assertDirective",{enumerable:!0,get:function(){return o.assertDirective}}),Object.defineProperty(t,"assertEnumType",{enumerable:!0,get:function(){return i.assertEnumType}}),Object.defineProperty(t,"assertEnumValueName",{enumerable:!0,get:function(){return l.assertEnumValueName}}),Object.defineProperty(t,"assertInputObjectType",{enumerable:!0,get:function(){return i.assertInputObjectType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return i.assertInputType}}),Object.defineProperty(t,"assertInterfaceType",{enumerable:!0,get:function(){return i.assertInterfaceType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return i.assertLeafType}}),Object.defineProperty(t,"assertListType",{enumerable:!0,get:function(){return i.assertListType}}),Object.defineProperty(t,"assertName",{enumerable:!0,get:function(){return l.assertName}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return i.assertNamedType}}),Object.defineProperty(t,"assertNonNullType",{enumerable:!0,get:function(){return i.assertNonNullType}}),Object.defineProperty(t,"assertNullableType",{enumerable:!0,get:function(){return i.assertNullableType}}),Object.defineProperty(t,"assertObjectType",{enumerable:!0,get:function(){return i.assertObjectType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return i.assertOutputType}}),Object.defineProperty(t,"assertScalarType",{enumerable:!0,get:function(){return i.assertScalarType}}),Object.defineProperty(t,"assertSchema",{enumerable:!0,get:function(){return r.assertSchema}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return i.assertType}}),Object.defineProperty(t,"assertUnionType",{enumerable:!0,get:function(){return i.assertUnionType}}),Object.defineProperty(t,"assertValidSchema",{enumerable:!0,get:function(){return c.assertValidSchema}}),Object.defineProperty(t,"assertWrappingType",{enumerable:!0,get:function(){return i.assertWrappingType}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return i.getNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return i.getNullableType}}),Object.defineProperty(t,"introspectionTypes",{enumerable:!0,get:function(){return s.introspectionTypes}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return i.isAbstractType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return i.isCompositeType}}),Object.defineProperty(t,"isDirective",{enumerable:!0,get:function(){return o.isDirective}}),Object.defineProperty(t,"isEnumType",{enumerable:!0,get:function(){return i.isEnumType}}),Object.defineProperty(t,"isInputObjectType",{enumerable:!0,get:function(){return i.isInputObjectType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return i.isInputType}}),Object.defineProperty(t,"isInterfaceType",{enumerable:!0,get:function(){return i.isInterfaceType}}),Object.defineProperty(t,"isIntrospectionType",{enumerable:!0,get:function(){return s.isIntrospectionType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return i.isLeafType}}),Object.defineProperty(t,"isListType",{enumerable:!0,get:function(){return i.isListType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return i.isNamedType}}),Object.defineProperty(t,"isNonNullType",{enumerable:!0,get:function(){return i.isNonNullType}}),Object.defineProperty(t,"isNullableType",{enumerable:!0,get:function(){return i.isNullableType}}),Object.defineProperty(t,"isObjectType",{enumerable:!0,get:function(){return i.isObjectType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return i.isOutputType}}),Object.defineProperty(t,"isRequiredArgument",{enumerable:!0,get:function(){return i.isRequiredArgument}}),Object.defineProperty(t,"isRequiredInputField",{enumerable:!0,get:function(){return i.isRequiredInputField}}),Object.defineProperty(t,"isScalarType",{enumerable:!0,get:function(){return i.isScalarType}}),Object.defineProperty(t,"isSchema",{enumerable:!0,get:function(){return r.isSchema}}),Object.defineProperty(t,"isSpecifiedDirective",{enumerable:!0,get:function(){return o.isSpecifiedDirective}}),Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:!0,get:function(){return a.isSpecifiedScalarType}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return i.isType}}),Object.defineProperty(t,"isUnionType",{enumerable:!0,get:function(){return i.isUnionType}}),Object.defineProperty(t,"isWrappingType",{enumerable:!0,get:function(){return i.isWrappingType}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"specifiedScalarTypes",{enumerable:!0,get:function(){return a.specifiedScalarTypes}}),Object.defineProperty(t,"validateSchema",{enumerable:!0,get:function(){return c.validateSchema}});var r=n(6829),i=n(5003),o=n(7197),a=n(2229),s=n(8155),c=n(1671),l=n(3058)},8155:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0,t.isIntrospectionType=function(e){return w.some((({name:t})=>e.name===t))};var r=n(8002),i=n(7706),o=n(3033),a=n(8333),s=n(8115),c=n(2229),l=n(5003);const u=new l.GraphQLObjectType({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:()=>({description:{type:c.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(d))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new l.GraphQLNonNull(d),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:d,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:d,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(p))),resolve:e=>e.getDirectives()}})});t.__Schema=u;const p=new l.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new l.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new l.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(f))),resolve:e=>e.locations},args:{type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(m))),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})});t.__Directive=p;const f=new l.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:a.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:a.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:a.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:a.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:a.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:a.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:a.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:a.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:a.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:a.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:a.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:a.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:a.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:a.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:a.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:a.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:a.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:a.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:a.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=f;const d=new l.GraphQLObjectType({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:()=>({kind:{type:new l.GraphQLNonNull(g),resolve:e=>(0,l.isScalarType)(e)?y.SCALAR:(0,l.isObjectType)(e)?y.OBJECT:(0,l.isInterfaceType)(e)?y.INTERFACE:(0,l.isUnionType)(e)?y.UNION:(0,l.isEnumType)(e)?y.ENUM:(0,l.isInputObjectType)(e)?y.INPUT_OBJECT:(0,l.isListType)(e)?y.LIST:(0,l.isNonNullType)(e)?y.NON_NULL:void(0,i.invariant)(!1,`Unexpected type: "${(0,r.inspect)(e)}".`)},name:{type:c.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:c.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:c.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new l.GraphQLList(new l.GraphQLNonNull(h)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.isObjectType)(e)||(0,l.isInterfaceType)(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new l.GraphQLList(new l.GraphQLNonNull(d)),resolve(e){if((0,l.isObjectType)(e)||(0,l.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new l.GraphQLList(new l.GraphQLNonNull(d)),resolve(e,t,n,{schema:r}){if((0,l.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new l.GraphQLList(new l.GraphQLNonNull(v)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.isEnumType)(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new l.GraphQLList(new l.GraphQLNonNull(m)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.isInputObjectType)(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:d,resolve:e=>"ofType"in e?e.ofType:void 0}})});t.__Type=d;const h=new l.GraphQLObjectType({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:()=>({name:{type:new l.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},args:{type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(m))),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new l.GraphQLNonNull(d),resolve:e=>e.type},isDeprecated:{type:new l.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=h;const m=new l.GraphQLObjectType({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:()=>({name:{type:new l.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},type:{type:new l.GraphQLNonNull(d),resolve:e=>e.type},defaultValue:{type:c.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=(0,s.astFromValue)(n,t);return r?(0,o.print)(r):null}},isDeprecated:{type:new l.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=m;const v=new l.GraphQLObjectType({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:()=>({name:{type:new l.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new l.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});let y;t.__EnumValue=v,t.TypeKind=y,function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(y||(t.TypeKind=y={}));const g=new l.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:y.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:y.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:y.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:y.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:y.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:y.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:y.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:y.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=g;const b={name:"__schema",type:new l.GraphQLNonNull(u),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.SchemaMetaFieldDef=b;const E={name:"__type",type:d,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new l.GraphQLNonNull(c.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.TypeMetaFieldDef=E;const T={name:"__typename",type:new l.GraphQLNonNull(c.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.TypeNameMetaFieldDef=T;const w=Object.freeze([u,p,f,d,h,m,v,g]);t.introspectionTypes=w},2229:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=void 0,t.isSpecifiedScalarType=function(e){return v.some((({name:t})=>e.name===t))},t.specifiedScalarTypes=void 0;var r=n(8002),i=n(5690),o=n(2828),a=n(3033),s=n(5822),c=n(5003);const l=2147483647,u=-2147483648,p=new c.GraphQLScalarType({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(e){const t=y(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new s.GraphQLError(`Int cannot represent non-integer value: ${(0,r.inspect)(t)}`);if(n>l||nl||el||tt.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function d(e,t){const n=(0,u.getNamedType)(e);if(!t.has(n))if(t.add(n),(0,u.isUnionType)(n))for(const e of n.getTypes())d(e,t);else if((0,u.isObjectType)(n)||(0,u.isInterfaceType)(n)){for(const e of n.getInterfaces())d(e,t);for(const e of Object.values(n.getFields())){d(e.type,t);for(const n of e.args)d(n.type,t)}}else if((0,u.isInputObjectType)(n))for(const e of Object.values(n.getFields()))d(e.type,t);return t}t.GraphQLSchema=f},1671:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidSchema=function(e){const t=p(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))},t.validateSchema=p;var r=n(8002),i=n(5822),o=n(1807),a=n(298),s=n(6829),c=n(8155),l=n(7197),u=n(5003);function p(e){if((0,s.assertSchema)(e),e.__validationErrors)return e.__validationErrors;const t=new f(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!(0,u.isObjectType)(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${(0,r.inspect)(n)}.`,null!==(i=d(t,o.OperationTypeNode.QUERY))&&void 0!==i?i:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const a=t.getMutationType();var s;a&&!(0,u.isObjectType)(a)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,r.inspect)(a)}.`,null!==(s=d(t,o.OperationTypeNode.MUTATION))&&void 0!==s?s:a.astNode);const c=t.getSubscriptionType();var l;c&&!(0,u.isObjectType)(c)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,r.inspect)(c)}.`,null!==(l=d(t,o.OperationTypeNode.SUBSCRIPTION))&&void 0!==l?l:c.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if((0,l.isDirective)(n)){h(e,n);for(const i of n.args){var t;h(e,i),(0,u.isInputType)(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${(0,r.inspect)(i.type)}.`,i.astNode),(0,u.isRequiredArgument)(i)&&null!=i.deprecationReason&&e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[k(i.astNode),null===(t=i.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${(0,r.inspect)(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const a=Object.values(o.getFields());for(const t of a)if((0,u.isNonNullType)(t.type)&&(0,u.isInputObjectType)(t.type.ofType)){const o=t.type.ofType,a=r[o.name];if(n.push(t),void 0===a)i(o);else{const t=n.slice(a),r=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map((e=>e.astNode)))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const i of Object.values(n))(0,u.isNamedType)(i)?((0,c.isIntrospectionType)(i)||h(e,i),(0,u.isObjectType)(i)||(0,u.isInterfaceType)(i)?(m(e,i),v(e,i)):(0,u.isUnionType)(i)?b(e,i):(0,u.isEnumType)(i)?E(e,i):(0,u.isInputObjectType)(i)&&(T(e,i),t(i))):e.reportError(`Expected GraphQL named type but got: ${(0,r.inspect)(i)}.`,i.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}class f{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new i.GraphQLError(e,n))}getErrors(){return this._errors}}function d(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((e=>e.operation===t)))||void 0===n?void 0:n.type}function h(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function m(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of n){var i;h(e,s),(0,u.isOutputType)(s.type)||e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${(0,r.inspect)(s.type)}.`,null===(i=s.astNode)||void 0===i?void 0:i.type);for(const n of s.args){const i=n.name;var o,a;h(e,n),(0,u.isInputType)(n.type)||e.reportError(`The type of ${t.name}.${s.name}(${i}:) must be Input Type but got: ${(0,r.inspect)(n.type)}.`,null===(o=n.astNode)||void 0===o?void 0:o.type),(0,u.isRequiredArgument)(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${s.name}(${i}:) cannot be deprecated.`,[k(n.astNode),null===(a=n.astNode)||void 0===a?void 0:a.type])}}}function v(e,t){const n=Object.create(null);for(const i of t.getInterfaces())(0,u.isInterfaceType)(i)?t!==i?n[i.name]?e.reportError(`Type ${t.name} can only implement ${i.name} once.`,w(t,i)):(n[i.name]=!0,g(e,t,i),y(e,t,i)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,w(t,i)):e.reportError(`Type ${(0,r.inspect)(t)} must only implement Interface types, it cannot implement ${(0,r.inspect)(i)}.`,w(t,i))}function y(e,t,n){const i=t.getFields();for(const p of Object.values(n.getFields())){const f=p.name,d=i[f];if(d){var o,s;(0,a.isTypeSubTypeOf)(e.schema,d.type,p.type)||e.reportError(`Interface field ${n.name}.${f} expects type ${(0,r.inspect)(p.type)} but ${t.name}.${f} is type ${(0,r.inspect)(d.type)}.`,[null===(o=p.astNode)||void 0===o?void 0:o.type,null===(s=d.astNode)||void 0===s?void 0:s.type]);for(const i of p.args){const o=i.name,s=d.args.find((e=>e.name===o));var c,l;s?(0,a.isEqualType)(i.type,s.type)||e.reportError(`Interface field argument ${n.name}.${f}(${o}:) expects type ${(0,r.inspect)(i.type)} but ${t.name}.${f}(${o}:) is type ${(0,r.inspect)(s.type)}.`,[null===(c=i.astNode)||void 0===c?void 0:c.type,null===(l=s.astNode)||void 0===l?void 0:l.type]):e.reportError(`Interface field argument ${n.name}.${f}(${o}:) expected but ${t.name}.${f} does not provide it.`,[i.astNode,d.astNode])}for(const r of d.args){const i=r.name;!p.args.find((e=>e.name===i))&&(0,u.isRequiredArgument)(r)&&e.reportError(`Object field ${t.name}.${f} includes required argument ${i} that is missing from the Interface field ${n.name}.${f}.`,[r.astNode,p.astNode])}}else e.reportError(`Interface field ${n.name}.${f} expected but ${t.name} does not provide it.`,[p.astNode,t.astNode,...t.extensionASTNodes])}}function g(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...w(n,i),...w(t,n)])}function b(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const i=Object.create(null);for(const o of n)i[o.name]?e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,_(t,o.name)):(i[o.name]=!0,(0,u.isObjectType)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,r.inspect)(o)}.`,_(t,String(o))))}function E(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)h(e,t)}function T(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var i,o;h(e,a),(0,u.isInputType)(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,r.inspect)(a.type)}.`,null===(i=a.astNode)||void 0===i?void 0:i.type),(0,u.isRequiredInputField)(a)&&null!=a.deprecationReason&&e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[k(a.astNode),null===(o=a.astNode)||void 0===o?void 0:o.type])}}function w(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((e=>e.name.value===t.name))}function _(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((e=>e.name.value===t))}function k(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find((e=>e.name.value===l.GraphQLDeprecatedDirective.name))}},6226:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeInfo=void 0,t.visitWithTypeInfo=function(e,t){return{enter(...n){const r=n[0];e.enter(r);const a=(0,o.getEnterLeaveForKind)(t,r.kind).enter;if(a){const o=a.apply(t,n);return void 0!==o&&(e.leave(r),(0,i.isNode)(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=(0,o.getEnterLeaveForKind)(t,r.kind).leave;let a;return i&&(a=i.apply(t,n)),e.leave(r),a}}};var r=n(2828),i=n(1807),o=n(285),a=n(5003),s=n(8155),c=n(5115);class l{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:u,t&&((0,a.isInputType)(t)&&this._inputTypeStack.push(t),(0,a.isCompositeType)(t)&&this._parentTypeStack.push(t),(0,a.isOutputType)(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case r.Kind.SELECTION_SET:{const e=(0,a.getNamedType)(this.getType());this._parentTypeStack.push((0,a.isCompositeType)(e)?e:void 0);break}case r.Kind.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push((0,a.isOutputType)(i)?i:void 0);break}case r.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case r.Kind.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push((0,a.isObjectType)(n)?n:void 0);break}case r.Kind.INLINE_FRAGMENT:case r.Kind.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?(0,c.typeFromAST)(t,n):(0,a.getNamedType)(this.getType());this._typeStack.push((0,a.isOutputType)(r)?r:void 0);break}case r.Kind.VARIABLE_DEFINITION:{const n=(0,c.typeFromAST)(t,e.type);this._inputTypeStack.push((0,a.isInputType)(n)?n:void 0);break}case r.Kind.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find((t=>t.name===e.name.value)),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push((0,a.isInputType)(r)?r:void 0);break}case r.Kind.LIST:{const e=(0,a.getNullableType)(this.getInputType()),t=(0,a.isListType)(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,a.isInputType)(t)?t:void 0);break}case r.Kind.OBJECT_FIELD:{const t=(0,a.getNamedType)(this.getInputType());let n,r;(0,a.isInputObjectType)(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push((0,a.isInputType)(n)?n:void 0);break}case r.Kind.ENUM:{const t=(0,a.getNamedType)(this.getInputType());let n;(0,a.isEnumType)(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case r.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case r.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case r.Kind.DIRECTIVE:this._directive=null;break;case r.Kind.OPERATION_DEFINITION:case r.Kind.INLINE_FRAGMENT:case r.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case r.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case r.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case r.Kind.LIST:case r.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case r.Kind.ENUM:this._enumValue=null}}}function u(e,t,n){const r=n.name.value;return r===s.SchemaMetaFieldDef.name&&e.getQueryType()===t?s.SchemaMetaFieldDef:r===s.TypeMetaFieldDef.name&&e.getQueryType()===t?s.TypeMetaFieldDef:r===s.TypeNameMetaFieldDef.name&&(0,a.isCompositeType)(t)?s.TypeNameMetaFieldDef:(0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)?t.getFields()[r]:void 0}t.TypeInfo=l},6526:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidName=function(e){const t=a(e);if(t)throw t;return e},t.isValidNameError=a;var r=n(7242),i=n(5822),o=n(3058);function a(e){if("string"==typeof e||(0,r.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new i.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,o.assertName)(e)}catch(e){return e}}},8115:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.astFromValue=function e(t,n){if((0,l.isNonNullType)(n)){const r=e(t,n.ofType);return(null==r?void 0:r.kind)===s.Kind.NULL?null:r}if(null===t)return{kind:s.Kind.NULL};if(void 0===t)return null;if((0,l.isListType)(n)){const r=n.ofType;if((0,a.isIterableObject)(t)){const n=[];for(const i of t){const t=e(i,r);null!=t&&n.push(t)}return{kind:s.Kind.LIST,values:n}}return e(t,r)}if((0,l.isInputObjectType)(n)){if(!(0,o.isObjectLike)(t))return null;const r=[];for(const i of Object.values(n.getFields())){const n=e(t[i.name],i.type);n&&r.push({kind:s.Kind.OBJECT_FIELD,name:{kind:s.Kind.NAME,value:i.name},value:n})}return{kind:s.Kind.OBJECT,fields:r}}if((0,l.isLeafType)(n)){const e=n.serialize(t);if(null==e)return null;if("boolean"==typeof e)return{kind:s.Kind.BOOLEAN,value:e};if("number"==typeof e&&Number.isFinite(e)){const t=String(e);return u.test(t)?{kind:s.Kind.INT,value:t}:{kind:s.Kind.FLOAT,value:t}}if("string"==typeof e)return(0,l.isEnumType)(n)?{kind:s.Kind.ENUM,value:e}:n===c.GraphQLID&&u.test(e)?{kind:s.Kind.INT,value:e}:{kind:s.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${(0,r.inspect)(e)}.`)}(0,i.invariant)(!1,"Unexpected input type: "+(0,r.inspect)(n))};var r=n(8002),i=n(7706),o=n(5690),a=n(6609),s=n(2828),c=n(2229),l=n(5003);const u=/^-?(?:0|[1-9][0-9]*)$/},2906:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildASTSchema=u,t.buildSchema=function(e,t){return u((0,o.parse)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})};var r=n(7242),i=n(2828),o=n(8370),a=n(9504),s=n(6829),c=n(7197),l=n(3242);function u(e,t){null!=e&&e.kind===i.Kind.DOCUMENT||(0,r.devAssert)(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&(0,a.assertValidSDL)(e);const n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},o=(0,l.extendSchemaImpl)(n,e,t);if(null==o.astNode)for(const e of o.types)switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e}const u=[...o.directives,...c.specifiedDirectives.filter((e=>o.directives.every((t=>t.name!==e.name))))];return new s.GraphQLSchema({...o,directives:u})}},8686:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildClientSchema=function(e,t){(0,a.isObjectLike)(e)&&(0,a.isObjectLike)(e.__schema)||(0,i.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,r.inspect)(e)}.`);const n=e.__schema,h=(0,o.keyValMap)(n.types,(e=>e.name),(e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case p.TypeKind.SCALAR:return i=e,new f.GraphQLScalarType({name:i.name,description:i.description,specifiedByURL:i.specifiedByURL});case p.TypeKind.OBJECT:return n=e,new f.GraphQLObjectType({name:n.name,description:n.description,interfaces:()=>_(n),fields:()=>k(n)});case p.TypeKind.INTERFACE:return t=e,new f.GraphQLInterfaceType({name:t.name,description:t.description,interfaces:()=>_(t),fields:()=>k(t)});case p.TypeKind.UNION:return function(e){if(!e.possibleTypes){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new f.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(T)})}(e);case p.TypeKind.ENUM:return function(e){if(!e.enumValues){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new f.GraphQLEnumType({name:e.name,description:e.description,values:(0,o.keyValMap)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}(e);case p.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new f.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>O(e.inputFields)})}(e)}var t,n,i;const a=(0,r.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${a}.`)}(e)));for(const e of[...u.specifiedScalarTypes,...p.introspectionTypes])h[e.name]&&(h[e.name]=e);const m=n.queryType?T(n.queryType):null,v=n.mutationType?T(n.mutationType):null,y=n.subscriptionType?T(n.subscriptionType):null,g=n.directives?n.directives.map((function(e){if(!e.args){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new l.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:O(e.args)})})):[];return new c.GraphQLSchema({description:n.description,query:m,mutation:v,subscription:y,types:Object.values(h),directives:g,assumeValid:null==t?void 0:t.assumeValid});function b(e){if(e.kind===p.TypeKind.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new f.GraphQLList(b(t))}if(e.kind===p.TypeKind.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=b(t);return new f.GraphQLNonNull((0,f.assertNullableType)(n))}return E(e)}function E(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${(0,r.inspect)(e)}.`);const n=h[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function T(e){return(0,f.assertObjectType)(E(e))}function w(e){return(0,f.assertInterfaceType)(E(e))}function _(e){if(null===e.interfaces&&e.kind===p.TypeKind.INTERFACE)return[];if(!e.interfaces){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(w)}function k(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${(0,r.inspect)(e)}.`);return(0,o.keyValMap)(e.fields,(e=>e.name),S)}function S(e){const t=b(e.type);if(!(0,f.isOutputType)(t)){const e=(0,r.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:O(e.args)}}function O(e){return(0,o.keyValMap)(e,(e=>e.name),C)}function C(e){const t=b(e.type);if(!(0,f.isInputType)(t)){const e=(0,r.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?(0,d.valueFromAST)((0,s.parseValue)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}};var r=n(8002),i=n(7242),o=n(7154),a=n(5690),s=n(8370),c=n(6829),l=n(7197),u=n(2229),p=n(8155),f=n(5003),d=n(3770)},3679:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coerceInputValue=function(e,t,n=d){return h(e,t,n,void 0)};var r=n(8002),i=n(7706),o=n(166),a=n(5690),s=n(8070),c=n(737),l=n(7059),u=n(6609),p=n(5822),f=n(5003);function d(e,t,n){let i="Invalid value "+(0,r.inspect)(t);throw e.length>0&&(i+=` at "value${(0,c.printPathArray)(e)}"`),n.message=i+": "+n.message,n}function h(e,t,n,c){if((0,f.isNonNullType)(t))return null!=e?h(e,t.ofType,n,c):void n((0,l.pathToArray)(c),e,new p.GraphQLError(`Expected non-nullable type "${(0,r.inspect)(t)}" not to be null.`));if(null==e)return null;if((0,f.isListType)(t)){const r=t.ofType;return(0,u.isIterableObject)(e)?Array.from(e,((e,t)=>{const i=(0,l.addPath)(c,t,void 0);return h(e,r,n,i)})):[h(e,r,n,c)]}if((0,f.isInputObjectType)(t)){if(!(0,a.isObjectLike)(e))return void n((0,l.pathToArray)(c),e,new p.GraphQLError(`Expected type "${t.name}" to be an object.`));const i={},u=t.getFields();for(const o of Object.values(u)){const a=e[o.name];if(void 0!==a)i[o.name]=h(a,o.type,n,(0,l.addPath)(c,o.name,t.name));else if(void 0!==o.defaultValue)i[o.name]=o.defaultValue;else if((0,f.isNonNullType)(o.type)){const t=(0,r.inspect)(o.type);n((0,l.pathToArray)(c),e,new p.GraphQLError(`Field "${o.name}" of required type "${t}" was not provided.`))}}for(const r of Object.keys(e))if(!u[r]){const i=(0,s.suggestionList)(r,Object.keys(t.getFields()));n((0,l.pathToArray)(c),e,new p.GraphQLError(`Field "${r}" is not defined by type "${t.name}".`+(0,o.didYouMean)(i)))}return i}if((0,f.isLeafType)(t)){let r;try{r=t.parseValue(e)}catch(r){return void(r instanceof p.GraphQLError?n((0,l.pathToArray)(c),e,r):n((0,l.pathToArray)(c),e,new p.GraphQLError(`Expected type "${t.name}". `+r.message,void 0,void 0,void 0,void 0,r)))}return void 0===r&&n((0,l.pathToArray)(c),e,new p.GraphQLError(`Expected type "${t.name}".`)),r}(0,i.invariant)(!1,"Unexpected input type: "+(0,r.inspect)(t))}},6078:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAST=function(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:r.Kind.DOCUMENT,definitions:t}};var r=n(2828)},3242:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSchema=function(e,t,n){(0,f.assertSchema)(e),null!=t&&t.kind===c.Kind.DOCUMENT||(0,s.devAssert)(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&(0,u.assertValidSDLExtension)(t,e);const r=e.toConfig(),i=g(r,t,n);return r===i?e:new f.GraphQLSchema(i)},t.extendSchemaImpl=g;var r=n(2863),i=n(8002),o=n(6124),a=n(7706),s=n(7242),c=n(2828),l=n(1352),u=n(9504),p=n(8840),f=n(6829),d=n(2229),h=n(8155),m=n(7197),v=n(5003),y=n(3770);function g(e,t,n){var r,s,u,p;const f=[],g=Object.create(null),w=[];let _;const k=[];for(const e of t.definitions)if(e.kind===c.Kind.SCHEMA_DEFINITION)_=e;else if(e.kind===c.Kind.SCHEMA_EXTENSION)k.push(e);else if((0,l.isTypeDefinitionNode)(e))f.push(e);else if((0,l.isTypeExtensionNode)(e)){const t=e.name.value,n=g[t];g[t]=n?n.concat([e]):[e]}else e.kind===c.Kind.DIRECTIVE_DEFINITION&&w.push(e);if(0===Object.keys(g).length&&0===f.length&&0===w.length&&0===k.length&&null==_)return e;const S=Object.create(null);for(const t of e.types)S[t.name]=(O=t,(0,h.isIntrospectionType)(O)||(0,d.isSpecifiedScalarType)(O)?O:(0,v.isScalarType)(O)?function(e){var t;const n=e.toConfig(),r=null!==(t=g[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=null!==(o=T(e))&&void 0!==o?o:i}return new v.GraphQLScalarType({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(O):(0,v.isObjectType)(O)?function(e){var t;const n=e.toConfig(),r=null!==(t=g[n.name])&&void 0!==t?t:[];return new v.GraphQLObjectType({...n,interfaces:()=>[...e.getInterfaces().map(A),...Q(r)],fields:()=>({...(0,o.mapValue)(n.fields,D),...M(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(O):(0,v.isInterfaceType)(O)?function(e){var t;const n=e.toConfig(),r=null!==(t=g[n.name])&&void 0!==t?t:[];return new v.GraphQLInterfaceType({...n,interfaces:()=>[...e.getInterfaces().map(A),...Q(r)],fields:()=>({...(0,o.mapValue)(n.fields,D),...M(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(O):(0,v.isUnionType)(O)?function(e){var t;const n=e.toConfig(),r=null!==(t=g[n.name])&&void 0!==t?t:[];return new v.GraphQLUnionType({...n,types:()=>[...e.getTypes().map(A),...U(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(O):(0,v.isEnumType)(O)?function(e){var t;const n=e.toConfig(),r=null!==(t=g[e.name])&&void 0!==t?t:[];return new v.GraphQLEnumType({...n,values:{...n.values,...V(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(O):(0,v.isInputObjectType)(O)?function(e){var t;const n=e.toConfig(),r=null!==(t=g[n.name])&&void 0!==t?t:[];return new v.GraphQLInputObjectType({...n,fields:()=>({...(0,o.mapValue)(n.fields,(e=>({...e,type:N(e.type)}))),...F(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(O):void(0,a.invariant)(!1,"Unexpected type: "+(0,i.inspect)(O)));var O;for(const e of f){var C;const t=e.name.value;S[t]=null!==(C=b[t])&&void 0!==C?C:q(e)}const x={query:e.query&&A(e.query),mutation:e.mutation&&A(e.mutation),subscription:e.subscription&&A(e.subscription),..._&&I([_]),...I(k)};return{description:null===(r=_)||void 0===r||null===(s=r.description)||void 0===s?void 0:s.value,...x,types:Object.values(S),directives:[...e.directives.map((function(e){const t=e.toConfig();return new m.GraphQLDirective({...t,args:(0,o.mapValue)(t.args,L)})})),...w.map((function(e){var t;return new m.GraphQLDirective({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:j(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(u=_)&&void 0!==u?u:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(k),assumeValid:null!==(p=null==n?void 0:n.assumeValid)&&void 0!==p&&p};function N(e){return(0,v.isListType)(e)?new v.GraphQLList(N(e.ofType)):(0,v.isNonNullType)(e)?new v.GraphQLNonNull(N(e.ofType)):A(e)}function A(e){return S[e.name]}function D(e){return{...e,type:N(e.type),args:e.args&&(0,o.mapValue)(e.args,L)}}function L(e){return{...e,type:N(e.type)}}function I(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=P(n.type)}return t}function P(e){var t;const n=e.name.value,r=null!==(t=b[n])&&void 0!==t?t:S[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function R(e){return e.kind===c.Kind.LIST_TYPE?new v.GraphQLList(R(e.type)):e.kind===c.Kind.NON_NULL_TYPE?new v.GraphQLNonNull(R(e.type)):P(e)}function M(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:R(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:j(n.arguments),deprecationReason:E(n),astNode:n}}}return t}function j(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=R(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:(0,y.valueFromAST)(e.defaultValue,t),deprecationReason:E(e),astNode:e}}return n}function F(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=R(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:(0,y.valueFromAST)(n.defaultValue,e),deprecationReason:E(n),astNode:n}}}return t}function V(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:E(n),astNode:n}}}return t}function Q(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(P))&&void 0!==t?t:[]}))}function U(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(P))&&void 0!==t?t:[]}))}function q(e){var t;const n=e.name.value,r=null!==(t=g[n])&&void 0!==t?t:[];switch(e.kind){case c.Kind.OBJECT_TYPE_DEFINITION:{var o;const t=[e,...r];return new v.GraphQLObjectType({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>Q(t),fields:()=>M(t),astNode:e,extensionASTNodes:r})}case c.Kind.INTERFACE_TYPE_DEFINITION:{var s;const t=[e,...r];return new v.GraphQLInterfaceType({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,interfaces:()=>Q(t),fields:()=>M(t),astNode:e,extensionASTNodes:r})}case c.Kind.ENUM_TYPE_DEFINITION:{var l;const t=[e,...r];return new v.GraphQLEnumType({name:n,description:null===(l=e.description)||void 0===l?void 0:l.value,values:V(t),astNode:e,extensionASTNodes:r})}case c.Kind.UNION_TYPE_DEFINITION:{var u;const t=[e,...r];return new v.GraphQLUnionType({name:n,description:null===(u=e.description)||void 0===u?void 0:u.value,types:()=>U(t),astNode:e,extensionASTNodes:r})}case c.Kind.SCALAR_TYPE_DEFINITION:var p;return new v.GraphQLScalarType({name:n,description:null===(p=e.description)||void 0===p?void 0:p.value,specifiedByURL:T(e),astNode:e,extensionASTNodes:r});case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var f;const t=[e,...r];return new v.GraphQLInputObjectType({name:n,description:null===(f=e.description)||void 0===f?void 0:f.value,fields:()=>F(t),astNode:e,extensionASTNodes:r})}}(0,a.invariant)(!1,"Unexpected type definition node: "+(0,i.inspect)(e))}}const b=(0,r.keyMap)([...d.specifiedScalarTypes,...h.introspectionTypes],(e=>e.name));function E(e){const t=(0,p.getDirectiveValues)(m.GraphQLDeprecatedDirective,e);return null==t?void 0:t.reason}function T(e){const t=(0,p.getDirectiveValues)(m.GraphQLSpecifiedByDirective,e);return null==t?void 0:t.url}},3298:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DangerousChangeType=t.BreakingChangeType=void 0,t.findBreakingChanges=function(e,t){return h(e,t).filter((e=>e.type in f))},t.findDangerousChanges=function(e,t){return h(e,t).filter((e=>e.type in d))};var r=n(2863),i=n(8002),o=n(7706),a=n(5250),s=n(3033),c=n(285),l=n(2229),u=n(5003),p=n(8115);let f,d;function h(e,t){return[...v(e,t),...m(e,t)]}function m(e,t){const n=[],r=C(e.getDirectives(),t.getDirectives());for(const e of r.removed)n.push({type:f.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,t]of r.persisted){const r=C(e.args,t.args);for(const t of r.added)(0,u.isRequiredArgument)(t)&&n.push({type:f.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of r.removed)n.push({type:f.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:f.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const r of e.locations)t.locations.includes(r)||n.push({type:f.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}function v(e,t){const n=[],r=C(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of r.removed)n.push({type:f.TYPE_REMOVED,description:(0,l.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,t]of r.persisted)(0,u.isEnumType)(e)&&(0,u.isEnumType)(t)?n.push(...b(e,t)):(0,u.isUnionType)(e)&&(0,u.isUnionType)(t)?n.push(...g(e,t)):(0,u.isInputObjectType)(e)&&(0,u.isInputObjectType)(t)?n.push(...y(e,t)):(0,u.isObjectType)(e)&&(0,u.isObjectType)(t)||(0,u.isInterfaceType)(e)&&(0,u.isInterfaceType)(t)?n.push(...T(e,t),...E(e,t)):e.constructor!==t.constructor&&n.push({type:f.TYPE_CHANGED_KIND,description:`${e.name} changed from ${S(e)} to ${S(t)}.`});return n}function y(e,t){const n=[],r=C(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.added)(0,u.isRequiredInputField)(t)?n.push({type:f.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:d.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of r.removed)n.push({type:f.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted)k(t.type,i.type)||n.push({type:f.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function g(e,t){const n=[],r=C(e.getTypes(),t.getTypes());for(const t of r.added)n.push({type:d.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of r.removed)n.push({type:f.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function b(e,t){const n=[],r=C(e.getValues(),t.getValues());for(const t of r.added)n.push({type:d.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of r.removed)n.push({type:f.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function E(e,t){const n=[],r=C(e.getInterfaces(),t.getInterfaces());for(const t of r.added)n.push({type:d.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of r.removed)n.push({type:f.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function T(e,t){const n=[],r=C(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.removed)n.push({type:f.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted)n.push(...w(e,t,i)),_(t.type,i.type)||n.push({type:f.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function w(e,t,n){const r=[],i=C(t.args,n.args);for(const n of i.removed)r.push({type:f.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,o]of i.persisted)if(k(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const i=O(n.defaultValue,n.type),a=O(o.defaultValue,o.type);i!==a&&r.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${a}.`})}}else r.push({type:f.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`});for(const n of i.added)(0,u.isRequiredArgument)(n)?r.push({type:f.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:d.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}function _(e,t){return(0,u.isListType)(e)?(0,u.isListType)(t)&&_(e.ofType,t.ofType)||(0,u.isNonNullType)(t)&&_(e,t.ofType):(0,u.isNonNullType)(e)?(0,u.isNonNullType)(t)&&_(e.ofType,t.ofType):(0,u.isNamedType)(t)&&e.name===t.name||(0,u.isNonNullType)(t)&&_(e,t.ofType)}function k(e,t){return(0,u.isListType)(e)?(0,u.isListType)(t)&&k(e.ofType,t.ofType):(0,u.isNonNullType)(e)?(0,u.isNonNullType)(t)&&k(e.ofType,t.ofType)||!(0,u.isNonNullType)(t)&&k(e.ofType,t):(0,u.isNamedType)(t)&&e.name===t.name}function S(e){return(0,u.isScalarType)(e)?"a Scalar type":(0,u.isObjectType)(e)?"an Object type":(0,u.isInterfaceType)(e)?"an Interface type":(0,u.isUnionType)(e)?"a Union type":(0,u.isEnumType)(e)?"an Enum type":(0,u.isInputObjectType)(e)?"an Input type":void(0,o.invariant)(!1,"Unexpected type: "+(0,i.inspect)(e))}function O(e,t){const n=(0,p.astFromValue)(e,t);null!=n||(0,o.invariant)(!1);const r=(0,c.visit)(n,{ObjectValue(e){const t=[...e.fields];return t.sort(((e,t)=>(0,a.naturalCompare)(e.name.value,t.name.value))),{...e,fields:t}}});return(0,s.print)(r)}function C(e,t){const n=[],i=[],o=[],a=(0,r.keyMap)(e,(({name:e})=>e)),s=(0,r.keyMap)(t,(({name:e})=>e));for(const t of e){const e=s[t.name];void 0===e?i.push(t):o.push([t,e])}for(const e of t)void 0===a[e.name]&&n.push(e);return{added:n,persisted:o,removed:i}}t.BreakingChangeType=f,function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(f||(t.BreakingChangeType=f={})),t.DangerousChangeType=d,function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(d||(t.DangerousChangeType=d={}))},9363:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIntrospectionQuery=function(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"";function o(e){return t.inputValueDeprecation?e:""}return`\n query IntrospectionQuery {\n __schema {\n ${t.schemaDescription?n:""}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${i}\n locations\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${o("isDeprecated")}\n ${o("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n `}},9535:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationAST=function(e,t){let n=null;for(const o of e.definitions){var i;if(o.kind===r.Kind.OPERATION_DEFINITION)if(null==t){if(n)return null;n=o}else if((null===(i=o.name)||void 0===i?void 0:i.value)===t)return o}return n};var r=n(2828)},8678:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationRootType=function(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new r.GraphQLError("Schema does not define the required query root type.",t);return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new r.GraphQLError("Schema is not configured for mutations.",t);return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new r.GraphQLError("Schema is not configured for subscriptions.",t);return n}throw new r.GraphQLError("Can only have query, mutation and subscription operations.",t)};var r=n(5822)},9548:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return _.BreakingChangeType}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return _.DangerousChangeType}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return v.TypeInfo}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return w.assertValidName}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return m.astFromValue}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return c.buildASTSchema}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return s.buildClientSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return c.buildSchema}}),Object.defineProperty(t,"coerceInputValue",{enumerable:!0,get:function(){return y.coerceInputValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return g.concatAST}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return T.doTypesOverlap}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return l.extendSchema}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return _.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return _.findDangerousChanges}}),Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return r.getIntrospectionQuery}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return i.getOperationAST}}),Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return o.getOperationRootType}}),Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return a.introspectionFromSchema}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return T.isEqualType}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return T.isTypeSubTypeOf}}),Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return w.isValidNameError}}),Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return u.lexicographicSortSchema}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return p.printIntrospectionSchema}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return p.printSchema}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return p.printType}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return b.separateOperations}}),Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:!0,get:function(){return E.stripIgnoredCharacters}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return f.typeFromAST}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return d.valueFromAST}}),Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return h.valueFromASTUntyped}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return v.visitWithTypeInfo}});var r=n(9363),i=n(9535),o=n(8678),a=n(8039),s=n(8686),c=n(2906),l=n(3242),u=n(8163),p=n(2821),f=n(5115),d=n(3770),h=n(7784),m=n(8115),v=n(6226),y=n(3679),g=n(6078),b=n(8243),E=n(2307),T=n(298),w=n(6526),_=n(3298)},8039:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.introspectionFromSchema=function(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t},s=(0,i.parse)((0,a.getIntrospectionQuery)(n)),c=(0,o.executeSync)({schema:e,document:s});return!c.errors&&c.data||(0,r.invariant)(!1),c.data};var r=n(7706),i=n(8370),o=n(192),a=n(9363)},8163:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lexicographicSortSchema=function(e){const t=e.toConfig(),n=(0,o.keyValMap)(f(t.types),(e=>e.name),(function(e){if((0,u.isScalarType)(e)||(0,l.isIntrospectionType)(e))return e;if((0,u.isObjectType)(e)){const t=e.toConfig();return new u.GraphQLObjectType({...t,interfaces:()=>g(t.interfaces),fields:()=>y(t.fields)})}if((0,u.isInterfaceType)(e)){const t=e.toConfig();return new u.GraphQLInterfaceType({...t,interfaces:()=>g(t.interfaces),fields:()=>y(t.fields)})}if((0,u.isUnionType)(e)){const t=e.toConfig();return new u.GraphQLUnionType({...t,types:()=>g(t.types)})}if((0,u.isEnumType)(e)){const t=e.toConfig();return new u.GraphQLEnumType({...t,values:p(t.values,(e=>e))})}if((0,u.isInputObjectType)(e)){const t=e.toConfig();return new u.GraphQLInputObjectType({...t,fields:()=>p(t.fields,(e=>({...e,type:a(e.type)})))})}(0,i.invariant)(!1,"Unexpected type: "+(0,r.inspect)(e))}));return new s.GraphQLSchema({...t,types:Object.values(n),directives:f(t.directives).map((function(e){const t=e.toConfig();return new c.GraphQLDirective({...t,locations:d(t.locations,(e=>e)),args:v(t.args)})})),query:m(t.query),mutation:m(t.mutation),subscription:m(t.subscription)});function a(e){return(0,u.isListType)(e)?new u.GraphQLList(a(e.ofType)):(0,u.isNonNullType)(e)?new u.GraphQLNonNull(a(e.ofType)):h(e)}function h(e){return n[e.name]}function m(e){return e&&h(e)}function v(e){return p(e,(e=>({...e,type:a(e.type)})))}function y(e){return p(e,(e=>({...e,type:a(e.type),args:e.args&&v(e.args)})))}function g(e){return f(e).map(h)}};var r=n(8002),i=n(7706),o=n(7154),a=n(5250),s=n(6829),c=n(7197),l=n(8155),u=n(5003);function p(e,t){const n=Object.create(null),r=d(Object.entries(e),(([e])=>e));for(const[e,i]of r)n[e]=t(i);return n}function f(e){return d(e,(e=>e.name))}function d(e,t){return e.slice().sort(((e,n)=>{const r=t(e),i=t(n);return(0,a.naturalCompare)(r,i)}))}},2821:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printIntrospectionSchema=function(e){return h(e,u.isSpecifiedDirective,c.isIntrospectionType)},t.printSchema=function(e){return h(e,(e=>!(0,u.isSpecifiedDirective)(e)),d)},t.printType=v;var r=n(8002),i=n(7706),o=n(2828),a=n(3033),s=n(849),c=n(8155),l=n(2229),u=n(7197),p=n(5003),f=n(8115);function d(e){return!(0,l.isSpecifiedScalarType)(e)&&!(0,c.isIntrospectionType)(e)}function h(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[m(e),...r.map((e=>function(e){return _(e)+"directive @"+e.name+E(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...i.map((e=>v(e)))].filter(Boolean).join("\n\n")}function m(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),_(e)+`schema {\n${t.join("\n")}\n}`}function v(e){return(0,p.isScalarType)(e)?function(e){return _(e)+`scalar ${e.name}`+(null==(t=e).specifiedByURL?"":` @specifiedBy(url: ${(0,a.print)({kind:o.Kind.STRING,value:t.specifiedByURL})})`);var t}(e):(0,p.isObjectType)(e)?function(e){return _(e)+`type ${e.name}`+y(e)+g(e)}(e):(0,p.isInterfaceType)(e)?function(e){return _(e)+`interface ${e.name}`+y(e)+g(e)}(e):(0,p.isUnionType)(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return _(e)+"union "+e.name+n}(e):(0,p.isEnumType)(e)?function(e){const t=e.getValues().map(((e,t)=>_(e," ",!t)+" "+e.name+w(e.deprecationReason)));return _(e)+`enum ${e.name}`+b(t)}(e):(0,p.isInputObjectType)(e)?function(e){const t=Object.values(e.getFields()).map(((e,t)=>_(e," ",!t)+" "+T(e)));return _(e)+`input ${e.name}`+b(t)}(e):void(0,i.invariant)(!1,"Unexpected type: "+(0,r.inspect)(e))}function y(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function g(e){return b(Object.values(e.getFields()).map(((e,t)=>_(e," ",!t)+" "+e.name+E(e.args," ")+": "+String(e.type)+w(e.deprecationReason))))}function b(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function E(e,t=""){return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(T).join(", ")+")":"(\n"+e.map(((e,n)=>_(e," "+t,!n)+" "+t+T(e))).join("\n")+"\n"+t+")"}function T(e){const t=(0,f.astFromValue)(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,a.print)(t)}`),n+w(e.deprecationReason)}function w(e){return null==e?"":e!==u.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,a.print)({kind:o.Kind.STRING,value:e})})`:" @deprecated"}function _(e,t="",n=!0){const{description:r}=e;if(null==r)return"";const i=r.length>70;return(t&&!n?"\n"+t:t)+(0,s.printBlockString)(r,i).replace(/\n/g,"\n"+t)+"\n"}},8243:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.separateOperations=function(e){const t=[],n=Object.create(null);for(const i of e.definitions)switch(i.kind){case r.Kind.OPERATION_DEFINITION:t.push(i);break;case r.Kind.FRAGMENT_DEFINITION:n[i.name.value]=a(i.selectionSet)}const i=Object.create(null);for(const s of t){const t=new Set;for(const e of a(s.selectionSet))o(t,n,e);i[s.name?s.name.value:""]={kind:r.Kind.DOCUMENT,definitions:e.definitions.filter((e=>e===s||e.kind===r.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return i};var r=n(2828),i=n(285);function o(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)o(e,t,n)}}function a(e){const t=[];return(0,i.visit)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}},2307:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stripIgnoredCharacters=function(e){const t=(0,r.isSource)(e)?e:new r.Source(e),n=t.body,a=new o.Lexer(t);let c="",l=!1;for(;a.advance().kind!==i.TokenKind.EOF;){const e=a.token,t=e.kind,r=!(0,o.isPunctuatorTokenKind)(e.kind);l&&(r||e.kind===i.TokenKind.SPREAD)&&(c+=" ");const u=n.slice(e.start,e.end);t===i.TokenKind.BLOCK_STRING?c+=s(u):c+=u,l=r}return c};var r=n(2412),i=n(3175),o=n(4274),a=n(849);function s(e){const t=e.slice(3,-3);let n=(0,a.dedentBlockStringValue)(t);return(0,a.getBlockStringIndentation)(n)>0&&(n="\n"+n),(n.endsWith('"')&&!n.endsWith('\\"""')||n.endsWith("\\"))&&(n+="\n"),'"""'+n+'"""'}},298:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doTypesOverlap=function(e,t,n){return t===n||((0,r.isAbstractType)(t)?(0,r.isAbstractType)(n)?e.getPossibleTypes(t).some((t=>e.isSubType(n,t))):e.isSubType(t,n):!!(0,r.isAbstractType)(n)&&e.isSubType(n,t))},t.isEqualType=function e(t,n){return t===n||((0,r.isNonNullType)(t)&&(0,r.isNonNullType)(n)||!(!(0,r.isListType)(t)||!(0,r.isListType)(n)))&&e(t.ofType,n.ofType)},t.isTypeSubTypeOf=function e(t,n,i){return n===i||((0,r.isNonNullType)(i)?!!(0,r.isNonNullType)(n)&&e(t,n.ofType,i.ofType):(0,r.isNonNullType)(n)?e(t,n.ofType,i):(0,r.isListType)(i)?!!(0,r.isListType)(n)&&e(t,n.ofType,i.ofType):!(0,r.isListType)(n)&&((0,r.isAbstractType)(i)&&((0,r.isInterfaceType)(n)||(0,r.isObjectType)(n))&&t.isSubType(i,n)))};var r=n(5003)},5115:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeFromAST=function e(t,n){let s;return n.kind===o.Kind.LIST_TYPE?(s=e(t,n.type),s&&new a.GraphQLList(s)):n.kind===o.Kind.NON_NULL_TYPE?(s=e(t,n.type),s&&new a.GraphQLNonNull(s)):n.kind===o.Kind.NAMED_TYPE?t.getType(n.name.value):void(0,i.invariant)(!1,"Unexpected type node: "+(0,r.inspect)(n))};var r=n(8002),i=n(7706),o=n(2828),a=n(5003)},3770:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromAST=function e(t,n,l){if(t){if(t.kind===a.Kind.VARIABLE){const e=t.name.value;if(null==l||void 0===l[e])return;const r=l[e];if(null===r&&(0,s.isNonNullType)(n))return;return r}if((0,s.isNonNullType)(n)){if(t.kind===a.Kind.NULL)return;return e(t,n.ofType,l)}if(t.kind===a.Kind.NULL)return null;if((0,s.isListType)(n)){const r=n.ofType;if(t.kind===a.Kind.LIST){const n=[];for(const i of t.values)if(c(i,l)){if((0,s.isNonNullType)(r))return;n.push(null)}else{const t=e(i,r,l);if(void 0===t)return;n.push(t)}return n}const i=e(t,r,l);if(void 0===i)return;return[i]}if((0,s.isInputObjectType)(n)){if(t.kind!==a.Kind.OBJECT)return;const i=Object.create(null),o=(0,r.keyMap)(t.fields,(e=>e.name.value));for(const t of Object.values(n.getFields())){const n=o[t.name];if(!n||c(n.value,l)){if(void 0!==t.defaultValue)i[t.name]=t.defaultValue;else if((0,s.isNonNullType)(t.type))return;continue}const r=e(n.value,t.type,l);if(void 0===r)return;i[t.name]=r}return i}if((0,s.isLeafType)(n)){let e;try{e=n.parseLiteral(t,l)}catch(e){return}if(void 0===e)return;return e}(0,o.invariant)(!1,"Unexpected input type: "+(0,i.inspect)(n))}};var r=n(2863),i=n(8002),o=n(7706),a=n(2828),s=n(5003);function c(e,t){return e.kind===a.Kind.VARIABLE&&(null==t||void 0===t[e.name.value])}},7784:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromASTUntyped=function e(t,n){switch(t.kind){case a.Kind.NULL:return null;case a.Kind.INT:return parseInt(t.value,10);case a.Kind.FLOAT:return parseFloat(t.value);case a.Kind.STRING:case a.Kind.ENUM:case a.Kind.BOOLEAN:return t.value;case a.Kind.LIST:return t.values.map((t=>e(t,n)));case a.Kind.OBJECT:return(0,o.keyValMap)(t.fields,(e=>e.name.value),(t=>e(t.value,n)));case a.Kind.VARIABLE:return null==n?void 0:n[t.name.value]}(0,i.invariant)(!1,"Unexpected value node: "+(0,r.inspect)(t))};var r=n(8002),i=n(7706),o=n(7154),a=n(2828)},3955:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var r=n(2828),i=n(285),o=n(6226);class a{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===r.Kind.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let i;for(;i=n.pop();)for(const e of i.selections)e.kind===r.Kind.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=a;class s extends a{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=s;class c extends a{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new o.TypeInfo(this._schema);(0,i.visit)(e,(0,o.visitWithTypeInfo)(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=c},1122:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return a.ExecutableDefinitionsRule}}),Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return s.FieldsOnCorrectTypeRule}}),Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return c.FragmentsOnCompositeTypesRule}}),Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return l.KnownArgumentNamesRule}}),Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return u.KnownDirectivesRule}}),Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return p.KnownFragmentNamesRule}}),Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return f.KnownTypeNamesRule}}),Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return d.LoneAnonymousOperationRule}}),Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return L.LoneSchemaDefinitionRule}}),Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return Q.NoDeprecatedCustomRule}}),Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return h.NoFragmentCyclesRule}}),Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return U.NoSchemaIntrospectionCustomRule}}),Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return m.NoUndefinedVariablesRule}}),Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return v.NoUnusedFragmentsRule}}),Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return y.NoUnusedVariablesRule}}),Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return g.OverlappingFieldsCanBeMergedRule}}),Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return b.PossibleFragmentSpreadsRule}}),Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return V.PossibleTypeExtensionsRule}}),Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return E.ProvidedRequiredArgumentsRule}}),Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return T.ScalarLeafsRule}}),Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return w.SingleFieldSubscriptionsRule}}),Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return j.UniqueArgumentDefinitionNamesRule}}),Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return _.UniqueArgumentNamesRule}}),Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return F.UniqueDirectiveNamesRule}}),Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return k.UniqueDirectivesPerLocationRule}}),Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return R.UniqueEnumValueNamesRule}}),Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return M.UniqueFieldDefinitionNamesRule}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return S.UniqueFragmentNamesRule}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return O.UniqueInputFieldNamesRule}}),Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return C.UniqueOperationNamesRule}}),Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return I.UniqueOperationTypesRule}}),Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return P.UniqueTypeNamesRule}}),Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return x.UniqueVariableNamesRule}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return i.ValidationContext}}),Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return N.ValuesOfCorrectTypeRule}}),Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return A.VariablesAreInputTypesRule}}),Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return D.VariablesInAllowedPositionRule}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return o.specifiedRules}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return r.validate}});var r=n(9504),i=n(3955),o=n(4710),a=n(5285),s=n(9426),c=n(3558),l=n(9989),u=n(2826),p=n(1843),f=n(5961),d=n(870),h=n(658),m=n(7459),v=n(7317),y=n(8769),g=n(4331),b=n(5904),E=n(4312),T=n(7168),w=n(4666),_=n(4986),k=n(3576),S=n(5883),O=n(4313),C=n(2139),x=n(4243),N=n(6869),A=n(4942),D=n(8034),L=n(3411),I=n(856),P=n(1686),R=n(6400),M=n(4046),j=n(3878),F=n(6753),V=n(5715),Q=n(2860),U=n(2276)},5285:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExecutableDefinitionsRule=function(e){return{Document(t){for(const n of t.definitions)if(!(0,o.isExecutableDefinitionNode)(n)){const t=n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new r.GraphQLError(`The ${t} definition is not executable.`,n))}return!1}}};var r=n(5822),i=n(2828),o=n(1352)},9426:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldsOnCorrectTypeRule=function(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const c=e.getSchema(),l=t.name.value;let u=(0,r.didYouMean)("to use an inline fragment on",function(e,t,n){if(!(0,s.isAbstractType)(t))return[];const r=new Set,i=Object.create(null);for(const o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(const e of o.getInterfaces()){var a;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(a=i[e.name])&&void 0!==a?a:0)+1)}}return[...r].sort(((t,n)=>{const r=i[n.name]-i[t.name];return 0!==r?r:(0,s.isInterfaceType)(t)&&e.isSubType(t,n)?-1:(0,s.isInterfaceType)(n)&&e.isSubType(n,t)?1:(0,o.naturalCompare)(t.name,n.name)})).map((e=>e.name))}(c,n,l));""===u&&(u=(0,r.didYouMean)(function(e,t){if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)){const n=Object.keys(e.getFields());return(0,i.suggestionList)(t,n)}return[]}(n,l))),e.reportError(new a.GraphQLError(`Cannot query field "${l}" on type "${n.name}".`+u,t))}}}};var r=n(166),i=n(8070),o=n(5250),a=n(5822),s=n(5003)},3558:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FragmentsOnCompositeTypesRule=function(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=(0,a.typeFromAST)(e.getSchema(),n);if(t&&!(0,o.isCompositeType)(t)){const t=(0,i.print)(n);e.reportError(new r.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,n))}}},FragmentDefinition(t){const n=(0,a.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,o.isCompositeType)(n)){const n=(0,i.print)(t.typeCondition);e.reportError(new r.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,t.typeCondition))}}}};var r=n(5822),i=n(3033),o=n(5003),a=n(5115)},9989:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownArgumentNamesOnDirectivesRule=c,t.KnownArgumentNamesRule=function(e){return{...c(e),Argument(t){const n=e.getArgument(),a=e.getFieldDef(),s=e.getParentType();if(!n&&a&&s){const n=t.name.value,c=a.args.map((e=>e.name)),l=(0,i.suggestionList)(n,c);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on field "${s.name}.${a.name}".`+(0,r.didYouMean)(l),t))}}}};var r=n(166),i=n(8070),o=n(5822),a=n(2828),s=n(7197);function c(e){const t=Object.create(null),n=e.getSchema(),c=n?n.getDirectives():s.specifiedDirectives;for(const e of c)t[e.name]=e.args.map((e=>e.name));const l=e.getDocument().definitions;for(const e of l)if(e.kind===a.Kind.DIRECTIVE_DEFINITION){var u;const n=null!==(u=e.arguments)&&void 0!==u?u:[];t[e.name.value]=n.map((e=>e.name.value))}return{Directive(n){const a=n.name.value,s=t[a];if(n.arguments&&s)for(const t of n.arguments){const n=t.name.value;if(!s.includes(n)){const c=(0,i.suggestionList)(n,s);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on directive "@${a}".`+(0,r.didYouMean)(c),t))}}return!1}}}},2826:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownDirectivesRule=function(e){const t=Object.create(null),n=e.getSchema(),u=n?n.getDirectives():l.specifiedDirectives;for(const e of u)t[e.name]=e.locations;const p=e.getDocument().definitions;for(const e of p)e.kind===a.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map((e=>e.value)));return{Directive(n,l,u,p,f){const d=n.name.value,h=t[d];if(!h)return void e.reportError(new o.GraphQLError(`Unknown directive "@${d}".`,n));const m=function(e){const t=e[e.length-1];switch("kind"in t||(0,i.invariant)(!1),t.kind){case a.Kind.OPERATION_DEFINITION:return function(e){switch(e){case s.OperationTypeNode.QUERY:return c.DirectiveLocation.QUERY;case s.OperationTypeNode.MUTATION:return c.DirectiveLocation.MUTATION;case s.OperationTypeNode.SUBSCRIPTION:return c.DirectiveLocation.SUBSCRIPTION}(0,i.invariant)(!1,"Unexpected operation: "+(0,r.inspect)(e))}(t.operation);case a.Kind.FIELD:return c.DirectiveLocation.FIELD;case a.Kind.FRAGMENT_SPREAD:return c.DirectiveLocation.FRAGMENT_SPREAD;case a.Kind.INLINE_FRAGMENT:return c.DirectiveLocation.INLINE_FRAGMENT;case a.Kind.FRAGMENT_DEFINITION:return c.DirectiveLocation.FRAGMENT_DEFINITION;case a.Kind.VARIABLE_DEFINITION:return c.DirectiveLocation.VARIABLE_DEFINITION;case a.Kind.SCHEMA_DEFINITION:case a.Kind.SCHEMA_EXTENSION:return c.DirectiveLocation.SCHEMA;case a.Kind.SCALAR_TYPE_DEFINITION:case a.Kind.SCALAR_TYPE_EXTENSION:return c.DirectiveLocation.SCALAR;case a.Kind.OBJECT_TYPE_DEFINITION:case a.Kind.OBJECT_TYPE_EXTENSION:return c.DirectiveLocation.OBJECT;case a.Kind.FIELD_DEFINITION:return c.DirectiveLocation.FIELD_DEFINITION;case a.Kind.INTERFACE_TYPE_DEFINITION:case a.Kind.INTERFACE_TYPE_EXTENSION:return c.DirectiveLocation.INTERFACE;case a.Kind.UNION_TYPE_DEFINITION:case a.Kind.UNION_TYPE_EXTENSION:return c.DirectiveLocation.UNION;case a.Kind.ENUM_TYPE_DEFINITION:case a.Kind.ENUM_TYPE_EXTENSION:return c.DirectiveLocation.ENUM;case a.Kind.ENUM_VALUE_DEFINITION:return c.DirectiveLocation.ENUM_VALUE;case a.Kind.INPUT_OBJECT_TYPE_DEFINITION:case a.Kind.INPUT_OBJECT_TYPE_EXTENSION:return c.DirectiveLocation.INPUT_OBJECT;case a.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||(0,i.invariant)(!1),t.kind===a.Kind.INPUT_OBJECT_TYPE_DEFINITION?c.DirectiveLocation.INPUT_FIELD_DEFINITION:c.DirectiveLocation.ARGUMENT_DEFINITION}}}(f);m&&!h.includes(m)&&e.reportError(new o.GraphQLError(`Directive "@${d}" may not be used on ${m}.`,n))}}};var r=n(8002),i=n(7706),o=n(5822),a=n(2828),s=n(1807),c=n(8333),l=n(7197)},1843:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownFragmentNamesRule=function(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new r.GraphQLError(`Unknown fragment "${n}".`,t.name))}}};var r=n(5822)},5961:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownTypeNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),s=Object.create(null);for(const t of e.getDocument().definitions)(0,a.isTypeDefinitionNode)(t)&&(s[t.name.value]=!0);const c=[...Object.keys(n),...Object.keys(s)];return{NamedType(t,u,p,f,d){const h=t.name.value;if(!n[h]&&!s[h]){var m;const n=null!==(m=d[2])&&void 0!==m?m:p,s=null!=n&&"kind"in(v=n)&&((0,a.isTypeSystemDefinitionNode)(v)||(0,a.isTypeSystemExtensionNode)(v));if(s&&l.includes(h))return;const u=(0,i.suggestionList)(h,s?l.concat(c):c);e.reportError(new o.GraphQLError(`Unknown type "${h}".`+(0,r.didYouMean)(u),t))}var v}}};var r=n(166),i=n(8070),o=n(5822),a=n(1352),s=n(2229),c=n(8155);const l=[...s.specifiedScalarTypes,...c.introspectionTypes].map((e=>e.name))},870:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoneAnonymousOperationRule=function(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===i.Kind.OPERATION_DEFINITION)).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new r.GraphQLError("This anonymous operation must be the only defined operation.",n))}}};var r=n(5822),i=n(2828)},3411:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoneSchemaDefinitionRule=function(e){var t,n,i;const o=e.getSchema(),a=null!==(t=null!==(n=null!==(i=null==o?void 0:o.astNode)&&void 0!==i?i:null==o?void 0:o.getQueryType())&&void 0!==n?n:null==o?void 0:o.getMutationType())&&void 0!==t?t:null==o?void 0:o.getSubscriptionType();let s=0;return{SchemaDefinition(t){a?e.reportError(new r.GraphQLError("Cannot define a new schema within a schema extension.",t)):(s>0&&e.reportError(new r.GraphQLError("Must provide only one schema definition.",t)),++s)}}};var r=n(5822)},658:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoFragmentCyclesRule=function(e){const t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(o(e),!1)};function o(a){if(t[a.name.value])return;const s=a.name.value;t[s]=!0;const c=e.getFragmentSpreads(a.selectionSet);if(0!==c.length){i[s]=n.length;for(const t of c){const a=t.name.value,s=i[a];if(n.push(t),void 0===s){const t=e.getFragment(a);t&&o(t)}else{const t=n.slice(s),i=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new r.GraphQLError(`Cannot spread fragment "${a}" within itself`+(""!==i?` via ${i}.`:"."),t))}n.pop()}i[s]=void 0}}};var r=n(5822)},7459:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUndefinedVariablesRule=function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const i=e.getRecursiveVariableUsages(n);for(const{node:o}of i){const i=o.name.value;!0!==t[i]&&e.reportError(new r.GraphQLError(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,[o,n]))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}};var r=n(5822)},7317:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUnusedFragmentsRule=function(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const i=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))i[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==i[n]&&e.reportError(new r.GraphQLError(`Fragment "${n}" is never used.`,t))}}}}};var r=n(5822)},8769:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUnusedVariablesRule=function(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const i=Object.create(null),o=e.getRecursiveVariableUsages(n);for(const{node:e}of o)i[e.name.value]=!0;for(const o of t){const t=o.variable.name.value;!0!==i[t]&&e.reportError(new r.GraphQLError(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,o))}}},VariableDefinition(e){t.push(e)}}};var r=n(5822)},4331:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OverlappingFieldsCanBeMergedRule=function(e){const t=new g,n=new Map;return{SelectionSet(r){const o=function(e,t,n,r,i){const o=[],[a,s]=m(e,t,r,i);if(function(e,t,n,r,i){for(const[o,a]of Object.entries(i))if(a.length>1)for(let i=0;i`subfields "${e}" conflict because `+l(t))).join(" and "):e}function u(e,t,n,r,i,o,a){const s=e.getFragment(a);if(!s)return;const[c,l]=v(e,n,s);if(o!==c){f(e,t,n,r,i,o,c);for(const a of l)u(e,t,n,r,i,o,a)}}function p(e,t,n,r,i,o,a){if(o===a)return;if(r.has(o,a,i))return;r.add(o,a,i);const s=e.getFragment(o),c=e.getFragment(a);if(!s||!c)return;const[l,u]=v(e,n,s),[d,h]=v(e,n,c);f(e,t,n,r,i,l,d);for(const a of h)p(e,t,n,r,i,o,a);for(const o of u)p(e,t,n,r,i,o,a)}function f(e,t,n,r,i,o,a){for(const[s,c]of Object.entries(o)){const o=a[s];if(o)for(const a of c)for(const c of o){const o=d(e,n,r,i,s,a,c);o&&t.push(o)}}}function d(e,t,n,i,o,c,l){const[d,v,y]=c,[g,b,E]=l,T=i||d!==g&&(0,s.isObjectType)(d)&&(0,s.isObjectType)(g);if(!T){var w,_;const e=v.name.value,t=b.name.value;if(e!==t)return[[o,`"${e}" and "${t}" are different fields`],[v],[b]];if(k=null!==(w=v.arguments)&&void 0!==w?w:[],S=null!==(_=b.arguments)&&void 0!==_?_:[],k.length!==S.length||!k.every((e=>{const t=S.find((t=>t.name.value===e.name.value));return!!t&&(n=e.value,r=t.value,(0,a.print)(n)===(0,a.print)(r));var n,r})))return[[o,"they have differing arguments"],[v],[b]]}var k,S;const O=null==y?void 0:y.type,C=null==E?void 0:E.type;if(O&&C&&h(O,C))return[[o,`they return conflicting types "${(0,r.inspect)(O)}" and "${(0,r.inspect)(C)}"`],[v],[b]];const x=v.selectionSet,N=b.selectionSet;if(x&&N){const r=function(e,t,n,r,i,o,a,s){const c=[],[l,d]=m(e,t,i,o),[h,v]=m(e,t,a,s);f(e,c,t,n,r,l,h);for(const i of v)u(e,c,t,n,r,l,i);for(const i of d)u(e,c,t,n,r,h,i);for(const i of d)for(const o of v)p(e,c,t,n,r,i,o);return c}(e,t,n,T,(0,s.getNamedType)(O),x,(0,s.getNamedType)(C),N);return function(e,t,n,r){if(e.length>0)return[[t,e.map((([e])=>e))],[n,...e.map((([,e])=>e)).flat()],[r,...e.map((([,,e])=>e)).flat()]]}(r,o,v,b)}}function h(e,t){return(0,s.isListType)(e)?!(0,s.isListType)(t)||h(e.ofType,t.ofType):!!(0,s.isListType)(t)||((0,s.isNonNullType)(e)?!(0,s.isNonNullType)(t)||h(e.ofType,t.ofType):!!(0,s.isNonNullType)(t)||!(!(0,s.isLeafType)(e)&&!(0,s.isLeafType)(t))&&e!==t)}function m(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);y(e,n,r,o,a);const s=[o,Object.keys(a)];return t.set(r,s),s}function v(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=(0,c.typeFromAST)(e.getSchema(),n.typeCondition);return m(e,t,i,n.selectionSet)}function y(e,t,n,r,i){for(const a of n.selections)switch(a.kind){case o.Kind.FIELD:{const e=a.name.value;let n;((0,s.isObjectType)(t)||(0,s.isInterfaceType)(t))&&(n=t.getFields()[e]);const i=a.alias?a.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,a,n]);break}case o.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case o.Kind.INLINE_FRAGMENT:{const n=a.typeCondition,o=n?(0,c.typeFromAST)(e.getSchema(),n):t;y(e,o,a.selectionSet,r,i);break}}}class g{constructor(){this._data=new Map}has(e,t,n){var r;const[i,o]=ee.name.value)));for(const n of i.args)if(!a.has(n.name)&&(0,l.isRequiredArgument)(n)){const a=(0,r.inspect)(n.type);e.reportError(new o.GraphQLError(`Field "${i.name}" argument "${n.name}" of type "${a}" is required, but it was not provided.`,t))}}}}};var r=n(8002),i=n(2863),o=n(5822),a=n(2828),s=n(3033),c=n(7197),l=n(5003);function u(e){var t;const n=Object.create(null),u=e.getSchema(),f=null!==(t=null==u?void 0:u.getDirectives())&&void 0!==t?t:c.specifiedDirectives;for(const e of f)n[e.name]=(0,i.keyMap)(e.args.filter(l.isRequiredArgument),(e=>e.name));const d=e.getDocument().definitions;for(const e of d)if(e.kind===a.Kind.DIRECTIVE_DEFINITION){var h;const t=null!==(h=e.arguments)&&void 0!==h?h:[];n[e.name.value]=(0,i.keyMap)(t.filter(p),(e=>e.name.value))}return{Directive:{leave(t){const i=t.name.value,a=n[i];if(a){var c;const n=null!==(c=t.arguments)&&void 0!==c?c:[],u=new Set(n.map((e=>e.name.value)));for(const[n,c]of Object.entries(a))if(!u.has(n)){const a=(0,l.isType)(c.type)?(0,r.inspect)(c.type):(0,s.print)(c.type);e.reportError(new o.GraphQLError(`Directive "@${i}" argument "${n}" of type "${a}" is required, but it was not provided.`,t))}}}}}}function p(e){return e.type.kind===a.Kind.NON_NULL_TYPE&&null==e.defaultValue}},7168:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScalarLeafsRule=function(e){return{Field(t){const n=e.getType(),a=t.selectionSet;if(n)if((0,o.isLeafType)((0,o.getNamedType)(n))){if(a){const o=t.name.value,s=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" must not have a selection since type "${s}" has no subfields.`,a))}}else if(!a){const o=t.name.value,a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" of type "${a}" must have a selection of subfields. Did you mean "${o} { ... }"?`,t))}}}};var r=n(8002),i=n(5822),o=n(5003)},4666:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleFieldSubscriptionsRule=function(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),a=n.getSubscriptionType();if(a){const s=t.name?t.name.value:null,c=Object.create(null),l=e.getDocument(),u=Object.create(null);for(const e of l.definitions)e.kind===i.Kind.FRAGMENT_DEFINITION&&(u[e.name.value]=e);const p=(0,o.collectFields)(n,u,c,a,t.selectionSet);if(p.size>1){const t=[...p.values()].slice(1).flat();e.reportError(new r.GraphQLError(null!=s?`Subscription "${s}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",t))}for(const t of p.values())t[0].name.value.startsWith("__")&&e.reportError(new r.GraphQLError(null!=s?`Subscription "${s}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",t))}}}}};var r=n(5822),i=n(2828),o=n(8950)},3878:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueArgumentDefinitionNamesRule=function(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var o;n(`${r}.${e.name.value}`,null!==(o=e.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const o=(0,r.groupBy)(n,(e=>e.name.value));for(const[n,r]of o)r.length>1&&e.reportError(new i.GraphQLError(`Argument "${t}(${n}:)" can only be defined once.`,r.map((e=>e.name))));return!1}};var r=n(4620),i=n(5822)},4986:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueArgumentNamesRule=function(e){return{Field:t,Directive:t};function t(t){var n;const o=null!==(n=t.arguments)&&void 0!==n?n:[],a=(0,r.groupBy)(o,(e=>e.name.value));for(const[t,n]of a)n.length>1&&e.reportError(new i.GraphQLError(`There can be only one argument named "${t}".`,n.map((e=>e.name))))}};var r=n(4620),i=n(5822)},6753:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueDirectiveNamesRule=function(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(i){const o=i.name.value;if(null==n||!n.getDirective(o))return t[o]?e.reportError(new r.GraphQLError(`There can be only one directive named "@${o}".`,[t[o],i.name])):t[o]=i.name,!1;e.reportError(new r.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,i.name))}}};var r=n(5822)},3576:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueDirectivesPerLocationRule=function(e){const t=Object.create(null),n=e.getSchema(),s=n?n.getDirectives():a.specifiedDirectives;for(const e of s)t[e.name]=!e.isRepeatable;const c=e.getDocument().definitions;for(const e of c)e.kind===i.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const l=Object.create(null),u=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let a;if(n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION)a=l;else if((0,o.isTypeDefinitionNode)(n)||(0,o.isTypeExtensionNode)(n)){const e=n.name.value;a=u[e],void 0===a&&(u[e]=a=Object.create(null))}else a=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(a[n]?e.reportError(new r.GraphQLError(`The directive "@${n}" can only be used once at this location.`,[a[n],i])):a[n]=i)}}}};var r=n(5822),i=n(2828),o=n(1352),a=n(7197)},6400:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueEnumValueNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:a,EnumTypeExtension:a};function a(t){var a;const s=t.name.value;o[s]||(o[s]=Object.create(null));const c=null!==(a=t.values)&&void 0!==a?a:[],l=o[s];for(const t of c){const o=t.name.value,a=n[s];(0,i.isEnumType)(a)&&a.getValue(o)?e.reportError(new r.GraphQLError(`Enum value "${s}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,t.name)):l[o]?e.reportError(new r.GraphQLError(`Enum value "${s}.${o}" can only be defined once.`,[l[o],t.name])):l[o]=t.name}return!1}};var r=n(5822),i=n(5003)},4046:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueFieldDefinitionNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:a,InputObjectTypeExtension:a,InterfaceTypeDefinition:a,InterfaceTypeExtension:a,ObjectTypeDefinition:a,ObjectTypeExtension:a};function a(t){var a;const s=t.name.value;i[s]||(i[s]=Object.create(null));const c=null!==(a=t.fields)&&void 0!==a?a:[],l=i[s];for(const t of c){const i=t.name.value;o(n[s],i)?e.reportError(new r.GraphQLError(`Field "${s}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,t.name)):l[i]?e.reportError(new r.GraphQLError(`Field "${s}.${i}" can only be defined once.`,[l[i],t.name])):l[i]=t.name}return!1}};var r=n(5822),i=n(5003);function o(e,t){return!!((0,i.isObjectType)(e)||(0,i.isInterfaceType)(e)||(0,i.isInputObjectType)(e))&&null!=e.getFields()[t]}},5883:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueFragmentNamesRule=function(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const i=n.name.value;return t[i]?e.reportError(new r.GraphQLError(`There can be only one fragment named "${i}".`,[t[i],n.name])):t[i]=n.name,!1}}};var r=n(5822)},4313:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueInputFieldNamesRule=function(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||(0,r.invariant)(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new i.GraphQLError(`There can be only one input field named "${r}".`,[n[r],t.name])):n[r]=t.name}}};var r=n(7706),i=n(5822)},2139:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueOperationNamesRule=function(e){const t=Object.create(null);return{OperationDefinition(n){const i=n.name;return i&&(t[i.value]?e.reportError(new r.GraphQLError(`There can be only one operation named "${i.value}".`,[t[i.value],i])):t[i.value]=i),!1},FragmentDefinition:()=>!1}};var r=n(5822)},856:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueOperationTypesRule=function(e){const t=e.getSchema(),n=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(t){var o;const a=null!==(o=t.operationTypes)&&void 0!==o?o:[];for(const t of a){const o=t.operation,a=n[o];i[o]?e.reportError(new r.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,t)):a?e.reportError(new r.GraphQLError(`There can be only one ${o} type in schema.`,[a,t])):n[o]=t}return!1}};var r=n(5822)},1686:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueTypeNamesRule=function(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){const o=i.name.value;if(null==n||!n.getType(o))return t[o]?e.reportError(new r.GraphQLError(`There can be only one type named "${o}".`,[t[o],i.name])):t[o]=i.name,!1;e.reportError(new r.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,i.name))}};var r=n(5822)},4243:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueVariableNamesRule=function(e){return{OperationDefinition(t){var n;const o=null!==(n=t.variableDefinitions)&&void 0!==n?n:[],a=(0,r.groupBy)(o,(e=>e.variable.name.value));for(const[t,n]of a)n.length>1&&e.reportError(new i.GraphQLError(`There can be only one variable named "$${t}".`,n.map((e=>e.variable.name))))}}};var r=n(4620),i=n(5822)},6869:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValuesOfCorrectTypeRule=function(e){return{ListValue(t){const n=(0,l.getNullableType)(e.getParentInputType());if(!(0,l.isListType)(n))return u(e,t),!1},ObjectValue(t){const n=(0,l.getNamedType)(e.getInputType());if(!(0,l.isInputObjectType)(n))return u(e,t),!1;const o=(0,r.keyMap)(t.fields,(e=>e.name.value));for(const r of Object.values(n.getFields()))if(!o[r.name]&&(0,l.isRequiredInputField)(r)){const o=(0,i.inspect)(r.type);e.reportError(new s.GraphQLError(`Field "${n.name}.${r.name}" of required type "${o}" was not provided.`,t))}},ObjectField(t){const n=(0,l.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,l.isInputObjectType)(n)){const r=(0,a.suggestionList)(t.name.value,Object.keys(n.getFields()));e.reportError(new s.GraphQLError(`Field "${t.name.value}" is not defined by type "${n.name}".`+(0,o.didYouMean)(r),t))}},NullValue(t){const n=e.getInputType();(0,l.isNonNullType)(n)&&e.reportError(new s.GraphQLError(`Expected value of type "${(0,i.inspect)(n)}", found ${(0,c.print)(t)}.`,t))},EnumValue:t=>u(e,t),IntValue:t=>u(e,t),FloatValue:t=>u(e,t),StringValue:t=>u(e,t),BooleanValue:t=>u(e,t)}};var r=n(2863),i=n(8002),o=n(166),a=n(8070),s=n(5822),c=n(3033),l=n(5003);function u(e,t){const n=e.getInputType();if(!n)return;const r=(0,l.getNamedType)(n);if((0,l.isLeafType)(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=(0,i.inspect)(n);e.reportError(new s.GraphQLError(`Expected value of type "${r}", found ${(0,c.print)(t)}.`,t))}}catch(r){const o=(0,i.inspect)(n);r instanceof s.GraphQLError?e.reportError(r):e.reportError(new s.GraphQLError(`Expected value of type "${o}", found ${(0,c.print)(t)}; `+r.message,t,void 0,void 0,void 0,r))}else{const r=(0,i.inspect)(n);e.reportError(new s.GraphQLError(`Expected value of type "${r}", found ${(0,c.print)(t)}.`,t))}}},4942:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesAreInputTypesRule=function(e){return{VariableDefinition(t){const n=(0,a.typeFromAST)(e.getSchema(),t.type);if(void 0!==n&&!(0,o.isInputType)(n)){const n=t.variable.name.value,o=(0,i.print)(t.type);e.reportError(new r.GraphQLError(`Variable "$${n}" cannot be non-input type "${o}".`,t.type))}}}};var r=n(5822),i=n(3033),o=n(5003),a=n(5115)},8034:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesInAllowedPositionRule=function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const o=e.getRecursiveVariableUsages(n);for(const{node:n,type:a,defaultValue:c}of o){const o=n.name.value,u=t[o];if(u&&a){const t=e.getSchema(),p=(0,s.typeFromAST)(t,u.type);if(p&&!l(t,p,u.defaultValue,a,c)){const t=(0,r.inspect)(p),s=(0,r.inspect)(a);e.reportError(new i.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${s}".`,[u,n]))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}};var r=n(8002),i=n(5822),o=n(2828),a=n(5003),s=n(5115),c=n(298);function l(e,t,n,r,i){if((0,a.isNonNullType)(r)&&!(0,a.isNonNullType)(t)){const a=void 0!==i;if((null==n||n.kind===o.Kind.NULL)&&!a)return!1;const s=r.ofType;return(0,c.isTypeSubTypeOf)(e,t,s)}return(0,c.isTypeSubTypeOf)(e,t,r)}},2860:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoDeprecatedCustomRule=function(e){return{Field(t){const n=e.getFieldDef(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getParentType();null!=a||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`The field ${a.name}.${n.name} is deprecated. ${o}`,t))}},Argument(t){const n=e.getArgument(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getDirective();if(null!=a)e.reportError(new i.GraphQLError(`Directive "@${a.name}" argument "${n.name}" is deprecated. ${o}`,t));else{const a=e.getParentType(),s=e.getFieldDef();null!=a&&null!=s||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`Field "${a.name}.${s.name}" argument "${n.name}" is deprecated. ${o}`,t))}}},ObjectField(t){const n=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(n)){const r=n.getFields()[t.name.value],o=null==r?void 0:r.deprecationReason;null!=o&&e.reportError(new i.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${o}`,t))}},EnumValue(t){const n=e.getEnumValue(),a=null==n?void 0:n.deprecationReason;if(n&&null!=a){const s=(0,o.getNamedType)(e.getInputType());null!=s||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`The enum value "${s.name}.${n.name}" is deprecated. ${a}`,t))}}}};var r=n(7706),i=n(5822),o=n(5003)},2276:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoSchemaIntrospectionCustomRule=function(e){return{Field(t){const n=(0,i.getNamedType)(e.getType());n&&(0,o.isIntrospectionType)(n)&&e.reportError(new r.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,t))}}};var r=n(5822),i=n(5003),o=n(8155)},4710:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.specifiedSDLRules=t.specifiedRules=void 0;var r=n(5285),i=n(2139),o=n(870),a=n(4666),s=n(5961),c=n(3558),l=n(4942),u=n(7168),p=n(9426),f=n(5883),d=n(1843),h=n(7317),m=n(5904),v=n(658),y=n(4243),g=n(7459),b=n(8769),E=n(2826),T=n(3576),w=n(9989),_=n(4986),k=n(6869),S=n(4312),O=n(8034),C=n(4331),x=n(4313),N=n(3411),A=n(856),D=n(1686),L=n(6400),I=n(4046),P=n(3878),R=n(6753),M=n(5715);const j=Object.freeze([r.ExecutableDefinitionsRule,i.UniqueOperationNamesRule,o.LoneAnonymousOperationRule,a.SingleFieldSubscriptionsRule,s.KnownTypeNamesRule,c.FragmentsOnCompositeTypesRule,l.VariablesAreInputTypesRule,u.ScalarLeafsRule,p.FieldsOnCorrectTypeRule,f.UniqueFragmentNamesRule,d.KnownFragmentNamesRule,h.NoUnusedFragmentsRule,m.PossibleFragmentSpreadsRule,v.NoFragmentCyclesRule,y.UniqueVariableNamesRule,g.NoUndefinedVariablesRule,b.NoUnusedVariablesRule,E.KnownDirectivesRule,T.UniqueDirectivesPerLocationRule,w.KnownArgumentNamesRule,_.UniqueArgumentNamesRule,k.ValuesOfCorrectTypeRule,S.ProvidedRequiredArgumentsRule,O.VariablesInAllowedPositionRule,C.OverlappingFieldsCanBeMergedRule,x.UniqueInputFieldNamesRule]);t.specifiedRules=j;const F=Object.freeze([N.LoneSchemaDefinitionRule,A.UniqueOperationTypesRule,D.UniqueTypeNamesRule,L.UniqueEnumValueNamesRule,I.UniqueFieldDefinitionNamesRule,P.UniqueArgumentDefinitionNamesRule,R.UniqueDirectiveNamesRule,s.KnownTypeNamesRule,E.KnownDirectivesRule,T.UniqueDirectivesPerLocationRule,M.PossibleTypeExtensionsRule,w.KnownArgumentNamesOnDirectivesRule,_.UniqueArgumentNamesRule,x.UniqueInputFieldNamesRule,S.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=F},9504:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidSDL=function(e){const t=u(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))},t.assertValidSDLExtension=function(e,t){const n=u(e,t);if(0!==n.length)throw new Error(n.map((e=>e.message)).join("\n\n"))},t.validate=function(e,t,n=c.specifiedRules,u,p=new s.TypeInfo(e)){var f;const d=null!==(f=null==u?void 0:u.maxErrors)&&void 0!==f?f:100;t||(0,r.devAssert)(!1,"Must provide document."),(0,a.assertValidSchema)(e);const h=Object.freeze({}),m=[],v=new l.ValidationContext(e,t,p,(e=>{if(m.length>=d)throw m.push(new i.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),h;m.push(e)})),y=(0,o.visitInParallel)(n.map((e=>e(v))));try{(0,o.visit)(t,(0,s.visitWithTypeInfo)(p,y))}catch(e){if(e!==h)throw e}return m},t.validateSDL=u;var r=n(7242),i=n(5822),o=n(285),a=n(1671),s=n(6226),c=n(4710),l=n(3955);function u(e,t,n=c.specifiedSDLRules){const r=[],i=new l.SDLValidationContext(e,t,(e=>{r.push(e)})),a=n.map((e=>e(i)));return(0,o.visit)(e,(0,o.visitInParallel)(a)),r}},8696:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.versionInfo=t.version=void 0,t.version="16.0.1";const n=Object.freeze({major:16,minor:0,patch:1,preReleaseTag:null});t.versionInfo=n},8679:function(e,t,n){"use strict";var r=n(9864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=d(n);i&&i!==h&&e(t,i,r)}var a=u(n);p&&(a=a.concat(p(n)));for(var s=c(t),m=c(n),v=0;v=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(e){var t=e.re=n(6066)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var c=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===i(n))return"[object RegExp]"!==i(n.validate)?o(n.validate)?r.validate=n.validate:l(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(o(n.normalize)?r.normalize=n.normalize:n.normalize?l(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?l(t,n):c.push(t)}})),c.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var u=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function f(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function d(e,t){if(!(this instanceof d))return new d(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},c,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},u(this)}d.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},d.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},d.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,c;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||c=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},d.prototype.pretest=function(e){return this.re.pretest.test(e)},d.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},d.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(f(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(f(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},d.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),u(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,u(this),this)},d.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},d.prototype.onCompile=function(){},e.exports=d},6066:function(e,t,n){"use strict";e.exports=function(e){var t={};return t.src_Any=n(9369).source,t.src_Cc=n(9413).source,t.src_Z=n(5045).source,t.src_P=n(3189).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},8552:function(e,t,n){var r=n(852)(n(5639),"DataView");e.exports=r},1989:function(e,t,n){var r=n(1789),i=n(401),o=n(7667),a=n(1327),s=n(1866);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tu))return!1;var f=c.get(e),d=c.get(t);if(f&&d)return f==t&&d==e;var h=-1,m=!0,v=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h-1&&e%1==0&&e-1}},4705:function(e,t,n){var r=n(8470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},4785:function(e,t,n){var r=n(1989),i=n(8407),o=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:function(e,t,n){var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:function(e,t,n){var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:function(e,t,n){var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:function(e,t,n){var r=n(5050);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},8776:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},4536:function(e,t,n){var r=n(852)(Object,"create");e.exports=r},6916:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},1167:function(e,t,n){e=n.nmd(e);var r=n(1957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},5639:function(e,t,n){var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:function(e){e.exports=function(e){return this.__data__.has(e)}},1814:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},7465:function(e,t,n){var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:function(e){e.exports=function(e){return this.__data__.get(e)}},4758:function(e){e.exports=function(e){return this.__data__.has(e)}},4309:function(e,t,n){var r=n(8407),i=n(7071),o=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},3279:function(e,t,n){var r=n(3218),i=n(7771),o=n(4841),a=Math.max,s=Math.min;e.exports=function(e,t,n){var c,l,u,p,f,d,h=0,m=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=c,r=l;return c=l=void 0,h=t,p=e.apply(r,n)}function b(e){return h=e,f=setTimeout(T,t),m?g(e):p}function E(e){var n=e-d;return void 0===d||n>=t||n<0||v&&e-h>=u}function T(){var e=i();if(E(e))return w(e);f=setTimeout(T,function(e){var n=t-(e-d);return v?s(n,u-(e-h)):n}(e))}function w(e){return f=void 0,y&&c?g(e):(c=l=void 0,p)}function _(){var e=i(),n=E(e);if(c=arguments,l=this,d=e,n){if(void 0===f)return b(d);if(v)return clearTimeout(f),f=setTimeout(T,t),g(d)}return void 0===f&&(f=setTimeout(T,t)),p}return t=o(t)||0,r(n)&&(m=!!n.leading,u=(v="maxWait"in n)?a(o(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),_.cancel=function(){void 0!==f&&clearTimeout(f),h=0,c=d=l=f=void 0},_.flush=function(){return void 0===f?p:w(i())},_}},7813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},5694:function(e,t,n){var r=n(9454),i=n(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},1469:function(e){var t=Array.isArray;e.exports=t},8612:function(e,t,n){var r=n(3560),i=n(1780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},4144:function(e,t,n){e=n.nmd(e);var r=n(5639),i=n(5062),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c},8446:function(e,t,n){var r=n(939);e.exports=function(e,t){return r(e,t)}},3560:function(e,t,n){var r=n(4239),i=n(3218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},3448:function(e,t,n){var r=n(4239),i=n(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6719:function(e,t,n){var r=n(8749),i=n(1717),o=n(1167),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},3674:function(e,t,n){var r=n(4636),i=n(280),o=n(8612);e.exports=function(e){return o(e)?r(e):i(e)}},7771:function(e,t,n){var r=n(5639);e.exports=function(){return r.Date.now()}},479:function(e){e.exports=function(){return[]}},5062:function(e){e.exports=function(){return!1}},4841:function(e,t,n){var r=n(7561),i=n(3218),o=n(3448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},6961:function(e,t,n){var r,i=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function i(e,t){if(!r[e]){r[e]={};for(var n=0;n>>8,n[2*r+1]=a%256}return n},decompressFromUint8Array:function(t){if(null==t)return o.decompress(t);for(var n=new Array(t.length/2),r=0,i=n.length;r>=1}else{for(i=1,r=0;r>=1}0==--p&&(p=Math.pow(2,d),d++),delete s[u]}else for(i=a[u],r=0;r>=1;0==--p&&(p=Math.pow(2,d),d++),a[l]=f++,u=String(c)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(r=0;r>=1}else{for(i=1,r=0;r>=1}0==--p&&(p=Math.pow(2,d),d++),delete s[u]}else for(i=a[u],r=0;r>=1;0==--p&&(p=Math.pow(2,d),d++)}for(i=2,r=0;r>=1;for(;;){if(m<<=1,v==t-1){h.push(n(m));break}v++}return h.join("")},decompress:function(e){return null==e?"":""==e?null:o._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,r){var i,o,a,s,c,l,u,p=[],f=4,d=4,h=3,m="",v=[],y={val:r(0),position:n,index:1};for(i=0;i<3;i+=1)p[i]=i;for(a=0,c=Math.pow(2,2),l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*l,l<<=1;switch(a){case 0:for(a=0,c=Math.pow(2,8),l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*l,l<<=1;u=e(a);break;case 1:for(a=0,c=Math.pow(2,16),l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*l,l<<=1;u=e(a);break;case 2:return""}for(p[3]=u,o=u,v.push(u);;){if(y.index>t)return"";for(a=0,c=Math.pow(2,h),l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*l,l<<=1;switch(u=a){case 0:for(a=0,c=Math.pow(2,8),l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*l,l<<=1;p[d++]=e(a),u=d-1,f--;break;case 1:for(a=0,c=Math.pow(2,16),l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*l,l<<=1;p[d++]=e(a),u=d-1,f--;break;case 2:return v.join("")}if(0==f&&(f=Math.pow(2,h),h++),p[u])m=p[u];else{if(u!==d)return null;m=o+o.charAt(0)}v.push(m),p[d++]=o+m.charAt(0),o=m,0==--f&&(f=Math.pow(2,h),h++)}}};return o}();void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)},9980:function(e,t,n){"use strict";e.exports=n(7024)},6233:function(e,t,n){"use strict";e.exports=n(5485)},813:function(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},1947:function(e){"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=new RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),i=new RegExp("^(?:"+t+"|"+n+")");e.exports.n=r,e.exports.q=i},7022:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(6233),p=/[&<>"]/,f=/[&<>"]/g,d={"&":"&","<":"<",">":">",'"':"""};function h(e){return d[e]}var m=/[.?*+^$[\]\\(){}|-]/g,v=n(3189);t.lib={},t.lib.mdurl=n(8765),t.lib.ucmicro=n(4205),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(c,(function(e,t,n){return t||function(e,t){var n=0;return i(u,t)?u[t]:35===t.charCodeAt(0)&&l.test(t)&&o(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)}))},t.isValidEntityCode=o,t.fromCodePoint=a,t.escapeHtml=function(e){return p.test(e)?e.replace(f,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return v.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}},1685:function(e,t,n){"use strict";t.parseLinkLabel=n(3595),t.parseLinkDestination=n(2548),t.parseLinkTitle=n(8040)},2548:function(e,t,n){"use strict";var r=n(7022).unescapeAll;e.exports=function(e,t,n){var i,o,a=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t32)return s;if(41===i){if(0===o)break;o--}t++}return a===t||0!==o||(s.str=r(e.slice(a,t)),s.lines=0,s.pos=t,s.ok=!0),s}},3595:function(e){"use strict";e.exports=function(e,t,n){var r,i,o,a,s=-1,c=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos=n)return c;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return c;for(t++,40===o&&(o=41);t=0))try{t.hostname=p.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function g(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||v.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function b(e,t){if(!(this instanceof b))return new b(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new c,this.block=new s,this.core=new a,this.renderer=new o,this.linkify=new l,this.validateLink=m,this.normalizeLink=y,this.normalizeLinkText=g,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return r.assign(this.options,e),this},b.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=f[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},b.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},b.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},2471:function(e,t,n){"use strict";var r=n(9580),i=[["table",n(1785),["paragraph","reference"]],["code",n(8768)],["fence",n(3542),["paragraph","reference","blockquote","list"]],["blockquote",n(5258),["paragraph","reference","blockquote","list"]],["hr",n(5634),["paragraph","reference","blockquote","list"]],["list",n(8532),["paragraph","reference","blockquote"]],["reference",n(3804)],["html_block",n(6329),["paragraph","reference","blockquote"]],["heading",n(1630),["paragraph","reference","blockquote"]],["lheading",n(6850)],["paragraph",n(6864)]];function o(){this.ruler=new r;for(var e=0;e=n))&&!(e.sCount[a]=c){e.line=n;break}for(r=0;r=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i"+o(e[t].content)+""},a.code_block=function(e,t,n,r,i){var a=e[t];return""+o(e[t].content)+"\n"},a.fence=function(e,t,n,r,a){var s,c,l,u,p,f=e[t],d=f.info?i(f.info).trim():"",h="",m="";return d&&(h=(l=d.split(/(\s+)/g))[0],m=l.slice(2).join("")),0===(s=n.highlight&&n.highlight(f.content,h,m)||o(f.content)).indexOf(""+s+"\n"):"
"+s+"
\n"},a.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},a.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},a.text=function(e,t){return o(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a=4)return!1;if(62!==e.src.charCodeAt(O++))return!1;if(i)return!0;for(c=d=e.sCount[t]+1,32===e.src.charCodeAt(O)?(O++,c++,d++,o=!1,E=!0):9===e.src.charCodeAt(O)?(E=!0,(e.bsCount[t]+d)%4==3?(O++,c++,d++,o=!1):o=!0):E=!1,h=[e.bMarks[t]],e.bMarks[t]=O;O=C,g=[e.sCount[t]],e.sCount[t]=d-c,b=[e.tShift[t]],e.tShift[t]=O-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),y=e.parentType,e.parentType="blockquote",f=t+1;f=(C=e.eMarks[f])));f++)if(62!==e.src.charCodeAt(O++)||k){if(u)break;for(T=!1,s=0,l=w.length;s=C,m.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(E?1:0),g.push(e.sCount[f]),e.sCount[f]=d-c,b.push(e.tShift[f]),e.tShift[f]=O-e.bMarks[f]}for(v=e.blkIndent,e.blkIndent=0,(_=e.push("blockquote_open","blockquote",1)).markup=">",_.map=p=[t,0],e.md.block.tokenize(e,t,f),(_=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=S,e.parentType=y,p[1]=e.line,s=0;s=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}},3542:function(e){"use strict";e.exports=function(e,t,n,r){var i,o,a,s,c,l,u,p=!1,f=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(f+3>d)return!1;if(126!==(i=e.src.charCodeAt(f))&&96!==i)return!1;if(c=f,(o=(f=e.skipChars(f,i))-c)<3)return!1;if(u=e.src.slice(c,f),a=e.src.slice(f,d),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(f=c=e.bMarks[s]+e.tShift[s])<(d=e.eMarks[s])&&e.sCount[s]=4||(f=e.skipChars(f,i))-c=4)return!1;if(35!==(o=e.src.charCodeAt(l))||l>=u)return!1;for(a=1,o=e.src.charCodeAt(++l);35===o&&l6||ll&&r(e.src.charCodeAt(s-1))&&(u=s),e.line=t+1,(c=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),c.map=[t,e.line],(c=e.push("inline","",0)).content=e.src.slice(l,u).trim(),c.map=[t,e.line],c.children=[],(c=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),0))}},5634:function(e,t,n){"use strict";var r=n(7022).isSpace;e.exports=function(e,t,n,i){var o,a,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(l++))&&45!==o&&95!==o)return!1;for(a=1;l|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var i,a,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(c=e.src.slice(l,u),i=0;i=4)return!1;for(f=e.parentType,e.parentType="paragraph";d3)){if(e.sCount[d]>=e.blkIndent&&(c=e.bMarks[d]+e.tShift[d])<(l=e.eMarks[d])&&(45===(p=e.src.charCodeAt(c))||61===p)&&(c=e.skipChars(c,p),(c=e.skipSpaces(c))>=l)){u=61===p?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=h.length;o=a)return-1;if((n=e.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=a)return-1;if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-i>=10)return-1}return o=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(P=!0),(x=o(e,t))>=0){if(f=!0,A=e.bMarks[t]+e.tShift[t],g=Number(e.src.slice(A,x-1)),P&&1!==g)return!1}else{if(!((x=i(e,t))>=0))return!1;f=!1}if(P&&e.skipSpaces(x)>=e.eMarks[t])return!1;if(y=e.src.charCodeAt(x-1),r)return!0;for(v=e.tokens.length,f?(I=e.push("ordered_list_open","ol",1),1!==g&&(I.attrs=[["start",g]])):I=e.push("bullet_list_open","ul",1),I.map=m=[t,0],I.markup=String.fromCharCode(y),E=t,N=!1,L=e.md.block.ruler.getRules("list"),_=e.parentType,e.parentType="list";E=b?1:T-p)>4&&(u=1),l=p+u,(I=e.push("list_item_open","li",1)).markup=String.fromCharCode(y),I.map=d=[t,0],f&&(I.info=e.src.slice(A,x-1)),O=e.tight,S=e.tShift[t],k=e.sCount[t],w=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=T,s>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!N||(R=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[t]=S,e.sCount[t]=k,e.tight=O,(I=e.push("list_item_close","li",-1)).markup=String.fromCharCode(y),E=t=e.line,d[1]=E,s=e.bMarks[t],E>=n)break;if(e.sCount[E]=4)break;for(D=!1,c=0,h=L.length;c3||e.sCount[c]<0)){for(r=!1,i=0,o=l.length;i=4)return!1;if(91!==e.src.charCodeAt(_))return!1;for(;++_3||e.sCount[S]<0)){for(b=!1,p=0,f=E.length;p0&&this.level++,this.tokens.push(i),i},o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,n,r){var o,a,s,c,l,u,p,f=e;if(e>=t)return"";for(u=new Array(t-e),o=0;fn?new Array(a-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return u.join("")},o.prototype.Token=r,e.exports=o},1785:function(e,t,n){"use strict";var r=n(7022).isSpace;function i(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function o(e){var t,n=[],r=0,i=e.length,o=!1,a=0,s="";for(t=e.charCodeAt(r);rn)return!1;if(f=t+1,e.sCount[f]=4)return!1;if((l=e.bMarks[f]+e.tShift[f])>=e.eMarks[f])return!1;if(124!==(_=e.src.charCodeAt(l++))&&45!==_&&58!==_)return!1;if(l>=e.eMarks[f])return!1;if(124!==(k=e.src.charCodeAt(l++))&&45!==k&&58!==k&&!r(k))return!1;if(45===_&&r(k))return!1;for(;l=4)return!1;if((d=o(c)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),0===(h=d.length)||h!==v.length)return!1;if(a)return!0;for(E=e.parentType,e.parentType="table",w=e.md.block.ruler.getRules("blockquote"),(m=e.push("table_open","table",1)).map=g=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u=4)break;for((d=o(c)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),f===t+2&&((m=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(m=e.push("tr_open","tr",1)).map=[f,f+1],u=0;u/i.test(e)}e.exports=function(e){var t,n,o,a,s,c,l,u,p,f,d,h,m,v,y,g,b,E,T=e.tokens;if(e.md.options.linkify)for(n=0,o=T.length;n=0;t--)if("link_close"!==(c=a[t]).type){if("html_inline"===c.type&&(E=c.content,/^\s]/i.test(E)&&m>0&&m--,i(c.content)&&m++),!(m>0)&&"text"===c.type&&e.md.linkify.test(c.content)){for(p=c.content,b=e.md.linkify.match(p),l=[],h=c.level,d=0,u=0;ud&&((s=new e.Token("text","",0)).content=p.slice(d,f),s.level=h,l.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",y]],s.level=h++,s.markup="linkify",s.info="auto",l.push(s),(s=new e.Token("text","",0)).content=g,s.level=h,l.push(s),(s=new e.Token("link_close","a",-1)).level=--h,s.markup="linkify",s.info="auto",l.push(s),d=b[u].lastIndex);d=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(r,o)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function s(e){var n,r,i=0;for(n=e.length-1;n>=0;n--)"text"!==(r=e[n]).type||i||t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}e.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)"inline"===e.tokens[r].type&&(n.test(e.tokens[r].content)&&a(e.tokens[r].children),t.test(e.tokens[r].content)&&s(e.tokens[r].children))}},8450:function(e,t,n){"use strict";var r=n(7022).isWhiteSpace,i=n(7022).isPunctChar,o=n(7022).isMdAsciiPunct,a=/['"]/,s=/['"]/g;function c(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function l(e,t){var n,a,l,u,p,f,d,h,m,v,y,g,b,E,T,w,_,k,S,O,C;for(S=[],n=0;n=0&&!(S[_].level<=d);_--);if(S.length=_+1,"text"===a.type){p=0,f=(l=a.content).length;e:for(;p=0)m=l.charCodeAt(u.index-1);else for(_=n-1;_>=0&&"softbreak"!==e[_].type&&"hardbreak"!==e[_].type;_--)if(e[_].content){m=e[_].content.charCodeAt(e[_].content.length-1);break}if(v=32,p=48&&m<=57&&(w=T=!1),T&&w&&(T=y,w=g),T||w){if(w)for(_=S.length-1;_>=0&&(h=S[_],!(S[_].level=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&l(e.tokens[t].children,e)}},6480:function(e,t,n){"use strict";var r=n(5872);function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=r,e.exports=i},3420:function(e){"use strict";var t=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var i,o,a,s,c,l,u=e.pos;if(60!==e.src.charCodeAt(u))return!1;for(c=e.pos,l=e.posMax;;){if(++u>=l)return!1;if(60===(s=e.src.charCodeAt(u)))return!1;if(62===s)break}return i=e.src.slice(c+1,u),n.test(i)?(o=e.md.normalizeLink(i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0)):!!t.test(i)&&(o=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0))}},9755:function(e){"use strict";e.exports=function(e,t){var n,r,i,o,a,s,c,l,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;ua;r-=o.jump+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(c=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(c=!0)),!c)){l=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+l,i.open=!1,o.end=n,o.jump=l,o.close=!1,s=-1;break}-1!==s&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}e.exports=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.w=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n?@[]^_`{|}~-".split("").forEach((function(e){i[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,o=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o=o||33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n)||!(i=e.src.slice(a).match(r))||(t||(e.push("html_inline","",0).content=e.src.slice(a,a+i[0].length)),e.pos+=i[0].length,0)))}},3006:function(e,t,n){"use strict";var r=n(7022).normalizeReference,i=n(7022).isSpace;e.exports=function(e,t){var n,o,a,s,c,l,u,p,f,d,h,m,v,y="",g=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,(c=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=c+1)=b)return!1;for(v=u,(f=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(y=e.md.normalizeLink(f.str),e.md.validateLink(y)?u=f.pos:y=""),v=u;u=b||41!==e.src.charCodeAt(u))return e.pos=g,!1;u++}else{if(void 0===e.env.references)return!1;if(u=0?s=e.src.slice(v,u++):u=c+1):u=c+1,s||(s=e.src.slice(l,c)),!(p=e.env.references[r(s)]))return e.pos=g,!1;y=p.href,d=p.title}return t||(a=e.src.slice(l,c),e.md.inline.parse(a,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=n=[["src",y],["alt",""]],h.children=m,h.content=a,d&&n.push(["title",d])),e.pos=u,e.posMax=b,!0}},1727:function(e,t,n){"use strict";var r=n(7022).normalizeReference,i=n(7022).isSpace;e.exports=function(e,t){var n,o,a,s,c,l,u,p,f="",d="",h=e.pos,m=e.posMax,v=e.pos,y=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(c=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((l=s+1)=m)return!1;if(v=l,(u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok){for(f=e.md.normalizeLink(u.str),e.md.validateLink(f)?l=u.pos:f="",v=l;l=m||41!==e.src.charCodeAt(l))&&(y=!0),l++}if(y){if(void 0===e.env.references)return!1;if(l=0?a=e.src.slice(v,l++):l=s+1):l=s+1,a||(a=e.src.slice(c,s)),!(p=e.env.references[r(a)]))return e.pos=h,!1;f=p.href,d=p.title}return t||(e.pos=c,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",f]],d&&n.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=l,e.posMax=m,!0}},3905:function(e,t,n){"use strict";var r=n(7022).isSpace;e.exports=function(e,t){var n,i,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;for(n=e.pending.length-1,i=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),o++;o0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},s.prototype.scanDelims=function(e,t){var n,r,s,c,l,u,p,f,d,h=e,m=!0,v=!0,y=this.posMax,g=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h0&&r++,"text"===i[t].type&&t+1=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t},3122:function(e){"use strict";var t={};function n(e,r){var i;return"string"!=typeof r&&(r=n.defaultChars),i=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),i.push(r);for(n=0;n=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&r)&&t+91114111?l+="����":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="�";return l}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n},729:function(e){"use strict";var t={};function n(e,r,i){var o,a,s,c,l,u="";for("string"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),l=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1=56320&&c<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[o]);return u}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},2201:function(e){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",(t+=e.search||"")+(e.hash||"")}},8765:function(e,t,n){"use strict";e.exports.encode=n(729),e.exports.decode=n(3122),e.exports.format=n(2201),e.exports.parse=n(9553)},9553:function(e){"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(o),s=["%","/","?",";","#"].concat(a),c=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,o,a,d,h,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var v=i.exec(m);if(v)return this.pathname=v[1],v[2]&&(this.search=v[2]),this}var y=n.exec(m);if(y&&(a=(y=y[0]).toLowerCase(),this.protocol=y,m=m.substr(y.length)),(t||y||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(h="//"===m.substr(0,2))||y&&p[y]||(m=m.substr(2),this.slashes=!0)),!p[y]&&(h||y&&!f[y])){var g,b,E=-1;for(r=0;r127?S+="x":S+=k[O];if(!S.match(l)){var x=_.slice(0,r),N=_.slice(r+1),A=k.match(u);A&&(x.push(A[1]),N.unshift(A[2])),N.length&&(m=N.join(".")+m),this.hostname=x.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var D=m.indexOf("#");-1!==D&&(this.hash=m.substr(D),m=m.slice(0,D));var L=m.indexOf("?");return-1!==L&&(this.search=m.substr(L),m=m.slice(0,L)),m&&(this.pathname=m),f[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}},4357:function(e){"use strict";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},3689:function(e,t,n){"use strict";n.r(t),n.d(t,{ucs2decode:function(){return d},ucs2encode:function(){return h},decode:function(){return y},encode:function(){return g},toASCII:function(){return E},toUnicode:function(){return b}});const r=2147483647,i=36,o=/^xn--/,a=/[^\0-\x7E]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=Math.floor,u=String.fromCharCode;function p(e){throw new RangeError(c[e])}function f(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(s,".")).split("."),t).join(".");return r+i}function d(e){const t=[];let n=0;const r=e.length;for(;n=55296&&i<=56319&&nString.fromCodePoint(...e),m=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},v=function(e,t,n){let r=0;for(e=n?l(e/700):e>>1,e+=l(e/t);e>455;r+=i)e=l(e/35);return l(r+36*e/(e+38))},y=function(e){const t=[],n=e.length;let o=0,a=128,s=72,c=e.lastIndexOf("-");c<0&&(c=0);for(let n=0;n=128&&p("not-basic"),t.push(e.charCodeAt(n));for(let f=c>0?c+1:0;f=n&&p("invalid-input");const c=(u=e.charCodeAt(f++))-48<10?u-22:u-65<26?u-65:u-97<26?u-97:i;(c>=i||c>l((r-o)/t))&&p("overflow"),o+=c*t;const d=a<=s?1:a>=s+26?26:a-s;if(cl(r/h)&&p("overflow"),t*=h}const d=t.length+1;s=v(o-c,d,0==c),l(o/d)>r-a&&p("overflow"),a+=l(o/d),o%=d,t.splice(o++,0,a)}var u;return String.fromCodePoint(...t)},g=function(e){const t=[];let n=(e=d(e)).length,o=128,a=0,s=72;for(const n of e)n<128&&t.push(u(n));let c=t.length,f=c;for(c&&t.push("-");f=o&&tl((r-a)/d)&&p("overflow"),a+=(n-o)*d,o=n;for(const n of e)if(nr&&p("overflow"),n==o){let e=a;for(let n=i;;n+=i){const r=n<=s?1:n>=s+26?26:n-s;if(eNumber(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function d(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&u(n,e).includes(e.arrayFormatSeparator);n=o?u(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?u(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],o):r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=h(n[e],t);else r[e]=h(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=p(n):e[t]=n,e}),Object.create(null))}t.extract=d,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[",i,"]"].join("")]:[...n,[l(t,e),"[",l(i,e),"]=",l(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[]"].join("")]:[...n,[l(t,e),"[]=",l(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[l(n,e),t,l(i,e)].join("")]:[[r,l(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,l(t,e)]:[...n,[l(t,e),"=",l(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?l(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?l(n,t)+"[]":i.reduce(r(n),[]).join("&"):l(n,t)+"="+l(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:m(d(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=f(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let c=t.stringify(a,n);c&&(c=`?${c}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[s]?l(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${c}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:c}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:c},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},9921:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,E=n?Symbol.for("react.scope"):60119;function T(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case p:case o:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case l:case f:case v:case m:case c:return e;default:return t}}case i:return t}}}function w(e){return T(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return w(e)||T(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return T(e)===l},t.isContextProvider=function(e){return T(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return T(e)===f},t.isFragment=function(e){return T(e)===o},t.isLazy=function(e){return T(e)===v},t.isMemo=function(e){return T(e)===m},t.isPortal=function(e){return T(e)===i},t.isProfiler=function(e){return T(e)===s},t.isStrictMode=function(e){return T(e)===a},t.isSuspense=function(e){return T(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===s||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===g||e.$$typeof===b||e.$$typeof===E||e.$$typeof===y)},t.typeOf=T},9864:function(e,t,n){"use strict";e.exports=n(9921)},6774:function(e){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},610:function(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},1742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=t,e=[],r.O=function(t,n,i,o){if(!n){var a=1/0;for(u=0;u=o)&&Object.keys(r.O).every((function(e){return r.O[e](n[c])}))?n.splice(c--,1):(s=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,i,o]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={143:0,826:0,611:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var i,o,a=n[0],s=n[1],c=n[2],l=0;if(a.some((function(t){return 0!==e[t]}))){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(c)var u=c(r)}for(t&&t(n);l{const t=null!=e&&e.data?jy(e.data):null;t!==o&&a(t)}))}),[i]);const[u,p]=(0,r.useState)((()=>{const e=c&&c.find((e=>e.id===s));return e?e.id:"graphiql"})());return u?(0,r.createElement)(Vy,{"data-testid":"graphiql-router"},(0,r.createElement)(dt,{style:{height:"calc(100vh - 65px)",width:"100%"}},(0,r.createElement)(Qy,{setQueryParams:n,setCurrentScreen:p,currentScreen:u,screens:c}),(0,r.createElement)(dt,{className:"screen-layout",style:{background:"#fff"}},(e=>{const t=null!==(n=c.find((e=>e.id===u)))&&void 0!==n?n:c[0];var n;return t?(0,r.createElement)(dt,{"data-testid":`router-screen-${t.id}`},null==t?void 0:t.render(e)):null})(e)))):null},Gy=function(e){var t=$l(qy),n=t[0],r=t[1];return s.createElement(Uy,Hl({query:n,setQuery:r},e))},Gy.displayName="withQueryParams("+(Uy.displayName||Uy.name||"Component")+")",Gy);const{hooks:Hy,AppContextProvider:Wy,useAppContext:Yy}=window.wpGraphiQL,Jy=()=>{const e=Yy();return Hy.applyFilters("graphiql_app",(0,r.createElement)($y,null),{appContext:e})};(0,r.render)((0,r.createElement)((()=>{const e=Hy.applyFilters("graphiql_query_params_provider_config",{query:Al,variables:Al}),[t,n]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{if(!t){const e=document.getElementById("graphiql");e&&e.classList.remove("graphiql-container"),Hy.doAction("graphiql_rendered"),n(!0)}}),[]),t?(0,r.createElement)(ru,null,(0,r.createElement)(Zl,{config:e},(e=>{const{query:t,setQuery:n}=e;return(0,r.createElement)(Wy,{queryParams:t,setQueryParams:n},(0,r.createElement)(Jy,null))}))):null}),null),document.getElementById("graphiql"))},5676:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n(20),i=window.wp.hooks,o=n(9307);const a=(0,o.createContext)(),s=(0,i.createHooks)();window.wpGraphiQL={GraphQL:r,hooks:s,useAppContext:()=>(0,o.useContext)(a),AppContextProvider:e=>{let{children:t,setQueryParams:n,queryParams:r}=e;const[i,c]=(0,o.useState)(null),[l,u]=(0,o.useState)(null!==(p=null===(f=window)||void 0===f||null===(d=f.wpGraphiQLSettings)||void 0===d?void 0:d.nonce)&&void 0!==p?p:null);var p,f,d;const[h,m]=(0,o.useState)(null!==(v=null===(y=window)||void 0===y||null===(g=y.wpGraphiQLSettings)||void 0===g?void 0:g.graphqlEndpoint)&&void 0!==v?v:null);var v,y,g;const[b,E]=(0,o.useState)(r);let T={endpoint:h,setEndpoint:m,nonce:l,setNonce:u,schema:i,setSchema:c,queryParams:b,setQueryParams:e=>{E(e),n(e)}},w=s.applyFilters("graphiql_app_context",T);return(0,o.createElement)(a.Provider,{value:w},t)}}},4184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t0&&(l.from=i.default.Pos(l.from.line,l.from.ch),l.to=i.default.Pos(l.to.line,l.to.ch),i.default.signal(e,"hasCompletion",e,l,a)),l}}))},122:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(875),o=r(n(4631)),a=r(n(9068)),s=n(2311);function c(e,t,n){var r,i=(null===(r=t.fieldDef)||void 0===r?void 0:r.name)||"";"__"!==i.slice(0,2)&&(p(e,t,n,t.parentType),d(e,".")),d(e,i,"field-name",n,s.getFieldReference(t))}function l(e,t,n){var r;d(e,"@"+((null===(r=t.directiveDef)||void 0===r?void 0:r.name)||""),"directive-name",n,s.getDirectiveReference(t))}function u(e,t,n,r){d(e,": "),p(e,t,n,r)}function p(e,t,n,r){r instanceof i.GraphQLNonNull?(p(e,t,n,r.ofType),d(e,"!")):r instanceof i.GraphQLList?(d(e,"["),p(e,t,n,r.ofType),d(e,"]")):d(e,(null==r?void 0:r.name)||"","type-name",n,s.getTypeReference(t,r))}function f(e,t,n){var r=n.description;if(r){var i=document.createElement("div");i.className="info-description",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r)),e.appendChild(i)}!function(e,t,n){var r=n.deprecationReason;if(r){var i=document.createElement("div");i.className="info-deprecation",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r));var o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),i.insertBefore(o,i.firstChild),e.appendChild(i)}}(e,t,n)}function d(e,t,n,r,i){if(void 0===n&&(n=""),void 0===r&&(r={onClick:null}),void 0===i&&(i=null),n){var o=r.onClick,a=void 0;o?((a=document.createElement("a")).href="javascript:void 0",a.addEventListener("click",(function(e){o(i,e)}))):a=document.createElement("span"),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}else e.appendChild(document.createTextNode(t))}n(9965),o.default.registerHelper("info","graphql",(function(e,t){if(t.schema&&e.state){var n,r=e.state,i=r.kind,o=r.step,h=a.default(t.schema,e.state);return"Field"===i&&0===o&&h.fieldDef||"AliasedField"===i&&2===o&&h.fieldDef?(function(e,t,n){c(e,t,n),u(e,t,n,t.type)}(n=document.createElement("div"),h,t),f(n,t,h.fieldDef),n):"Directive"===i&&1===o&&h.directiveDef?(l(n=document.createElement("div"),h,t),f(n,t,h.directiveDef),n):"Argument"===i&&0===o&&h.argDef?(function(e,t,n){var r;t.directiveDef?l(e,t,n):t.fieldDef&&c(e,t,n);var i=(null===(r=t.argDef)||void 0===r?void 0:r.name)||"";d(e,"("),d(e,i,"arg-name",n,s.getArgumentReference(t)),u(e,t,n,t.inputType),d(e,")")}(n=document.createElement("div"),h,t),f(n,t,h.argDef),n):"EnumValue"===i&&h.enumValue&&h.enumValue.description?(function(e,t,n){var r,i=(null===(r=t.enumValue)||void 0===r?void 0:r.name)||"";p(e,t,n,t.inputType),d(e,"."),d(e,i,"enum-value",n,s.getEnumValueReference(t))}(n=document.createElement("div"),h,t),f(n,t,h.enumValue),n):"NamedType"===i&&h.type&&h.type.description?(p(n=document.createElement("div"),h,t,h.type),f(n,t,h.type),n):void 0}}))},2570:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4631)),o=r(n(9068)),a=n(2311);n(5805),i.default.registerHelper("jump","graphql",(function(e,t){if(t.schema&&t.onClick&&e.state){var n=e.state,r=n.kind,i=n.step,s=o.default(t.schema,n);return"Field"===r&&0===i&&s.fieldDef||"AliasedField"===r&&2===i&&s.fieldDef?a.getFieldReference(s):"Directive"===r&&1===i&&s.directiveDef?a.getDirectiveReference(s):"Argument"===r&&0===i&&s.argDef?a.getArgumentReference(s):"EnumValue"===r&&s.enumValue?a.getEnumValueReference(s):"NamedType"===r&&s.type?a.getTypeReference(s):void 0}}))},1871:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4631)),o=n(2188),a=["error","warning","information","hint"],s={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};i.default.registerHelper("lint","graphql",(function(e,t){var n=t.schema;return o.getDiagnostics(e,n,t.validationRules,void 0,t.externalFragments).map((function(e){return{message:e.message,severity:e.severity?a[e.severity-1]:a[0],type:e.source?s[e.source]:void 0,from:i.default.Pos(e.range.start.line,e.range.start.character),to:i.default.Pos(e.range.end.line,e.range.end.character)}}))}))},9229:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4631)),o=r(n(88));i.default.defineMode("graphql",o.default)},6276:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4631)),o=n(2188);function a(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}i.default.defineMode("graphql-results",(function(e){var t=o.onlineParser({eatWhitespace:function(e){return e.eatSpace()},lexRules:s,parseRules:c,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var s={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[o.p("{"),o.list("Entry",o.p(",")),o.p("}")],Entry:[o.t("String","def"),o.p(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[o.t("Number","number")],StringValue:[o.t("String","string")],BooleanValue:[o.t("Keyword","builtin")],NullValue:[o.t("Keyword","keyword")],ListValue:[o.p("["),o.list("Value",o.p(",")),o.p("]")],ObjectValue:[o.p("{"),o.list("ObjectField",o.p(",")),o.p("}")],ObjectField:[o.t("String","property"),o.p(":"),"Value"]}},2311:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeReference=t.getEnumValueReference=t.getArgumentReference=t.getDirectiveReference=t.getFieldReference=void 0;var r=n(875);function i(e){return"__"===e.name.slice(0,2)}t.getFieldReference=function(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:i(e.fieldDef)?null:e.parentType}},t.getDirectiveReference=function(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}},t.getArgumentReference=function(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:i(e.fieldDef)?null:e.parentType}},t.getEnumValueReference=function(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?r.getNamedType(e.inputType):void 0}},t.getTypeReference=function(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}},3285:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=[],r=e;r&&r.kind;)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}},9068:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(875),o=n(8155),a=r(n(3285));function s(e,t,n){return n===o.SchemaMetaFieldDef.name&&e.getQueryType()===t?o.SchemaMetaFieldDef:n===o.TypeMetaFieldDef.name&&e.getQueryType()===t?o.TypeMetaFieldDef:n===o.TypeNameMetaFieldDef.name&&i.isCompositeType(t)?o.TypeNameMetaFieldDef:t&&t.getFields?t.getFields()[n]:void 0}t.default=function(e,t){var n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return a.default(t,(function(t){switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?s(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case"SelectionSet":n.parentType=n.type?i.getNamedType(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":var r=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&s(e,n.parentType,t.prevState.name):null:null;n.argDefs=r?r.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(var o=0;o1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+s))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,o){var a=function(e,t){return t?n(n(e.map((function(e){return{proximity:i(r(e.text),t),entry:e}})),(function(e){return e.proximity<=2})),(function(e){return!e.entry.isDeprecated})).sort((function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length})).map((function(e){return e.entry})):n(e,(function(e){return!e.isDeprecated}))}(o,r(t.string));if(a){var s=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:a,from:{line:e.line,ch:s},to:{line:e.line,ch:t.end}}}}},9965:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4631));function o(e,t){var n=e.state.info,r=t.target||t.srcElement;if(r instanceof HTMLElement&&"SPAN"===r.nodeName&&void 0===n.hoverTimeout){var o=r.getBoundingClientRect(),a=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(c,l)},s=function(){i.default.off(document,"mousemove",a),i.default.off(e.getWrapperElement(),"mouseout",s),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},c=function(){i.default.off(document,"mousemove",a),i.default.off(e.getWrapperElement(),"mouseout",s),n.hoverTimeout=void 0,function(e,t){var n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),r=e.state.info.options,o=r.render||e.getHelper(n,"info");if(o){var a=e.getTokenAt(n,!0);if(a){var s=o(a,r,e,n);s&&function(e,t,n){var r=document.createElement("div");r.className="CodeMirror-info",r.appendChild(n),document.body.appendChild(r);var o=r.getBoundingClientRect(),a=window.getComputedStyle(r),s=o.right-o.left+parseFloat(a.marginLeft)+parseFloat(a.marginRight),c=o.bottom-o.top+parseFloat(a.marginTop)+parseFloat(a.marginBottom),l=t.bottom;c>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(l=t.top-c),l<0&&(l=t.bottom);var u,p=Math.max(0,window.innerWidth-s-15);p>t.left&&(p=t.left),r.style.opacity="1",r.style.top=l+"px",r.style.left=p+"px";var f=function(){clearTimeout(u)},d=function(){clearTimeout(u),u=setTimeout(h,200)},h=function(){i.default.off(r,"mouseover",f),i.default.off(r,"mouseout",d),i.default.off(e.getWrapperElement(),"mouseout",d),r.style.opacity?(r.style.opacity="0",setTimeout((function(){r.parentNode&&r.parentNode.removeChild(r)}),600)):r.parentNode&&r.parentNode.removeChild(r)};i.default.on(r,"mouseover",f),i.default.on(r,"mouseout",d),i.default.on(e.getWrapperElement(),"mouseout",d)}(e,t,s)}}}(e,o)},l=function(e){var t=e.state.info.options;return t&&t.hoverTime||500}(e);n.hoverTimeout=setTimeout(c,l),i.default.on(document,"mousemove",a),i.default.on(e.getWrapperElement(),"mouseout",s)}}i.default.defineOption("info",!1,(function(e,t,n){if(n&&n!==i.default.Init){var r=e.state.info.onMouseOver;i.default.off(e.getWrapperElement(),"mouseover",r),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var a=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);a.onMouseOver=o.bind(null,e),i.default.on(e.getWrapperElement(),"mouseover",a.onMouseOver)}}))},1277:function(e,t){"use strict";var n,r,i,o,a,s,c;function l(){var e=i,t=[];if(d("{"),!m("}")){do{t.push(u())}while(m(","));d("}")}return{kind:"Object",start:e,end:a,members:t}}function u(){var e=i,t="String"===c?f():null;d("String"),d(":");var n=p();return{kind:"Member",start:e,end:a,key:t,value:n}}function p(){switch(c){case"[":return function(){var e=i,t=[];if(d("["),!m("]")){do{t.push(p())}while(m(","));d("]")}return{kind:"Array",start:e,end:a,values:t}}();case"{":return l();case"String":case"Number":case"Boolean":case"Null":var e=f();return y(),e}d("Value")}function f(){return{kind:c,start:i,end:o,value:JSON.parse(n.slice(i,o))}}function d(e){if(c!==e){var t;if("EOF"===c)t="[end of file]";else if(o-i>1)t="`"+n.slice(i,o)+"`";else{var r=n.slice(i).match(/^.+?\b/);t="`"+(r?r[0]:n[i])+"`"}throw h("Expected "+e+" but found "+t+".")}y()}function h(e){return{message:e,start:i,end:o}}function m(e){if(c===e)return y(),!0}function v(){return o31;)if(92===s)switch(s=v()){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:v();break;case 117:v(),g(),g(),g(),g();break;default:throw h("Bad character escape sequence.")}else{if(o===r)throw h("Unterminated string.");v()}if(34!==s)throw h("Unterminated string.");v()}();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return c="Number",45===s&&v(),48===s?v():b(),46===s&&(v(),b()),void(69!==s&&101!==s||(43!==(s=v())&&45!==s||v(),b()));case 102:if("false"!==n.slice(i,i+5))break;return o+=4,v(),void(c="Boolean");case 110:if("null"!==n.slice(i,i+4))break;return o+=3,v(),void(c="Null");case 116:if("true"!==n.slice(i,i+4))break;return o+=3,v(),void(c="Boolean")}c=n[i],v()}else c="EOF"}function g(){if(s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102)return v();throw h("Expected hexadecimal digit.")}function b(){if(s<48||s>57)throw h("Expected decimal digit.");do{v()}while(s>=48&&s<=57)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){n=e,r=e.length,i=o=a=-1,v(),y();var t=l();return d("EOF"),t}},5805:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4631));function o(e,t){var n=t.target||t.srcElement;if(n instanceof HTMLElement&&"SPAN"===(null==n?void 0:n.nodeName)){var r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&l(e)}}function a(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&u(e):e.state.jump.cursor=null}function s(e,t){if(!e.state.jump.isHoldingModifier&&t.key===(c?"Meta":"Control")){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&l(e);var n=function(a){a.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&u(e),i.default.off(document,"keyup",n),i.default.off(document,"click",r),e.off("mousedown",o))},r=function(t){var n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)},o=function(t,n){e.state.jump.destination&&(n.codemirrorIgnore=!0)};i.default.on(document,"keyup",n),i.default.on(document,"click",r),e.on("mousedown",o)}}i.default.defineOption("jump",!1,(function(e,t,n){if(n&&n!==i.default.Init){var r=e.state.jump.onMouseOver;i.default.off(e.getWrapperElement(),"mouseover",r);var c=e.state.jump.onMouseOut;i.default.off(e.getWrapperElement(),"mouseout",c),i.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){var l=e.state.jump={options:t,onMouseOver:o.bind(null,e),onMouseOut:a.bind(null,e),onKeyDown:s.bind(null,e)};i.default.on(e.getWrapperElement(),"mouseover",l.onMouseOver),i.default.on(e.getWrapperElement(),"mouseout",l.onMouseOut),i.default.on(document,"keydown",l.onKeyDown)}}));var c="undefined"!=typeof navigator&&navigator&&-1!==navigator.appVersion.indexOf("Mac");function l(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,n=e.coordsChar(t),r=e.getTokenAt(n,!0),i=e.state.jump.options,o=i.getDestination||e.getHelper(n,"jump");if(o){var a=o(r,i,e);if(a){var s=e.markText({line:n.line,ch:r.start},{line:n.line,ch:r.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=s,e.state.jump.destination=a}}}}function u(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}},88:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(2188),o=r(n(9655));t.default=function(e){var t=i.onlineParser({eatWhitespace:function(e){return e.eatWhile(i.isIgnored)},lexRules:i.LexRules,parseRules:i.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o.default,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}}},9655:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}},6094:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4631)),o=n(875),a=r(n(3285)),s=r(n(8984));i.default.registerHelper("hint","graphql-variables",(function(e,t){var n=e.getCursor(),r=e.getTokenAt(n),c=function(e,t,n){var r="Invalid"===t.state.kind?t.state.prevState:t.state,i=r.kind,c=r.step;if("Document"===i&&0===c)return s.default(e,t,[{text:"{"}]);var l=n.variableToType;if(l){var u=function(e,t){var n={type:null,fields:null};return a.default(t,(function(t){if("Variable"===t.kind)n.type=e[t.name];else if("ListValue"===t.kind){var r=n.type?o.getNullableType(n.type):void 0;n.type=r instanceof o.GraphQLList?r.ofType:null}else if("ObjectValue"===t.kind){var i=n.type?o.getNamedType(n.type):void 0;n.fields=i instanceof o.GraphQLInputObjectType?i.getFields():null}else if("ObjectField"===t.kind){var a=t.name&&n.fields?n.fields[t.name]:null;n.type=a&&a.type}})),n}(l,t.state);if("Document"===i||"Variable"===i&&0===c){var p=Object.keys(l);return s.default(e,t,p.map((function(e){return{text:'"'+e+'": ',type:l[e]}})))}if(("ObjectValue"===i||"ObjectField"===i&&0===c)&&u.fields){var f=Object.keys(u.fields).map((function(e){return u.fields[e]}));return s.default(e,t,f.map((function(e){return{text:'"'+e.name+'": ',type:e.type,description:e.description}})))}if("StringValue"===i||"NumberValue"===i||"BooleanValue"===i||"NullValue"===i||"ListValue"===i&&1===c||"ObjectField"===i&&2===c||"Variable"===i&&2===c){var d=u.type?o.getNamedType(u.type):void 0;if(d instanceof o.GraphQLInputObjectType)return s.default(e,t,[{text:"{"}]);if(d instanceof o.GraphQLEnumType){var h=d.getValues();return s.default(e,t,h.map((function(e){return{text:'"'+e.name+'"',type:d,description:e.description}})))}if(d===o.GraphQLBoolean)return s.default(e,t,[{text:"true",type:o.GraphQLBoolean,description:"Not false."},{text:"false",type:o.GraphQLBoolean,description:"Not true."}])}}}(n,r,t);return c&&c.list&&c.list.length>0&&(c.from=i.default.Pos(c.from.line,c.from.ch),c.to=i.default.Pos(c.to.line,c.to.ch),i.default.signal(e,"hasCompletion",e,c,r)),c}))},373:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(4631)),a=n(875),s=i(n(1277));function c(e,t){if(!e||!t)return[];if(e instanceof a.GraphQLNonNull)return"Null"===t.kind?[[t,'Type "'+e+'" is non-nullable and cannot be null.']]:c(e.ofType,t);if("Null"===t.kind)return[];if(e instanceof a.GraphQLList){var n=e.ofType;return"Array"===t.kind?u(t.values||[],(function(e){return c(n,e)})):c(n,t)}if(e instanceof a.GraphQLInputObjectType){if("Object"!==t.kind)return[[t,'Type "'+e+'" must be an Object.']];var r=Object.create(null),i=u(t.members,(function(t){var n,i=null===(n=null==t?void 0:t.key)||void 0===n?void 0:n.value;r[i]=!0;var o=e.getFields()[i];return o?c(o?o.type:void 0,t.value):[[t.key,'Type "'+e+'" does not have a field "'+i+'".']]}));return Object.keys(e.getFields()).forEach((function(n){r[n]||e.getFields()[n].type instanceof a.GraphQLNonNull&&i.push([t,'Object of type "'+e+'" is missing required field "'+n+'".'])})),i}return"Boolean"===e.name&&"Boolean"!==t.kind||"String"===e.name&&"String"!==t.kind||"ID"===e.name&&"Number"!==t.kind&&"String"!==t.kind||"Float"===e.name&&"Number"!==t.kind||"Int"===e.name&&("Number"!==t.kind||(0|t.value)!==t.value)||(e instanceof a.GraphQLEnumType||e instanceof a.GraphQLScalarType)&&("String"!==t.kind&&"Number"!==t.kind&&"Boolean"!==t.kind&&"Null"!==t.kind||null==(o=e.parseValue(t.value))||o!=o)?[[t,'Expected value of type "'+e+'".']]:[];var o}function l(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function u(e,t){return Array.prototype.concat.apply([],e.map(t))}o.default.registerHelper("lint","graphql-variables",(function(e,t,n){if(!e)return[];var i;try{i=s.default(e)}catch(e){if(e.stack)throw e;return[l(n,e,e.message)]}var o=t.variableToType;return o?function(e,t,n){var i=[];return n.members.forEach((function(n){var o;if(n){var a=null===(o=n.key)||void 0===o?void 0:o.value,s=t[a];s?c(s,n.value).forEach((function(t){var n=r(t,2),o=n[0],a=n[1];i.push(l(e,o,a))})):i.push(l(e,n.key,'Variable "$'+a+'" does not appear in any GraphQL query.'))}})),i}(n,o,i):[]}))},9677:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4631)),o=n(2188);function a(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}i.default.defineMode("graphql-variables",(function(e){var t=o.onlineParser({eatWhitespace:function(e){return e.eatSpace()},lexRules:s,parseRules:c,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var s={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[o.p("{"),o.list("Variable",o.opt(o.p(","))),o.p("}")],Variable:[l("variable"),o.p(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[o.t("Number","number")],StringValue:[o.t("String","string")],BooleanValue:[o.t("Keyword","builtin")],NullValue:[o.t("Keyword","keyword")],ListValue:[o.p("["),o.list("Value",o.opt(o.p(","))),o.p("]")],ObjectValue:[o.p("{"),o.list("ObjectField",o.opt(o.p(","))),o.p("}")],ObjectField:[l("attribute"),o.p(":"),"Value"]};function l(e){return{style:e,match:function(e){return"String"===e.kind},update:function(e,t){e.name=t.value.slice(1,-1)}}}},4504:function(e,t,n){!function(e){"use strict";var t={},n=/[^\s\u00a0]/,r=e.Pos,i=e.cmpPos;function o(e){var t=e.search(n);return-1==t?0:t}function a(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=t);for(var n=this,i=1/0,o=this.listSelections(),a=null,s=o.length-1;s>=0;s--){var c=o[s].from(),l=o[s].to();c.line>=i||(l.line>=i&&(l=r(i,0)),i=c.line,null==a?n.uncomment(c,l,e)?a="un":(n.lineComment(c,l,e),a="line"):"un"==a?n.uncomment(c,l,e):n.lineComment(c,l,e))}})),e.defineExtension("lineComment",(function(e,i,s){s||(s=t);var c,l,u=this,p=a(u,e),f=u.getLine(e.line);if(null!=f&&(c=e,l=f,!/\bstring\b/.test(u.getTokenTypeAt(r(c.line,0)))||/^[\'\"\`]/.test(l))){var d=s.lineComment||p.lineComment;if(d){var h=Math.min(0!=i.ch||i.line==e.line?i.line+1:i.line,u.lastLine()+1),m=null==s.padding?" ":s.padding,v=s.commentBlankLines||e.line==i.line;u.operation((function(){if(s.indent){for(var t=null,i=e.line;ia.length)&&(t=a)}for(i=e.line;if||c.operation((function(){if(0!=s.fullLines){var t=n.test(c.getLine(f));c.replaceRange(d+p,r(f)),c.replaceRange(u+d,r(e.line,0));var a=s.blockCommentLead||l.blockCommentLead;if(null!=a)for(var h=e.line+1;h<=f;++h)(h!=f||t)&&c.replaceRange(a+d,r(h,0))}else{var m=0==i(c.getCursor("to"),o),v=!c.somethingSelected();c.replaceRange(p,o),m&&c.setSelection(v?o:c.getCursor("from"),o),c.replaceRange(u,e)}}))}}else(s.lineComment||l.lineComment)&&0!=s.fullLines&&c.lineComment(e,o,s)})),e.defineExtension("uncomment",(function(e,i,o){o||(o=t);var s,c=this,l=a(c,e),u=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,c.lastLine()),p=Math.min(e.line,u),f=o.lineComment||l.lineComment,d=[],h=null==o.padding?" ":o.padding;e:if(f){for(var m=p;m<=u;++m){var v=c.getLine(m),y=v.indexOf(f);if(y>-1&&!/comment/.test(c.getTokenTypeAt(r(m,y+1)))&&(y=-1),-1==y&&n.test(v))break e;if(y>-1&&n.test(v.slice(0,y)))break e;d.push(v)}if(c.operation((function(){for(var e=p;e<=u;++e){var t=d[e-p],n=t.indexOf(f),i=n+f.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),s=!0,c.replaceRange("",r(e,n),r(e,i)))}})),s)return!0}var g=o.blockCommentStart||l.blockCommentStart,b=o.blockCommentEnd||l.blockCommentEnd;if(!g||!b)return!1;var E=o.blockCommentLead||l.blockCommentLead,T=c.getLine(p),w=T.indexOf(g);if(-1==w)return!1;var _=u==p?T:c.getLine(u),k=_.indexOf(b,u==p?w+g.length:0),S=r(p,w+1),O=r(u,k+1);if(-1==k||!/comment/.test(c.getTokenTypeAt(S))||!/comment/.test(c.getTokenTypeAt(O))||c.getRange(S,O,"\n").indexOf(b)>-1)return!1;var C=T.lastIndexOf(g,e.ch),x=-1==C?-1:T.slice(0,e.ch).indexOf(b,C+g.length);if(-1!=C&&-1!=x&&x+b.length!=e.ch)return!1;x=_.indexOf(b,i.ch);var N=_.slice(i.ch).lastIndexOf(g,x-i.ch);return C=-1==x||-1==N?-1:i.ch+N,(-1==x||-1==C||C==i.ch)&&(c.operation((function(){c.replaceRange("",r(u,k-(h&&_.slice(k-h.length,k)==h?h.length:0)),r(u,k+b.length));var e=w+g.length;if(h&&T.slice(e,e+h.length)==h&&(e+=h.length),c.replaceRange("",r(p,w),r(p,e)),E)for(var t=p+1;t<=u;++t){var i=c.getLine(t),o=i.indexOf(E);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+E.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),c.replaceRange("",r(t,o),r(t,a))}}})),!0)}))}(n(4631))},5292:function(e,t,n){!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,c=this;function l(t){if("string"==typeof t)p.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus(),o.onClose&&o.onClose(a)}}var u,p=a.getElementsByTagName("input")[0];return p?(p.focus(),o.value&&(p.value=o.value,!1!==o.selectValueOnOpen&&p.select()),o.onInput&&e.on(p,"input",(function(e){o.onInput(e,p.value,l)})),o.onKeyUp&&e.on(p,"keyup",(function(e){o.onKeyUp(e,p.value,l)})),e.on(p,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,p.value,l)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(p.blur(),e.e_stop(t),l()),13==t.keyCode&&i(p.value,t))})),!1!==o.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&l()}))):(u=a.getElementsByTagName("button")[0])&&(e.on(u,"click",(function(){l(),c.focus()})),!1!==o.closeOnBlur&&e.on(u,"blur",l),u.focus()),l})),e.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),c=!1,l=this,u=1;function p(){c||(c=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus())}s[0].focus();for(var f=0;f",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))}));var i={Backspace:function(t){var i=s(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),c=0;c=0;c--){var p=a[c].head;t.replaceRange("",n(p.line,p.ch-1),n(p.line,p.ch+1),"+delete")}},Enter:function(t){var n=s(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a1&&h.indexOf(i)>=0&&t.getRange(n(T.line,T.ch-2),T)==i+i){if(T.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(T.line,T.ch-2))))return e.Pass;b="addFour"}else if(m){var _=0==T.ch?" ":t.getRange(n(T.line,T.ch-1),T);if(e.isWordChar(w)||_==i||e.isWordChar(_))return e.Pass;b="both"}else{if(!y||!(0===w.length||/\s/.test(w)||d.indexOf(w)>-1))return e.Pass;b="both"}else b=m&&p(t,T)?"both":h.indexOf(i)>=0&&t.getRange(T,n(T.line,T.ch+3))==i+i+i?"skipThree":"skip";if(f){if(f!=b)return e.Pass}else f=b}var k=u%2?a.charAt(u-1):i,S=u%2?i:a.charAt(u+1);t.operation((function(){if("skip"==f)c(t,1);else if("skipThree"==f)c(t,3);else if("surround"==f){for(var e=t.getSelections(),n=0;n0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,i)}function l(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function u(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function p(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")}(n(4631))},4328:function(e,t,n){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),c=t.ch-1,l=o&&o.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var u=i(o),p=!l&&c>=0&&u.test(s.text.charAt(c))&&r[s.text.charAt(c)]||u.test(s.text.charAt(c+1))&&r[s.text.charAt(++c)];if(!p)return null;var f=">"==p.charAt(1)?1:-1;if(o&&o.strict&&f>0!=(c==t.ch))return null;var d=e.getTokenTypeAt(n(t.line,c+1)),h=a(e,n(t.line,c+(f>0?1:0)),f,d,o);return null==h?null:{from:n(t.line,c),to:h&&h.pos,match:h&&h.ch==p.charAt(0),forward:f>0}}function a(e,t,o,a,s){for(var c=s&&s.maxScanLineLength||1e4,l=s&&s.maxScanLines||1e3,u=[],p=i(s),f=o>0?Math.min(t.line+l,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-l),d=t.line;d!=f;d+=o){var h=e.getLine(d);if(h){var m=o>0?0:h.length-1,v=o>0?h.length:-1;if(!(h.length>c))for(d==t.line&&(m=t.ch-(o<0?1:0));m!=v;m+=o){var y=h.charAt(m);if(p.test(y)&&(void 0===a||(e.getTokenTypeAt(n(d,m+1))||"")==(a||""))){var g=r[y];if(g&&">"==g.charAt(1)==o>0)u.push(y);else{if(!u.length)return{pos:n(d,m),ch:y};u.pop()}}}}}return d-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,c=[],l=e.listSelections(),u=0;uu))l=u,s="{",c="}";else{if(null==p)return;l=p,s="[",c="]"}var f,d,h=1,m=t.lastLine();e:for(var v=i;v<=m;++v)for(var y=t.getLine(v),g=v==i?l:0;;){var b=y.indexOf(s,g),E=y.indexOf(c,g);if(b<0&&(b=y.length),E<0&&(E=y.length),(g=Math.min(b,E))==y.length)break;if(t.getTokenTypeAt(e.Pos(v,g+1))==r)if(g==b)++h;else if(!--h){f=v,d=g;break e}++g}if(null!=f&&i!=f)return{from:e.Pos(i,l),to:e.Pos(f,d)}})),e.registerHelper("fold","import",(function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var c=r(s.line+1);if(null==c)break;s=c.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}})),e.registerHelper("fold","include",(function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}}))}(n(4631))},8657:function(e,t,n){!function(e){"use strict";function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=r(t,i,"minFoldSize");function c(e){var r=a(t,n);if(!r||r.to.line-r.from.linet.firstLine();)n=e.Pos(n.line-1,0),l=c(!1);if(l&&!l.cleared&&"unfold"!==o){var u=function(e,t,n){var i=r(e,t,"widget");if("function"==typeof i&&(i=i(n.from,n.to)),"string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}(t,i,l);e.on(u,"mousedown",(function(t){p.clear(),e.e_preventDefault(t)}));var p=t.markText(l.from,l.to,{replacedWith:u,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});p.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,l.from,l.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n=l){if(f&&a&&f.test(a.className))return;o=i(s.indicatorOpen)}}(o||a)&&e.setGutterMarker(n,s.gutter,o)}))}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function s(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){o(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function c(e,n,i){var o=e.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var s=r(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function l(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){s(e)}),n.foldOnChangeTimeSpan||600)}}function u(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?s(e):e.operation((function(){n.fromt.to&&(o(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function p(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var i=0;il.clientHeight+1;if(setTimeout((function(){x=a.getScrollInfo()})),N.bottom-C>0){var D=N.bottom-N.top;if(y.top-(y.bottom-N.top)-D>0)l.style.top=(b=y.top-D-w)+"px",E=!1;else if(D>C){l.style.height=C-5+"px",l.style.top=(b=y.bottom-N.top-w)+"px";var L=a.getCursor();n.from.ch!=L.ch&&(y=a.cursorCoords(L),l.style.left=(g=y.left-T)+"px",N=l.getBoundingClientRect())}}var I,P=N.right-O;if(A&&(P+=a.display.nativeBarWidth),P>0&&(N.right-N.left>O&&(l.style.width=O-5+"px",P-=N.right-N.left-O),l.style.left=(g=y.left-P-T)+"px"),A)for(var R=l.firstChild;R;R=R.nextSibling)R.style.paddingRight=a.display.nativeBarWidth+"px";a.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return i}(t,{moveFocus:function(e,t){r.changeActive(r.selectedHint+e,t)},setFocus:function(e){r.changeActive(e)},menuSize:function(){return r.screenAmount()},length:p.length,close:function(){t.close()},pick:function(){r.pick()},data:n})),t.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){I=setTimeout((function(){t.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(I)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect();x||(x=a.getScrollInfo());var r=b+x.top-e.top,i=r-(c.pageYOffset||(s.documentElement||s.body).scrollTop);if(E||(i+=l.offsetHeight),i<=n.top||i>=n.bottom)return t.close();l.style.top=r+"px",l.style.left=g+x.left-e.left+"px"}),e.on(l,"dblclick",(function(e){var t=o(l,e.target||e.srcElement);t&&null!=t.hintId&&(r.changeActive(t.hintId),r.pick())})),e.on(l,"click",(function(e){var n=o(l,e.target||e.srcElement);n&&null!=n.hintId&&(r.changeActive(n.hintId),t.options.completeOnSingleClick&&r.pick())})),e.on(l,"mousedown",(function(){setTimeout((function(){a.focus()}),20)}));var M=this.getSelectedHintRange();return 0===M.from&&0===M.to||this.scrollToActive(),e.signal(n,"select",p[this.selectedHint],l.childNodes[this.selectedHint]),!0}function s(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],o=this;this.cm.operation((function(){r.hint?r.hint(o.cm,t,r):o.cm.replaceRange(i(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),o.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(r(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),i=this.cm.getLine(t.line);if(t.line!=this.startPos.line||i.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" CodeMirror-hint-active",""),r.removeAttribute("aria-selected")),(r=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",r.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",r.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],r=this.hints.firstChild;t.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r0?t(e):i(o+1)}))}(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",(function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(n(4631))},3256:function(e,t,n){!function(e){"use strict";var t="CodeMirror-lint-markers";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(t,r,i,o){var a=function(t,n,r){var i=document.createElement("div");function o(t){if(!i.parentNode)return e.off(document,"mousemove",o);i.style.top=Math.max(0,t.clientY-i.offsetHeight-5)+"px",i.style.left=t.clientX+5+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),e.on(document,"mousemove",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}(t,r,i);function s(){var t;e.off(o,"mouseout",s),a&&((t=a).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout((function(){n(t)}),600)),a=null)}var c=setInterval((function(){if(a)for(var e=o;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){s();break}}if(!a)return clearInterval(c)}),400);e.on(o,"mouseout",s)}function i(e,t,n){for(var i in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},o)this.options[i]=o[i];for(var i in t)o.hasOwnProperty(i)?null!=t[i]&&(this.options[i]=t[i]):t.options||(this.linterOptions[i]=t[i]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,s=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),l=[],u=0;u-1)&&d.push(e.message)}));for(var h=null,m=o.hasGutter&&document.createDocumentFragment(),v=0;v1,l.tooltips)),l.highlightLines&&e.addLineClass(p,"wrap","CodeMirror-lint-line-"+h)}}l.onUpdateLinting&&l.onUpdateLinting(n,u,e)}}function p(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){l(e)}),t.options.delay))}e.defineOption("lint",!1,(function(n,r,o){if(o&&o!=e.Init&&(a(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",p),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var s=n.getOption("gutters"),c=!1,u=0;u '+e.phrase("(Use line:column or scroll% syntax)")+""}(e),e.phrase("Jump to line:"),n.line+1+":"+n.ch,(function(r){var i;if(r)if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(r))e.setCursor(t(e,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(r)){var o=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=n.line+o+1),e.setCursor(o-1,n.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(r))&&e.setCursor(t(e,i[1]),n.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}(n(4631),n(5292))},1699:function(e,t,n){!function(e){"use strict";function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:r(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function a(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function s(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=a(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function c(e,t,n){t.queryText=n,t.query=s(n),e.removeOverlay(t.overlay,r(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function l(t,r,i,a){var s=n(t);if(s.query)return u(t,r);var l=t.getSelection()||s.lastQuery;if(l instanceof RegExp&&"x^"==l.source&&(l=null),i&&t.openDialog){var f=null,h=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(c(t,s,n),s.posFrom=s.posTo=t.getCursor()),f&&(f.style.opacity=1),u(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((f=r).style.opacity=.4)})))};(function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){p(e)},onKeyDown:i,bottom:e.options.search.bottom})})(t,d(t),l,h,(function(r,i){var o=e.keyName(r),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(r),c(t,n(t),i),t.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(r),h(i,r))})),a&&l&&(c(t,s,l),u(t,r))}else o(t,d(t),"Search for:",l,(function(e){e&&!s.query&&t.operation((function(){c(t,s,e),s.posFrom=s.posTo=t.getCursor(),u(t,r)}))}))}function u(t,r,o){t.operation((function(){var a=n(t),s=i(t,a.query,r?a.posFrom:a.posTo);(s.find(r)||(s=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))}))}function p(e){e.operation((function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function f(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;iu);p++){var f=e.getLine(l++);s=null==s?f:s+"\n"+f}c*=2,t.lastIndex=n.ch;var d=t.exec(s);if(d){var h=s.slice(0,d.index).split("\n"),m=d[0].split("\n"),v=n.line+h.length-1,y=h[h.length-1].length;return{from:r(v,y),to:r(v+m.length-1,1==m.length?y+m[0].length:m[m.length-1].length),match:d}}}}function c(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function l(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var l=e.getLine(o),u=c(l,t,a<0?0:l.length-a);if(u)return{from:r(o,u.index),to:r(o,u.index+u[0].length),match:u}}}function u(e,t,n){if(!o(t))return l(e,t,n);t=i(t,"gm");for(var a,s=1,u=e.getLine(n.line).length-n.ch,p=n.line,f=e.firstLine();p>=f;){for(var d=0;d=f;d++){var h=e.getLine(p--);a=null==a?h:h+"\n"+a}s*=2;var m=c(a,t,u);if(m){var v=a.slice(0,m.index).split("\n"),y=m[0].split("\n"),g=p+v.length,b=v[v.length-1].length;return{from:r(g,b),to:r(g+y.length-1,1==y.length?b+y[0].length:y[y.length-1].length),match:m}}}}function p(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,c=s(i).split(/\r|\n\r?/);e:for(var l=o.line,u=o.ch,f=e.lastLine()+1-c.length;l<=f;l++,u=0){var d=e.getLine(l).slice(u),h=s(d);if(1==c.length){var m=h.indexOf(c[0]);if(-1==m)continue e;return o=p(d,h,m,s)+u,{from:r(l,p(d,h,m,s)+u),to:r(l,p(d,h,m+c[0].length,s)+u)}}var v=h.length-c[0].length;if(h.slice(v)==c[0]){for(var y=1;y=f;l--,u=-1){var d=e.getLine(l);u>-1&&(d=d.slice(0,u));var h=s(d);if(1==c.length){var m=h.lastIndexOf(c[0]);if(-1==m)continue e;return{from:r(l,p(d,h,m,s)),to:r(l,p(d,h,m+c[0].length,s))}}var v=c[c.length-1];if(h.slice(0,v.length)==v){var y=1;for(o=l-c.length+1;y(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new h(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new h(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(4631))},3412:function(e,t,n){!function(e){"use strict";var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy((function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",c=r.ch,l=c,u=i<0?0:o.length,p=0;l!=u;l+=i,p++){var f=o.charAt(i<0?l-1:l),d="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==d&&f.toUpperCase()==f&&(d="W"),"start"==s)"o"!=d?(s="in",a=d):c=l+i;else if("in"==s&&a!=d){if("w"==a&&"W"==d&&i<0&&l--,"W"==a&&"w"==d&&i>0){if(l==c+1){a="w";continue}l--}break}}return n(r.line,l)}(t.doc,i.head,r):r<0?i.from():i.to()}))}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;io.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;s--){var l=r[i[s]];if(!(c&&e.cmpPos(l.head,c)>0)){var u=o(t,l.head);c=u.from,t.replaceRange(n(u.word),u.from,u.to)}}}))}function f(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function d(e,t){var r=f(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){c(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!c(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,l(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,l(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;so?i.push(l,u):i.length&&(i[i.length-1]=u),o=u}t.operation((function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],c=s.to().line+1,l=s.from().line;0!=s.to().ch||s.empty()||c--,c=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),c=e.countColumn(s,null,t.getOption("tabSize")),l=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&c%i==0){var u=new n(a.line,e.findColumn(s,c-i,i));u.ch!=a.ch&&(l=u)}t.replaceRange("",l,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){p(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){p(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){d(e,!0)},t.findUnderPrevious=function(e){d(e,!1)},t.findAllUnder=function(e){var t=f(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var h=e.keyMap;h.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(h.macSublime),h.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(h.pcSublime);var m=h.default==h.macDefault;h.sublime=m?h.macSublime:h.pcSublime}(n(4631),n(2095),n(4328))},4631:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),c=!o&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\//.test(e),p=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),g=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),E=/win/i.test(t),T=p&&e.match(/Version\/(\d*\.\d*)/);T&&(T=Number(T[1])),T&&T>=15&&(p=!1,c=!0);var w=g&&(l||p&&(null==T||T<12.11)),_=n||a&&s>=9;function k(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,O=function(e,t){var n=e.className,r=k(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function C(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function x(e,t){return C(e).appendChild(t)}function N(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?R=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(R=function(e){try{e.select()}catch(e){}});var V=function(){this.id=null,this.f=null,this.time=0,this.handler=M(this.onTimeout,this)};function Q(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var z=[""];function $(e){for(;z.length<=e;)z.push(H(z)+" ");return z[e]}function H(e){return e[e.length-1]}function W(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||X.test(e))}function ee(e,t){return t?!!(t.source.indexOf("\\w")>-1&&Z(e))||t.test(e):Z(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function re(e){return e.charCodeAt(0)>=768&&ne.test(e)}function ie(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ae=null;function se(e,t,n){var r;ae=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ae=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ae=i)}return null!=r?r:ae}var ce=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var c,l="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var u=a.length,p=[],f=0;f-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function he(e,t){var n=fe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function ge(e){e.prototype.on=function(e,t){pe(this,e,t)},e.prototype.off=function(e,t){de(this,e,t)}}function be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ee(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Te(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function we(e){be(e),Ee(e)}function _e(e){return e.target||e.srcElement}function ke(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),g&&e.ctrlKey&&1==t&&(t=3),t}var Se,Oe,Ce=function(){if(a&&s<9)return!1;var e=N("div");return"draggable"in e||"dragDrop"in e}();function xe(e){if(null==Se){var t=N("span","​");x(e,N("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Se=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Se?N("span","​"):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ne(e){if(null!=Oe)return Oe;var t=x(e,document.createTextNode("AخA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return C(e),!(!n||n.left==n.right)&&(Oe=r.right-n.right<3)}var Ae,De=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Le=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ie="oncopy"in(Ae=N("div"))||(Ae.setAttribute("oncopy","return;"),"function"==typeof Ae.oncopy),Pe=null;var Re={},Me={};function je(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Re[e]=t}function Fe(e){if("string"==typeof e&&Me.hasOwnProperty(e))e=Me[e];else if(e&&"string"==typeof e.name&&Me.hasOwnProperty(e.name)){var t=Me[e.name];"string"==typeof t&&(t={name:t}),(e=J(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Fe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Fe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ve(e,t){t=Fe(t);var n=Re[t.name];if(!n)return Ve(e,"text/plain");var r=n(e,t);if(Qe.hasOwnProperty(t.name)){var i=Qe[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Qe={};function qe(e,t){j(t,Qe.hasOwnProperty(e)?Qe[e]:Qe[e]={})}function Ue(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ge(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Be(e,t,n){return!e.startState||e.startState(t,n)}var Ke=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function ze(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?et(n,ze(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,ze(e,t.line).text.length)}function ct(e,t){for(var n=[],r=0;r=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.post},Ke.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ke.prototype.backUp=function(e){this.pos-=e},Ke.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ke.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ke.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var lt=function(e,t){this.state=e,this.lookAhead=t},ut=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function pt(e,t,n,r){var i=[e.state.modeGen],o={};Et(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],c=1,l=0;n.state=!0,Et(e,t.text,s.mode,n,(function(e,t){for(var n=c;le&&i.splice(c,1,e,i[c+1],r),c+=2,l=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,c-n,e,"overlay "+t),c=n+2;else for(;ne.options.maxHighlightLength&&Ue(e.doc.mode,r.state),o=pt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function dt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ut(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var c=ze(o,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof lt?l.lookAhead:0)<=o.modeFrontier))return s;var u=F(c.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}(e,t,n),a=o>r.first&&ze(r,o-1).stateAfter,s=a?ut.fromSaved(r,a,o):new ut(r,Be(r.mode),o);return r.iter(o,t,(function(n){ht(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ut.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ut.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ut.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ut.fromSaved=function(e,t,n){return t instanceof lt?new ut(e,Ue(e.mode,t.state),n,t.lookAhead):new ut(e,Ue(e.mode,t),n)},ut.prototype.save=function(e){var t=!1!==e?Ue(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new lt(t,this.maxLookAhead):t};var yt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function gt(e,t,n,r){var i,o,a=e.doc,s=a.mode,c=ze(a,(t=st(a,t)).line),l=dt(e,t.line,n),u=new Ke(c.text,e.options.tabSize,l);for(r&&(o=[]);(r||u.pose.options.maxHighlightLength?(s=!1,a&&ht(e,t,r,p.pos),p.pos=t.length,c=null):c=bt(vt(n,p,r.state,f),o),f){var d=f[0].name;d&&(c="m-"+(c?d+" "+c:d))}if(!s||u!=c){for(;l=t:o.to>t);(r||(r=[])).push(new _t(a,o.from,s?null:o.to))}}return r}(n,i,a),c=function(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;bt)&&(!n||Lt(n,o.marker)<0)&&(n=o.marker)}return n}function jt(e,t,n,r,i){var o=ze(e,t),a=wt&&o.markedSpans;if(a)for(var s=0;s=0&&p<=0||u<=0&&p>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?tt(l.to,n)>=0:tt(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?tt(l.from,r)<=0:tt(l.from,r)<0)))return!0}}}function Ft(e){for(var t;t=Pt(e);)e=t.find(-1,!0).line;return e}function Vt(e,t){var n=ze(e,t),r=Ft(n);return n==r?t:Ye(r)}function Qt(e,t){if(t>e.lastLine())return t;var n,r=ze(e,t);if(!qt(e,r))return t;for(;n=Rt(r);)r=n.find(1,!0).line;return Ye(r)+1}function qt(e,t){var n=wt&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var zt=function(e,t,n){this.text=e,Nt(this,t),this.height=n?n(this):1};function $t(e){e.parent=null,xt(e)}zt.prototype.lineNo=function(){return Ye(this)},ge(zt);var Ht={},Wt={};function Yt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Wt:Ht;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Jt(e,t){var n=A("span",null,null,c?"padding-right: .1px":null),r={pre:A("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=Zt,Ne(e.display.measure)&&(a=le(o,e.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[],nn(o,r,ft(e,o,t!=e.display.externalMeasured&&Ye(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=P(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=P(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(xe(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return he(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=P(r.pre.className,r.textClass||"")),r}function Xt(e){var t=N("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Zt(e,t,n,r,i,o,c){if(t){var l,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;il&&p.from<=l);f++);if(p.to>=u)return e(n,r,i,o,a,s,c);e(n,r.slice(0,p.to-l),i,o,null,s,c),o=null,r=r.slice(p.to-l),l=p.to}}}function tn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,c,l,u,p,f,d=i.length,h=0,m=1,v="",y=0;;){if(y==h){c=l=u=s="",f=null,p=null,y=1/0;for(var g=[],b=void 0,E=0;Eh||w.collapsed&&T.to==h&&T.from==h)){if(null!=T.to&&T.to!=h&&y>T.to&&(y=T.to,l=""),w.className&&(c+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&T.from==h&&(u+=" "+w.startStyle),w.endStyle&&T.to==y&&(b||(b=[])).push(w.endStyle,T.to),w.title&&((f||(f={})).title=w.title),w.attributes)for(var _ in w.attributes)(f||(f={}))[_]=w.attributes[_];w.collapsed&&(!p||Lt(p.marker,w)<0)&&(p=T)}else T.from>h&&y>T.from&&(y=T.from)}if(b)for(var k=0;k=d)break;for(var O=Math.min(d,y);;){if(v){var C=h+v.length;if(!p){var x=C>O?v.slice(0,O-h):v;t.addToken(t,x,a?a+c:c,u,h+x.length==y?l:"",s,f)}if(C>=O){v=v.slice(O-h),h=O;break}h=C,u=""}v=i.slice(o,o=n[m++]),a=Yt(n[m++],t.cm.options)}}else for(var N=1;Nn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Dn(e,t,n,r){return Pn(e,In(e,t),n,r)}function Ln(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&o.push((c.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=jn(t.map,n,r),c=o.node,l=o.start,u=o.end,p=o.collapse;if(3==c.nodeType){for(var f=0;f<4;f++){for(;l&&re(t.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+u1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var d;l>0&&(p=r="right"),i=e.options.lineWrapping&&(d=c.getClientRects()).length>1?d["right"==r?d.length-1:0]:c.getBoundingClientRect()}if(a&&s<9&&!l&&(!i||!i.left&&!i.right)){var h=c.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+or(e.display),top:h.top,bottom:h.bottom}:Mn}for(var m=i.top-t.rect.top,v=i.bottom-t.rect.top,y=(m+v)/2,g=t.view.measure.heights,b=0;bt)&&(i=(o=c-s)-1,t>=c&&(a="right")),null!=i){if(r=e[l+2],s==c&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],a="left";if("right"==n&&i==c-s)for(;l=0&&(n=e[i]).left==n.right;i--);return n}function Vn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(c=r.text.length,l="before"):c<=0&&(c=0,l="after"),!s)return a("before"==l?c-1:c,"before"==l);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var p=se(s,c,l),f=ae,d=u(c,p,"before"==l);return null!=f&&(d.other=u(c,f,"before"!=l)),d}function Wn(e,t){var n=0;t=st(e.doc,t),e.options.lineWrapping||(n=or(e.display)*t.ch);var r=ze(e.doc,t.line),i=Gt(r)+kn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Yn(e,t,n,r,i){var o=et(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Jn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Yn(r.first,0,null,-1,-1);var i=Je(r,n),o=r.first+r.size-1;if(i>o)return Yn(r.first+r.size-1,ze(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=ze(r,i);;){var s=tr(e,a,i,t,n),c=Mt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!c)return s;var l=c.find(1);if(l.line==i)return l;a=ze(r,i=l.line)}}function Xn(e,t,n,r){r-=Bn(t);var i=t.text.length,o=oe((function(t){return Pn(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=oe((function(t){return Pn(e,n,t).top>r}),o,i)}}function Zn(e,t,n,r){return n||(n=In(e,t)),Xn(e,t,n,Kn(e,t,Pn(e,n,r),"line").top)}function er(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function tr(e,t,n,r,i){i-=Gt(t);var o=In(e,t),a=Bn(t),s=0,c=t.text.length,l=!0,u=le(t,e.doc.direction);if(u){var p=(e.options.lineWrapping?rr:nr)(e,t,n,o,u,r,i);s=(l=1!=p.level)?p.from:p.to-1,c=l?p.to:p.from-1}var f,d,h=null,m=null,v=oe((function(t){var n=Pn(e,o,t);return n.top+=a,n.bottom+=a,!!er(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,c),y=!1;if(m){var g=r-m.left=E.bottom?1:0}return Yn(n,v=ie(t.text,v,1),d,y,r-f)}function nr(e,t,n,r,i,o,a){var s=oe((function(s){var c=i[s],l=1!=c.level;return er(Hn(e,et(n,l?c.to:c.from,l?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),c=i[s];if(s>0){var l=1!=c.level,u=Hn(e,et(n,l?c.from:c.to,l?"after":"before"),"line",t,r);er(u,o,a,!0)&&u.top>a&&(c=i[s-1])}return c}function rr(e,t,n,r,i,o,a){var s=Xn(e,t,r,a),c=s.begin,l=s.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var u=null,p=null,f=0;f=l||d.to<=c)){var h=Pn(e,r,1!=d.level?Math.min(l,d.to)-1:Math.max(c,d.from)).right,m=hm)&&(u=d,p=m)}}return u||(u=i[i.length-1]),u.froml&&(u={from:u.from,to:l,level:u.level}),u}function ir(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Rn){Rn=N("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Rn.appendChild(document.createTextNode("x")),Rn.appendChild(N("br"));Rn.appendChild(document.createTextNode("x"))}x(e.measure,Rn);var n=Rn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),C(e.measure),n||1}function or(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=N("span","xxxxxxxxxx"),n=N("pre",[t],"CodeMirror-line-like");x(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function ar(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:sr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function sr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function cr(e){var t=ir(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/or(e.display)-3);return function(i){if(qt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(c=ze(e.doc,l.line).text).length==l.ch){var u=F(c,c.length,e.options.tabSize)-c.length;l=et(l.line,Math.max(0,Math.round((o-On(e.display).left)/or(e.display))-u))}return l}function pr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)wt&&Vt(e.doc,t)i.viewFrom?hr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)hr(e);else if(t<=i.viewFrom){var o=mr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):hr(e)}else if(n>=i.viewTo){var a=mr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):hr(e)}else{var s=mr(e,t,t,-1),c=mr(e,n,n+r,1);s&&c?(i.view=i.view.slice(0,s.index).concat(on(e,s.lineN,c.lineN)).concat(i.view.slice(c.index)),i.viewTo+=r):hr(e)}var l=i.externalMeasured;l&&(n=i.lineN&&t=r.viewTo)){var o=r.view[pr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==Q(a,n)&&a.push(n)}}}function hr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function mr(e,t,n,r){var i,o=pr(e,t),a=e.display.view;if(!wt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,c=0;c0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Vt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function vr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||c.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(N("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Er(e,t){return e.top-t.top||e.left-t.left}function Tr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=On(e.display),s=a.left,c=Math.max(r.sizerWidth,xn(e)-r.sizer.offsetLeft)-a.right,l="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(N("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?c-e:n)+"px;\n height: "+(r-t)+"px"))}function p(t,n,r){var o,a,p=ze(i,t),f=p.text.length;function d(n,r){return $n(e,et(t,n),"div",p,r)}function h(t,n,r){var i=Zn(e,p,null,t),o="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(p.text.charAt(i.end-1))?2:1),o)[o]}var m=le(p,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?f:r,(function(e,t,i,p){var v="ltr"==i,y=d(e,v?"left":"right"),g=d(t-1,v?"right":"left"),b=null==n&&0==e,E=null==r&&t==f,T=0==p,w=!m||p==m.length-1;if(g.top-y.top<=3){var _=(l?E:b)&&w,k=(l?b:E)&&T?s:(v?y:g).left,S=_?c:(v?g:y).right;u(k,y.top,S-k,y.bottom)}else{var O,C,x,N;v?(O=l&&b&&T?s:y.left,C=l?c:h(e,i,"before"),x=l?s:h(t,i,"after"),N=l&&E&&w?c:g.right):(O=l?h(e,i,"before"):s,C=!l&&b&&T?c:y.right,x=!l&&E&&w?s:g.left,N=l?h(t,i,"after"):c),u(O,y.top,C-O,y.bottom),y.bottom0?t.blinker=setInterval((function(){e.hasFocus()||Or(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function _r(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Sr(e))}function kr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Or(e))}),100)}function Sr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(he(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),c&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),wr(e))}function Or(e,t){e.state.delayingBlurEvent||(e.state.focused&&(he(e,"blur",e,t),e.state.focused=!1,O(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Cr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,c=0;c.005||m<-.005)&&(ie.display.sizerWidth){var y=Math.ceil(f/or(e.display));y>e.display.maxLineLength&&(e.display.maxLineLength=y,e.display.maxLine=l.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function xr(e){if(e.widgets)for(var t=0;t=a&&(o=Je(t,Gt(ze(t,c))-e.wrapper.clientHeight),a=c)}return{from:o,to:Math.max(a,o+1)}}function Ar(e,t){var n=e.display,r=ir(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Nn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Sn(n),c=t.tops-r;if(t.topi+o){var u=Math.min(t.top,(l?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var p=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-p,d=xn(e)-n.gutters.offsetWidth,h=t.right-t.left>d;return h&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.leftd+f-3&&(a.scrollLeft=t.right+(h?0:10)-d),a}function Dr(e,t){null!=t&&(Pr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Lr(e){Pr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ir(e,t,n){null==t&&null==n||Pr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Pr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Rr(e,Wn(e,t.from),Wn(e,t.to),t.margin))}function Rr(e,t,n,r){var i=Ar(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Ir(e,i.scrollLeft,i.scrollTop)}function Mr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||li(e,{top:t}),jr(e,t,!0),n&&li(e),ii(e,100))}function jr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Fr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,fi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Vr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Sn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Cn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Qr=function(e,t,n){this.cm=n;var r=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),pe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),pe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Qr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Qr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Qr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Qr.prototype.zeroWidthHack=function(){var e=g&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},Qr.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}))},Qr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var qr=function(){};function Ur(e,t){t||(t=Vr(e));var n=e.display.barWidth,r=e.display.barHeight;Gr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Cr(e),Gr(e,Vr(e)),n=e.display.barWidth,r=e.display.barHeight}function Gr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}qr.prototype.update=function(){return{bottom:0,right:0}},qr.prototype.setScrollLeft=function(){},qr.prototype.setScrollTop=function(){},qr.prototype.clear=function(){};var Br={native:Qr,null:qr};function Kr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&O(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Br[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Fr(e,t):Mr(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var zr=0;function $r(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++zr,markArrays:null},t=e.curOp,an?an.ops.push(t):t.ownsGroup=an={ops:[t],delayedCallbacks:[]}}function Hr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ai(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Yr(e){e.updatedDisplay=e.mustUpdate&&si(e.cm,e.update)}function Jr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Cr(t),e.barMeasure=Vr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Dn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Cn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-xn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Xr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=N("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-kn(e.display))+"px;\n height: "+(t.bottom-t.top+Cn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?et(t.line,t.ch+1,"before"):t,t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Hn(e,t),c=n&&n!=t?Hn(e,n):s,l=Ar(e,i={left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-r,right:Math.max(s.left,c.left),bottom:Math.max(s.bottom,c.bottom)+r}),u=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=l.scrollTop&&(Mr(e,l.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=l.scrollLeft&&(Fr(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(a=!0)),!a)break}return i}(t,st(r,e.scrollToPos.from),st(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a=e.display.viewTo)){var n=+new Date+e.options.workTime,r=dt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ue(t.mode,r.state):null,c=pt(e,o,r,!0);s&&(r.state=s),o.styles=c.styles;var l=o.styleClasses,u=c.classes;u?o.styleClasses=u:l&&(o.styleClasses=null);for(var p=!a||a.length!=o.styles.length||l!=u&&(!l||!u||l.bgClass!=u.bgClass||l.textClass!=u.textClass),f=0;!p&&fn)return ii(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ei(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==vr(e))return!1;di(e)&&(hr(e),t.dims=ar(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),wt&&(o=Vt(e.doc,o),a=Qt(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;(function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=on(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=on(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,pr(e,n)))),r.viewTo=n})(e,o,a),n.viewOffset=Gt(ze(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=vr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(e){if(e.hasFocus())return null;var t=L();if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return l>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return c&&g&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var l=r.view,u=r.viewFrom,p=0;p-1&&(d=!1),un(e,f,u,n)),d&&(C(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(Ze(e.options,u)))),a=f.node.nextSibling}else{var h=yn(e,f,u,n);o.insertBefore(h,a)}u+=f.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=L()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(u),C(n.cursorDiv),C(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ii(e,400)),n.updateLineNumbers=null,!0}function ci(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=xn(e))r&&(t.visible=Nr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Sn(e.display)-Nn(e),n.top)}),t.visible=Nr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!si(e,t))break;Cr(e);var i=Vr(e);yr(e),Ur(e,i),pi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function li(e,t){var n=new ai(e,t);if(si(e,n)){Cr(e),ci(e,n);var r=Vr(e);yr(e),Ur(e,r),pi(e,r),n.finish()}}function ui(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",cn(e,"gutterChanged",e)}function pi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Cn(e)+"px"}function fi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=sr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;al.clientWidth,f=l.scrollHeight>l.clientHeight;if(i&&u||o&&f){if(o&&g&&c)e:for(var d=t.target,h=s.view;d!=l;d=d.parentNode)for(var m=0;m=0&&tt(e,r.to())<=0)return n}return-1};var ki=function(e,t){this.anchor=e,this.head=t};function Si(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return tt(e.from(),t.from())})),n=Q(t,i);for(var o=1;o0:c>=0){var l=ot(s.from(),a.from()),u=it(s.to(),a.to()),p=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new ki(p?u:l,p?l:u))}}return new _i(t,n)}function Oi(e,t){return new _i([new ki(e,t||e)],0)}function Ci(e){return e.text?et(e.from.line+e.text.length-1,H(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function xi(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return Ci(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Ci(t).ch-t.to.ch),et(n,r)}function Ni(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,y)}cn(e,"change",e,t)}function Ri(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;as-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Qi(e.done),H(e.done)):e.done.length&&!H(e.done).ranges?H(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),H(e.done)):void 0}(i,i.lastOp==r)))a=H(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,a.to)?a.to=Ci(t):o.changes.push(Vi(e,t));else{var c=H(i.done);for(c&&c.ranges||Gi(e.sel,i.done),o={changes:[Vi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||he(e,"historyAdded")}function Ui(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,H(i.done),t))?i.done[i.done.length-1]=t:Gi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Qi(i.undone)}function Gi(e,t){var n=H(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Bi(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Ki(e){if(!e)return null;for(var t,n=0;n-1&&(H(s)[p]=l[p],delete l[p])}}}return r}function Hi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=tt(t,i)<0;o!=tt(n,i)<0?(i=t,t=n):o!=tt(t,n)<0&&(t=n)}return new ki(i,t)}return new ki(n||t,t)}function Wi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),eo(e,new _i([Hi(e.sel.primary(),t,n,i)],0),r)}function Yi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(he(c,"beforeCursorEnter"),c.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!c.atomic)continue;if(n){var p=c.find(r<0?1:-1),f=void 0;if((r<0?u:l)&&(p=so(e,p,-r,p&&p.line==t.line?o:null)),p&&p.line==t.line&&(f=tt(p,n))&&(r<0?f<0:f>0))return oo(e,p,t,r,i)}var d=c.find(r<0?-1:1);return(r<0?l:u)&&(d=so(e,d,r,d.line==t.line?o:null)),d?oo(e,d,t,r,i):null}}return t}function ao(e,t,n,r,i){var o=r||1;return oo(e,t,n,o,i)||!i&&oo(e,t,n,o,!0)||oo(e,t,n,-o,i)||!i&&oo(e,t,n,-o,!0)||(e.cantEdit=!0,et(e.first,0))}function so(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?st(e,et(t.line-1)):null:n>0&&t.ch==(r||ze(e,t.line)).text.length?t.line0)){var u=[c,1],p=tt(l.from,s.from),f=tt(l.to,s.to);(p<0||!a.inclusiveLeft&&!p)&&u.push({from:l.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)po(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else po(e,t)}}function po(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=Ni(e,t);qi(e,t,n,e.cm?e.cm.curOp.id:NaN),mo(e,t,n,Ot(e,t));var r=[];Ri(e,(function(e,n){n||-1!=Q(r,e.history)||(bo(e.history,t),r.push(e.history)),mo(e,t,null,Ot(e,t))}))}}function fo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,c="undo"==t?o.undone:o.done,l=0;l=0;--d){var h=f(d);if(h)return h.v}}}}function ho(e,t){if(0!=t&&(e.first+=t,e.sel=new _i(W(e.sel.ranges,(function(e){return new ki(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){fr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:et(o,ze(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=$e(e,t.from,t.to),n||(n=Ni(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,c=o.line;e.options.lineWrapping||(c=Ye(Ft(ze(r,o.line))),r.iter(c,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ve(e),Pi(r,t,n,cr(e)),e.options.lineWrapping||(r.iter(c,o.line+t.text.length,(function(e){var t=Bt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=ze(e,r).stateAfter;if(i&&(!(i instanceof lt)||r+i.lookAhead1||!(this.children[0]instanceof To))){var s=[];this.collapse(s),this.children=[new To(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=A("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(jt(e,t.line,t,n,o)||t.line!=n.line&&jt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");wt=!0}o.addToHistory&&qi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,c=t.line,l=e.cm;if(e.iter(c,n.line+1,(function(r){l&&o.collapsed&&!l.options.lineWrapping&&Ft(r)==l.display.maxLine&&(s=!0),o.collapsed&&c!=t.line&&We(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new _t(o,c==t.line?t.ch:null,c==n.line?n.ch:null),e.cm&&e.cm.curOp),++c})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){qt(e,t)&&We(t,0)})),o.clearOnEnter&&pe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Tt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++So,o.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),o.collapsed)fr(l,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)dr(l,u,"text");o.atomic&&ro(l.doc),cn(l,"markerAdded",l,o)}return o}Oo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&$r(e),ye(this,"clear")){var n=this.find();n&&cn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&fr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ro(e.doc)),e&&cn(e,"markerCleared",e,this,r,i),t&&Hr(e),this.parent&&this.parent.clear()}},Oo.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;c--)uo(this,r[c]);s?Zi(this,s):this.cm&&Lr(this.cm)})),undo:ri((function(){fo(this,"undo")})),redo:ri((function(){fo(this,"redo")})),undoSelection:ri((function(){fo(this,"undo",!0)})),redoSelection:ri((function(){fo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=st(this,e),t=st(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=c.to||null==c.from&&i!=e.line||null!=c.from&&i==t.line&&c.from>=t.ch||n&&!n(c.marker)||r.push(c.marker.parent||c.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n})),st(this,et(n,t))},indexFromPos:function(e){var t=(e=st(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var p=e.dataTransfer.getData("Text");if(p){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),to(t.doc,Oi(n,n)),f)for(var d=0;d=0;t--)vo(e.doc,"",r[t].from,r[t].to,"+delete");Lr(e)}))}function Zo(e,t,n){var r=ie(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ea(e,t,n){var r=Zo(e,t.ch,n);return null==r?null:new et(t.line,r,n<0?"after":"before")}function ta(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=le(n,t.doc.direction);if(o){var a,s=i<0?H(o):o[0],c=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var l=In(t,n);a=i<0?n.text.length-1:0;var u=Pn(t,l,a).top;a=oe((function(e){return Pn(t,l,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=Zo(n,a,1))}else a=i<0?s.to:s.from;return new et(r,a,c)}}return new et(r,i<0?n.text.length:0,i<0?"before":"after")}Bo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Bo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Bo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Bo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Bo.default=g?Bo.macDefault:Bo.pcDefault;var na={selectAll:co,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),U)},killLine:function(e){return Xo(e,(function(t){if(t.empty()){var n=ze(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new et(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),et(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=ze(e.doc,i.line-1).text;a&&(i=new et(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),et(i.line-1,a.length-1),i,"+transpose"))}n.push(new ki(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return ei(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(tt((i=l.ranges[i]).from(),t)<0||t.xRel>0)&&(tt(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,l=ti(e,(function(t){c&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:kr(e)),de(i.wrapper.ownerDocument,"mouseup",l),de(i.wrapper.ownerDocument,"mousemove",u),de(i.scroller,"dragstart",p),de(i.scroller,"drop",l),o||(be(t),r.addNew||Wi(e.doc,n,null,null,r.extend),c&&!f||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},p=function(){return o=!0};c&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,pe(i.wrapper.ownerDocument,"mouseup",l),pe(i.wrapper.ownerDocument,"mousemove",u),pe(i.scroller,"dragstart",p),pe(i.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&kr(e);var i=e.display,o=e.doc;be(t);var s,c,l=o.sel,u=l.ranges;if(r.addNew&&!r.extend?(c=o.sel.contains(n),s=c>-1?u[c]:new ki(n,n)):(s=o.sel.primary(),c=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new ki(n,n)),n=ur(e,t,!0,!0),c=-1;else{var p=ga(e,n,r.unit);s=r.extend?Hi(s,p.anchor,p.head,r.extend):p}r.addNew?-1==c?(c=u.length,eo(o,Si(e,u.concat([s]),c),{scroll:!1,origin:"*mouse"})):u.length>1&&u[c].empty()&&"char"==r.unit&&!r.extend?(eo(o,Si(e,u.slice(0,c).concat(u.slice(c+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Ji(o,c,s,G):(c=0,eo(o,new _i([s],0),G),l=o.sel);var f=n;function d(t){if(0!=tt(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,u=F(ze(o,n.line).text,n.ch,a),p=F(ze(o,t.line).text,t.ch,a),d=Math.min(u,p),h=Math.max(u,p),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var y=ze(o,m).text,g=K(y,d,a);d==h?i.push(new ki(et(m,g),et(m,g))):y.length>g&&i.push(new ki(et(m,g),et(m,K(y,h,a))))}i.length||i.push(new ki(n,n)),eo(o,Si(e,l.ranges.slice(0,c).concat(i),c),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,E=s,T=ga(e,t,r.unit),w=E.anchor;tt(T.anchor,w)>0?(b=T.head,w=ot(E.from(),T.anchor)):(b=T.anchor,w=it(E.to(),T.head));var _=l.ranges.slice(0);_[c]=function(e,t){var n=t.anchor,r=t.head,i=ze(e.doc,n.line);if(0==tt(n,r)&&n.sticky==r.sticky)return t;var o=le(i);if(!o)return t;var a=se(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var c,l=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==o.length)return t;if(r.line!=n.line)c=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=se(o,r.ch,r.sticky),p=u-a||(r.ch-n.ch)*(1==s.level?-1:1);c=u==l-1||u==l?p<0:p>0}var f=o[l+(c?-1:0)],d=c==(1==f.level),h=d?f.from:f.to,m=d?"after":"before";return n.ch==h&&n.sticky==m?t:new ki(new et(n.line,h,m),r)}(e,new ki(st(o,w),b)),eo(o,Si(e,_,c),G)}}var h=i.wrapper.getBoundingClientRect(),m=0;function v(t){var n=++m,a=ur(e,t,!0,"rectangle"==r.unit);if(a)if(0!=tt(a,f)){e.curOp.focus=L(),d(a);var s=Nr(i,o);(a.line>=s.to||a.lineh.bottom?20:0;c&&setTimeout(ti(e,(function(){m==n&&(i.scroller.scrollTop+=c,v(t))})),50)}}function y(t){e.state.selectingText=!1,m=1/0,t&&(be(t),i.input.focus()),de(i.wrapper.ownerDocument,"mousemove",g),de(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var g=ti(e,(function(e){0!==e.buttons&&ke(e)?v(e):y(e)})),b=ti(e,y);e.state.selectingText=b,pe(i.wrapper.ownerDocument,"mousemove",g),pe(i.wrapper.ownerDocument,"mouseup",b)}(e,r,t,o)}(t,r,o,e):_e(e)==n.scroller&&be(e):2==i?(r&&Wi(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(_?t.display.input.onContextMenu(e):kr(t)))}}function ga(e,t,n){if("char"==n)return new ki(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ki(et(t.line,0),st(e.doc,et(t.line+1,0)));var r=n(e,t);return new ki(r.from,r.to)}function ba(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&be(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ye(e,n))return Te(t);o-=s.top-a.viewOffset;for(var c=0;c=i)return he(e,n,e,Je(e.doc,o),e.display.gutterSpecs[c].className,t),Te(t)}}function Ea(e,t){return ba(e,t,"gutterClick",!0)}function Ta(e,t){wn(e.display,t)||function(e,t){return!!ye(e,"gutterContextMenu")&&ba(e,t,"gutterContextMenu",!1)}(e,t)||me(e,t,"contextmenu")||_||e.display.input.onContextMenu(t)}function wa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),qn(e)}va.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var _a={toString:function(){return"CodeMirror.Init"}},ka={},Sa={};function Oa(e,t,n){if(!t!=!(n&&n!=_a)){var r=e.display.dragFunctions,i=t?pe:de;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Ca(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(O(e.display.wrapper,"CodeMirror-wrap"),Kt(e)),lr(e),fr(e),qn(e),setTimeout((function(){return Ur(e)}),100)}function xa(e,t){var n=this;if(!(this instanceof xa))return new xa(e,t);this.options=t=t?j(t):{},j(ka,t,!1);var r=t.value;"string"==typeof r?r=new Lo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new xa.inputStyles[t.inputStyle](this),o=this.display=new yi(e,r,i,t);for(var l in o.wrapper.CodeMirror=this,wa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;pe(t.scroller,"mousedown",ti(e,ya)),pe(t.scroller,"dblclick",a&&s<11?ti(e,(function(t){if(!me(e,t)){var n=ur(e,t);if(n&&!Ea(e,t)&&!wn(e.display,t)){be(t);var r=e.findWordAt(n);Wi(e.doc,r.anchor,r.head)}}})):function(t){return me(e,t)||be(t)}),pe(t.scroller,"contextmenu",(function(t){return Ta(e,t)})),pe(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Ta(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function c(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}pe(t.scroller,"touchstart",(function(i){if(!me(e,i)&&!o(i)&&!Ea(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),pe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),pe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!wn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||c(r,r.prev)?new ki(a,a):!r.prev.prev||c(r,r.prev.prev)?e.findWordAt(a):new ki(et(a.line,0),st(e.doc,et(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),be(n)}i()})),pe(t.scroller,"touchcancel",i),pe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Mr(e,t.scroller.scrollTop),Fr(e,t.scroller.scrollLeft,!0),he(e,"scroll",e))})),pe(t.scroller,"mousewheel",(function(t){return wi(e,t)})),pe(t.scroller,"DOMMouseScroll",(function(t){return wi(e,t)})),pe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){me(e,t)||we(t)},over:function(t){me(e,t)||(function(e,t){var n=ur(e,t);if(n){var r=document.createDocumentFragment();br(e,n,r),e.display.dragCursor||(e.display.dragCursor=N("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),x(e.display.dragCursor,r)}}(e,t),we(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Io<100))we(t);else if(!me(e,t)&&!wn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=N("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}(e,t)},drop:ti(e,Po),leave:function(t){me(e,t)||Ro(e)}};var l=t.input.getField();pe(l,"keyup",(function(t){return fa.call(e,t)})),pe(l,"keydown",ti(e,pa)),pe(l,"keypress",ti(e,da)),pe(l,"focus",(function(t){return Sr(e,t)})),pe(l,"blur",(function(t){return Or(e,t)}))}(this),Fo(),$r(this),this.curOp.forceUpdate=!0,Mi(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Sr(n)}),20):Or(this),Sa)Sa.hasOwnProperty(l)&&Sa[l](this,t[l],_a);di(this),t.finishInit&&t.finishInit(this);for(var u=0;u150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?F(ze(o,t-1).text,null,a):0:"add"==n?l=c+e.options.indentUnit:"subtract"==n?l=c-e.options.indentUnit:"number"==typeof n&&(l=c+n),l=Math.max(0,l);var p="",f=0;if(e.options.indentWithTabs)for(var d=Math.floor(l/a);d;--d)f+=a,p+="\t";if(fa,c=De(t),l=null;if(s&&r.ranges.length>1)if(Da&&Da.text.join("\n")==t){if(r.ranges.length%Da.text.length==0){l=[];for(var u=0;u=0;f--){var d=r.ranges[f],h=d.from(),m=d.to();d.empty()&&(n&&n>0?h=et(h.line,h.ch-n):e.state.overwrite&&!s?m=et(m.line,Math.min(ze(o,m.line).text.length,m.ch+H(c).length)):s&&Da&&Da.lineWise&&Da.text.join("\n")==c.join("\n")&&(h=m=et(h.line,0)));var v={from:h,to:m,text:l?l[f%l.length]:c,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};uo(e.doc,v),cn(e,"inputRead",e,v)}t&&!s&&Ra(e,t),Lr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Pa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||ei(t,(function(){return Ia(t,n,0,null,"paste")})),!0}function Ra(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Aa(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(ze(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Aa(e,i.head.line,"smart"));a&&cn(e,"electricInput",e,i.head.line)}}}function Ma(e){for(var t=[],n=[],r=0;r0?0:-1));if(isNaN(u))a=null;else{var p=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new et(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(p?2:1))),-n)}}else a=i?function(e,t,n,r){var i=le(t,e.doc.direction);if(!i)return ea(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=se(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&f>=u.begin)){var d=p?"before":"after";return new et(n.line,f,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new et(n.line,c(e,1),"before"):new et(n.line,e,"after")};e>=0&&e0==(1!=a.level),l=s?r.begin:c(r.end,-1);if(a.from<=l&&l0?u.end:c(u.begin,-1);return null==v||r>0&&v==t.text.length||!(m=h(r>0?0:i.length-1,r,l(v)))?null:m}(e.cm,s,t,n):ea(s,t,n);if(null==a){if(o||((l=t.line+c)=e.first+e.size||(t=new et(l,t.ch,t.sticky),!(s=ze(e,l)))))return!1;t=ta(i,e.cm,s,t.line,c)}else t=a;return!0}if("char"==r||"codepoint"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var u=null,p="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||l(!d);d=!1){var h=s.text.charAt(t.ch)||"\n",m=ee(h,f)?"w":p&&"\n"==h?"n":!p||/\s/.test(h)?null:"p";if(!p||d||m||(m="s"),u&&u!=m){n<0&&(n=1,l(),t.sticky="after");break}if(m&&(u=m),n>0&&!l(!d))break}var v=ao(e,t,o,a,!0);return nt(o,v)&&(v.hitSide=!0),v}function Qa(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var c=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(c-.5*ir(e.display),3);i=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Jn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var qa=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ua(e,t){var n=Ln(e,t.line);if(!n||n.hidden)return null;var r=ze(e.doc,t.line),i=An(n,r,t.line),o=le(r,e.doc.direction),a="left";o&&(a=se(o,t.ch)%2?"right":"left");var s=jn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Ga(e,t){return t&&(e.bad=!0),e}function Ba(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Ga(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||o.line=t.display.viewFrom&&Ua(t,i)||{node:c[0].measure.map[2],offset:0},u=o.liner.firstLine()&&(a=et(a.line-1,ze(r.doc,a.line-1).length)),s.ch==ze(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=pr(r,a.line))?(t=Ye(i.view[0].line),n=i.view[0].node):(t=Ye(i.view[e].line),n=i.view[e-1].node.nextSibling);var c,l,u=pr(r,s.line);if(u==i.view.length-1?(c=i.viewTo-1,l=i.lineDiv.lastChild):(c=Ye(i.view[u+1].line)-1,l=i.view[u+1].node.previousSibling),!n)return!1;for(var p=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),c=!1;function l(){a&&(o+=s,c&&(o+=s),a=c=!1)}function u(e){e&&(l(),o+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,f=t.getAttribute("cm-marker");if(f){var d=e.findMarks(et(r,0),et(i+1,0),(v=+f,function(e){return e.id==v}));return void(d.length&&(o=d[0].find(0))&&u($e(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&l();for(var m=0;m1&&f.length>1;)if(H(p)==H(f))p.pop(),f.pop(),c--;else{if(p[0]!=f[0])break;p.shift(),f.shift(),t++}for(var d=0,h=0,m=p[0],v=f[0],y=Math.min(m.length,v.length);da.ch&&g.charCodeAt(g.length-h-1)==b.charCodeAt(b.length-h-1);)d--,h++;p[p.length-1]=g.slice(0,g.length-h).replace(/^\u200b+/,""),p[0]=p[0].slice(d).replace(/\u200b+$/,"");var T=et(t,d),w=et(c,f.length?H(f).length-h:0);return p.length>1||p[0]||tt(T,w)?(vo(r.doc,p,T,w,"+input"),!0):void 0},qa.prototype.ensurePolled=function(){this.forceCompositionEnd()},qa.prototype.reset=function(){this.forceCompositionEnd()},qa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},qa.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},qa.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ei(this.cm,(function(){return fr(e.cm)}))},qa.prototype.setUneditable=function(e){e.contentEditable="false"},qa.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ti(this.cm,Ia)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},qa.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},qa.prototype.onContextMenu=function(){},qa.prototype.resetPosition=function(){},qa.prototype.needsContentAttribute=!0;var za=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null};za.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!me(r,e)){if(r.somethingSelected())La({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ma(r);La({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,U):(n.prevInput="",i.value=t.text.join("\n"),R(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),pe(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),pe(i,"paste",(function(e){me(r,e)||Pa(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pe(i,"cut",o),pe(i,"copy",o),pe(e.scroller,"paste",(function(t){if(!wn(e,t)&&!me(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),pe(e.lineSpace,"selectstart",(function(t){wn(e,t)||be(t)})),pe(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pe(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},za.prototype.createField=function(e){this.wrapper=Fa(),this.textarea=this.wrapper.firstChild},za.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},za.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=gr(e);if(e.options.moveInputWithCursor){var i=Hn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},za.prototype.showSelection=function(e){var t=this.cm.display;x(t.cursorDiv,e.cursors),x(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},za.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&R(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},za.prototype.getField=function(){return this.textarea},za.prototype.supportsTouch=function(){return!1},za.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||L()!=this.textarea))try{this.textarea.focus()}catch(e){}},za.prototype.blur=function(){this.textarea.blur()},za.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},za.prototype.receivedFocus=function(){this.slowPoll()},za.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},za.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},za.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Le(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||g&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var c=0,l=Math.min(r.length,i.length);c1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},za.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},za.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},za.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=ur(n,e),l=r.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ti(n,eo)(n.doc,Oi(o),U);var u,f=i.style.cssText,d=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",c&&(u=window.scrollY),r.input.focus(),c&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),_){we(e);var m=function(){de(window,"mouseup",m),setTimeout(y,20)};pe(window,"mouseup",m)}else setTimeout(y,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=f,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ti(n,co)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},za.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},za.prototype.setUneditable=function(){},za.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=_a&&i(e,t,n)}:i)}e.defineOption=n,e.Init=_a,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Di(e)}),!0),n("indentUnit",2,Di,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Li(e),qn(e),fr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(et(r,o))}r++}));for(var i=n.length-1;i>=0;i--)vo(e.doc,t,n[i],et(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=_a&&e.refresh()})),n("specialCharPlaceholder",Xt,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!E),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){wa(e),vi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Jo(t),i=n!=_a&&Jo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ca,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=hi(t,e.options.lineNumbers),vi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?sr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Ur(e)}),!0),n("scrollbarStyle","native",(function(e){Kr(e),Ur(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=hi(e.options.gutters,t),vi(e)}),!0),n("firstLineNumber",1,vi,!0),n("lineNumberFormatter",(function(e){return e}),vi,!0),n("showCursorWhenSelecting",!1,yr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Or(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Oa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,yr,!0),n("singleCursorHeightPerLine",!0,yr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Li,!0),n("addModeClass",!1,Li,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Li,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(xa),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ti(this,t[e])(this,n,i),he(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Jo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Aa(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Lr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var c=s;c0&&Ji(this.doc,r,new ki(o,l[r].to()),U)}}})),getTokenAt:function(e,t){return gt(this,e,t)},getLineTokens:function(e,t){return gt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=st(this.doc,e);var t,n=ft(this,ze(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=ze(this.doc,e)}else r=e;return Kn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Gt(r):0)},defaultTextHeight:function(){return ir(this.display)},defaultCharWidth:function(){return or(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,c=this.display,l=(e=Hn(this,st(this.doc,e))).bottom,u=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),c.sizer.appendChild(t),"over"==r)l=e.top;else if("above"==r||"near"==r){var p=Math.max(c.wrapper.clientHeight,this.doc.height),f=Math.max(c.sizer.clientWidth,c.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>p)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=p&&(l=e.bottom),u+t.offsetWidth>f&&(u=f-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(u=c.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(c.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&(o=this,a={left:u,top:l,right:u+t.offsetWidth,bottom:l+t.offsetHeight},null!=(s=Ar(o,a)).scrollTop&&Mr(o,s.scrollTop),null!=s.scrollLeft&&Fr(o,s.scrollLeft))},triggerOnKeyDown:ni(pa),triggerOnKeyPress:ni(da),triggerOnKeyUp:fa,triggerOnMouseDown:ni(ya),execCommand:function(e){if(na.hasOwnProperty(e))return na[e].call(null,this)},triggerElectric:ni((function(e){Ra(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=st(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&lr(this),he(this,"refresh",this)})),swapDoc:ni((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Mi(this,e),qn(this),this.display.input.reset(),Ir(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,cn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ge(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(xa);var $a="iter insert remove copy getEditor constructor".split(" ");for(var Ha in Lo.prototype)Lo.prototype.hasOwnProperty(Ha)&&Q($a,Ha)<0&&(xa.prototype[Ha]=function(e){return function(){return e.apply(this.doc,arguments)}}(Lo.prototype[Ha]));return ge(Lo),xa.inputStyles={textarea:za,contenteditable:qa},xa.defineMode=function(e){xa.defaults.mode||"null"==e||(xa.defaults.mode=e),je.apply(this,arguments)},xa.defineMIME=function(e,t){Me[e]=t},xa.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),xa.defineMIME("text/plain","null"),xa.defineExtension=function(e,t){xa.prototype[e]=t},xa.defineDocExtension=function(e,t){Lo.prototype[e]=t},xa.fromTextArea=function(e,t){if((t=t?j(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=L();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(pe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(de(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=xa((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=de,e.on=pe,e.wheelEventPixels=Ti,e.Doc=Lo,e.splitLines=De,e.countColumn=F,e.findColumn=K,e.isWordChar=Z,e.Pass=q,e.signal=he,e.Line=zt,e.changeEnd=Ci,e.scrollbarModel=Br,e.Pos=et,e.cmpPos=tt,e.modes=Re,e.mimeModes=Me,e.resolveMode=Fe,e.getMode=Ve,e.modeExtensions=Qe,e.extendMode=qe,e.copyState=Ue,e.startState=Be,e.innerMode=Ge,e.commands=na,e.keyMap=Bo,e.keyName=Yo,e.isModifierKey=Ho,e.lookupKey=$o,e.normalizeKeyMap=zo,e.StringStream=Ke,e.SharedTextMarker=xo,e.TextMarker=Oo,e.LineWidget=_o,e.e_preventDefault=be,e.e_stopPropagation=Ee,e.e_stop=we,e.addClass=I,e.contains=D,e.rmClass=O,e.keyNames=Qo}(xa),xa.version="5.64.0",xa}()},6876:function(e,t,n){!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,c=n.json||s,l=!1!==n.trackScope,u=n.typescript,p=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e,t,n){return r=e,i=n,t}function v(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(h))return t.tokenize=v,m("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=v),m("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==r&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return m(r);if("="==r&&e.eat(">"))return m("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==r)return e.eat("*")?(t.tokenize=y,y(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):Ze(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==r)return t.tokenize=g,g(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==r&&e.eatWhile(p))return m("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(d.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?m("."):m("operator","operator",e.current());if(p.test(r)){e.eatWhile(p);var i=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return m(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",i)}return m("variable","variable",i)}}function y(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=v;break}r="*"==n}return m("comment","comment")}function g(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=v;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(u){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),c="([{}])".indexOf(s);if(c>=0&&c<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(c>=3&&c<6)++i;else if(p.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var E={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function T(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function w(e,t){if(!l)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function _(e,t,n,r,i){var o=e.cc;for(k.state=e,k.stream=i,k.marked=null,k.cc=o,k.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():c?U:Q)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return k.marked?k.marked:"variable"==n&&w(e,r)?"variable-2":t}}var k={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function O(){return S.apply(null,arguments),!0}function C(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function x(e){var t=k.state;if(k.marked="def",l){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=N(e,t.context);if(null!=r)return void(t.context=r)}else if(!C(e,t.localVars))return void(t.localVars=new L(e,t.localVars));n.globalVars&&!C(e,t.globalVars)&&(t.globalVars=new L(e,t.globalVars))}}function N(e,t){if(t){if(t.block){var n=N(e,t.prev);return n?n==t.prev?t:new D(n,t.vars,!0):null}return C(e,t.vars)?t:new D(t.prev,new L(e,t.vars),!1)}return null}function A(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function D(e,t,n){this.prev=e,this.vars=t,this.block=n}function L(e,t){this.name=e,this.next=t}var I=new L("this",new L("arguments",null));function P(){k.state.context=new D(k.state.context,k.state.localVars,!1),k.state.localVars=I}function R(){k.state.context=new D(k.state.context,k.state.localVars,!0),k.state.localVars=null}function M(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function j(e,t){var n=function(){var n=k.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new T(r,k.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function F(){var e=k.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function V(e){return function t(n){return n==e?O():";"==e||"}"==n||")"==n||"]"==n?S():O(t)}}function Q(e,t){return"var"==e?O(j("vardef",t),ke,V(";"),F):"keyword a"==e?O(j("form"),B,Q,F):"keyword b"==e?O(j("form"),Q,F):"keyword d"==e?k.stream.match(/^\s*$/,!1)?O():O(j("stat"),z,V(";"),F):"debugger"==e?O(V(";")):"{"==e?O(j("}"),R,ce,F,M):";"==e?O():"if"==e?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==F&&k.state.cc.pop()(),O(j("form"),B,Q,F,Ae)):"function"==e?O(Pe):"for"==e?O(j("form"),R,De,Q,M,F):"class"==e||u&&"interface"==t?(k.marked="keyword",O(j("form","class"==e?e:t),Ve,F)):"variable"==e?u&&"declare"==t?(k.marked="keyword",O(Q)):u&&("module"==t||"enum"==t||"type"==t)&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword","enum"==t?O(Je):"type"==t?O(Me,V("operator"),de,V(";")):O(j("form"),Se,V("{"),j("}"),ce,F,F)):u&&"namespace"==t?(k.marked="keyword",O(j("form"),U,Q,F)):u&&"abstract"==t?(k.marked="keyword",O(Q)):O(j("stat"),te):"switch"==e?O(j("form"),B,V("{"),j("}","switch"),R,ce,F,F,M):"case"==e?O(U,V(":")):"default"==e?O(V(":")):"catch"==e?O(j("form"),P,q,Q,F,M):"export"==e?O(j("stat"),Ge,F):"import"==e?O(j("stat"),Ke,F):"async"==e?O(Q):"@"==t?O(U,Q):S(j("stat"),U,V(";"),F)}function q(e){if("("==e)return O(je,V(")"))}function U(e,t){return K(e,t,!1)}function G(e,t){return K(e,t,!0)}function B(e){return"("!=e?S():O(j(")"),z,V(")"),F)}function K(e,t,n){if(k.state.fatArrowAt==k.stream.start){var r=n?X:J;if("("==e)return O(P,j(")"),ae(je,")"),F,V("=>"),r,M);if("variable"==e)return S(P,Se,V("=>"),r,M)}var i=n?H:$;return E.hasOwnProperty(e)?O(i):"function"==e?O(Pe,i):"class"==e||u&&"interface"==t?(k.marked="keyword",O(j("form"),Fe,F)):"keyword c"==e||"async"==e?O(n?G:U):"("==e?O(j(")"),z,V(")"),F,i):"operator"==e||"spread"==e?O(n?G:U):"["==e?O(j("]"),Ye,F,i):"{"==e?se(re,"}",null,i):"quasi"==e?S(W,i):"new"==e?O(function(e){return function(t){return"."==t?O(e?ee:Z):"variable"==t&&u?O(Te,e?H:$):S(e?G:U)}}(n)):O()}function z(e){return e.match(/[;\}\)\],]/)?S():S(U)}function $(e,t){return","==e?O(z):H(e,t,!1)}function H(e,t,n){var r=0==n?$:H,i=0==n?U:G;return"=>"==e?O(P,n?X:J,M):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?O(r):u&&"<"==t&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(j(">"),ae(de,">"),F,r):"?"==t?O(U,V(":"),i):O(i):"quasi"==e?S(W,r):";"!=e?"("==e?se(G,")","call",r):"."==e?O(ne,r):"["==e?O(j("]"),z,V("]"),F,r):u&&"as"==t?(k.marked="keyword",O(de,r)):"regexp"==e?(k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),O(i)):void 0:void 0}function W(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?O(W):O(z,Y)}function Y(e){if("}"==e)return k.marked="string-2",k.state.tokenize=g,O(W)}function J(e){return b(k.stream,k.state),S("{"==e?Q:U)}function X(e){return b(k.stream,k.state),S("{"==e?Q:G)}function Z(e,t){if("target"==t)return k.marked="keyword",O($)}function ee(e,t){if("target"==t)return k.marked="keyword",O(H)}function te(e){return":"==e?O(F,Q):S($,V(";"),F)}function ne(e){if("variable"==e)return k.marked="property",O()}function re(e,t){return"async"==e?(k.marked="property",O(re)):"variable"==e||"keyword"==k.style?(k.marked="property","get"==t||"set"==t?O(ie):(u&&k.state.fatArrowAt==k.stream.start&&(n=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+n[0].length),O(oe))):"number"==e||"string"==e?(k.marked=s?"property":k.style+" property",O(oe)):"jsonld-keyword"==e?O(oe):u&&A(t)?(k.marked="keyword",O(re)):"["==e?O(U,le,V("]"),oe):"spread"==e?O(G,oe):"*"==t?(k.marked="keyword",O(re)):":"==e?S(oe):void 0;var n}function ie(e){return"variable"!=e?S(oe):(k.marked="property",O(Pe))}function oe(e){return":"==e?O(G):"("==e?S(Pe):void 0}function ae(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=k.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),O((function(n,r){return n==t||r==t?S():S(e)}),r)}return i==t||o==t?O():n&&n.indexOf(";")>-1?S(e):O(V(t))}return function(n,i){return n==t||i==t?O():S(e,r)}}function se(e,t,n){for(var r=3;r"),de):"quasi"==e?S(ye,Ee):void 0}function he(e){if("=>"==e)return O(de)}function me(e){return e.match(/[\}\)\]]/)?O():","==e||";"==e?O(me):S(ve,me)}function ve(e,t){return"variable"==e||"keyword"==k.style?(k.marked="property",O(ve)):"?"==t||"number"==e||"string"==e?O(ve):":"==e?O(de):"["==e?O(V("variable"),ue,V("]"),ve):"("==e?S(Re,ve):e.match(/[;\}\)\],]/)?void 0:O()}function ye(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?O(ye):O(de,ge)}function ge(e){if("}"==e)return k.marked="string-2",k.state.tokenize=g,O(ye)}function be(e,t){return"variable"==e&&k.stream.match(/^\s*[?:]/,!1)||"?"==t?O(be):":"==e?O(de):"spread"==e?O(be):S(de)}function Ee(e,t){return"<"==t?O(j(">"),ae(de,">"),F,Ee):"|"==t||"."==e||"&"==t?O(de):"["==e?O(de,V("]"),Ee):"extends"==t||"implements"==t?(k.marked="keyword",O(de)):"?"==t?O(de,V(":"),de):void 0}function Te(e,t){if("<"==t)return O(j(">"),ae(de,">"),F,Ee)}function we(){return S(de,_e)}function _e(e,t){if("="==t)return O(de)}function ke(e,t){return"enum"==t?(k.marked="keyword",O(Je)):S(Se,le,xe,Ne)}function Se(e,t){return u&&A(t)?(k.marked="keyword",O(Se)):"variable"==e?(x(t),O()):"spread"==e?O(Se):"["==e?se(Ce,"]"):"{"==e?se(Oe,"}"):void 0}function Oe(e,t){return"variable"!=e||k.stream.match(/^\s*:/,!1)?("variable"==e&&(k.marked="property"),"spread"==e?O(Se):"}"==e?S():"["==e?O(U,V("]"),V(":"),Oe):O(V(":"),Se,xe)):(x(t),O(xe))}function Ce(){return S(Se,xe)}function xe(e,t){if("="==t)return O(G)}function Ne(e){if(","==e)return O(ke)}function Ae(e,t){if("keyword b"==e&&"else"==t)return O(j("form","else"),Q,F)}function De(e,t){return"await"==t?O(De):"("==e?O(j(")"),Le,F):void 0}function Le(e){return"var"==e?O(ke,Ie):"variable"==e?O(Ie):S(Ie)}function Ie(e,t){return")"==e?O():";"==e?O(Ie):"in"==t||"of"==t?(k.marked="keyword",O(U,Ie)):S(U,Ie)}function Pe(e,t){return"*"==t?(k.marked="keyword",O(Pe)):"variable"==e?(x(t),O(Pe)):"("==e?O(P,j(")"),ae(je,")"),F,pe,Q,M):u&&"<"==t?O(j(">"),ae(we,">"),F,Pe):void 0}function Re(e,t){return"*"==t?(k.marked="keyword",O(Re)):"variable"==e?(x(t),O(Re)):"("==e?O(P,j(")"),ae(je,")"),F,pe,M):u&&"<"==t?O(j(">"),ae(we,">"),F,Re):void 0}function Me(e,t){return"keyword"==e||"variable"==e?(k.marked="type",O(Me)):"<"==t?O(j(">"),ae(we,">"),F):void 0}function je(e,t){return"@"==t&&O(U,je),"spread"==e?O(je):u&&A(t)?(k.marked="keyword",O(je)):u&&"this"==e?O(le,xe):S(Se,le,xe)}function Fe(e,t){return"variable"==e?Ve(e,t):Qe(e,t)}function Ve(e,t){if("variable"==e)return x(t),O(Qe)}function Qe(e,t){return"<"==t?O(j(">"),ae(we,">"),F,Qe):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(k.marked="keyword"),O(u?de:U,Qe)):"{"==e?O(j("}"),qe,F):void 0}function qe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&A(t))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(k.marked="keyword",O(qe)):"variable"==e||"keyword"==k.style?(k.marked="property",O(Ue,qe)):"number"==e||"string"==e?O(Ue,qe):"["==e?O(U,le,V("]"),Ue,qe):"*"==t?(k.marked="keyword",O(qe)):u&&"("==e?S(Re,qe):";"==e||","==e?O(qe):"}"==e?O():"@"==t?O(U,qe):void 0}function Ue(e,t){if("!"==t)return O(Ue);if("?"==t)return O(Ue);if(":"==e)return O(de,xe);if("="==t)return O(G);var n=k.state.lexical.prev;return S(n&&"interface"==n.info?Re:Pe)}function Ge(e,t){return"*"==t?(k.marked="keyword",O(We,V(";"))):"default"==t?(k.marked="keyword",O(U,V(";"))):"{"==e?O(ae(Be,"}"),We,V(";")):S(Q)}function Be(e,t){return"as"==t?(k.marked="keyword",O(V("variable"))):"variable"==e?S(G,Be):void 0}function Ke(e){return"string"==e?O():"("==e?S(U):"."==e?S($):S(ze,$e,We)}function ze(e,t){return"{"==e?se(ze,"}"):("variable"==e&&x(t),"*"==t&&(k.marked="keyword"),O(He))}function $e(e){if(","==e)return O(ze,$e)}function He(e,t){if("as"==t)return k.marked="keyword",O(ze)}function We(e,t){if("from"==t)return k.marked="keyword",O(U)}function Ye(e){return"]"==e?O():S(ae(G,"]"))}function Je(){return S(j("form"),Se,V("{"),j("}"),ae(Xe,"}"),F,F)}function Xe(){return S(Se,xe)}function Ze(e,t,n){return t.tokenize==v&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return M.lex=!0,F.lex=!0,{startState:function(e){var t={tokenize:v,lastType:"sof",cc:[],lexical:new T((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new D(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=y&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",_(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==y||t.tokenize==g)return e.Pass;if(t.tokenize!=v)return 0;var i,s=r&&r.charAt(0),c=t.lexical;if(!/^\s*else\b/.test(r))for(var l=t.cc.length-1;l>=0;--l){var u=t.cc[l];if(u==F)c=c.prev;else if(u!=Ae&&u!=M)break}for(;("stat"==c.type||"form"==c.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==$||i==H)&&!/^[,\.=+\-*:?[\(]/.test(r));)c=c.prev;a&&")"==c.type&&"stat"==c.prev.type&&(c=c.prev);var p=c.type,f=s==p;return"vardef"==p?c.indented+("operator"==t.lastType||","==t.lastType?c.info.length+1:0):"form"==p&&"{"==s?c.indented:"form"==p?c.indented+o:"stat"==p?c.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=c.info||f||0==n.doubleIndentSwitch?c.align?c.column+(f?0:1):c.indented+(f?0:o):c.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:c?null:"/*",blockCommentEnd:c?null:"*/",blockCommentContinue:c?null:" * ",lineComment:c?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:c?"json":"javascript",jsonldMode:s,jsonMode:c,expressionAllowed:Ze,skipExpression:function(t){_(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(4631))},640:function(e,t,n){"use strict";var r=n(1742),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,c,l,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),c=document.getSelection(),(l=document.createElement("span")).textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),s.selectNodeContents(l),c.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(s):c.removeAllRanges()),l&&document.body.removeChild(l),a()}return u}},4020:function(e){"use strict";var t="%[a-f0-9]{2}",n=new RegExp(t,"gi"),r=new RegExp("("+t+")+","gi");function i(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n),r=1;r]/;e.exports=function(e){var n,r=""+e,i=t.exec(r);if(!i)return r;var o="",a=0,s=0;for(a=i.index;a{return t=void 0,n=void 0,o=function*(){var t;const{requestOpts:n,uri:i,introspectionOptions:o}=e;if(!i)return null;const a=yield fetch(i,Object.assign({method:null!==(t=null==n?void 0:n.method)&&void 0!==t?t:"post",body:JSON.stringify({query:(0,r.getIntrospectionQuery)(o),operationName:"IntrospectionQuery"}),credentials:"omit",headers:(null==n?void 0:n.headers)||{"Content-Type":"application/json"}},n)),s=yield a.json();return null==s?void 0:s.data},new((i=void 0)||(i=Promise))((function(e,r){function a(e){try{c(o.next(e))}catch(e){r(e)}}function s(e){try{c(o.throw(e))}catch(e){r(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,s)}c((o=o.apply(t,n||[])).next())}));var t,n,i,o};function o(e,t){if(!e)throw Error("Empty schema response");return"__schema"in e?(0,r.buildClientSchema)(e,t):(0,r.buildASTSchema)(e,t)}var a,s,c,l,u,p,f,d,h,m,v,y,g,b,E,T,w,_,k,S,O,C,x,N,A,D,L=n(8155);function I(e){let t;return R(e,(e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}})),t}function P(e,t,n){return n===L.SchemaMetaFieldDef.name&&e.getQueryType()===t?L.SchemaMetaFieldDef:n===L.TypeMetaFieldDef.name&&e.getQueryType()===t?L.TypeMetaFieldDef:n===L.TypeNameMetaFieldDef.name&&(0,r.isCompositeType)(t)?L.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[n]:null}function R(e,t){const n=[];let r=e;for(;r&&r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}function M(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i({proximity:Q(V(e.label),t),entry:e}))),(e=>e.proximity<=2)),(e=>!e.entry.isDeprecated)).sort(((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length)).map((e=>e.entry)):F(e,(e=>!e.isDeprecated))}(t,V(e.string))}function F(e,t){const n=e.filter(t);return 0===n.length?e:n}function V(e){return e.toLowerCase().replace(/\W/g,"")}function Q(e,t){let n=function(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}!function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647}(a||(a={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647}(s||(s={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&Ee.uinteger(t.line)&&Ee.uinteger(t.character)}}(c||(c={})),function(e){e.create=function(e,t,n,r){if(Ee.uinteger(e)&&Ee.uinteger(t)&&Ee.uinteger(n)&&Ee.uinteger(r))return{start:c.create(e,t),end:c.create(n,r)};if(c.is(e)&&c.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&c.is(t.start)&&c.is(t.end)}}(l||(l={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return Ee.defined(t)&&l.is(t.range)&&(Ee.string(t.uri)||Ee.undefined(t.uri))}}(u||(u={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return Ee.defined(t)&&l.is(t.targetRange)&&Ee.string(t.targetUri)&&(l.is(t.targetSelectionRange)||Ee.undefined(t.targetSelectionRange))&&(l.is(t.originSelectionRange)||Ee.undefined(t.originSelectionRange))}}(p||(p={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return Ee.numberRange(t.red,0,1)&&Ee.numberRange(t.green,0,1)&&Ee.numberRange(t.blue,0,1)&&Ee.numberRange(t.alpha,0,1)}}(f||(f={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return l.is(t.range)&&f.is(t.color)}}(d||(d={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return Ee.string(t.label)&&(Ee.undefined(t.textEdit)||_.is(t))&&(Ee.undefined(t.additionalTextEdits)||Ee.typedArray(t.additionalTextEdits,_.is))}}(h||(h={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(m||(m={})),function(e){e.create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return Ee.defined(n)&&(o.startCharacter=n),Ee.defined(r)&&(o.endCharacter=r),Ee.defined(i)&&(o.kind=i),o},e.is=function(e){var t=e;return Ee.uinteger(t.startLine)&&Ee.uinteger(t.startLine)&&(Ee.undefined(t.startCharacter)||Ee.uinteger(t.startCharacter))&&(Ee.undefined(t.endCharacter)||Ee.uinteger(t.endCharacter))&&(Ee.undefined(t.kind)||Ee.string(t.kind))}}(v||(v={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return Ee.defined(t)&&u.is(t.location)&&Ee.string(t.message)}}(y||(y={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(g||(g={})),function(e){e.Unnecessary=1,e.Deprecated=2}(b||(b={})),function(e){e.is=function(e){var t=e;return null!=t&&Ee.string(t.href)}}(E||(E={})),function(e){e.create=function(e,t,n,r,i,o){var a={range:e,message:t};return Ee.defined(n)&&(a.severity=n),Ee.defined(r)&&(a.code=r),Ee.defined(i)&&(a.source=i),Ee.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t,n=e;return Ee.defined(n)&&l.is(n.range)&&Ee.string(n.message)&&(Ee.number(n.severity)||Ee.undefined(n.severity))&&(Ee.integer(n.code)||Ee.string(n.code)||Ee.undefined(n.code))&&(Ee.undefined(n.codeDescription)||Ee.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ee.string(n.source)||Ee.undefined(n.source))&&(Ee.undefined(n.relatedInformation)||Ee.typedArray(n.relatedInformation,y.is))}}(T||(T={})),function(e){e.create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.title)&&Ee.string(t.command)}}(w||(w={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&Ee.string(t.newText)&&l.is(t.range)}}(_||(_={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return void 0!==t&&Ee.objectLiteral(t)&&Ee.string(t.label)&&(Ee.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ee.string(t.description)||void 0===t.description)}}(k||(k={})),function(e){e.is=function(e){return"string"==typeof e}}(S||(S={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return _.is(t)&&(k.is(t.annotationId)||S.is(t.annotationId))}}(O||(O={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return Ee.defined(t)&&G.is(t.textDocument)&&Array.isArray(t.edits)}}(C||(C={})),function(e){e.create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"create"===t.kind&&Ee.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ee.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ee.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(x||(x={})),function(e){e.create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},e.is=function(e){var t=e;return t&&"rename"===t.kind&&Ee.string(t.oldUri)&&Ee.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ee.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ee.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(N||(N={})),function(e){e.create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"delete"===t.kind&&Ee.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ee.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ee.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(A||(A={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return Ee.string(e.kind)?x.is(e)||N.is(e)||A.is(e):C.is(e)})))}}(D||(D={}));var q,U,G,B,K,z,$,H,W,Y,J,X,Z,ee,te,ne,re,ie,oe,ae,se,ce,le,ue,pe,fe,de,he,me,ve,ye,ge=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=_.insert(e,t):S.is(n)?(i=n,r=O.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=O.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=_.replace(e,t):S.is(n)?(i=n,r=O.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=O.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=_.del(e):S.is(t)?(r=t,n=O.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=O.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),be=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(S.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new be(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(C.is(e)){var n=new ge(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ge(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(G.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new ge(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ge(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new be,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(k.is(t)||S.is(t)?r=t:n=t,void 0===r?i=x.create(e,n):(o=S.is(r)?r:this._changeAnnotations.manage(r),i=x.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(k.is(n)||S.is(n)?i=n:r=n,void 0===i?o=N.create(e,t,r):(a=S.is(i)?i:this._changeAnnotations.manage(i),o=N.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(k.is(t)||S.is(t)?r=t:n=t,void 0===r?i=A.create(e,n):(o=S.is(r)?r:this._changeAnnotations.manage(r),i=A.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.uri)}}(q||(q={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.uri)&&Ee.integer(t.version)}}(U||(U={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.uri)&&(null===t.version||Ee.integer(t.version))}}(G||(G={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.uri)&&Ee.string(t.languageId)&&Ee.integer(t.version)&&Ee.string(t.text)}}(B||(B={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(K||(K={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(K||(K={})),function(e){e.is=function(e){var t=e;return Ee.objectLiteral(e)&&K.is(t.kind)&&Ee.string(t.value)}}(z||(z={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}($||($={})),function(e){e.PlainText=1,e.Snippet=2}(H||(H={})),function(e){e.Deprecated=1}(W||(W={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&Ee.string(t.newText)&&l.is(t.insert)&&l.is(t.replace)}}(Y||(Y={})),function(e){e.asIs=1,e.adjustIndentation=2}(J||(J={})),function(e){e.create=function(e){return{label:e}}}(X||(X={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(Z||(Z={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return Ee.string(t)||Ee.objectLiteral(t)&&Ee.string(t.language)&&Ee.string(t.value)}}(ee||(ee={})),function(e){e.is=function(e){var t=e;return!!t&&Ee.objectLiteral(t)&&(z.is(t.contents)||ee.is(t.contents)||Ee.typedArray(t.contents,ee.is))&&(void 0===e.range||l.is(e.range))}}(te||(te={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(ne||(ne={})),function(e){e.create=function(e,t){for(var n=[],r=2;r=0;a--){var s=i[a],c=e.offsetAt(s.range.start),l=e.offsetAt(s.range.end);if(!(l<=o))throw new Error("Overlapping edit");r=r.substring(0,c)+s.newText+r.substring(l,r.length),o=c}return r}}(ye||(ye={}));var Ee,Te=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return c.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return c.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let r=null,i=null;return"string"==typeof e?(i=new RegExp(e,n?"i":"g").test(this._sourceText.substr(this._pos,e.length)),r=e):e instanceof RegExp&&(i=this._sourceText.slice(this._pos).match(e),r=i&&i[0]),!(null==i||!("string"==typeof e||i instanceof Array&&this._sourceText.startsWith(i[0],this._pos)))&&(t&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),i)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}function _e(e){return{ofRule:e}}function ke(e,t){return{ofRule:e,isList:!0,separator:t}}function Se(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every((t=>t.match&&!t.match(e)))},e}function Oe(e,t){return{style:t,match:t=>t.kind===e}}function Ce(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}const xe=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,Ne={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:/^#.*/},Ae={Document:[ke("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return r.Kind.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:[De("query"),_e(Le("def")),_e("VariableDefinitions"),ke("Directive"),"SelectionSet"],Mutation:[De("mutation"),_e(Le("def")),_e("VariableDefinitions"),ke("Directive"),"SelectionSet"],Subscription:[De("subscription"),_e(Le("def")),_e("VariableDefinitions"),ke("Directive"),"SelectionSet"],VariableDefinitions:[Ce("("),ke("VariableDefinition"),Ce(")")],VariableDefinition:["Variable",Ce(":"),"Type",_e("DefaultValue")],Variable:[Ce("$","variable"),Le("variable")],DefaultValue:[Ce("="),"Value"],SelectionSet:[Ce("{"),ke("Selection"),Ce("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[Le("property"),Ce(":"),Le("qualifier"),_e("Arguments"),ke("Directive"),_e("SelectionSet")],Field:[Le("property"),_e("Arguments"),ke("Directive"),_e("SelectionSet")],Arguments:[Ce("("),ke("Argument"),Ce(")")],Argument:[Le("attribute"),Ce(":"),"Value"],FragmentSpread:[Ce("..."),Le("def"),ke("Directive")],InlineFragment:[Ce("..."),_e("TypeCondition"),ke("Directive"),"SelectionSet"],FragmentDefinition:[De("fragment"),_e(Se(Le("def"),[De("on")])),"TypeCondition",ke("Directive"),"SelectionSet"],TypeCondition:[De("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[Oe("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Oe("Name","builtin")],NullValue:[Oe("Name","keyword")],EnumValue:[Le("string-2")],ListValue:[Ce("["),ke("Value"),Ce("]")],ObjectValue:[Ce("{"),ke("ObjectField"),Ce("}")],ObjectField:[Le("attribute"),Ce(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[Ce("["),"Type",Ce("]"),_e(Ce("!"))],NonNullType:["NamedType",_e(Ce("!"))],NamedType:[("atom",{style:"atom",match:e=>"Name"===e.kind,update(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[Ce("@","meta"),Le("meta"),_e("Arguments")],DirectiveDef:[De("directive"),Ce("@","meta"),Le("meta"),_e("ArgumentsDef"),De("on"),ke("DirectiveLocation",Ce("|"))],InterfaceDef:[De("interface"),Le("atom"),_e("Implements"),ke("Directive"),Ce("{"),ke("FieldDef"),Ce("}")],Implements:[De("implements"),ke("NamedType",Ce("&"))],DirectiveLocation:[Le("string-2")],SchemaDef:[De("schema"),ke("Directive"),Ce("{"),ke("OperationTypeDef"),Ce("}")],OperationTypeDef:[Le("keyword"),Ce(":"),Le("atom")],ScalarDef:[De("scalar"),Le("atom"),ke("Directive")],ObjectTypeDef:[De("type"),Le("atom"),_e("Implements"),ke("Directive"),Ce("{"),ke("FieldDef"),Ce("}")],FieldDef:[Le("property"),_e("ArgumentsDef"),Ce(":"),"Type",ke("Directive")],ArgumentsDef:[Ce("("),ke("InputValueDef"),Ce(")")],InputValueDef:[Le("attribute"),Ce(":"),"Type",_e("DefaultValue"),ke("Directive")],UnionDef:[De("union"),Le("atom"),ke("Directive"),Ce("="),ke("UnionMember",Ce("|"))],UnionMember:["NamedType"],EnumDef:[De("enum"),Le("atom"),ke("Directive"),Ce("{"),ke("EnumValueDef"),Ce("}")],EnumValueDef:[Le("string-2"),ke("Directive")],InputDef:[De("input"),Le("atom"),ke("Directive"),Ce("{"),ke("InputValueDef"),Ce("}")],ExtendDef:[De("extend"),"ObjectTypeDef"]};function De(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function Le(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function Ie(e={eatWhitespace:e=>e.eatWhile(xe),lexRules:Ne,parseRules:Ae,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return Me(e.parseRules,t,r.Kind.DOCUMENT),t},token:(t,n)=>function(e,t,n){if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:r,parseRules:i,eatWhitespace:o,editorConfig:a}=n;if(t.rule&&0===t.rule.length?je(t):t.needsAdvance&&(t.needsAdvance=!1,Fe(t,!0)),e.sol()){const n=a&&a.tabSize||2;t.indentLevel=Math.floor(e.indentation()/n)}if(o(e))return"ws";const s=function(e,t){const n=Object.keys(e);for(let r=0;r0&&e[e.length-1]e)),c=new Set;$e(i,((e,t)=>{var i,a,l,u,p;if(t.name&&(t.kind!==Ue.INTERFACE_DEF||s.includes(t.name)||c.add(t.name),t.kind===Ue.NAMED_TYPE&&(null===(i=t.prevState)||void 0===i?void 0:i.kind)===Ue.IMPLEMENTS))if(o.interfaceDef){if(null===(a=o.interfaceDef)||void 0===a?void 0:a.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),i=null===(l=o.interfaceDef)||void 0===l?void 0:l.toConfig();o.interfaceDef=new r.GraphQLInterfaceType(Object.assign(Object.assign({},i),{interfaces:[...i.interfaces,e||new r.GraphQLInterfaceType({name:t.name,fields:{}})]}))}else if(o.objectTypeDef){if(null===(u=o.objectTypeDef)||void 0===u?void 0:u.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),i=null===(p=o.objectTypeDef)||void 0===p?void 0:p.toConfig();o.objectTypeDef=new r.GraphQLObjectType(Object.assign(Object.assign({},i),{interfaces:[...i.interfaces,e||new r.GraphQLInterfaceType({name:t.name,fields:{}})]}))}}));const l=o.interfaceDef||o.objectTypeDef,u=((null==l?void 0:l.getInterfaces())||[]).map((({name:e})=>e));return j(e,a.concat([...c].map((e=>({name:e})))).filter((({name:e})=>e!==(null==l?void 0:l.name)&&!u.includes(e))).map((e=>{const t={label:e.name,kind:$.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t})))}(s,c,e,t,p);if(l===Ue.SELECTION_SET||l===Ue.FIELD||l===Ue.ALIASED_FIELD)return function(e,t,n){if(t.parentType){const i=t.parentType;let o=[];return"getFields"in i&&(o=M(i.getFields())),(0,r.isCompositeType)(i)&&o.push(r.TypeNameMetaFieldDef),i===n.getQueryType()&&o.push(r.SchemaMetaFieldDef,r.TypeMetaFieldDef),j(e,o.map(((e,t)=>{var n;return{sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:$.Field,type:e.type}})))}return[]}(s,p,e);if(l===Ue.ARGUMENTS||l===Ue.ARGUMENT&&0===u){const e=p.argDefs;if(e)return j(s,e.map((e=>{var t;return{label:e.name,insertText:e.name+": ",command:{command:"editor.action.triggerSuggest",title:"Suggestions"},detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:$.Variable,type:e.type}})))}if((l===Ue.OBJECT_VALUE||l===Ue.OBJECT_FIELD&&0===u)&&p.objectFieldDefs){const e=M(p.objectFieldDefs),t=l===Ue.OBJECT_VALUE?$.Value:$.Field;return j(s,e.map((e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,kind:t,type:e.type}})))}if(l===Ue.ENUM_VALUE||l===Ue.LIST_VALUE&&1===u||l===Ue.OBJECT_FIELD&&2===u||l===Ue.ARGUMENT&&2===u)return function(e,t,n,i){const o=(0,r.getNamedType)(t.inputType),a=Be(n,i,e).filter((e=>e.detail===o.name));return o instanceof r.GraphQLEnumType?j(e,o.getValues().map((e=>{var t;return{label:e.name,detail:String(o),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:$.EnumMember,type:o}})).concat(a)):o===r.GraphQLBoolean?j(e,a.concat([{label:"true",detail:String(r.GraphQLBoolean),documentation:"Not false.",kind:$.Variable,type:r.GraphQLBoolean},{label:"false",detail:String(r.GraphQLBoolean),documentation:"Not true.",kind:$.Variable,type:r.GraphQLBoolean}])):a}(s,p,t,e);if(l===Ue.VARIABLE&&1===u){const n=(0,r.getNamedType)(p.inputType);return j(s,Be(t,e,s).filter((e=>e.detail===(null==n?void 0:n.name))))}return l===Ue.TYPE_CONDITION&&1===u||l===Ue.NAMED_TYPE&&null!=c.prevState&&c.prevState.kind===Ue.TYPE_CONDITION?function(e,t,n,i){let o;if(t.parentType)if((0,r.isAbstractType)(t.parentType)){const e=(0,r.assertAbstractType)(t.parentType),i=n.getPossibleTypes(e),a=Object.create(null);i.forEach((e=>{e.getInterfaces().forEach((e=>{a[e.name]=e}))})),o=i.concat(M(a))}else o=[t.parentType];else o=M(n.getTypeMap()).filter(r.isCompositeType);return j(e,o.map((e=>{const t=(0,r.getNamedType)(e);return{label:String(e),documentation:t&&t.description||"",kind:$.Field}})))}(s,p,e):l===Ue.FRAGMENT_SPREAD&&1===u?function(e,t,n,i,o){if(!i)return[];const a=n.getTypeMap(),s=I(e.state),c=Ke(i);o&&o.length>0&&c.push(...o);return j(e,c.filter((e=>a[e.typeCondition.name.value]&&!(s&&s.kind===Ue.FRAGMENT_DEFINITION&&s.name===e.name.value)&&(0,r.isCompositeType)(t.parentType)&&(0,r.isCompositeType)(a[e.typeCondition.name.value])&&(0,r.doTypesOverlap)(n,t.parentType,a[e.typeCondition.name.value]))).map((e=>({label:e.name.value,detail:String(a[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,kind:$.Field,type:a[e.typeCondition.name.value]}))))}(s,p,e,t,Array.isArray(o)?o:(e=>{const t=[];return e&&(0,r.visit)((0,r.parse)(e,{allowLegacyFragmentVariables:!0}),{FragmentDefinition(e){t.push(e)}}),t})(o)):l===Ue.VARIABLE_DEFINITION&&2===u||l===Ue.LIST_TYPE&&1===u||l===Ue.NAMED_TYPE&&c.prevState&&(c.prevState.kind===Ue.VARIABLE_DEFINITION||c.prevState.kind===Ue.LIST_TYPE||c.prevState.kind===Ue.NON_NULL_TYPE)?function(e,t,n){return j(e,M(t.getTypeMap()).filter(r.isInputType).map((e=>({label:e.name,documentation:e.description,kind:$.Variable}))))}(s,e):l===Ue.DIRECTIVE?function(e,t,n,r){return t.prevState&&t.prevState.kind?j(e,n.getDirectives().filter((e=>He(t.prevState,e))).map((e=>({label:e.name,documentation:e.description||"",kind:$.Function})))):[]}(s,c,e):[]}function Be(e,t,n){let r,i=null;const o=Object.create({});return $e(e,((e,a)=>{if((null==a?void 0:a.kind)===Ue.VARIABLE&&a.name&&(i=a.name),(null==a?void 0:a.kind)===Ue.NAMED_TYPE&&i){const e=((e,t)=>{var n,r,i,o,a,s,c,l,u,p;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(i=null===(r=e.prevState)||void 0===r?void 0:r.prevState)||void 0===i?void 0:i.kind)===t?e.prevState.prevState:(null===(s=null===(a=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.kind)===t?e.prevState.prevState.prevState:(null===(p=null===(u=null===(l=null===(c=e.prevState)||void 0===c?void 0:c.prevState)||void 0===l?void 0:l.prevState)||void 0===u?void 0:u.prevState)||void 0===p?void 0:p.kind)===t?e.prevState.prevState.prevState.prevState:void 0})(a,Ue.TYPE);(null==e?void 0:e.type)&&(r=t.getType(null==e?void 0:e.type))}if(i&&r&&!o[i]){const e="$"===n.string?i:"$"+i;o[i]={detail:r.toString(),label:e,type:r,kind:$.Variable},i=null,r=null}})),M(o)}function Ke(e){const t=[];return $e(e,((e,n)=>{n.kind===Ue.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:Ue.FRAGMENT_DEFINITION,name:{kind:r.Kind.NAME,value:n.name},selectionSet:{kind:Ue.SELECTION_SET,selections:[]},typeCondition:{kind:Ue.NAMED_TYPE,name:{kind:r.Kind.NAME,value:n.type}}})})),t}function ze(e,t){let n=null,r=null,i=null;const o=$e(e,((e,o,a,s)=>{if(s===t.line&&e.getCurrentPosition()>=t.character)return n=a,r=Object.assign({},o),i=e.current(),"BREAK"}));return{start:o.start,end:o.end,string:i||o.string,state:r||o.state,style:n||o.style}}function $e(e,t){const n=e.split("\n"),r=Ie();let i=r.startState(),o="",a=new we("");for(let e=0;e{switch(t.kind){case Ue.QUERY:case"ShortQuery":f=e.getQueryType();break;case Ue.MUTATION:f=e.getMutationType();break;case Ue.SUBSCRIPTION:f=e.getSubscriptionType();break;case Ue.INLINE_FRAGMENT:case Ue.FRAGMENT_DEFINITION:t.type&&(f=e.getType(t.type));break;case Ue.FIELD:case Ue.ALIASED_FIELD:f&&t.name?(s=p?P(e,p,t.name):null,f=s?s.type:null):s=null;break;case Ue.SELECTION_SET:p=(0,r.getNamedType)(f);break;case Ue.DIRECTIVE:o=t.name?e.getDirective(t.name):null;break;case Ue.INTERFACE_DEF:t.name&&(l=null,d=new r.GraphQLInterfaceType({name:t.name,interfaces:[],fields:{}}));break;case Ue.OBJECT_TYPE_DEF:t.name&&(d=null,l=new r.GraphQLObjectType({name:t.name,interfaces:[],fields:{}}));break;case Ue.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case Ue.FIELD:i=s&&s.args;break;case Ue.DIRECTIVE:i=o&&o.args;break;case Ue.ALIASED_FIELD:{const n=t.prevState&&t.prevState.name;if(!n){i=null;break}const r=p?P(e,p,n):null;if(!r){i=null;break}i=r.args;break}default:i=null}else i=null;break;case Ue.ARGUMENT:if(i)for(let e=0;e{if(!t)return[];let n;try{n=(0,r.parse)(e)}catch(e){return[]}return Ze(n,t)},Ze=(e,t)=>{if(!t)return[];const n=new Map,i=new Set;(0,r.visit)(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){i.has(e.name.value)||i.add(e.name.value)}});const o=new Set;i.forEach((e=>{!n.has(e)&&t.has(e)&&o.add(Je()(t.get(e)))}));const a=[];return o.forEach((e=>{(0,r.visit)(e,{FragmentSpread(e){!i.has(e.name.value)&&t.get(e.name.value)&&(o.add(Je()(t.get(e.name.value))),i.add(e.name.value))}}),n.has(e.name.value)||a.push(e)})),a};function et(e,t,n){const i=tt(e,n);let o;return(0,r.visit)(t,{enter(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=i&&i<=e.loc.end))return!1;o=e},leave(e){if(e.loc&&e.loc.start<=i&&i<=e.loc.end)return!1}}),o}function tt(e,t){const n=e.split("\n").slice(0,t.line);return t.character+n.map((e=>e.length+1)).reduce(((e,t)=>e+t),0)}class nt{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new rt(e,t)}setEnd(e,t){this.end=new rt(e,t)}}class rt{constructor(e,t){this.lessThanOrEqualTo=e=>this.linee!==r.NoUnusedFragmentsRule&&e!==r.ExecutableDefinitionsRule&&(!i||e!==r.KnownFragmentNamesRule)));return n&&Array.prototype.push.apply(o,n),(0,r.validate)(e,t,o).filter((e=>{if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===r.Kind.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0}))}var st=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const ct="GraphQL";function lt(e,t){if(!e)throw new Error(t)}function ut(e,t){const n=t.loc;return lt(n,"Expected ASTNode to have a location."),ot(e,n)}function pt(e,t){const n=t.loc;return lt(n,"Expected ASTNode to have a location."),it(e,n.start)}function ft(e,t,n){return st(this,void 0,void 0,(function*(){const r=t.name.value,i=n.filter((({definition:e})=>e.name&&e.name.value===r));if(0===i.length)throw Error(`Definition not found for GraphQL type ${r}`);const o=i.map((({filePath:e,content:t,definition:n})=>function(e,t,n){const r=n.name;return lt(r,"Expected ASTNode to have a Name."),{path:e,position:pt(t,n),range:ut(t,n),name:r.value||"",language:ct,projectRoot:e}}(e||"",t,n)));return{definitions:o,queryRange:o.map((n=>ut(e,t)))}}))}function dt(e,t,n){return st(this,void 0,void 0,(function*(){const r=t.name.value,i=n.filter((({definition:e})=>e.name.value===r));if(0===i.length)throw Error(`Definition not found for GraphQL fragment ${r}`);const o=i.map((({filePath:e,content:t,definition:n})=>mt(e||"",t,n)));return{definitions:o,queryRange:o.map((n=>ut(e,t)))}}))}function ht(e,t,n){return{definitions:[mt(e,t,n)],queryRange:n.name?[ut(t,n.name)]:[]}}function mt(e,t,n){const r=n.name;if(!r)throw Error("Expected ASTNode to have a Name.");return{path:e,position:pt(t,n),range:ut(t,n),name:r.value||"",language:ct,projectRoot:e}}const vt={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},yt={[vt.Error]:1,[vt.Warning]:2,[vt.Information]:3,[vt.Hint]:4},gt=(e,t)=>{if(!e)throw new Error(t)};function bt(e,t=null,n,i,o){let a=null;o&&(e+="string"==typeof o?"\n\n"+o:"\n\n"+o.reduce(((e,t)=>e+((0,r.print)(t)+"\n\n")),""));try{a=(0,r.parse)(e)}catch(t){const n=_t(t.locations[0],e);return[{severity:yt.Error,message:t.message,source:"GraphQL: Syntax",range:n}]}return Et(a,t,n,i)}function Et(e,t=null,n,i){if(!t)return[];const o=Tt(at(t,e,n,i),(e=>wt(e,yt.Error,"Validation"))),a=Tt((0,r.validate)(t,e,[r.NoDeprecatedCustomRule]),(e=>wt(e,yt.Warning,"Deprecation")));return o.concat(a)}function Tt(e,t){return Array.prototype.concat.apply([],e.map(t))}function wt(e,t,n){if(!e.nodes)return[];const r=[];return e.nodes.forEach((i=>{const o="Variable"!==i.kind&&"name"in i&&void 0!==i.name?i.name:"variable"in i&&void 0!==i.variable?i.variable:i;if(o){gt(e.locations,"GraphQL validation error requires locations.");const i=e.locations[0],a=function(e){const t=e.loc;return gt(t,"Expected ASTNode to have a location."),t}(o),s=i.column+(a.end-a.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new nt(new rt(i.line-1,i.column-1),new rt(i.line-1,s))})}})),r}function _t(e,t){const n=Ie(),r=n.startState(),i=t.split("\n");gt(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let t=0;t({representativeName:t.name,startPosition:it(e,t.loc.start),endPosition:it(e,t.loc.end),kind:t.kind,children:t.selectionSet||t.fields||t.values||t.arguments||[]});return{Field:e=>{const n=e.alias?[Ot("plain",e.alias),Ot("plain",": ")]:[];return n.push(Ot("plain",e.name)),Object.assign({tokenizedText:n},t(e))},OperationDefinition:e=>Object.assign({tokenizedText:[Ot("keyword",e.operation),Ot("whitespace"," "),Ot("class-name",e.name)]},t(e)),Document:e=>e.definitions,SelectionSet:e=>function(e,t){const n=[];for(let t=0;te.value,FragmentDefinition:e=>Object.assign({tokenizedText:[Ot("keyword","fragment"),Ot("whitespace"," "),Ot("class-name",e.name)]},t(e)),InterfaceTypeDefinition:e=>Object.assign({tokenizedText:[Ot("keyword","interface"),Ot("whitespace"," "),Ot("class-name",e.name)]},t(e)),EnumTypeDefinition:e=>Object.assign({tokenizedText:[Ot("keyword","enum"),Ot("whitespace"," "),Ot("class-name",e.name)]},t(e)),EnumValueDefinition:e=>Object.assign({tokenizedText:[Ot("plain",e.name)]},t(e)),ObjectTypeDefinition:e=>Object.assign({tokenizedText:[Ot("keyword","type"),Ot("whitespace"," "),Ot("class-name",e.name)]},t(e)),InputObjectTypeDefinition:e=>Object.assign({tokenizedText:[Ot("keyword","input"),Ot("whitespace"," "),Ot("class-name",e.name)]},t(e)),FragmentSpread:e=>Object.assign({tokenizedText:[Ot("plain","..."),Ot("class-name",e.name)]},t(e)),InputValueDefinition:e=>Object.assign({tokenizedText:[Ot("plain",e.name)]},t(e)),FieldDefinition:e=>Object.assign({tokenizedText:[Ot("plain",e.name)]},t(e)),InlineFragment:e=>e.selectionSet}}(e);return{outlineTrees:(0,r.visit)(t,{leave:e=>void 0!==n&&e.kind in n?n[e.kind](e):null})}}function Ot(e,t){return{kind:e,value:t}}function Ct(e,t,n,r,i){const o=r||ze(t,n);if(!e||!o||!o.state)return"";const a=o.state,s=a.kind,c=a.step,l=We(e,o.state),u=Object.assign(Object.assign({},i),{schema:e});if("Field"===s&&0===c&&l.fieldDef||"AliasedField"===s&&2===c&&l.fieldDef){const e=[];return xt(e,u),function(e,t,n){At(e,t,n),Lt(e,t,n,t.type)}(e,l,u),Nt(e,u),Pt(e,0,l.fieldDef),e.join("").trim()}if("Directive"===s&&1===c&&l.directiveDef){const e=[];return xt(e,u),Dt(e,l),Nt(e,u),Pt(e,0,l.directiveDef),e.join("").trim()}if("Argument"===s&&0===c&&l.argDef){const e=[];return xt(e,u),function(e,t,n){if(t.directiveDef?Dt(e,t):t.fieldDef&&At(e,t,n),!t.argDef)return;const r=t.argDef.name;Rt(e,"("),Rt(e,r),Lt(e,t,n,t.inputType),Rt(e,")")}(e,l,u),Nt(e,u),Pt(e,0,l.argDef),e.join("").trim()}if("EnumValue"===s&&l.enumValue&&"description"in l.enumValue){const e=[];return xt(e,u),function(e,t,n){if(!t.enumValue)return;const r=t.enumValue.name;It(e,t,n,t.inputType),Rt(e,"."),Rt(e,r)}(e,l,u),Nt(e,u),Pt(e,0,l.enumValue),e.join("").trim()}if("NamedType"===s&&l.type&&"description"in l.type){const e=[];return xt(e,u),It(e,l,u,l.type),Nt(e,u),Pt(e,0,l.type),e.join("").trim()}return""}function xt(e,t){t.useMarkdown&&Rt(e,"```graphql\n")}function Nt(e,t){t.useMarkdown&&Rt(e,"\n```")}function At(e,t,n){if(!t.fieldDef)return;const r=t.fieldDef.name;"__"!==r.slice(0,2)&&(It(e,t,n,t.parentType),Rt(e,".")),Rt(e,r)}function Dt(e,t,n){t.directiveDef&&Rt(e,"@"+t.directiveDef.name)}function Lt(e,t,n,r){Rt(e,": "),It(e,t,n,r)}function It(e,t,n,i){i&&(i instanceof r.GraphQLNonNull?(It(e,t,n,i.ofType),Rt(e,"!")):i instanceof r.GraphQLList?(Rt(e,"["),It(e,t,n,i.ofType),Rt(e,"]")):Rt(e,i.name))}function Pt(e,t,n){if(!n)return;const r="string"==typeof n.description?n.description:null;r&&(Rt(e,"\n\n"),Rt(e,r)),function(e,t,n){if(!n)return;const r=n.deprecationReason?n.deprecationReason:null;r&&(Rt(e,"\n\n"),Rt(e,"Deprecated: "),Rt(e,r))}(e,0,n)}function Rt(e,t){e.push(t)}var Mt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const{FRAGMENT_DEFINITION:jt,OBJECT_TYPE_DEFINITION:Ft,INTERFACE_TYPE_DEFINITION:Vt,ENUM_TYPE_DEFINITION:Qt,UNION_TYPE_DEFINITION:qt,SCALAR_TYPE_DEFINITION:Ut,INPUT_OBJECT_TYPE_DEFINITION:Gt,SCALAR_TYPE_EXTENSION:Bt,OBJECT_TYPE_EXTENSION:Kt,INTERFACE_TYPE_EXTENSION:zt,UNION_TYPE_EXTENSION:$t,ENUM_TYPE_EXTENSION:Ht,INPUT_OBJECT_TYPE_EXTENSION:Wt,DIRECTIVE_DEFINITION:Yt,FRAGMENT_SPREAD:Jt,OPERATION_DEFINITION:Xt,NAMED_TYPE:Zt}=r.Kind,en={[r.Kind.FIELD]:ae.Field,[r.Kind.OPERATION_DEFINITION]:ae.Class,[r.Kind.FRAGMENT_DEFINITION]:ae.Class,[r.Kind.FRAGMENT_SPREAD]:ae.Struct,[r.Kind.OBJECT_TYPE_DEFINITION]:ae.Class,[r.Kind.ENUM_TYPE_DEFINITION]:ae.Enum,[r.Kind.ENUM_VALUE_DEFINITION]:ae.EnumMember,[r.Kind.INPUT_OBJECT_TYPE_DEFINITION]:ae.Class,[r.Kind.INPUT_VALUE_DEFINITION]:ae.Field,[r.Kind.FIELD_DEFINITION]:ae.Field,[r.Kind.INTERFACE_TYPE_DEFINITION]:ae.Interface,[r.Kind.DOCUMENT]:ae.File,FieldWithArguments:ae.Method};function tn(e){return"FieldDefinition"===e.kind&&e.children&&e.children.length>0?en.FieldWithArguments:en[e.kind]}class nn{constructor(e){this._graphQLCache=e,this._graphQLConfig=e.getGraphQLConfig()}getConfigForURI(e){const t=this._graphQLCache.getProjectForFile(e);if(t)return t;throw Error(`No config found for uri: ${e}`)}getDiagnostics(e,t,n){return Mt(this,void 0,void 0,(function*(){let i=!1;const o=this.getConfigForURI(t);if(!o)return[];const{schema:a,name:s,extensions:c}=o;try{const n=(0,r.parse)(e);a&&t===a||(i=n.definitions.some((e=>{switch(e.kind){case Ft:case Vt:case Qt:case qt:case Ut:case Gt:case Bt:case Kt:case zt:case $t:case Ht:case Wt:case Yt:return!0}return!1})))}catch(t){const n=_t(t.locations[0],e);return[{severity:yt.Error,message:t.message,source:"GraphQL: Syntax",range:n}]}let l=e;const u=yield this._graphQLCache.getFragmentDefinitions(o);l=`${l} ${(yield this._graphQLCache.getFragmentDependencies(e,u)).reduce(((e,t)=>`${e} ${(0,r.print)(t.definition)}`),"")}`;let p=null;try{p=(0,r.parse)(l)}catch(e){return[]}let f=null;(null==c?void 0:c.customValidationRules)&&"function"==typeof c.customValidationRules&&(f=c.customValidationRules(this._graphQLConfig));const d=yield this._graphQLCache.getSchema(s,i);return d?Et(p,d,f,n):[]}))}getAutocompleteSuggestions(e,t,n){return Mt(this,void 0,void 0,(function*(){const r=this.getConfigForURI(n),i=yield this._graphQLCache.getSchema(r.name),o=yield this._graphQLCache.getFragmentDefinitions(r),a=Array.from(o).map((([,e])=>e.definition));return i?Ge(i,e,t,void 0,a):[]}))}getHoverInformation(e,t,n,r){return Mt(this,void 0,void 0,(function*(){const i=this.getConfigForURI(n),o=yield this._graphQLCache.getSchema(i.name);return o?Ct(o,e,t,void 0,r):""}))}getDefinition(e,t,n){return Mt(this,void 0,void 0,(function*(){const i=this.getConfigForURI(n);let o;try{o=(0,r.parse)(e)}catch(e){return null}const a=et(e,o,t);if(a)switch(a.kind){case Jt:return this._getDefinitionForFragmentSpread(e,o,a,n,i);case jt:case Xt:return ht(n,e,a);case Zt:return this._getDefinitionForNamedType(e,o,a,n,i)}return null}))}getDocumentSymbols(e,t){return Mt(this,void 0,void 0,(function*(){const n=yield this.getOutline(e);if(!n)return[];const r=[],i=n.outlineTrees.map((e=>[null,e]));for(;i.length>0;){const e=i.pop();if(!e)return[];const[n,o]=e;if(!o)return[];r.push({name:o.representativeName,kind:tn(o),location:{uri:t,range:{start:o.startPosition,end:o.endPosition}},containerName:n?n.representativeName:void 0}),i.push(...o.children.map((e=>[o,e])))}return r}))}_getDefinitionForNamedType(e,t,n,r,i){return Mt(this,void 0,void 0,(function*(){const o=yield this._graphQLCache.getObjectTypeDefinitions(i),a=yield this._graphQLCache.getObjectTypeDependenciesForAST(t,o),s=t.definitions.filter((e=>e.kind===Ft||e.kind===Gt||e.kind===Qt||e.kind===Ut||e.kind===Vt)).map((t=>({filePath:r,content:e,definition:t})));return yield ft(e,n,a.concat(s))}))}_getDefinitionForFragmentSpread(e,t,n,r,i){return Mt(this,void 0,void 0,(function*(){const o=yield this._graphQLCache.getFragmentDefinitions(i),a=yield this._graphQLCache.getFragmentDependenciesForAST(t,o),s=t.definitions.filter((e=>e.kind===jt)).map((t=>({filePath:r,content:e,definition:t})));return yield dt(e,n,a.concat(s))}))}getOutline(e){return Mt(this,void 0,void 0,(function*(){return St(e)}))}}var rn=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class on{constructor({parser:e,schemaLoader:t,schemaBuilder:n,schemaConfig:a,schemaString:s,parseOptions:c,exteralFragmentDefinitions:l}){this._parser=r.parse,this._schema=null,this._schemaResponse=null,this._schemaLoader=i,this._schemaBuilder=o,this._schemaString=null,this._parseOptions=void 0,this._exteralFragmentDefinitionNodes=null,this._exteralFragmentDefinitionsString=null,this.getCompletion=(e,t,n)=>rn(this,void 0,void 0,(function*(){const e=yield this.getSchema();return!t||t.length<1||!e?[]:Ge(e,t,n,void 0,yield this.getExternalFragmentDefinitions())})),this.getDiagnostics=(e,t,n)=>rn(this,void 0,void 0,(function*(){const e=yield this.getSchema();return!t||t.length<1||!e?[]:bt(t,e,n)})),this.getHover=(e,t,n,r)=>rn(this,void 0,void 0,(function*(){return Ct(yield this.getSchema(),t,n,void 0,Object.assign({useMarkdown:!0},r))})),this._schemaConfig=a,e&&(this._parser=e),t&&(this._schemaLoader=t),n&&(this._schemaBuilder=n),s&&(this._schemaString=s),c&&(this._parseOptions=c),l&&(Array.isArray(l)?this._exteralFragmentDefinitionNodes=l:this._exteralFragmentDefinitionsString=l)}get schema(){return this._schema}getSchema(){return rn(this,void 0,void 0,(function*(){return this.schema?this.schema:this.loadSchema()}))}getExternalFragmentDefinitions(){return rn(this,void 0,void 0,(function*(){if(!this._exteralFragmentDefinitionNodes&&this._exteralFragmentDefinitionsString){const e=[];try{(0,r.visit)(yield this._parser(this._exteralFragmentDefinitionsString),{FragmentDefinition(t){e.push(t)}})}catch(e){throw Error(`Failed parsing exteralFragmentDefinitions string:\n${this._exteralFragmentDefinitionsString}`)}this._exteralFragmentDefinitionNodes=e}return this._exteralFragmentDefinitionNodes}))}setSchema(e){return rn(this,void 0,void 0,(function*(){this._schemaString=e,yield this.loadSchema()}))}getSchemaResponse(){return rn(this,void 0,void 0,(function*(){return this._schemaResponse?this._schemaResponse:this.loadSchemaResponse()}))}loadSchemaResponse(){var e;return rn(this,void 0,void 0,(function*(){return this._schemaString?"string"==typeof this._schemaString?this.parse(this._schemaString):this._schemaString:(null===(e=this._schemaConfig)||void 0===e?void 0:e.uri)?(this._schemaResponse=yield this._schemaLoader(this._schemaConfig),this._schemaResponse):null}))}loadSchema(){return rn(this,void 0,void 0,(function*(){const e=yield this.loadSchemaResponse();return e?(this._schema=this._schemaBuilder(e,this._schemaConfig.buildSchemaOptions),this._schema):null}))}parse(e,t){return rn(this,void 0,void 0,(function*(){return this._parser(e,t||this._parseOptions)}))}}const an={Created:1,Changed:2,Deleted:3}},5822:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=void 0,t.formatError=function(e){return e.toJSON()},t.printError=function(e){return e.toString()};var r=n(5690),i=n(9016),o=n(8038);class a extends Error{constructor(e,t,n,o,c,l,u){var p,f,d;super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=l?l:void 0,this.nodes=s(Array.isArray(t)?t:t?[t]:void 0);const h=s(null===(p=this.nodes)||void 0===p?void 0:p.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=n?n:null==h||null===(f=h[0])||void 0===f?void 0:f.source,this.positions=null!=o?o:null==h?void 0:h.map((e=>e.start)),this.locations=o&&n?o.map((e=>(0,i.getLocation)(n,e))):null==h?void 0:h.map((e=>(0,i.getLocation)(e.source,e.start)));const m=(0,r.isObjectLike)(null==l?void 0:l.extensions)?null==l?void 0:l.extensions:void 0;this.extensions=null!==(d=null!=u?u:m)&&void 0!==d?d:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=l&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+(0,o.printLocation)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}t.GraphQLError=a},6972:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return r.formatError}}),Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return o.locatedError}}),Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return r.printError}}),Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return i.syntaxError}});var r=n(5822),i=n(338),o=n(1993)},1993:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locatedError=function(e,t,n){var o;const a=e instanceof Error?e:new Error("Unexpected error value: "+(0,r.inspect)(e));return s=a,Array.isArray(s.path)?a:new i.GraphQLError(a.message,null!==(o=a.nodes)&&void 0!==o?o:t,a.source,a.positions,n,a);var s};var r=n(8002),i=n(5822)},338:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new r.GraphQLError(`Syntax Error: ${n}`,void 0,e,[t])};var r=n(5822)},8950:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.collectFields=function(e,t,n,r,i){const o=new Map;return c(e,t,n,r,i,o,new Set),o},t.collectSubfields=function(e,t,n,r,i){const o=new Map,a=new Set;for(const s of i)s.selectionSet&&c(e,t,n,r,s.selectionSet,o,a);return o};var r=n(2828),i=n(7197),o=n(5003),a=n(5115),s=n(8840);function c(e,t,n,i,o,a,s){for(const f of o.selections)switch(f.kind){case r.Kind.FIELD:{if(!l(n,f))continue;const e=(p=f).alias?p.alias.value:p.name.value,t=a.get(e);void 0!==t?t.push(f):a.set(e,[f]);break}case r.Kind.INLINE_FRAGMENT:if(!l(n,f)||!u(e,f,i))continue;c(e,t,n,i,f.selectionSet,a,s);break;case r.Kind.FRAGMENT_SPREAD:{const r=f.name.value;if(s.has(r)||!l(n,f))continue;s.add(r);const o=t[r];if(!o||!u(e,o,i))continue;c(e,t,n,i,o.selectionSet,a,s);break}}var p}function l(e,t){const n=(0,s.getDirectiveValues)(i.GraphQLSkipDirective,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=(0,s.getDirectiveValues)(i.GraphQLIncludeDirective,t,e);return!1!==(null==r?void 0:r.if)}function u(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=(0,a.typeFromAST)(e,r);return i===n||!!(0,o.isAbstractType)(i)&&e.isSubType(i,n)}},192:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidExecutionArguments=S,t.buildExecutionContext=O,t.buildResolveInfo=N,t.defaultTypeResolver=t.defaultFieldResolver=void 0,t.execute=_,t.executeSync=function(e){const t=_(e);if((0,s.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t},t.getFieldDef=j;var r=n(8002),i=n(5456),o=n(7706),a=n(7242),s=n(4221),c=n(5690),l=n(9915),u=n(3179),p=n(7059),f=n(6609),d=n(5822),h=n(1993),m=n(1807),v=n(2828),y=n(1671),g=n(8155),b=n(5003),E=n(8840),T=n(8950);const w=(0,i.memoize3)(((e,t,n)=>(0,T.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n)));function _(e){const{schema:t,document:n,variableValues:r,rootValue:i}=e;S(t,n,r);const o=O(e);if(!("schema"in o))return{errors:o};try{const{operation:e}=o,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new d.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,t);const i=(0,T.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case m.OperationTypeNode.QUERY:return C(e,r,n,o,i);case m.OperationTypeNode.MUTATION:return function(e,t,n,r,i){return(0,l.promiseReduce)(i.entries(),((r,[i,o])=>{const a=(0,p.addPath)(undefined,i,t.name),c=x(e,t,n,o,a);return void 0===c?r:(0,s.isPromise)(c)?c.then((e=>(r[i]=e,r))):(r[i]=c,r)}),Object.create(null))}(e,r,n,0,i);case m.OperationTypeNode.SUBSCRIPTION:return C(e,r,n,o,i)}}(o,e,i);return(0,s.isPromise)(t)?t.then((e=>k(e,o.errors)),(e=>(o.errors.push(e),k(null,o.errors)))):k(t,o.errors)}catch(e){return o.errors.push(e),k(null,o.errors)}}function k(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function S(e,t,n){t||(0,a.devAssert)(!1,"Must provide document."),(0,y.assertValidSchema)(e),null==n||(0,c.isObjectLike)(n)||(0,a.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function O(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:a,variableValues:s,operationName:c,fieldResolver:l,typeResolver:u,subscribeFieldResolver:p}=e;let f;const h=Object.create(null);for(const e of i.definitions)switch(e.kind){case v.Kind.OPERATION_DEFINITION:if(null==c){if(void 0!==f)return[new d.GraphQLError("Must provide operation name if query contains multiple operations.")];f=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===c&&(f=e);break;case v.Kind.FRAGMENT_DEFINITION:h[e.name.value]=e}if(!f)return null!=c?[new d.GraphQLError(`Unknown operation named "${c}".`)]:[new d.GraphQLError("Must provide an operation.")];const m=null!==(n=f.variableDefinitions)&&void 0!==n?n:[],y=(0,E.getVariableValues)(r,m,null!=s?s:{},{maxErrors:50});return y.errors?y.errors:{schema:r,fragments:h,rootValue:o,contextValue:a,operation:f,variableValues:y.coerced,fieldResolver:null!=l?l:M,typeResolver:null!=u?u:R,subscribeFieldResolver:null!=p?p:M,errors:[]}}function C(e,t,n,r,i){const o=Object.create(null);let a=!1;for(const[c,l]of i.entries()){const i=x(e,t,n,l,(0,p.addPath)(r,c,t.name));void 0!==i&&(o[c]=i,(0,s.isPromise)(i)&&(a=!0))}return a?(0,u.promiseForObject)(o):o}function x(e,t,n,r,i){var o;const a=j(e.schema,t,r[0]);if(!a)return;const c=a.type,l=null!==(o=a.resolve)&&void 0!==o?o:e.fieldResolver,u=N(e,a,r,t,i);try{const t=l(n,(0,E.getArgumentValues)(a,r[0],e.variableValues),e.contextValue,u);let o;return o=(0,s.isPromise)(t)?t.then((t=>D(e,c,r,u,i,t))):D(e,c,r,u,i,t),(0,s.isPromise)(o)?o.then(void 0,(t=>A((0,h.locatedError)(t,r,(0,p.pathToArray)(i)),c,e))):o}catch(t){return A((0,h.locatedError)(t,r,(0,p.pathToArray)(i)),c,e)}}function N(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function A(e,t,n){if((0,b.isNonNullType)(t))throw e;return n.errors.push(e),null}function D(e,t,n,i,a,c){if(c instanceof Error)throw c;if((0,b.isNonNullType)(t)){const r=D(e,t.ofType,n,i,a,c);if(null===r)throw new Error(`Cannot return null for non-nullable field ${i.parentType.name}.${i.fieldName}.`);return r}return null==c?null:(0,b.isListType)(t)?function(e,t,n,r,i,o){if(!(0,f.isIterableObject)(o))throw new d.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const a=t.ofType;let c=!1;const l=Array.from(o,((t,o)=>{const l=(0,p.addPath)(i,o,void 0);try{let i;return i=(0,s.isPromise)(t)?t.then((t=>D(e,a,n,r,l,t))):D(e,a,n,r,l,t),(0,s.isPromise)(i)?(c=!0,i.then(void 0,(t=>A((0,h.locatedError)(t,n,(0,p.pathToArray)(l)),a,e)))):i}catch(t){return A((0,h.locatedError)(t,n,(0,p.pathToArray)(l)),a,e)}}));return c?Promise.all(l):l}(e,t,n,i,a,c):(0,b.isLeafType)(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${(0,r.inspect)(e)}.serialize(${(0,r.inspect)(t)})\` to return non-nullable value, returned: ${(0,r.inspect)(n)}`);return n}(t,c):(0,b.isAbstractType)(t)?function(e,t,n,r,i,o){var a;const c=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,l=e.contextValue,u=c(o,l,r,t);return(0,s.isPromise)(u)?u.then((a=>I(e,L(a,e,t,n,r,o),n,r,i,o))):I(e,L(u,e,t,n,r,o),n,r,i,o)}(e,t,n,i,a,c):(0,b.isObjectType)(t)?I(e,t,n,i,a,c):void(0,o.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,r.inspect)(t))}function L(e,t,n,i,o,a){if(null==e)throw new d.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,i);if((0,b.isObjectType)(e))throw new d.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new d.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${(0,r.inspect)(a)}, received "${(0,r.inspect)(e)}".`);const s=t.schema.getType(e);if(null==s)throw new d.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,i);if(!(0,b.isObjectType)(s))throw new d.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,i);if(!t.schema.isSubType(n,s))throw new d.GraphQLError(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,i);return s}function I(e,t,n,r,i,o){const a=w(e,t,n);if(t.isTypeOf){const c=t.isTypeOf(o,e.contextValue,r);if((0,s.isPromise)(c))return c.then((r=>{if(!r)throw P(t,o,n);return C(e,t,o,i,a)}));if(!c)throw P(t,o,n)}return C(e,t,o,i,a)}function P(e,t,n){return new d.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,r.inspect)(t)}.`,n)}const R=function(e,t,n,r){if((0,c.isObjectLike)(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r{for(let t=0;tr(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}},6234:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSourceEventStream=f,t.subscribe=async function(e){const{schema:t,document:n,rootValue:r,contextValue:o,variableValues:a,operationName:s,fieldResolver:c,subscribeFieldResolver:l}=e,d=await f(t,n,r,o,a,s,l);return(0,i.isAsyncIterable)(d)?(0,p.mapAsyncIterator)(d,(e=>(0,u.execute)({schema:t,document:n,rootValue:e,contextValue:o,variableValues:a,operationName:s,fieldResolver:c}))):d};var r=n(8002),i=n(8648),o=n(7059),a=n(5822),s=n(1993),c=n(8950),l=n(8840),u=n(192),p=n(6082);async function f(e,t,n,p,f,d,h){(0,u.assertValidExecutionArguments)(e,t,f);const m=(0,u.buildExecutionContext)({schema:e,document:t,rootValue:n,contextValue:p,variableValues:f,operationName:d,subscribeFieldResolver:h});if(!("schema"in m))return{errors:m};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:p}=e,f=t.getSubscriptionType();if(null==f)throw new a.GraphQLError("Schema is not configured to execute subscription operation.",r);const d=(0,c.collectFields)(t,n,i,f,r.selectionSet),[h,m]=[...d.entries()][0],v=(0,u.getFieldDef)(t,f,m[0]);if(!v){const e=m[0].name.value;throw new a.GraphQLError(`The subscription field "${e}" is not defined.`,m)}const y=(0,o.addPath)(void 0,h,f.name),g=(0,u.buildResolveInfo)(e,v,m,f,y);try{var b;const t=(0,l.getArgumentValues)(v,m[0],i),n=e.contextValue,r=null!==(b=v.subscribe)&&void 0!==b?b:e.subscribeFieldResolver,o=await r(p,t,n,g);if(o instanceof Error)throw o;return o}catch(e){throw(0,s.locatedError)(e,m,(0,o.pathToArray)(y))}}(m);if(!(0,i.isAsyncIterable)(e))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,r.inspect)(e)}.`);return e}catch(e){if(e instanceof a.GraphQLError)return{errors:[e]};throw e}}},8840:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArgumentValues=d,t.getDirectiveValues=function(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find((t=>t.name.value===e.name));if(i)return d(e,i,n)},t.getVariableValues=function(e,t,n,r){const s=[],d=null==r?void 0:r.maxErrors;try{const r=function(e,t,n,r){const s={};for(const d of t){const t=d.variable.name.value,m=(0,u.typeFromAST)(e,d.type);if(!(0,l.isInputType)(m)){const e=(0,c.print)(d.type);r(new a.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,d.type));continue}if(!h(n,t)){if(d.defaultValue)s[t]=(0,p.valueFromAST)(d.defaultValue,m);else if((0,l.isNonNullType)(m)){const e=(0,i.inspect)(m);r(new a.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,d))}continue}const v=n[t];if(null===v&&(0,l.isNonNullType)(m)){const e=(0,i.inspect)(m);r(new a.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,d))}else s[t]=(0,f.coerceInputValue)(v,m,((e,n,s)=>{let c=`Variable "$${t}" got invalid value `+(0,i.inspect)(n);e.length>0&&(c+=` at "${t}${(0,o.printPathArray)(e)}"`),r(new a.GraphQLError(c+"; "+s.message,d,void 0,void 0,void 0,s.originalError))}))}return s}(e,t,n,(e=>{if(null!=d&&s.length>=d)throw new a.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");s.push(e)}));if(0===s.length)return{coerced:r}}catch(e){s.push(e)}return{errors:s}};var r=n(2863),i=n(8002),o=n(737),a=n(5822),s=n(2828),c=n(3033),l=n(5003),u=n(5115),p=n(3770),f=n(3679);function d(e,t,n){var o;const u={},f=null!==(o=t.arguments)&&void 0!==o?o:[],d=(0,r.keyMap)(f,(e=>e.name.value));for(const r of e.args){const e=r.name,o=r.type,f=d[e];if(!f){if(void 0!==r.defaultValue)u[e]=r.defaultValue;else if((0,l.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of required type "${(0,i.inspect)(o)}" was not provided.`,t);continue}const m=f.value;let v=m.kind===s.Kind.NULL;if(m.kind===s.Kind.VARIABLE){const t=m.name.value;if(null==n||!h(n,t)){if(void 0!==r.defaultValue)u[e]=r.defaultValue;else if((0,l.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of required type "${(0,i.inspect)(o)}" was provided the variable "$${t}" which was not provided a runtime value.`,m);continue}v=null==n[t]}if(v&&(0,l.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of non-null type "${(0,i.inspect)(o)}" must not be null.`,m);const y=(0,p.valueFromAST)(m,o,n);if(void 0===y)throw new a.GraphQLError(`Argument "${e}" has invalid value ${(0,c.print)(m)}.`,m);u[e]=y}return u}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},9728:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.graphql=function(e){return new Promise((t=>t(c(e))))},t.graphqlSync=function(e){const t=c(e);if((0,r.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t};var r=n(4221),i=n(8370),o=n(9504),a=n(1671),s=n(192);function c(e){const{schema:t,source:n,rootValue:r,contextValue:c,variableValues:l,operationName:u,fieldResolver:p,typeResolver:f}=e,d=(0,a.validateSchema)(t);if(d.length>0)return{errors:d};let h;try{h=(0,i.parse)(n)}catch(e){return{errors:[e]}}const m=(0,o.validate)(t,h);return m.length>0?{errors:m}:(0,s.execute)({schema:t,document:h,rootValue:r,contextValue:c,variableValues:l,operationName:u,fieldResolver:p,typeResolver:f})}},20:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return a.BREAK}}),Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return u.BreakingChangeType}}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return u.DangerousChangeType}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return a.DirectiveLocation}}),Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return c.ExecutableDefinitionsRule}}),Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return c.FieldsOnCorrectTypeRule}}),Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return c.FragmentsOnCompositeTypesRule}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return o.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return o.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return l.GraphQLError}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return o.GraphQLFloat}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return o.GraphQLID}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return o.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return o.GraphQLInt}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return o.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return o.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return o.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return o.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return o.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return o.GraphQLSchema}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return o.GraphQLSpecifiedByDirective}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return o.GraphQLString}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return o.GraphQLUnionType}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return a.Kind}}),Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return c.KnownArgumentNamesRule}}),Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return c.KnownDirectivesRule}}),Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return c.KnownFragmentNamesRule}}),Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return c.KnownTypeNamesRule}}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return a.Lexer}}),Object.defineProperty(t,"Location",{enumerable:!0,get:function(){return a.Location}}),Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return c.LoneAnonymousOperationRule}}),Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return c.LoneSchemaDefinitionRule}}),Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return c.NoDeprecatedCustomRule}}),Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return c.NoFragmentCyclesRule}}),Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return c.NoSchemaIntrospectionCustomRule}}),Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return c.NoUndefinedVariablesRule}}),Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return c.NoUnusedFragmentsRule}}),Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return c.NoUnusedVariablesRule}}),Object.defineProperty(t,"OperationTypeNode",{enumerable:!0,get:function(){return a.OperationTypeNode}}),Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return c.OverlappingFieldsCanBeMergedRule}}),Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return c.PossibleFragmentSpreadsRule}}),Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return c.PossibleTypeExtensionsRule}}),Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return c.ProvidedRequiredArgumentsRule}}),Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return c.ScalarLeafsRule}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return o.SchemaMetaFieldDef}}),Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return c.SingleFieldSubscriptionsRule}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return a.Source}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return a.Token}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return a.TokenKind}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return u.TypeInfo}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return o.TypeKind}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return o.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return o.TypeNameMetaFieldDef}}),Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return c.UniqueArgumentDefinitionNamesRule}}),Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return c.UniqueArgumentNamesRule}}),Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return c.UniqueDirectiveNamesRule}}),Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return c.UniqueDirectivesPerLocationRule}}),Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return c.UniqueEnumValueNamesRule}}),Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return c.UniqueFieldDefinitionNamesRule}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return c.UniqueFragmentNamesRule}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return c.UniqueInputFieldNamesRule}}),Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return c.UniqueOperationNamesRule}}),Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return c.UniqueOperationTypesRule}}),Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return c.UniqueTypeNamesRule}}),Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return c.UniqueVariableNamesRule}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return c.ValidationContext}}),Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return c.ValuesOfCorrectTypeRule}}),Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return c.VariablesAreInputTypesRule}}),Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return c.VariablesInAllowedPositionRule}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return o.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return o.__DirectiveLocation}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return o.__EnumValue}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return o.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return o.__InputValue}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return o.__Schema}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return o.__Type}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return o.__TypeKind}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return o.assertAbstractType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return o.assertCompositeType}}),Object.defineProperty(t,"assertDirective",{enumerable:!0,get:function(){return o.assertDirective}}),Object.defineProperty(t,"assertEnumType",{enumerable:!0,get:function(){return o.assertEnumType}}),Object.defineProperty(t,"assertEnumValueName",{enumerable:!0,get:function(){return o.assertEnumValueName}}),Object.defineProperty(t,"assertInputObjectType",{enumerable:!0,get:function(){return o.assertInputObjectType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return o.assertInputType}}),Object.defineProperty(t,"assertInterfaceType",{enumerable:!0,get:function(){return o.assertInterfaceType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return o.assertLeafType}}),Object.defineProperty(t,"assertListType",{enumerable:!0,get:function(){return o.assertListType}}),Object.defineProperty(t,"assertName",{enumerable:!0,get:function(){return o.assertName}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return o.assertNamedType}}),Object.defineProperty(t,"assertNonNullType",{enumerable:!0,get:function(){return o.assertNonNullType}}),Object.defineProperty(t,"assertNullableType",{enumerable:!0,get:function(){return o.assertNullableType}}),Object.defineProperty(t,"assertObjectType",{enumerable:!0,get:function(){return o.assertObjectType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return o.assertOutputType}}),Object.defineProperty(t,"assertScalarType",{enumerable:!0,get:function(){return o.assertScalarType}}),Object.defineProperty(t,"assertSchema",{enumerable:!0,get:function(){return o.assertSchema}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return o.assertType}}),Object.defineProperty(t,"assertUnionType",{enumerable:!0,get:function(){return o.assertUnionType}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return u.assertValidName}}),Object.defineProperty(t,"assertValidSchema",{enumerable:!0,get:function(){return o.assertValidSchema}}),Object.defineProperty(t,"assertWrappingType",{enumerable:!0,get:function(){return o.assertWrappingType}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return u.astFromValue}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return u.buildASTSchema}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return u.buildClientSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return u.buildSchema}}),Object.defineProperty(t,"coerceInputValue",{enumerable:!0,get:function(){return u.coerceInputValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return u.concatAST}}),Object.defineProperty(t,"createSourceEventStream",{enumerable:!0,get:function(){return s.createSourceEventStream}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return s.defaultFieldResolver}}),Object.defineProperty(t,"defaultTypeResolver",{enumerable:!0,get:function(){return s.defaultTypeResolver}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return u.doTypesOverlap}}),Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return s.execute}}),Object.defineProperty(t,"executeSync",{enumerable:!0,get:function(){return s.executeSync}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return u.extendSchema}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return u.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return u.findDangerousChanges}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return l.formatError}}),Object.defineProperty(t,"getDirectiveValues",{enumerable:!0,get:function(){return s.getDirectiveValues}}),Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:!0,get:function(){return a.getEnterLeaveForKind}}),Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return u.getIntrospectionQuery}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return a.getLocation}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return o.getNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return o.getNullableType}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return u.getOperationAST}}),Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return u.getOperationRootType}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return a.getVisitFn}}),Object.defineProperty(t,"graphql",{enumerable:!0,get:function(){return i.graphql}}),Object.defineProperty(t,"graphqlSync",{enumerable:!0,get:function(){return i.graphqlSync}}),Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return u.introspectionFromSchema}}),Object.defineProperty(t,"introspectionTypes",{enumerable:!0,get:function(){return o.introspectionTypes}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return o.isAbstractType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return o.isCompositeType}}),Object.defineProperty(t,"isConstValueNode",{enumerable:!0,get:function(){return a.isConstValueNode}}),Object.defineProperty(t,"isDefinitionNode",{enumerable:!0,get:function(){return a.isDefinitionNode}}),Object.defineProperty(t,"isDirective",{enumerable:!0,get:function(){return o.isDirective}}),Object.defineProperty(t,"isEnumType",{enumerable:!0,get:function(){return o.isEnumType}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return u.isEqualType}}),Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return a.isExecutableDefinitionNode}}),Object.defineProperty(t,"isInputObjectType",{enumerable:!0,get:function(){return o.isInputObjectType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return o.isInputType}}),Object.defineProperty(t,"isInterfaceType",{enumerable:!0,get:function(){return o.isInterfaceType}}),Object.defineProperty(t,"isIntrospectionType",{enumerable:!0,get:function(){return o.isIntrospectionType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return o.isLeafType}}),Object.defineProperty(t,"isListType",{enumerable:!0,get:function(){return o.isListType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return o.isNamedType}}),Object.defineProperty(t,"isNonNullType",{enumerable:!0,get:function(){return o.isNonNullType}}),Object.defineProperty(t,"isNullableType",{enumerable:!0,get:function(){return o.isNullableType}}),Object.defineProperty(t,"isObjectType",{enumerable:!0,get:function(){return o.isObjectType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return o.isOutputType}}),Object.defineProperty(t,"isRequiredArgument",{enumerable:!0,get:function(){return o.isRequiredArgument}}),Object.defineProperty(t,"isRequiredInputField",{enumerable:!0,get:function(){return o.isRequiredInputField}}),Object.defineProperty(t,"isScalarType",{enumerable:!0,get:function(){return o.isScalarType}}),Object.defineProperty(t,"isSchema",{enumerable:!0,get:function(){return o.isSchema}}),Object.defineProperty(t,"isSelectionNode",{enumerable:!0,get:function(){return a.isSelectionNode}}),Object.defineProperty(t,"isSpecifiedDirective",{enumerable:!0,get:function(){return o.isSpecifiedDirective}}),Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:!0,get:function(){return o.isSpecifiedScalarType}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return o.isType}}),Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:!0,get:function(){return a.isTypeDefinitionNode}}),Object.defineProperty(t,"isTypeExtensionNode",{enumerable:!0,get:function(){return a.isTypeExtensionNode}}),Object.defineProperty(t,"isTypeNode",{enumerable:!0,get:function(){return a.isTypeNode}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return u.isTypeSubTypeOf}}),Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return a.isTypeSystemDefinitionNode}}),Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return a.isTypeSystemExtensionNode}}),Object.defineProperty(t,"isUnionType",{enumerable:!0,get:function(){return o.isUnionType}}),Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return u.isValidNameError}}),Object.defineProperty(t,"isValueNode",{enumerable:!0,get:function(){return a.isValueNode}}),Object.defineProperty(t,"isWrappingType",{enumerable:!0,get:function(){return o.isWrappingType}}),Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return u.lexicographicSortSchema}}),Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return l.locatedError}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(t,"parseConstValue",{enumerable:!0,get:function(){return a.parseConstValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return a.parseType}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return a.parseValue}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return a.print}}),Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return l.printError}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return u.printIntrospectionSchema}}),Object.defineProperty(t,"printLocation",{enumerable:!0,get:function(){return a.printLocation}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return u.printSchema}}),Object.defineProperty(t,"printSourceLocation",{enumerable:!0,get:function(){return a.printSourceLocation}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return u.printType}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return s.responsePathAsArray}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return u.separateOperations}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return c.specifiedRules}}),Object.defineProperty(t,"specifiedScalarTypes",{enumerable:!0,get:function(){return o.specifiedScalarTypes}}),Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:!0,get:function(){return u.stripIgnoredCharacters}}),Object.defineProperty(t,"subscribe",{enumerable:!0,get:function(){return s.subscribe}}),Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return l.syntaxError}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return u.typeFromAST}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.validate}}),Object.defineProperty(t,"validateSchema",{enumerable:!0,get:function(){return o.validateSchema}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return u.valueFromAST}}),Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return u.valueFromASTUntyped}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return r.version}}),Object.defineProperty(t,"versionInfo",{enumerable:!0,get:function(){return r.versionInfo}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return a.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return a.visitInParallel}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return u.visitWithTypeInfo}});var r=n(8696),i=n(9728),o=n(3226),a=n(2178),s=n(9931),c=n(1122),l=n(6972),u=n(9548)},7059:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPath=function(e,t,n){return{prev:e,key:t,typename:n}},t.pathToArray=function(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}},7242:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.devAssert=function(e,t){if(!Boolean(e))throw new Error(t)}},166:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.didYouMean=function(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map((e=>`"${e}"`));switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}},4620:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=function(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}},3317:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identityFunc=function(e){return e}},8002:function(e,t){"use strict";function n(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:n(t,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const r=Math.min(10,e.length),i=e.length-r,o=[];for(let i=0;i1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(e,r);return function(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const i=r.map((([e,r])=>e+": "+n(r,t)));return"{ "+i.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.inspect=function(e){return n(e,[])}},5752:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instanceOf=void 0,n(8002);t.instanceOf=function(e,t){return e instanceof t}},7706:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}},8648:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=function(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}},6609:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterableObject=function(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}},5690:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},4221:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=function(e){return"function"==typeof(null==e?void 0:e.then)}},2863:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyMap=function(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}},7154:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyValMap=function(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}},6124:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapValue=function(e,t){const n=Object.create(null);for(const[r,i]of Object.entries(e))n[r]=t(i,r);return n}},5456:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize3=function(e){let t;return function(n,r,i){void 0===t&&(t=new WeakMap);let o=t.get(n);void 0===o&&(o=new WeakMap,t.set(n,o));let a=o.get(r);void 0===a&&(a=new WeakMap,o.set(r,a));let s=a.get(i);return void 0===s&&(s=e(n,r,i),a.set(i,s)),s}}},5250:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.naturalCompare=function(e,t){let i=0,o=0;for(;i0);let l=0;do{++o,l=10*l+s-n,s=t.charCodeAt(o)}while(r(s)&&l>0);if(cl)return 1}else{if(as)return 1;++i,++o}}return e.length-t.length};const n=48;function r(e){return!isNaN(e)&&n<=e&&e<=57}},737:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printPathArray=function(e){return e.map((e=>"number"==typeof e?"["+e.toString()+"]":"."+e)).join("")}},3179:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promiseForObject=function(e){return Promise.all(Object.values(e)).then((t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n}))}},9915:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promiseReduce=function(e,t,n){let i=n;for(const n of e)i=(0,r.isPromise)(i)?i.then((e=>t(e,n))):t(i,n);return i};var r=n(4221)},8070:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.suggestionList=function(e,t){const n=Object.create(null),o=new i(e),a=Math.floor(.4*e.length)+1;for(const e of t){const t=o.measure(e,a);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const i=n[e]-n[t];return 0!==i?i:(0,r.naturalCompare)(e,t)}))};var r=n(5250);class i{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=o(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=o(n),i=this._inputArray;if(r.lengtht)return;const c=this._rows;for(let e=0;e<=s;e++)c[0][e]=e;for(let e=1;e<=a;e++){const n=c[(e-1)%3],o=c[e%3];let a=o[0]=e;for(let t=1;t<=s;t++){const s=r[e-1]===i[t-1]?0:1;let l=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=c[(e-2)%3][t-2];l=Math.min(l,n+1)}lt)return}const l=c[a%3][s];return l<=t?l:void 0}}function o(e){const t=e.length,n=new Array(t);for(let r=0;ro&&n(t[a-1]);)--a;return t.slice(o,a).join("\n")},t.getBlockStringIndentation=r,t.printBlockString=function(e,t=!1){const n=!e.includes("\n"),r=e.startsWith(" ")||e.startsWith("\t"),i=e.endsWith('"'),o=e.endsWith("\\"),a=!n||i||o||t;let s="";return!a||n&&r||(s+="\n"),s+=e,a&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}},100:function(e,t){"use strict";function n(e){return e>=48&&e<=57}function r(e){return e>=97&&e<=122||e>=65&&e<=90}Object.defineProperty(t,"__esModule",{value:!0}),t.isDigit=n,t.isLetter=r,t.isNameContinue=function(e){return r(e)||n(e)||95===e},t.isNameStart=function(e){return r(e)||95===e}},8333:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0,t.DirectiveLocation=n,function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(n||(t.DirectiveLocation=n={}))},2178:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return p.BREAK}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return h.DirectiveLocation}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return a.Kind}}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return c.Lexer}}),Object.defineProperty(t,"Location",{enumerable:!0,get:function(){return f.Location}}),Object.defineProperty(t,"OperationTypeNode",{enumerable:!0,get:function(){return f.OperationTypeNode}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return r.Source}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return f.Token}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return s.TokenKind}}),Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:!0,get:function(){return p.getEnterLeaveForKind}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return i.getLocation}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return p.getVisitFn}}),Object.defineProperty(t,"isConstValueNode",{enumerable:!0,get:function(){return d.isConstValueNode}}),Object.defineProperty(t,"isDefinitionNode",{enumerable:!0,get:function(){return d.isDefinitionNode}}),Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return d.isExecutableDefinitionNode}}),Object.defineProperty(t,"isSelectionNode",{enumerable:!0,get:function(){return d.isSelectionNode}}),Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:!0,get:function(){return d.isTypeDefinitionNode}}),Object.defineProperty(t,"isTypeExtensionNode",{enumerable:!0,get:function(){return d.isTypeExtensionNode}}),Object.defineProperty(t,"isTypeNode",{enumerable:!0,get:function(){return d.isTypeNode}}),Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return d.isTypeSystemDefinitionNode}}),Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return d.isTypeSystemExtensionNode}}),Object.defineProperty(t,"isValueNode",{enumerable:!0,get:function(){return d.isValueNode}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return l.parse}}),Object.defineProperty(t,"parseConstValue",{enumerable:!0,get:function(){return l.parseConstValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return l.parseType}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return l.parseValue}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return u.print}}),Object.defineProperty(t,"printLocation",{enumerable:!0,get:function(){return o.printLocation}}),Object.defineProperty(t,"printSourceLocation",{enumerable:!0,get:function(){return o.printSourceLocation}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return p.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return p.visitInParallel}});var r=n(2412),i=n(9016),o=n(8038),a=n(2828),s=n(3175),c=n(4274),l=n(8370),u=n(3033),p=n(285),f=n(1807),d=n(1352),h=n(8333)},2828:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0,t.Kind=n,function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(t.Kind=n={}))},4274:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0,t.isPunctuatorTokenKind=function(e){return e===o.TokenKind.BANG||e===o.TokenKind.DOLLAR||e===o.TokenKind.AMP||e===o.TokenKind.PAREN_L||e===o.TokenKind.PAREN_R||e===o.TokenKind.SPREAD||e===o.TokenKind.COLON||e===o.TokenKind.EQUALS||e===o.TokenKind.AT||e===o.TokenKind.BRACKET_L||e===o.TokenKind.BRACKET_R||e===o.TokenKind.BRACE_L||e===o.TokenKind.PIPE||e===o.TokenKind.BRACE_R};var r=n(338),i=n(1807),o=n(3175),a=n(849),s=n(100);class c{constructor(e){const t=new i.Token(o.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==o.TokenKind.EOF)do{if(e.next)e=e.next;else{const t=m(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===o.TokenKind.COMMENT);return e}}function l(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function u(e,t){return p(e.charCodeAt(t))&&f(e.charCodeAt(t+1))}function p(e){return e>=55296&&e<=56319}function f(e){return e>=56320&&e<=57343}function d(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return o.TokenKind.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function h(e,t,n,r,o){const a=e.line,s=1+n-e.lineStart;return new i.Token(t,n,r,a,s,o)}function m(e,t){const n=e.source.body,i=n.length;let a=t;for(;a=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function k(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,r.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function S(e,t){const n=e.source.body,s=n.length,c=e.line,p=1+t-e.lineStart;let f=t+3,h=f,m="";for(;f=t)break;n=a.index+a[0].length,o+=1}return{line:o,column:t+1-n}};var r=n(7706);const i=/\r\n|[\n\r]/g},8370:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0,t.parse=function(e,t){return new u(e,t).parseDocument()},t.parseConstValue=function(e,t){const n=new u(e,t);n.expectToken(a.TokenKind.SOF);const r=n.parseConstValueLiteral();return n.expectToken(a.TokenKind.EOF),r},t.parseType=function(e,t){const n=new u(e,t);n.expectToken(a.TokenKind.SOF);const r=n.parseTypeReference();return n.expectToken(a.TokenKind.EOF),r},t.parseValue=function(e,t){const n=new u(e,t);n.expectToken(a.TokenKind.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(a.TokenKind.EOF),r};var r=n(338),i=n(2828),o=n(1807),a=n(3175),s=n(2412),c=n(8333),l=n(4274);class u{constructor(e,t){const n=(0,s.isSource)(e)?e:new s.Source(e);this._lexer=new l.Lexer(n),this._options=t}parseName(){const e=this.expectToken(a.TokenKind.NAME);return this.node(e,{kind:i.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:i.Kind.DOCUMENT,definitions:this.many(a.TokenKind.SOF,this.parseDefinition,a.TokenKind.EOF)})}parseDefinition(){if(this.peek(a.TokenKind.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===a.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(a.TokenKind.BRACE_L))return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:o.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(a.TokenKind.NAME)&&(n=this.parseName()),this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(a.TokenKind.NAME);switch(e.value){case"query":return o.OperationTypeNode.QUERY;case"mutation":return o.OperationTypeNode.MUTATION;case"subscription":return o.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(a.TokenKind.PAREN_L,this.parseVariableDefinition,a.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:i.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(a.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(a.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(a.TokenKind.DOLLAR),this.node(e,{kind:i.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:i.Kind.SELECTION_SET,selections:this.many(a.TokenKind.BRACE_L,this.parseSelection,a.TokenKind.BRACE_R)})}parseSelection(){return this.peek(a.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(a.TokenKind.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:i.Kind.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(a.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(a.TokenKind.PAREN_L,t,a.TokenKind.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(a.TokenKind.COLON),this.node(t,{kind:i.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(a.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(a.TokenKind.NAME)?this.node(e,{kind:i.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:i.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;const t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)?this.node(t,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case a.TokenKind.BRACKET_L:return this.parseList(e);case a.TokenKind.BRACE_L:return this.parseObject(e);case a.TokenKind.INT:return this._lexer.advance(),this.node(t,{kind:i.Kind.INT,value:t.value});case a.TokenKind.FLOAT:return this._lexer.advance(),this.node(t,{kind:i.Kind.FLOAT,value:t.value});case a.TokenKind.STRING:case a.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case a.TokenKind.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:i.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:i.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:i.Kind.NULL});default:return this.node(t,{kind:i.Kind.ENUM,value:t.value})}case a.TokenKind.DOLLAR:if(e){if(this.expectToken(a.TokenKind.DOLLAR),this._lexer.token.kind===a.TokenKind.NAME){const e=this._lexer.token.value;throw(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable()}throw this.unexpected()}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this._lexer.advance(),this.node(e,{kind:i.Kind.STRING,value:e.value,block:e.kind===a.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:i.Kind.LIST,values:this.any(a.TokenKind.BRACKET_L,(()=>this.parseValueLiteral(e)),a.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:i.Kind.OBJECT,fields:this.any(a.TokenKind.BRACE_L,(()=>this.parseObjectField(e)),a.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(a.TokenKind.COLON),this.node(t,{kind:i.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(a.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(a.TokenKind.AT),this.node(t,{kind:i.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(a.TokenKind.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(a.TokenKind.BRACKET_R),t=this.node(e,{kind:i.Kind.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(a.TokenKind.BANG)?this.node(e,{kind:i.Kind.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:i.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(a.TokenKind.STRING)||this.peek(a.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(a.TokenKind.BRACE_L,this.parseOperationTypeDefinition,a.TokenKind.BRACE_R);return this.node(e,{kind:i.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(a.TokenKind.COLON);const n=this.parseNamedType();return this.node(e,{kind:i.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:i.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(a.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(a.TokenKind.BRACE_L,this.parseFieldDefinition,a.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(a.TokenKind.COLON);const o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:i.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(a.TokenKind.PAREN_L,this.parseInputValueDef,a.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(a.TokenKind.COLON);const r=this.parseTypeReference();let o;this.expectOptionalToken(a.TokenKind.EQUALS)&&(o=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:i.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(e,{kind:i.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(a.TokenKind.EQUALS)?this.delimitedMany(a.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(e,{kind:i.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o})}parseEnumValuesDefinition(){return this.optionalMany(a.TokenKind.BRACE_L,this.parseEnumValueDefinition,a.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:i.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,`${p(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(a.TokenKind.BRACE_L,this.parseInputValueDef,a.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===a.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(a.TokenKind.BRACE_L,this.parseOperationTypeDefinition,a.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:i.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:i.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:i.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:i.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:i.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:i.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(a.TokenKind.AT);const n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:i.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(a.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(c.DirectiveLocation,t.value))return t;throw this.unexpected(e)}node(e,t){var n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation)&&(t.loc=new o.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected ${f(e)}, found ${p(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==a.TokenKind.NAME||t.value!==e)throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${p(t)}.`);this._lexer.advance()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===a.TokenKind.NAME&&t.value===e&&(this._lexer.advance(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected ${p(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}}function p(e){const t=e.value;return f(e.kind)+(null!=t?` "${t}"`:"")}function f(e){return(0,l.isPunctuatorTokenKind)(e)?`"${e}"`:e}t.Parser=u},1352:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isConstValueNode=function e(t){return o(t)&&(t.kind===r.Kind.LIST?t.values.some(e):t.kind===r.Kind.OBJECT?t.fields.some((t=>e(t.value))):t.kind!==r.Kind.VARIABLE)},t.isDefinitionNode=function(e){return i(e)||a(e)||c(e)},t.isExecutableDefinitionNode=i,t.isSelectionNode=function(e){return e.kind===r.Kind.FIELD||e.kind===r.Kind.FRAGMENT_SPREAD||e.kind===r.Kind.INLINE_FRAGMENT},t.isTypeDefinitionNode=s,t.isTypeExtensionNode=l,t.isTypeNode=function(e){return e.kind===r.Kind.NAMED_TYPE||e.kind===r.Kind.LIST_TYPE||e.kind===r.Kind.NON_NULL_TYPE},t.isTypeSystemDefinitionNode=a,t.isTypeSystemExtensionNode=c,t.isValueNode=o;var r=n(2828);function i(e){return e.kind===r.Kind.OPERATION_DEFINITION||e.kind===r.Kind.FRAGMENT_DEFINITION}function o(e){return e.kind===r.Kind.VARIABLE||e.kind===r.Kind.INT||e.kind===r.Kind.FLOAT||e.kind===r.Kind.STRING||e.kind===r.Kind.BOOLEAN||e.kind===r.Kind.NULL||e.kind===r.Kind.ENUM||e.kind===r.Kind.LIST||e.kind===r.Kind.OBJECT}function a(e){return e.kind===r.Kind.SCHEMA_DEFINITION||s(e)||e.kind===r.Kind.DIRECTIVE_DEFINITION}function s(e){return e.kind===r.Kind.SCALAR_TYPE_DEFINITION||e.kind===r.Kind.OBJECT_TYPE_DEFINITION||e.kind===r.Kind.INTERFACE_TYPE_DEFINITION||e.kind===r.Kind.UNION_TYPE_DEFINITION||e.kind===r.Kind.ENUM_TYPE_DEFINITION||e.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function c(e){return e.kind===r.Kind.SCHEMA_EXTENSION||l(e)}function l(e){return e.kind===r.Kind.SCALAR_TYPE_EXTENSION||e.kind===r.Kind.OBJECT_TYPE_EXTENSION||e.kind===r.Kind.INTERFACE_TYPE_EXTENSION||e.kind===r.Kind.UNION_TYPE_EXTENSION||e.kind===r.Kind.ENUM_TYPE_EXTENSION||e.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}},8038:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return i(e.source,(0,r.getLocation)(e.source,e.start))},t.printSourceLocation=i;var r=n(9016);function i(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,s=t.line+a,c=1===t.line?n:0,l=t.column+c,u=`${e.name}:${s}:${l}\n`,p=r.split(/\r\n|[\n\r]/g),f=p[i];if(f.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+o([[s-1+" |",p[i-1]],[`${s} |`,f],["|","^".padStart(l)],[`${s+1} |`,p[i+1]]])}function o(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}},8942:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printString=function(e){return`"${e.replace(n,r)}"`};const n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function r(e){return i[e.charCodeAt(0)]}const i=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},3033:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,r.visit)(e,a)};var r=n(285),i=n(849),o=n(8942);const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>s(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=l("(",s(e.variableDefinitions,", "),")"),n=s([e.operation,s([e.name,t]),s(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+l(" = ",n)+l(" ",s(r," "))},SelectionSet:{leave:({selections:e})=>c(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=l("",e,": ")+t;let a=o+l("(",s(n,", "),")");return a.length>80&&(a=o+l("(\n",u(s(n,"\n")),"\n)")),s([a,s(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+l(" ",s(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>s(["...",l("on ",e),s(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${l("(",s(n,", "),")")} on ${t} ${l("",s(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,i.printBlockString)(e):(0,o.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+s(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+s(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+l("(",s(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>l("",e,"\n")+s(["schema",s(t," "),c(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>l("",e,"\n")+s(["scalar",t,s(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>l("",e,"\n")+s(["type",t,l("implements ",s(n," & ")),s(r," "),c(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>l("",e,"\n")+t+(p(n)?l("(\n",u(s(n,"\n")),"\n)"):l("(",s(n,", "),")"))+": "+r+l(" ",s(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>l("",e,"\n")+s([t+": "+n,l("= ",r),s(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>l("",e,"\n")+s(["interface",t,l("implements ",s(n," & ")),s(r," "),c(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>l("",e,"\n")+s(["union",t,s(n," "),l("= ",s(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>l("",e,"\n")+s(["enum",t,s(n," "),c(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>l("",e,"\n")+s([t,s(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>l("",e,"\n")+s(["input",t,s(n," "),c(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>l("",e,"\n")+"directive @"+t+(p(n)?l("(\n",u(s(n,"\n")),"\n)"):l("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>s(["extend schema",s(e," "),c(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>s(["extend scalar",e,s(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend type",e,l("implements ",s(t," & ")),s(n," "),c(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend interface",e,l("implements ",s(t," & ")),s(n," "),c(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>s(["extend union",e,s(t," "),l("= ",s(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>s(["extend enum",e,s(t," "),c(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>s(["extend input",e,s(t," "),c(n)]," ")}};function s(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function c(e){return l("{\n",u(s(e,"\n")),"\n}")}function l(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function u(e){return l(" ",e.replace(/\n/g,"\n "))}function p(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}},2412:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0,t.isSource=function(e){return(0,o.instanceOf)(e,a)};var r=n(8002),i=n(7242),o=n(5752);class a{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,i.devAssert)(!1,`Body must be a string. Received: ${(0,r.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,i.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,i.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=a},3175:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.TokenKind=n,function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(n||(t.TokenKind=n={}))},285:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=void 0,t.getEnterLeaveForKind=c,t.getVisitFn=function(e,t,n){const{enter:r,leave:i}=c(e,t);return n?i:r},t.visit=function(e,t,n=o.QueryDocumentKeys){const l=new Map;for(const e of Object.values(a.Kind))l.set(e,c(t,e));let u,p,f,d,h=Array.isArray(e),m=[e],v=-1,y=[];const g=[],b=[];let E=e;do{v++;const e=v===m.length,a=e&&0!==y.length;if(e){if(f=0===b.length?void 0:g[g.length-1],p=d,d=b.pop(),a)if(h){p=p.slice();let e=0;for(const[t,n]of y){const r=t-e;null===n?(p.splice(r,1),e++):p[r]=n}}else{p=Object.defineProperties({},Object.getOwnPropertyDescriptors(p));for(const[e,t]of y)p[e]=t}v=u.index,m=u.keys,y=u.edits,h=u.inArray,u=u.prev}else{if(f=d?h?v:m[v]:void 0,p=d?d[f]:E,null==p)continue;d&&g.push(f)}let c;if(!Array.isArray(p)){var T,w;(0,o.isNode)(p)||(0,i.devAssert)(!1,`Invalid AST Node: ${(0,r.inspect)(p)}.`);const n=e?null===(T=l.get(p.kind))||void 0===T?void 0:T.leave:null===(w=l.get(p.kind))||void 0===w?void 0:w.enter;if(c=null==n?void 0:n.call(t,p,f,d,g,b),c===s)break;if(!1===c){if(!e){g.pop();continue}}else if(void 0!==c&&(y.push([f,c]),!e)){if(!(0,o.isNode)(c)){g.pop();continue}p=c}}var _;void 0===c&&a&&y.push([f,p]),e?g.pop():(u={inArray:h,index:v,keys:m,edits:y,prev:u},h=Array.isArray(p),m=h?p:null!==(_=n[p.kind])&&void 0!==_?_:[],v=-1,y=[],d&&b.push(d),d=p)}while(void 0!==u);return 0!==y.length&&(E=y[y.length-1][1]),E},t.visitInParallel=function(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(a.Kind)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;tc((0,y.valueFromASTUntyped)(e,t)),this.extensions=(0,a.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(o=e.extensionASTNodes)&&void 0!==o?o:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,s.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,r.inspect)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,s.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,s.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=Q;class q{constructor(e){var t;this.name=(0,g.assertName)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=(0,a.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>G(e),this._interfaces=()=>U(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,s.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,r.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:z(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function U(e){var t;const n=F(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,s.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function G(e){const t=V(e.fields);return K(t)||(0,s.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,o.mapValue)(t,((t,n)=>{var i;K(t)||(0,s.devAssert)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,s.devAssert)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,r.inspect)(t.resolve)}.`);const o=null!==(i=t.args)&&void 0!==i?i:{};return K(o)||(0,s.devAssert)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,g.assertName)(n),description:t.description,type:t.type,args:B(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,a.toObjMap)(t.extensions),astNode:t.astNode}}))}function B(e){return Object.entries(e).map((([e,t])=>({name:(0,g.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,a.toObjMap)(t.extensions),astNode:t.astNode})))}function K(e){return(0,p.isObjectLike)(e)&&!Array.isArray(e)}function z(e){return(0,o.mapValue)(e,(e=>({description:e.description,type:e.type,args:$(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function $(e){return(0,c.keyValMap)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}t.GraphQLObjectType=q;class H{constructor(e){var t;this.name=(0,g.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,a.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=G.bind(void 0,e),this._interfaces=U.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,s.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,r.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:z(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=H;class W{constructor(e){var t;this.name=(0,g.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,a.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Y.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,s.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,r.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Y(e){const t=F(e.types);return Array.isArray(t)||(0,s.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}t.GraphQLUnionType=W;class J{constructor(e){var t,n,o;this.name=(0,g.assertName)(e.name),this.description=e.description,this.extensions=(0,a.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=(n=this.name,K(o=e.values)||(0,s.devAssert)(!1,`${n} values must be an object with value names as keys.`),Object.entries(o).map((([e,t])=>(K(t)||(0,s.devAssert)(!1,`${n}.${e} must refer to an object with a "value" key representing an internal value but got: ${(0,r.inspect)(t)}.`),{name:(0,g.assertEnumValueName)(e),description:t.description,value:void 0!==t.value?t.value:e,deprecationReason:t.deprecationReason,extensions:(0,a.toObjMap)(t.extensions),astNode:t.astNode})))),this._valueLookup=new Map(this._values.map((e=>[e.value,e]))),this._nameLookup=(0,i.keyMap)(this._values,(e=>e.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new h.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,r.inspect)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=(0,r.inspect)(e);throw new h.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+X(this,t))}const t=this.getValue(e);if(null==t)throw new h.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+X(this,e));return t.value}parseLiteral(e,t){if(e.kind!==m.Kind.ENUM){const t=(0,v.print)(e);throw new h.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+X(this,t),e)}const n=this.getValue(e.value);if(null==n){const t=(0,v.print)(e);throw new h.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+X(this,t),e)}return n.value}toConfig(){const e=(0,c.keyValMap)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function X(e,t){const n=e.getValues().map((e=>e.name)),r=(0,d.suggestionList)(t,n);return(0,u.didYouMean)("the enum value",r)}t.GraphQLEnumType=J;class Z{constructor(e){var t;this.name=(0,g.assertName)(e.name),this.description=e.description,this.extensions=(0,a.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=ee.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=(0,o.mapValue)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ee(e){const t=V(e.fields);return K(t)||(0,s.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,o.mapValue)(t,((t,n)=>(!("resolve"in t)||(0,s.devAssert)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,g.assertName)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,a.toObjMap)(t.extensions),astNode:t.astNode})))}t.GraphQLInputObjectType=Z},7197:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0,t.assertDirective=function(e){if(!f(e))throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL directive.`);return e},t.isDirective=f,t.isSpecifiedDirective=function(e){return b.some((({name:t})=>t===e.name))},t.specifiedDirectives=void 0;var r=n(8002),i=n(7690),o=n(7242),a=n(5752),s=n(5690),c=n(8333),l=n(3058),u=n(2229),p=n(5003);function f(e){return(0,a.instanceOf)(e,d)}class d{constructor(e){var t,n;this.name=(0,l.assertName)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=(0,i.toObjMap)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,o.devAssert)(!1,`@${e.name} locations must be an Array.`);const r=null!==(n=e.args)&&void 0!==n?n:{};(0,s.isObjectLike)(r)&&!Array.isArray(r)||(0,o.devAssert)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=(0,p.defineArguments)(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,p.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=d;const h=new d({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new p.GraphQLNonNull(u.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=h;const m=new d({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new p.GraphQLNonNull(u.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=m;const v="No longer supported";t.DEFAULT_DEPRECATION_REASON=v;const y=new d({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.DirectiveLocation.FIELD_DEFINITION,c.DirectiveLocation.ARGUMENT_DEFINITION,c.DirectiveLocation.INPUT_FIELD_DEFINITION,c.DirectiveLocation.ENUM_VALUE],args:{reason:{type:u.GraphQLString,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:v}}});t.GraphQLDeprecatedDirective=y;const g=new d({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[c.DirectiveLocation.SCALAR],args:{url:{type:new p.GraphQLNonNull(u.GraphQLString),description:"The URL that specifies the behaviour of this scalar."}}});t.GraphQLSpecifiedByDirective=g;const b=Object.freeze([h,m,y,g]);t.specifiedDirectives=b},3226:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return a.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return i.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return a.GraphQLFloat}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return a.GraphQLID}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return i.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return a.GraphQLInt}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return i.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return i.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return i.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return i.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return i.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return r.GraphQLSchema}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return o.GraphQLSpecifiedByDirective}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return a.GraphQLString}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return i.GraphQLUnionType}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return s.SchemaMetaFieldDef}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return s.TypeKind}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return s.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return s.TypeNameMetaFieldDef}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return s.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return s.__DirectiveLocation}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return s.__EnumValue}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return s.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return s.__InputValue}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return s.__Schema}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return s.__Type}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return s.__TypeKind}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return i.assertAbstractType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return i.assertCompositeType}}),Object.defineProperty(t,"assertDirective",{enumerable:!0,get:function(){return o.assertDirective}}),Object.defineProperty(t,"assertEnumType",{enumerable:!0,get:function(){return i.assertEnumType}}),Object.defineProperty(t,"assertEnumValueName",{enumerable:!0,get:function(){return l.assertEnumValueName}}),Object.defineProperty(t,"assertInputObjectType",{enumerable:!0,get:function(){return i.assertInputObjectType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return i.assertInputType}}),Object.defineProperty(t,"assertInterfaceType",{enumerable:!0,get:function(){return i.assertInterfaceType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return i.assertLeafType}}),Object.defineProperty(t,"assertListType",{enumerable:!0,get:function(){return i.assertListType}}),Object.defineProperty(t,"assertName",{enumerable:!0,get:function(){return l.assertName}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return i.assertNamedType}}),Object.defineProperty(t,"assertNonNullType",{enumerable:!0,get:function(){return i.assertNonNullType}}),Object.defineProperty(t,"assertNullableType",{enumerable:!0,get:function(){return i.assertNullableType}}),Object.defineProperty(t,"assertObjectType",{enumerable:!0,get:function(){return i.assertObjectType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return i.assertOutputType}}),Object.defineProperty(t,"assertScalarType",{enumerable:!0,get:function(){return i.assertScalarType}}),Object.defineProperty(t,"assertSchema",{enumerable:!0,get:function(){return r.assertSchema}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return i.assertType}}),Object.defineProperty(t,"assertUnionType",{enumerable:!0,get:function(){return i.assertUnionType}}),Object.defineProperty(t,"assertValidSchema",{enumerable:!0,get:function(){return c.assertValidSchema}}),Object.defineProperty(t,"assertWrappingType",{enumerable:!0,get:function(){return i.assertWrappingType}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return i.getNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return i.getNullableType}}),Object.defineProperty(t,"introspectionTypes",{enumerable:!0,get:function(){return s.introspectionTypes}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return i.isAbstractType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return i.isCompositeType}}),Object.defineProperty(t,"isDirective",{enumerable:!0,get:function(){return o.isDirective}}),Object.defineProperty(t,"isEnumType",{enumerable:!0,get:function(){return i.isEnumType}}),Object.defineProperty(t,"isInputObjectType",{enumerable:!0,get:function(){return i.isInputObjectType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return i.isInputType}}),Object.defineProperty(t,"isInterfaceType",{enumerable:!0,get:function(){return i.isInterfaceType}}),Object.defineProperty(t,"isIntrospectionType",{enumerable:!0,get:function(){return s.isIntrospectionType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return i.isLeafType}}),Object.defineProperty(t,"isListType",{enumerable:!0,get:function(){return i.isListType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return i.isNamedType}}),Object.defineProperty(t,"isNonNullType",{enumerable:!0,get:function(){return i.isNonNullType}}),Object.defineProperty(t,"isNullableType",{enumerable:!0,get:function(){return i.isNullableType}}),Object.defineProperty(t,"isObjectType",{enumerable:!0,get:function(){return i.isObjectType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return i.isOutputType}}),Object.defineProperty(t,"isRequiredArgument",{enumerable:!0,get:function(){return i.isRequiredArgument}}),Object.defineProperty(t,"isRequiredInputField",{enumerable:!0,get:function(){return i.isRequiredInputField}}),Object.defineProperty(t,"isScalarType",{enumerable:!0,get:function(){return i.isScalarType}}),Object.defineProperty(t,"isSchema",{enumerable:!0,get:function(){return r.isSchema}}),Object.defineProperty(t,"isSpecifiedDirective",{enumerable:!0,get:function(){return o.isSpecifiedDirective}}),Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:!0,get:function(){return a.isSpecifiedScalarType}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return i.isType}}),Object.defineProperty(t,"isUnionType",{enumerable:!0,get:function(){return i.isUnionType}}),Object.defineProperty(t,"isWrappingType",{enumerable:!0,get:function(){return i.isWrappingType}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"specifiedScalarTypes",{enumerable:!0,get:function(){return a.specifiedScalarTypes}}),Object.defineProperty(t,"validateSchema",{enumerable:!0,get:function(){return c.validateSchema}});var r=n(6829),i=n(5003),o=n(7197),a=n(2229),s=n(8155),c=n(1671),l=n(3058)},8155:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0,t.isIntrospectionType=function(e){return w.some((({name:t})=>e.name===t))};var r=n(8002),i=n(7706),o=n(3033),a=n(8333),s=n(8115),c=n(2229),l=n(5003);const u=new l.GraphQLObjectType({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:()=>({description:{type:c.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(d))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new l.GraphQLNonNull(d),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:d,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:d,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(p))),resolve:e=>e.getDirectives()}})});t.__Schema=u;const p=new l.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new l.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new l.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(f))),resolve:e=>e.locations},args:{type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(m))),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})});t.__Directive=p;const f=new l.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:a.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:a.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:a.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:a.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:a.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:a.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:a.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:a.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:a.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:a.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:a.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:a.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:a.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:a.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:a.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:a.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:a.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:a.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:a.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=f;const d=new l.GraphQLObjectType({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:()=>({kind:{type:new l.GraphQLNonNull(g),resolve:e=>(0,l.isScalarType)(e)?y.SCALAR:(0,l.isObjectType)(e)?y.OBJECT:(0,l.isInterfaceType)(e)?y.INTERFACE:(0,l.isUnionType)(e)?y.UNION:(0,l.isEnumType)(e)?y.ENUM:(0,l.isInputObjectType)(e)?y.INPUT_OBJECT:(0,l.isListType)(e)?y.LIST:(0,l.isNonNullType)(e)?y.NON_NULL:void(0,i.invariant)(!1,`Unexpected type: "${(0,r.inspect)(e)}".`)},name:{type:c.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:c.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:c.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new l.GraphQLList(new l.GraphQLNonNull(h)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.isObjectType)(e)||(0,l.isInterfaceType)(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new l.GraphQLList(new l.GraphQLNonNull(d)),resolve(e){if((0,l.isObjectType)(e)||(0,l.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new l.GraphQLList(new l.GraphQLNonNull(d)),resolve(e,t,n,{schema:r}){if((0,l.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new l.GraphQLList(new l.GraphQLNonNull(v)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.isEnumType)(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new l.GraphQLList(new l.GraphQLNonNull(m)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.isInputObjectType)(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:d,resolve:e=>"ofType"in e?e.ofType:void 0}})});t.__Type=d;const h=new l.GraphQLObjectType({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:()=>({name:{type:new l.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},args:{type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(m))),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new l.GraphQLNonNull(d),resolve:e=>e.type},isDeprecated:{type:new l.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=h;const m=new l.GraphQLObjectType({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:()=>({name:{type:new l.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},type:{type:new l.GraphQLNonNull(d),resolve:e=>e.type},defaultValue:{type:c.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=(0,s.astFromValue)(n,t);return r?(0,o.print)(r):null}},isDeprecated:{type:new l.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=m;const v=new l.GraphQLObjectType({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:()=>({name:{type:new l.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new l.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});let y;t.__EnumValue=v,t.TypeKind=y,function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(y||(t.TypeKind=y={}));const g=new l.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:y.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:y.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:y.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:y.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:y.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:y.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:y.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:y.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=g;const b={name:"__schema",type:new l.GraphQLNonNull(u),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.SchemaMetaFieldDef=b;const E={name:"__type",type:d,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new l.GraphQLNonNull(c.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.TypeMetaFieldDef=E;const T={name:"__typename",type:new l.GraphQLNonNull(c.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.TypeNameMetaFieldDef=T;const w=Object.freeze([u,p,f,d,h,m,v,g]);t.introspectionTypes=w},2229:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=void 0,t.isSpecifiedScalarType=function(e){return v.some((({name:t})=>e.name===t))},t.specifiedScalarTypes=void 0;var r=n(8002),i=n(5690),o=n(2828),a=n(3033),s=n(5822),c=n(5003);const l=2147483647,u=-2147483648,p=new c.GraphQLScalarType({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(e){const t=y(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new s.GraphQLError(`Int cannot represent non-integer value: ${(0,r.inspect)(t)}`);if(n>l||nl||el||tt.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function d(e,t){const n=(0,u.getNamedType)(e);if(!t.has(n))if(t.add(n),(0,u.isUnionType)(n))for(const e of n.getTypes())d(e,t);else if((0,u.isObjectType)(n)||(0,u.isInterfaceType)(n)){for(const e of n.getInterfaces())d(e,t);for(const e of Object.values(n.getFields())){d(e.type,t);for(const n of e.args)d(n.type,t)}}else if((0,u.isInputObjectType)(n))for(const e of Object.values(n.getFields()))d(e.type,t);return t}t.GraphQLSchema=f},1671:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidSchema=function(e){const t=p(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))},t.validateSchema=p;var r=n(8002),i=n(5822),o=n(1807),a=n(298),s=n(6829),c=n(8155),l=n(7197),u=n(5003);function p(e){if((0,s.assertSchema)(e),e.__validationErrors)return e.__validationErrors;const t=new f(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!(0,u.isObjectType)(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${(0,r.inspect)(n)}.`,null!==(i=d(t,o.OperationTypeNode.QUERY))&&void 0!==i?i:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const a=t.getMutationType();var s;a&&!(0,u.isObjectType)(a)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,r.inspect)(a)}.`,null!==(s=d(t,o.OperationTypeNode.MUTATION))&&void 0!==s?s:a.astNode);const c=t.getSubscriptionType();var l;c&&!(0,u.isObjectType)(c)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,r.inspect)(c)}.`,null!==(l=d(t,o.OperationTypeNode.SUBSCRIPTION))&&void 0!==l?l:c.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if((0,l.isDirective)(n)){h(e,n);for(const i of n.args){var t;h(e,i),(0,u.isInputType)(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${(0,r.inspect)(i.type)}.`,i.astNode),(0,u.isRequiredArgument)(i)&&null!=i.deprecationReason&&e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[k(i.astNode),null===(t=i.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${(0,r.inspect)(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const a=Object.values(o.getFields());for(const t of a)if((0,u.isNonNullType)(t.type)&&(0,u.isInputObjectType)(t.type.ofType)){const o=t.type.ofType,a=r[o.name];if(n.push(t),void 0===a)i(o);else{const t=n.slice(a),r=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map((e=>e.astNode)))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const i of Object.values(n))(0,u.isNamedType)(i)?((0,c.isIntrospectionType)(i)||h(e,i),(0,u.isObjectType)(i)||(0,u.isInterfaceType)(i)?(m(e,i),v(e,i)):(0,u.isUnionType)(i)?b(e,i):(0,u.isEnumType)(i)?E(e,i):(0,u.isInputObjectType)(i)&&(T(e,i),t(i))):e.reportError(`Expected GraphQL named type but got: ${(0,r.inspect)(i)}.`,i.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}class f{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new i.GraphQLError(e,n))}getErrors(){return this._errors}}function d(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((e=>e.operation===t)))||void 0===n?void 0:n.type}function h(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function m(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of n){var i;h(e,s),(0,u.isOutputType)(s.type)||e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${(0,r.inspect)(s.type)}.`,null===(i=s.astNode)||void 0===i?void 0:i.type);for(const n of s.args){const i=n.name;var o,a;h(e,n),(0,u.isInputType)(n.type)||e.reportError(`The type of ${t.name}.${s.name}(${i}:) must be Input Type but got: ${(0,r.inspect)(n.type)}.`,null===(o=n.astNode)||void 0===o?void 0:o.type),(0,u.isRequiredArgument)(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${s.name}(${i}:) cannot be deprecated.`,[k(n.astNode),null===(a=n.astNode)||void 0===a?void 0:a.type])}}}function v(e,t){const n=Object.create(null);for(const i of t.getInterfaces())(0,u.isInterfaceType)(i)?t!==i?n[i.name]?e.reportError(`Type ${t.name} can only implement ${i.name} once.`,w(t,i)):(n[i.name]=!0,g(e,t,i),y(e,t,i)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,w(t,i)):e.reportError(`Type ${(0,r.inspect)(t)} must only implement Interface types, it cannot implement ${(0,r.inspect)(i)}.`,w(t,i))}function y(e,t,n){const i=t.getFields();for(const p of Object.values(n.getFields())){const f=p.name,d=i[f];if(d){var o,s;(0,a.isTypeSubTypeOf)(e.schema,d.type,p.type)||e.reportError(`Interface field ${n.name}.${f} expects type ${(0,r.inspect)(p.type)} but ${t.name}.${f} is type ${(0,r.inspect)(d.type)}.`,[null===(o=p.astNode)||void 0===o?void 0:o.type,null===(s=d.astNode)||void 0===s?void 0:s.type]);for(const i of p.args){const o=i.name,s=d.args.find((e=>e.name===o));var c,l;s?(0,a.isEqualType)(i.type,s.type)||e.reportError(`Interface field argument ${n.name}.${f}(${o}:) expects type ${(0,r.inspect)(i.type)} but ${t.name}.${f}(${o}:) is type ${(0,r.inspect)(s.type)}.`,[null===(c=i.astNode)||void 0===c?void 0:c.type,null===(l=s.astNode)||void 0===l?void 0:l.type]):e.reportError(`Interface field argument ${n.name}.${f}(${o}:) expected but ${t.name}.${f} does not provide it.`,[i.astNode,d.astNode])}for(const r of d.args){const i=r.name;!p.args.find((e=>e.name===i))&&(0,u.isRequiredArgument)(r)&&e.reportError(`Object field ${t.name}.${f} includes required argument ${i} that is missing from the Interface field ${n.name}.${f}.`,[r.astNode,p.astNode])}}else e.reportError(`Interface field ${n.name}.${f} expected but ${t.name} does not provide it.`,[p.astNode,t.astNode,...t.extensionASTNodes])}}function g(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...w(n,i),...w(t,n)])}function b(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const i=Object.create(null);for(const o of n)i[o.name]?e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,_(t,o.name)):(i[o.name]=!0,(0,u.isObjectType)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,r.inspect)(o)}.`,_(t,String(o))))}function E(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)h(e,t)}function T(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var i,o;h(e,a),(0,u.isInputType)(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,r.inspect)(a.type)}.`,null===(i=a.astNode)||void 0===i?void 0:i.type),(0,u.isRequiredInputField)(a)&&null!=a.deprecationReason&&e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[k(a.astNode),null===(o=a.astNode)||void 0===o?void 0:o.type])}}function w(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((e=>e.name.value===t.name))}function _(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((e=>e.name.value===t))}function k(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find((e=>e.name.value===l.GraphQLDeprecatedDirective.name))}},6226:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeInfo=void 0,t.visitWithTypeInfo=function(e,t){return{enter(...n){const r=n[0];e.enter(r);const a=(0,o.getEnterLeaveForKind)(t,r.kind).enter;if(a){const o=a.apply(t,n);return void 0!==o&&(e.leave(r),(0,i.isNode)(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=(0,o.getEnterLeaveForKind)(t,r.kind).leave;let a;return i&&(a=i.apply(t,n)),e.leave(r),a}}};var r=n(2828),i=n(1807),o=n(285),a=n(5003),s=n(8155),c=n(5115);class l{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:u,t&&((0,a.isInputType)(t)&&this._inputTypeStack.push(t),(0,a.isCompositeType)(t)&&this._parentTypeStack.push(t),(0,a.isOutputType)(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case r.Kind.SELECTION_SET:{const e=(0,a.getNamedType)(this.getType());this._parentTypeStack.push((0,a.isCompositeType)(e)?e:void 0);break}case r.Kind.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push((0,a.isOutputType)(i)?i:void 0);break}case r.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case r.Kind.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push((0,a.isObjectType)(n)?n:void 0);break}case r.Kind.INLINE_FRAGMENT:case r.Kind.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?(0,c.typeFromAST)(t,n):(0,a.getNamedType)(this.getType());this._typeStack.push((0,a.isOutputType)(r)?r:void 0);break}case r.Kind.VARIABLE_DEFINITION:{const n=(0,c.typeFromAST)(t,e.type);this._inputTypeStack.push((0,a.isInputType)(n)?n:void 0);break}case r.Kind.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find((t=>t.name===e.name.value)),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push((0,a.isInputType)(r)?r:void 0);break}case r.Kind.LIST:{const e=(0,a.getNullableType)(this.getInputType()),t=(0,a.isListType)(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,a.isInputType)(t)?t:void 0);break}case r.Kind.OBJECT_FIELD:{const t=(0,a.getNamedType)(this.getInputType());let n,r;(0,a.isInputObjectType)(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push((0,a.isInputType)(n)?n:void 0);break}case r.Kind.ENUM:{const t=(0,a.getNamedType)(this.getInputType());let n;(0,a.isEnumType)(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case r.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case r.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case r.Kind.DIRECTIVE:this._directive=null;break;case r.Kind.OPERATION_DEFINITION:case r.Kind.INLINE_FRAGMENT:case r.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case r.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case r.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case r.Kind.LIST:case r.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case r.Kind.ENUM:this._enumValue=null}}}function u(e,t,n){const r=n.name.value;return r===s.SchemaMetaFieldDef.name&&e.getQueryType()===t?s.SchemaMetaFieldDef:r===s.TypeMetaFieldDef.name&&e.getQueryType()===t?s.TypeMetaFieldDef:r===s.TypeNameMetaFieldDef.name&&(0,a.isCompositeType)(t)?s.TypeNameMetaFieldDef:(0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)?t.getFields()[r]:void 0}t.TypeInfo=l},6526:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidName=function(e){const t=a(e);if(t)throw t;return e},t.isValidNameError=a;var r=n(7242),i=n(5822),o=n(3058);function a(e){if("string"==typeof e||(0,r.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new i.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,o.assertName)(e)}catch(e){return e}}},8115:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.astFromValue=function e(t,n){if((0,l.isNonNullType)(n)){const r=e(t,n.ofType);return(null==r?void 0:r.kind)===s.Kind.NULL?null:r}if(null===t)return{kind:s.Kind.NULL};if(void 0===t)return null;if((0,l.isListType)(n)){const r=n.ofType;if((0,a.isIterableObject)(t)){const n=[];for(const i of t){const t=e(i,r);null!=t&&n.push(t)}return{kind:s.Kind.LIST,values:n}}return e(t,r)}if((0,l.isInputObjectType)(n)){if(!(0,o.isObjectLike)(t))return null;const r=[];for(const i of Object.values(n.getFields())){const n=e(t[i.name],i.type);n&&r.push({kind:s.Kind.OBJECT_FIELD,name:{kind:s.Kind.NAME,value:i.name},value:n})}return{kind:s.Kind.OBJECT,fields:r}}if((0,l.isLeafType)(n)){const e=n.serialize(t);if(null==e)return null;if("boolean"==typeof e)return{kind:s.Kind.BOOLEAN,value:e};if("number"==typeof e&&Number.isFinite(e)){const t=String(e);return u.test(t)?{kind:s.Kind.INT,value:t}:{kind:s.Kind.FLOAT,value:t}}if("string"==typeof e)return(0,l.isEnumType)(n)?{kind:s.Kind.ENUM,value:e}:n===c.GraphQLID&&u.test(e)?{kind:s.Kind.INT,value:e}:{kind:s.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${(0,r.inspect)(e)}.`)}(0,i.invariant)(!1,"Unexpected input type: "+(0,r.inspect)(n))};var r=n(8002),i=n(7706),o=n(5690),a=n(6609),s=n(2828),c=n(2229),l=n(5003);const u=/^-?(?:0|[1-9][0-9]*)$/},2906:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildASTSchema=u,t.buildSchema=function(e,t){return u((0,o.parse)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})};var r=n(7242),i=n(2828),o=n(8370),a=n(9504),s=n(6829),c=n(7197),l=n(3242);function u(e,t){null!=e&&e.kind===i.Kind.DOCUMENT||(0,r.devAssert)(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&(0,a.assertValidSDL)(e);const n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},o=(0,l.extendSchemaImpl)(n,e,t);if(null==o.astNode)for(const e of o.types)switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e}const u=[...o.directives,...c.specifiedDirectives.filter((e=>o.directives.every((t=>t.name!==e.name))))];return new s.GraphQLSchema({...o,directives:u})}},8686:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildClientSchema=function(e,t){(0,a.isObjectLike)(e)&&(0,a.isObjectLike)(e.__schema)||(0,i.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,r.inspect)(e)}.`);const n=e.__schema,h=(0,o.keyValMap)(n.types,(e=>e.name),(e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case p.TypeKind.SCALAR:return i=e,new f.GraphQLScalarType({name:i.name,description:i.description,specifiedByURL:i.specifiedByURL});case p.TypeKind.OBJECT:return n=e,new f.GraphQLObjectType({name:n.name,description:n.description,interfaces:()=>_(n),fields:()=>k(n)});case p.TypeKind.INTERFACE:return t=e,new f.GraphQLInterfaceType({name:t.name,description:t.description,interfaces:()=>_(t),fields:()=>k(t)});case p.TypeKind.UNION:return function(e){if(!e.possibleTypes){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new f.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(T)})}(e);case p.TypeKind.ENUM:return function(e){if(!e.enumValues){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new f.GraphQLEnumType({name:e.name,description:e.description,values:(0,o.keyValMap)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}(e);case p.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new f.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>O(e.inputFields)})}(e)}var t,n,i;const a=(0,r.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${a}.`)}(e)));for(const e of[...u.specifiedScalarTypes,...p.introspectionTypes])h[e.name]&&(h[e.name]=e);const m=n.queryType?T(n.queryType):null,v=n.mutationType?T(n.mutationType):null,y=n.subscriptionType?T(n.subscriptionType):null,g=n.directives?n.directives.map((function(e){if(!e.args){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new l.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:O(e.args)})})):[];return new c.GraphQLSchema({description:n.description,query:m,mutation:v,subscription:y,types:Object.values(h),directives:g,assumeValid:null==t?void 0:t.assumeValid});function b(e){if(e.kind===p.TypeKind.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new f.GraphQLList(b(t))}if(e.kind===p.TypeKind.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=b(t);return new f.GraphQLNonNull((0,f.assertNullableType)(n))}return E(e)}function E(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${(0,r.inspect)(e)}.`);const n=h[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function T(e){return(0,f.assertObjectType)(E(e))}function w(e){return(0,f.assertInterfaceType)(E(e))}function _(e){if(null===e.interfaces&&e.kind===p.TypeKind.INTERFACE)return[];if(!e.interfaces){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(w)}function k(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${(0,r.inspect)(e)}.`);return(0,o.keyValMap)(e.fields,(e=>e.name),S)}function S(e){const t=b(e.type);if(!(0,f.isOutputType)(t)){const e=(0,r.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:O(e.args)}}function O(e){return(0,o.keyValMap)(e,(e=>e.name),C)}function C(e){const t=b(e.type);if(!(0,f.isInputType)(t)){const e=(0,r.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?(0,d.valueFromAST)((0,s.parseValue)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}};var r=n(8002),i=n(7242),o=n(7154),a=n(5690),s=n(8370),c=n(6829),l=n(7197),u=n(2229),p=n(8155),f=n(5003),d=n(3770)},3679:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coerceInputValue=function(e,t,n=d){return h(e,t,n,void 0)};var r=n(8002),i=n(7706),o=n(166),a=n(5690),s=n(8070),c=n(737),l=n(7059),u=n(6609),p=n(5822),f=n(5003);function d(e,t,n){let i="Invalid value "+(0,r.inspect)(t);throw e.length>0&&(i+=` at "value${(0,c.printPathArray)(e)}"`),n.message=i+": "+n.message,n}function h(e,t,n,c){if((0,f.isNonNullType)(t))return null!=e?h(e,t.ofType,n,c):void n((0,l.pathToArray)(c),e,new p.GraphQLError(`Expected non-nullable type "${(0,r.inspect)(t)}" not to be null.`));if(null==e)return null;if((0,f.isListType)(t)){const r=t.ofType;return(0,u.isIterableObject)(e)?Array.from(e,((e,t)=>{const i=(0,l.addPath)(c,t,void 0);return h(e,r,n,i)})):[h(e,r,n,c)]}if((0,f.isInputObjectType)(t)){if(!(0,a.isObjectLike)(e))return void n((0,l.pathToArray)(c),e,new p.GraphQLError(`Expected type "${t.name}" to be an object.`));const i={},u=t.getFields();for(const o of Object.values(u)){const a=e[o.name];if(void 0!==a)i[o.name]=h(a,o.type,n,(0,l.addPath)(c,o.name,t.name));else if(void 0!==o.defaultValue)i[o.name]=o.defaultValue;else if((0,f.isNonNullType)(o.type)){const t=(0,r.inspect)(o.type);n((0,l.pathToArray)(c),e,new p.GraphQLError(`Field "${o.name}" of required type "${t}" was not provided.`))}}for(const r of Object.keys(e))if(!u[r]){const i=(0,s.suggestionList)(r,Object.keys(t.getFields()));n((0,l.pathToArray)(c),e,new p.GraphQLError(`Field "${r}" is not defined by type "${t.name}".`+(0,o.didYouMean)(i)))}return i}if((0,f.isLeafType)(t)){let r;try{r=t.parseValue(e)}catch(r){return void(r instanceof p.GraphQLError?n((0,l.pathToArray)(c),e,r):n((0,l.pathToArray)(c),e,new p.GraphQLError(`Expected type "${t.name}". `+r.message,void 0,void 0,void 0,void 0,r)))}return void 0===r&&n((0,l.pathToArray)(c),e,new p.GraphQLError(`Expected type "${t.name}".`)),r}(0,i.invariant)(!1,"Unexpected input type: "+(0,r.inspect)(t))}},6078:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAST=function(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:r.Kind.DOCUMENT,definitions:t}};var r=n(2828)},3242:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSchema=function(e,t,n){(0,f.assertSchema)(e),null!=t&&t.kind===c.Kind.DOCUMENT||(0,s.devAssert)(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&(0,u.assertValidSDLExtension)(t,e);const r=e.toConfig(),i=g(r,t,n);return r===i?e:new f.GraphQLSchema(i)},t.extendSchemaImpl=g;var r=n(2863),i=n(8002),o=n(6124),a=n(7706),s=n(7242),c=n(2828),l=n(1352),u=n(9504),p=n(8840),f=n(6829),d=n(2229),h=n(8155),m=n(7197),v=n(5003),y=n(3770);function g(e,t,n){var r,s,u,p;const f=[],g=Object.create(null),w=[];let _;const k=[];for(const e of t.definitions)if(e.kind===c.Kind.SCHEMA_DEFINITION)_=e;else if(e.kind===c.Kind.SCHEMA_EXTENSION)k.push(e);else if((0,l.isTypeDefinitionNode)(e))f.push(e);else if((0,l.isTypeExtensionNode)(e)){const t=e.name.value,n=g[t];g[t]=n?n.concat([e]):[e]}else e.kind===c.Kind.DIRECTIVE_DEFINITION&&w.push(e);if(0===Object.keys(g).length&&0===f.length&&0===w.length&&0===k.length&&null==_)return e;const S=Object.create(null);for(const t of e.types)S[t.name]=(O=t,(0,h.isIntrospectionType)(O)||(0,d.isSpecifiedScalarType)(O)?O:(0,v.isScalarType)(O)?function(e){var t;const n=e.toConfig(),r=null!==(t=g[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=null!==(o=T(e))&&void 0!==o?o:i}return new v.GraphQLScalarType({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(O):(0,v.isObjectType)(O)?function(e){var t;const n=e.toConfig(),r=null!==(t=g[n.name])&&void 0!==t?t:[];return new v.GraphQLObjectType({...n,interfaces:()=>[...e.getInterfaces().map(A),...Q(r)],fields:()=>({...(0,o.mapValue)(n.fields,D),...M(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(O):(0,v.isInterfaceType)(O)?function(e){var t;const n=e.toConfig(),r=null!==(t=g[n.name])&&void 0!==t?t:[];return new v.GraphQLInterfaceType({...n,interfaces:()=>[...e.getInterfaces().map(A),...Q(r)],fields:()=>({...(0,o.mapValue)(n.fields,D),...M(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(O):(0,v.isUnionType)(O)?function(e){var t;const n=e.toConfig(),r=null!==(t=g[n.name])&&void 0!==t?t:[];return new v.GraphQLUnionType({...n,types:()=>[...e.getTypes().map(A),...q(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(O):(0,v.isEnumType)(O)?function(e){var t;const n=e.toConfig(),r=null!==(t=g[e.name])&&void 0!==t?t:[];return new v.GraphQLEnumType({...n,values:{...n.values,...V(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(O):(0,v.isInputObjectType)(O)?function(e){var t;const n=e.toConfig(),r=null!==(t=g[n.name])&&void 0!==t?t:[];return new v.GraphQLInputObjectType({...n,fields:()=>({...(0,o.mapValue)(n.fields,(e=>({...e,type:N(e.type)}))),...F(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(O):void(0,a.invariant)(!1,"Unexpected type: "+(0,i.inspect)(O)));var O;for(const e of f){var C;const t=e.name.value;S[t]=null!==(C=b[t])&&void 0!==C?C:U(e)}const x={query:e.query&&A(e.query),mutation:e.mutation&&A(e.mutation),subscription:e.subscription&&A(e.subscription),..._&&I([_]),...I(k)};return{description:null===(r=_)||void 0===r||null===(s=r.description)||void 0===s?void 0:s.value,...x,types:Object.values(S),directives:[...e.directives.map((function(e){const t=e.toConfig();return new m.GraphQLDirective({...t,args:(0,o.mapValue)(t.args,L)})})),...w.map((function(e){var t;return new m.GraphQLDirective({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:j(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(u=_)&&void 0!==u?u:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(k),assumeValid:null!==(p=null==n?void 0:n.assumeValid)&&void 0!==p&&p};function N(e){return(0,v.isListType)(e)?new v.GraphQLList(N(e.ofType)):(0,v.isNonNullType)(e)?new v.GraphQLNonNull(N(e.ofType)):A(e)}function A(e){return S[e.name]}function D(e){return{...e,type:N(e.type),args:e.args&&(0,o.mapValue)(e.args,L)}}function L(e){return{...e,type:N(e.type)}}function I(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=P(n.type)}return t}function P(e){var t;const n=e.name.value,r=null!==(t=b[n])&&void 0!==t?t:S[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function R(e){return e.kind===c.Kind.LIST_TYPE?new v.GraphQLList(R(e.type)):e.kind===c.Kind.NON_NULL_TYPE?new v.GraphQLNonNull(R(e.type)):P(e)}function M(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:R(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:j(n.arguments),deprecationReason:E(n),astNode:n}}}return t}function j(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=R(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:(0,y.valueFromAST)(e.defaultValue,t),deprecationReason:E(e),astNode:e}}return n}function F(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=R(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:(0,y.valueFromAST)(n.defaultValue,e),deprecationReason:E(n),astNode:n}}}return t}function V(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:E(n),astNode:n}}}return t}function Q(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(P))&&void 0!==t?t:[]}))}function q(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(P))&&void 0!==t?t:[]}))}function U(e){var t;const n=e.name.value,r=null!==(t=g[n])&&void 0!==t?t:[];switch(e.kind){case c.Kind.OBJECT_TYPE_DEFINITION:{var o;const t=[e,...r];return new v.GraphQLObjectType({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>Q(t),fields:()=>M(t),astNode:e,extensionASTNodes:r})}case c.Kind.INTERFACE_TYPE_DEFINITION:{var s;const t=[e,...r];return new v.GraphQLInterfaceType({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,interfaces:()=>Q(t),fields:()=>M(t),astNode:e,extensionASTNodes:r})}case c.Kind.ENUM_TYPE_DEFINITION:{var l;const t=[e,...r];return new v.GraphQLEnumType({name:n,description:null===(l=e.description)||void 0===l?void 0:l.value,values:V(t),astNode:e,extensionASTNodes:r})}case c.Kind.UNION_TYPE_DEFINITION:{var u;const t=[e,...r];return new v.GraphQLUnionType({name:n,description:null===(u=e.description)||void 0===u?void 0:u.value,types:()=>q(t),astNode:e,extensionASTNodes:r})}case c.Kind.SCALAR_TYPE_DEFINITION:var p;return new v.GraphQLScalarType({name:n,description:null===(p=e.description)||void 0===p?void 0:p.value,specifiedByURL:T(e),astNode:e,extensionASTNodes:r});case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var f;const t=[e,...r];return new v.GraphQLInputObjectType({name:n,description:null===(f=e.description)||void 0===f?void 0:f.value,fields:()=>F(t),astNode:e,extensionASTNodes:r})}}(0,a.invariant)(!1,"Unexpected type definition node: "+(0,i.inspect)(e))}}const b=(0,r.keyMap)([...d.specifiedScalarTypes,...h.introspectionTypes],(e=>e.name));function E(e){const t=(0,p.getDirectiveValues)(m.GraphQLDeprecatedDirective,e);return null==t?void 0:t.reason}function T(e){const t=(0,p.getDirectiveValues)(m.GraphQLSpecifiedByDirective,e);return null==t?void 0:t.url}},3298:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DangerousChangeType=t.BreakingChangeType=void 0,t.findBreakingChanges=function(e,t){return h(e,t).filter((e=>e.type in f))},t.findDangerousChanges=function(e,t){return h(e,t).filter((e=>e.type in d))};var r=n(2863),i=n(8002),o=n(7706),a=n(5250),s=n(3033),c=n(285),l=n(2229),u=n(5003),p=n(8115);let f,d;function h(e,t){return[...v(e,t),...m(e,t)]}function m(e,t){const n=[],r=C(e.getDirectives(),t.getDirectives());for(const e of r.removed)n.push({type:f.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,t]of r.persisted){const r=C(e.args,t.args);for(const t of r.added)(0,u.isRequiredArgument)(t)&&n.push({type:f.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of r.removed)n.push({type:f.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:f.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const r of e.locations)t.locations.includes(r)||n.push({type:f.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}function v(e,t){const n=[],r=C(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of r.removed)n.push({type:f.TYPE_REMOVED,description:(0,l.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,t]of r.persisted)(0,u.isEnumType)(e)&&(0,u.isEnumType)(t)?n.push(...b(e,t)):(0,u.isUnionType)(e)&&(0,u.isUnionType)(t)?n.push(...g(e,t)):(0,u.isInputObjectType)(e)&&(0,u.isInputObjectType)(t)?n.push(...y(e,t)):(0,u.isObjectType)(e)&&(0,u.isObjectType)(t)||(0,u.isInterfaceType)(e)&&(0,u.isInterfaceType)(t)?n.push(...T(e,t),...E(e,t)):e.constructor!==t.constructor&&n.push({type:f.TYPE_CHANGED_KIND,description:`${e.name} changed from ${S(e)} to ${S(t)}.`});return n}function y(e,t){const n=[],r=C(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.added)(0,u.isRequiredInputField)(t)?n.push({type:f.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:d.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of r.removed)n.push({type:f.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted)k(t.type,i.type)||n.push({type:f.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function g(e,t){const n=[],r=C(e.getTypes(),t.getTypes());for(const t of r.added)n.push({type:d.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of r.removed)n.push({type:f.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function b(e,t){const n=[],r=C(e.getValues(),t.getValues());for(const t of r.added)n.push({type:d.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of r.removed)n.push({type:f.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function E(e,t){const n=[],r=C(e.getInterfaces(),t.getInterfaces());for(const t of r.added)n.push({type:d.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of r.removed)n.push({type:f.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function T(e,t){const n=[],r=C(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.removed)n.push({type:f.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted)n.push(...w(e,t,i)),_(t.type,i.type)||n.push({type:f.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function w(e,t,n){const r=[],i=C(t.args,n.args);for(const n of i.removed)r.push({type:f.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,o]of i.persisted)if(k(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const i=O(n.defaultValue,n.type),a=O(o.defaultValue,o.type);i!==a&&r.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${a}.`})}}else r.push({type:f.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`});for(const n of i.added)(0,u.isRequiredArgument)(n)?r.push({type:f.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:d.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}function _(e,t){return(0,u.isListType)(e)?(0,u.isListType)(t)&&_(e.ofType,t.ofType)||(0,u.isNonNullType)(t)&&_(e,t.ofType):(0,u.isNonNullType)(e)?(0,u.isNonNullType)(t)&&_(e.ofType,t.ofType):(0,u.isNamedType)(t)&&e.name===t.name||(0,u.isNonNullType)(t)&&_(e,t.ofType)}function k(e,t){return(0,u.isListType)(e)?(0,u.isListType)(t)&&k(e.ofType,t.ofType):(0,u.isNonNullType)(e)?(0,u.isNonNullType)(t)&&k(e.ofType,t.ofType)||!(0,u.isNonNullType)(t)&&k(e.ofType,t):(0,u.isNamedType)(t)&&e.name===t.name}function S(e){return(0,u.isScalarType)(e)?"a Scalar type":(0,u.isObjectType)(e)?"an Object type":(0,u.isInterfaceType)(e)?"an Interface type":(0,u.isUnionType)(e)?"a Union type":(0,u.isEnumType)(e)?"an Enum type":(0,u.isInputObjectType)(e)?"an Input type":void(0,o.invariant)(!1,"Unexpected type: "+(0,i.inspect)(e))}function O(e,t){const n=(0,p.astFromValue)(e,t);null!=n||(0,o.invariant)(!1);const r=(0,c.visit)(n,{ObjectValue(e){const t=[...e.fields];return t.sort(((e,t)=>(0,a.naturalCompare)(e.name.value,t.name.value))),{...e,fields:t}}});return(0,s.print)(r)}function C(e,t){const n=[],i=[],o=[],a=(0,r.keyMap)(e,(({name:e})=>e)),s=(0,r.keyMap)(t,(({name:e})=>e));for(const t of e){const e=s[t.name];void 0===e?i.push(t):o.push([t,e])}for(const e of t)void 0===a[e.name]&&n.push(e);return{added:n,persisted:o,removed:i}}t.BreakingChangeType=f,function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(f||(t.BreakingChangeType=f={})),t.DangerousChangeType=d,function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(d||(t.DangerousChangeType=d={}))},9363:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIntrospectionQuery=function(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"";function o(e){return t.inputValueDeprecation?e:""}return`\n query IntrospectionQuery {\n __schema {\n ${t.schemaDescription?n:""}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${i}\n locations\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${o("isDeprecated")}\n ${o("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n `}},9535:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationAST=function(e,t){let n=null;for(const o of e.definitions){var i;if(o.kind===r.Kind.OPERATION_DEFINITION)if(null==t){if(n)return null;n=o}else if((null===(i=o.name)||void 0===i?void 0:i.value)===t)return o}return n};var r=n(2828)},8678:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationRootType=function(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new r.GraphQLError("Schema does not define the required query root type.",t);return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new r.GraphQLError("Schema is not configured for mutations.",t);return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new r.GraphQLError("Schema is not configured for subscriptions.",t);return n}throw new r.GraphQLError("Can only have query, mutation and subscription operations.",t)};var r=n(5822)},9548:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return _.BreakingChangeType}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return _.DangerousChangeType}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return v.TypeInfo}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return w.assertValidName}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return m.astFromValue}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return c.buildASTSchema}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return s.buildClientSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return c.buildSchema}}),Object.defineProperty(t,"coerceInputValue",{enumerable:!0,get:function(){return y.coerceInputValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return g.concatAST}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return T.doTypesOverlap}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return l.extendSchema}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return _.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return _.findDangerousChanges}}),Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return r.getIntrospectionQuery}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return i.getOperationAST}}),Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return o.getOperationRootType}}),Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return a.introspectionFromSchema}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return T.isEqualType}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return T.isTypeSubTypeOf}}),Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return w.isValidNameError}}),Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return u.lexicographicSortSchema}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return p.printIntrospectionSchema}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return p.printSchema}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return p.printType}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return b.separateOperations}}),Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:!0,get:function(){return E.stripIgnoredCharacters}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return f.typeFromAST}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return d.valueFromAST}}),Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return h.valueFromASTUntyped}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return v.visitWithTypeInfo}});var r=n(9363),i=n(9535),o=n(8678),a=n(8039),s=n(8686),c=n(2906),l=n(3242),u=n(8163),p=n(2821),f=n(5115),d=n(3770),h=n(7784),m=n(8115),v=n(6226),y=n(3679),g=n(6078),b=n(8243),E=n(2307),T=n(298),w=n(6526),_=n(3298)},8039:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.introspectionFromSchema=function(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t},s=(0,i.parse)((0,a.getIntrospectionQuery)(n)),c=(0,o.executeSync)({schema:e,document:s});return!c.errors&&c.data||(0,r.invariant)(!1),c.data};var r=n(7706),i=n(8370),o=n(192),a=n(9363)},8163:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lexicographicSortSchema=function(e){const t=e.toConfig(),n=(0,o.keyValMap)(f(t.types),(e=>e.name),(function(e){if((0,u.isScalarType)(e)||(0,l.isIntrospectionType)(e))return e;if((0,u.isObjectType)(e)){const t=e.toConfig();return new u.GraphQLObjectType({...t,interfaces:()=>g(t.interfaces),fields:()=>y(t.fields)})}if((0,u.isInterfaceType)(e)){const t=e.toConfig();return new u.GraphQLInterfaceType({...t,interfaces:()=>g(t.interfaces),fields:()=>y(t.fields)})}if((0,u.isUnionType)(e)){const t=e.toConfig();return new u.GraphQLUnionType({...t,types:()=>g(t.types)})}if((0,u.isEnumType)(e)){const t=e.toConfig();return new u.GraphQLEnumType({...t,values:p(t.values,(e=>e))})}if((0,u.isInputObjectType)(e)){const t=e.toConfig();return new u.GraphQLInputObjectType({...t,fields:()=>p(t.fields,(e=>({...e,type:a(e.type)})))})}(0,i.invariant)(!1,"Unexpected type: "+(0,r.inspect)(e))}));return new s.GraphQLSchema({...t,types:Object.values(n),directives:f(t.directives).map((function(e){const t=e.toConfig();return new c.GraphQLDirective({...t,locations:d(t.locations,(e=>e)),args:v(t.args)})})),query:m(t.query),mutation:m(t.mutation),subscription:m(t.subscription)});function a(e){return(0,u.isListType)(e)?new u.GraphQLList(a(e.ofType)):(0,u.isNonNullType)(e)?new u.GraphQLNonNull(a(e.ofType)):h(e)}function h(e){return n[e.name]}function m(e){return e&&h(e)}function v(e){return p(e,(e=>({...e,type:a(e.type)})))}function y(e){return p(e,(e=>({...e,type:a(e.type),args:e.args&&v(e.args)})))}function g(e){return f(e).map(h)}};var r=n(8002),i=n(7706),o=n(7154),a=n(5250),s=n(6829),c=n(7197),l=n(8155),u=n(5003);function p(e,t){const n=Object.create(null),r=d(Object.entries(e),(([e])=>e));for(const[e,i]of r)n[e]=t(i);return n}function f(e){return d(e,(e=>e.name))}function d(e,t){return e.slice().sort(((e,n)=>{const r=t(e),i=t(n);return(0,a.naturalCompare)(r,i)}))}},2821:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printIntrospectionSchema=function(e){return h(e,u.isSpecifiedDirective,c.isIntrospectionType)},t.printSchema=function(e){return h(e,(e=>!(0,u.isSpecifiedDirective)(e)),d)},t.printType=v;var r=n(8002),i=n(7706),o=n(2828),a=n(3033),s=n(849),c=n(8155),l=n(2229),u=n(7197),p=n(5003),f=n(8115);function d(e){return!(0,l.isSpecifiedScalarType)(e)&&!(0,c.isIntrospectionType)(e)}function h(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[m(e),...r.map((e=>function(e){return _(e)+"directive @"+e.name+E(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...i.map((e=>v(e)))].filter(Boolean).join("\n\n")}function m(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),_(e)+`schema {\n${t.join("\n")}\n}`}function v(e){return(0,p.isScalarType)(e)?function(e){return _(e)+`scalar ${e.name}`+(null==(t=e).specifiedByURL?"":` @specifiedBy(url: ${(0,a.print)({kind:o.Kind.STRING,value:t.specifiedByURL})})`);var t}(e):(0,p.isObjectType)(e)?function(e){return _(e)+`type ${e.name}`+y(e)+g(e)}(e):(0,p.isInterfaceType)(e)?function(e){return _(e)+`interface ${e.name}`+y(e)+g(e)}(e):(0,p.isUnionType)(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return _(e)+"union "+e.name+n}(e):(0,p.isEnumType)(e)?function(e){const t=e.getValues().map(((e,t)=>_(e," ",!t)+" "+e.name+w(e.deprecationReason)));return _(e)+`enum ${e.name}`+b(t)}(e):(0,p.isInputObjectType)(e)?function(e){const t=Object.values(e.getFields()).map(((e,t)=>_(e," ",!t)+" "+T(e)));return _(e)+`input ${e.name}`+b(t)}(e):void(0,i.invariant)(!1,"Unexpected type: "+(0,r.inspect)(e))}function y(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function g(e){return b(Object.values(e.getFields()).map(((e,t)=>_(e," ",!t)+" "+e.name+E(e.args," ")+": "+String(e.type)+w(e.deprecationReason))))}function b(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function E(e,t=""){return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(T).join(", ")+")":"(\n"+e.map(((e,n)=>_(e," "+t,!n)+" "+t+T(e))).join("\n")+"\n"+t+")"}function T(e){const t=(0,f.astFromValue)(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,a.print)(t)}`),n+w(e.deprecationReason)}function w(e){return null==e?"":e!==u.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,a.print)({kind:o.Kind.STRING,value:e})})`:" @deprecated"}function _(e,t="",n=!0){const{description:r}=e;if(null==r)return"";const i=r.length>70;return(t&&!n?"\n"+t:t)+(0,s.printBlockString)(r,i).replace(/\n/g,"\n"+t)+"\n"}},8243:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.separateOperations=function(e){const t=[],n=Object.create(null);for(const i of e.definitions)switch(i.kind){case r.Kind.OPERATION_DEFINITION:t.push(i);break;case r.Kind.FRAGMENT_DEFINITION:n[i.name.value]=a(i.selectionSet)}const i=Object.create(null);for(const s of t){const t=new Set;for(const e of a(s.selectionSet))o(t,n,e);i[s.name?s.name.value:""]={kind:r.Kind.DOCUMENT,definitions:e.definitions.filter((e=>e===s||e.kind===r.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return i};var r=n(2828),i=n(285);function o(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)o(e,t,n)}}function a(e){const t=[];return(0,i.visit)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}},2307:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stripIgnoredCharacters=function(e){const t=(0,r.isSource)(e)?e:new r.Source(e),n=t.body,a=new o.Lexer(t);let c="",l=!1;for(;a.advance().kind!==i.TokenKind.EOF;){const e=a.token,t=e.kind,r=!(0,o.isPunctuatorTokenKind)(e.kind);l&&(r||e.kind===i.TokenKind.SPREAD)&&(c+=" ");const u=n.slice(e.start,e.end);t===i.TokenKind.BLOCK_STRING?c+=s(u):c+=u,l=r}return c};var r=n(2412),i=n(3175),o=n(4274),a=n(849);function s(e){const t=e.slice(3,-3);let n=(0,a.dedentBlockStringValue)(t);return(0,a.getBlockStringIndentation)(n)>0&&(n="\n"+n),(n.endsWith('"')&&!n.endsWith('\\"""')||n.endsWith("\\"))&&(n+="\n"),'"""'+n+'"""'}},298:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doTypesOverlap=function(e,t,n){return t===n||((0,r.isAbstractType)(t)?(0,r.isAbstractType)(n)?e.getPossibleTypes(t).some((t=>e.isSubType(n,t))):e.isSubType(t,n):!!(0,r.isAbstractType)(n)&&e.isSubType(n,t))},t.isEqualType=function e(t,n){return t===n||((0,r.isNonNullType)(t)&&(0,r.isNonNullType)(n)||!(!(0,r.isListType)(t)||!(0,r.isListType)(n)))&&e(t.ofType,n.ofType)},t.isTypeSubTypeOf=function e(t,n,i){return n===i||((0,r.isNonNullType)(i)?!!(0,r.isNonNullType)(n)&&e(t,n.ofType,i.ofType):(0,r.isNonNullType)(n)?e(t,n.ofType,i):(0,r.isListType)(i)?!!(0,r.isListType)(n)&&e(t,n.ofType,i.ofType):!(0,r.isListType)(n)&&((0,r.isAbstractType)(i)&&((0,r.isInterfaceType)(n)||(0,r.isObjectType)(n))&&t.isSubType(i,n)))};var r=n(5003)},5115:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeFromAST=function e(t,n){let s;return n.kind===o.Kind.LIST_TYPE?(s=e(t,n.type),s&&new a.GraphQLList(s)):n.kind===o.Kind.NON_NULL_TYPE?(s=e(t,n.type),s&&new a.GraphQLNonNull(s)):n.kind===o.Kind.NAMED_TYPE?t.getType(n.name.value):void(0,i.invariant)(!1,"Unexpected type node: "+(0,r.inspect)(n))};var r=n(8002),i=n(7706),o=n(2828),a=n(5003)},3770:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromAST=function e(t,n,l){if(t){if(t.kind===a.Kind.VARIABLE){const e=t.name.value;if(null==l||void 0===l[e])return;const r=l[e];if(null===r&&(0,s.isNonNullType)(n))return;return r}if((0,s.isNonNullType)(n)){if(t.kind===a.Kind.NULL)return;return e(t,n.ofType,l)}if(t.kind===a.Kind.NULL)return null;if((0,s.isListType)(n)){const r=n.ofType;if(t.kind===a.Kind.LIST){const n=[];for(const i of t.values)if(c(i,l)){if((0,s.isNonNullType)(r))return;n.push(null)}else{const t=e(i,r,l);if(void 0===t)return;n.push(t)}return n}const i=e(t,r,l);if(void 0===i)return;return[i]}if((0,s.isInputObjectType)(n)){if(t.kind!==a.Kind.OBJECT)return;const i=Object.create(null),o=(0,r.keyMap)(t.fields,(e=>e.name.value));for(const t of Object.values(n.getFields())){const n=o[t.name];if(!n||c(n.value,l)){if(void 0!==t.defaultValue)i[t.name]=t.defaultValue;else if((0,s.isNonNullType)(t.type))return;continue}const r=e(n.value,t.type,l);if(void 0===r)return;i[t.name]=r}return i}if((0,s.isLeafType)(n)){let e;try{e=n.parseLiteral(t,l)}catch(e){return}if(void 0===e)return;return e}(0,o.invariant)(!1,"Unexpected input type: "+(0,i.inspect)(n))}};var r=n(2863),i=n(8002),o=n(7706),a=n(2828),s=n(5003);function c(e,t){return e.kind===a.Kind.VARIABLE&&(null==t||void 0===t[e.name.value])}},7784:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromASTUntyped=function e(t,n){switch(t.kind){case a.Kind.NULL:return null;case a.Kind.INT:return parseInt(t.value,10);case a.Kind.FLOAT:return parseFloat(t.value);case a.Kind.STRING:case a.Kind.ENUM:case a.Kind.BOOLEAN:return t.value;case a.Kind.LIST:return t.values.map((t=>e(t,n)));case a.Kind.OBJECT:return(0,o.keyValMap)(t.fields,(e=>e.name.value),(t=>e(t.value,n)));case a.Kind.VARIABLE:return null==n?void 0:n[t.name.value]}(0,i.invariant)(!1,"Unexpected value node: "+(0,r.inspect)(t))};var r=n(8002),i=n(7706),o=n(7154),a=n(2828)},3955:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var r=n(2828),i=n(285),o=n(6226);class a{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===r.Kind.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let i;for(;i=n.pop();)for(const e of i.selections)e.kind===r.Kind.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=a;class s extends a{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=s;class c extends a{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new o.TypeInfo(this._schema);(0,i.visit)(e,(0,o.visitWithTypeInfo)(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=c},1122:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return a.ExecutableDefinitionsRule}}),Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return s.FieldsOnCorrectTypeRule}}),Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return c.FragmentsOnCompositeTypesRule}}),Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return l.KnownArgumentNamesRule}}),Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return u.KnownDirectivesRule}}),Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return p.KnownFragmentNamesRule}}),Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return f.KnownTypeNamesRule}}),Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return d.LoneAnonymousOperationRule}}),Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return L.LoneSchemaDefinitionRule}}),Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return Q.NoDeprecatedCustomRule}}),Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return h.NoFragmentCyclesRule}}),Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return q.NoSchemaIntrospectionCustomRule}}),Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return m.NoUndefinedVariablesRule}}),Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return v.NoUnusedFragmentsRule}}),Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return y.NoUnusedVariablesRule}}),Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return g.OverlappingFieldsCanBeMergedRule}}),Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return b.PossibleFragmentSpreadsRule}}),Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return V.PossibleTypeExtensionsRule}}),Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return E.ProvidedRequiredArgumentsRule}}),Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return T.ScalarLeafsRule}}),Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return w.SingleFieldSubscriptionsRule}}),Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return j.UniqueArgumentDefinitionNamesRule}}),Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return _.UniqueArgumentNamesRule}}),Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return F.UniqueDirectiveNamesRule}}),Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return k.UniqueDirectivesPerLocationRule}}),Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return R.UniqueEnumValueNamesRule}}),Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return M.UniqueFieldDefinitionNamesRule}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return S.UniqueFragmentNamesRule}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return O.UniqueInputFieldNamesRule}}),Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return C.UniqueOperationNamesRule}}),Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return I.UniqueOperationTypesRule}}),Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return P.UniqueTypeNamesRule}}),Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return x.UniqueVariableNamesRule}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return i.ValidationContext}}),Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return N.ValuesOfCorrectTypeRule}}),Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return A.VariablesAreInputTypesRule}}),Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return D.VariablesInAllowedPositionRule}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return o.specifiedRules}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return r.validate}});var r=n(9504),i=n(3955),o=n(4710),a=n(5285),s=n(9426),c=n(3558),l=n(9989),u=n(2826),p=n(1843),f=n(5961),d=n(870),h=n(658),m=n(7459),v=n(7317),y=n(8769),g=n(4331),b=n(5904),E=n(4312),T=n(7168),w=n(4666),_=n(4986),k=n(3576),S=n(5883),O=n(4313),C=n(2139),x=n(4243),N=n(6869),A=n(4942),D=n(8034),L=n(3411),I=n(856),P=n(1686),R=n(6400),M=n(4046),j=n(3878),F=n(6753),V=n(5715),Q=n(2860),q=n(2276)},5285:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExecutableDefinitionsRule=function(e){return{Document(t){for(const n of t.definitions)if(!(0,o.isExecutableDefinitionNode)(n)){const t=n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new r.GraphQLError(`The ${t} definition is not executable.`,n))}return!1}}};var r=n(5822),i=n(2828),o=n(1352)},9426:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldsOnCorrectTypeRule=function(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const c=e.getSchema(),l=t.name.value;let u=(0,r.didYouMean)("to use an inline fragment on",function(e,t,n){if(!(0,s.isAbstractType)(t))return[];const r=new Set,i=Object.create(null);for(const o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(const e of o.getInterfaces()){var a;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(a=i[e.name])&&void 0!==a?a:0)+1)}}return[...r].sort(((t,n)=>{const r=i[n.name]-i[t.name];return 0!==r?r:(0,s.isInterfaceType)(t)&&e.isSubType(t,n)?-1:(0,s.isInterfaceType)(n)&&e.isSubType(n,t)?1:(0,o.naturalCompare)(t.name,n.name)})).map((e=>e.name))}(c,n,l));""===u&&(u=(0,r.didYouMean)(function(e,t){if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)){const n=Object.keys(e.getFields());return(0,i.suggestionList)(t,n)}return[]}(n,l))),e.reportError(new a.GraphQLError(`Cannot query field "${l}" on type "${n.name}".`+u,t))}}}};var r=n(166),i=n(8070),o=n(5250),a=n(5822),s=n(5003)},3558:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FragmentsOnCompositeTypesRule=function(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=(0,a.typeFromAST)(e.getSchema(),n);if(t&&!(0,o.isCompositeType)(t)){const t=(0,i.print)(n);e.reportError(new r.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,n))}}},FragmentDefinition(t){const n=(0,a.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,o.isCompositeType)(n)){const n=(0,i.print)(t.typeCondition);e.reportError(new r.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,t.typeCondition))}}}};var r=n(5822),i=n(3033),o=n(5003),a=n(5115)},9989:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownArgumentNamesOnDirectivesRule=c,t.KnownArgumentNamesRule=function(e){return{...c(e),Argument(t){const n=e.getArgument(),a=e.getFieldDef(),s=e.getParentType();if(!n&&a&&s){const n=t.name.value,c=a.args.map((e=>e.name)),l=(0,i.suggestionList)(n,c);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on field "${s.name}.${a.name}".`+(0,r.didYouMean)(l),t))}}}};var r=n(166),i=n(8070),o=n(5822),a=n(2828),s=n(7197);function c(e){const t=Object.create(null),n=e.getSchema(),c=n?n.getDirectives():s.specifiedDirectives;for(const e of c)t[e.name]=e.args.map((e=>e.name));const l=e.getDocument().definitions;for(const e of l)if(e.kind===a.Kind.DIRECTIVE_DEFINITION){var u;const n=null!==(u=e.arguments)&&void 0!==u?u:[];t[e.name.value]=n.map((e=>e.name.value))}return{Directive(n){const a=n.name.value,s=t[a];if(n.arguments&&s)for(const t of n.arguments){const n=t.name.value;if(!s.includes(n)){const c=(0,i.suggestionList)(n,s);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on directive "@${a}".`+(0,r.didYouMean)(c),t))}}return!1}}}},2826:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownDirectivesRule=function(e){const t=Object.create(null),n=e.getSchema(),u=n?n.getDirectives():l.specifiedDirectives;for(const e of u)t[e.name]=e.locations;const p=e.getDocument().definitions;for(const e of p)e.kind===a.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map((e=>e.value)));return{Directive(n,l,u,p,f){const d=n.name.value,h=t[d];if(!h)return void e.reportError(new o.GraphQLError(`Unknown directive "@${d}".`,n));const m=function(e){const t=e[e.length-1];switch("kind"in t||(0,i.invariant)(!1),t.kind){case a.Kind.OPERATION_DEFINITION:return function(e){switch(e){case s.OperationTypeNode.QUERY:return c.DirectiveLocation.QUERY;case s.OperationTypeNode.MUTATION:return c.DirectiveLocation.MUTATION;case s.OperationTypeNode.SUBSCRIPTION:return c.DirectiveLocation.SUBSCRIPTION}(0,i.invariant)(!1,"Unexpected operation: "+(0,r.inspect)(e))}(t.operation);case a.Kind.FIELD:return c.DirectiveLocation.FIELD;case a.Kind.FRAGMENT_SPREAD:return c.DirectiveLocation.FRAGMENT_SPREAD;case a.Kind.INLINE_FRAGMENT:return c.DirectiveLocation.INLINE_FRAGMENT;case a.Kind.FRAGMENT_DEFINITION:return c.DirectiveLocation.FRAGMENT_DEFINITION;case a.Kind.VARIABLE_DEFINITION:return c.DirectiveLocation.VARIABLE_DEFINITION;case a.Kind.SCHEMA_DEFINITION:case a.Kind.SCHEMA_EXTENSION:return c.DirectiveLocation.SCHEMA;case a.Kind.SCALAR_TYPE_DEFINITION:case a.Kind.SCALAR_TYPE_EXTENSION:return c.DirectiveLocation.SCALAR;case a.Kind.OBJECT_TYPE_DEFINITION:case a.Kind.OBJECT_TYPE_EXTENSION:return c.DirectiveLocation.OBJECT;case a.Kind.FIELD_DEFINITION:return c.DirectiveLocation.FIELD_DEFINITION;case a.Kind.INTERFACE_TYPE_DEFINITION:case a.Kind.INTERFACE_TYPE_EXTENSION:return c.DirectiveLocation.INTERFACE;case a.Kind.UNION_TYPE_DEFINITION:case a.Kind.UNION_TYPE_EXTENSION:return c.DirectiveLocation.UNION;case a.Kind.ENUM_TYPE_DEFINITION:case a.Kind.ENUM_TYPE_EXTENSION:return c.DirectiveLocation.ENUM;case a.Kind.ENUM_VALUE_DEFINITION:return c.DirectiveLocation.ENUM_VALUE;case a.Kind.INPUT_OBJECT_TYPE_DEFINITION:case a.Kind.INPUT_OBJECT_TYPE_EXTENSION:return c.DirectiveLocation.INPUT_OBJECT;case a.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||(0,i.invariant)(!1),t.kind===a.Kind.INPUT_OBJECT_TYPE_DEFINITION?c.DirectiveLocation.INPUT_FIELD_DEFINITION:c.DirectiveLocation.ARGUMENT_DEFINITION}}}(f);m&&!h.includes(m)&&e.reportError(new o.GraphQLError(`Directive "@${d}" may not be used on ${m}.`,n))}}};var r=n(8002),i=n(7706),o=n(5822),a=n(2828),s=n(1807),c=n(8333),l=n(7197)},1843:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownFragmentNamesRule=function(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new r.GraphQLError(`Unknown fragment "${n}".`,t.name))}}};var r=n(5822)},5961:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownTypeNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),s=Object.create(null);for(const t of e.getDocument().definitions)(0,a.isTypeDefinitionNode)(t)&&(s[t.name.value]=!0);const c=[...Object.keys(n),...Object.keys(s)];return{NamedType(t,u,p,f,d){const h=t.name.value;if(!n[h]&&!s[h]){var m;const n=null!==(m=d[2])&&void 0!==m?m:p,s=null!=n&&"kind"in(v=n)&&((0,a.isTypeSystemDefinitionNode)(v)||(0,a.isTypeSystemExtensionNode)(v));if(s&&l.includes(h))return;const u=(0,i.suggestionList)(h,s?l.concat(c):c);e.reportError(new o.GraphQLError(`Unknown type "${h}".`+(0,r.didYouMean)(u),t))}var v}}};var r=n(166),i=n(8070),o=n(5822),a=n(1352),s=n(2229),c=n(8155);const l=[...s.specifiedScalarTypes,...c.introspectionTypes].map((e=>e.name))},870:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoneAnonymousOperationRule=function(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===i.Kind.OPERATION_DEFINITION)).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new r.GraphQLError("This anonymous operation must be the only defined operation.",n))}}};var r=n(5822),i=n(2828)},3411:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoneSchemaDefinitionRule=function(e){var t,n,i;const o=e.getSchema(),a=null!==(t=null!==(n=null!==(i=null==o?void 0:o.astNode)&&void 0!==i?i:null==o?void 0:o.getQueryType())&&void 0!==n?n:null==o?void 0:o.getMutationType())&&void 0!==t?t:null==o?void 0:o.getSubscriptionType();let s=0;return{SchemaDefinition(t){a?e.reportError(new r.GraphQLError("Cannot define a new schema within a schema extension.",t)):(s>0&&e.reportError(new r.GraphQLError("Must provide only one schema definition.",t)),++s)}}};var r=n(5822)},658:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoFragmentCyclesRule=function(e){const t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(o(e),!1)};function o(a){if(t[a.name.value])return;const s=a.name.value;t[s]=!0;const c=e.getFragmentSpreads(a.selectionSet);if(0!==c.length){i[s]=n.length;for(const t of c){const a=t.name.value,s=i[a];if(n.push(t),void 0===s){const t=e.getFragment(a);t&&o(t)}else{const t=n.slice(s),i=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new r.GraphQLError(`Cannot spread fragment "${a}" within itself`+(""!==i?` via ${i}.`:"."),t))}n.pop()}i[s]=void 0}}};var r=n(5822)},7459:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUndefinedVariablesRule=function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const i=e.getRecursiveVariableUsages(n);for(const{node:o}of i){const i=o.name.value;!0!==t[i]&&e.reportError(new r.GraphQLError(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,[o,n]))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}};var r=n(5822)},7317:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUnusedFragmentsRule=function(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const i=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))i[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==i[n]&&e.reportError(new r.GraphQLError(`Fragment "${n}" is never used.`,t))}}}}};var r=n(5822)},8769:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUnusedVariablesRule=function(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const i=Object.create(null),o=e.getRecursiveVariableUsages(n);for(const{node:e}of o)i[e.name.value]=!0;for(const o of t){const t=o.variable.name.value;!0!==i[t]&&e.reportError(new r.GraphQLError(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,o))}}},VariableDefinition(e){t.push(e)}}};var r=n(5822)},4331:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OverlappingFieldsCanBeMergedRule=function(e){const t=new g,n=new Map;return{SelectionSet(r){const o=function(e,t,n,r,i){const o=[],[a,s]=m(e,t,r,i);if(function(e,t,n,r,i){for(const[o,a]of Object.entries(i))if(a.length>1)for(let i=0;i`subfields "${e}" conflict because `+l(t))).join(" and "):e}function u(e,t,n,r,i,o,a){const s=e.getFragment(a);if(!s)return;const[c,l]=v(e,n,s);if(o!==c){f(e,t,n,r,i,o,c);for(const a of l)u(e,t,n,r,i,o,a)}}function p(e,t,n,r,i,o,a){if(o===a)return;if(r.has(o,a,i))return;r.add(o,a,i);const s=e.getFragment(o),c=e.getFragment(a);if(!s||!c)return;const[l,u]=v(e,n,s),[d,h]=v(e,n,c);f(e,t,n,r,i,l,d);for(const a of h)p(e,t,n,r,i,o,a);for(const o of u)p(e,t,n,r,i,o,a)}function f(e,t,n,r,i,o,a){for(const[s,c]of Object.entries(o)){const o=a[s];if(o)for(const a of c)for(const c of o){const o=d(e,n,r,i,s,a,c);o&&t.push(o)}}}function d(e,t,n,i,o,c,l){const[d,v,y]=c,[g,b,E]=l,T=i||d!==g&&(0,s.isObjectType)(d)&&(0,s.isObjectType)(g);if(!T){var w,_;const e=v.name.value,t=b.name.value;if(e!==t)return[[o,`"${e}" and "${t}" are different fields`],[v],[b]];if(k=null!==(w=v.arguments)&&void 0!==w?w:[],S=null!==(_=b.arguments)&&void 0!==_?_:[],k.length!==S.length||!k.every((e=>{const t=S.find((t=>t.name.value===e.name.value));return!!t&&(n=e.value,r=t.value,(0,a.print)(n)===(0,a.print)(r));var n,r})))return[[o,"they have differing arguments"],[v],[b]]}var k,S;const O=null==y?void 0:y.type,C=null==E?void 0:E.type;if(O&&C&&h(O,C))return[[o,`they return conflicting types "${(0,r.inspect)(O)}" and "${(0,r.inspect)(C)}"`],[v],[b]];const x=v.selectionSet,N=b.selectionSet;if(x&&N){const r=function(e,t,n,r,i,o,a,s){const c=[],[l,d]=m(e,t,i,o),[h,v]=m(e,t,a,s);f(e,c,t,n,r,l,h);for(const i of v)u(e,c,t,n,r,l,i);for(const i of d)u(e,c,t,n,r,h,i);for(const i of d)for(const o of v)p(e,c,t,n,r,i,o);return c}(e,t,n,T,(0,s.getNamedType)(O),x,(0,s.getNamedType)(C),N);return function(e,t,n,r){if(e.length>0)return[[t,e.map((([e])=>e))],[n,...e.map((([,e])=>e)).flat()],[r,...e.map((([,,e])=>e)).flat()]]}(r,o,v,b)}}function h(e,t){return(0,s.isListType)(e)?!(0,s.isListType)(t)||h(e.ofType,t.ofType):!!(0,s.isListType)(t)||((0,s.isNonNullType)(e)?!(0,s.isNonNullType)(t)||h(e.ofType,t.ofType):!!(0,s.isNonNullType)(t)||!(!(0,s.isLeafType)(e)&&!(0,s.isLeafType)(t))&&e!==t)}function m(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);y(e,n,r,o,a);const s=[o,Object.keys(a)];return t.set(r,s),s}function v(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=(0,c.typeFromAST)(e.getSchema(),n.typeCondition);return m(e,t,i,n.selectionSet)}function y(e,t,n,r,i){for(const a of n.selections)switch(a.kind){case o.Kind.FIELD:{const e=a.name.value;let n;((0,s.isObjectType)(t)||(0,s.isInterfaceType)(t))&&(n=t.getFields()[e]);const i=a.alias?a.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,a,n]);break}case o.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case o.Kind.INLINE_FRAGMENT:{const n=a.typeCondition,o=n?(0,c.typeFromAST)(e.getSchema(),n):t;y(e,o,a.selectionSet,r,i);break}}}class g{constructor(){this._data=new Map}has(e,t,n){var r;const[i,o]=ee.name.value)));for(const n of i.args)if(!a.has(n.name)&&(0,l.isRequiredArgument)(n)){const a=(0,r.inspect)(n.type);e.reportError(new o.GraphQLError(`Field "${i.name}" argument "${n.name}" of type "${a}" is required, but it was not provided.`,t))}}}}};var r=n(8002),i=n(2863),o=n(5822),a=n(2828),s=n(3033),c=n(7197),l=n(5003);function u(e){var t;const n=Object.create(null),u=e.getSchema(),f=null!==(t=null==u?void 0:u.getDirectives())&&void 0!==t?t:c.specifiedDirectives;for(const e of f)n[e.name]=(0,i.keyMap)(e.args.filter(l.isRequiredArgument),(e=>e.name));const d=e.getDocument().definitions;for(const e of d)if(e.kind===a.Kind.DIRECTIVE_DEFINITION){var h;const t=null!==(h=e.arguments)&&void 0!==h?h:[];n[e.name.value]=(0,i.keyMap)(t.filter(p),(e=>e.name.value))}return{Directive:{leave(t){const i=t.name.value,a=n[i];if(a){var c;const n=null!==(c=t.arguments)&&void 0!==c?c:[],u=new Set(n.map((e=>e.name.value)));for(const[n,c]of Object.entries(a))if(!u.has(n)){const a=(0,l.isType)(c.type)?(0,r.inspect)(c.type):(0,s.print)(c.type);e.reportError(new o.GraphQLError(`Directive "@${i}" argument "${n}" of type "${a}" is required, but it was not provided.`,t))}}}}}}function p(e){return e.type.kind===a.Kind.NON_NULL_TYPE&&null==e.defaultValue}},7168:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScalarLeafsRule=function(e){return{Field(t){const n=e.getType(),a=t.selectionSet;if(n)if((0,o.isLeafType)((0,o.getNamedType)(n))){if(a){const o=t.name.value,s=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" must not have a selection since type "${s}" has no subfields.`,a))}}else if(!a){const o=t.name.value,a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" of type "${a}" must have a selection of subfields. Did you mean "${o} { ... }"?`,t))}}}};var r=n(8002),i=n(5822),o=n(5003)},4666:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleFieldSubscriptionsRule=function(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),a=n.getSubscriptionType();if(a){const s=t.name?t.name.value:null,c=Object.create(null),l=e.getDocument(),u=Object.create(null);for(const e of l.definitions)e.kind===i.Kind.FRAGMENT_DEFINITION&&(u[e.name.value]=e);const p=(0,o.collectFields)(n,u,c,a,t.selectionSet);if(p.size>1){const t=[...p.values()].slice(1).flat();e.reportError(new r.GraphQLError(null!=s?`Subscription "${s}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",t))}for(const t of p.values())t[0].name.value.startsWith("__")&&e.reportError(new r.GraphQLError(null!=s?`Subscription "${s}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",t))}}}}};var r=n(5822),i=n(2828),o=n(8950)},3878:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueArgumentDefinitionNamesRule=function(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var o;n(`${r}.${e.name.value}`,null!==(o=e.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const o=(0,r.groupBy)(n,(e=>e.name.value));for(const[n,r]of o)r.length>1&&e.reportError(new i.GraphQLError(`Argument "${t}(${n}:)" can only be defined once.`,r.map((e=>e.name))));return!1}};var r=n(4620),i=n(5822)},4986:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueArgumentNamesRule=function(e){return{Field:t,Directive:t};function t(t){var n;const o=null!==(n=t.arguments)&&void 0!==n?n:[],a=(0,r.groupBy)(o,(e=>e.name.value));for(const[t,n]of a)n.length>1&&e.reportError(new i.GraphQLError(`There can be only one argument named "${t}".`,n.map((e=>e.name))))}};var r=n(4620),i=n(5822)},6753:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueDirectiveNamesRule=function(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(i){const o=i.name.value;if(null==n||!n.getDirective(o))return t[o]?e.reportError(new r.GraphQLError(`There can be only one directive named "@${o}".`,[t[o],i.name])):t[o]=i.name,!1;e.reportError(new r.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,i.name))}}};var r=n(5822)},3576:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueDirectivesPerLocationRule=function(e){const t=Object.create(null),n=e.getSchema(),s=n?n.getDirectives():a.specifiedDirectives;for(const e of s)t[e.name]=!e.isRepeatable;const c=e.getDocument().definitions;for(const e of c)e.kind===i.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const l=Object.create(null),u=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let a;if(n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION)a=l;else if((0,o.isTypeDefinitionNode)(n)||(0,o.isTypeExtensionNode)(n)){const e=n.name.value;a=u[e],void 0===a&&(u[e]=a=Object.create(null))}else a=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(a[n]?e.reportError(new r.GraphQLError(`The directive "@${n}" can only be used once at this location.`,[a[n],i])):a[n]=i)}}}};var r=n(5822),i=n(2828),o=n(1352),a=n(7197)},6400:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueEnumValueNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:a,EnumTypeExtension:a};function a(t){var a;const s=t.name.value;o[s]||(o[s]=Object.create(null));const c=null!==(a=t.values)&&void 0!==a?a:[],l=o[s];for(const t of c){const o=t.name.value,a=n[s];(0,i.isEnumType)(a)&&a.getValue(o)?e.reportError(new r.GraphQLError(`Enum value "${s}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,t.name)):l[o]?e.reportError(new r.GraphQLError(`Enum value "${s}.${o}" can only be defined once.`,[l[o],t.name])):l[o]=t.name}return!1}};var r=n(5822),i=n(5003)},4046:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueFieldDefinitionNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:a,InputObjectTypeExtension:a,InterfaceTypeDefinition:a,InterfaceTypeExtension:a,ObjectTypeDefinition:a,ObjectTypeExtension:a};function a(t){var a;const s=t.name.value;i[s]||(i[s]=Object.create(null));const c=null!==(a=t.fields)&&void 0!==a?a:[],l=i[s];for(const t of c){const i=t.name.value;o(n[s],i)?e.reportError(new r.GraphQLError(`Field "${s}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,t.name)):l[i]?e.reportError(new r.GraphQLError(`Field "${s}.${i}" can only be defined once.`,[l[i],t.name])):l[i]=t.name}return!1}};var r=n(5822),i=n(5003);function o(e,t){return!!((0,i.isObjectType)(e)||(0,i.isInterfaceType)(e)||(0,i.isInputObjectType)(e))&&null!=e.getFields()[t]}},5883:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueFragmentNamesRule=function(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const i=n.name.value;return t[i]?e.reportError(new r.GraphQLError(`There can be only one fragment named "${i}".`,[t[i],n.name])):t[i]=n.name,!1}}};var r=n(5822)},4313:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueInputFieldNamesRule=function(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||(0,r.invariant)(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new i.GraphQLError(`There can be only one input field named "${r}".`,[n[r],t.name])):n[r]=t.name}}};var r=n(7706),i=n(5822)},2139:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueOperationNamesRule=function(e){const t=Object.create(null);return{OperationDefinition(n){const i=n.name;return i&&(t[i.value]?e.reportError(new r.GraphQLError(`There can be only one operation named "${i.value}".`,[t[i.value],i])):t[i.value]=i),!1},FragmentDefinition:()=>!1}};var r=n(5822)},856:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueOperationTypesRule=function(e){const t=e.getSchema(),n=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(t){var o;const a=null!==(o=t.operationTypes)&&void 0!==o?o:[];for(const t of a){const o=t.operation,a=n[o];i[o]?e.reportError(new r.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,t)):a?e.reportError(new r.GraphQLError(`There can be only one ${o} type in schema.`,[a,t])):n[o]=t}return!1}};var r=n(5822)},1686:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueTypeNamesRule=function(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){const o=i.name.value;if(null==n||!n.getType(o))return t[o]?e.reportError(new r.GraphQLError(`There can be only one type named "${o}".`,[t[o],i.name])):t[o]=i.name,!1;e.reportError(new r.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,i.name))}};var r=n(5822)},4243:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueVariableNamesRule=function(e){return{OperationDefinition(t){var n;const o=null!==(n=t.variableDefinitions)&&void 0!==n?n:[],a=(0,r.groupBy)(o,(e=>e.variable.name.value));for(const[t,n]of a)n.length>1&&e.reportError(new i.GraphQLError(`There can be only one variable named "$${t}".`,n.map((e=>e.variable.name))))}}};var r=n(4620),i=n(5822)},6869:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValuesOfCorrectTypeRule=function(e){return{ListValue(t){const n=(0,l.getNullableType)(e.getParentInputType());if(!(0,l.isListType)(n))return u(e,t),!1},ObjectValue(t){const n=(0,l.getNamedType)(e.getInputType());if(!(0,l.isInputObjectType)(n))return u(e,t),!1;const o=(0,r.keyMap)(t.fields,(e=>e.name.value));for(const r of Object.values(n.getFields()))if(!o[r.name]&&(0,l.isRequiredInputField)(r)){const o=(0,i.inspect)(r.type);e.reportError(new s.GraphQLError(`Field "${n.name}.${r.name}" of required type "${o}" was not provided.`,t))}},ObjectField(t){const n=(0,l.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,l.isInputObjectType)(n)){const r=(0,a.suggestionList)(t.name.value,Object.keys(n.getFields()));e.reportError(new s.GraphQLError(`Field "${t.name.value}" is not defined by type "${n.name}".`+(0,o.didYouMean)(r),t))}},NullValue(t){const n=e.getInputType();(0,l.isNonNullType)(n)&&e.reportError(new s.GraphQLError(`Expected value of type "${(0,i.inspect)(n)}", found ${(0,c.print)(t)}.`,t))},EnumValue:t=>u(e,t),IntValue:t=>u(e,t),FloatValue:t=>u(e,t),StringValue:t=>u(e,t),BooleanValue:t=>u(e,t)}};var r=n(2863),i=n(8002),o=n(166),a=n(8070),s=n(5822),c=n(3033),l=n(5003);function u(e,t){const n=e.getInputType();if(!n)return;const r=(0,l.getNamedType)(n);if((0,l.isLeafType)(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=(0,i.inspect)(n);e.reportError(new s.GraphQLError(`Expected value of type "${r}", found ${(0,c.print)(t)}.`,t))}}catch(r){const o=(0,i.inspect)(n);r instanceof s.GraphQLError?e.reportError(r):e.reportError(new s.GraphQLError(`Expected value of type "${o}", found ${(0,c.print)(t)}; `+r.message,t,void 0,void 0,void 0,r))}else{const r=(0,i.inspect)(n);e.reportError(new s.GraphQLError(`Expected value of type "${r}", found ${(0,c.print)(t)}.`,t))}}},4942:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesAreInputTypesRule=function(e){return{VariableDefinition(t){const n=(0,a.typeFromAST)(e.getSchema(),t.type);if(void 0!==n&&!(0,o.isInputType)(n)){const n=t.variable.name.value,o=(0,i.print)(t.type);e.reportError(new r.GraphQLError(`Variable "$${n}" cannot be non-input type "${o}".`,t.type))}}}};var r=n(5822),i=n(3033),o=n(5003),a=n(5115)},8034:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesInAllowedPositionRule=function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const o=e.getRecursiveVariableUsages(n);for(const{node:n,type:a,defaultValue:c}of o){const o=n.name.value,u=t[o];if(u&&a){const t=e.getSchema(),p=(0,s.typeFromAST)(t,u.type);if(p&&!l(t,p,u.defaultValue,a,c)){const t=(0,r.inspect)(p),s=(0,r.inspect)(a);e.reportError(new i.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${s}".`,[u,n]))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}};var r=n(8002),i=n(5822),o=n(2828),a=n(5003),s=n(5115),c=n(298);function l(e,t,n,r,i){if((0,a.isNonNullType)(r)&&!(0,a.isNonNullType)(t)){const a=void 0!==i;if((null==n||n.kind===o.Kind.NULL)&&!a)return!1;const s=r.ofType;return(0,c.isTypeSubTypeOf)(e,t,s)}return(0,c.isTypeSubTypeOf)(e,t,r)}},2860:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoDeprecatedCustomRule=function(e){return{Field(t){const n=e.getFieldDef(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getParentType();null!=a||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`The field ${a.name}.${n.name} is deprecated. ${o}`,t))}},Argument(t){const n=e.getArgument(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getDirective();if(null!=a)e.reportError(new i.GraphQLError(`Directive "@${a.name}" argument "${n.name}" is deprecated. ${o}`,t));else{const a=e.getParentType(),s=e.getFieldDef();null!=a&&null!=s||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`Field "${a.name}.${s.name}" argument "${n.name}" is deprecated. ${o}`,t))}}},ObjectField(t){const n=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(n)){const r=n.getFields()[t.name.value],o=null==r?void 0:r.deprecationReason;null!=o&&e.reportError(new i.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${o}`,t))}},EnumValue(t){const n=e.getEnumValue(),a=null==n?void 0:n.deprecationReason;if(n&&null!=a){const s=(0,o.getNamedType)(e.getInputType());null!=s||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`The enum value "${s.name}.${n.name}" is deprecated. ${a}`,t))}}}};var r=n(7706),i=n(5822),o=n(5003)},2276:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoSchemaIntrospectionCustomRule=function(e){return{Field(t){const n=(0,i.getNamedType)(e.getType());n&&(0,o.isIntrospectionType)(n)&&e.reportError(new r.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,t))}}};var r=n(5822),i=n(5003),o=n(8155)},4710:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.specifiedSDLRules=t.specifiedRules=void 0;var r=n(5285),i=n(2139),o=n(870),a=n(4666),s=n(5961),c=n(3558),l=n(4942),u=n(7168),p=n(9426),f=n(5883),d=n(1843),h=n(7317),m=n(5904),v=n(658),y=n(4243),g=n(7459),b=n(8769),E=n(2826),T=n(3576),w=n(9989),_=n(4986),k=n(6869),S=n(4312),O=n(8034),C=n(4331),x=n(4313),N=n(3411),A=n(856),D=n(1686),L=n(6400),I=n(4046),P=n(3878),R=n(6753),M=n(5715);const j=Object.freeze([r.ExecutableDefinitionsRule,i.UniqueOperationNamesRule,o.LoneAnonymousOperationRule,a.SingleFieldSubscriptionsRule,s.KnownTypeNamesRule,c.FragmentsOnCompositeTypesRule,l.VariablesAreInputTypesRule,u.ScalarLeafsRule,p.FieldsOnCorrectTypeRule,f.UniqueFragmentNamesRule,d.KnownFragmentNamesRule,h.NoUnusedFragmentsRule,m.PossibleFragmentSpreadsRule,v.NoFragmentCyclesRule,y.UniqueVariableNamesRule,g.NoUndefinedVariablesRule,b.NoUnusedVariablesRule,E.KnownDirectivesRule,T.UniqueDirectivesPerLocationRule,w.KnownArgumentNamesRule,_.UniqueArgumentNamesRule,k.ValuesOfCorrectTypeRule,S.ProvidedRequiredArgumentsRule,O.VariablesInAllowedPositionRule,C.OverlappingFieldsCanBeMergedRule,x.UniqueInputFieldNamesRule]);t.specifiedRules=j;const F=Object.freeze([N.LoneSchemaDefinitionRule,A.UniqueOperationTypesRule,D.UniqueTypeNamesRule,L.UniqueEnumValueNamesRule,I.UniqueFieldDefinitionNamesRule,P.UniqueArgumentDefinitionNamesRule,R.UniqueDirectiveNamesRule,s.KnownTypeNamesRule,E.KnownDirectivesRule,T.UniqueDirectivesPerLocationRule,M.PossibleTypeExtensionsRule,w.KnownArgumentNamesOnDirectivesRule,_.UniqueArgumentNamesRule,x.UniqueInputFieldNamesRule,S.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=F},9504:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidSDL=function(e){const t=u(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))},t.assertValidSDLExtension=function(e,t){const n=u(e,t);if(0!==n.length)throw new Error(n.map((e=>e.message)).join("\n\n"))},t.validate=function(e,t,n=c.specifiedRules,u,p=new s.TypeInfo(e)){var f;const d=null!==(f=null==u?void 0:u.maxErrors)&&void 0!==f?f:100;t||(0,r.devAssert)(!1,"Must provide document."),(0,a.assertValidSchema)(e);const h=Object.freeze({}),m=[],v=new l.ValidationContext(e,t,p,(e=>{if(m.length>=d)throw m.push(new i.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),h;m.push(e)})),y=(0,o.visitInParallel)(n.map((e=>e(v))));try{(0,o.visit)(t,(0,s.visitWithTypeInfo)(p,y))}catch(e){if(e!==h)throw e}return m},t.validateSDL=u;var r=n(7242),i=n(5822),o=n(285),a=n(1671),s=n(6226),c=n(4710),l=n(3955);function u(e,t,n=c.specifiedSDLRules){const r=[],i=new l.SDLValidationContext(e,t,(e=>{r.push(e)})),a=n.map((e=>e(i)));return(0,o.visit)(e,(0,o.visitInParallel)(a)),r}},8696:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.versionInfo=t.version=void 0,t.version="16.0.1";const n=Object.freeze({major:16,minor:0,patch:1,preReleaseTag:null});t.versionInfo=n},8679:function(e,t,n){"use strict";var r=n(9864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=d(n);i&&i!==h&&e(t,i,r)}var a=u(n);p&&(a=a.concat(p(n)));for(var s=c(t),m=c(n),v=0;v=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(e){var t=e.re=n(6066)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var c=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===i(n))return"[object RegExp]"!==i(n.validate)?o(n.validate)?r.validate=n.validate:l(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(o(n.normalize)?r.normalize=n.normalize:n.normalize?l(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?l(t,n):c.push(t)}})),c.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var u=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function f(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function d(e,t){if(!(this instanceof d))return new d(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},c,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},u(this)}d.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},d.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},d.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,c;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||c=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},d.prototype.pretest=function(e){return this.re.pretest.test(e)},d.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},d.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(f(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(f(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},d.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),u(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,u(this),this)},d.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},d.prototype.onCompile=function(){},e.exports=d},6066:function(e,t,n){"use strict";e.exports=function(e){var t={};return t.src_Any=n(9369).source,t.src_Cc=n(9413).source,t.src_Z=n(5045).source,t.src_P=n(3189).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},8552:function(e,t,n){var r=n(852)(n(5639),"DataView");e.exports=r},1989:function(e,t,n){var r=n(1789),i=n(401),o=n(7667),a=n(1327),s=n(1866);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tu))return!1;var f=c.get(e),d=c.get(t);if(f&&d)return f==t&&d==e;var h=-1,m=!0,v=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h-1&&e%1==0&&e-1}},4705:function(e,t,n){var r=n(8470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},4785:function(e,t,n){var r=n(1989),i=n(8407),o=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:function(e,t,n){var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:function(e,t,n){var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:function(e,t,n){var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:function(e,t,n){var r=n(5050);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},8776:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},4536:function(e,t,n){var r=n(852)(Object,"create");e.exports=r},6916:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},1167:function(e,t,n){e=n.nmd(e);var r=n(1957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},5639:function(e,t,n){var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:function(e){e.exports=function(e){return this.__data__.has(e)}},1814:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},7465:function(e,t,n){var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:function(e){e.exports=function(e){return this.__data__.get(e)}},4758:function(e){e.exports=function(e){return this.__data__.has(e)}},4309:function(e,t,n){var r=n(8407),i=n(7071),o=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},3279:function(e,t,n){var r=n(3218),i=n(7771),o=n(4841),a=Math.max,s=Math.min;e.exports=function(e,t,n){var c,l,u,p,f,d,h=0,m=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=c,r=l;return c=l=void 0,h=t,p=e.apply(r,n)}function b(e){return h=e,f=setTimeout(T,t),m?g(e):p}function E(e){var n=e-d;return void 0===d||n>=t||n<0||v&&e-h>=u}function T(){var e=i();if(E(e))return w(e);f=setTimeout(T,function(e){var n=t-(e-d);return v?s(n,u-(e-h)):n}(e))}function w(e){return f=void 0,y&&c?g(e):(c=l=void 0,p)}function _(){var e=i(),n=E(e);if(c=arguments,l=this,d=e,n){if(void 0===f)return b(d);if(v)return clearTimeout(f),f=setTimeout(T,t),g(d)}return void 0===f&&(f=setTimeout(T,t)),p}return t=o(t)||0,r(n)&&(m=!!n.leading,u=(v="maxWait"in n)?a(o(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),_.cancel=function(){void 0!==f&&clearTimeout(f),h=0,c=d=l=f=void 0},_.flush=function(){return void 0===f?p:w(i())},_}},7813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},5694:function(e,t,n){var r=n(9454),i=n(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},1469:function(e){var t=Array.isArray;e.exports=t},8612:function(e,t,n){var r=n(3560),i=n(1780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},4144:function(e,t,n){e=n.nmd(e);var r=n(5639),i=n(5062),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c},8446:function(e,t,n){var r=n(939);e.exports=function(e,t){return r(e,t)}},3560:function(e,t,n){var r=n(4239),i=n(3218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},3448:function(e,t,n){var r=n(4239),i=n(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6719:function(e,t,n){var r=n(8749),i=n(1717),o=n(1167),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},3674:function(e,t,n){var r=n(4636),i=n(280),o=n(8612);e.exports=function(e){return o(e)?r(e):i(e)}},7771:function(e,t,n){var r=n(5639);e.exports=function(){return r.Date.now()}},479:function(e){e.exports=function(){return[]}},5062:function(e){e.exports=function(){return!1}},4841:function(e,t,n){var r=n(7561),i=n(3218),o=n(3448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},6961:function(e,t,n){var r,i=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function i(e,t){if(!r[e]){r[e]={};for(var n=0;n>>8,n[2*r+1]=a%256}return n},decompressFromUint8Array:function(t){if(null==t)return o.decompress(t);for(var n=new Array(t.length/2),r=0,i=n.length;r>=1}else{for(i=1,r=0;r>=1}0==--p&&(p=Math.pow(2,d),d++),delete s[u]}else for(i=a[u],r=0;r>=1;0==--p&&(p=Math.pow(2,d),d++),a[l]=f++,u=String(c)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(r=0;r>=1}else{for(i=1,r=0;r>=1}0==--p&&(p=Math.pow(2,d),d++),delete s[u]}else for(i=a[u],r=0;r>=1;0==--p&&(p=Math.pow(2,d),d++)}for(i=2,r=0;r>=1;for(;;){if(m<<=1,v==t-1){h.push(n(m));break}v++}return h.join("")},decompress:function(e){return null==e?"":""==e?null:o._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,r){var i,o,a,s,c,l,u,p=[],f=4,d=4,h=3,m="",v=[],y={val:r(0),position:n,index:1};for(i=0;i<3;i+=1)p[i]=i;for(a=0,c=Math.pow(2,2),l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*l,l<<=1;switch(a){case 0:for(a=0,c=Math.pow(2,8),l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*l,l<<=1;u=e(a);break;case 1:for(a=0,c=Math.pow(2,16),l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*l,l<<=1;u=e(a);break;case 2:return""}for(p[3]=u,o=u,v.push(u);;){if(y.index>t)return"";for(a=0,c=Math.pow(2,h),l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*l,l<<=1;switch(u=a){case 0:for(a=0,c=Math.pow(2,8),l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*l,l<<=1;p[d++]=e(a),u=d-1,f--;break;case 1:for(a=0,c=Math.pow(2,16),l=1;l!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*l,l<<=1;p[d++]=e(a),u=d-1,f--;break;case 2:return v.join("")}if(0==f&&(f=Math.pow(2,h),h++),p[u])m=p[u];else{if(u!==d)return null;m=o+o.charAt(0)}v.push(m),p[d++]=o+m.charAt(0),o=m,0==--f&&(f=Math.pow(2,h),h++)}}};return o}();void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)},9980:function(e,t,n){"use strict";e.exports=n(7024)},6233:function(e,t,n){"use strict";e.exports=n(5485)},813:function(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},1947:function(e){"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=new RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),i=new RegExp("^(?:"+t+"|"+n+")");e.exports.n=r,e.exports.q=i},7022:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(6233),p=/[&<>"]/,f=/[&<>"]/g,d={"&":"&","<":"<",">":">",'"':"""};function h(e){return d[e]}var m=/[.?*+^$[\]\\(){}|-]/g,v=n(3189);t.lib={},t.lib.mdurl=n(8765),t.lib.ucmicro=n(4205),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(c,(function(e,t,n){return t||function(e,t){var n=0;return i(u,t)?u[t]:35===t.charCodeAt(0)&&l.test(t)&&o(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)}))},t.isValidEntityCode=o,t.fromCodePoint=a,t.escapeHtml=function(e){return p.test(e)?e.replace(f,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return v.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}},1685:function(e,t,n){"use strict";t.parseLinkLabel=n(3595),t.parseLinkDestination=n(2548),t.parseLinkTitle=n(8040)},2548:function(e,t,n){"use strict";var r=n(7022).unescapeAll;e.exports=function(e,t,n){var i,o,a=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t32)return s;if(41===i){if(0===o)break;o--}t++}return a===t||0!==o||(s.str=r(e.slice(a,t)),s.lines=0,s.pos=t,s.ok=!0),s}},3595:function(e){"use strict";e.exports=function(e,t,n){var r,i,o,a,s=-1,c=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos=n)return c;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return c;for(t++,40===o&&(o=41);t=0))try{t.hostname=p.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function g(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||v.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function b(e,t){if(!(this instanceof b))return new b(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new c,this.block=new s,this.core=new a,this.renderer=new o,this.linkify=new l,this.validateLink=m,this.normalizeLink=y,this.normalizeLinkText=g,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return r.assign(this.options,e),this},b.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=f[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},b.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},b.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},2471:function(e,t,n){"use strict";var r=n(9580),i=[["table",n(1785),["paragraph","reference"]],["code",n(8768)],["fence",n(3542),["paragraph","reference","blockquote","list"]],["blockquote",n(5258),["paragraph","reference","blockquote","list"]],["hr",n(5634),["paragraph","reference","blockquote","list"]],["list",n(8532),["paragraph","reference","blockquote"]],["reference",n(3804)],["html_block",n(6329),["paragraph","reference","blockquote"]],["heading",n(1630),["paragraph","reference","blockquote"]],["lheading",n(6850)],["paragraph",n(6864)]];function o(){this.ruler=new r;for(var e=0;e=n))&&!(e.sCount[a]=c){e.line=n;break}for(r=0;r=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i"+o(e[t].content)+""},a.code_block=function(e,t,n,r,i){var a=e[t];return""+o(e[t].content)+"\n"},a.fence=function(e,t,n,r,a){var s,c,l,u,p,f=e[t],d=f.info?i(f.info).trim():"",h="",m="";return d&&(h=(l=d.split(/(\s+)/g))[0],m=l.slice(2).join("")),0===(s=n.highlight&&n.highlight(f.content,h,m)||o(f.content)).indexOf(""+s+"\n"):"
"+s+"
\n"},a.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},a.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},a.text=function(e,t){return o(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a=4)return!1;if(62!==e.src.charCodeAt(O++))return!1;if(i)return!0;for(c=d=e.sCount[t]+1,32===e.src.charCodeAt(O)?(O++,c++,d++,o=!1,E=!0):9===e.src.charCodeAt(O)?(E=!0,(e.bsCount[t]+d)%4==3?(O++,c++,d++,o=!1):o=!0):E=!1,h=[e.bMarks[t]],e.bMarks[t]=O;O=C,g=[e.sCount[t]],e.sCount[t]=d-c,b=[e.tShift[t]],e.tShift[t]=O-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),y=e.parentType,e.parentType="blockquote",f=t+1;f=(C=e.eMarks[f])));f++)if(62!==e.src.charCodeAt(O++)||k){if(u)break;for(T=!1,s=0,l=w.length;s=C,m.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(E?1:0),g.push(e.sCount[f]),e.sCount[f]=d-c,b.push(e.tShift[f]),e.tShift[f]=O-e.bMarks[f]}for(v=e.blkIndent,e.blkIndent=0,(_=e.push("blockquote_open","blockquote",1)).markup=">",_.map=p=[t,0],e.md.block.tokenize(e,t,f),(_=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=S,e.parentType=y,p[1]=e.line,s=0;s=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}},3542:function(e){"use strict";e.exports=function(e,t,n,r){var i,o,a,s,c,l,u,p=!1,f=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(f+3>d)return!1;if(126!==(i=e.src.charCodeAt(f))&&96!==i)return!1;if(c=f,(o=(f=e.skipChars(f,i))-c)<3)return!1;if(u=e.src.slice(c,f),a=e.src.slice(f,d),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(f=c=e.bMarks[s]+e.tShift[s])<(d=e.eMarks[s])&&e.sCount[s]=4||(f=e.skipChars(f,i))-c=4)return!1;if(35!==(o=e.src.charCodeAt(l))||l>=u)return!1;for(a=1,o=e.src.charCodeAt(++l);35===o&&l6||ll&&r(e.src.charCodeAt(s-1))&&(u=s),e.line=t+1,(c=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),c.map=[t,e.line],(c=e.push("inline","",0)).content=e.src.slice(l,u).trim(),c.map=[t,e.line],c.children=[],(c=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),0))}},5634:function(e,t,n){"use strict";var r=n(7022).isSpace;e.exports=function(e,t,n,i){var o,a,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(l++))&&45!==o&&95!==o)return!1;for(a=1;l|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var i,a,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(c=e.src.slice(l,u),i=0;i=4)return!1;for(f=e.parentType,e.parentType="paragraph";d3)){if(e.sCount[d]>=e.blkIndent&&(c=e.bMarks[d]+e.tShift[d])<(l=e.eMarks[d])&&(45===(p=e.src.charCodeAt(c))||61===p)&&(c=e.skipChars(c,p),(c=e.skipSpaces(c))>=l)){u=61===p?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=h.length;o=a)return-1;if((n=e.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=a)return-1;if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-i>=10)return-1}return o=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(P=!0),(x=o(e,t))>=0){if(f=!0,A=e.bMarks[t]+e.tShift[t],g=Number(e.src.slice(A,x-1)),P&&1!==g)return!1}else{if(!((x=i(e,t))>=0))return!1;f=!1}if(P&&e.skipSpaces(x)>=e.eMarks[t])return!1;if(y=e.src.charCodeAt(x-1),r)return!0;for(v=e.tokens.length,f?(I=e.push("ordered_list_open","ol",1),1!==g&&(I.attrs=[["start",g]])):I=e.push("bullet_list_open","ul",1),I.map=m=[t,0],I.markup=String.fromCharCode(y),E=t,N=!1,L=e.md.block.ruler.getRules("list"),_=e.parentType,e.parentType="list";E=b?1:T-p)>4&&(u=1),l=p+u,(I=e.push("list_item_open","li",1)).markup=String.fromCharCode(y),I.map=d=[t,0],f&&(I.info=e.src.slice(A,x-1)),O=e.tight,S=e.tShift[t],k=e.sCount[t],w=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=T,s>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!N||(R=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[t]=S,e.sCount[t]=k,e.tight=O,(I=e.push("list_item_close","li",-1)).markup=String.fromCharCode(y),E=t=e.line,d[1]=E,s=e.bMarks[t],E>=n)break;if(e.sCount[E]=4)break;for(D=!1,c=0,h=L.length;c3||e.sCount[c]<0)){for(r=!1,i=0,o=l.length;i=4)return!1;if(91!==e.src.charCodeAt(_))return!1;for(;++_3||e.sCount[S]<0)){for(b=!1,p=0,f=E.length;p0&&this.level++,this.tokens.push(i),i},o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,n,r){var o,a,s,c,l,u,p,f=e;if(e>=t)return"";for(u=new Array(t-e),o=0;fn?new Array(a-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return u.join("")},o.prototype.Token=r,e.exports=o},1785:function(e,t,n){"use strict";var r=n(7022).isSpace;function i(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function o(e){var t,n=[],r=0,i=e.length,o=!1,a=0,s="";for(t=e.charCodeAt(r);rn)return!1;if(f=t+1,e.sCount[f]=4)return!1;if((l=e.bMarks[f]+e.tShift[f])>=e.eMarks[f])return!1;if(124!==(_=e.src.charCodeAt(l++))&&45!==_&&58!==_)return!1;if(l>=e.eMarks[f])return!1;if(124!==(k=e.src.charCodeAt(l++))&&45!==k&&58!==k&&!r(k))return!1;if(45===_&&r(k))return!1;for(;l=4)return!1;if((d=o(c)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),0===(h=d.length)||h!==v.length)return!1;if(a)return!0;for(E=e.parentType,e.parentType="table",w=e.md.block.ruler.getRules("blockquote"),(m=e.push("table_open","table",1)).map=g=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u=4)break;for((d=o(c)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),f===t+2&&((m=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(m=e.push("tr_open","tr",1)).map=[f,f+1],u=0;u/i.test(e)}e.exports=function(e){var t,n,o,a,s,c,l,u,p,f,d,h,m,v,y,g,b,E,T=e.tokens;if(e.md.options.linkify)for(n=0,o=T.length;n=0;t--)if("link_close"!==(c=a[t]).type){if("html_inline"===c.type&&(E=c.content,/^\s]/i.test(E)&&m>0&&m--,i(c.content)&&m++),!(m>0)&&"text"===c.type&&e.md.linkify.test(c.content)){for(p=c.content,b=e.md.linkify.match(p),l=[],h=c.level,d=0,u=0;ud&&((s=new e.Token("text","",0)).content=p.slice(d,f),s.level=h,l.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",y]],s.level=h++,s.markup="linkify",s.info="auto",l.push(s),(s=new e.Token("text","",0)).content=g,s.level=h,l.push(s),(s=new e.Token("link_close","a",-1)).level=--h,s.markup="linkify",s.info="auto",l.push(s),d=b[u].lastIndex);d=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(r,o)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function s(e){var n,r,i=0;for(n=e.length-1;n>=0;n--)"text"!==(r=e[n]).type||i||t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}e.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)"inline"===e.tokens[r].type&&(n.test(e.tokens[r].content)&&a(e.tokens[r].children),t.test(e.tokens[r].content)&&s(e.tokens[r].children))}},8450:function(e,t,n){"use strict";var r=n(7022).isWhiteSpace,i=n(7022).isPunctChar,o=n(7022).isMdAsciiPunct,a=/['"]/,s=/['"]/g;function c(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function l(e,t){var n,a,l,u,p,f,d,h,m,v,y,g,b,E,T,w,_,k,S,O,C;for(S=[],n=0;n=0&&!(S[_].level<=d);_--);if(S.length=_+1,"text"===a.type){p=0,f=(l=a.content).length;e:for(;p=0)m=l.charCodeAt(u.index-1);else for(_=n-1;_>=0&&"softbreak"!==e[_].type&&"hardbreak"!==e[_].type;_--)if(e[_].content){m=e[_].content.charCodeAt(e[_].content.length-1);break}if(v=32,p=48&&m<=57&&(w=T=!1),T&&w&&(T=y,w=g),T||w){if(w)for(_=S.length-1;_>=0&&(h=S[_],!(S[_].level=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&l(e.tokens[t].children,e)}},6480:function(e,t,n){"use strict";var r=n(5872);function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=r,e.exports=i},3420:function(e){"use strict";var t=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var i,o,a,s,c,l,u=e.pos;if(60!==e.src.charCodeAt(u))return!1;for(c=e.pos,l=e.posMax;;){if(++u>=l)return!1;if(60===(s=e.src.charCodeAt(u)))return!1;if(62===s)break}return i=e.src.slice(c+1,u),n.test(i)?(o=e.md.normalizeLink(i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0)):!!t.test(i)&&(o=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0))}},9755:function(e){"use strict";e.exports=function(e,t){var n,r,i,o,a,s,c,l,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;ua;r-=o.jump+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(c=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(c=!0)),!c)){l=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+l,i.open=!1,o.end=n,o.jump=l,o.close=!1,s=-1;break}-1!==s&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}e.exports=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.w=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n?@[]^_`{|}~-".split("").forEach((function(e){i[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,o=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o=o||33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n)||!(i=e.src.slice(a).match(r))||(t||(e.push("html_inline","",0).content=e.src.slice(a,a+i[0].length)),e.pos+=i[0].length,0)))}},3006:function(e,t,n){"use strict";var r=n(7022).normalizeReference,i=n(7022).isSpace;e.exports=function(e,t){var n,o,a,s,c,l,u,p,f,d,h,m,v,y="",g=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,(c=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=c+1)=b)return!1;for(v=u,(f=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(y=e.md.normalizeLink(f.str),e.md.validateLink(y)?u=f.pos:y=""),v=u;u=b||41!==e.src.charCodeAt(u))return e.pos=g,!1;u++}else{if(void 0===e.env.references)return!1;if(u=0?s=e.src.slice(v,u++):u=c+1):u=c+1,s||(s=e.src.slice(l,c)),!(p=e.env.references[r(s)]))return e.pos=g,!1;y=p.href,d=p.title}return t||(a=e.src.slice(l,c),e.md.inline.parse(a,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=n=[["src",y],["alt",""]],h.children=m,h.content=a,d&&n.push(["title",d])),e.pos=u,e.posMax=b,!0}},1727:function(e,t,n){"use strict";var r=n(7022).normalizeReference,i=n(7022).isSpace;e.exports=function(e,t){var n,o,a,s,c,l,u,p,f="",d="",h=e.pos,m=e.posMax,v=e.pos,y=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(c=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((l=s+1)=m)return!1;if(v=l,(u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok){for(f=e.md.normalizeLink(u.str),e.md.validateLink(f)?l=u.pos:f="",v=l;l=m||41!==e.src.charCodeAt(l))&&(y=!0),l++}if(y){if(void 0===e.env.references)return!1;if(l=0?a=e.src.slice(v,l++):l=s+1):l=s+1,a||(a=e.src.slice(c,s)),!(p=e.env.references[r(a)]))return e.pos=h,!1;f=p.href,d=p.title}return t||(e.pos=c,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",f]],d&&n.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=l,e.posMax=m,!0}},3905:function(e,t,n){"use strict";var r=n(7022).isSpace;e.exports=function(e,t){var n,i,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;for(n=e.pending.length-1,i=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),o++;o0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},s.prototype.scanDelims=function(e,t){var n,r,s,c,l,u,p,f,d,h=e,m=!0,v=!0,y=this.posMax,g=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h0&&r++,"text"===i[t].type&&t+1=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t},3122:function(e){"use strict";var t={};function n(e,r){var i;return"string"!=typeof r&&(r=n.defaultChars),i=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),i.push(r);for(n=0;n=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&r)&&t+91114111?l+="����":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="�";return l}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n},729:function(e){"use strict";var t={};function n(e,r,i){var o,a,s,c,l,u="";for("string"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),l=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1=56320&&c<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[o]);return u}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},2201:function(e){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",(t+=e.search||"")+(e.hash||"")}},8765:function(e,t,n){"use strict";e.exports.encode=n(729),e.exports.decode=n(3122),e.exports.format=n(2201),e.exports.parse=n(9553)},9553:function(e){"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(o),s=["%","/","?",";","#"].concat(a),c=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,o,a,d,h,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var v=i.exec(m);if(v)return this.pathname=v[1],v[2]&&(this.search=v[2]),this}var y=n.exec(m);if(y&&(a=(y=y[0]).toLowerCase(),this.protocol=y,m=m.substr(y.length)),(t||y||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(h="//"===m.substr(0,2))||y&&p[y]||(m=m.substr(2),this.slashes=!0)),!p[y]&&(h||y&&!f[y])){var g,b,E=-1;for(r=0;r127?S+="x":S+=k[O];if(!S.match(l)){var x=_.slice(0,r),N=_.slice(r+1),A=k.match(u);A&&(x.push(A[1]),N.unshift(A[2])),N.length&&(m=N.join(".")+m),this.hostname=x.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var D=m.indexOf("#");-1!==D&&(this.hash=m.substr(D),m=m.slice(0,D));var L=m.indexOf("?");return-1!==L&&(this.search=m.substr(L),m=m.slice(0,L)),m&&(this.pathname=m),f[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}},4357:function(e){"use strict";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},3689:function(e,t,n){"use strict";n.r(t),n.d(t,{ucs2decode:function(){return d},ucs2encode:function(){return h},decode:function(){return y},encode:function(){return g},toASCII:function(){return E},toUnicode:function(){return b}});const r=2147483647,i=36,o=/^xn--/,a=/[^\0-\x7E]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=Math.floor,u=String.fromCharCode;function p(e){throw new RangeError(c[e])}function f(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(s,".")).split("."),t).join(".");return r+i}function d(e){const t=[];let n=0;const r=e.length;for(;n=55296&&i<=56319&&nString.fromCodePoint(...e),m=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},v=function(e,t,n){let r=0;for(e=n?l(e/700):e>>1,e+=l(e/t);e>455;r+=i)e=l(e/35);return l(r+36*e/(e+38))},y=function(e){const t=[],n=e.length;let o=0,a=128,s=72,c=e.lastIndexOf("-");c<0&&(c=0);for(let n=0;n=128&&p("not-basic"),t.push(e.charCodeAt(n));for(let f=c>0?c+1:0;f=n&&p("invalid-input");const c=(u=e.charCodeAt(f++))-48<10?u-22:u-65<26?u-65:u-97<26?u-97:i;(c>=i||c>l((r-o)/t))&&p("overflow"),o+=c*t;const d=a<=s?1:a>=s+26?26:a-s;if(cl(r/h)&&p("overflow"),t*=h}const d=t.length+1;s=v(o-c,d,0==c),l(o/d)>r-a&&p("overflow"),a+=l(o/d),o%=d,t.splice(o++,0,a)}var u;return String.fromCodePoint(...t)},g=function(e){const t=[];let n=(e=d(e)).length,o=128,a=0,s=72;for(const n of e)n<128&&t.push(u(n));let c=t.length,f=c;for(c&&t.push("-");f=o&&tl((r-a)/d)&&p("overflow"),a+=(n-o)*d,o=n;for(const n of e)if(nr&&p("overflow"),n==o){let e=a;for(let n=i;;n+=i){const r=n<=s?1:n>=s+26?26:n-s;if(eNumber(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function d(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&u(n,e).includes(e.arrayFormatSeparator);n=o?u(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?u(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],o):r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=h(n[e],t);else r[e]=h(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=p(n):e[t]=n,e}),Object.create(null))}t.extract=d,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[",i,"]"].join("")]:[...n,[l(t,e),"[",l(i,e),"]=",l(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[]"].join("")]:[...n,[l(t,e),"[]=",l(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[l(n,e),t,l(i,e)].join("")]:[[r,l(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,l(t,e)]:[...n,[l(t,e),"=",l(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?l(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?l(n,t)+"[]":i.reduce(r(n),[]).join("&"):l(n,t)+"="+l(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:m(d(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=f(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let c=t.stringify(a,n);c&&(c=`?${c}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[s]?l(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${c}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:c}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:c},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},9921:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,E=n?Symbol.for("react.scope"):60119;function T(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case p:case o:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case l:case f:case v:case m:case c:return e;default:return t}}case i:return t}}}function w(e){return T(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return w(e)||T(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return T(e)===l},t.isContextProvider=function(e){return T(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return T(e)===f},t.isFragment=function(e){return T(e)===o},t.isLazy=function(e){return T(e)===v},t.isMemo=function(e){return T(e)===m},t.isPortal=function(e){return T(e)===i},t.isProfiler=function(e){return T(e)===s},t.isStrictMode=function(e){return T(e)===a},t.isSuspense=function(e){return T(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===s||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===g||e.$$typeof===b||e.$$typeof===E||e.$$typeof===y)},t.typeOf=T},9864:function(e,t,n){"use strict";e.exports=n(9921)},6774:function(e){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},610:function(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},1742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=t,e=[],r.O=function(t,n,i,o){if(!n){var a=1/0;for(u=0;u=o)&&Object.keys(r.O).every((function(e){return r.O[e](n[c])}))?n.splice(c--,1):(s=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,i,o]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={143:0,826:0,611:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var i,o,a=n[0],s=n[1],c=n[2],l=0;if(a.some((function(t){return 0!==e[t]}))){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(c)var u=c(r)}for(t&&t(n);l { useEffect(() => { if (!render) { + const container = document.getElementById("graphiql"); + if (container) { + container.classList.remove("graphiql-container"); + } hooks.doAction("graphiql_rendered"); setRender(true); } diff --git a/wp-graphiql-2.php b/wp-graphiql-2.php index e477ee5..65e66df 100644 --- a/wp-graphiql-2.php +++ b/wp-graphiql-2.php @@ -49,40 +49,6 @@ true ); - // Extensions looking to extend GraphiQL can hook in here, - // after the window object is established, but before the App renders - do_action( 'enqueue_graphiql_extension' ); - - // Enqueue the assets for the Explorer before enqueueing the app, - // so that the JS in the exporter that hooks into the app will be available - // by time the app is enqueued - $composer_asset_file = include( plugin_dir_path( __FILE__ ) . 'build/graphiqlQueryComposer.asset.php'); - - wp_enqueue_script( - 'wp-graphiql-query-composer', // Handle. - plugins_url( 'build/graphiqlQueryComposer.js', __FILE__ ), - array_merge( ['wp-graphiql'], $composer_asset_file['dependencies'] ), - $composer_asset_file['version'], - true - ); - - wp_enqueue_style( - 'wp-graphiql-query-composer', - plugins_url( 'build/graphiqlQueryComposer.css', __FILE__ ), - [ 'wp-components' ], - $composer_asset_file['version'] - ); - - $auth_switch_asset_file = include( plugin_dir_path( __FILE__ ) . 'build/graphiqlAuthSwitch.asset.php'); - - wp_enqueue_script( - 'wp-graphiql-auth-switch', // Handle. - plugins_url( 'build/graphiqlAuthSwitch.js', __FILE__ ), - array_merge( ['wp-graphiql'], $auth_switch_asset_file['dependencies'] ), - $auth_switch_asset_file['version'], - true - ); - $app_asset_file = include( plugin_dir_path( __FILE__ ) . 'build/app.asset.php'); wp_enqueue_script( @@ -111,5 +77,63 @@ ] ); + // Extensions looking to extend GraphiQL can hook in here, + // after the window object is established, but before the App renders + do_action( 'enqueue_graphiql_extension' ); + + }); +/** + * Enqueue extension styles and scripts + * + * These extensions are part of WPGraphiQL core, but were built in a way + * to showcase how extension APIs can be used to extend WPGraphiQL + */ +add_action( 'enqueue_graphiql_extension', 'graphiql_enqueue_query_composer' ); +add_action( 'enqueue_graphiql_extension', 'graphiql_enqueue_auth_switch' ); + +/** + * Enqueue the GraphiQL Auth Switch extension, which adds a button to the GraphiQL toolbar + * that allows the user to switch between the logged in user and the current user + */ +function graphiql_enqueue_auth_switch() { + + $auth_switch_asset_file = include( plugin_dir_path( __FILE__ ) . 'build/graphiqlAuthSwitch.asset.php'); + + wp_enqueue_script( + 'wp-graphiql-auth-switch', // Handle. + plugins_url( 'build/graphiqlAuthSwitch.js', __FILE__ ), + array_merge( ['wp-graphiql', 'wp-graphiql-app'], $auth_switch_asset_file['dependencies'] ), + $auth_switch_asset_file['version'], + true + ); +} + +/** + * Enqueue the Query Composer extension, which adds a button to the GraphiQL toolbar + * that allows the user to open the Query Composer and compose a query with a form-based UI + */ +function graphiql_enqueue_query_composer() { + + // Enqueue the assets for the Explorer before enqueueing the app, + // so that the JS in the exporter that hooks into the app will be available + // by time the app is enqueued + $composer_asset_file = include( plugin_dir_path( __FILE__ ) . 'build/graphiqlQueryComposer.asset.php'); + + wp_enqueue_script( + 'wp-graphiql-query-composer', // Handle. + plugins_url( 'build/graphiqlQueryComposer.js', __FILE__ ), + array_merge( ['wp-graphiql', 'wp-graphiql-app'], $composer_asset_file['dependencies'] ), + $composer_asset_file['version'], + true + ); + + wp_enqueue_style( + 'wp-graphiql-query-composer', + plugins_url( 'build/graphiqlQueryComposer.css', __FILE__ ), + [ 'wp-components' ], + $composer_asset_file['version'] + ); + +}