@yuntijs/arcadia-bff-sdk 1.0.47 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/sdk.js +29 -11
- package/dist/umd/index.min.js +1 -1
- package/dist/umd/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/umd/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ArcadiaBffSDK=t():e.ArcadiaBffSDK=t()}(self,(function(){return function(){var e,t,n={615:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in e,o="ArrayBuffer"in e;if(o)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e,t,n,r=f(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=h(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,t){this.map[c(e)]=l(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,i=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),g.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function x(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function E(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:0,statusText:""});return e.type="error",e};var D=[301,302,303,307,308];E.redirect=function(e,t){if(-1===D.indexOf(t))throw new RangeError("Invalid status code");return new E(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function k(e,n){return new Promise((function(r,a){var o=new b(e,n);if(o.signal&&o.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new E(i,n))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.onabort=function(){a(new t.DOMException("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),o.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",u)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}k.polyfill=!0,e.fetch||(e.fetch=k,e.Headers=d,e.Request=b,e.Response=E),t.Headers=d,t.Request=b,t.Response=E,t.fetch=k,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},199:function(e,t,n){"use strict";var r=n(313);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&l({inst:i})}),[e,n,t]),o((function(){return c(i)&&l({inst:i}),e((function(){c(i)&&l({inst:i})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},591:function(e,t,n){"use strict";e.exports=n(199)},313:function(e){"use strict";e.exports=window.React},18:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},750:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},119:function(e,t,n){var r=n(18);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},617:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},845:function(e){function t(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,a){var o=e.apply(n,r);function s(e){t(o,i,a,s,u,"next",e)}function u(e){t(o,i,a,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},473:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},823:function(e,t,n){var r=n(942),i=n(945);function a(t,n,o){return i()?(e.exports=a=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=a=function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&r(a,n.prototype),a},e.exports.__esModule=!0,e.exports.default=e.exports),a.apply(null,arguments)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},566:function(e,t,n){var r=n(514);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},862:function(e,t,n){var r=n(251);e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}},e.exports.__esModule=!0,e.exports.default=e.exports},808:function(e,t,n){var r=n(573),i=n(945),a=n(2);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},618:function(e,t,n){var r=n(514);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},573:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},809:function(e,t,n){var r=n(942);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},778:function(e){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},945:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},304:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},516:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},524:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},383:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},715:function(e,t,n){var r=n(618);function i(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}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},183:function(e,t,n){var r=n(65);e.exports=function(e,t){if(null==e)return{};var n,i,a=r(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},65:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports},2:function(e,t,n){var r=n(496).default,i=n(617);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},444:function(e,t,n){var r=n(496).default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},a=Object.prototype,o=a.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",p=u.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),o=new C(r||[]);return s(a,"_invoke",{value:O(e,n,o)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var m="suspendedStart",v="executing",y="completed",g={};function b(){}function x(){}function E(){}var D={};d(D,c,(function(){return this}));var k=Object.getPrototypeOf,T=k&&k(k(L([])));T&&T!==a&&o.call(T,c)&&(D=T);var w=E.prototype=b.prototype=Object.create(D);function _(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function n(i,a,s,u){var c=h(e[i],e,a);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==r(p)&&o.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(p).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var i;s(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}})}function O(e,n,r){var i=m;return function(a,o){if(i===v)throw new Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:t,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var u=I(s,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===m)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var c=h(e,n,r);if("normal"===c.type){if(i=r.done?y:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=y,r.method="throw",r.arg=c.arg)}}}function I(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=h(i,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+" is not iterable")}return x.prototype=E,s(w,"constructor",{value:E,configurable:!0}),s(E,"constructor",{value:x,configurable:!0}),x.displayName=d(E,p,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,d(e,p,"GeneratorFunction")),e.prototype=Object.create(w),e},n.awrap=function(e){return{__await:e}},_(N.prototype),d(N.prototype,l,(function(){return this})),n.AsyncIterator=N,n.async=function(e,t,r,i,a){void 0===a&&(a=Promise);var o=new N(f(e,t,r,i),a);return n.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},_(w),d(w,p,"Generator"),d(w,c,(function(){return this})),d(w,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},942:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},722:function(e,t,n){var r=n(750),i=n(516),a=n(251),o=n(524);e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},406:function(e){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},965:function(e,t,n){var r=n(119),i=n(304),a=n(251),o=n(383);e.exports=function(e){return r(e)||i(e)||a(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},727:function(e,t,n){var r=n(496).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},514:function(e,t,n){var r=n(496).default,i=n(727);e.exports=function(e){var t=i(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},496:function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},251:function(e,t,n){var r=n(18);e.exports=function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},407:function(e,t,n){var r=n(573),i=n(942),a=n(778),o=n(823);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return o(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e].call(a.exports,a,a.exports,i),a.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);i.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){o[e]=function(){return n[e]}}));return o.default=function(){return n},i.d(a,o),a},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";i.r(a),i.d(a,{AllDataProcessListByCountDocument:function(){return Ii},AllDataProcessListByPageDocument:function(){return Oi},CheckDatasourceDocument:function(){return Gi},ClientError:function(){return We},CreateApplicationDocument:function(){return Di},CreateDataProcessTaskDocument:function(){return Ci},CreateDatasetDocument:function(){return Ri},CreateDatasourceDocument:function(){return ji},CreateEmbedderDocument:function(){return Ki},CreateKnowledgeBaseDocument:function(){return Xi},CreateModelDocument:function(){return aa},CreateVersionedDatasetDocument:function(){return ua},CreateWorkerDocument:function(){return ma},DataProcessDetailsDocument:function(){return Si},DataProcessSupportTypeDocument:function(){return Ai},DeleteApplicationDocument:function(){return Ti},DeleteDataProcessTaskDocument:function(){return Li},DeleteDatasetsDocument:function(){return Fi},DeleteDatasourcesDocument:function(){return Ui},DeleteEmbeddersDocument:function(){return Hi},DeleteKnowledgeBaseDocument:function(){return ea},DeleteModelsDocument:function(){return sa},DeleteVersionedDatasetsDocument:function(){return la},DeleteWorkersDocument:function(){return ya},GetApplicationDocument:function(){return _i},GetDatasetDocument:function(){return Mi},GetDatasourceDocument:function(){return $i},GetEmbedderDocument:function(){return zi},GetKnowledgeBaseDocument:function(){return Qi},GetLlmDocument:function(){return na},GetModelDocument:function(){return ia},GetVersionedDatasetDocument:function(){return pa},GetWorkerDocument:function(){return ha},GraphQLClient:function(){return dt},GraphQLWebSocketClient:function(){return et},ListApplicationsDocument:function(){return Ni},ListDatasetsDocument:function(){return Pi},ListDatasourcesDocument:function(){return Vi},ListEmbeddersDocument:function(){return Yi},ListKnowledgeBasesDocument:function(){return Ji},ListLlMsDocument:function(){return ta},ListModelsDocument:function(){return ra},ListVersionedDatasetsDocument:function(){return da},ListWorkersDocument:function(){return fa},UpdateApplicationConfigDocument:function(){return wi},UpdateApplicationDocument:function(){return ki},UpdateDatasetDocument:function(){return qi},UpdateDatasourceDocument:function(){return Bi},UpdateEmbedderDocument:function(){return Wi},UpdateKnowledgeBaseDocument:function(){return Zi},UpdateModelDocument:function(){return oa},UpdateVersionedDatasetDocument:function(){return ca},UpdateWorkerDocument:function(){return va},batchRequests:function(){return yt},client:function(){return Ta},errorsHandler:function(){return Zt},getSdk:function(){return ba},getSdkWithHooks:function(){return xa},gql:function(){return Dt},initGraphQLClient:function(){return _a},initSdk:function(){return Oa},initSdkWithHooks:function(){return Ia},rawRequest:function(){return ht},request:function(){return mt},requestMiddleware:function(){return Da},resolveRequestDocument:function(){return Ke},responseMiddleware:function(){return ka},sdk:function(){return wa},useSdk:function(){return Aa}});var e={};i.r(e),i.d(e,{exclude:function(){return Gt},extract:function(){return Ft},parse:function(){return jt},parseUrl:function(){return Ut},pick:function(){return $t},stringify:function(){return Bt},stringifyUrl:function(){return Vt}});var t=i(444),n=i.n(t),r=i(845),o=i.n(r),s=i(715),u=i.n(s),c=i(722),l=i.n(c),p=i(183),d=i.n(p),f=i(965),h=i.n(f),m=i(618),v=i(473),y=i(566),g=i(496),b=i.n(g),x=JSON,E=function(e,t,n){return e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0}},D=function(e,t,n){return e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0}},k=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=r[0],o=r[1];return e.document?e:{url:e,document:t,variables:a,requestHeaders:o,signal:void 0}},T=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=r[0],o=r[1];return e.query?e:{url:e,query:t,variables:a,requestHeaders:o,signal:void 0}},w=i(862),_=i(617),N=i(809),O=i(808),I=i(407);function A(e){return"object"==g(e)&&null!==e}function S(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}var C=/\r\n|[\n\r]/g;function L(e,t){var n,r=0,i=1,a=w(e.body.matchAll(C));try{for(a.s();!(n=a.n()).done;){var o=n.value;if("number"==typeof o.index||S(!1),o.index>=t)break;r=o.index+o[0].length,i+=1}}catch(e){a.e(e)}finally{a.f()}return{line:i,column:t+1-r}}function P(e){return M(e.source,L(e.source,e.start))}function M(e,t){var n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=1===t.line?n:0,u=t.column+s,c="".concat(e.name,":").concat(o,":").concat(u,"\n"),l=r.split(/\r\n|[\n\r]/g),p=l[i];if(p.length>120){for(var d=Math.floor(u/80),h=u%80,m=[],v=0;v<p.length;v+=80)m.push(p.slice(v,v+80));return c+R([["".concat(o," |"),m[0]]].concat(f(m.slice(1,d+1).map((function(e){return["|",e]}))),[["|","^".padStart(h)],["|",m[d+1]]]))}return c+R([["".concat(o-1," |"),l[i-1]],["".concat(o," |"),p],["|","^".padStart(u)],["".concat(o+1," |"),l[i+1]]])}function R(e){var t=e.filter((function(e){var t=c(e,2);t[0];return void 0!==t[1]})),n=Math.max.apply(Math,f(t.map((function(e){return c(e,1)[0].length}))));return t.map((function(e){var t=c(e,2),r=t[0],i=t[1];return r.padStart(n)+(i?" "+i:"")})).join("\n")}function q(e){var t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var F=function(e,t){N(r,e);var n=O(r);function r(e){var t,i,a,o;v(this,r);for(var s=arguments.length,u=new Array(s>1?s-1:0),c=1;c<s;c++)u[c-1]=arguments[c];var l=q(u),p=l.nodes,d=l.source,f=l.positions,h=l.path,m=l.originalError,y=l.extensions;(t=n.call(this,e)).name="GraphQLError",t.path=null!=h?h:void 0,t.originalError=null!=m?m:void 0,t.nodes=j(Array.isArray(p)?p:p?[p]:void 0);var g=j(null===(i=t.nodes)||void 0===i?void 0:i.map((function(e){return e.loc})).filter((function(e){return null!=e})));t.source=null!=d?d:null==g||null===(a=g[0])||void 0===a?void 0:a.source,t.positions=null!=f?f:null==g?void 0:g.map((function(e){return e.start})),t.locations=f&&d?f.map((function(e){return L(d,e)})):null==g?void 0:g.map((function(e){return L(e.source,e.start)}));var b=A(null==m?void 0:m.extensions)?null==m?void 0:m.extensions:void 0;return t.extensions=null!==(o=null!=y?y:b)&&void 0!==o?o:Object.create(null),Object.defineProperties(_(t),{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=m&&m.stack?Object.defineProperty(_(t),"stack",{value:m.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(_(t),r):Object.defineProperty(_(t),"stack",{value:Error().stack,writable:!0,configurable:!0}),t}return y(r,[{key:t,get:function(){return"GraphQLError"}},{key:"toString",value:function(){var e=this.message;if(this.nodes){var t,n=w(this.nodes);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.loc&&(e+="\n\n"+P(r.loc))}}catch(e){n.e(e)}finally{n.f()}}else if(this.source&&this.locations){var i,a=w(this.locations);try{for(a.s();!(i=a.n()).done;){var o=i.value;e+="\n\n"+M(this.source,o)}}catch(e){a.e(e)}finally{a.f()}}return e}},{key:"toJSON",value:function(){var e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}]),r}(I(Error),Symbol.toStringTag);function j(e){return void 0===e||0===e.length?void 0:e}function B(e,t,n){return new F("Syntax Error: ".concat(n),{source:e,positions:[t]})}var U,V,$,G,K=function(e){function t(e,n,r){v(this,t),this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=r}return y(t,[{key:e,get:function(){return"Location"}},{key:"toJSON",value:function(){return{start:this.start,end:this.end}}}]),t}(Symbol.toStringTag),W=function(e){function t(e,n,r,i,a,o){v(this,t),this.kind=e,this.start=n,this.end=r,this.line=i,this.column=a,this.value=o,this.prev=null,this.next=null}return y(t,[{key:e,get:function(){return"Token"}},{key:"toJSON",value:function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}]),t}(Symbol.toStringTag),H={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Y=new Set(Object.keys(H));function z(e){var t=null==e?void 0:e.kind;return"string"==typeof t&&Y.has(t)}function J(e){return 9===e||32===e}function Q(e){return e>=48&&e<=57}function X(e){return e>=97&&e<=122||e>=65&&e<=90}function Z(e){return X(e)||95===e}function ee(e){return X(e)||Q(e)||95===e}function te(e){for(var t,n=Number.MAX_SAFE_INTEGER,r=null,i=-1,a=0;a<e.length;++a){var o,s=e[a],u=ne(s);u!==s.length&&(r=null!==(o=r)&&void 0!==o?o:a,i=a,0!==a&&u<n&&(n=u))}return e.map((function(e,t){return 0===t?e:e.slice(n)})).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function ne(e){for(var t=0;t<e.length&&J(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(U||(U={})),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"}(V||(V={})),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"}($||($={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(G||(G={}));var re=function(e){function t(e){v(this,t);var n=new W(G.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}return y(t,[{key:e,get:function(){return"Lexer"}},{key:"advance",value:function(){return this.lastToken=this.token,this.token=this.lookahead()}},{key:"lookahead",value:function(){var e=this.token;if(e.kind!==G.EOF)do{if(e.next)e=e.next;else{var t=le(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===G.COMMENT);return e}}]),t}(Symbol.toStringTag);function ie(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function ae(e,t){return oe(e.charCodeAt(t))&&se(e.charCodeAt(t+1))}function oe(e){return e>=55296&&e<=56319}function se(e){return e>=56320&&e<=57343}function ue(e,t){var n=e.source.body.codePointAt(t);if(void 0===n)return G.EOF;if(n>=32&&n<=126){var r=String.fromCodePoint(n);return'"'===r?"'\"'":'"'.concat(r,'"')}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function ce(e,t,n,r,i){var a=e.line,o=1+n-e.lineStart;return new W(t,n,r,a,o,i)}function le(e,t){for(var n=e.source.body,r=n.length,i=t;i<r;){var a=n.charCodeAt(i);switch(a){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return pe(e,i);case 33:return ce(e,G.BANG,i,i+1);case 36:return ce(e,G.DOLLAR,i,i+1);case 38:return ce(e,G.AMP,i,i+1);case 40:return ce(e,G.PAREN_L,i,i+1);case 41:return ce(e,G.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return ce(e,G.SPREAD,i,i+3);break;case 58:return ce(e,G.COLON,i,i+1);case 61:return ce(e,G.EQUALS,i,i+1);case 64:return ce(e,G.AT,i,i+1);case 91:return ce(e,G.BRACKET_L,i,i+1);case 93:return ce(e,G.BRACKET_R,i,i+1);case 123:return ce(e,G.BRACE_L,i,i+1);case 124:return ce(e,G.PIPE,i,i+1);case 125:return ce(e,G.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?xe(e,i):he(e,i)}if(Q(a)||45===a)return de(e,i,a);if(Z(a))return Ee(e,i);throw B(e.source,i,39===a?"Unexpected single quote character ('), did you mean to use a double quote (\")?":ie(a)||ae(n,i)?"Unexpected character: ".concat(ue(e,i),"."):"Invalid character: ".concat(ue(e,i),"."))}return ce(e,G.EOF,r,r)}function pe(e,t){for(var n=e.source.body,r=n.length,i=t+1;i<r;){var a=n.charCodeAt(i);if(10===a||13===a)break;if(ie(a))++i;else{if(!ae(n,i))break;i+=2}}return ce(e,G.COMMENT,t,i,n.slice(t+1,i))}function de(e,t,n){var r=e.source.body,i=t,a=n,o=!1;if(45===a&&(a=r.charCodeAt(++i)),48===a){if(Q(a=r.charCodeAt(++i)))throw B(e.source,i,"Invalid number, unexpected digit after 0: ".concat(ue(e,i),"."))}else i=fe(e,i,a),a=r.charCodeAt(i);if(46===a&&(o=!0,a=r.charCodeAt(++i),i=fe(e,i,a),a=r.charCodeAt(i)),69!==a&&101!==a||(o=!0,43!==(a=r.charCodeAt(++i))&&45!==a||(a=r.charCodeAt(++i)),i=fe(e,i,a),a=r.charCodeAt(i)),46===a||Z(a))throw B(e.source,i,"Invalid number, expected digit but got: ".concat(ue(e,i),"."));return ce(e,o?G.FLOAT:G.INT,t,i,r.slice(t,i))}function fe(e,t,n){if(!Q(n))throw B(e.source,t,"Invalid number, expected digit but got: ".concat(ue(e,t),"."));for(var r=e.source.body,i=t+1;Q(r.charCodeAt(i));)++i;return i}function he(e,t){for(var n=e.source.body,r=n.length,i=t+1,a=i,o="";i<r;){var s=n.charCodeAt(i);if(34===s)return o+=n.slice(a,i),ce(e,G.STRING,t,i+1,o);if(92!==s){if(10===s||13===s)break;if(ie(s))++i;else{if(!ae(n,i))throw B(e.source,i,"Invalid character within String: ".concat(ue(e,i),"."));i+=2}}else{o+=n.slice(a,i);var u=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?me(e,i):ve(e,i):be(e,i);o+=u.value,a=i+=u.size}}throw B(e.source,i,"Unterminated string.")}function me(e,t){for(var n=e.source.body,r=0,i=3;i<12;){var a=n.charCodeAt(t+i++);if(125===a){if(i<5||!ie(r))break;return{value:String.fromCodePoint(r),size:i}}if((r=r<<4|ge(a))<0)break}throw B(e.source,t,'Invalid Unicode escape sequence: "'.concat(n.slice(t,t+i),'".'))}function ve(e,t){var n=e.source.body,r=ye(n,t+2);if(ie(r))return{value:String.fromCodePoint(r),size:6};if(oe(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){var i=ye(n,t+8);if(se(i))return{value:String.fromCodePoint(r,i),size:12}}throw B(e.source,t,'Invalid Unicode escape sequence: "'.concat(n.slice(t,t+6),'".'))}function ye(e,t){return ge(e.charCodeAt(t))<<12|ge(e.charCodeAt(t+1))<<8|ge(e.charCodeAt(t+2))<<4|ge(e.charCodeAt(t+3))}function ge(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function be(e,t){var n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw B(e.source,t,'Invalid character escape sequence: "'.concat(n.slice(t,t+2),'".'))}function xe(e,t){for(var n=e.source.body,r=n.length,i=e.lineStart,a=t+3,o=a,s="",u=[];a<r;){var c=n.charCodeAt(a);if(34===c&&34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2)){s+=n.slice(o,a),u.push(s);var l=ce(e,G.BLOCK_STRING,t,a+3,te(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,l}if(92!==c||34!==n.charCodeAt(a+1)||34!==n.charCodeAt(a+2)||34!==n.charCodeAt(a+3))if(10!==c&&13!==c)if(ie(c))++a;else{if(!ae(n,a))throw B(e.source,a,"Invalid character within String: ".concat(ue(e,a),"."));a+=2}else s+=n.slice(o,a),u.push(s),13===c&&10===n.charCodeAt(a+1)?a+=2:++a,s="",o=a,i=a;else s+=n.slice(o,a),o=a+1,a+=4}throw B(e.source,a,"Unterminated string.")}function Ee(e,t){for(var n=e.source.body,r=n.length,i=t+1;i<r;){if(!ee(n.charCodeAt(i)))break;++i}return ce(e,G.NAME,t,i,n.slice(t,i))}function De(e,t){if(!Boolean(e))throw new Error(t)}function ke(e){return Te(e,[])}function Te(e,t){switch(g(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";var n=[].concat(f(t),[e]);if(function(e){return"function"==typeof e.toJSON}(e)){var r=e.toJSON();if(r!==e)return"string"==typeof r?r:Te(r,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],a=0;a<n;++a)i.push(Te(e[a],t));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";var r=n.map((function(e){var n=c(e,2);return n[0]+": "+Te(n[1],t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}var we=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"===g(e)&&null!==e){var n,r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){var i=ke(e);throw new Error("Cannot use ".concat(r,' "').concat(i,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1},_e=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};v(this,t),"string"==typeof e||De(!1,"Body must be a string. Received: ".concat(ke(e),".")),this.body=e,this.name=n,this.locationOffset=r,this.locationOffset.line>0||De(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||De(!1,"column in locationOffset is 1-indexed and must be positive.")}return y(t,[{key:e,get:function(){return"Source"}}]),t}(Symbol.toStringTag);function Ne(e){return we(e,_e)}function Oe(e,t){return new Ie(e,t).parseDocument()}var Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v(this,e);var r=Ne(t)?t:new _e(t);this._lexer=new re(r),this._options=n,this._tokenCounter=0}return y(e,[{key:"parseName",value:function(){var e=this.expectToken(G.NAME);return this.node(e,{kind:$.NAME,value:e.value})}},{key:"parseDocument",value:function(){return this.node(this._lexer.token,{kind:$.DOCUMENT,definitions:this.many(G.SOF,this.parseDefinition,G.EOF)})}},{key:"parseDefinition",value:function(){if(this.peek(G.BRACE_L))return this.parseOperationDefinition();var e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===G.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 B(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}},{key:"parseOperationDefinition",value:function(){var e=this._lexer.token;if(this.peek(G.BRACE_L))return this.node(e,{kind:$.OPERATION_DEFINITION,operation:U.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});var t,n=this.parseOperationType();return this.peek(G.NAME)&&(t=this.parseName()),this.node(e,{kind:$.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseOperationType",value:function(){var e=this.expectToken(G.NAME);switch(e.value){case"query":return U.QUERY;case"mutation":return U.MUTATION;case"subscription":return U.SUBSCRIPTION}throw this.unexpected(e)}},{key:"parseVariableDefinitions",value:function(){return this.optionalMany(G.PAREN_L,this.parseVariableDefinition,G.PAREN_R)}},{key:"parseVariableDefinition",value:function(){return this.node(this._lexer.token,{kind:$.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(G.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(G.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}},{key:"parseVariable",value:function(){var e=this._lexer.token;return this.expectToken(G.DOLLAR),this.node(e,{kind:$.VARIABLE,name:this.parseName()})}},{key:"parseSelectionSet",value:function(){return this.node(this._lexer.token,{kind:$.SELECTION_SET,selections:this.many(G.BRACE_L,this.parseSelection,G.BRACE_R)})}},{key:"parseSelection",value:function(){return this.peek(G.SPREAD)?this.parseFragment():this.parseField()}},{key:"parseField",value:function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(G.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:$.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(G.BRACE_L)?this.parseSelectionSet():void 0})}},{key:"parseArguments",value:function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(G.PAREN_L,t,G.PAREN_R)}},{key:"parseArgument",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._lexer.token,n=this.parseName();return this.expectToken(G.COLON),this.node(t,{kind:$.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}},{key:"parseConstArgument",value:function(){return this.parseArgument(!0)}},{key:"parseFragment",value:function(){var e=this._lexer.token;this.expectToken(G.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(G.NAME)?this.node(e,{kind:$.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:$.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentDefinition",value:function(){var e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:$.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:$.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentName",value:function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}},{key:"parseValueLiteral",value:function(e){var t=this._lexer.token;switch(t.kind){case G.BRACKET_L:return this.parseList(e);case G.BRACE_L:return this.parseObject(e);case G.INT:return this.advanceLexer(),this.node(t,{kind:$.INT,value:t.value});case G.FLOAT:return this.advanceLexer(),this.node(t,{kind:$.FLOAT,value:t.value});case G.STRING:case G.BLOCK_STRING:return this.parseStringLiteral();case G.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:$.BOOLEAN,value:!0});case"false":return this.node(t,{kind:$.BOOLEAN,value:!1});case"null":return this.node(t,{kind:$.NULL});default:return this.node(t,{kind:$.ENUM,value:t.value})}case G.DOLLAR:if(e){if(this.expectToken(G.DOLLAR),this._lexer.token.kind===G.NAME){var n=this._lexer.token.value;throw B(this._lexer.source,t.start,'Unexpected variable "$'.concat(n,'" in constant value.'))}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}},{key:"parseConstValueLiteral",value:function(){return this.parseValueLiteral(!0)}},{key:"parseStringLiteral",value:function(){var e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:$.STRING,value:e.value,block:e.kind===G.BLOCK_STRING})}},{key:"parseList",value:function(e){var t=this;return this.node(this._lexer.token,{kind:$.LIST,values:this.any(G.BRACKET_L,(function(){return t.parseValueLiteral(e)}),G.BRACKET_R)})}},{key:"parseObject",value:function(e){var t=this;return this.node(this._lexer.token,{kind:$.OBJECT,fields:this.any(G.BRACE_L,(function(){return t.parseObjectField(e)}),G.BRACE_R)})}},{key:"parseObjectField",value:function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(G.COLON),this.node(t,{kind:$.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}},{key:"parseDirectives",value:function(e){for(var t=[];this.peek(G.AT);)t.push(this.parseDirective(e));return t}},{key:"parseConstDirectives",value:function(){return this.parseDirectives(!0)}},{key:"parseDirective",value:function(e){var t=this._lexer.token;return this.expectToken(G.AT),this.node(t,{kind:$.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}},{key:"parseTypeReference",value:function(){var e,t=this._lexer.token;if(this.expectOptionalToken(G.BRACKET_L)){var n=this.parseTypeReference();this.expectToken(G.BRACKET_R),e=this.node(t,{kind:$.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(G.BANG)?this.node(t,{kind:$.NON_NULL_TYPE,type:e}):e}},{key:"parseNamedType",value:function(){return this.node(this._lexer.token,{kind:$.NAMED_TYPE,name:this.parseName()})}},{key:"peekDescription",value:function(){return this.peek(G.STRING)||this.peek(G.BLOCK_STRING)}},{key:"parseDescription",value:function(){if(this.peekDescription())return this.parseStringLiteral()}},{key:"parseSchemaDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseConstDirectives(),r=this.many(G.BRACE_L,this.parseOperationTypeDefinition,G.BRACE_R);return this.node(e,{kind:$.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}},{key:"parseOperationTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(G.COLON);var n=this.parseNamedType();return this.node(e,{kind:$.OPERATION_TYPE_DEFINITION,operation:t,type:n})}},{key:"parseScalarTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:$.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}},{key:"parseObjectTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:$.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}},{key:"parseImplementsInterfaces",value:function(){return this.expectOptionalKeyword("implements")?this.delimitedMany(G.AMP,this.parseNamedType):[]}},{key:"parseFieldsDefinition",value:function(){return this.optionalMany(G.BRACE_L,this.parseFieldDefinition,G.BRACE_R)}},{key:"parseFieldDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(G.COLON);var i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:$.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a})}},{key:"parseArgumentDefs",value:function(){return this.optionalMany(G.PAREN_L,this.parseInputValueDef,G.PAREN_R)}},{key:"parseInputValueDef",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(G.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(G.EQUALS)&&(r=this.parseConstValueLiteral());var a=this.parseConstDirectives();return this.node(e,{kind:$.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:a})}},{key:"parseInterfaceTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:$.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}},{key:"parseUnionTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:$.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}},{key:"parseUnionMemberTypes",value:function(){return this.expectOptionalToken(G.EQUALS)?this.delimitedMany(G.PIPE,this.parseNamedType):[]}},{key:"parseEnumTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:$.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}},{key:"parseEnumValuesDefinition",value:function(){return this.optionalMany(G.BRACE_L,this.parseEnumValueDefinition,G.BRACE_R)}},{key:"parseEnumValueDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:$.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}},{key:"parseEnumValueName",value:function(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw B(this._lexer.source,this._lexer.token.start,"".concat(Ae(this._lexer.token)," is reserved and cannot be used for an enum value."));return this.parseName()}},{key:"parseInputObjectTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:$.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}},{key:"parseInputFieldsDefinition",value:function(){return this.optionalMany(G.BRACE_L,this.parseInputValueDef,G.BRACE_R)}},{key:"parseTypeSystemExtension",value:function(){var e=this._lexer.lookahead();if(e.kind===G.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}},{key:"parseSchemaExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseConstDirectives(),n=this.optionalMany(G.BRACE_L,this.parseOperationTypeDefinition,G.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:$.SCHEMA_EXTENSION,directives:t,operationTypes:n})}},{key:"parseScalarTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:$.SCALAR_TYPE_EXTENSION,name:t,directives:n})}},{key:"parseObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:$.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}},{key:"parseInterfaceTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:$.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}},{key:"parseUnionTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:$.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}},{key:"parseEnumTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:$.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}},{key:"parseInputObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:$.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}},{key:"parseDirectiveDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(G.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return this.node(e,{kind:$.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:a})}},{key:"parseDirectiveLocations",value:function(){return this.delimitedMany(G.PIPE,this.parseDirectiveLocation)}},{key:"parseDirectiveLocation",value:function(){var e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(V,t.value))return t;throw this.unexpected(e)}},{key:"node",value:function(e,t){return!0!==this._options.noLocation&&(t.loc=new K(e,this._lexer.lastToken,this._lexer.source)),t}},{key:"peek",value:function(e){return this._lexer.token.kind===e}},{key:"expectToken",value:function(e){var t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw B(this._lexer.source,t.start,"Expected ".concat(Se(e),", found ").concat(Ae(t),"."))}},{key:"expectOptionalToken",value:function(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}},{key:"expectKeyword",value:function(e){var t=this._lexer.token;if(t.kind!==G.NAME||t.value!==e)throw B(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(Ae(t),"."));this.advanceLexer()}},{key:"expectOptionalKeyword",value:function(e){var t=this._lexer.token;return t.kind===G.NAME&&t.value===e&&(this.advanceLexer(),!0)}},{key:"unexpected",value:function(e){var t=null!=e?e:this._lexer.token;return B(this._lexer.source,t.start,"Unexpected ".concat(Ae(t),"."))}},{key:"any",value:function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r}},{key:"optionalMany",value:function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]}},{key:"many",value:function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}},{key:"delimitedMany",value:function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}},{key:"advanceLexer",value:function(){var e=this._options.maxTokens,t=this._lexer.advance();if(void 0!==e&&t.kind!==G.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw B(this._lexer.source,t.start,"Document contains more that ".concat(e," tokens. Parsing aborted."))}}]),e}();function Ae(e){var t=e.value;return Se(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function Se(e){return function(e){return e===G.BANG||e===G.DOLLAR||e===G.AMP||e===G.PAREN_L||e===G.PAREN_R||e===G.SPREAD||e===G.COLON||e===G.EQUALS||e===G.AT||e===G.BRACKET_L||e===G.BRACKET_R||e===G.BRACE_L||e===G.PIPE||e===G.BRACE_R}(e)?'"'.concat(e,'"'):e}var Ce=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Le(e){return Pe[e.charCodeAt(0)]}var Pe=["\\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"],Me=Object.freeze({});function Re(e,t){var n=e[t];return"object"===g(n)?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function qe(e){return function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:H,r=new Map,i=0,a=Object.values($);i<a.length;i++){var o=a[i];r.set(o,Re(t,o))}var s=void 0,u=Array.isArray(e),l=[e],p=-1,d=[],f=e,h=void 0,m=void 0,v=[],y=[];do{var g=++p===l.length,b=g&&0!==d.length;if(g){if(h=0===y.length?void 0:v[v.length-1],f=m,m=y.pop(),b)if(u){f=f.slice();var x,E=0,D=w(d);try{for(D.s();!(x=D.n()).done;){var k=c(x.value,2),T=k[0],_=k[1],N=T-E;null===_?(f.splice(N,1),E++):f[N]=_}}catch(e){D.e(e)}finally{D.f()}}else{f=Object.defineProperties({},Object.getOwnPropertyDescriptors(f));var O,I=w(d);try{for(I.s();!(O=I.n()).done;){var A=c(O.value,2),S=A[0],C=A[1];f[S]=C}}catch(e){I.e(e)}finally{I.f()}}p=s.index,l=s.keys,d=s.edits,u=s.inArray,s=s.prev}else if(m){if(null==(f=m[h=u?p:l[p]]))continue;v.push(h)}var L,P=void 0;if(!Array.isArray(f)){var M,R;z(f)||De(!1,"Invalid AST Node: ".concat(ke(f),"."));var q=g?null===(M=r.get(f.kind))||void 0===M?void 0:M.leave:null===(R=r.get(f.kind))||void 0===R?void 0:R.enter;if((P=null==q?void 0:q.call(t,f,h,m,v,y))===Me)break;if(!1===P){if(!g){v.pop();continue}}else if(void 0!==P&&(d.push([h,P]),!g)){if(!z(P)){v.pop();continue}f=P}}void 0===P&&b&&d.push([h,f]),g?v.pop():(s={inArray:u,index:p,keys:l,edits:d,prev:s},l=(u=Array.isArray(f))?f:null!==(L=n[f.kind])&&void 0!==L?L:[],p=-1,d=[],m&&y.push(m),m=f)}while(void 0!==s);return 0!==d.length?d[d.length-1][1]:e}(e,Fe)}var Fe={Name:{leave:function(e){return e.value}},Variable:{leave:function(e){return"$"+e.name}},Document:{leave:function(e){return je(e.definitions,"\n\n")}},OperationDefinition:{leave:function(e){var t=Ue("(",je(e.variableDefinitions,", "),")"),n=je([e.operation,je([e.name,t]),je(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+Ue(" = ",r)+Ue(" ",je(i," "))}},SelectionSet:{leave:function(e){return Be(e.selections)}},Field:{leave:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,a=e.selectionSet,o=Ue("",t,": ")+n,s=o+Ue("(",je(r,", "),")");return s.length>80&&(s=o+Ue("(\n",Ve(je(r,"\n")),"\n)")),je([s,je(i," "),a]," ")}},Argument:{leave:function(e){return e.name+": "+e.value}},FragmentSpread:{leave:function(e){return"..."+e.name+Ue(" ",je(e.directives," "))}},InlineFragment:{leave:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return je(["...",Ue("on ",t),je(n," "),r]," ")}},FragmentDefinition:{leave:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,a=e.selectionSet;return"fragment ".concat(t).concat(Ue("(",je(r,", "),")")," ")+"on ".concat(n," ").concat(Ue("",je(i," ")," "))+a}},IntValue:{leave:function(e){return e.value}},FloatValue:{leave:function(e){return e.value}},StringValue:{leave:function(e){var t=e.value;return e.block?function(e,t){var n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,a=r.length>1&&r.slice(1).every((function(e){return 0===e.length||J(e.charCodeAt(0))})),o=n.endsWith('\\"""'),s=e.endsWith('"')&&!o,u=e.endsWith("\\"),c=s||u,l=!(null!=t&&t.minimize)&&(!i||e.length>70||c||a||o),p="",d=i&&J(e.charCodeAt(0));return(l&&!d||a)&&(p+="\n"),p+=n,(l||c)&&(p+="\n"),'"""'+p+'"""'}(t):'"'.concat(t.replace(Ce,Le),'"')}},BooleanValue:{leave:function(e){return e.value?"true":"false"}},NullValue:{leave:function(){return"null"}},EnumValue:{leave:function(e){return e.value}},ListValue:{leave:function(e){return"["+je(e.values,", ")+"]"}},ObjectValue:{leave:function(e){return"{"+je(e.fields,", ")+"}"}},ObjectField:{leave:function(e){return e.name+": "+e.value}},Directive:{leave:function(e){return"@"+e.name+Ue("(",je(e.arguments,", "),")")}},NamedType:{leave:function(e){return e.name}},ListType:{leave:function(e){return"["+e.type+"]"}},NonNullType:{leave:function(e){return e.type+"!"}},SchemaDefinition:{leave:function(e){var t=e.description,n=e.directives,r=e.operationTypes;return Ue("",t,"\n")+je(["schema",je(n," "),Be(r)]," ")}},OperationTypeDefinition:{leave:function(e){return e.operation+": "+e.type}},ScalarTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives;return Ue("",t,"\n")+je(["scalar",n,je(r," ")]," ")}},ObjectTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.interfaces,i=e.directives,a=e.fields;return Ue("",t,"\n")+je(["type",n,Ue("implements ",je(r," & ")),je(i," "),Be(a)]," ")}},FieldDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.arguments,i=e.type,a=e.directives;return Ue("",t,"\n")+n+($e(r)?Ue("(\n",Ve(je(r,"\n")),"\n)"):Ue("(",je(r,", "),")"))+": "+i+Ue(" ",je(a," "))}},InputValueDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.type,i=e.defaultValue,a=e.directives;return Ue("",t,"\n")+je([n+": "+r,Ue("= ",i),je(a," ")]," ")}},InterfaceTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.interfaces,i=e.directives,a=e.fields;return Ue("",t,"\n")+je(["interface",n,Ue("implements ",je(r," & ")),je(i," "),Be(a)]," ")}},UnionTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.types;return Ue("",t,"\n")+je(["union",n,je(r," "),Ue("= ",je(i," | "))]," ")}},EnumTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.values;return Ue("",t,"\n")+je(["enum",n,je(r," "),Be(i)]," ")}},EnumValueDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives;return Ue("",t,"\n")+je([n,je(r," ")]," ")}},InputObjectTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.fields;return Ue("",t,"\n")+je(["input",n,je(r," "),Be(i)]," ")}},DirectiveDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.arguments,i=e.repeatable,a=e.locations;return Ue("",t,"\n")+"directive @"+n+($e(r)?Ue("(\n",Ve(je(r,"\n")),"\n)"):Ue("(",je(r,", "),")"))+(i?" repeatable":"")+" on "+je(a," | ")}},SchemaExtension:{leave:function(e){var t=e.directives,n=e.operationTypes;return je(["extend schema",je(t," "),Be(n)]," ")}},ScalarTypeExtension:{leave:function(e){return je(["extend scalar",e.name,je(e.directives," ")]," ")}},ObjectTypeExtension:{leave:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return je(["extend type",t,Ue("implements ",je(n," & ")),je(r," "),Be(i)]," ")}},InterfaceTypeExtension:{leave:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return je(["extend interface",t,Ue("implements ",je(n," & ")),je(r," "),Be(i)]," ")}},UnionTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.types;return je(["extend union",t,je(n," "),Ue("= ",je(r," | "))]," ")}},EnumTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.values;return je(["extend enum",t,je(n," "),Be(r)]," ")}},InputObjectTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.fields;return je(["extend input",t,je(n," "),Be(r)]," ")}}};function je(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function Be(e){return Ue("{\n",Ve(je(e,"\n")),"\n}")}function Ue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function Ve(e){return Ue(" ",e.replace(/\n/g,"\n "))}function $e(e){var t;return null!==(t=null==e?void 0:e.some((function(e){return e.includes("\n")})))&&void 0!==t&&t}var Ge=function(e){var t,n=void 0,r=e.definitions.filter((function(e){return"OperationDefinition"===e.kind}));1===r.length&&(n=null===(t=r[0])||void 0===t||null===(t=t.name)||void 0===t?void 0:t.value);return n},Ke=function(e){if("string"===g(e)){var t=void 0;try{var n=Oe(e);t=Ge(n)}catch(e){}return{query:e,operationName:t}}var r=Ge(e);return{query:qe(e),operationName:r}},We=function(e){N(n,e);var t=O(n);function n(e,r){var i;v(this,n);var a="".concat(n.extractMessage(e),": ").concat(JSON.stringify({response:e,request:r}));return i=t.call(this,a),Object.setPrototypeOf(_(i),n.prototype),i.response=e,i.request=r,"function"===g(Error.captureStackTrace)&&Error.captureStackTrace(_(i),n),i}return y(n,null,[{key:"extractMessage",value:function(e){var t,n;return null!==(t=null===(n=e.errors)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.message)&&void 0!==t?t:"GraphQL Error (Code: ".concat(e.status,")")}}]),n}(I(Error)),He=i(615),Ye=i.t(He,2),ze="ping",Je="pong",Qe="subscribe",Xe="complete",Ze=function(){function e(t,n,r){v(this,e),this._type=t,this._payload=n,this._id=r}return y(e,[{key:"type",get:function(){return this._type}},{key:"id",get:function(){return this._id}},{key:"payload",get:function(){return this._payload}},{key:"text",get:function(){var e={type:this.type};return null!=this.id&&null!=this.id&&(e.id=this.id),null!=this.payload&&null!=this.payload&&(e.payload=this.payload),JSON.stringify(e)}}],[{key:"parse",value:function(t,n){var r=JSON.parse(t),i=r.type,a=r.payload,o=r.id;return new e(i,n(a),o)}}]),e}(),et=function(){function e(n,i){var a=this,o=i.onInit,u=i.onAcknowledged,c=i.onPing,l=i.onPong;v(this,e),this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=n,n.addEventListener("open",function(){var e=r(t().mark((function e(r){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.socketState.acknowledged=!1,a.socketState.subscriptions={},e.t0=n,e.t1=tt,!o){e.next=10;break}return e.next=7,o();case 7:e.t2=e.sent,e.next=11;break;case 10:e.t2=null;case 11:e.t3=e.t2,e.t4=(0,e.t1)(e.t3).text,e.t0.send.call(e.t0,e.t4);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),n.addEventListener("close",(function(e){a.socketState.acknowledged=!1,a.socketState.subscriptions={}})),n.addEventListener("error",(function(e){console.error(e)})),n.addEventListener("message",(function(e){try{var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};return Ze.parse(e,t)}(e.data);switch(t.type){case"connection_ack":return void(a.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(a.socketState.acknowledged=!0,u&&u(t.payload)));case ze:return void(c?c(t.payload).then((function(e){return n.send(nt(e).text)})):n.send(nt(null).text));case Je:return void(l&&l(t.payload))}if(!a.socketState.acknowledged)return;if(void 0===t.id||null===t.id||!a.socketState.subscriptions[t.id])return;var r=a.socketState.subscriptions[t.id],i=r.query,o=r.variables,p=r.subscriber;switch(t.type){case"next":return!t.payload.errors&&t.payload.data&&p.next&&p.next(t.payload.data),void(t.payload.errors&&p.error&&p.error(new We(s(s({},t.payload),{},{status:200}),{query:i,variables:o})));case"error":return void(p.error&&p.error(new We({errors:t.payload,status:200},{query:i,variables:o})));case Xe:return p.complete&&p.complete(),void delete a.socketState.subscriptions[t.id]}}catch(e){console.error(e),n.close(1006)}n.close(4400,"Unknown graphql-ws message.")}))}return y(e,[{key:"makeSubscribe",value:function(e,t,n,r){var i,a,o=this,s=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[s]={query:e,variables:r,subscriber:n},this.socket.send((i=s,a={query:e,operationName:t,variables:r},new Ze(Qe,a,i)).text),function(){o.socket.send(function(e){return new Ze(Xe,void 0,e)}(s).text),delete o.socketState.subscriptions[s]}}},{key:"rawRequest",value:function(e,t){var n=this;return new Promise((function(r,i){var a;n.rawSubscribe(e,{next:function(e,t){return a={data:e,extensions:t}},error:i,complete:function(){return r(a)}},t)}))}},{key:"request",value:function(e,t){var n=this;return new Promise((function(r,i){var a;n.subscribe(e,{next:function(e){return a=e},error:i,complete:function(){return r(a)}},t)}))}},{key:"subscribe",value:function(e,t,n){var r=Ke(e),i=r.query,a=r.operationName;return this.makeSubscribe(i,a,t,n)}},{key:"rawSubscribe",value:function(e,t,n){return this.makeSubscribe(e,void 0,t,n)}},{key:"ping",value:function(e){this.socket.send(function(e){return new Ze(ze,e,void 0)}(e).text)}},{key:"close",value:function(){this.socket.close(1e3)}}]),e}();function tt(e){return new Ze("connection_init",e)}function nt(e){return new Ze(Je,e,void 0)}et.PROTOCOL="graphql-transport-ws";var rt=["url"],it=["headers","fetch","method","requestMiddleware","responseMiddleware"],at=["headers","fetch","method","requestMiddleware","responseMiddleware"],ot=["headers"],st=["errors"],ut=function(e){var t={};return e&&("undefined"!==("undefined"==typeof Headers?"undefined":g(Headers))&&e instanceof Headers||Ye&&He.Headers&&e instanceof He.Headers?t=function(e){var t={};return e.forEach((function(e,n){t[n]=e})),t}(e):Array.isArray(e)?e.forEach((function(e){var n=c(e,2),r=n[0],i=n[1];r&&void 0!==i&&(t[r]=i)})):t=e),t},ct=function(e){return e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},lt=function(e){if(!Array.isArray(e.query)){var t=e,n=["query=".concat(encodeURIComponent(ct(t.query)))];return e.variables&&n.push("variables=".concat(encodeURIComponent(t.jsonSerializer.stringify(t.variables)))),t.operationName&&n.push("operationName=".concat(encodeURIComponent(t.operationName))),n.join("&")}if("undefined"!==g(e.variables)&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");var r=e,i=e.query.reduce((function(e,t,n){return e.push({query:ct(t),variables:r.variables?r.jsonSerializer.stringify(r.variables[n]):void 0}),e}),[]);return"query=".concat(encodeURIComponent(r.jsonSerializer.stringify(i)))},pt=function(e){return function(){var n=r(t().mark((function n(r){var i,a,o,u,c,l,d,f,h,m,v,y,b,E,D,k,T;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=r.url,a=r.query,o=r.variables,u=r.operationName,c=r.fetch,l=r.fetchOptions,d=r.middleware,f=s({},r.headers),h="",m=void 0,"POST"===e?(m=bt(a,o,u,l.jsonSerializer),"string"===g(m)&&(f["Content-Type"]="application/json")):h=lt({query:a,variables:o,operationName:u,jsonSerializer:null!==(v=l.jsonSerializer)&&void 0!==v?v:x}),y=s({method:e,headers:f,body:m},l),b=i,E=y,!d){t.next=15;break}return t.next=11,Promise.resolve(d(s(s({},y),{},{url:i,operationName:u,variables:o})));case 11:D=t.sent,k=D.url,T=p(D,rt),b=k,E=T;case 15:return h&&(b="".concat(b,"?").concat(h)),t.next=18,c(b,E);case 18:return t.abrupt("return",t.sent);case 19:case"end":return t.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()},dt=function(){function e(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v(this,e),this.url=n,this.requestConfig=a,this.rawRequest=r(t().mark((function e(){var n,r,a,o,u,c,l,d,f,h,m,v,y,g,b,x,E,k,T,w=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=w.length,r=new Array(n),a=0;a<n;a++)r[a]=w[a];return o=r[0],u=r[1],c=r[2],l=D(o,u,c),d=i.requestConfig,f=d.headers,h=d.fetch,m=void 0===h?He:h,v=d.method,y=void 0===v?"POST":v,g=d.requestMiddleware,b=d.responseMiddleware,x=p(d,it),E=i.url,void 0!==l.signal&&(x.signal=l.signal),k=Ke(l.query),T=k.operationName,e.abrupt("return",ft({url:E,query:l.query,variables:l.variables,headers:s(s({},ut(Et(f))),ut(l.requestHeaders)),operationName:T,fetch:m,method:y,fetchOptions:x,middleware:g}).then((function(e){return b&&b(e),e})).catch((function(e){throw b&&b(e),e})));case 8:case"end":return e.stop()}}),e)})))}var n;return y(e,[{key:"request",value:(n=r(t().mark((function e(n){var r,i,a,o,u,c,l,d,f,h,m,v,y,g,b,x,D,k,T,w=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=w.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=w[a];return o=i[0],u=i[1],c=E(n,o,u),l=this.requestConfig,d=l.headers,f=l.fetch,h=void 0===f?He:f,m=l.method,v=void 0===m?"POST":m,y=l.requestMiddleware,g=l.responseMiddleware,b=p(l,at),x=this.url,void 0!==c.signal&&(b.signal=c.signal),D=Ke(c.document),k=D.query,T=D.operationName,e.abrupt("return",ft({url:x,query:k,variables:c.variables,headers:s(s({},ut(Et(d))),ut(c.requestHeaders)),operationName:T,fetch:h,method:v,fetchOptions:b,middleware:y}).then((function(e){return g&&g(e),e.data})).catch((function(e){throw g&&g(e),e})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"batchRequests",value:function(e,t){var n,r=this,i=function(e,t){return e.documents?e:{documents:e,requestHeaders:t,signal:void 0}}(e,t),a=this.requestConfig,o=a.headers,u=p(a,ot);void 0!==i.signal&&(u.signal=i.signal);var c=i.documents.map((function(e){var t=e.document;return Ke(t).query})),l=i.documents.map((function(e){return e.variables}));return ft({url:this.url,query:c,variables:l,headers:s(s({},ut(Et(o))),ut(i.requestHeaders)),operationName:void 0,fetch:null!==(n=this.requestConfig.fetch)&&void 0!==n?n:He,method:this.requestConfig.method||"POST",fetchOptions:u,middleware:this.requestConfig.requestMiddleware}).then((function(e){return r.requestConfig.responseMiddleware&&r.requestConfig.responseMiddleware(e),e.data})).catch((function(e){throw r.requestConfig.responseMiddleware&&r.requestConfig.responseMiddleware(e),e}))}},{key:"setHeaders",value:function(e){return this.requestConfig.headers=e,this}},{key:"setHeader",value:function(e,t){var n=this.requestConfig.headers;return n?n[e]=t:this.requestConfig.headers=m({},e,t),this}},{key:"setEndpoint",value:function(e){return this.url=e,this}}]),e}(),ft=function(){var e=r(t().mark((function e(n){var r,i,a,o,u,c,l,d,f,h,m,v,y,b,E,D;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.query,o=n.variables,u=n.fetchOptions,c=pt((null!==(r=n.method)&&void 0!==r?r:"post").toUpperCase()),l=Array.isArray(n.query),e.next=5,c(n);case 5:return d=e.sent,e.next=8,xt(d,null!==(i=u.jsonSerializer)&&void 0!==i?i:x);case 8:if(f=e.sent,h=Array.isArray(f)?!f.some((function(e){return!e.data})):Boolean(f.data),m=Array.isArray(f)||!f.errors||Array.isArray(f.errors)&&!f.errors.length||"all"===u.errorPolicy||"ignore"===u.errorPolicy,!(d.ok&&m&&h)){e.next=18;break}return Array.isArray(f),(v=f).errors,y=p(v,st),b="ignore"===u.errorPolicy?y:f,E=l?{data:b}:b,e.abrupt("return",s(s({},E),{},{headers:d.headers,status:d.status}));case 18:throw D="string"===g(f)?{error:f}:f,new We(s(s({},D),{},{status:d.status,headers:d.headers}),{query:a,variables:o});case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ht=function(){var e=r(t().mark((function e(){var n,r,i,a,o,u,c,l,p=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=p.length,r=new Array(n),i=0;i<n;i++)r[i]=p[i];return a=r[0],o=r[1],u=r.slice(2),c=T.apply(void 0,[a,o].concat(f(u))),l=new dt(c.url),e.abrupt("return",l.rawRequest(s({},c)));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function mt(e,t){return vt.apply(this,arguments)}function vt(){return vt=r(t().mark((function e(n,r){var i,a,o,u,c,l=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(i=l.length,a=new Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=l[o];return u=k.apply(void 0,[n,r].concat(a)),c=new dt(u.url),e.abrupt("return",c.request(s({},u)));case 4:case"end":return e.stop()}}),e)}))),vt.apply(this,arguments)}var yt=function(){var e=r(t().mark((function e(){var n,r,i,a,o,s=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=s.length,r=new Array(n),i=0;i<n;i++)r[i]=s[i];return a=gt(r),o=new dt(a.url),e.abrupt("return",o.batchRequests(a));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),gt=function(e){return 1===e.length?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0}},bt=function(e,t,n,r){var i=null!=r?r:x;if(!Array.isArray(e))return i.stringify({query:e,variables:t,operationName:n});if("undefined"!==g(t)&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");var a=e.reduce((function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e}),[]);return i.stringify(a)},xt=function(){var e=r(t().mark((function e(n,r){var i;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.headers.forEach((function(e,t){"content-type"===t.toLowerCase()&&(i=e)})),!i||!(i.toLowerCase().startsWith("application/json")||i.toLowerCase().startsWith("application/graphql+json")||i.toLowerCase().startsWith("application/graphql-response+json"))){e.next=9;break}return e.t0=r,e.next=5,n.text();case 5:return e.t1=e.sent,e.abrupt("return",e.t0.parse.call(e.t0,e.t1));case 9:return e.abrupt("return",n.text());case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Et=function(e){return"function"===g(e)?e():e},Dt=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((function(e,t,r){return"".concat(e).concat(t).concat(r in n?String(n[r]):"")}),"")},kt="%[a-f0-9]{2}",Tt=new RegExp("("+kt+")|([^%]+?)","gi"),wt=new RegExp("("+kt+")+","gi");function _t(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([],_t(n),_t(r))}function Nt(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(Tt)||[],n=1;n<t.length;n++)t=(e=_t(t,n).join("")).match(Tt)||[];return e}}function Ot(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+g(e)+"`");try{return decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=wt.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=Nt(n[0]);r!==n[0]&&(t[n[0]]=r)}n=wt.exec(e)}t["%C2"]="�";for(var i=0,a=Object.keys(t);i<a.length;i++){var o=a[i];e=e.replace(new RegExp(o,"g"),t[o])}return e}(e)}}function It(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];var n=e.indexOf(t);return-1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}function At(e,t){var n={};if(Array.isArray(t)){var r,i=w(t);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=Object.getOwnPropertyDescriptor(e,a);null!=o&&o.enumerable&&Object.defineProperty(n,a,o)}}catch(e){i.e(e)}finally{i.f()}}else{var s,u=w(Reflect.ownKeys(e));try{for(u.s();!(s=u.n()).done;){var c=s.value,l=Object.getOwnPropertyDescriptor(e,c);if(l.enumerable)t(c,e[c],e)&&Object.defineProperty(n,c,l)}}catch(e){u.e(e)}finally{u.f()}}return n}var St=Symbol("encodeFragmentIdentifier");function Ct(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function Lt(e,t){return t.encode?t.strict?encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())})):encodeURIComponent(e):e}function Pt(e,t){return t.decode?Ot(e):e}function Mt(e){return Array.isArray(e)?e.sort():"object"===g(e)?Mt(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function Rt(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function qt(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 Ft(e){var t=(e=Rt(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function jt(e,t){Ct((t=s({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var n=function(e){var t;switch(e.arrayFormat){case"index":return function(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 function(e,n,r){t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==r[e]?r[e]=[].concat(f(r[e]),[n]):r[e]=[n]:r[e]=n};case"colon-list-separator":return function(e,n,r){t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(f(r[e]),[n]):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var i="string"==typeof n&&n.includes(e.arrayFormatSeparator),a="string"==typeof n&&!i&&Pt(n,e).includes(e.arrayFormatSeparator);n=a?Pt(n,e):n;var o=i||a?n.split(e.arrayFormatSeparator).map((function(t){return Pt(t,e)})):null===n?n:Pt(n,e);r[t]=o};case"bracket-separator":return function(t,n,r){var i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),i){var a=null===n?[]:n.split(e.arrayFormatSeparator).map((function(t){return Pt(t,e)}));void 0!==r[t]?r[t]=[].concat(f(r[t]),f(a)):r[t]=a}else r[t]=n?Pt(n,e):n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(f([n[e]].flat()),[t]):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;var i,a=w(e.split("&"));try{for(a.s();!(i=a.n()).done;){var o=i.value;if(""!==o){var u=t.decode?o.replace(/\+/g," "):o,l=It(u,"="),p=c(l,2),d=p[0],h=p[1];void 0===d&&(d=u),h=void 0===h?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?h:Pt(h,t),n(Pt(d,t),h,r)}}}catch(e){a.e(e)}finally{a.f()}for(var m=0,v=Object.entries(r);m<v.length;m++){var y=c(v[m],2),b=y[0],x=y[1];if("object"===g(x)&&null!==x)for(var E=0,D=Object.entries(x);E<D.length;E++){var k=c(D[E],2),T=k[0],_=k[1];x[T]=qt(_,t)}else r[b]=qt(x,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((function(e,t){var n=r[t];return Boolean(n)&&"object"===g(n)&&!Array.isArray(n)?e[t]=Mt(n):e[t]=n,e}),Object.create(null))}function Bt(e,t){if(!e)return"";Ct((t=s({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);for(var n=function(n){return t.skipNull&&function(e){return null==e}(e[n])||t.skipEmptyString&&""===e[n]},r=function(e){switch(e.arrayFormat){case"index":return function(t){return function(n,r){var i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(f(n),null===r?[[Lt(t,e),"[",i,"]"].join("")]:[[Lt(t,e),"[",Lt(i,e),"]=",Lt(r,e)].join("")])}};case"bracket":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(f(n),null===r?[[Lt(t,e),"[]"].join("")]:[[Lt(t,e),"[]=",Lt(r,e)].join("")])}};case"colon-list-separator":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(f(n),null===r?[[Lt(t,e),":list="].join("")]:[[Lt(t,e),":list=",Lt(r,e)].join("")])}};case"comma":case"separator":case"bracket-separator":var t="bracket-separator"===e.arrayFormat?"[]=":"=";return function(n){return function(r,i){return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[Lt(n,e),t,Lt(i,e)].join("")]:[[r,Lt(i,e)].join(e.arrayFormatSeparator)])}};default:return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(f(n),null===r?[Lt(t,e)]:[[Lt(t,e),"=",Lt(r,e)].join("")])}}}}(t),i={},a=0,o=Object.entries(e);a<o.length;a++){var u=c(o[a],2),l=u[0],p=u[1];n(l)||(i[l]=p)}var d=Object.keys(i);return!1!==t.sort&&d.sort(t.sort),d.map((function(n){var i=e[n];return void 0===i?"":null===i?Lt(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?Lt(n,t)+"[]":i.reduce(r(n),[]).join("&"):Lt(n,t)+"="+Lt(i,t)})).filter((function(e){return e.length>0})).join("&")}function Ut(e,t){var n,r;t=s({decode:!0},t);var i=It(e,"#"),a=c(i,2),o=a[0],u=a[1];return void 0===o&&(o=e),s({url:null!==(n=null===(r=o)||void 0===r||null===(r=r.split("?"))||void 0===r?void 0:r[0])&&void 0!==n?n:"",query:jt(Ft(e),t)},t&&t.parseFragmentIdentifier&&u?{fragmentIdentifier:Pt(u,t)}:{})}function Vt(e,t){t=s(m({encode:!0,strict:!0},St,!0),t);var n=Rt(e.url).split("?")[0]||"",r=Ft(e.url),i=Bt(s(s({},jt(r,{sort:!1})),e.query),t);i&&(i="?".concat(i));var a=function(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if(e.fragmentIdentifier){var o=new URL(n);o.hash=e.fragmentIdentifier,a=t[St]?o.hash:"#".concat(e.fragmentIdentifier)}return"".concat(n).concat(i).concat(a)}function $t(e,t,n){var r=Ut(e,n=s(m({parseFragmentIdentifier:!0},St,!1),n)),i=r.url,a=r.query,o=r.fragmentIdentifier;return Vt({url:i,query:At(a,t),fragmentIdentifier:o},n)}function Gt(e,t,n){return $t(e,Array.isArray(t)?function(e){return!t.includes(e)}:function(e,n){return!t(e,n)},n)}var Kt,Wt=e,Ht=i(313),Yt=window.antd,zt=function(){window.location.href="/logout"},Jt=function(){var e;null===(e=Kt)||void 0===e||e.destroy(),Kt=void 0},Qt=window.TenxUiMaterials,Xt={create:"创建",delete:"删除",update:"更新",patch:"更新",get:"获取",list:"列取",watch:"监听"},Zt=function(e){var t=e.filter((function(e){var t;return void 0!==(null===(t=e.extensions)||void 0===t?void 0:t.code)}));0!==t.length?t.forEach((function(e){switch(e.extensions.code){case"InvalidToken":Kt||(Kt=Yt.Modal.warn({okText:"确定",content:"用户凭证可能已失效,点击确定重新登录",onOk:zt,onCancel:Jt}));break;case"Forbidden":!function(e){var t,n=(null===(t=e.extensions)||void 0===t||null===(t=t.exception)||void 0===t?void 0:t.details)||{},r=n.name,i=n.kind,a=n.verb,o="当前用户没有权限";o+="".concat(Xt[a]||"操作"),i&&(o+=" ".concat(i)),r&&(o+=" ".concat(r)),Qt.notification.warn({message:"当前操作未被授权",description:o,detail:e})}(e)}})):console.warn("uncaught errors",e)},en=i(406),tn=i.n(en);var nn=function(){return nn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},nn.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var rn=new Map,an=new Map,on=!0,sn=!1;function un(e){return e.replace(/[\s,]+/g," ").trim()}function cn(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=un((o=e.loc).source.body.substring(o.start,o.end)),a=an.get(r);a&&!a.has(i)?on&&console.warn("Warning: fragment with name "+r+" 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"):a||an.set(r,a=new Set),a.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var o})),nn(nn({},e),{definitions:n})}function ln(e){var t=un(e);if(!rn.has(t)){var n=Oe(e,{experimentalFragmentVariables:sn,allowLegacyFragmentVariables:sn});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");rn.set(t,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"===b()(r)&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(cn(n)))}return rn.get(t)}function pn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),ln(r)}var dn,fn=pn,hn=function(){rn.clear(),an.clear()},mn=function(){on=!1},vn=function(){sn=!0},yn=function(){sn=!1};(dn=pn||(pn={})).gql=fn,dn.resetCaches=hn,dn.disableFragmentWarnings=mn,dn.enableExperimentalFragmentVariables=vn,dn.disableExperimentalFragmentVariables=yn,pn.default=pn;var gn=pn,bn=i(591),xn=function(){},En=xn(),Dn=Object,kn=function(e){return e===En},Tn=function(e){return"function"==typeof e},wn=function(e,t){return s(s({},e),t)},_n=function(e){return Tn(e.then)},Nn=new WeakMap,On=0,In=function e(t){var n,r,i=g(t),a=t&&t.constructor,o=a==Date;if(Dn(t)!==t||o||a==RegExp)n=o?t.toJSON():"symbol"==i?t.toString():"string"==i?JSON.stringify(t):""+t;else{if(n=Nn.get(t))return n;if(n=++On+"~",Nn.set(t,n),a==Array){for(n="@",r=0;r<t.length;r++)n+=e(t[r])+",";Nn.set(t,n)}if(a==Dn){n="#";for(var s=Dn.keys(t).sort();!kn(r=s.pop());)kn(t[r])||(n+=r+":"+e(t[r])+",");Nn.set(t,n)}}return n},An=new WeakMap,Sn={},Cn={},Ln="undefined",Pn=("undefined"==typeof window?"undefined":g(window))!=Ln,Mn=("undefined"==typeof document?"undefined":g(document))!=Ln,Rn=function(e,t){var n=An.get(e);return[function(){return!kn(t)&&e.get(t)||Sn},function(r){if(!kn(t)){var i=e.get(t);t in Cn||(Cn[t]=i),n[5](t,wn(i,r),i||Sn)}},n[6],function(){return!kn(t)&&t in Cn?Cn[t]:!kn(t)&&e.get(t)||Sn}]},qn=!0,Fn=Pn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[xn,xn],jn=c(Fn,2),Bn=jn[0],Un=jn[1],Vn={isOnline:function(){return qn},isVisible:function(){var e=Mn&&document.visibilityState;return kn(e)||"hidden"!==e}},$n={initFocus:function(e){return Mn&&document.addEventListener("visibilitychange",e),Bn("focus",e),function(){Mn&&document.removeEventListener("visibilitychange",e),Un("focus",e)}},initReconnect:function(e){var t=function(){qn=!0,e()},n=function(){qn=!1};return Bn("online",t),Bn("offline",n),function(){Un("online",t),Un("offline",n)}}},Gn=!Ht.useId,Kn=!Pn||"Deno"in window,Wn=function(e){return Pn&&g(window.requestAnimationFrame)!=Ln?window.requestAnimationFrame(e):setTimeout(e,1)},Hn=Kn?Ht.useEffect:Ht.useLayoutEffect,Yn="undefined"!=typeof navigator&&navigator.connection,zn=!Kn&&Yn&&(["slow-2g","2g"].includes(Yn.effectiveType)||Yn.saveData),Jn=function(e){if(Tn(e))try{e=e()}catch(t){e=""}var t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?In(e):"",t]},Qn=0,Xn=function(){return++Qn},Zn=3,er=0,tr=2,nr=1;function rr(){return ir.apply(this,arguments)}function ir(){return ir=r(t().mark((function e(){var n,i,a,o,s,u,l,p,d,f,h,m,v,y,g,b,x,E,D,k,T,_,N=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(_=function(){return _=r(t().mark((function e(n){var r,a,s,l,p,f,g,b,x,E,D,k,T,w,_,N,O,I,A,S,C,L,P;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Jn(n),a=c(r,1),s=a[0]){e.next=3;break}return e.abrupt("return");case 3:if(l=Rn(o,s),p=c(l,2),f=p[0],g=p[1],b=An.get(o),x=c(b,4),E=x[0],D=x[1],k=x[2],T=x[3],w=function(){var e=E[s];return m&&(delete k[s],delete T[s],e&&e[0])?e[0](2).then((function(){return f().data})):f().data},!(i.length<3)){e.next=8;break}return e.abrupt("return",w());case 8:if(_=u,O=Xn(),D[s]=[O,0],I=!kn(h),A=f(),S=A.data,C=A._c,L=kn(C)?S:C,I&&(h=Tn(h)?h(L,S):h,g({data:h,_c:L})),Tn(_))try{_=_(L)}catch(e){N=e}if(!_||!_n(_)){e.next=29;break}return e.next=21,_.catch((function(e){N=e}));case 21:if(_=e.sent,O===D[s][0]){e.next=28;break}if(!N){e.next=25;break}throw N;case 25:return e.abrupt("return",_);case 28:N&&I&&v(N)&&(d=!0,g({data:L,_c:En}));case 29:if(d&&(N||(Tn(d)?(P=d(_,L),g({data:P,error:En,_c:En})):g({data:_,error:En,_c:En}))),D[s][1]=Xn(),Promise.resolve(w()).then((function(){g({_c:En})})),!N){e.next=36;break}if(!y){e.next=35;break}throw N;case 35:return e.abrupt("return");case 36:return e.abrupt("return",_);case 37:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)},T=function(e){return _.apply(this,arguments)},n=N.length,i=new Array(n),a=0;a<n;a++)i[a]=N[a];if(o=i[0],s=i[1],u=i[2],l=i[3],p=wn({populateCache:!0,throwOnError:!0},"boolean"==typeof l?{revalidate:l}:l||{}),d=p.populateCache,f=p.rollbackOnError,h=p.optimisticData,m=!1!==p.revalidate,v=function(e){return"function"==typeof f?f(e):!1!==f},y=p.throwOnError,!Tn(s)){e.next=18;break}g=s,b=[],x=o.keys(),E=w(x);try{for(E.s();!(D=E.n()).done;)k=D.value,!/^\$(inf|sub)\$/.test(k)&&g(o.get(k)._k)&&b.push(k)}catch(e){E.e(e)}finally{E.f()}return e.abrupt("return",Promise.all(b.map(T)));case 18:return e.abrupt("return",T(s));case 19:case"end":return e.stop()}}),e)}))),ir.apply(this,arguments)}var ar=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},or=function(e,t){if(!An.has(e)){var n=wn($n,t),r={},i=rr.bind(En,e),a=xn,o={},s=function(e,t){var n=o[e]||[];return o[e]=n,n.push(t),function(){return n.splice(n.indexOf(t),1)}},u=function(t,n,r){e.set(t,n);var i=o[t];if(i){var a,s=w(i);try{for(s.s();!(a=s.n()).done;){(0,a.value)(n,r)}}catch(e){s.e(e)}finally{s.f()}}},c=function(){if(!An.has(e)&&(An.set(e,[r,{},{},{},i,u,s]),!Kn)){var t=n.initFocus(setTimeout.bind(En,ar.bind(En,r,0))),o=n.initReconnect(setTimeout.bind(En,ar.bind(En,r,1)));a=function(){t&&t(),o&&o(),An.delete(e)}}};return c(),[e,i,c,a]}return[e,An.get(e)[4]]},sr=or(new Map),ur=c(sr,2),cr=ur[0],lr=ur[1],pr=wn({onLoadingSlow:xn,onSuccess:xn,onError:xn,onErrorRetry:function(e,t,n,r,i){var a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!kn(a)&&o>a||setTimeout(r,s,i)},onDiscarded:xn,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:zn?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:zn?5e3:3e3,compare:function(e,t){return In(e)==In(t)},isPaused:function(){return!1},cache:cr,mutate:lr,fallback:{}},Vn),dr=function(e,t){var n=wn(e,t);if(t){var r=e.use,i=e.fallback,a=t.use,o=t.fallback;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=wn(i,o))}return n},fr=(0,Ht.createContext)({}),hr="$inf$",mr=Pn&&window.__SWR_DEVTOOLS_USE__,vr=mr?window.__SWR_DEVTOOLS_USE__:[],yr=function(e){return Tn(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},gr=function(){return wn(pr,(0,Ht.useContext)(fr))},br=vr.concat((function(e){return function(t,n,r){var i=n&&function(){var e=Jn(t),r=c(e,1),i=r[0],a=An.get(cr),o=c(a,4),s=o[3];if(i.startsWith(hr))return n.apply(void 0,arguments);var u=s[i];return kn(u)?n.apply(void 0,arguments):(delete s[i],u)};return e(t,i,r)}}));mr&&(window.__SWR_DEVTOOLS_REACT__=Ht);var xr,Er,Dr,kr,Tr,wr,_r,Nr,Or,Ir,Ar,Sr,Cr,Lr,Pr,Mr,Rr,qr,Fr,jr,Br,Ur,Vr,$r,Gr,Kr,Wr,Hr,Yr,zr,Jr,Qr,Xr,Zr,ei,ti,ni,ri,ii,ai,oi,si,ui,ci,li,pi,di,fi,hi,mi,vi,yi=Ht.use||function(e){if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((function(t){e.status="fulfilled",e.value=t}),(function(t){e.status="rejected",e.reason=t})),e)},gi={dedupe:!0},bi=(Dn.defineProperty((function(e){var t=e.value,n=(0,Ht.useContext)(fr),r=Tn(t),i=(0,Ht.useMemo)((function(){return r?t(n):t}),[r,n,t]),a=(0,Ht.useMemo)((function(){return r?i:dr(n,i)}),[r,n,i]),o=i&&i.provider,s=(0,Ht.useRef)(En);o&&!s.current&&(s.current=or(o(a.cache||cr),i));var u=s.current;return u&&(a.cache=u[0],a.mutate=u[1]),Hn((function(){if(u)return u[2]&&u[2](),u[3]}),[]),(0,Ht.createElement)(fr.Provider,wn(e,{value:a}))}),"defaultValue",{value:pr}),xr=function(e,n,i){var a=i.cache,o=i.compare,u=i.suspense,l=i.fallbackData,p=i.revalidateOnMount,d=i.revalidateIfStale,f=i.refreshInterval,h=i.refreshWhenHidden,m=i.refreshWhenOffline,v=i.keepPreviousData,y=An.get(a),g=c(y,4),b=g[0],x=g[1],E=g[2],D=g[3],k=Jn(e),T=c(k,2),w=T[0],_=T[1],N=(0,Ht.useRef)(!1),O=(0,Ht.useRef)(!1),I=(0,Ht.useRef)(w),A=(0,Ht.useRef)(n),S=(0,Ht.useRef)(i),C=function(){return S.current},L=function(){return C().isVisible()&&C().isOnline()},P=Rn(a,w),M=c(P,4),R=M[0],q=M[1],F=M[2],j=M[3],B=(0,Ht.useRef)({}).current,U=kn(l)?i.fallback[w]:l,V=function(e,t){for(var n in B){var r=n;if("data"===r){if(!o(e[r],t[r])){if(!kn(e[r]))return!1;if(!o(Q,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},$=(0,Ht.useMemo)((function(){var e=!!w&&!!n&&(kn(p)?!C().isPaused()&&!u&&(!!kn(d)||d):p),t=function(t){var n=wn(t);return delete n._k,e?s({isValidating:!0,isLoading:!0},n):n},r=R(),i=j(),a=t(r),o=r===i?a:t(i),c=a;return[function(){var e=t(R());return V(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},function(){return o}]}),[a,w]),G=(0,bn.useSyncExternalStore)((0,Ht.useCallback)((function(e){return F(w,(function(t,n){V(n,t)||e()}))}),[a,w]),$[0],$[1]),K=!N.current,W=b[w]&&b[w].length>0,H=G.data,Y=kn(H)?U:H,z=G.error,J=(0,Ht.useRef)(Y),Q=v?kn(H)?J.current:H:Y,X=!(W&&!kn(z))&&(K&&!kn(p)?p:!C().isPaused()&&(u?!kn(Y)&&d:kn(Y)||d)),Z=!!(w&&n&&K&&X),ee=kn(G.isValidating)?Z:G.isValidating,te=kn(G.isLoading)?Z:G.isLoading,ne=(0,Ht.useCallback)(function(){var e=r(t().mark((function e(n){var r,a,s,u,l,p,d,f,h,m,v,y,g,D,k,T;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=A.current,w&&r&&!O.current&&!C().isPaused()){e.next=3;break}return e.abrupt("return",!1);case 3:return u=!0,l=n||{},p=!E[w]||!l.dedupe,d=function(){return Gn?!O.current&&w===I.current&&N.current:w===I.current},f={isValidating:!1,isLoading:!1},h=function(){q(f)},m=function(){var e=E[w];e&&e[1]===s&&delete E[w]},v={isValidating:!0},kn(R().data)&&(v.isLoading=!0),e.prev=12,p&&(q(v),i.loadingTimeout&&kn(R().data)&&setTimeout((function(){u&&d()&&C().onLoadingSlow(w,i)}),i.loadingTimeout),E[w]=[r(_),Xn()]),y=c(E[w],2),a=y[0],s=y[1],e.next=19,a;case 19:if(a=e.sent,p&&setTimeout(m,i.dedupingInterval),E[w]&&E[w][1]===s){e.next=24;break}return p&&d()&&C().onDiscarded(w),e.abrupt("return",!1);case 24:if(f.error=En,g=x[w],kn(g)||!(s<=g[0]||s<=g[1]||0===g[1])){e.next=30;break}return h(),p&&d()&&C().onDiscarded(w),e.abrupt("return",!1);case 30:D=R().data,f.data=o(D,a)?D:a,p&&d()&&C().onSuccess(a,w,i),e.next=41;break;case 35:e.prev=35,e.t0=e.catch(12),m(),k=C(),T=k.shouldRetryOnError,k.isPaused()||(f.error=e.t0,p&&d()&&(k.onError(e.t0,w,k),(!0===T||Tn(T)&&T(e.t0))&&L()&&k.onErrorRetry(e.t0,w,k,(function(e){var t=b[w];t&&t[0]&&t[0](Zn,e)}),{retryCount:(l.retryCount||0)+1,dedupe:!0})));case 41:return u=!1,h(),e.abrupt("return",!0);case 44:case"end":return e.stop()}}),e,null,[[12,35]])})));return function(t){return e.apply(this,arguments)}}(),[w,a]),re=(0,Ht.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rr.apply(void 0,[a,I.current].concat(t))}),[]);if(Hn((function(){A.current=n,S.current=i,kn(H)||(J.current=H)})),Hn((function(){if(w){var e=ne.bind(En,gi),t=0,n=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}}(w,b,(function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n==er){var i=Date.now();C().revalidateOnFocus&&i>t&&L()&&(t=i+C().focusThrottleInterval,e())}else if(n==nr)C().revalidateOnReconnect&&L()&&e();else{if(n==tr)return ne();if(n==Zn)return ne(r)}}));return O.current=!1,I.current=w,N.current=!0,q({_k:_}),X&&(kn(Y)||Kn?e():Wn(e)),function(){O.current=!0,n()}}}),[w]),Hn((function(){var e;function t(){var t=Tn(f)?f(R().data):f;t&&-1!==e&&(e=setTimeout(n,t))}function n(){R().error||!h&&!C().isVisible()||!m&&!C().isOnline()?t():ne(gi).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[f,h,m,w]),(0,Ht.useDebugValue)(Q),u&&kn(Y)&&w){if(!Gn&&Kn)throw new Error("Fallback data is required when using suspense in SSR.");A.current=n,S.current=i,O.current=!1;var ie=D[w];if(!kn(ie)){var ae=re(ie);yi(ae)}if(!kn(z))throw z;var oe=ne(gi);kn(Q)||(oe.status="fulfilled",oe.value=!0),yi(oe)}return{mutate:re,get data(){return B.data=!0,Q},get error(){return B.error=!0,z},get isValidating(){return B.isValidating=!0,ee},get isLoading(){return B.isLoading=!0,te}}},function(){for(var e=gr(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=yr(n),a=c(i,3),o=a[0],s=a[1],u=a[2],l=dr(e,u),p=xr,d=l.use,f=(d||[]).concat(br),h=f.length;h--;)p=f[h](p);return p(o,s||l.fetcher||null,l)}),xi={revalidateOnFocus:"false"!==window.localStorage.getItem("swr_revalidateOnFocus"),revalidateIfStale:"false"!==window.localStorage.getItem("swr_revalidateIfStale"),revalidateOnReconnect:"false"!==window.localStorage.getItem("swr_revalidateOnReconnect")},Ei=function(e,t,n){var r,i=bi(e,t,u()(u()({},xi),n||{})),a=i.error,o=i.data,s=o&&"[object Object]"===Object.prototype.toString.call(o)&&Object.keys(o||{}).length>0;return u()(u()({},i),{},{data:s?o:(null==a||null===(r=a.response)||void 0===r?void 0:r.data)||o,loading:!o&&!a})},Di=gn(Er||(Er=tn()(["\n mutation createApplication($input: CreateApplicationMetadataInput!) {\n Application {\n createApplication(input: $input) {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n }\n }\n}\n "]))),ki=gn(Dr||(Dr=tn()(["\n mutation updateApplication($input: UpdateApplicationMetadataInput!) {\n Application {\n updateApplication(input: $input) {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n isPublic\n }\n }\n}\n "]))),Ti=gn(kr||(kr=tn()(["\n mutation deleteApplication($input: DeleteCommonInput!) {\n Application {\n deleteApplication(input: $input)\n }\n}\n "]))),wi=gn(Tr||(Tr=tn()(["\n mutation updateApplicationConfig($input: UpdateApplicationConfigInput!) {\n Application {\n updateApplicationConfig(input: $input) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n status\n }\n prologue\n model\n llm\n temperature\n maxLength\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n showNextGuid\n }\n }\n}\n "]))),_i=gn(wr||(wr=tn()(["\n query getApplication($name: String!, $namespace: String!) {\n Application {\n getApplication(name: $name, namespace: $namespace) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n status\n }\n prologue\n model\n llm\n temperature\n maxLength\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n showNextGuid\n }\n }\n}\n "]))),Ni=gn(_r||(_r=tn()(["\n query listApplications($input: ListCommonInput!) {\n Application {\n listApplicationMetadata(input: $input) {\n page\n pageSize\n totalCount\n hasNextPage\n nodes {\n ... on ApplicationMetadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n isPublic\n }\n }\n }\n }\n}\n "]))),Oi=gn(Nr||(Nr=tn()(["\n query allDataProcessListByPage($input: AllDataProcessListByPageInput!) {\n dataProcess {\n allDataProcessListByPage(input: $input) {\n status\n data {\n id\n name\n status\n pre_data_set_name\n pre_data_set_version\n post_data_set_name\n post_data_set_version\n start_datetime\n }\n message\n }\n }\n}\n "]))),Ii=gn(Or||(Or=tn()(["\n query allDataProcessListByCount($input: AllDataProcessListByCountInput!) {\n dataProcess {\n allDataProcessListByCount(input: $input) {\n status\n data\n message\n }\n }\n}\n "]))),Ai=gn(Ir||(Ir=tn()(["\n query dataProcessSupportType {\n dataProcess {\n dataProcessSupportType {\n status\n data {\n name\n description\n children {\n name\n zh_name\n description\n enable\n }\n }\n message\n }\n }\n}\n "]))),Si=gn(Ar||(Ar=tn()(["\n query dataProcessDetails($input: DataProcessDetailsInput) {\n dataProcess {\n dataProcessDetails(input: $input) {\n status\n data {\n id\n status\n name\n file_type\n pre_dataset_name\n pre_dataset_version\n post_dataset_name\n post_dataset_version\n file_num\n start_time\n end_time\n creator\n config {\n name\n description\n status\n children {\n name\n enable\n zh_name\n description\n preview {\n file_name\n content {\n pre\n post\n }\n }\n file_progress {\n id\n file_name\n status\n start_time\n end_time\n progress\n }\n }\n }\n }\n message\n }\n }\n}\n "]))),Ci=gn(Sr||(Sr=tn()(["\n mutation createDataProcessTask($input: AddDataProcessInput) {\n dataProcess {\n createDataProcessTask(input: $input) {\n status\n data\n message\n }\n }\n}\n "]))),Li=gn(Cr||(Cr=tn()(["\n mutation deleteDataProcessTask($input: DeleteDataProcessInput) {\n dataProcess {\n deleteDataProcessTask(input: $input) {\n status\n data\n message\n }\n }\n}\n "]))),Pi=gn(Lr||(Lr=tn()(["\n query listDatasets($input: ListDatasetInput, $versionsInput: ListVersionedDatasetInput!, $filesInput: FileFilter) {\n Dataset {\n listDatasets(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on Dataset {\n name\n namespace\n creator\n displayName\n updateTimestamp\n creationTimestamp\n contentType\n field\n versions(input: $versionsInput) {\n totalCount\n hasNextPage\n nodes {\n ... on VersionedDataset {\n name\n namespace\n displayName\n description\n syncStatus\n released\n dataProcessStatus\n updateTimestamp\n version\n files(input: $filesInput) {\n totalCount\n }\n }\n }\n }\n }\n }\n }\n }\n}\n "]))),Mi=gn(Pr||(Pr=tn()(["\n query getDataset($name: String!, $namespace: String!, $versionsInput: ListVersionedDatasetInput!, $filesInput: FileFilter) {\n Dataset {\n getDataset(name: $name, namespace: $namespace) {\n name\n namespace\n creator\n displayName\n updateTimestamp\n creationTimestamp\n contentType\n field\n versions(input: $versionsInput) {\n totalCount\n hasNextPage\n nodes {\n ... on VersionedDataset {\n name\n namespace\n displayName\n description\n syncStatus\n released\n dataProcessStatus\n updateTimestamp\n version\n files(input: $filesInput) {\n totalCount\n }\n }\n }\n }\n }\n }\n}\n "]))),Ri=gn(Mr||(Mr=tn()(["\n mutation createDataset($input: CreateDatasetInput) {\n Dataset {\n createDataset(input: $input) {\n name\n displayName\n labels\n }\n }\n}\n "]))),qi=gn(Rr||(Rr=tn()(["\n mutation updateDataset($input: UpdateDatasetInput) {\n Dataset {\n updateDataset(input: $input) {\n name\n displayName\n labels\n }\n }\n}\n "]))),Fi=gn(qr||(qr=tn()(["\n mutation deleteDatasets($input: DeleteCommonInput) {\n Dataset {\n deleteDatasets(input: $input)\n }\n}\n "]))),ji=gn(Fr||(Fr=tn()(["\n mutation createDatasource($input: CreateDatasourceInput!) {\n Datasource {\n createDatasource(input: $input) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n "]))),Bi=gn(jr||(jr=tn()(["\n mutation updateDatasource($input: UpdateDatasourceInput) {\n Datasource {\n updateDatasource(input: $input) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n "]))),Ui=gn(Br||(Br=tn()(["\n mutation deleteDatasources($input: DeleteCommonInput!) {\n Datasource {\n deleteDatasources(input: $input)\n }\n}\n "]))),Vi=gn(Ur||(Ur=tn()(["\n query listDatasources($input: ListCommonInput!) {\n Datasource {\n listDatasources(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Datasource {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n }\n }\n}\n "]))),$i=gn(Vr||(Vr=tn()(["\n query getDatasource($name: String!, $namespace: String!) {\n Datasource {\n getDatasource(name: $name, namespace: $namespace) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n "]))),Gi=gn($r||($r=tn()(["\n query checkDatasource($input: CreateDatasourceInput!) {\n Datasource {\n checkDatasource(input: $input) {\n name\n namespace\n status\n message\n }\n }\n}\n "]))),Ki=gn(Gr||(Gr=tn()(["\n mutation createEmbedder($input: CreateEmbedderInput!) {\n Embedder {\n createEmbedder(input: $input) {\n name\n namespace\n labels\n annotations\n displayName\n description\n type\n baseUrl\n models\n provider\n updateTimestamp\n status\n message\n }\n }\n}\n "]))),Wi=gn(Kr||(Kr=tn()(["\n mutation updateEmbedder($input: UpdateEmbedderInput) {\n Embedder {\n updateEmbedder(input: $input) {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n}\n "]))),Hi=gn(Wr||(Wr=tn()(["\n mutation deleteEmbedders($input: DeleteCommonInput!) {\n Embedder {\n deleteEmbedders(input: $input)\n }\n}\n "]))),Yi=gn(Hr||(Hr=tn()(["\n query listEmbedders($input: ListCommonInput!) {\n Embedder {\n listEmbedders(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on Embedder {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n }\n }\n}\n "]))),zi=gn(Yr||(Yr=tn()(["\n query getEmbedder($name: String!, $namespace: String!) {\n Embedder {\n getEmbedder(name: $name, namespace: $namespace) {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n }\n }\n}\n "]))),Ji=gn(zr||(zr=tn()(["\n query listKnowledgeBases($input: ListKnowledgeBaseInput!) {\n KnowledgeBase {\n listKnowledgeBases(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on KnowledgeBase {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n }\n }\n}\n "]))),Qi=gn(Jr||(Jr=tn()(["\n query getKnowledgeBase($name: String!, $namespace: String!) {\n KnowledgeBase {\n getKnowledgeBase(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),Xi=gn(Qr||(Qr=tn()(["\n mutation createKnowledgeBase($input: CreateKnowledgeBaseInput!) {\n KnowledgeBase {\n createKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),Zi=gn(Xr||(Xr=tn()(["\n mutation updateKnowledgeBase($input: UpdateKnowledgeBaseInput) {\n KnowledgeBase {\n updateKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),ea=gn(Zr||(Zr=tn()(["\n mutation deleteKnowledgeBase($input: DeleteCommonInput) {\n KnowledgeBase {\n deleteKnowledgeBase(input: $input)\n }\n}\n "]))),ta=gn(ei||(ei=tn()(["\n query listLLMs($input: ListCommonInput!) {\n LLM {\n listLLMs(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on LLM {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n }\n }\n}\n "]))),na=gn(ti||(ti=tn()(["\n query getLLM($name: String!, $namespace: String!) {\n LLM {\n getLLM(name: $name, namespace: $namespace) {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n}\n "]))),ra=gn(ni||(ni=tn()(["\n query listModels($input: ListModelInput!, $filesInput: FileFilter) {\n Model {\n listModels(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Model {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n files(input: $filesInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n }\n }\n}\n "]))),ia=gn(ri||(ri=tn()(["\n query getModel($name: String!, $namespace: String!, $filesInput: FileFilter) {\n Model {\n getModel(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n files(input: $filesInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n}\n "]))),aa=gn(ii||(ii=tn()(["\n mutation createModel($input: CreateModelInput!) {\n Model {\n createModel(input: $input) {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n }\n }\n}\n "]))),oa=gn(ai||(ai=tn()(["\n mutation updateModel($input: UpdateModelInput) {\n Model {\n updateModel(input: $input) {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n }\n }\n}\n "]))),sa=gn(oi||(oi=tn()(["\n mutation deleteModels($input: DeleteCommonInput) {\n Model {\n deleteModels(input: $input)\n }\n}\n "]))),ua=gn(si||(si=tn()(["\n mutation createVersionedDataset($input: CreateVersionedDatasetInput!) {\n VersionedDataset {\n createVersionedDataset(input: $input) {\n name\n displayName\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n }\n }\n}\n "]))),ca=gn(ui||(ui=tn()(["\n mutation updateVersionedDataset($input: UpdateVersionedDatasetInput!) {\n VersionedDataset {\n updateVersionedDataset(input: $input) {\n name\n displayName\n }\n }\n}\n "]))),la=gn(ci||(ci=tn()(["\n mutation deleteVersionedDatasets($input: DeleteVersionedDatasetInput!) {\n VersionedDataset {\n deleteVersionedDatasets(input: $input)\n }\n}\n "]))),pa=gn(li||(li=tn()(["\n query getVersionedDataset($name: String!, $namespace: String!, $fileInput: FileFilter) {\n VersionedDataset {\n getVersionedDataset(name: $name, namespace: $namespace) {\n id\n name\n displayName\n description\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n files(input: $fileInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n}\n "]))),da=gn(pi||(pi=tn()(["\n query listVersionedDatasets($input: ListVersionedDatasetInput!, $fileInput: FileFilter) {\n VersionedDataset {\n listVersionedDatasets(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on VersionedDataset {\n id\n name\n displayName\n description\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n files(input: $fileInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n }\n }\n}\n "]))),fa=gn(di||(di=tn()(["\n query listWorkers($input: ListWorkerInput!) {\n Worker {\n listWorkers(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Worker {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n message\n updateTimestamp\n type\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n resources {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n }\n }\n}\n "]))),ha=gn(fi||(fi=tn()(["\n query getWorker($name: String!, $namespace: String!) {\n Worker {\n getWorker(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n resources {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n}\n "]))),ma=gn(hi||(hi=tn()(["\n mutation createWorker($input: CreateWorkerInput!) {\n Worker {\n createWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n resources {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n}\n "]))),va=gn(mi||(mi=tn()(["\n mutation updateWorker($input: UpdateWorkerInput) {\n Worker {\n updateWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n resources {\n cpu\n memory\n nvidiaGPU\n }\n api\n model {\n name\n namespace\n kind\n apiGroup\n }\n modelTypes\n }\n }\n}\n "]))),ya=gn(vi||(vi=tn()(["\n mutation deleteWorkers($input: DeleteCommonInput) {\n Worker {\n deleteWorkers(input: $input)\n }\n}\n "]))),ga=function(e,t,n){return e()};function ba(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ga;return{createApplication:function(n,r){return t((function(t){return e.request(Di,n,u()(u()({},r),t))}),"createApplication","mutation")},updateApplication:function(n,r){return t((function(t){return e.request(ki,n,u()(u()({},r),t))}),"updateApplication","mutation")},deleteApplication:function(n,r){return t((function(t){return e.request(Ti,n,u()(u()({},r),t))}),"deleteApplication","mutation")},updateApplicationConfig:function(n,r){return t((function(t){return e.request(wi,n,u()(u()({},r),t))}),"updateApplicationConfig","mutation")},getApplication:function(n,r){return t((function(t){return e.request(_i,n,u()(u()({},r),t))}),"getApplication","query")},listApplications:function(n,r){return t((function(t){return e.request(Ni,n,u()(u()({},r),t))}),"listApplications","query")},allDataProcessListByPage:function(n,r){return t((function(t){return e.request(Oi,n,u()(u()({},r),t))}),"allDataProcessListByPage","query")},allDataProcessListByCount:function(n,r){return t((function(t){return e.request(Ii,n,u()(u()({},r),t))}),"allDataProcessListByCount","query")},dataProcessSupportType:function(n,r){return t((function(t){return e.request(Ai,n,u()(u()({},r),t))}),"dataProcessSupportType","query")},dataProcessDetails:function(n,r){return t((function(t){return e.request(Si,n,u()(u()({},r),t))}),"dataProcessDetails","query")},createDataProcessTask:function(n,r){return t((function(t){return e.request(Ci,n,u()(u()({},r),t))}),"createDataProcessTask","mutation")},deleteDataProcessTask:function(n,r){return t((function(t){return e.request(Li,n,u()(u()({},r),t))}),"deleteDataProcessTask","mutation")},listDatasets:function(n,r){return t((function(t){return e.request(Pi,n,u()(u()({},r),t))}),"listDatasets","query")},getDataset:function(n,r){return t((function(t){return e.request(Mi,n,u()(u()({},r),t))}),"getDataset","query")},createDataset:function(n,r){return t((function(t){return e.request(Ri,n,u()(u()({},r),t))}),"createDataset","mutation")},updateDataset:function(n,r){return t((function(t){return e.request(qi,n,u()(u()({},r),t))}),"updateDataset","mutation")},deleteDatasets:function(n,r){return t((function(t){return e.request(Fi,n,u()(u()({},r),t))}),"deleteDatasets","mutation")},createDatasource:function(n,r){return t((function(t){return e.request(ji,n,u()(u()({},r),t))}),"createDatasource","mutation")},updateDatasource:function(n,r){return t((function(t){return e.request(Bi,n,u()(u()({},r),t))}),"updateDatasource","mutation")},deleteDatasources:function(n,r){return t((function(t){return e.request(Ui,n,u()(u()({},r),t))}),"deleteDatasources","mutation")},listDatasources:function(n,r){return t((function(t){return e.request(Vi,n,u()(u()({},r),t))}),"listDatasources","query")},getDatasource:function(n,r){return t((function(t){return e.request($i,n,u()(u()({},r),t))}),"getDatasource","query")},checkDatasource:function(n,r){return t((function(t){return e.request(Gi,n,u()(u()({},r),t))}),"checkDatasource","query")},createEmbedder:function(n,r){return t((function(t){return e.request(Ki,n,u()(u()({},r),t))}),"createEmbedder","mutation")},updateEmbedder:function(n,r){return t((function(t){return e.request(Wi,n,u()(u()({},r),t))}),"updateEmbedder","mutation")},deleteEmbedders:function(n,r){return t((function(t){return e.request(Hi,n,u()(u()({},r),t))}),"deleteEmbedders","mutation")},listEmbedders:function(n,r){return t((function(t){return e.request(Yi,n,u()(u()({},r),t))}),"listEmbedders","query")},getEmbedder:function(n,r){return t((function(t){return e.request(zi,n,u()(u()({},r),t))}),"getEmbedder","query")},listKnowledgeBases:function(n,r){return t((function(t){return e.request(Ji,n,u()(u()({},r),t))}),"listKnowledgeBases","query")},getKnowledgeBase:function(n,r){return t((function(t){return e.request(Qi,n,u()(u()({},r),t))}),"getKnowledgeBase","query")},createKnowledgeBase:function(n,r){return t((function(t){return e.request(Xi,n,u()(u()({},r),t))}),"createKnowledgeBase","mutation")},updateKnowledgeBase:function(n,r){return t((function(t){return e.request(Zi,n,u()(u()({},r),t))}),"updateKnowledgeBase","mutation")},deleteKnowledgeBase:function(n,r){return t((function(t){return e.request(ea,n,u()(u()({},r),t))}),"deleteKnowledgeBase","mutation")},listLLMs:function(n,r){return t((function(t){return e.request(ta,n,u()(u()({},r),t))}),"listLLMs","query")},getLLM:function(n,r){return t((function(t){return e.request(na,n,u()(u()({},r),t))}),"getLLM","query")},listModels:function(n,r){return t((function(t){return e.request(ra,n,u()(u()({},r),t))}),"listModels","query")},getModel:function(n,r){return t((function(t){return e.request(ia,n,u()(u()({},r),t))}),"getModel","query")},createModel:function(n,r){return t((function(t){return e.request(aa,n,u()(u()({},r),t))}),"createModel","mutation")},updateModel:function(n,r){return t((function(t){return e.request(oa,n,u()(u()({},r),t))}),"updateModel","mutation")},deleteModels:function(n,r){return t((function(t){return e.request(sa,n,u()(u()({},r),t))}),"deleteModels","mutation")},createVersionedDataset:function(n,r){return t((function(t){return e.request(ua,n,u()(u()({},r),t))}),"createVersionedDataset","mutation")},updateVersionedDataset:function(n,r){return t((function(t){return e.request(ca,n,u()(u()({},r),t))}),"updateVersionedDataset","mutation")},deleteVersionedDatasets:function(n,r){return t((function(t){return e.request(la,n,u()(u()({},r),t))}),"deleteVersionedDatasets","mutation")},getVersionedDataset:function(n,r){return t((function(t){return e.request(pa,n,u()(u()({},r),t))}),"getVersionedDataset","query")},listVersionedDatasets:function(n,r){return t((function(t){return e.request(da,n,u()(u()({},r),t))}),"listVersionedDatasets","query")},listWorkers:function(n,r){return t((function(t){return e.request(fa,n,u()(u()({},r),t))}),"listWorkers","query")},getWorker:function(n,r){return t((function(t){return e.request(ha,n,u()(u()({},r),t))}),"getWorker","query")},createWorker:function(n,r){return t((function(t){return e.request(ma,n,u()(u()({},r),t))}),"createWorker","mutation")},updateWorker:function(n,r){return t((function(t){return e.request(va,n,u()(u()({},r),t))}),"updateWorker","mutation")},deleteWorkers:function(n,r){return t((function(t){return e.request(ya,n,u()(u()({},r),t))}),"deleteWorkers","mutation")}}}function xa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ga,n=ba(e,t),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return[e].concat(h()(Object.keys(t).sort().map((function(e){return t[e]}))))};return u()(u()({},n),{},{useGetApplication:function(e,t){return Ei(r("GetApplication",e),(function(){return n.getApplication(e)}),t)},useListApplications:function(e,t){return Ei(r("ListApplications",e),(function(){return n.listApplications(e)}),t)},useAllDataProcessListByPage:function(e,t){return Ei(r("AllDataProcessListByPage",e),(function(){return n.allDataProcessListByPage(e)}),t)},useAllDataProcessListByCount:function(e,t){return Ei(r("AllDataProcessListByCount",e),(function(){return n.allDataProcessListByCount(e)}),t)},useDataProcessSupportType:function(e,t){return Ei(r("DataProcessSupportType",e),(function(){return n.dataProcessSupportType(e)}),t)},useDataProcessDetails:function(e,t){return Ei(r("DataProcessDetails",e),(function(){return n.dataProcessDetails(e)}),t)},useListDatasets:function(e,t){return Ei(r("ListDatasets",e),(function(){return n.listDatasets(e)}),t)},useGetDataset:function(e,t){return Ei(r("GetDataset",e),(function(){return n.getDataset(e)}),t)},useListDatasources:function(e,t){return Ei(r("ListDatasources",e),(function(){return n.listDatasources(e)}),t)},useGetDatasource:function(e,t){return Ei(r("GetDatasource",e),(function(){return n.getDatasource(e)}),t)},useCheckDatasource:function(e,t){return Ei(r("CheckDatasource",e),(function(){return n.checkDatasource(e)}),t)},useListEmbedders:function(e,t){return Ei(r("ListEmbedders",e),(function(){return n.listEmbedders(e)}),t)},useGetEmbedder:function(e,t){return Ei(r("GetEmbedder",e),(function(){return n.getEmbedder(e)}),t)},useListKnowledgeBases:function(e,t){return Ei(r("ListKnowledgeBases",e),(function(){return n.listKnowledgeBases(e)}),t)},useGetKnowledgeBase:function(e,t){return Ei(r("GetKnowledgeBase",e),(function(){return n.getKnowledgeBase(e)}),t)},useListLlMs:function(e,t){return Ei(r("ListLlMs",e),(function(){return n.listLLMs(e)}),t)},useGetLlm:function(e,t){return Ei(r("GetLlm",e),(function(){return n.getLLM(e)}),t)},useListModels:function(e,t){return Ei(r("ListModels",e),(function(){return n.listModels(e)}),t)},useGetModel:function(e,t){return Ei(r("GetModel",e),(function(){return n.getModel(e)}),t)},useGetVersionedDataset:function(e,t){return Ei(r("GetVersionedDataset",e),(function(){return n.getVersionedDataset(e)}),t)},useListVersionedDatasets:function(e,t){return Ei(r("ListVersionedDatasets",e),(function(){return n.listVersionedDatasets(e)}),t)},useListWorkers:function(e,t){return Ei(r("ListWorkers",e),(function(){return n.listWorkers(e)}),t)},useGetWorker:function(e,t){return Ei(r("GetWorker",e),(function(){return n.getWorker(e)}),t)}})}var Ea=["url","operationName"],Da=function(e){var t=e.url,n=e.operationName,r=d()(e,Ea),i=t.split("?"),a=l()(i,2),o=a[0],s=a[1],c=Wt.parse(s);n&&(c.o=n);var p=function(){try{return JSON.parse(window.localStorage.getItem("authData")||"{}")}catch(e){return console.warn("getAuthData failed",e),{}}}().token||{},f=p.token_type,h=p.id_token,m=f&&h&&"".concat(f," ").concat(h);return u()(u()({url:"".concat(o,"?").concat(Wt.stringify(c)),operationName:n,credentials:"include"},r),{},{headers:m?u()(u()({},e.headers),{},{Authorization:m}):u()({},e.headers)})},ka=function(e){var t,n=e.errors||(null===(t=e.response)||void 0===t?void 0:t.errors);n&&Zt(n)},Ta=new dt("/kubeagi-apis/bff",{requestMiddleware:Da,responseMiddleware:ka}),wa=xa(Ta),_a=function(e,t){return t||(t={}),t.requestMiddleware?t.requestMiddleware=function(){var e=o()(n()().mark((function e(r){var i;return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.requestMiddleware(r);case 2:return i=e.sent,e.abrupt("return",Da(i));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():t.requestMiddleware=Da,t.responseMiddleware||(t.responseMiddleware=ka),new dt(e||endpoint,t)},Na=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.withHooks,r=e.requestConfig,i=_a(t,r),a=n?xa(i):ba(i);return a},Oa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.requestConfig,r=Na({withHooks:!1,url:t,requestConfig:n});return r},Ia=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.requestConfig,r=Na({withHooks:!0,url:t,requestConfig:n});return r},Aa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.requestConfig;return(0,Ht.useMemo)((function(){return Ia({url:t,requestConfig:n})}),[t,n])}}(),a}()}));
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.ArcadiaBffSDK=n():e.ArcadiaBffSDK=n()}(self,(function(){return function(){var e,n,t={615:function(e,n){var t="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=t.DOMException}return e.prototype=t,new e}();!function(e){!function(n){var t="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in e,o="ArrayBuffer"in e;if(o)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var n={next:function(){var n=e.shift();return{done:void 0===n,value:n}}};return r&&(n[Symbol.iterator]=function(){return n}),n}function d(e){this.map={},e instanceof d?e.forEach((function(e,n){this.append(n,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(n){this.append(n,e[n])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(n,t){e.onload=function(){n(e.result)},e.onerror=function(){t(e.error)}}))}function m(e){var n=new FileReader,t=h(n);return n.readAsArrayBuffer(e),t}function v(e){if(e.slice)return e.slice(0);var n=new Uint8Array(e.byteLength);return n.set(new Uint8Array(e)),n.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var n;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:t&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&i&&((n=e)&&DataView.prototype.isPrototypeOf(n))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e,n,t,r=f(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=new FileReader,t=h(n),n.readAsText(e),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var n=new Uint8Array(e),t=new Array(n.length),r=0;r<n.length;r++)t[r]=String.fromCharCode(n[r]);return t.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,n){e=c(e),n=l(n);var t=this.map[e];this.map[e]=t?t+", "+n:n},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,n){this.map[c(e)]=l(n)},d.prototype.forEach=function(e,n){for(var t in this.map)this.map.hasOwnProperty(t)&&e.call(n,this.map[t],t,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(n,t){e.push(t)})),p(e)},d.prototype.values=function(){var e=[];return this.forEach((function(n){e.push(n)})),p(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(n,t){e.push([t,n])})),p(e)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,n){var t,r,i=(n=n||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new d(n.headers)),this.method=(t=n.method||this.method||"GET",r=t.toUpperCase(),g.indexOf(r)>-1?r:t),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function x(e){var n=new FormData;return e.trim().split("&").forEach((function(e){if(e){var t=e.split("="),r=t.shift().replace(/\+/g," "),i=t.join("=").replace(/\+/g," ");n.append(decodeURIComponent(r),decodeURIComponent(i))}})),n}function E(e,n){n||(n={}),this.type="default",this.status=void 0===n.status?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in n?n.statusText:"OK",this.headers=new d(n.headers),this.url=n.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:0,statusText:""});return e.type="error",e};var D=[301,302,303,307,308];E.redirect=function(e,n){if(-1===D.indexOf(n))throw new RangeError("Invalid status code");return new E(null,{status:n,headers:{location:e}})},n.DOMException=e.DOMException;try{new n.DOMException}catch(e){n.DOMException=function(e,n){this.message=e,this.name=n;var t=Error(e);this.stack=t.stack},n.DOMException.prototype=Object.create(Error.prototype),n.DOMException.prototype.constructor=n.DOMException}function T(e,t){return new Promise((function(r,a){var o=new b(e,t);if(o.signal&&o.signal.aborted)return a(new n.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,n,t={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",n=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var t=e.split(":"),r=t.shift().trim();if(r){var i=t.join(":").trim();n.append(r,i)}})),n)};t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new E(i,t))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.onabort=function(){a(new n.DOMException("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),o.headers.forEach((function(e,n){s.setRequestHeader(n,e)})),o.signal&&(o.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",u)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}T.polyfill=!0,e.fetch||(e.fetch=T,e.Headers=d,e.Request=b,e.Response=E),n.Headers=d,n.Request=b,n.Response=E,n.fetch=T,Object.defineProperty(n,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(n=i.fetch).default=i.fetch,n.fetch=i.fetch,n.Headers=i.Headers,n.Request=i.Request,n.Response=i.Response,e.exports=n},199:function(e,n,t){"use strict";var r=t(313);var i="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function c(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),r=a({inst:{value:t,getSnapshot:n}}),i=r[0].inst,l=r[1];return s((function(){i.value=t,i.getSnapshot=n,c(i)&&l({inst:i})}),[e,t,n]),o((function(){return c(i)&&l({inst:i}),e((function(){c(i)&&l({inst:i})}))}),[e]),u(t),t};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},591:function(e,n,t){"use strict";e.exports=t(199)},313:function(e){"use strict";e.exports=window.React},18:function(e){e.exports=function(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r},e.exports.__esModule=!0,e.exports.default=e.exports},750:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},119:function(e,n,t){var r=t(18);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},617:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},845:function(e){function n(e,n,t,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void t(e)}s.done?n(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,u,"next",e)}function u(e){n(o,i,a,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},473:function(e){e.exports=function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},823:function(e,n,t){var r=t(942),i=t(945);function a(n,t,o){return i()?(e.exports=a=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=a=function(e,n,t){var i=[null];i.push.apply(i,n);var a=new(Function.bind.apply(e,i));return t&&r(a,t.prototype),a},e.exports.__esModule=!0,e.exports.default=e.exports),a.apply(null,arguments)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},566:function(e,n,t){var r=t(514);function i(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,n,t){return n&&i(e.prototype,n),t&&i(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},862:function(e,n,t){var r=t(251);e.exports=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=r(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==t.return||t.return()}finally{if(u)throw o}}}},e.exports.__esModule=!0,e.exports.default=e.exports},808:function(e,n,t){var r=t(573),i=t(945),a=t(2);e.exports=function(e){var n=i();return function(){var t,i=r(e);if(n){var o=r(this).constructor;t=Reflect.construct(i,arguments,o)}else t=i.apply(this,arguments);return a(this,t)}},e.exports.__esModule=!0,e.exports.default=e.exports},618:function(e,n,t){var r=t(514);e.exports=function(e,n,t){return(n=r(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e},e.exports.__esModule=!0,e.exports.default=e.exports},573:function(e){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},809:function(e,n,t){var r=t(942);e.exports=function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&r(e,n)},e.exports.__esModule=!0,e.exports.default=e.exports},778:function(e){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(n){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},945:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},304:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},516:function(e){e.exports=function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,a,o,s=[],u=!0,c=!1;try{if(a=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(r=a.call(t)).done)&&(s.push(r.value),s.length!==n);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},524:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},383:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},715:function(e,n,t){var r=t(618);function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}e.exports=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){r(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},183:function(e,n,t){var r=t(65);e.exports=function(e,n){if(null==e)return{};var t,i,a=r(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},65:function(e){e.exports=function(e,n){if(null==e)return{};var t,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(i[t]=e[t]);return i},e.exports.__esModule=!0,e.exports.default=e.exports},2:function(e,n,t){var r=t(496).default,i=t(617);e.exports=function(e,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},444:function(e,n,t){var r=t(496).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var n,t={},a=Object.prototype,o=a.hasOwnProperty,s=Object.defineProperty||function(e,n,t){e[n]=t.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",p=u.toStringTag||"@@toStringTag";function d(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{d({},"")}catch(n){d=function(e,n,t){return e[n]=t}}function f(e,n,t,r){var i=n&&n.prototype instanceof b?n:b,a=Object.create(i.prototype),o=new C(r||[]);return s(a,"_invoke",{value:O(e,t,o)}),a}function h(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",v="executing",y="completed",g={};function b(){}function x(){}function E(){}var D={};d(D,c,(function(){return this}));var T=Object.getPrototypeOf,k=T&&T(T(L([])));k&&k!==a&&o.call(k,c)&&(D=k);var w=E.prototype=b.prototype=Object.create(D);function _(e){["next","throw","return"].forEach((function(n){d(e,n,(function(e){return this._invoke(n,e)}))}))}function N(e,n){function t(i,a,s,u){var c=h(e[i],e,a);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==r(p)&&o.call(p,"__await")?n.resolve(p.__await).then((function(e){t("next",e,s,u)}),(function(e){t("throw",e,s,u)})):n.resolve(p).then((function(e){l.value=e,s(l)}),(function(e){return t("throw",e,s,u)}))}u(c.arg)}var i;s(this,"_invoke",{value:function(e,r){function a(){return new n((function(n,i){t(e,r,n,i)}))}return i=i?i.then(a,a):a()}})}function O(e,t,r){var i=m;return function(a,o){if(i===v)throw new Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:n,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var u=I(s,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===m)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var c=h(e,t,r);if("normal"===c.type){if(i=r.done?y:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=y,r.method="throw",r.arg=c.arg)}}}function I(e,t){var r=t.method,i=e.iterator[r];if(i===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=n,I(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=h(i,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,g;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function S(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function A(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function L(e){if(e||""===e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function t(){for(;++i<e.length;)if(o.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=n,t.done=!0,t};return a.next=a}}throw new TypeError(r(e)+" is not iterable")}return x.prototype=E,s(w,"constructor",{value:E,configurable:!0}),s(E,"constructor",{value:x,configurable:!0}),x.displayName=d(E,p,"GeneratorFunction"),t.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===x||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,d(e,p,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},_(N.prototype),d(N.prototype,l,(function(){return this})),t.AsyncIterator=N,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new N(f(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},_(w),d(w,p,"Generator"),d(w,c,(function(){return this})),d(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),g},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),A(t),g}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var i=r.arg;A(t)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},942:function(e){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},722:function(e,n,t){var r=t(750),i=t(516),a=t(251),o=t(524);e.exports=function(e,n){return r(e)||i(e,n)||a(e,n)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},406:function(e){e.exports=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},965:function(e,n,t){var r=t(119),i=t(304),a=t(251),o=t(383);e.exports=function(e){return r(e)||i(e)||a(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},727:function(e,n,t){var r=t(496).default;e.exports=function(e,n){if("object"!==r(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},514:function(e,n,t){var r=t(496).default,i=t(727);e.exports=function(e){var n=i(e,"string");return"symbol"===r(n)?n:String(n)},e.exports.__esModule=!0,e.exports.default=e.exports},496:function(e){function n(t){return e.exports=n="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},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},251:function(e,n,t){var r=t(18);e.exports=function(e,n){if(e){if("string"==typeof e)return r(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(e,n):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},407:function(e,n,t){var r=t(573),i=t(942),a=t(778),o=t(823);function s(n){var t="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return o(e,arguments,r(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(n)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e].call(a.exports,a,a.exports,i),a.exports}i.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(n,{a:n}),n},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var a=Object.create(null);i.r(a);var o={};e=e||[null,n({}),n([]),n(n)];for(var s=2&r&&t;"object"==typeof s&&!~e.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((function(e){o[e]=function(){return t[e]}}));return o.default=function(){return t},i.d(a,o),a},i.d=function(e,n){for(var t in n)i.o(n,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";i.r(a),i.d(a,{AllDataProcessListByCountDocument:function(){return Ci},AllDataProcessListByPageDocument:function(){return Ai},CheckDatasourceDocument:function(){return Hi},ClientError:function(){return We},CreateApplicationDocument:function(){return wi},CreateDataProcessTaskDocument:function(){return Mi},CreateDatasetDocument:function(){return ji},CreateDatasourceDocument:function(){return $i},CreateEmbedderDocument:function(){return Yi},CreateKnowledgeBaseDocument:function(){return na},CreateModelDocument:function(){return ua},CreateModelServiceDocument:function(){return pa},CreateVersionedDatasetDocument:function(){return ha},CreateWorkerDocument:function(){return Ea},DataProcessDetailsDocument:function(){return Pi},DataProcessSupportTypeDocument:function(){return Li},DeleteApplicationDocument:function(){return Ni},DeleteDataProcessTaskDocument:function(){return Ri},DeleteDatasetsDocument:function(){return Ui},DeleteDatasourcesDocument:function(){return Gi},DeleteEmbeddersDocument:function(){return Ji},DeleteKnowledgeBaseDocument:function(){return ra},DeleteModelServicesDocument:function(){return fa},DeleteModelsDocument:function(){return la},DeleteVersionedDatasetsDocument:function(){return va},DeleteWorkersDocument:function(){return Ta},GetApplicationDocument:function(){return Ii},GetDatasetDocument:function(){return Fi},GetDatasourceDocument:function(){return Wi},GetEmbedderDocument:function(){return Xi},GetKnowledgeBaseDocument:function(){return ea},GetLlmDocument:function(){return aa},GetModelDocument:function(){return sa},GetVersionedDatasetDocument:function(){return ya},GetWorkerDocument:function(){return xa},GraphQLClient:function(){return fn},GraphQLWebSocketClient:function(){return en},ListApplicationsDocument:function(){return Si},ListDatasetsDocument:function(){return qi},ListDatasourcesDocument:function(){return Ki},ListEmbeddersDocument:function(){return Qi},ListKnowledgeBasesDocument:function(){return Zi},ListLlMsDocument:function(){return ia},ListModelsDocument:function(){return oa},ListVersionedDatasetsDocument:function(){return ga},ListWorkersDocument:function(){return ba},UpdateApplicationConfigDocument:function(){return Oi},UpdateApplicationDocument:function(){return _i},UpdateDatasetDocument:function(){return Bi},UpdateDatasourceDocument:function(){return Vi},UpdateEmbedderDocument:function(){return zi},UpdateKnowledgeBaseDocument:function(){return ta},UpdateModelDocument:function(){return ca},UpdateModelServiceDocument:function(){return da},UpdateVersionedDatasetDocument:function(){return ma},UpdateWorkerDocument:function(){return Da},batchRequests:function(){return gn},client:function(){return Sa},errorsHandler:function(){return et},getSdk:function(){return wa},getSdkWithHooks:function(){return _a},gql:function(){return Tn},initGraphQLClient:function(){return Ca},initSdk:function(){return Pa},initSdkWithHooks:function(){return Ma},rawRequest:function(){return mn},request:function(){return vn},requestMiddleware:function(){return Oa},resolveRequestDocument:function(){return Ke},responseMiddleware:function(){return Ia},sdk:function(){return Aa},useSdk:function(){return Ra}});var e={};i.r(e),i.d(e,{exclude:function(){return Kn},extract:function(){return jn},parse:function(){return Bn},parseUrl:function(){return $n},pick:function(){return Gn},stringify:function(){return Un},stringifyUrl:function(){return Vn}});var n=i(444),t=i.n(n),r=i(845),o=i.n(r),s=i(715),u=i.n(s),c=i(722),l=i.n(c),p=i(183),d=i.n(p),f=i(965),h=i.n(f),m=i(618),v=i(473),y=i(566),g=i(496),b=i.n(g),x=JSON,E=function(e,n,t){return e.document?e:{document:e,variables:n,requestHeaders:t,signal:void 0}},D=function(e,n,t){return e.query?e:{query:e,variables:n,requestHeaders:t,signal:void 0}},T=function(e,n){for(var t=arguments.length,r=new Array(t>2?t-2:0),i=2;i<t;i++)r[i-2]=arguments[i];var a=r[0],o=r[1];return e.document?e:{url:e,document:n,variables:a,requestHeaders:o,signal:void 0}},k=function(e,n){for(var t=arguments.length,r=new Array(t>2?t-2:0),i=2;i<t;i++)r[i-2]=arguments[i];var a=r[0],o=r[1];return e.query?e:{url:e,query:n,variables:a,requestHeaders:o,signal:void 0}},w=i(862),_=i(617),N=i(809),O=i(808),I=i(407);function S(e){return"object"==g(e)&&null!==e}function A(e,n){if(!Boolean(e))throw new Error(null!=n?n:"Unexpected invariant triggered.")}var C=/\r\n|[\n\r]/g;function L(e,n){var t,r=0,i=1,a=w(e.body.matchAll(C));try{for(a.s();!(t=a.n()).done;){var o=t.value;if("number"==typeof o.index||A(!1),o.index>=n)break;r=o.index+o[0].length,i+=1}}catch(e){a.e(e)}finally{a.f()}return{line:i,column:n+1-r}}function P(e){return M(e.source,L(e.source,e.start))}function M(e,n){var t=e.locationOffset.column-1,r="".padStart(t)+e.body,i=n.line-1,a=e.locationOffset.line-1,o=n.line+a,s=1===n.line?t:0,u=n.column+s,c="".concat(e.name,":").concat(o,":").concat(u,"\n"),l=r.split(/\r\n|[\n\r]/g),p=l[i];if(p.length>120){for(var d=Math.floor(u/80),h=u%80,m=[],v=0;v<p.length;v+=80)m.push(p.slice(v,v+80));return c+R([["".concat(o," |"),m[0]]].concat(f(m.slice(1,d+1).map((function(e){return["|",e]}))),[["|","^".padStart(h)],["|",m[d+1]]]))}return c+R([["".concat(o-1," |"),l[i-1]],["".concat(o," |"),p],["|","^".padStart(u)],["".concat(o+1," |"),l[i+1]]])}function R(e){var n=e.filter((function(e){var n=c(e,2);n[0];return void 0!==n[1]})),t=Math.max.apply(Math,f(n.map((function(e){return c(e,1)[0].length}))));return n.map((function(e){var n=c(e,2),r=n[0],i=n[1];return r.padStart(t)+(i?" "+i:"")})).join("\n")}function q(e){var n=e[0];return null==n||"kind"in n||"length"in n?{nodes:n,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:n}var F=function(e,n){N(r,e);var t=O(r);function r(e){var n,i,a,o;v(this,r);for(var s=arguments.length,u=new Array(s>1?s-1:0),c=1;c<s;c++)u[c-1]=arguments[c];var l=q(u),p=l.nodes,d=l.source,f=l.positions,h=l.path,m=l.originalError,y=l.extensions;(n=t.call(this,e)).name="GraphQLError",n.path=null!=h?h:void 0,n.originalError=null!=m?m:void 0,n.nodes=j(Array.isArray(p)?p:p?[p]:void 0);var g=j(null===(i=n.nodes)||void 0===i?void 0:i.map((function(e){return e.loc})).filter((function(e){return null!=e})));n.source=null!=d?d:null==g||null===(a=g[0])||void 0===a?void 0:a.source,n.positions=null!=f?f:null==g?void 0:g.map((function(e){return e.start})),n.locations=f&&d?f.map((function(e){return L(d,e)})):null==g?void 0:g.map((function(e){return L(e.source,e.start)}));var b=S(null==m?void 0:m.extensions)?null==m?void 0:m.extensions:void 0;return n.extensions=null!==(o=null!=y?y:b)&&void 0!==o?o:Object.create(null),Object.defineProperties(_(n),{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=m&&m.stack?Object.defineProperty(_(n),"stack",{value:m.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(_(n),r):Object.defineProperty(_(n),"stack",{value:Error().stack,writable:!0,configurable:!0}),n}return y(r,[{key:n,get:function(){return"GraphQLError"}},{key:"toString",value:function(){var e=this.message;if(this.nodes){var n,t=w(this.nodes);try{for(t.s();!(n=t.n()).done;){var r=n.value;r.loc&&(e+="\n\n"+P(r.loc))}}catch(e){t.e(e)}finally{t.f()}}else if(this.source&&this.locations){var i,a=w(this.locations);try{for(a.s();!(i=a.n()).done;){var o=i.value;e+="\n\n"+M(this.source,o)}}catch(e){a.e(e)}finally{a.f()}}return e}},{key:"toJSON",value:function(){var e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}]),r}(I(Error),Symbol.toStringTag);function j(e){return void 0===e||0===e.length?void 0:e}function B(e,n,t){return new F("Syntax Error: ".concat(t),{source:e,positions:[n]})}var U,$,V,G,K=function(e){function n(e,t,r){v(this,n),this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}return y(n,[{key:e,get:function(){return"Location"}},{key:"toJSON",value:function(){return{start:this.start,end:this.end}}}]),n}(Symbol.toStringTag),W=function(e){function n(e,t,r,i,a,o){v(this,n),this.kind=e,this.start=t,this.end=r,this.line=i,this.column=a,this.value=o,this.prev=null,this.next=null}return y(n,[{key:e,get:function(){return"Token"}},{key:"toJSON",value:function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}]),n}(Symbol.toStringTag),H={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Y=new Set(Object.keys(H));function z(e){var n=null==e?void 0:e.kind;return"string"==typeof n&&Y.has(n)}function J(e){return 9===e||32===e}function Q(e){return e>=48&&e<=57}function X(e){return e>=97&&e<=122||e>=65&&e<=90}function Z(e){return X(e)||95===e}function ee(e){return X(e)||Q(e)||95===e}function ne(e){for(var n,t=Number.MAX_SAFE_INTEGER,r=null,i=-1,a=0;a<e.length;++a){var o,s=e[a],u=te(s);u!==s.length&&(r=null!==(o=r)&&void 0!==o?o:a,i=a,0!==a&&u<t&&(t=u))}return e.map((function(e,n){return 0===n?e:e.slice(t)})).slice(null!==(n=r)&&void 0!==n?n:0,i+1)}function te(e){for(var n=0;n<e.length&&J(e.charCodeAt(n));)++n;return n}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(U||(U={})),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"}($||($={})),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"}(V||(V={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(G||(G={}));var re=function(e){function n(e){v(this,n);var t=new W(G.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}return y(n,[{key:e,get:function(){return"Lexer"}},{key:"advance",value:function(){return this.lastToken=this.token,this.token=this.lookahead()}},{key:"lookahead",value:function(){var e=this.token;if(e.kind!==G.EOF)do{if(e.next)e=e.next;else{var n=le(this,e.end);e.next=n,n.prev=e,e=n}}while(e.kind===G.COMMENT);return e}}]),n}(Symbol.toStringTag);function ie(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function ae(e,n){return oe(e.charCodeAt(n))&&se(e.charCodeAt(n+1))}function oe(e){return e>=55296&&e<=56319}function se(e){return e>=56320&&e<=57343}function ue(e,n){var t=e.source.body.codePointAt(n);if(void 0===t)return G.EOF;if(t>=32&&t<=126){var r=String.fromCodePoint(t);return'"'===r?"'\"'":'"'.concat(r,'"')}return"U+"+t.toString(16).toUpperCase().padStart(4,"0")}function ce(e,n,t,r,i){var a=e.line,o=1+t-e.lineStart;return new W(n,t,r,a,o,i)}function le(e,n){for(var t=e.source.body,r=t.length,i=n;i<r;){var a=t.charCodeAt(i);switch(a){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===t.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return pe(e,i);case 33:return ce(e,G.BANG,i,i+1);case 36:return ce(e,G.DOLLAR,i,i+1);case 38:return ce(e,G.AMP,i,i+1);case 40:return ce(e,G.PAREN_L,i,i+1);case 41:return ce(e,G.PAREN_R,i,i+1);case 46:if(46===t.charCodeAt(i+1)&&46===t.charCodeAt(i+2))return ce(e,G.SPREAD,i,i+3);break;case 58:return ce(e,G.COLON,i,i+1);case 61:return ce(e,G.EQUALS,i,i+1);case 64:return ce(e,G.AT,i,i+1);case 91:return ce(e,G.BRACKET_L,i,i+1);case 93:return ce(e,G.BRACKET_R,i,i+1);case 123:return ce(e,G.BRACE_L,i,i+1);case 124:return ce(e,G.PIPE,i,i+1);case 125:return ce(e,G.BRACE_R,i,i+1);case 34:return 34===t.charCodeAt(i+1)&&34===t.charCodeAt(i+2)?xe(e,i):he(e,i)}if(Q(a)||45===a)return de(e,i,a);if(Z(a))return Ee(e,i);throw B(e.source,i,39===a?"Unexpected single quote character ('), did you mean to use a double quote (\")?":ie(a)||ae(t,i)?"Unexpected character: ".concat(ue(e,i),"."):"Invalid character: ".concat(ue(e,i),"."))}return ce(e,G.EOF,r,r)}function pe(e,n){for(var t=e.source.body,r=t.length,i=n+1;i<r;){var a=t.charCodeAt(i);if(10===a||13===a)break;if(ie(a))++i;else{if(!ae(t,i))break;i+=2}}return ce(e,G.COMMENT,n,i,t.slice(n+1,i))}function de(e,n,t){var r=e.source.body,i=n,a=t,o=!1;if(45===a&&(a=r.charCodeAt(++i)),48===a){if(Q(a=r.charCodeAt(++i)))throw B(e.source,i,"Invalid number, unexpected digit after 0: ".concat(ue(e,i),"."))}else i=fe(e,i,a),a=r.charCodeAt(i);if(46===a&&(o=!0,a=r.charCodeAt(++i),i=fe(e,i,a),a=r.charCodeAt(i)),69!==a&&101!==a||(o=!0,43!==(a=r.charCodeAt(++i))&&45!==a||(a=r.charCodeAt(++i)),i=fe(e,i,a),a=r.charCodeAt(i)),46===a||Z(a))throw B(e.source,i,"Invalid number, expected digit but got: ".concat(ue(e,i),"."));return ce(e,o?G.FLOAT:G.INT,n,i,r.slice(n,i))}function fe(e,n,t){if(!Q(t))throw B(e.source,n,"Invalid number, expected digit but got: ".concat(ue(e,n),"."));for(var r=e.source.body,i=n+1;Q(r.charCodeAt(i));)++i;return i}function he(e,n){for(var t=e.source.body,r=t.length,i=n+1,a=i,o="";i<r;){var s=t.charCodeAt(i);if(34===s)return o+=t.slice(a,i),ce(e,G.STRING,n,i+1,o);if(92!==s){if(10===s||13===s)break;if(ie(s))++i;else{if(!ae(t,i))throw B(e.source,i,"Invalid character within String: ".concat(ue(e,i),"."));i+=2}}else{o+=t.slice(a,i);var u=117===t.charCodeAt(i+1)?123===t.charCodeAt(i+2)?me(e,i):ve(e,i):be(e,i);o+=u.value,a=i+=u.size}}throw B(e.source,i,"Unterminated string.")}function me(e,n){for(var t=e.source.body,r=0,i=3;i<12;){var a=t.charCodeAt(n+i++);if(125===a){if(i<5||!ie(r))break;return{value:String.fromCodePoint(r),size:i}}if((r=r<<4|ge(a))<0)break}throw B(e.source,n,'Invalid Unicode escape sequence: "'.concat(t.slice(n,n+i),'".'))}function ve(e,n){var t=e.source.body,r=ye(t,n+2);if(ie(r))return{value:String.fromCodePoint(r),size:6};if(oe(r)&&92===t.charCodeAt(n+6)&&117===t.charCodeAt(n+7)){var i=ye(t,n+8);if(se(i))return{value:String.fromCodePoint(r,i),size:12}}throw B(e.source,n,'Invalid Unicode escape sequence: "'.concat(t.slice(n,n+6),'".'))}function ye(e,n){return ge(e.charCodeAt(n))<<12|ge(e.charCodeAt(n+1))<<8|ge(e.charCodeAt(n+2))<<4|ge(e.charCodeAt(n+3))}function ge(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function be(e,n){var t=e.source.body;switch(t.charCodeAt(n+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 B(e.source,n,'Invalid character escape sequence: "'.concat(t.slice(n,n+2),'".'))}function xe(e,n){for(var t=e.source.body,r=t.length,i=e.lineStart,a=n+3,o=a,s="",u=[];a<r;){var c=t.charCodeAt(a);if(34===c&&34===t.charCodeAt(a+1)&&34===t.charCodeAt(a+2)){s+=t.slice(o,a),u.push(s);var l=ce(e,G.BLOCK_STRING,n,a+3,ne(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,l}if(92!==c||34!==t.charCodeAt(a+1)||34!==t.charCodeAt(a+2)||34!==t.charCodeAt(a+3))if(10!==c&&13!==c)if(ie(c))++a;else{if(!ae(t,a))throw B(e.source,a,"Invalid character within String: ".concat(ue(e,a),"."));a+=2}else s+=t.slice(o,a),u.push(s),13===c&&10===t.charCodeAt(a+1)?a+=2:++a,s="",o=a,i=a;else s+=t.slice(o,a),o=a+1,a+=4}throw B(e.source,a,"Unterminated string.")}function Ee(e,n){for(var t=e.source.body,r=t.length,i=n+1;i<r;){if(!ee(t.charCodeAt(i)))break;++i}return ce(e,G.NAME,n,i,t.slice(n,i))}function De(e,n){if(!Boolean(e))throw new Error(n)}function Te(e){return ke(e,[])}function ke(e,n){switch(g(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return function(e,n){if(null===e)return"null";if(n.includes(e))return"[Circular]";var t=[].concat(f(n),[e]);if(function(e){return"function"==typeof e.toJSON}(e)){var r=e.toJSON();if(r!==e)return"string"==typeof r?r:ke(r,t)}else if(Array.isArray(e))return function(e,n){if(0===e.length)return"[]";if(n.length>2)return"[Array]";for(var t=Math.min(10,e.length),r=e.length-t,i=[],a=0;a<t;++a)i.push(ke(e[a],n));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,t);return function(e,n){var t=Object.entries(e);if(0===t.length)return"{}";if(n.length>2)return"["+function(e){var n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===n&&"function"==typeof e.constructor){var t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return n}(e)+"]";var r=t.map((function(e){var t=c(e,2);return t[0]+": "+ke(t[1],n)}));return"{ "+r.join(", ")+" }"}(e,t)}(e,n);default:return String(e)}}var we=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,n){return e instanceof n}:function(e,n){if(e instanceof n)return!0;if("object"===g(e)&&null!==e){var t,r=n.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(t=e.constructor)||void 0===t?void 0:t.name)){var i=Te(e);throw new Error("Cannot use ".concat(r,' "').concat(i,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1},_e=function(e){function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};v(this,n),"string"==typeof e||De(!1,"Body must be a string. Received: ".concat(Te(e),".")),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||De(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||De(!1,"column in locationOffset is 1-indexed and must be positive.")}return y(n,[{key:e,get:function(){return"Source"}}]),n}(Symbol.toStringTag);function Ne(e){return we(e,_e)}function Oe(e,n){return new Ie(e,n).parseDocument()}var Ie=function(){function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v(this,e);var r=Ne(n)?n:new _e(n);this._lexer=new re(r),this._options=t,this._tokenCounter=0}return y(e,[{key:"parseName",value:function(){var e=this.expectToken(G.NAME);return this.node(e,{kind:V.NAME,value:e.value})}},{key:"parseDocument",value:function(){return this.node(this._lexer.token,{kind:V.DOCUMENT,definitions:this.many(G.SOF,this.parseDefinition,G.EOF)})}},{key:"parseDefinition",value:function(){if(this.peek(G.BRACE_L))return this.parseOperationDefinition();var e=this.peekDescription(),n=e?this._lexer.lookahead():this._lexer.token;if(n.kind===G.NAME){switch(n.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 B(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}},{key:"parseOperationDefinition",value:function(){var e=this._lexer.token;if(this.peek(G.BRACE_L))return this.node(e,{kind:V.OPERATION_DEFINITION,operation:U.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});var n,t=this.parseOperationType();return this.peek(G.NAME)&&(n=this.parseName()),this.node(e,{kind:V.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseOperationType",value:function(){var e=this.expectToken(G.NAME);switch(e.value){case"query":return U.QUERY;case"mutation":return U.MUTATION;case"subscription":return U.SUBSCRIPTION}throw this.unexpected(e)}},{key:"parseVariableDefinitions",value:function(){return this.optionalMany(G.PAREN_L,this.parseVariableDefinition,G.PAREN_R)}},{key:"parseVariableDefinition",value:function(){return this.node(this._lexer.token,{kind:V.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(G.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(G.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}},{key:"parseVariable",value:function(){var e=this._lexer.token;return this.expectToken(G.DOLLAR),this.node(e,{kind:V.VARIABLE,name:this.parseName()})}},{key:"parseSelectionSet",value:function(){return this.node(this._lexer.token,{kind:V.SELECTION_SET,selections:this.many(G.BRACE_L,this.parseSelection,G.BRACE_R)})}},{key:"parseSelection",value:function(){return this.peek(G.SPREAD)?this.parseFragment():this.parseField()}},{key:"parseField",value:function(){var e,n,t=this._lexer.token,r=this.parseName();return this.expectOptionalToken(G.COLON)?(e=r,n=this.parseName()):n=r,this.node(t,{kind:V.FIELD,alias:e,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(G.BRACE_L)?this.parseSelectionSet():void 0})}},{key:"parseArguments",value:function(e){var n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(G.PAREN_L,n,G.PAREN_R)}},{key:"parseArgument",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this._lexer.token,t=this.parseName();return this.expectToken(G.COLON),this.node(n,{kind:V.ARGUMENT,name:t,value:this.parseValueLiteral(e)})}},{key:"parseConstArgument",value:function(){return this.parseArgument(!0)}},{key:"parseFragment",value:function(){var e=this._lexer.token;this.expectToken(G.SPREAD);var n=this.expectOptionalKeyword("on");return!n&&this.peek(G.NAME)?this.node(e,{kind:V.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:V.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentDefinition",value:function(){var e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:V.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:V.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentName",value:function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}},{key:"parseValueLiteral",value:function(e){var n=this._lexer.token;switch(n.kind){case G.BRACKET_L:return this.parseList(e);case G.BRACE_L:return this.parseObject(e);case G.INT:return this.advanceLexer(),this.node(n,{kind:V.INT,value:n.value});case G.FLOAT:return this.advanceLexer(),this.node(n,{kind:V.FLOAT,value:n.value});case G.STRING:case G.BLOCK_STRING:return this.parseStringLiteral();case G.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:V.BOOLEAN,value:!0});case"false":return this.node(n,{kind:V.BOOLEAN,value:!1});case"null":return this.node(n,{kind:V.NULL});default:return this.node(n,{kind:V.ENUM,value:n.value})}case G.DOLLAR:if(e){if(this.expectToken(G.DOLLAR),this._lexer.token.kind===G.NAME){var t=this._lexer.token.value;throw B(this._lexer.source,n.start,'Unexpected variable "$'.concat(t,'" in constant value.'))}throw this.unexpected(n)}return this.parseVariable();default:throw this.unexpected()}}},{key:"parseConstValueLiteral",value:function(){return this.parseValueLiteral(!0)}},{key:"parseStringLiteral",value:function(){var e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:V.STRING,value:e.value,block:e.kind===G.BLOCK_STRING})}},{key:"parseList",value:function(e){var n=this;return this.node(this._lexer.token,{kind:V.LIST,values:this.any(G.BRACKET_L,(function(){return n.parseValueLiteral(e)}),G.BRACKET_R)})}},{key:"parseObject",value:function(e){var n=this;return this.node(this._lexer.token,{kind:V.OBJECT,fields:this.any(G.BRACE_L,(function(){return n.parseObjectField(e)}),G.BRACE_R)})}},{key:"parseObjectField",value:function(e){var n=this._lexer.token,t=this.parseName();return this.expectToken(G.COLON),this.node(n,{kind:V.OBJECT_FIELD,name:t,value:this.parseValueLiteral(e)})}},{key:"parseDirectives",value:function(e){for(var n=[];this.peek(G.AT);)n.push(this.parseDirective(e));return n}},{key:"parseConstDirectives",value:function(){return this.parseDirectives(!0)}},{key:"parseDirective",value:function(e){var n=this._lexer.token;return this.expectToken(G.AT),this.node(n,{kind:V.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}},{key:"parseTypeReference",value:function(){var e,n=this._lexer.token;if(this.expectOptionalToken(G.BRACKET_L)){var t=this.parseTypeReference();this.expectToken(G.BRACKET_R),e=this.node(n,{kind:V.LIST_TYPE,type:t})}else e=this.parseNamedType();return this.expectOptionalToken(G.BANG)?this.node(n,{kind:V.NON_NULL_TYPE,type:e}):e}},{key:"parseNamedType",value:function(){return this.node(this._lexer.token,{kind:V.NAMED_TYPE,name:this.parseName()})}},{key:"peekDescription",value:function(){return this.peek(G.STRING)||this.peek(G.BLOCK_STRING)}},{key:"parseDescription",value:function(){if(this.peekDescription())return this.parseStringLiteral()}},{key:"parseSchemaDefinition",value:function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");var t=this.parseConstDirectives(),r=this.many(G.BRACE_L,this.parseOperationTypeDefinition,G.BRACE_R);return this.node(e,{kind:V.SCHEMA_DEFINITION,description:n,directives:t,operationTypes:r})}},{key:"parseOperationTypeDefinition",value:function(){var e=this._lexer.token,n=this.parseOperationType();this.expectToken(G.COLON);var t=this.parseNamedType();return this.node(e,{kind:V.OPERATION_TYPE_DEFINITION,operation:n,type:t})}},{key:"parseScalarTypeDefinition",value:function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");var t=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:V.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:r})}},{key:"parseObjectTypeDefinition",value:function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:V.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:r,directives:i,fields:a})}},{key:"parseImplementsInterfaces",value:function(){return this.expectOptionalKeyword("implements")?this.delimitedMany(G.AMP,this.parseNamedType):[]}},{key:"parseFieldsDefinition",value:function(){return this.optionalMany(G.BRACE_L,this.parseFieldDefinition,G.BRACE_R)}},{key:"parseFieldDefinition",value:function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),r=this.parseArgumentDefs();this.expectToken(G.COLON);var i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:V.FIELD_DEFINITION,description:n,name:t,arguments:r,type:i,directives:a})}},{key:"parseArgumentDefs",value:function(){return this.optionalMany(G.PAREN_L,this.parseInputValueDef,G.PAREN_R)}},{key:"parseInputValueDef",value:function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName();this.expectToken(G.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(G.EQUALS)&&(r=this.parseConstValueLiteral());var a=this.parseConstDirectives();return this.node(e,{kind:V.INPUT_VALUE_DEFINITION,description:n,name:t,type:i,defaultValue:r,directives:a})}},{key:"parseInterfaceTypeDefinition",value:function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");var t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:V.INTERFACE_TYPE_DEFINITION,description:n,name:t,interfaces:r,directives:i,fields:a})}},{key:"parseUnionTypeDefinition",value:function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");var t=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:V.UNION_TYPE_DEFINITION,description:n,name:t,directives:r,types:i})}},{key:"parseUnionMemberTypes",value:function(){return this.expectOptionalToken(G.EQUALS)?this.delimitedMany(G.PIPE,this.parseNamedType):[]}},{key:"parseEnumTypeDefinition",value:function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");var t=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:V.ENUM_TYPE_DEFINITION,description:n,name:t,directives:r,values:i})}},{key:"parseEnumValuesDefinition",value:function(){return this.optionalMany(G.BRACE_L,this.parseEnumValueDefinition,G.BRACE_R)}},{key:"parseEnumValueDefinition",value:function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:V.ENUM_VALUE_DEFINITION,description:n,name:t,directives:r})}},{key:"parseEnumValueName",value:function(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw B(this._lexer.source,this._lexer.token.start,"".concat(Se(this._lexer.token)," is reserved and cannot be used for an enum value."));return this.parseName()}},{key:"parseInputObjectTypeDefinition",value:function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");var t=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:V.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:r,fields:i})}},{key:"parseInputFieldsDefinition",value:function(){return this.optionalMany(G.BRACE_L,this.parseInputValueDef,G.BRACE_R)}},{key:"parseTypeSystemExtension",value:function(){var e=this._lexer.lookahead();if(e.kind===G.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}},{key:"parseSchemaExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var n=this.parseConstDirectives(),t=this.optionalMany(G.BRACE_L,this.parseOperationTypeDefinition,G.BRACE_R);if(0===n.length&&0===t.length)throw this.unexpected();return this.node(e,{kind:V.SCHEMA_EXTENSION,directives:n,operationTypes:t})}},{key:"parseScalarTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var n=this.parseName(),t=this.parseConstDirectives();if(0===t.length)throw this.unexpected();return this.node(e,{kind:V.SCALAR_TYPE_EXTENSION,name:n,directives:t})}},{key:"parseObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var n=this.parseName(),t=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===t.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:V.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:r,fields:i})}},{key:"parseInterfaceTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var n=this.parseName(),t=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===t.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:V.INTERFACE_TYPE_EXTENSION,name:n,interfaces:t,directives:r,fields:i})}},{key:"parseUnionTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var n=this.parseName(),t=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:V.UNION_TYPE_EXTENSION,name:n,directives:t,types:r})}},{key:"parseEnumTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var n=this.parseName(),t=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:V.ENUM_TYPE_EXTENSION,name:n,directives:t,values:r})}},{key:"parseInputObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var n=this.parseName(),t=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:V.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:r})}},{key:"parseDirectiveDefinition",value:function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(G.AT);var t=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return this.node(e,{kind:V.DIRECTIVE_DEFINITION,description:n,name:t,arguments:r,repeatable:i,locations:a})}},{key:"parseDirectiveLocations",value:function(){return this.delimitedMany(G.PIPE,this.parseDirectiveLocation)}},{key:"parseDirectiveLocation",value:function(){var e=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call($,n.value))return n;throw this.unexpected(e)}},{key:"node",value:function(e,n){return!0!==this._options.noLocation&&(n.loc=new K(e,this._lexer.lastToken,this._lexer.source)),n}},{key:"peek",value:function(e){return this._lexer.token.kind===e}},{key:"expectToken",value:function(e){var n=this._lexer.token;if(n.kind===e)return this.advanceLexer(),n;throw B(this._lexer.source,n.start,"Expected ".concat(Ae(e),", found ").concat(Se(n),"."))}},{key:"expectOptionalToken",value:function(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}},{key:"expectKeyword",value:function(e){var n=this._lexer.token;if(n.kind!==G.NAME||n.value!==e)throw B(this._lexer.source,n.start,'Expected "'.concat(e,'", found ').concat(Se(n),"."));this.advanceLexer()}},{key:"expectOptionalKeyword",value:function(e){var n=this._lexer.token;return n.kind===G.NAME&&n.value===e&&(this.advanceLexer(),!0)}},{key:"unexpected",value:function(e){var n=null!=e?e:this._lexer.token;return B(this._lexer.source,n.start,"Unexpected ".concat(Se(n),"."))}},{key:"any",value:function(e,n,t){this.expectToken(e);for(var r=[];!this.expectOptionalToken(t);)r.push(n.call(this));return r}},{key:"optionalMany",value:function(e,n,t){if(this.expectOptionalToken(e)){var r=[];do{r.push(n.call(this))}while(!this.expectOptionalToken(t));return r}return[]}},{key:"many",value:function(e,n,t){this.expectToken(e);var r=[];do{r.push(n.call(this))}while(!this.expectOptionalToken(t));return r}},{key:"delimitedMany",value:function(e,n){this.expectOptionalToken(e);var t=[];do{t.push(n.call(this))}while(this.expectOptionalToken(e));return t}},{key:"advanceLexer",value:function(){var e=this._options.maxTokens,n=this._lexer.advance();if(void 0!==e&&n.kind!==G.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw B(this._lexer.source,n.start,"Document contains more that ".concat(e," tokens. Parsing aborted."))}}]),e}();function Se(e){var n=e.value;return Ae(e.kind)+(null!=n?' "'.concat(n,'"'):"")}function Ae(e){return function(e){return e===G.BANG||e===G.DOLLAR||e===G.AMP||e===G.PAREN_L||e===G.PAREN_R||e===G.SPREAD||e===G.COLON||e===G.EQUALS||e===G.AT||e===G.BRACKET_L||e===G.BRACKET_R||e===G.BRACE_L||e===G.PIPE||e===G.BRACE_R}(e)?'"'.concat(e,'"'):e}var Ce=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Le(e){return Pe[e.charCodeAt(0)]}var Pe=["\\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"],Me=Object.freeze({});function Re(e,n){var t=e[n];return"object"===g(t)?t:"function"==typeof t?{enter:t,leave:void 0}:{enter:e.enter,leave:e.leave}}function qe(e){return function(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:H,r=new Map,i=0,a=Object.values(V);i<a.length;i++){var o=a[i];r.set(o,Re(n,o))}var s=void 0,u=Array.isArray(e),l=[e],p=-1,d=[],f=e,h=void 0,m=void 0,v=[],y=[];do{var g=++p===l.length,b=g&&0!==d.length;if(g){if(h=0===y.length?void 0:v[v.length-1],f=m,m=y.pop(),b)if(u){f=f.slice();var x,E=0,D=w(d);try{for(D.s();!(x=D.n()).done;){var T=c(x.value,2),k=T[0],_=T[1],N=k-E;null===_?(f.splice(N,1),E++):f[N]=_}}catch(e){D.e(e)}finally{D.f()}}else{f=Object.defineProperties({},Object.getOwnPropertyDescriptors(f));var O,I=w(d);try{for(I.s();!(O=I.n()).done;){var S=c(O.value,2),A=S[0],C=S[1];f[A]=C}}catch(e){I.e(e)}finally{I.f()}}p=s.index,l=s.keys,d=s.edits,u=s.inArray,s=s.prev}else if(m){if(null==(f=m[h=u?p:l[p]]))continue;v.push(h)}var L,P=void 0;if(!Array.isArray(f)){var M,R;z(f)||De(!1,"Invalid AST Node: ".concat(Te(f),"."));var q=g?null===(M=r.get(f.kind))||void 0===M?void 0:M.leave:null===(R=r.get(f.kind))||void 0===R?void 0:R.enter;if((P=null==q?void 0:q.call(n,f,h,m,v,y))===Me)break;if(!1===P){if(!g){v.pop();continue}}else if(void 0!==P&&(d.push([h,P]),!g)){if(!z(P)){v.pop();continue}f=P}}void 0===P&&b&&d.push([h,f]),g?v.pop():(s={inArray:u,index:p,keys:l,edits:d,prev:s},l=(u=Array.isArray(f))?f:null!==(L=t[f.kind])&&void 0!==L?L:[],p=-1,d=[],m&&y.push(m),m=f)}while(void 0!==s);return 0!==d.length?d[d.length-1][1]:e}(e,Fe)}var Fe={Name:{leave:function(e){return e.value}},Variable:{leave:function(e){return"$"+e.name}},Document:{leave:function(e){return je(e.definitions,"\n\n")}},OperationDefinition:{leave:function(e){var n=Ue("(",je(e.variableDefinitions,", "),")"),t=je([e.operation,je([e.name,n]),je(e.directives," ")]," ");return("query"===t?"":t+" ")+e.selectionSet}},VariableDefinition:{leave:function(e){var n=e.variable,t=e.type,r=e.defaultValue,i=e.directives;return n+": "+t+Ue(" = ",r)+Ue(" ",je(i," "))}},SelectionSet:{leave:function(e){return Be(e.selections)}},Field:{leave:function(e){var n=e.alias,t=e.name,r=e.arguments,i=e.directives,a=e.selectionSet,o=Ue("",n,": ")+t,s=o+Ue("(",je(r,", "),")");return s.length>80&&(s=o+Ue("(\n",$e(je(r,"\n")),"\n)")),je([s,je(i," "),a]," ")}},Argument:{leave:function(e){return e.name+": "+e.value}},FragmentSpread:{leave:function(e){return"..."+e.name+Ue(" ",je(e.directives," "))}},InlineFragment:{leave:function(e){var n=e.typeCondition,t=e.directives,r=e.selectionSet;return je(["...",Ue("on ",n),je(t," "),r]," ")}},FragmentDefinition:{leave:function(e){var n=e.name,t=e.typeCondition,r=e.variableDefinitions,i=e.directives,a=e.selectionSet;return"fragment ".concat(n).concat(Ue("(",je(r,", "),")")," ")+"on ".concat(t," ").concat(Ue("",je(i," ")," "))+a}},IntValue:{leave:function(e){return e.value}},FloatValue:{leave:function(e){return e.value}},StringValue:{leave:function(e){var n=e.value;return e.block?function(e,n){var t=e.replace(/"""/g,'\\"""'),r=t.split(/\r\n|[\n\r]/g),i=1===r.length,a=r.length>1&&r.slice(1).every((function(e){return 0===e.length||J(e.charCodeAt(0))})),o=t.endsWith('\\"""'),s=e.endsWith('"')&&!o,u=e.endsWith("\\"),c=s||u,l=!(null!=n&&n.minimize)&&(!i||e.length>70||c||a||o),p="",d=i&&J(e.charCodeAt(0));return(l&&!d||a)&&(p+="\n"),p+=t,(l||c)&&(p+="\n"),'"""'+p+'"""'}(n):'"'.concat(n.replace(Ce,Le),'"')}},BooleanValue:{leave:function(e){return e.value?"true":"false"}},NullValue:{leave:function(){return"null"}},EnumValue:{leave:function(e){return e.value}},ListValue:{leave:function(e){return"["+je(e.values,", ")+"]"}},ObjectValue:{leave:function(e){return"{"+je(e.fields,", ")+"}"}},ObjectField:{leave:function(e){return e.name+": "+e.value}},Directive:{leave:function(e){return"@"+e.name+Ue("(",je(e.arguments,", "),")")}},NamedType:{leave:function(e){return e.name}},ListType:{leave:function(e){return"["+e.type+"]"}},NonNullType:{leave:function(e){return e.type+"!"}},SchemaDefinition:{leave:function(e){var n=e.description,t=e.directives,r=e.operationTypes;return Ue("",n,"\n")+je(["schema",je(t," "),Be(r)]," ")}},OperationTypeDefinition:{leave:function(e){return e.operation+": "+e.type}},ScalarTypeDefinition:{leave:function(e){var n=e.description,t=e.name,r=e.directives;return Ue("",n,"\n")+je(["scalar",t,je(r," ")]," ")}},ObjectTypeDefinition:{leave:function(e){var n=e.description,t=e.name,r=e.interfaces,i=e.directives,a=e.fields;return Ue("",n,"\n")+je(["type",t,Ue("implements ",je(r," & ")),je(i," "),Be(a)]," ")}},FieldDefinition:{leave:function(e){var n=e.description,t=e.name,r=e.arguments,i=e.type,a=e.directives;return Ue("",n,"\n")+t+(Ve(r)?Ue("(\n",$e(je(r,"\n")),"\n)"):Ue("(",je(r,", "),")"))+": "+i+Ue(" ",je(a," "))}},InputValueDefinition:{leave:function(e){var n=e.description,t=e.name,r=e.type,i=e.defaultValue,a=e.directives;return Ue("",n,"\n")+je([t+": "+r,Ue("= ",i),je(a," ")]," ")}},InterfaceTypeDefinition:{leave:function(e){var n=e.description,t=e.name,r=e.interfaces,i=e.directives,a=e.fields;return Ue("",n,"\n")+je(["interface",t,Ue("implements ",je(r," & ")),je(i," "),Be(a)]," ")}},UnionTypeDefinition:{leave:function(e){var n=e.description,t=e.name,r=e.directives,i=e.types;return Ue("",n,"\n")+je(["union",t,je(r," "),Ue("= ",je(i," | "))]," ")}},EnumTypeDefinition:{leave:function(e){var n=e.description,t=e.name,r=e.directives,i=e.values;return Ue("",n,"\n")+je(["enum",t,je(r," "),Be(i)]," ")}},EnumValueDefinition:{leave:function(e){var n=e.description,t=e.name,r=e.directives;return Ue("",n,"\n")+je([t,je(r," ")]," ")}},InputObjectTypeDefinition:{leave:function(e){var n=e.description,t=e.name,r=e.directives,i=e.fields;return Ue("",n,"\n")+je(["input",t,je(r," "),Be(i)]," ")}},DirectiveDefinition:{leave:function(e){var n=e.description,t=e.name,r=e.arguments,i=e.repeatable,a=e.locations;return Ue("",n,"\n")+"directive @"+t+(Ve(r)?Ue("(\n",$e(je(r,"\n")),"\n)"):Ue("(",je(r,", "),")"))+(i?" repeatable":"")+" on "+je(a," | ")}},SchemaExtension:{leave:function(e){var n=e.directives,t=e.operationTypes;return je(["extend schema",je(n," "),Be(t)]," ")}},ScalarTypeExtension:{leave:function(e){return je(["extend scalar",e.name,je(e.directives," ")]," ")}},ObjectTypeExtension:{leave:function(e){var n=e.name,t=e.interfaces,r=e.directives,i=e.fields;return je(["extend type",n,Ue("implements ",je(t," & ")),je(r," "),Be(i)]," ")}},InterfaceTypeExtension:{leave:function(e){var n=e.name,t=e.interfaces,r=e.directives,i=e.fields;return je(["extend interface",n,Ue("implements ",je(t," & ")),je(r," "),Be(i)]," ")}},UnionTypeExtension:{leave:function(e){var n=e.name,t=e.directives,r=e.types;return je(["extend union",n,je(t," "),Ue("= ",je(r," | "))]," ")}},EnumTypeExtension:{leave:function(e){var n=e.name,t=e.directives,r=e.values;return je(["extend enum",n,je(t," "),Be(r)]," ")}},InputObjectTypeExtension:{leave:function(e){var n=e.name,t=e.directives,r=e.fields;return je(["extend input",n,je(t," "),Be(r)]," ")}}};function je(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(n=null==e?void 0:e.filter((function(e){return e})).join(t))&&void 0!==n?n:""}function Be(e){return Ue("{\n",$e(je(e,"\n")),"\n}")}function Ue(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=n&&""!==n?e+n+t:""}function $e(e){return Ue(" ",e.replace(/\n/g,"\n "))}function Ve(e){var n;return null!==(n=null==e?void 0:e.some((function(e){return e.includes("\n")})))&&void 0!==n&&n}var Ge=function(e){var n,t=void 0,r=e.definitions.filter((function(e){return"OperationDefinition"===e.kind}));1===r.length&&(t=null===(n=r[0])||void 0===n||null===(n=n.name)||void 0===n?void 0:n.value);return t},Ke=function(e){if("string"===g(e)){var n=void 0;try{var t=Oe(e);n=Ge(t)}catch(e){}return{query:e,operationName:n}}var r=Ge(e);return{query:qe(e),operationName:r}},We=function(e){N(t,e);var n=O(t);function t(e,r){var i;v(this,t);var a="".concat(t.extractMessage(e),": ").concat(JSON.stringify({response:e,request:r}));return i=n.call(this,a),Object.setPrototypeOf(_(i),t.prototype),i.response=e,i.request=r,"function"===g(Error.captureStackTrace)&&Error.captureStackTrace(_(i),t),i}return y(t,null,[{key:"extractMessage",value:function(e){var n,t;return null!==(n=null===(t=e.errors)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.message)&&void 0!==n?n:"GraphQL Error (Code: ".concat(e.status,")")}}]),t}(I(Error)),He=i(615),Ye=i.t(He,2),ze="ping",Je="pong",Qe="subscribe",Xe="complete",Ze=function(){function e(n,t,r){v(this,e),this._type=n,this._payload=t,this._id=r}return y(e,[{key:"type",get:function(){return this._type}},{key:"id",get:function(){return this._id}},{key:"payload",get:function(){return this._payload}},{key:"text",get:function(){var e={type:this.type};return null!=this.id&&null!=this.id&&(e.id=this.id),null!=this.payload&&null!=this.payload&&(e.payload=this.payload),JSON.stringify(e)}}],[{key:"parse",value:function(n,t){var r=JSON.parse(n),i=r.type,a=r.payload,o=r.id;return new e(i,t(a),o)}}]),e}(),en=function(){function e(t,i){var a=this,o=i.onInit,u=i.onAcknowledged,c=i.onPing,l=i.onPong;v(this,e),this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=t,t.addEventListener("open",function(){var e=r(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.socketState.acknowledged=!1,a.socketState.subscriptions={},e.t0=t,e.t1=nn,!o){e.next=10;break}return e.next=7,o();case 7:e.t2=e.sent,e.next=11;break;case 10:e.t2=null;case 11:e.t3=e.t2,e.t4=(0,e.t1)(e.t3).text,e.t0.send.call(e.t0,e.t4);case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),t.addEventListener("close",(function(e){a.socketState.acknowledged=!1,a.socketState.subscriptions={}})),t.addEventListener("error",(function(e){console.error(e)})),t.addEventListener("message",(function(e){try{var n=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};return Ze.parse(e,n)}(e.data);switch(n.type){case"connection_ack":return void(a.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(a.socketState.acknowledged=!0,u&&u(n.payload)));case ze:return void(c?c(n.payload).then((function(e){return t.send(tn(e).text)})):t.send(tn(null).text));case Je:return void(l&&l(n.payload))}if(!a.socketState.acknowledged)return;if(void 0===n.id||null===n.id||!a.socketState.subscriptions[n.id])return;var r=a.socketState.subscriptions[n.id],i=r.query,o=r.variables,p=r.subscriber;switch(n.type){case"next":return!n.payload.errors&&n.payload.data&&p.next&&p.next(n.payload.data),void(n.payload.errors&&p.error&&p.error(new We(s(s({},n.payload),{},{status:200}),{query:i,variables:o})));case"error":return void(p.error&&p.error(new We({errors:n.payload,status:200},{query:i,variables:o})));case Xe:return p.complete&&p.complete(),void delete a.socketState.subscriptions[n.id]}}catch(e){console.error(e),t.close(1006)}t.close(4400,"Unknown graphql-ws message.")}))}return y(e,[{key:"makeSubscribe",value:function(e,n,t,r){var i,a,o=this,s=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[s]={query:e,variables:r,subscriber:t},this.socket.send((i=s,a={query:e,operationName:n,variables:r},new Ze(Qe,a,i)).text),function(){o.socket.send(function(e){return new Ze(Xe,void 0,e)}(s).text),delete o.socketState.subscriptions[s]}}},{key:"rawRequest",value:function(e,n){var t=this;return new Promise((function(r,i){var a;t.rawSubscribe(e,{next:function(e,n){return a={data:e,extensions:n}},error:i,complete:function(){return r(a)}},n)}))}},{key:"request",value:function(e,n){var t=this;return new Promise((function(r,i){var a;t.subscribe(e,{next:function(e){return a=e},error:i,complete:function(){return r(a)}},n)}))}},{key:"subscribe",value:function(e,n,t){var r=Ke(e),i=r.query,a=r.operationName;return this.makeSubscribe(i,a,n,t)}},{key:"rawSubscribe",value:function(e,n,t){return this.makeSubscribe(e,void 0,n,t)}},{key:"ping",value:function(e){this.socket.send(function(e){return new Ze(ze,e,void 0)}(e).text)}},{key:"close",value:function(){this.socket.close(1e3)}}]),e}();function nn(e){return new Ze("connection_init",e)}function tn(e){return new Ze(Je,e,void 0)}en.PROTOCOL="graphql-transport-ws";var rn=["url"],an=["headers","fetch","method","requestMiddleware","responseMiddleware"],on=["headers","fetch","method","requestMiddleware","responseMiddleware"],sn=["headers"],un=["errors"],cn=function(e){var n={};return e&&("undefined"!==("undefined"==typeof Headers?"undefined":g(Headers))&&e instanceof Headers||Ye&&He.Headers&&e instanceof He.Headers?n=function(e){var n={};return e.forEach((function(e,t){n[t]=e})),n}(e):Array.isArray(e)?e.forEach((function(e){var t=c(e,2),r=t[0],i=t[1];r&&void 0!==i&&(n[r]=i)})):n=e),n},ln=function(e){return e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},pn=function(e){if(!Array.isArray(e.query)){var n=e,t=["query=".concat(encodeURIComponent(ln(n.query)))];return e.variables&&t.push("variables=".concat(encodeURIComponent(n.jsonSerializer.stringify(n.variables)))),n.operationName&&t.push("operationName=".concat(encodeURIComponent(n.operationName))),t.join("&")}if("undefined"!==g(e.variables)&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");var r=e,i=e.query.reduce((function(e,n,t){return e.push({query:ln(n),variables:r.variables?r.jsonSerializer.stringify(r.variables[t]):void 0}),e}),[]);return"query=".concat(encodeURIComponent(r.jsonSerializer.stringify(i)))},dn=function(e){return function(){var t=r(n().mark((function t(r){var i,a,o,u,c,l,d,f,h,m,v,y,b,E,D,T,k;return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=r.url,a=r.query,o=r.variables,u=r.operationName,c=r.fetch,l=r.fetchOptions,d=r.middleware,f=s({},r.headers),h="",m=void 0,"POST"===e?(m=xn(a,o,u,l.jsonSerializer),"string"===g(m)&&(f["Content-Type"]="application/json")):h=pn({query:a,variables:o,operationName:u,jsonSerializer:null!==(v=l.jsonSerializer)&&void 0!==v?v:x}),y=s({method:e,headers:f,body:m},l),b=i,E=y,!d){n.next=15;break}return n.next=11,Promise.resolve(d(s(s({},y),{},{url:i,operationName:u,variables:o})));case 11:D=n.sent,T=D.url,k=p(D,rn),b=T,E=k;case 15:return h&&(b="".concat(b,"?").concat(h)),n.next=18,c(b,E);case 18:return n.abrupt("return",n.sent);case 19:case"end":return n.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},fn=function(){function e(t){var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v(this,e),this.url=t,this.requestConfig=a,this.rawRequest=r(n().mark((function e(){var t,r,a,o,u,c,l,d,f,h,m,v,y,g,b,x,E,T,k,w=arguments;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=w.length,r=new Array(t),a=0;a<t;a++)r[a]=w[a];return o=r[0],u=r[1],c=r[2],l=D(o,u,c),d=i.requestConfig,f=d.headers,h=d.fetch,m=void 0===h?He:h,v=d.method,y=void 0===v?"POST":v,g=d.requestMiddleware,b=d.responseMiddleware,x=p(d,an),E=i.url,void 0!==l.signal&&(x.signal=l.signal),T=Ke(l.query),k=T.operationName,e.abrupt("return",hn({url:E,query:l.query,variables:l.variables,headers:s(s({},cn(Dn(f))),cn(l.requestHeaders)),operationName:k,fetch:m,method:y,fetchOptions:x,middleware:g}).then((function(e){return b&&b(e),e})).catch((function(e){throw b&&b(e),e})));case 8:case"end":return e.stop()}}),e)})))}var t;return y(e,[{key:"request",value:(t=r(n().mark((function e(t){var r,i,a,o,u,c,l,d,f,h,m,v,y,g,b,x,D,T,k,w=arguments;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=w.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=w[a];return o=i[0],u=i[1],c=E(t,o,u),l=this.requestConfig,d=l.headers,f=l.fetch,h=void 0===f?He:f,m=l.method,v=void 0===m?"POST":m,y=l.requestMiddleware,g=l.responseMiddleware,b=p(l,on),x=this.url,void 0!==c.signal&&(b.signal=c.signal),D=Ke(c.document),T=D.query,k=D.operationName,e.abrupt("return",hn({url:x,query:T,variables:c.variables,headers:s(s({},cn(Dn(d))),cn(c.requestHeaders)),operationName:k,fetch:h,method:v,fetchOptions:b,middleware:y}).then((function(e){return g&&g(e),e.data})).catch((function(e){throw g&&g(e),e})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"batchRequests",value:function(e,n){var t,r=this,i=function(e,n){return e.documents?e:{documents:e,requestHeaders:n,signal:void 0}}(e,n),a=this.requestConfig,o=a.headers,u=p(a,sn);void 0!==i.signal&&(u.signal=i.signal);var c=i.documents.map((function(e){var n=e.document;return Ke(n).query})),l=i.documents.map((function(e){return e.variables}));return hn({url:this.url,query:c,variables:l,headers:s(s({},cn(Dn(o))),cn(i.requestHeaders)),operationName:void 0,fetch:null!==(t=this.requestConfig.fetch)&&void 0!==t?t:He,method:this.requestConfig.method||"POST",fetchOptions:u,middleware:this.requestConfig.requestMiddleware}).then((function(e){return r.requestConfig.responseMiddleware&&r.requestConfig.responseMiddleware(e),e.data})).catch((function(e){throw r.requestConfig.responseMiddleware&&r.requestConfig.responseMiddleware(e),e}))}},{key:"setHeaders",value:function(e){return this.requestConfig.headers=e,this}},{key:"setHeader",value:function(e,n){var t=this.requestConfig.headers;return t?t[e]=n:this.requestConfig.headers=m({},e,n),this}},{key:"setEndpoint",value:function(e){return this.url=e,this}}]),e}(),hn=function(){var e=r(n().mark((function e(t){var r,i,a,o,u,c,l,d,f,h,m,v,y,b,E,D;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.query,o=t.variables,u=t.fetchOptions,c=dn((null!==(r=t.method)&&void 0!==r?r:"post").toUpperCase()),l=Array.isArray(t.query),e.next=5,c(t);case 5:return d=e.sent,e.next=8,En(d,null!==(i=u.jsonSerializer)&&void 0!==i?i:x);case 8:if(f=e.sent,h=Array.isArray(f)?!f.some((function(e){return!e.data})):Boolean(f.data),m=Array.isArray(f)||!f.errors||Array.isArray(f.errors)&&!f.errors.length||"all"===u.errorPolicy||"ignore"===u.errorPolicy,!(d.ok&&m&&h)){e.next=18;break}return Array.isArray(f),(v=f).errors,y=p(v,un),b="ignore"===u.errorPolicy?y:f,E=l?{data:b}:b,e.abrupt("return",s(s({},E),{},{headers:d.headers,status:d.status}));case 18:throw D="string"===g(f)?{error:f}:f,new We(s(s({},D),{},{status:d.status,headers:d.headers}),{query:a,variables:o});case 20:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),mn=function(){var e=r(n().mark((function e(){var t,r,i,a,o,u,c,l,p=arguments;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=p.length,r=new Array(t),i=0;i<t;i++)r[i]=p[i];return a=r[0],o=r[1],u=r.slice(2),c=k.apply(void 0,[a,o].concat(f(u))),l=new fn(c.url),e.abrupt("return",l.rawRequest(s({},c)));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function vn(e,n){return yn.apply(this,arguments)}function yn(){return yn=r(n().mark((function e(t,r){var i,a,o,u,c,l=arguments;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(i=l.length,a=new Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=l[o];return u=T.apply(void 0,[t,r].concat(a)),c=new fn(u.url),e.abrupt("return",c.request(s({},u)));case 4:case"end":return e.stop()}}),e)}))),yn.apply(this,arguments)}var gn=function(){var e=r(n().mark((function e(){var t,r,i,a,o,s=arguments;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=s.length,r=new Array(t),i=0;i<t;i++)r[i]=s[i];return a=bn(r),o=new fn(a.url),e.abrupt("return",o.batchRequests(a));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),bn=function(e){return 1===e.length?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0}},xn=function(e,n,t,r){var i=null!=r?r:x;if(!Array.isArray(e))return i.stringify({query:e,variables:n,operationName:t});if("undefined"!==g(n)&&!Array.isArray(n))throw new Error("Cannot create request body with given variable type, array expected");var a=e.reduce((function(e,t,r){return e.push({query:t,variables:n?n[r]:void 0}),e}),[]);return i.stringify(a)},En=function(){var e=r(n().mark((function e(t,r){var i;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.headers.forEach((function(e,n){"content-type"===n.toLowerCase()&&(i=e)})),!i||!(i.toLowerCase().startsWith("application/json")||i.toLowerCase().startsWith("application/graphql+json")||i.toLowerCase().startsWith("application/graphql-response+json"))){e.next=9;break}return e.t0=r,e.next=5,t.text();case 5:return e.t1=e.sent,e.abrupt("return",e.t0.parse.call(e.t0,e.t1));case 9:return e.abrupt("return",t.text());case 10:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),Dn=function(e){return"function"===g(e)?e():e},Tn=function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return e.reduce((function(e,n,r){return"".concat(e).concat(n).concat(r in t?String(t[r]):"")}),"")},kn="%[a-f0-9]{2}",wn=new RegExp("("+kn+")|([^%]+?)","gi"),_n=new RegExp("("+kn+")+","gi");function Nn(e,n){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;n=n||1;var t=e.slice(0,n),r=e.slice(n);return Array.prototype.concat.call([],Nn(t),Nn(r))}function On(e){try{return decodeURIComponent(e)}catch(r){for(var n=e.match(wn)||[],t=1;t<n.length;t++)n=(e=Nn(n,t).join("")).match(wn)||[];return e}}function In(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+g(e)+"`");try{return decodeURIComponent(e)}catch(n){return function(e){for(var n={"%FE%FF":"��","%FF%FE":"��"},t=_n.exec(e);t;){try{n[t[0]]=decodeURIComponent(t[0])}catch(e){var r=On(t[0]);r!==t[0]&&(n[t[0]]=r)}t=_n.exec(e)}n["%C2"]="�";for(var i=0,a=Object.keys(n);i<a.length;i++){var o=a[i];e=e.replace(new RegExp(o,"g"),n[o])}return e}(e)}}function Sn(e,n){if("string"!=typeof e||"string"!=typeof n)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===n)return[];var t=e.indexOf(n);return-1===t?[]:[e.slice(0,t),e.slice(t+n.length)]}function An(e,n){var t={};if(Array.isArray(n)){var r,i=w(n);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=Object.getOwnPropertyDescriptor(e,a);null!=o&&o.enumerable&&Object.defineProperty(t,a,o)}}catch(e){i.e(e)}finally{i.f()}}else{var s,u=w(Reflect.ownKeys(e));try{for(u.s();!(s=u.n()).done;){var c=s.value,l=Object.getOwnPropertyDescriptor(e,c);if(l.enumerable)n(c,e[c],e)&&Object.defineProperty(t,c,l)}}catch(e){u.e(e)}finally{u.f()}}return t}var Cn=Symbol("encodeFragmentIdentifier");function Ln(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function Pn(e,n){return n.encode?n.strict?encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())})):encodeURIComponent(e):e}function Mn(e,n){return n.decode?In(e):e}function Rn(e){return Array.isArray(e)?e.sort():"object"===g(e)?Rn(Object.keys(e)).sort((function(e,n){return Number(e)-Number(n)})).map((function(n){return e[n]})):e}function qn(e){var n=e.indexOf("#");return-1!==n&&(e=e.slice(0,n)),e}function Fn(e,n){return n.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!n.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function jn(e){var n=(e=qn(e)).indexOf("?");return-1===n?"":e.slice(n+1)}function Bn(e,n){Ln((n=s({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},n)).arrayFormatSeparator);var t=function(e){var n;switch(e.arrayFormat){case"index":return function(e,t,r){n=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),n?(void 0===r[e]&&(r[e]={}),r[e][n[1]]=t):r[e]=t};case"bracket":return function(e,t,r){n=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),n?void 0!==r[e]?r[e]=[].concat(f(r[e]),[t]):r[e]=[t]:r[e]=t};case"colon-list-separator":return function(e,t,r){n=/(:list)$/.exec(e),e=e.replace(/:list$/,""),n?void 0!==r[e]?r[e]=[].concat(f(r[e]),[t]):r[e]=[t]:r[e]=t};case"comma":case"separator":return function(n,t,r){var i="string"==typeof t&&t.includes(e.arrayFormatSeparator),a="string"==typeof t&&!i&&Mn(t,e).includes(e.arrayFormatSeparator);t=a?Mn(t,e):t;var o=i||a?t.split(e.arrayFormatSeparator).map((function(n){return Mn(n,e)})):null===t?t:Mn(t,e);r[n]=o};case"bracket-separator":return function(n,t,r){var i=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),i){var a=null===t?[]:t.split(e.arrayFormatSeparator).map((function(n){return Mn(n,e)}));void 0!==r[n]?r[n]=[].concat(f(r[n]),f(a)):r[n]=a}else r[n]=t?Mn(t,e):t};default:return function(e,n,t){void 0!==t[e]?t[e]=[].concat(f([t[e]].flat()),[n]):t[e]=n}}}(n),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;var i,a=w(e.split("&"));try{for(a.s();!(i=a.n()).done;){var o=i.value;if(""!==o){var u=n.decode?o.replace(/\+/g," "):o,l=Sn(u,"="),p=c(l,2),d=p[0],h=p[1];void 0===d&&(d=u),h=void 0===h?null:["comma","separator","bracket-separator"].includes(n.arrayFormat)?h:Mn(h,n),t(Mn(d,n),h,r)}}}catch(e){a.e(e)}finally{a.f()}for(var m=0,v=Object.entries(r);m<v.length;m++){var y=c(v[m],2),b=y[0],x=y[1];if("object"===g(x)&&null!==x)for(var E=0,D=Object.entries(x);E<D.length;E++){var T=c(D[E],2),k=T[0],_=T[1];x[k]=Fn(_,n)}else r[b]=Fn(x,n)}return!1===n.sort?r:(!0===n.sort?Object.keys(r).sort():Object.keys(r).sort(n.sort)).reduce((function(e,n){var t=r[n];return Boolean(t)&&"object"===g(t)&&!Array.isArray(t)?e[n]=Rn(t):e[n]=t,e}),Object.create(null))}function Un(e,n){if(!e)return"";Ln((n=s({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},n)).arrayFormatSeparator);for(var t=function(t){return n.skipNull&&function(e){return null==e}(e[t])||n.skipEmptyString&&""===e[t]},r=function(e){switch(e.arrayFormat){case"index":return function(n){return function(t,r){var i=t.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?t:[].concat(f(t),null===r?[[Pn(n,e),"[",i,"]"].join("")]:[[Pn(n,e),"[",Pn(i,e),"]=",Pn(r,e)].join("")])}};case"bracket":return function(n){return function(t,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?t:[].concat(f(t),null===r?[[Pn(n,e),"[]"].join("")]:[[Pn(n,e),"[]=",Pn(r,e)].join("")])}};case"colon-list-separator":return function(n){return function(t,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?t:[].concat(f(t),null===r?[[Pn(n,e),":list="].join("")]:[[Pn(n,e),":list=",Pn(r,e)].join("")])}};case"comma":case"separator":case"bracket-separator":var n="bracket-separator"===e.arrayFormat?"[]=":"=";return function(t){return function(r,i){return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[Pn(t,e),n,Pn(i,e)].join("")]:[[r,Pn(i,e)].join(e.arrayFormatSeparator)])}};default:return function(n){return function(t,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?t:[].concat(f(t),null===r?[Pn(n,e)]:[[Pn(n,e),"=",Pn(r,e)].join("")])}}}}(n),i={},a=0,o=Object.entries(e);a<o.length;a++){var u=c(o[a],2),l=u[0],p=u[1];t(l)||(i[l]=p)}var d=Object.keys(i);return!1!==n.sort&&d.sort(n.sort),d.map((function(t){var i=e[t];return void 0===i?"":null===i?Pn(t,n):Array.isArray(i)?0===i.length&&"bracket-separator"===n.arrayFormat?Pn(t,n)+"[]":i.reduce(r(t),[]).join("&"):Pn(t,n)+"="+Pn(i,n)})).filter((function(e){return e.length>0})).join("&")}function $n(e,n){var t,r;n=s({decode:!0},n);var i=Sn(e,"#"),a=c(i,2),o=a[0],u=a[1];return void 0===o&&(o=e),s({url:null!==(t=null===(r=o)||void 0===r||null===(r=r.split("?"))||void 0===r?void 0:r[0])&&void 0!==t?t:"",query:Bn(jn(e),n)},n&&n.parseFragmentIdentifier&&u?{fragmentIdentifier:Mn(u,n)}:{})}function Vn(e,n){n=s(m({encode:!0,strict:!0},Cn,!0),n);var t=qn(e.url).split("?")[0]||"",r=jn(e.url),i=Un(s(s({},Bn(r,{sort:!1})),e.query),n);i&&(i="?".concat(i));var a=function(e){var n="",t=e.indexOf("#");return-1!==t&&(n=e.slice(t)),n}(e.url);if(e.fragmentIdentifier){var o=new URL(t);o.hash=e.fragmentIdentifier,a=n[Cn]?o.hash:"#".concat(e.fragmentIdentifier)}return"".concat(t).concat(i).concat(a)}function Gn(e,n,t){var r=$n(e,t=s(m({parseFragmentIdentifier:!0},Cn,!1),t)),i=r.url,a=r.query,o=r.fragmentIdentifier;return Vn({url:i,query:An(a,n),fragmentIdentifier:o},t)}function Kn(e,n,t){return Gn(e,Array.isArray(n)?function(e){return!n.includes(e)}:function(e,t){return!n(e,t)},t)}var Wn,Hn=e,Yn=i(313),zn=window.antd,Jn=function(){window.location.href="/logout"},Qn=function(){var e;null===(e=Wn)||void 0===e||e.destroy(),Wn=void 0},Xn=window.TenxUiMaterials,Zn={create:"创建",delete:"删除",update:"更新",patch:"更新",get:"获取",list:"列取",watch:"监听"},et=function(e){var n=e.filter((function(e){var n;return void 0!==(null===(n=e.extensions)||void 0===n?void 0:n.code)}));0!==n.length?n.forEach((function(e){switch(e.extensions.code){case"InvalidToken":Wn||(Wn=zn.Modal.warn({okText:"确定",content:"用户凭证可能已失效,点击确定重新登录",onOk:Jn,onCancel:Qn}));break;case"Forbidden":!function(e){var n,t=(null===(n=e.extensions)||void 0===n||null===(n=n.exception)||void 0===n?void 0:n.details)||{},r=t.name,i=t.kind,a=t.verb,o="当前用户没有权限";o+="".concat(Zn[a]||"操作"),i&&(o+=" ".concat(i)),r&&(o+=" ".concat(r)),Xn.notification.warn({message:"当前操作未被授权",description:o,detail:e})}(e)}})):console.warn("uncaught errors",e)},nt=i(406),tt=i.n(nt);var rt=function(){return rt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},rt.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var it=new Map,at=new Map,ot=!0,st=!1;function ut(e){return e.replace(/[\s,]+/g," ").trim()}function ct(e){var n=new Set,t=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=ut((o=e.loc).source.body.substring(o.start,o.end)),a=at.get(r);a&&!a.has(i)?ot&&console.warn("Warning: fragment with name "+r+" 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"):a||at.set(r,a=new Set),a.add(i),n.has(i)||(n.add(i),t.push(e))}else t.push(e);var o})),rt(rt({},e),{definitions:t})}function lt(e){var n=ut(e);if(!it.has(n)){var t=Oe(e,{experimentalFragmentVariables:st,allowLegacyFragmentVariables:st});if(!t||"Document"!==t.kind)throw new Error("Not a valid GraphQL document.");it.set(n,function(e){var n=new Set(e.definitions);n.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(t){var r=e[t];r&&"object"===b()(r)&&n.add(r)}))}));var t=e.loc;return t&&(delete t.startToken,delete t.endToken),e}(ct(t)))}return it.get(n)}function pt(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];"string"==typeof e&&(e=[e]);var r=e[0];return n.forEach((function(n,t){n&&"Document"===n.kind?r+=n.loc.source.body:r+=n,r+=e[t+1]})),lt(r)}var dt,ft=pt,ht=function(){it.clear(),at.clear()},mt=function(){ot=!1},vt=function(){st=!0},yt=function(){st=!1};(dt=pt||(pt={})).gql=ft,dt.resetCaches=ht,dt.disableFragmentWarnings=mt,dt.enableExperimentalFragmentVariables=vt,dt.disableExperimentalFragmentVariables=yt,pt.default=pt;var gt=pt,bt=i(591),xt=function(){},Et=xt(),Dt=Object,Tt=function(e){return e===Et},kt=function(e){return"function"==typeof e},wt=function(e,n){return s(s({},e),n)},_t=function(e){return kt(e.then)},Nt=new WeakMap,Ot=0,It=function e(n){var t,r,i=g(n),a=n&&n.constructor,o=a==Date;if(Dt(n)!==n||o||a==RegExp)t=o?n.toJSON():"symbol"==i?n.toString():"string"==i?JSON.stringify(n):""+n;else{if(t=Nt.get(n))return t;if(t=++Ot+"~",Nt.set(n,t),a==Array){for(t="@",r=0;r<n.length;r++)t+=e(n[r])+",";Nt.set(n,t)}if(a==Dt){t="#";for(var s=Dt.keys(n).sort();!Tt(r=s.pop());)Tt(n[r])||(t+=r+":"+e(n[r])+",");Nt.set(n,t)}}return t},St=new WeakMap,At={},Ct={},Lt="undefined",Pt=("undefined"==typeof window?"undefined":g(window))!=Lt,Mt=("undefined"==typeof document?"undefined":g(document))!=Lt,Rt=function(e,n){var t=St.get(e);return[function(){return!Tt(n)&&e.get(n)||At},function(r){if(!Tt(n)){var i=e.get(n);n in Ct||(Ct[n]=i),t[5](n,wt(i,r),i||At)}},t[6],function(){return!Tt(n)&&n in Ct?Ct[n]:!Tt(n)&&e.get(n)||At}]},qt=!0,Ft=Pt&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[xt,xt],jt=c(Ft,2),Bt=jt[0],Ut=jt[1],$t={isOnline:function(){return qt},isVisible:function(){var e=Mt&&document.visibilityState;return Tt(e)||"hidden"!==e}},Vt={initFocus:function(e){return Mt&&document.addEventListener("visibilitychange",e),Bt("focus",e),function(){Mt&&document.removeEventListener("visibilitychange",e),Ut("focus",e)}},initReconnect:function(e){var n=function(){qt=!0,e()},t=function(){qt=!1};return Bt("online",n),Bt("offline",t),function(){Ut("online",n),Ut("offline",t)}}},Gt=!Yn.useId,Kt=!Pt||"Deno"in window,Wt=function(e){return Pt&&g(window.requestAnimationFrame)!=Lt?window.requestAnimationFrame(e):setTimeout(e,1)},Ht=Kt?Yn.useEffect:Yn.useLayoutEffect,Yt="undefined"!=typeof navigator&&navigator.connection,zt=!Kt&&Yt&&(["slow-2g","2g"].includes(Yt.effectiveType)||Yt.saveData),Jt=function(e){if(kt(e))try{e=e()}catch(n){e=""}var n=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?It(e):"",n]},Qt=0,Xt=function(){return++Qt},Zt=3,er=0,nr=2,tr=1;function rr(){return ir.apply(this,arguments)}function ir(){return ir=r(n().mark((function e(){var t,i,a,o,s,u,l,p,d,f,h,m,v,y,g,b,x,E,D,T,k,_,N=arguments;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(_=function(){return _=r(n().mark((function e(t){var r,a,s,l,p,f,g,b,x,E,D,T,k,w,_,N,O,I,S,A,C,L,P;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Jt(t),a=c(r,1),s=a[0]){e.next=3;break}return e.abrupt("return");case 3:if(l=Rt(o,s),p=c(l,2),f=p[0],g=p[1],b=St.get(o),x=c(b,4),E=x[0],D=x[1],T=x[2],k=x[3],w=function(){var e=E[s];return m&&(delete T[s],delete k[s],e&&e[0])?e[0](2).then((function(){return f().data})):f().data},!(i.length<3)){e.next=8;break}return e.abrupt("return",w());case 8:if(_=u,O=Xt(),D[s]=[O,0],I=!Tt(h),S=f(),A=S.data,C=S._c,L=Tt(C)?A:C,I&&(h=kt(h)?h(L,A):h,g({data:h,_c:L})),kt(_))try{_=_(L)}catch(e){N=e}if(!_||!_t(_)){e.next=29;break}return e.next=21,_.catch((function(e){N=e}));case 21:if(_=e.sent,O===D[s][0]){e.next=28;break}if(!N){e.next=25;break}throw N;case 25:return e.abrupt("return",_);case 28:N&&I&&v(N)&&(d=!0,g({data:L,_c:Et}));case 29:if(d&&(N||(kt(d)?(P=d(_,L),g({data:P,error:Et,_c:Et})):g({data:_,error:Et,_c:Et}))),D[s][1]=Xt(),Promise.resolve(w()).then((function(){g({_c:Et})})),!N){e.next=36;break}if(!y){e.next=35;break}throw N;case 35:return e.abrupt("return");case 36:return e.abrupt("return",_);case 37:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)},k=function(e){return _.apply(this,arguments)},t=N.length,i=new Array(t),a=0;a<t;a++)i[a]=N[a];if(o=i[0],s=i[1],u=i[2],l=i[3],p=wt({populateCache:!0,throwOnError:!0},"boolean"==typeof l?{revalidate:l}:l||{}),d=p.populateCache,f=p.rollbackOnError,h=p.optimisticData,m=!1!==p.revalidate,v=function(e){return"function"==typeof f?f(e):!1!==f},y=p.throwOnError,!kt(s)){e.next=18;break}g=s,b=[],x=o.keys(),E=w(x);try{for(E.s();!(D=E.n()).done;)T=D.value,!/^\$(inf|sub)\$/.test(T)&&g(o.get(T)._k)&&b.push(T)}catch(e){E.e(e)}finally{E.f()}return e.abrupt("return",Promise.all(b.map(k)));case 18:return e.abrupt("return",k(s));case 19:case"end":return e.stop()}}),e)}))),ir.apply(this,arguments)}var ar=function(e,n){for(var t in e)e[t][0]&&e[t][0](n)},or=function(e,n){if(!St.has(e)){var t=wt(Vt,n),r={},i=rr.bind(Et,e),a=xt,o={},s=function(e,n){var t=o[e]||[];return o[e]=t,t.push(n),function(){return t.splice(t.indexOf(n),1)}},u=function(n,t,r){e.set(n,t);var i=o[n];if(i){var a,s=w(i);try{for(s.s();!(a=s.n()).done;){(0,a.value)(t,r)}}catch(e){s.e(e)}finally{s.f()}}},c=function(){if(!St.has(e)&&(St.set(e,[r,{},{},{},i,u,s]),!Kt)){var n=t.initFocus(setTimeout.bind(Et,ar.bind(Et,r,0))),o=t.initReconnect(setTimeout.bind(Et,ar.bind(Et,r,1)));a=function(){n&&n(),o&&o(),St.delete(e)}}};return c(),[e,i,c,a]}return[e,St.get(e)[4]]},sr=or(new Map),ur=c(sr,2),cr=ur[0],lr=ur[1],pr=wt({onLoadingSlow:xt,onSuccess:xt,onError:xt,onErrorRetry:function(e,n,t,r,i){var a=t.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*t.errorRetryInterval;!Tt(a)&&o>a||setTimeout(r,s,i)},onDiscarded:xt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:zt?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:zt?5e3:3e3,compare:function(e,n){return It(e)==It(n)},isPaused:function(){return!1},cache:cr,mutate:lr,fallback:{}},$t),dr=function(e,n){var t=wt(e,n);if(n){var r=e.use,i=e.fallback,a=n.use,o=n.fallback;r&&a&&(t.use=r.concat(a)),i&&o&&(t.fallback=wt(i,o))}return t},fr=(0,Yn.createContext)({}),hr="$inf$",mr=Pt&&window.__SWR_DEVTOOLS_USE__,vr=mr?window.__SWR_DEVTOOLS_USE__:[],yr=function(e){return kt(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},gr=function(){return wt(pr,(0,Yn.useContext)(fr))},br=vr.concat((function(e){return function(n,t,r){var i=t&&function(){var e=Jt(n),r=c(e,1),i=r[0],a=St.get(cr),o=c(a,4),s=o[3];if(i.startsWith(hr))return t.apply(void 0,arguments);var u=s[i];return Tt(u)?t.apply(void 0,arguments):(delete s[i],u)};return e(n,i,r)}}));mr&&(window.__SWR_DEVTOOLS_REACT__=Yn);var xr,Er,Dr,Tr,kr,wr,_r,Nr,Or,Ir,Sr,Ar,Cr,Lr,Pr,Mr,Rr,qr,Fr,jr,Br,Ur,$r,Vr,Gr,Kr,Wr,Hr,Yr,zr,Jr,Qr,Xr,Zr,ei,ni,ti,ri,ii,ai,oi,si,ui,ci,li,pi,di,fi,hi,mi,vi,yi,gi,bi,xi=Yn.use||function(e){if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((function(n){e.status="fulfilled",e.value=n}),(function(n){e.status="rejected",e.reason=n})),e)},Ei={dedupe:!0},Di=(Dt.defineProperty((function(e){var n=e.value,t=(0,Yn.useContext)(fr),r=kt(n),i=(0,Yn.useMemo)((function(){return r?n(t):n}),[r,t,n]),a=(0,Yn.useMemo)((function(){return r?i:dr(t,i)}),[r,t,i]),o=i&&i.provider,s=(0,Yn.useRef)(Et);o&&!s.current&&(s.current=or(o(a.cache||cr),i));var u=s.current;return u&&(a.cache=u[0],a.mutate=u[1]),Ht((function(){if(u)return u[2]&&u[2](),u[3]}),[]),(0,Yn.createElement)(fr.Provider,wt(e,{value:a}))}),"defaultValue",{value:pr}),xr=function(e,t,i){var a=i.cache,o=i.compare,u=i.suspense,l=i.fallbackData,p=i.revalidateOnMount,d=i.revalidateIfStale,f=i.refreshInterval,h=i.refreshWhenHidden,m=i.refreshWhenOffline,v=i.keepPreviousData,y=St.get(a),g=c(y,4),b=g[0],x=g[1],E=g[2],D=g[3],T=Jt(e),k=c(T,2),w=k[0],_=k[1],N=(0,Yn.useRef)(!1),O=(0,Yn.useRef)(!1),I=(0,Yn.useRef)(w),S=(0,Yn.useRef)(t),A=(0,Yn.useRef)(i),C=function(){return A.current},L=function(){return C().isVisible()&&C().isOnline()},P=Rt(a,w),M=c(P,4),R=M[0],q=M[1],F=M[2],j=M[3],B=(0,Yn.useRef)({}).current,U=Tt(l)?i.fallback[w]:l,$=function(e,n){for(var t in B){var r=t;if("data"===r){if(!o(e[r],n[r])){if(!Tt(e[r]))return!1;if(!o(Q,n[r]))return!1}}else if(n[r]!==e[r])return!1}return!0},V=(0,Yn.useMemo)((function(){var e=!!w&&!!t&&(Tt(p)?!C().isPaused()&&!u&&(!!Tt(d)||d):p),n=function(n){var t=wt(n);return delete t._k,e?s({isValidating:!0,isLoading:!0},t):t},r=R(),i=j(),a=n(r),o=r===i?a:n(i),c=a;return[function(){var e=n(R());return $(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},function(){return o}]}),[a,w]),G=(0,bt.useSyncExternalStore)((0,Yn.useCallback)((function(e){return F(w,(function(n,t){$(t,n)||e()}))}),[a,w]),V[0],V[1]),K=!N.current,W=b[w]&&b[w].length>0,H=G.data,Y=Tt(H)?U:H,z=G.error,J=(0,Yn.useRef)(Y),Q=v?Tt(H)?J.current:H:Y,X=!(W&&!Tt(z))&&(K&&!Tt(p)?p:!C().isPaused()&&(u?!Tt(Y)&&d:Tt(Y)||d)),Z=!!(w&&t&&K&&X),ee=Tt(G.isValidating)?Z:G.isValidating,ne=Tt(G.isLoading)?Z:G.isLoading,te=(0,Yn.useCallback)(function(){var e=r(n().mark((function e(t){var r,a,s,u,l,p,d,f,h,m,v,y,g,D,T,k;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=S.current,w&&r&&!O.current&&!C().isPaused()){e.next=3;break}return e.abrupt("return",!1);case 3:return u=!0,l=t||{},p=!E[w]||!l.dedupe,d=function(){return Gt?!O.current&&w===I.current&&N.current:w===I.current},f={isValidating:!1,isLoading:!1},h=function(){q(f)},m=function(){var e=E[w];e&&e[1]===s&&delete E[w]},v={isValidating:!0},Tt(R().data)&&(v.isLoading=!0),e.prev=12,p&&(q(v),i.loadingTimeout&&Tt(R().data)&&setTimeout((function(){u&&d()&&C().onLoadingSlow(w,i)}),i.loadingTimeout),E[w]=[r(_),Xt()]),y=c(E[w],2),a=y[0],s=y[1],e.next=19,a;case 19:if(a=e.sent,p&&setTimeout(m,i.dedupingInterval),E[w]&&E[w][1]===s){e.next=24;break}return p&&d()&&C().onDiscarded(w),e.abrupt("return",!1);case 24:if(f.error=Et,g=x[w],Tt(g)||!(s<=g[0]||s<=g[1]||0===g[1])){e.next=30;break}return h(),p&&d()&&C().onDiscarded(w),e.abrupt("return",!1);case 30:D=R().data,f.data=o(D,a)?D:a,p&&d()&&C().onSuccess(a,w,i),e.next=41;break;case 35:e.prev=35,e.t0=e.catch(12),m(),T=C(),k=T.shouldRetryOnError,T.isPaused()||(f.error=e.t0,p&&d()&&(T.onError(e.t0,w,T),(!0===k||kt(k)&&k(e.t0))&&L()&&T.onErrorRetry(e.t0,w,T,(function(e){var n=b[w];n&&n[0]&&n[0](Zt,e)}),{retryCount:(l.retryCount||0)+1,dedupe:!0})));case 41:return u=!1,h(),e.abrupt("return",!0);case 44:case"end":return e.stop()}}),e,null,[[12,35]])})));return function(n){return e.apply(this,arguments)}}(),[w,a]),re=(0,Yn.useCallback)((function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return rr.apply(void 0,[a,I.current].concat(n))}),[]);if(Ht((function(){S.current=t,A.current=i,Tt(H)||(J.current=H)})),Ht((function(){if(w){var e=te.bind(Et,Ei),n=0,t=function(e,n,t){var r=n[e]||(n[e]=[]);return r.push(t),function(){var e=r.indexOf(t);e>=0&&(r[e]=r[r.length-1],r.pop())}}(w,b,(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t==er){var i=Date.now();C().revalidateOnFocus&&i>n&&L()&&(n=i+C().focusThrottleInterval,e())}else if(t==tr)C().revalidateOnReconnect&&L()&&e();else{if(t==nr)return te();if(t==Zt)return te(r)}}));return O.current=!1,I.current=w,N.current=!0,q({_k:_}),X&&(Tt(Y)||Kt?e():Wt(e)),function(){O.current=!0,t()}}}),[w]),Ht((function(){var e;function n(){var n=kt(f)?f(R().data):f;n&&-1!==e&&(e=setTimeout(t,n))}function t(){R().error||!h&&!C().isVisible()||!m&&!C().isOnline()?n():te(Ei).then(n)}return n(),function(){e&&(clearTimeout(e),e=-1)}}),[f,h,m,w]),(0,Yn.useDebugValue)(Q),u&&Tt(Y)&&w){if(!Gt&&Kt)throw new Error("Fallback data is required when using suspense in SSR.");S.current=t,A.current=i,O.current=!1;var ie=D[w];if(!Tt(ie)){var ae=re(ie);xi(ae)}if(!Tt(z))throw z;var oe=te(Ei);Tt(Q)||(oe.status="fulfilled",oe.value=!0),xi(oe)}return{mutate:re,get data(){return B.data=!0,Q},get error(){return B.error=!0,z},get isValidating(){return B.isValidating=!0,ee},get isLoading(){return B.isLoading=!0,ne}}},function(){for(var e=gr(),n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];for(var i=yr(t),a=c(i,3),o=a[0],s=a[1],u=a[2],l=dr(e,u),p=xr,d=l.use,f=(d||[]).concat(br),h=f.length;h--;)p=f[h](p);return p(o,s||l.fetcher||null,l)}),Ti={revalidateOnFocus:"false"!==window.localStorage.getItem("swr_revalidateOnFocus"),revalidateIfStale:"false"!==window.localStorage.getItem("swr_revalidateIfStale"),revalidateOnReconnect:"false"!==window.localStorage.getItem("swr_revalidateOnReconnect")},ki=function(e,n,t){var r,i=Di(e,n,u()(u()({},Ti),t||{})),a=i.error,o=i.data,s=o&&"[object Object]"===Object.prototype.toString.call(o)&&Object.keys(o||{}).length>0;return u()(u()({},i),{},{data:s?o:(null==a||null===(r=a.response)||void 0===r?void 0:r.data)||o,loading:!o&&!a})},wi=gt(Er||(Er=tt()(["\n mutation createApplication($input: CreateApplicationMetadataInput!) {\n Application {\n createApplication(input: $input) {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n }\n }\n}\n "]))),_i=gt(Dr||(Dr=tt()(["\n mutation updateApplication($input: UpdateApplicationMetadataInput!) {\n Application {\n updateApplication(input: $input) {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n isPublic\n }\n }\n}\n "]))),Ni=gt(Tr||(Tr=tt()(["\n mutation deleteApplication($input: DeleteCommonInput!) {\n Application {\n deleteApplication(input: $input)\n }\n}\n "]))),Oi=gt(kr||(kr=tt()(["\n mutation updateApplicationConfig($input: UpdateApplicationConfigInput!) {\n Application {\n updateApplicationConfig(input: $input) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n status\n }\n prologue\n model\n llm\n temperature\n maxLength\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n showNextGuid\n }\n }\n}\n "]))),Ii=gt(wr||(wr=tt()(["\n query getApplication($name: String!, $namespace: String!) {\n Application {\n getApplication(name: $name, namespace: $namespace) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n status\n }\n prologue\n model\n llm\n temperature\n maxLength\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n showNextGuid\n }\n }\n}\n "]))),Si=gt(_r||(_r=tt()(["\n query listApplications($input: ListCommonInput!) {\n Application {\n listApplicationMetadata(input: $input) {\n page\n pageSize\n totalCount\n hasNextPage\n nodes {\n ... on ApplicationMetadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n isPublic\n }\n }\n }\n }\n}\n "]))),Ai=gt(Nr||(Nr=tt()(["\n query allDataProcessListByPage($input: AllDataProcessListByPageInput!) {\n dataProcess {\n allDataProcessListByPage(input: $input) {\n status\n data {\n id\n name\n status\n pre_data_set_name\n pre_data_set_version\n post_data_set_name\n post_data_set_version\n start_datetime\n }\n message\n }\n }\n}\n "]))),Ci=gt(Or||(Or=tt()(["\n query allDataProcessListByCount($input: AllDataProcessListByCountInput!) {\n dataProcess {\n allDataProcessListByCount(input: $input) {\n status\n data\n message\n }\n }\n}\n "]))),Li=gt(Ir||(Ir=tt()(["\n query dataProcessSupportType {\n dataProcess {\n dataProcessSupportType {\n status\n data {\n name\n description\n children {\n name\n zh_name\n description\n enable\n }\n }\n message\n }\n }\n}\n "]))),Pi=gt(Sr||(Sr=tt()(["\n query dataProcessDetails($input: DataProcessDetailsInput) {\n dataProcess {\n dataProcessDetails(input: $input) {\n status\n data {\n id\n status\n name\n file_type\n pre_dataset_name\n pre_dataset_version\n post_dataset_name\n post_dataset_version\n file_num\n start_time\n end_time\n creator\n config {\n name\n description\n status\n children {\n name\n enable\n zh_name\n description\n preview {\n file_name\n content {\n pre\n post\n }\n }\n file_progress {\n id\n file_name\n status\n start_time\n end_time\n progress\n }\n }\n }\n }\n message\n }\n }\n}\n "]))),Mi=gt(Ar||(Ar=tt()(["\n mutation createDataProcessTask($input: AddDataProcessInput) {\n dataProcess {\n createDataProcessTask(input: $input) {\n status\n data\n message\n }\n }\n}\n "]))),Ri=gt(Cr||(Cr=tt()(["\n mutation deleteDataProcessTask($input: DeleteDataProcessInput) {\n dataProcess {\n deleteDataProcessTask(input: $input) {\n status\n data\n message\n }\n }\n}\n "]))),qi=gt(Lr||(Lr=tt()(["\n query listDatasets($input: ListDatasetInput, $versionsInput: ListVersionedDatasetInput!, $filesInput: FileFilter) {\n Dataset {\n listDatasets(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on Dataset {\n name\n namespace\n creator\n displayName\n updateTimestamp\n creationTimestamp\n contentType\n field\n versions(input: $versionsInput) {\n totalCount\n hasNextPage\n nodes {\n ... on VersionedDataset {\n name\n namespace\n displayName\n description\n syncStatus\n released\n dataProcessStatus\n updateTimestamp\n version\n files(input: $filesInput) {\n totalCount\n }\n }\n }\n }\n }\n }\n }\n }\n}\n "]))),Fi=gt(Pr||(Pr=tt()(["\n query getDataset($name: String!, $namespace: String!, $versionsInput: ListVersionedDatasetInput!, $filesInput: FileFilter) {\n Dataset {\n getDataset(name: $name, namespace: $namespace) {\n name\n namespace\n creator\n displayName\n updateTimestamp\n creationTimestamp\n contentType\n field\n versions(input: $versionsInput) {\n totalCount\n hasNextPage\n nodes {\n ... on VersionedDataset {\n name\n namespace\n displayName\n description\n syncStatus\n released\n dataProcessStatus\n updateTimestamp\n version\n files(input: $filesInput) {\n totalCount\n }\n }\n }\n }\n }\n }\n}\n "]))),ji=gt(Mr||(Mr=tt()(["\n mutation createDataset($input: CreateDatasetInput) {\n Dataset {\n createDataset(input: $input) {\n name\n displayName\n labels\n }\n }\n}\n "]))),Bi=gt(Rr||(Rr=tt()(["\n mutation updateDataset($input: UpdateDatasetInput) {\n Dataset {\n updateDataset(input: $input) {\n name\n displayName\n labels\n }\n }\n}\n "]))),Ui=gt(qr||(qr=tt()(["\n mutation deleteDatasets($input: DeleteCommonInput) {\n Dataset {\n deleteDatasets(input: $input)\n }\n}\n "]))),$i=gt(Fr||(Fr=tt()(["\n mutation createDatasource($input: CreateDatasourceInput!) {\n Datasource {\n createDatasource(input: $input) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n "]))),Vi=gt(jr||(jr=tt()(["\n mutation updateDatasource($input: UpdateDatasourceInput) {\n Datasource {\n updateDatasource(input: $input) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n "]))),Gi=gt(Br||(Br=tt()(["\n mutation deleteDatasources($input: DeleteCommonInput!) {\n Datasource {\n deleteDatasources(input: $input)\n }\n}\n "]))),Ki=gt(Ur||(Ur=tt()(["\n query listDatasources($input: ListCommonInput!) {\n Datasource {\n listDatasources(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Datasource {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n }\n }\n}\n "]))),Wi=gt($r||($r=tt()(["\n query getDatasource($name: String!, $namespace: String!) {\n Datasource {\n getDatasource(name: $name, namespace: $namespace) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n message\n }\n }\n}\n "]))),Hi=gt(Vr||(Vr=tt()(["\n query checkDatasource($input: CreateDatasourceInput!) {\n Datasource {\n checkDatasource(input: $input) {\n name\n namespace\n status\n message\n }\n }\n}\n "]))),Yi=gt(Gr||(Gr=tt()(["\n mutation createEmbedder($input: CreateEmbedderInput!) {\n Embedder {\n createEmbedder(input: $input) {\n name\n namespace\n labels\n annotations\n displayName\n description\n type\n baseUrl\n models\n provider\n updateTimestamp\n status\n message\n }\n }\n}\n "]))),zi=gt(Kr||(Kr=tt()(["\n mutation updateEmbedder($input: UpdateEmbedderInput) {\n Embedder {\n updateEmbedder(input: $input) {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n}\n "]))),Ji=gt(Wr||(Wr=tt()(["\n mutation deleteEmbedders($input: DeleteCommonInput!) {\n Embedder {\n deleteEmbedders(input: $input)\n }\n}\n "]))),Qi=gt(Hr||(Hr=tt()(["\n query listEmbedders($input: ListCommonInput!) {\n Embedder {\n listEmbedders(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on Embedder {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n }\n }\n}\n "]))),Xi=gt(Yr||(Yr=tt()(["\n query getEmbedder($name: String!, $namespace: String!) {\n Embedder {\n getEmbedder(name: $name, namespace: $namespace) {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n }\n }\n}\n "]))),Zi=gt(zr||(zr=tt()(["\n query listKnowledgeBases($input: ListKnowledgeBaseInput!) {\n KnowledgeBase {\n listKnowledgeBases(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on KnowledgeBase {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n }\n }\n}\n "]))),ea=gt(Jr||(Jr=tt()(["\n query getKnowledgeBase($name: String!, $namespace: String!) {\n KnowledgeBase {\n getKnowledgeBase(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),na=gt(Qr||(Qr=tt()(["\n mutation createKnowledgeBase($input: CreateKnowledgeBaseInput!) {\n KnowledgeBase {\n createKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),ta=gt(Xr||(Xr=tt()(["\n mutation updateKnowledgeBase($input: UpdateKnowledgeBaseInput) {\n KnowledgeBase {\n updateKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),ra=gt(Zr||(Zr=tt()(["\n mutation deleteKnowledgeBase($input: DeleteCommonInput) {\n KnowledgeBase {\n deleteKnowledgeBase(input: $input)\n }\n}\n "]))),ia=gt(ei||(ei=tt()(["\n query listLLMs($input: ListCommonInput!) {\n LLM {\n listLLMs(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on LLM {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n }\n }\n}\n "]))),aa=gt(ni||(ni=tt()(["\n query getLLM($name: String!, $namespace: String!) {\n LLM {\n getLLM(name: $name, namespace: $namespace) {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n}\n "]))),oa=gt(ti||(ti=tt()(["\n query listModels($input: ListModelInput!, $filesInput: FileFilter) {\n Model {\n listModels(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Model {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n files(input: $filesInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n }\n }\n}\n "]))),sa=gt(ri||(ri=tt()(["\n query getModel($name: String!, $namespace: String!, $filesInput: FileFilter) {\n Model {\n getModel(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n files(input: $filesInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n}\n "]))),ua=gt(ii||(ii=tt()(["\n mutation createModel($input: CreateModelInput!) {\n Model {\n createModel(input: $input) {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n }\n }\n}\n "]))),ca=gt(ai||(ai=tt()(["\n mutation updateModel($input: UpdateModelInput) {\n Model {\n updateModel(input: $input) {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n }\n }\n}\n "]))),la=gt(oi||(oi=tt()(["\n mutation deleteModels($input: DeleteCommonInput) {\n Model {\n deleteModels(input: $input)\n }\n}\n "]))),pa=gt(si||(si=tt()(["\n mutation createModelService($input: CreateModelServiceInput!) {\n ModelService {\n createModelService(input: $input) {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n types\n apiType\n creationTimestamp\n updateTimestamp\n }\n }\n}\n "]))),da=gt(ui||(ui=tt()(["\n mutation updateModelService($input: UpdateModelServiceInput) {\n ModelService {\n updateModelService(input: $input) {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n types\n apiType\n creationTimestamp\n updateTimestamp\n }\n }\n}\n "]))),fa=gt(ci||(ci=tt()(["\n mutation deleteModelServices($input: DeleteCommonInput) {\n ModelService {\n deleteModelService(input: $input)\n }\n}\n "]))),ha=gt(li||(li=tt()(["\n mutation createVersionedDataset($input: CreateVersionedDatasetInput!) {\n VersionedDataset {\n createVersionedDataset(input: $input) {\n name\n displayName\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n }\n }\n}\n "]))),ma=gt(pi||(pi=tt()(["\n mutation updateVersionedDataset($input: UpdateVersionedDatasetInput!) {\n VersionedDataset {\n updateVersionedDataset(input: $input) {\n name\n displayName\n }\n }\n}\n "]))),va=gt(di||(di=tt()(["\n mutation deleteVersionedDatasets($input: DeleteVersionedDatasetInput!) {\n VersionedDataset {\n deleteVersionedDatasets(input: $input)\n }\n}\n "]))),ya=gt(fi||(fi=tt()(["\n query getVersionedDataset($name: String!, $namespace: String!, $fileInput: FileFilter) {\n VersionedDataset {\n getVersionedDataset(name: $name, namespace: $namespace) {\n id\n name\n displayName\n description\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n files(input: $fileInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n}\n "]))),ga=gt(hi||(hi=tt()(["\n query listVersionedDatasets($input: ListVersionedDatasetInput!, $fileInput: FileFilter) {\n VersionedDataset {\n listVersionedDatasets(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on VersionedDataset {\n id\n name\n displayName\n description\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n files(input: $fileInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n }\n }\n}\n "]))),ba=gt(mi||(mi=tt()(["\n query listWorkers($input: ListWorkerInput!) {\n Worker {\n listWorkers(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Worker {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n message\n updateTimestamp\n type\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n }\n }\n}\n "]))),xa=gt(vi||(vi=tt()(["\n query getWorker($name: String!, $namespace: String!) {\n Worker {\n getWorker(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n}\n "]))),Ea=gt(yi||(yi=tt()(["\n mutation createWorker($input: CreateWorkerInput!) {\n Worker {\n createWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n}\n "]))),Da=gt(gi||(gi=tt()(["\n mutation updateWorker($input: UpdateWorkerInput) {\n Worker {\n updateWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n api\n model {\n name\n namespace\n kind\n apiGroup\n }\n modelTypes\n }\n }\n}\n "]))),Ta=gt(bi||(bi=tt()(["\n mutation deleteWorkers($input: DeleteCommonInput) {\n Worker {\n deleteWorkers(input: $input)\n }\n}\n "]))),ka=function(e,n,t){return e()};function wa(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ka;return{createApplication:function(t,r){return n((function(n){return e.request(wi,t,u()(u()({},r),n))}),"createApplication","mutation")},updateApplication:function(t,r){return n((function(n){return e.request(_i,t,u()(u()({},r),n))}),"updateApplication","mutation")},deleteApplication:function(t,r){return n((function(n){return e.request(Ni,t,u()(u()({},r),n))}),"deleteApplication","mutation")},updateApplicationConfig:function(t,r){return n((function(n){return e.request(Oi,t,u()(u()({},r),n))}),"updateApplicationConfig","mutation")},getApplication:function(t,r){return n((function(n){return e.request(Ii,t,u()(u()({},r),n))}),"getApplication","query")},listApplications:function(t,r){return n((function(n){return e.request(Si,t,u()(u()({},r),n))}),"listApplications","query")},allDataProcessListByPage:function(t,r){return n((function(n){return e.request(Ai,t,u()(u()({},r),n))}),"allDataProcessListByPage","query")},allDataProcessListByCount:function(t,r){return n((function(n){return e.request(Ci,t,u()(u()({},r),n))}),"allDataProcessListByCount","query")},dataProcessSupportType:function(t,r){return n((function(n){return e.request(Li,t,u()(u()({},r),n))}),"dataProcessSupportType","query")},dataProcessDetails:function(t,r){return n((function(n){return e.request(Pi,t,u()(u()({},r),n))}),"dataProcessDetails","query")},createDataProcessTask:function(t,r){return n((function(n){return e.request(Mi,t,u()(u()({},r),n))}),"createDataProcessTask","mutation")},deleteDataProcessTask:function(t,r){return n((function(n){return e.request(Ri,t,u()(u()({},r),n))}),"deleteDataProcessTask","mutation")},listDatasets:function(t,r){return n((function(n){return e.request(qi,t,u()(u()({},r),n))}),"listDatasets","query")},getDataset:function(t,r){return n((function(n){return e.request(Fi,t,u()(u()({},r),n))}),"getDataset","query")},createDataset:function(t,r){return n((function(n){return e.request(ji,t,u()(u()({},r),n))}),"createDataset","mutation")},updateDataset:function(t,r){return n((function(n){return e.request(Bi,t,u()(u()({},r),n))}),"updateDataset","mutation")},deleteDatasets:function(t,r){return n((function(n){return e.request(Ui,t,u()(u()({},r),n))}),"deleteDatasets","mutation")},createDatasource:function(t,r){return n((function(n){return e.request($i,t,u()(u()({},r),n))}),"createDatasource","mutation")},updateDatasource:function(t,r){return n((function(n){return e.request(Vi,t,u()(u()({},r),n))}),"updateDatasource","mutation")},deleteDatasources:function(t,r){return n((function(n){return e.request(Gi,t,u()(u()({},r),n))}),"deleteDatasources","mutation")},listDatasources:function(t,r){return n((function(n){return e.request(Ki,t,u()(u()({},r),n))}),"listDatasources","query")},getDatasource:function(t,r){return n((function(n){return e.request(Wi,t,u()(u()({},r),n))}),"getDatasource","query")},checkDatasource:function(t,r){return n((function(n){return e.request(Hi,t,u()(u()({},r),n))}),"checkDatasource","query")},createEmbedder:function(t,r){return n((function(n){return e.request(Yi,t,u()(u()({},r),n))}),"createEmbedder","mutation")},updateEmbedder:function(t,r){return n((function(n){return e.request(zi,t,u()(u()({},r),n))}),"updateEmbedder","mutation")},deleteEmbedders:function(t,r){return n((function(n){return e.request(Ji,t,u()(u()({},r),n))}),"deleteEmbedders","mutation")},listEmbedders:function(t,r){return n((function(n){return e.request(Qi,t,u()(u()({},r),n))}),"listEmbedders","query")},getEmbedder:function(t,r){return n((function(n){return e.request(Xi,t,u()(u()({},r),n))}),"getEmbedder","query")},listKnowledgeBases:function(t,r){return n((function(n){return e.request(Zi,t,u()(u()({},r),n))}),"listKnowledgeBases","query")},getKnowledgeBase:function(t,r){return n((function(n){return e.request(ea,t,u()(u()({},r),n))}),"getKnowledgeBase","query")},createKnowledgeBase:function(t,r){return n((function(n){return e.request(na,t,u()(u()({},r),n))}),"createKnowledgeBase","mutation")},updateKnowledgeBase:function(t,r){return n((function(n){return e.request(ta,t,u()(u()({},r),n))}),"updateKnowledgeBase","mutation")},deleteKnowledgeBase:function(t,r){return n((function(n){return e.request(ra,t,u()(u()({},r),n))}),"deleteKnowledgeBase","mutation")},listLLMs:function(t,r){return n((function(n){return e.request(ia,t,u()(u()({},r),n))}),"listLLMs","query")},getLLM:function(t,r){return n((function(n){return e.request(aa,t,u()(u()({},r),n))}),"getLLM","query")},listModels:function(t,r){return n((function(n){return e.request(oa,t,u()(u()({},r),n))}),"listModels","query")},getModel:function(t,r){return n((function(n){return e.request(sa,t,u()(u()({},r),n))}),"getModel","query")},createModel:function(t,r){return n((function(n){return e.request(ua,t,u()(u()({},r),n))}),"createModel","mutation")},updateModel:function(t,r){return n((function(n){return e.request(ca,t,u()(u()({},r),n))}),"updateModel","mutation")},deleteModels:function(t,r){return n((function(n){return e.request(la,t,u()(u()({},r),n))}),"deleteModels","mutation")},createModelService:function(t,r){return n((function(n){return e.request(pa,t,u()(u()({},r),n))}),"createModelService","mutation")},updateModelService:function(t,r){return n((function(n){return e.request(da,t,u()(u()({},r),n))}),"updateModelService","mutation")},deleteModelServices:function(t,r){return n((function(n){return e.request(fa,t,u()(u()({},r),n))}),"deleteModelServices","mutation")},createVersionedDataset:function(t,r){return n((function(n){return e.request(ha,t,u()(u()({},r),n))}),"createVersionedDataset","mutation")},updateVersionedDataset:function(t,r){return n((function(n){return e.request(ma,t,u()(u()({},r),n))}),"updateVersionedDataset","mutation")},deleteVersionedDatasets:function(t,r){return n((function(n){return e.request(va,t,u()(u()({},r),n))}),"deleteVersionedDatasets","mutation")},getVersionedDataset:function(t,r){return n((function(n){return e.request(ya,t,u()(u()({},r),n))}),"getVersionedDataset","query")},listVersionedDatasets:function(t,r){return n((function(n){return e.request(ga,t,u()(u()({},r),n))}),"listVersionedDatasets","query")},listWorkers:function(t,r){return n((function(n){return e.request(ba,t,u()(u()({},r),n))}),"listWorkers","query")},getWorker:function(t,r){return n((function(n){return e.request(xa,t,u()(u()({},r),n))}),"getWorker","query")},createWorker:function(t,r){return n((function(n){return e.request(Ea,t,u()(u()({},r),n))}),"createWorker","mutation")},updateWorker:function(t,r){return n((function(n){return e.request(Da,t,u()(u()({},r),n))}),"updateWorker","mutation")},deleteWorkers:function(t,r){return n((function(n){return e.request(Ta,t,u()(u()({},r),n))}),"deleteWorkers","mutation")}}}function _a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ka,t=wa(e,n),r=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return[e].concat(h()(Object.keys(n).sort().map((function(e){return n[e]}))))};return u()(u()({},t),{},{useGetApplication:function(e,n){return ki(r("GetApplication",e),(function(){return t.getApplication(e)}),n)},useListApplications:function(e,n){return ki(r("ListApplications",e),(function(){return t.listApplications(e)}),n)},useAllDataProcessListByPage:function(e,n){return ki(r("AllDataProcessListByPage",e),(function(){return t.allDataProcessListByPage(e)}),n)},useAllDataProcessListByCount:function(e,n){return ki(r("AllDataProcessListByCount",e),(function(){return t.allDataProcessListByCount(e)}),n)},useDataProcessSupportType:function(e,n){return ki(r("DataProcessSupportType",e),(function(){return t.dataProcessSupportType(e)}),n)},useDataProcessDetails:function(e,n){return ki(r("DataProcessDetails",e),(function(){return t.dataProcessDetails(e)}),n)},useListDatasets:function(e,n){return ki(r("ListDatasets",e),(function(){return t.listDatasets(e)}),n)},useGetDataset:function(e,n){return ki(r("GetDataset",e),(function(){return t.getDataset(e)}),n)},useListDatasources:function(e,n){return ki(r("ListDatasources",e),(function(){return t.listDatasources(e)}),n)},useGetDatasource:function(e,n){return ki(r("GetDatasource",e),(function(){return t.getDatasource(e)}),n)},useCheckDatasource:function(e,n){return ki(r("CheckDatasource",e),(function(){return t.checkDatasource(e)}),n)},useListEmbedders:function(e,n){return ki(r("ListEmbedders",e),(function(){return t.listEmbedders(e)}),n)},useGetEmbedder:function(e,n){return ki(r("GetEmbedder",e),(function(){return t.getEmbedder(e)}),n)},useListKnowledgeBases:function(e,n){return ki(r("ListKnowledgeBases",e),(function(){return t.listKnowledgeBases(e)}),n)},useGetKnowledgeBase:function(e,n){return ki(r("GetKnowledgeBase",e),(function(){return t.getKnowledgeBase(e)}),n)},useListLlMs:function(e,n){return ki(r("ListLlMs",e),(function(){return t.listLLMs(e)}),n)},useGetLlm:function(e,n){return ki(r("GetLlm",e),(function(){return t.getLLM(e)}),n)},useListModels:function(e,n){return ki(r("ListModels",e),(function(){return t.listModels(e)}),n)},useGetModel:function(e,n){return ki(r("GetModel",e),(function(){return t.getModel(e)}),n)},useGetVersionedDataset:function(e,n){return ki(r("GetVersionedDataset",e),(function(){return t.getVersionedDataset(e)}),n)},useListVersionedDatasets:function(e,n){return ki(r("ListVersionedDatasets",e),(function(){return t.listVersionedDatasets(e)}),n)},useListWorkers:function(e,n){return ki(r("ListWorkers",e),(function(){return t.listWorkers(e)}),n)},useGetWorker:function(e,n){return ki(r("GetWorker",e),(function(){return t.getWorker(e)}),n)}})}var Na=["url","operationName"],Oa=function(e){var n=e.url,t=e.operationName,r=d()(e,Na),i=n.split("?"),a=l()(i,2),o=a[0],s=a[1],c=Hn.parse(s);t&&(c.o=t);var p=function(){try{return JSON.parse(window.localStorage.getItem("authData")||"{}")}catch(e){return console.warn("getAuthData failed",e),{}}}().token||{},f=p.token_type,h=p.id_token,m=f&&h&&"".concat(f," ").concat(h);return u()(u()({url:"".concat(o,"?").concat(Hn.stringify(c)),operationName:t,credentials:"include"},r),{},{headers:m?u()(u()({},e.headers),{},{Authorization:m}):u()({},e.headers)})},Ia=function(e){var n,t=e.errors||(null===(n=e.response)||void 0===n?void 0:n.errors);t&&et(t)},Sa=new fn("/kubeagi-apis/bff",{requestMiddleware:Oa,responseMiddleware:Ia}),Aa=_a(Sa),Ca=function(e,n){return n||(n={}),n.requestMiddleware?n.requestMiddleware=function(){var e=o()(t()().mark((function e(r){var i;return t()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.requestMiddleware(r);case 2:return i=e.sent,e.abrupt("return",Oa(i));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}():n.requestMiddleware=Oa,n.responseMiddleware||(n.responseMiddleware=Ia),new fn(e||endpoint,n)},La=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.url,t=e.withHooks,r=e.requestConfig,i=Ca(n,r),a=t?_a(i):wa(i);return a},Pa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.url,t=e.requestConfig,r=La({withHooks:!1,url:n,requestConfig:t});return r},Ma=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.url,t=e.requestConfig,r=La({withHooks:!0,url:n,requestConfig:t});return r},Ra=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.url,t=e.requestConfig;return(0,Yn.useMemo)((function(){return Ma({url:n,requestConfig:t})}),[n,t])}}(),a}()}));
|
|
2
2
|
//# sourceMappingURL=index.min.js.map
|