@chillicream/nitro-embedded 19.0.0-insider.2 → 19.0.0-insider.3

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.
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "files": {
3
- "main.js": "./static/js/main.16fc4ed9.js",
3
+ "main.js": "./static/js/main.a589de02.js",
4
4
  "static/js/2.103961c9.chunk.js": "./static/js/2.103961c9.chunk.js",
5
5
  "static/js/81.f8d02cc4.chunk.js": "./static/js/81.f8d02cc4.chunk.js",
6
6
  "static/js/712.8d0b0855.chunk.js": "./static/js/712.8d0b0855.chunk.js",
7
- "graphql-engine.js": "./static/js/graphql-engine.2d5da386.chunk.js",
8
- "graphql-indexer.js": "./static/js/graphql-indexer.0d78b3cd.chunk.js",
9
- "session.js": "./static/js/session.195ee628.chunk.js",
7
+ "graphql-engine.js": "./static/js/graphql-engine.ca3257e7.chunk.js",
8
+ "graphql-indexer.js": "./static/js/graphql-indexer.708d479a.chunk.js",
9
+ "session.js": "./static/js/session.90fe8809.chunk.js",
10
10
  "static/js/425.3325f1eb.chunk.js": "./static/js/425.3325f1eb.chunk.js",
11
11
  "static/js/720.f1ee9556.chunk.js": "./static/js/720.f1ee9556.chunk.js",
12
12
  "static/js/372.fa3f790f.chunk.js": "./static/js/372.fa3f790f.chunk.js",
13
13
  "static/js/195.430987fc.chunk.js": "./static/js/195.430987fc.chunk.js",
14
- "static/js/90.038be58e.chunk.js": "./static/js/90.038be58e.chunk.js",
14
+ "static/js/90.440dba4b.chunk.js": "./static/js/90.440dba4b.chunk.js",
15
15
  "static/js/755.5e588de6.chunk.js": "./static/js/755.5e588de6.chunk.js",
16
16
  "static/js/230.b57425ef.chunk.js": "./static/js/230.b57425ef.chunk.js",
17
17
  "polyfills.js": "./static/js/polyfills.0bb6438e.js",
@@ -21,7 +21,7 @@
21
21
  "static/js/936.e8fa296c.js": "./static/js/936.e8fa296c.js",
22
22
  "static/js/703.880391f3.js": "./static/js/703.880391f3.js",
23
23
  "static/js/341.1e379763.chunk.js": "./static/js/341.1e379763.chunk.js",
24
- "static/js/907.92ae6368.js": "./static/js/907.92ae6368.js",
24
+ "static/js/907.dbbbef22.js": "./static/js/907.dbbbef22.js",
25
25
  "static/js/9.3b8a91a1.chunk.js": "./static/js/9.3b8a91a1.chunk.js",
26
26
  "static/js/264.41536de4.js": "./static/js/264.41536de4.js",
27
27
  "static/js/927.efb56557.js": "./static/js/927.efb56557.js",
@@ -47,10 +47,10 @@
47
47
  "static/js/110.0e366505.js",
48
48
  "static/js/936.e8fa296c.js",
49
49
  "static/js/703.880391f3.js",
50
- "static/js/907.92ae6368.js",
50
+ "static/js/907.dbbbef22.js",
51
51
  "static/js/264.41536de4.js",
52
52
  "static/js/927.efb56557.js",
53
53
  "static/js/940.68e1b478.js",
54
- "static/js/main.16fc4ed9.js"
54
+ "static/js/main.a589de02.js"
55
55
  ]
56
56
  }
package/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><link rel="icon" href="./favicon.svg" type="image/svg+xml"/><link rel="apple-touch-icon" href="./apple-touch-icon.png" sizes="180x180"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#3b4f74"/><link rel="manifest" href="./manifest.webmanifest"/><title>Nitro</title><script defer="defer" src="static/js/polyfills.0bb6438e.js"></script><script defer="defer" src="static/js/110.0e366505.js"></script><script defer="defer" src="static/js/936.e8fa296c.js"></script><script defer="defer" src="static/js/703.880391f3.js"></script><script defer="defer" src="static/js/907.92ae6368.js"></script><script defer="defer" src="static/js/264.41536de4.js"></script><script defer="defer" src="static/js/927.efb56557.js"></script><script defer="defer" src="static/js/940.68e1b478.js"></script><script defer="defer" src="static/js/main.16fc4ed9.js"></script><link href="static/css/styles.15b5693c.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div id="components"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><link rel="icon" href="./favicon.svg" type="image/svg+xml"/><link rel="apple-touch-icon" href="./apple-touch-icon.png" sizes="180x180"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#3b4f74"/><link rel="manifest" href="./manifest.webmanifest"/><title>Nitro</title><script defer="defer" src="static/js/polyfills.0bb6438e.js"></script><script defer="defer" src="static/js/110.0e366505.js"></script><script defer="defer" src="static/js/936.e8fa296c.js"></script><script defer="defer" src="static/js/703.880391f3.js"></script><script defer="defer" src="static/js/907.dbbbef22.js"></script><script defer="defer" src="static/js/264.41536de4.js"></script><script defer="defer" src="static/js/927.efb56557.js"></script><script defer="defer" src="static/js/940.68e1b478.js"></script><script defer="defer" src="static/js/main.a589de02.js"></script><link href="static/css/styles.15b5693c.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div id="components"></div></body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chillicream/nitro-embedded",
3
- "version": "19.0.0-insider.2",
3
+ "version": "19.0.0-insider.3",
4
4
  "description": "Nitro GraphQL IDE",
5
5
  "homepage": "https://chillicream.com",
6
6
  "repository": "github:ChilliCream/graphql-platform",
package/service-worker.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var e={1930:()=>{try{self["workbox:core:6.5.4"]&&_()}catch(e){}},2172:()=>{try{self["workbox:expiration:6.5.4"]&&_()}catch(e){}},4769:()=>{try{self["workbox:precaching:6.5.4"]&&_()}catch(e){}},3357:()=>{try{self["workbox:routing:6.5.4"]&&_()}catch(e){}},7124:()=>{try{self["workbox:strategies:6.5.4"]&&_()}catch(e){}},2870:(e,t,r)=>{var n=r(8057),s=r(1763),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not a function")}},992:(e,t,r)=>{var n=r(8953),s=r(1763),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not a constructor")}},1369:(e,t,r)=>{var n=r(2923).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},6635:(e,t,r)=>{var n=r(9310),s=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not an object")}},8709:(e,t,r)=>{var n=r(3089),s=r(4118),o=r(4330),a=function(e){return function(t,r,a){var i=n(t),c=o(i);if(0===c)return!e&&-1;var u,l=s(a,c);if(e&&r!==r){for(;c>l;)if((u=i[l++])!==u)return!0}else for(;c>l;l++)if((e||l in i)&&i[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},5332:(e,t,r)=>{var n=r(4796),s=n({}.toString),o=n("".slice);e.exports=function(e){return o(s(e),8,-1)}},4959:(e,t,r)=>{var n=r(4272),s=r(8057),o=r(5332),a=r(9831)("toStringTag"),i=Object,c="Arguments"===o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=i(e),a))?r:c?o(t):"Object"===(n=o(t))&&s(t.callee)?"Arguments":n}},9712:(e,t,r)=>{var n=r(421),s=r(3859),o=r(7431),a=r(7149);e.exports=function(e,t,r){for(var i=s(t),c=a.f,u=o.f,l=0;l<i.length;l++){var h=i[l];n(e,h)||r&&n(r,h)||c(e,h,u(t,h))}}},4751:(e,t,r)=>{var n=r(251);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},8597:e=>{e.exports=function(e,t){return{value:e,done:t}}},1335:(e,t,r)=>{var n=r(6040),s=r(7149),o=r(4136);e.exports=n?function(e,t,r){return s.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},4136:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4316:(e,t,r)=>{var n=r(8057),s=r(7149),o=r(1463),a=r(7709);e.exports=function(e,t,r,i){i||(i={});var c=i.enumerable,u=void 0!==i.name?i.name:t;if(n(r)&&o(r,u,i),i.global)c?e[t]=r:a(t,r);else{try{i.unsafe?e[t]&&(c=!0):delete e[t]}catch(l){}c?e[t]=r:s.f(e,t,{value:r,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return e}},7709:(e,t,r)=>{var n=r(3311),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},6040:(e,t,r)=>{var n=r(251);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3355:(e,t,r)=>{var n=r(3311),s=r(9310),o=n.document,a=s(o)&&s(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},788:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},1976:(e,t,r)=>{var n,s,o=r(3311),a=r(788),i=o.process,c=o.Deno,u=i&&i.versions||c&&c.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},2011:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4146:(e,t,r)=>{var n=r(3311),s=r(7431).f,o=r(1335),a=r(4316),i=r(7709),c=r(9712),u=r(6016);e.exports=function(e,t){var r,l,h,f,p,d=e.target,g=e.global,y=e.stat;if(r=g?n:y?n[d]||i(d,{}):n[d]&&n[d].prototype)for(l in t){if(f=t[l],h=e.dontCallGetSet?(p=s(r,l))&&p.value:r[l],!u(g?l:d+(y?".":"#")+l,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}(e.sham||h&&h.sham)&&o(f,"sham",!0),a(r,l,f,e)}}},251:e=>{e.exports=function(e){try{return!!e()}catch(t){return!0}}},5116:(e,t,r)=>{var n=r(251);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},9745:(e,t,r)=>{var n=r(5116),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},1706:(e,t,r)=>{var n=r(6040),s=r(421),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,i=s(o,"name"),c=i&&"something"===function(){}.name,u=i&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:i,PROPER:c,CONFIGURABLE:u}},1e3:(e,t,r)=>{var n=r(5332),s=r(4796);e.exports=function(e){if("Function"===n(e))return s(e)}},4796:(e,t,r)=>{var n=r(5116),s=Function.prototype,o=s.call,a=n&&s.bind.bind(o,o);e.exports=n?a:function(e){return function(){return o.apply(e,arguments)}}},6643:(e,t,r)=>{var n=r(3311),s=r(8057);e.exports=function(e,t){return arguments.length<2?(r=n[e],s(r)?r:void 0):n[e]&&n[e][t];var r}},1146:(e,t,r)=>{var n=r(2870),s=r(3529);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},3311:function(e,t,r){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},421:(e,t,r)=>{var n=r(4796),s=r(1889),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(s(e),t)}},4801:e=>{e.exports={}},3641:(e,t,r)=>{var n=r(6643);e.exports=n("document","documentElement")},2889:(e,t,r)=>{var n=r(6040),s=r(251),o=r(3355);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8635:(e,t,r)=>{var n=r(4796),s=r(251),o=r(5332),a=Object,i=n("".split);e.exports=s((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?i(e,""):a(e)}:a},2774:(e,t,r)=>{var n=r(4796),s=r(8057),o=r(3873),a=n(Function.toString);s(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},5897:(e,t,r)=>{var n,s,o,a=r(4122),i=r(3311),c=r(9310),u=r(1335),l=r(421),h=r(3873),f=r(3051),p=r(4801),d="Object already initialized",g=i.TypeError,y=i.WeakMap;if(a||h.state){var v=h.state||(h.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new g(d);return t.facade=e,v.set(e,t),t},s=function(e){return v.get(e)||{}},o=function(e){return v.has(e)}}else{var m=f("state");p[m]=!0,n=function(e,t){if(l(e,m))throw new g(d);return t.facade=e,u(e,m,t),t},s=function(e){return l(e,m)?e[m]:{}},o=function(e){return l(e,m)}}e.exports={set:n,get:s,has:o,enforce:function(e){return o(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=s(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return r}}}},8057:e=>{var t="object"==typeof document&&document.all;e.exports="undefined"==typeof t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8953:(e,t,r)=>{var n=r(4796),s=r(251),o=r(8057),a=r(4959),i=r(6643),c=r(2774),u=function(){},l=i("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=n(h.exec),p=!h.test(u),d=function(e){if(!o(e))return!1;try{return l(u,[],e),!0}catch(t){return!1}},g=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(h,c(e))}catch(t){return!0}};g.sham=!0,e.exports=!l||s((function(){var e;return d(d.call)||!d(Object)||!d((function(){e=!0}))||e}))?g:d},6016:(e,t,r)=>{var n=r(251),s=r(8057),o=/#|\.prototype\./,a=function(e,t){var r=c[i(e)];return r===l||r!==u&&(s(t)?n(t):!!t)},i=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},3529:e=>{e.exports=function(e){return null===e||void 0===e}},9310:(e,t,r)=>{var n=r(8057);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},255:e=>{e.exports=!1},8400:(e,t,r)=>{var n=r(9310),s=r(5332),o=r(9831)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===s(e))}},2097:(e,t,r)=>{var n=r(6643),s=r(8057),o=r(1781),a=r(1084),i=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&o(t.prototype,i(e))}},1422:(e,t,r)=>{var n=r(5125).IteratorPrototype,s=r(4876),o=r(4136),a=r(7275),i=r(8217),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=s(n,{next:o(+!u,r)}),a(e,l,!1,!0),i[l]=c,e}},5125:(e,t,r)=>{var n,s,o,a=r(251),i=r(8057),c=r(9310),u=r(4876),l=r(5023),h=r(4316),f=r(9831),p=r(255),d=f("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(s=l(l(o)))!==Object.prototype&&(n=s):g=!0),!c(n)||a((function(){var e={};return n[d].call(e)!==e}))?n={}:p&&(n=u(n)),i(n[d])||h(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},8217:e=>{e.exports={}},4330:(e,t,r)=>{var n=r(7834);e.exports=function(e){return n(e.length)}},1463:(e,t,r)=>{var n=r(4796),s=r(251),o=r(8057),a=r(421),i=r(6040),c=r(1706).CONFIGURABLE,u=r(2774),l=r(5897),h=l.enforce,f=l.get,p=String,d=Object.defineProperty,g=n("".slice),y=n("".replace),v=n([].join),m=i&&!s((function(){return 8!==d((function(){}),"length",{value:8}).length})),w=String(String).split("String"),x=e.exports=function(e,t,r){"Symbol("===g(p(t),0,7)&&(t="["+y(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),m&&r&&a(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(s){}var n=h(e);return a(n,"source")||(n.source=v(w,"string"==typeof t?t:"")),e};Function.prototype.toString=x((function(){return o(this)&&f(this).source||u(this)}),"toString")},1113:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},4876:(e,t,r)=>{var n,s=r(6635),o=r(8133),a=r(2011),i=r(4801),c=r(3641),u=r(3355),l=r(3051),h="prototype",f="script",p=l("IE_PROTO"),d=function(){},g=function(e){return"<"+f+">"+e+"</"+f+">"},y=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}v="undefined"!=typeof document?document.domain&&n?y(n):function(){var e,t=u("iframe"),r="java"+f+":";return t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F}():y(n);for(var e=a.length;e--;)delete v[h][a[e]];return v()};i[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(d[h]=s(e),r=new d,d[h]=null,r[p]=e):r=v(),void 0===t?r:o.f(r,t)}},8133:(e,t,r)=>{var n=r(6040),s=r(3626),o=r(7149),a=r(6635),i=r(3089),c=r(3636);t.f=n&&!s?Object.defineProperties:function(e,t){a(e);for(var r,n=i(t),s=c(t),u=s.length,l=0;u>l;)o.f(e,r=s[l++],n[r]);return e}},7149:(e,t,r)=>{var n=r(6040),s=r(2889),o=r(3626),a=r(6635),i=r(5829),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",p="writable";t.f=n?o?function(e,t,r){if(a(e),t=i(t),a(r),"function"===typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=l(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:h in r?r[h]:n[h],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=i(t),a(r),s)try{return u(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},7431:(e,t,r)=>{var n=r(6040),s=r(9745),o=r(5073),a=r(4136),i=r(3089),c=r(5829),u=r(421),l=r(2889),h=Object.getOwnPropertyDescriptor;t.f=n?h:function(e,t){if(e=i(e),t=c(t),l)try{return h(e,t)}catch(r){}if(u(e,t))return a(!s(o.f,e,t),e[t])}},3540:(e,t,r)=>{var n=r(9088),s=r(2011).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},889:(e,t)=>{t.f=Object.getOwnPropertySymbols},5023:(e,t,r)=>{var n=r(421),s=r(8057),o=r(1889),a=r(3051),i=r(4751),c=a("IE_PROTO"),u=Object,l=u.prototype;e.exports=i?u.getPrototypeOf:function(e){var t=o(e);if(n(t,c))return t[c];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},1781:(e,t,r)=>{var n=r(4796);e.exports=n({}.isPrototypeOf)},9088:(e,t,r)=>{var n=r(4796),s=r(421),o=r(3089),a=r(8709).indexOf,i=r(4801),c=n([].push);e.exports=function(e,t){var r,n=o(e),u=0,l=[];for(r in n)!s(i,r)&&s(n,r)&&c(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~a(l,r)||c(l,r));return l}},3636:(e,t,r)=>{var n=r(9088),s=r(2011);e.exports=Object.keys||function(e){return n(e,s)}},5073:(e,t)=>{var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},514:(e,t,r)=>{var n=r(9745),s=r(8057),o=r(9310),a=TypeError;e.exports=function(e,t){var r,i;if("string"===t&&s(r=e.toString)&&!o(i=n(r,e)))return i;if(s(r=e.valueOf)&&!o(i=n(r,e)))return i;if("string"!==t&&s(r=e.toString)&&!o(i=n(r,e)))return i;throw new a("Can't convert object to primitive value")}},3859:(e,t,r)=>{var n=r(6643),s=r(4796),o=r(3540),a=r(889),i=r(6635),c=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(i(e)),r=a.f;return r?c(t,r(e)):t}},2566:(e,t,r)=>{var n=r(9745),s=r(6635),o=r(8057),a=r(5332),i=r(9191),c=TypeError;e.exports=function(e,t){var r=e.exec;if(o(r)){var u=n(r,e,t);return null!==u&&s(u),u}if("RegExp"===a(e))return n(i,e,t);throw new c("RegExp#exec called on incompatible receiver")}},9191:(e,t,r)=>{var n=r(9745),s=r(4796),o=r(715),a=r(3383),i=r(1377),c=r(4437),u=r(4876),l=r(5897).get,h=r(2231),f=r(7170),p=c("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,g=d,y=s("".charAt),v=s("".indexOf),m=s("".replace),w=s("".slice),x=function(){var e=/a/,t=/b*/g;return n(d,e,"a"),n(d,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),b=i.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];(x||_||b||h||f)&&(g=function(e){var t,r,s,i,c,h,f,R=this,E=l(R),O=o(e),C=E.raw;if(C)return C.lastIndex=R.lastIndex,t=n(g,C,O),R.lastIndex=C.lastIndex,t;var S=E.groups,I=b&&R.sticky,T=n(a,R),L=R.source,j=0,P=O;if(I&&(T=m(T,"y",""),-1===v(T,"g")&&(T+="g"),P=w(O,R.lastIndex),R.lastIndex>0&&(!R.multiline||R.multiline&&"\n"!==y(O,R.lastIndex-1))&&(L="(?: "+L+")",P=" "+P,j++),r=new RegExp("^(?:"+L+")",T)),_&&(r=new RegExp("^"+L+"$(?!\\s)",T)),x&&(s=R.lastIndex),i=n(d,I?r:R,P),I?i?(i.input=w(i.input,j),i[0]=w(i[0],j),i.index=R.lastIndex,R.lastIndex+=i[0].length):R.lastIndex=0:x&&i&&(R.lastIndex=R.global?i.index+i[0].length:s),_&&i&&i.length>1&&n(p,i[0],r,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(i[c]=void 0)})),i&&S)for(i.groups=h=u(null),c=0;c<S.length;c++)h[(f=S[c])[0]]=i[f[1]];return i}),e.exports=g},3383:(e,t,r)=>{var n=r(6635);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},5414:(e,t,r)=>{var n=r(9745),s=r(421),o=r(1781),a=r(3383),i=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in i||s(e,"flags")||!o(i,e)?t:n(a,e)}},1377:(e,t,r)=>{var n=r(251),s=r(3311).RegExp,o=n((function(){var e=s("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=o||n((function(){return!s("a","y").sticky})),i=o||n((function(){var e=s("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:i,MISSED_STICKY:a,UNSUPPORTED_Y:o}},2231:(e,t,r)=>{var n=r(251),s=r(3311).RegExp;e.exports=n((function(){var e=s(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},7170:(e,t,r)=>{var n=r(251),s=r(3311).RegExp;e.exports=n((function(){var e=s("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},8506:(e,t,r)=>{var n=r(3529),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},7275:(e,t,r)=>{var n=r(7149).f,s=r(421),o=r(9831)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!s(e,o)&&n(e,o,{configurable:!0,value:t})}},3051:(e,t,r)=>{var n=r(4437),s=r(8668),o=n("keys");e.exports=function(e){return o[e]||(o[e]=s(e))}},3873:(e,t,r)=>{var n=r(255),s=r(3311),o=r(7709),a="__core-js_shared__",i=e.exports=s[a]||o(a,{});(i.versions||(i.versions=[])).push({version:"3.37.1",mode:n?"pure":"global",copyright:"\xa9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},4437:(e,t,r)=>{var n=r(3873);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},7001:(e,t,r)=>{var n=r(6635),s=r(992),o=r(3529),a=r(9831)("species");e.exports=function(e,t){var r,i=n(e).constructor;return void 0===i||o(r=n(i)[a])?t:s(r)}},2923:(e,t,r)=>{var n=r(4796),s=r(2599),o=r(715),a=r(8506),i=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,h=o(a(t)),f=s(r),p=h.length;return f<0||f>=p?e?"":void 0:(n=c(h,f))<55296||n>56319||f+1===p||(l=c(h,f+1))<56320||l>57343?e?i(h,f):n:e?u(h,f,f+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},3219:(e,t,r)=>{var n=r(1976),s=r(251),o=r(3311).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4118:(e,t,r)=>{var n=r(2599),s=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):o(r,t)}},3089:(e,t,r)=>{var n=r(8635),s=r(8506);e.exports=function(e){return n(s(e))}},2599:(e,t,r)=>{var n=r(1113);e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},7834:(e,t,r)=>{var n=r(2599),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},1889:(e,t,r)=>{var n=r(8506),s=Object;e.exports=function(e){return s(n(e))}},9557:(e,t,r)=>{var n=r(9745),s=r(9310),o=r(2097),a=r(1146),i=r(514),c=r(9831),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!s(e)||o(e))return e;var r,c=a(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!s(r)||o(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),i(e,t)}},5829:(e,t,r)=>{var n=r(9557),s=r(2097);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},4272:(e,t,r)=>{var n={};n[r(9831)("toStringTag")]="z",e.exports="[object z]"===String(n)},715:(e,t,r)=>{var n=r(4959),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},1763:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},8668:(e,t,r)=>{var n=r(4796),s=0,o=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++s+o,36)}},1084:(e,t,r)=>{var n=r(3219);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3626:(e,t,r)=>{var n=r(6040),s=r(251);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4122:(e,t,r)=>{var n=r(3311),s=r(8057),o=n.WeakMap;e.exports=s(o)&&/native code/.test(String(o))},9831:(e,t,r)=>{var n=r(3311),s=r(4437),o=r(421),a=r(8668),i=r(3219),c=r(1084),u=n.Symbol,l=s("wks"),h=c?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)||(l[e]=i&&o(u,e)?u[e]:h("Symbol."+e)),l[e]}},6523:(e,t,r)=>{var n=r(4146),s=r(9745),o=r(1e3),a=r(1422),i=r(8597),c=r(8506),u=r(7834),l=r(715),h=r(6635),f=r(3529),p=r(5332),d=r(8400),g=r(5414),y=r(1146),v=r(4316),m=r(251),w=r(9831),x=r(7001),b=r(1369),_=r(2566),R=r(5897),E=r(255),O=w("matchAll"),C="RegExp String",S=C+" Iterator",I=R.set,T=R.getterFor(S),L=RegExp.prototype,j=TypeError,P=o("".indexOf),D=o("".matchAll),A=!!D&&!m((function(){D("a",/./)})),k=a((function(e,t,r,n){I(this,{type:S,regexp:e,string:t,global:r,unicode:n,done:!1})}),C,(function(){var e=T(this);if(e.done)return i(void 0,!0);var t=e.regexp,r=e.string,n=_(t,r);return null===n?(e.done=!0,i(void 0,!0)):e.global?(""===l(n[0])&&(t.lastIndex=b(r,u(t.lastIndex),e.unicode)),i(n,!1)):(e.done=!0,i(n,!1))})),U=function(e){var t,r,n,s=h(this),o=l(e),a=x(s,RegExp),i=l(g(s));return t=new a(a===RegExp?s.source:s,i),r=!!~P(i,"g"),n=!!~P(i,"u"),t.lastIndex=u(s.lastIndex),new k(t,o,r,n)};n({target:"String",proto:!0,forced:A},{matchAll:function(e){var t,r,n,o,a=c(this);if(f(e)){if(A)return D(a,e)}else{if(d(e)&&(t=l(c(g(e))),!~P(t,"g")))throw new j("`.matchAll` does not allow non-global regexes");if(A)return D(a,e);if(void 0===(n=y(e,O))&&E&&"RegExp"===p(e)&&(n=U),n)return s(n,e,a)}return r=l(a),o=new RegExp(e,"g"),E?s(U,o,r):o[O](r)}}),E||O in L||v(L,O,U)}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),(()=>{r(6523),r(1930);const e=function(e){let t=e;for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];return n.length>0&&(t+=" :: ".concat(JSON.stringify(n))),t};class t extends Error{constructor(t,r){super(e(t,r)),this.name=t,this.details=r}}const n=new Set;const s={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!==typeof registration?registration.scope:""},o=e=>[s.prefix,e,s.suffix].filter((e=>e&&e.length>0)).join("-"),a=e=>e||o(s.precache),i=e=>e||o(s.runtime);function c(e,t){const r=new URL(e);for(const n of t)r.searchParams.delete(n);return r.href}let u;function l(e){e.then((()=>{}))}class h{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}const f=e=>new URL(String(e),location.href).href.replace(new RegExp("^".concat(location.origin)),"");function p(e){return new Promise((t=>setTimeout(t,e)))}function d(e,t){const r=t();return e.waitUntil(r),r}async function g(e,r){let n=null;if(e.url){n=new URL(e.url).origin}if(n!==self.location.origin)throw new t("cross-origin-copy-response",{origin:n});const s=e.clone(),o={headers:new Headers(s.headers),status:s.status,statusText:s.statusText},a=r?r(o):o,i=function(){if(void 0===u){const t=new Response("");if("body"in t)try{new Response(t.body),u=!0}catch(e){u=!1}u=!1}return u}()?s.body:await s.blob();return new Response(i,a)}const y=(e,t)=>t.some((t=>e instanceof t));let v,m;const w=new WeakMap,x=new WeakMap,b=new WeakMap,_=new WeakMap,R=new WeakMap;let E={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return x.get(e);if("objectStoreNames"===t)return e.objectStoreNames||b.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return S(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function O(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(m||(m=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(I(this),r),S(w.get(this))}:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return S(e.apply(I(this),r))}:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];const o=e.call(I(this),t,...n);return b.set(o,t.sort?t.sort():[t]),S(o)}}function C(e){return"function"===typeof e?O(e):(e instanceof IDBTransaction&&function(e){if(x.has(e))return;const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("complete",s),e.removeEventListener("error",o),e.removeEventListener("abort",o)},s=()=>{t(),n()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",s),e.addEventListener("error",o),e.addEventListener("abort",o)}));x.set(e,t)}(e),y(e,v||(v=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,E):e)}function S(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("success",s),e.removeEventListener("error",o)},s=()=>{t(S(e.result)),n()},o=()=>{r(e.error),n()};e.addEventListener("success",s),e.addEventListener("error",o)}));return t.then((t=>{t instanceof IDBCursor&&w.set(t,e)})).catch((()=>{})),R.set(t,e),t}(e);if(_.has(e))return _.get(e);const t=C(e);return t!==e&&(_.set(e,t),R.set(t,e)),t}const I=e=>R.get(e);const T=["get","getKey","getAll","getAllKeys","count"],L=["put","add","delete","clear"],j=new Map;function P(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(j.get(t))return j.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,s=L.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!s&&!T.includes(r))return;const o=async function(e){const t=this.transaction(e,s?"readwrite":"readonly");let o=t.store;for(var a=arguments.length,i=new Array(a>1?a-1:0),c=1;c<a;c++)i[c-1]=arguments[c];return n&&(o=o.index(i.shift())),(await Promise.all([o[r](...i),s&&t.done]))[0]};return j.set(t,o),o}E=(e=>({...e,get:(t,r,n)=>P(t,r)||e.get(t,r,n),has:(t,r)=>!!P(t,r)||e.has(t,r)}))(E);r(2172);const D="cache-entries",A=e=>{const t=new URL(e,location.href);return t.hash="",t.href};class k{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(D,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&function(e){let{blocked:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=indexedDB.deleteDatabase(e);t&&r.addEventListener("blocked",(e=>t(e.oldVersion,e))),S(r).then((()=>{}))}(this._cacheName)}async setTimestamp(e,t){const r={url:e=A(e),timestamp:t,cacheName:this._cacheName,id:this._getId(e)},n=(await this.getDb()).transaction(D,"readwrite",{durability:"relaxed"});await n.store.put(r),await n.done}async getTimestamp(e){const t=await this.getDb(),r=await t.get(D,this._getId(e));return null===r||void 0===r?void 0:r.timestamp}async expireEntries(e,t){const r=await this.getDb();let n=await r.transaction(D).store.index("timestamp").openCursor(null,"prev");const s=[];let o=0;for(;n;){const r=n.value;r.cacheName===this._cacheName&&(e&&r.timestamp<e||t&&o>=t?s.push(n.value):o++),n=await n.continue()}const a=[];for(const i of s)await r.delete(D,i.id),a.push(i.url);return a}_getId(e){return this._cacheName+"|"+A(e)}async getDb(){return this._db||(this._db=await function(e,t){let{blocked:r,upgrade:n,blocking:s,terminated:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=indexedDB.open(e,t),i=S(a);return n&&a.addEventListener("upgradeneeded",(e=>{n(S(a.result),e.oldVersion,e.newVersion,S(a.transaction),e)})),r&&a.addEventListener("blocked",(e=>r(e.oldVersion,e.newVersion,e))),i.then((e=>{o&&e.addEventListener("close",(()=>o())),s&&e.addEventListener("versionchange",(e=>s(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),i}("workbox-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class U{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new k(e)}async expireEntries(){if(this._isRunning)return void(this._rerunRequested=!0);this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),r=await self.caches.open(this._cacheName);for(const n of t)await r.delete(n,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,l(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),r=Date.now()-1e3*this._maxAgeSeconds;return void 0===t||t<r}return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}r(4769);function q(e){if(!e)throw new t("add-to-cache-list-unexpected-type",{entry:e});if("string"===typeof e){const t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}const{revision:r,url:n}=e;if(!n)throw new t("add-to-cache-list-unexpected-type",{entry:e});if(!r){const e=new URL(n,location.href);return{cacheKey:e.href,url:e.href}}const s=new URL(n,location.href),o=new URL(n,location.href);return s.searchParams.set("__WB_REVISION__",r),{cacheKey:s.href,url:o.href}}class N{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async e=>{let{request:t,state:r}=e;r&&(r.originalRequest=t)},this.cachedResponseWillBeUsed=async e=>{let{event:t,state:r,cachedResponse:n}=e;if("install"===t.type&&r&&r.originalRequest&&r.originalRequest instanceof Request){const e=r.originalRequest.url;n?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return n}}}class M{constructor(e){let{precacheController:t}=e;this.cacheKeyWillBeUsed=async e=>{let{request:t,params:r}=e;const n=(null===r||void 0===r?void 0:r.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return n?new Request(n,{headers:t.headers}):t},this._precacheController=t}}r(7124);function K(e){return"string"===typeof e?new Request(e):e}class F{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new h,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:r}=this;let n=K(e);if("navigate"===n.mode&&r instanceof FetchEvent&&r.preloadResponse){const e=await r.preloadResponse;if(e)return e}const s=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const e of this.iterateCallbacks("requestWillFetch"))n=await e({request:n.clone(),event:r})}catch(a){if(a instanceof Error)throw new t("plugin-error-request-will-fetch",{thrownErrorMessage:a.message})}const o=n.clone();try{let e;e=await fetch(n,"navigate"===n.mode?void 0:this._strategy.fetchOptions);for(const t of this.iterateCallbacks("fetchDidSucceed"))e=await t({event:r,request:o,response:e});return e}catch(i){throw s&&await this.runCallbacks("fetchDidFail",{error:i,event:r,originalRequest:s.clone(),request:o.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=K(e);let r;const{cacheName:n,matchOptions:s}=this._strategy,o=await this.getCacheKey(t,"read"),a=Object.assign(Object.assign({},s),{cacheName:n});r=await caches.match(o,a);for(const i of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await i({cacheName:n,matchOptions:s,cachedResponse:r,request:o,event:this.event})||void 0;return r}async cachePut(e,r){const s=K(e);await p(0);const o=await this.getCacheKey(s,"write");if(!r)throw new t("cache-put-with-no-response",{url:f(o.url)});const a=await this._ensureResponseSafeToCache(r);if(!a)return!1;const{cacheName:i,matchOptions:u}=this._strategy,l=await self.caches.open(i),h=this.hasCallback("cacheDidUpdate"),d=h?await async function(e,t,r,n){const s=c(t.url,r);if(t.url===s)return e.match(t,n);const o=Object.assign(Object.assign({},n),{ignoreSearch:!0}),a=await e.keys(t,o);for(const i of a)if(s===c(i.url,r))return e.match(i,n)}(l,o.clone(),["__WB_REVISION__"],u):null;try{await l.put(o,h?a.clone():a)}catch(g){if(g instanceof Error)throw"QuotaExceededError"===g.name&&await async function(){for(const e of n)await e()}(),g}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:i,oldResponse:d,newResponse:a.clone(),request:o,event:this.event});return!0}async getCacheKey(e,t){const r="".concat(e.url," | ").concat(t);if(!this._cacheKeys[r]){let n=e;for(const e of this.iterateCallbacks("cacheKeyWillBeUsed"))n=K(await e({mode:t,request:n,event:this.event,params:this.params}));this._cacheKeys[r]=n}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if("function"===typeof t[e]){const r=this._pluginStateMap.get(t),n=n=>{const s=Object.assign(Object.assign({},n),{state:r});return t[e](s)};yield n}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const n of this.iterateCallbacks("cacheWillUpdate"))if(t=await n({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&200!==t.status&&(t=void 0),t}}class W{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.cacheName=i(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r="string"===typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,s=new F(this,{event:t,request:r,params:n}),o=this._getResponse(s,r,t);return[o,this._awaitComplete(o,s,r,t)]}async _getResponse(e,r,n){let s;await e.runCallbacks("handlerWillStart",{event:n,request:r});try{if(s=await this._handle(r,e),!s||"error"===s.type)throw new t("no-response",{url:r.url})}catch(o){if(o instanceof Error)for(const t of e.iterateCallbacks("handlerDidError"))if(s=await t({error:o,event:n,request:r}),s)break;if(!s)throw o}for(const t of e.iterateCallbacks("handlerWillRespond"))s=await t({event:n,request:r,response:s});return s}async _awaitComplete(e,t,r,n){let s,o;try{s=await e}catch(o){}try{await t.runCallbacks("handlerDidRespond",{event:n,request:r,response:s}),await t.doneWaiting()}catch(a){a instanceof Error&&(o=a)}if(await t.runCallbacks("handlerDidComplete",{event:n,request:r,response:s,error:o}),t.destroy(),o)throw o}}class B extends W{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.cacheName=a(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push(B.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const r=await t.cacheMatch(e);return r||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,r){let n;const s=r.params||{};if(!this._fallbackToNetwork)throw new t("missing-precache-entry",{cacheName:this.cacheName,url:e.url});{0;const t=s.integrity,o=e.integrity,a=!o||o===t;if(n=await r.fetch(new Request(e,{integrity:"no-cors"!==e.mode?o||t:void 0})),t&&a&&"no-cors"!==e.mode){this._useDefaultCacheabilityPluginIfNeeded();await r.cachePut(e,n.clone());0}}return n}async _handleInstall(e,r){this._useDefaultCacheabilityPluginIfNeeded();const n=await r.fetch(e);if(!await r.cachePut(e,n.clone()))throw new t("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[r,n]of this.plugins.entries())n!==B.copyRedirectedCacheableResponsesPlugin&&(n===B.defaultPrecacheCacheabilityPlugin&&(e=r),n.cacheWillUpdate&&t++);0===t?this.plugins.push(B.defaultPrecacheCacheabilityPlugin):t>1&&null!==e&&this.plugins.splice(e,1)}}B.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate(e){let{response:t}=e;return!t||t.status>=400?null:t}},B.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate(e){let{response:t}=e;return t.redirected?await g(t):t}};class H{constructor(){let{cacheName:e,plugins:t=[],fallbackToNetwork:r=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new B({cacheName:a(e),plugins:[...t,new M({precacheController:this})],fallbackToNetwork:r}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const r=[];for(const n of e){"string"===typeof n?r.push(n):n&&void 0===n.revision&&r.push(n.url);const{cacheKey:e,url:s}=q(n),o="string"!==typeof n&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(s)&&this._urlsToCacheKeys.get(s)!==e)throw new t("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(s),secondEntry:e});if("string"!==typeof n&&n.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==n.integrity)throw new t("add-to-cache-list-conflicting-integrities",{url:s});this._cacheKeysToIntegrities.set(e,n.integrity)}if(this._urlsToCacheKeys.set(s,e),this._urlsToCacheModes.set(s,o),r.length>0){const e="Workbox is precaching URLs without revision "+"info: ".concat(r.join(", "),"\nThis is generally NOT safe. ")+"Learn more at https://bit.ly/wb-precache";console.warn(e)}}}install(e){return d(e,(async()=>{const t=new N;this.strategy.plugins.push(t);for(const[s,o]of this._urlsToCacheKeys){const t=this._cacheKeysToIntegrities.get(o),r=this._urlsToCacheModes.get(s),n=new Request(s,{integrity:t,cache:r,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:o},request:n,event:e}))}const{updatedURLs:r,notUpdatedURLs:n}=t;return{updatedURLs:r,notUpdatedURLs:n}}))}activate(e){return d(e,(async()=>{const e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),r=new Set(this._urlsToCacheKeys.values()),n=[];for(const s of t)r.has(s.url)||(await e.delete(s),n.push(s.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,r=this.getCacheKeyForURL(t);if(r){return(await self.caches.open(this.strategy.cacheName)).match(r)}}createHandlerBoundToURL(e){const r=this.getCacheKeyForURL(e);if(!r)throw new t("non-precached-url",{url:e});return t=>(t.request=new Request(e),t.params=Object.assign({cacheKey:r},t.params),this.strategy.handle(t))}}let G;const V=()=>(G||(G=new H),G);r(3357);const z=e=>e&&"object"===typeof e?e:{handle:e};class ${constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET";this.handler=z(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=z(e)}}class Y extends ${constructor(e,t,r){super((t=>{let{url:r}=t;const n=e.exec(r.href);if(n&&(r.origin===location.origin||0===n.index))return n.slice(1)}),t,r)}}class Q{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",(e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)}))}addCacheListener(){self.addEventListener("message",(e=>{if(e.data&&"CACHE_URLS"===e.data.type){const{payload:t}=e.data;0;const r=Promise.all(t.urlsToCache.map((t=>{"string"===typeof t&&(t=[t]);const r=new Request(...t);return this.handleRequest({request:r,event:e})})));e.waitUntil(r),e.ports&&e.ports[0]&&r.then((()=>e.ports[0].postMessage(!0)))}}))}handleRequest(e){let{request:t,event:r}=e;const n=new URL(t.url,location.href);if(!n.protocol.startsWith("http"))return void 0;const s=n.origin===location.origin,{params:o,route:a}=this.findMatchingRoute({event:r,request:t,sameOrigin:s,url:n});let i=a&&a.handler;const c=t.method;if(!i&&this._defaultHandlerMap.has(c)&&(i=this._defaultHandlerMap.get(c)),!i)return void 0;let u;try{u=i.handle({url:n,request:t,event:r,params:o})}catch(h){u=Promise.reject(h)}const l=a&&a.catchHandler;return u instanceof Promise&&(this._catchHandler||l)&&(u=u.catch((async e=>{if(l){0;try{return await l.handle({url:n,request:t,event:r,params:o})}catch(s){s instanceof Error&&(e=s)}}if(this._catchHandler)return this._catchHandler.handle({url:n,request:t,event:r});throw e}))),u}findMatchingRoute(e){let{url:t,sameOrigin:r,request:n,event:s}=e;const o=this._routes.get(n.method)||[];for(const a of o){let e;const o=a.match({url:t,sameOrigin:r,request:n,event:s});if(o)return e=o,(Array.isArray(e)&&0===e.length||o.constructor===Object&&0===Object.keys(o).length||"boolean"===typeof o)&&(e=void 0),{route:a,params:e}}return{}}setDefaultHandler(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";this._defaultHandlerMap.set(t,z(e))}setCatchHandler(e){this._catchHandler=z(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new t("unregister-route-but-not-found-with-method",{method:e.method});const r=this._routes.get(e.method).indexOf(e);if(!(r>-1))throw new t("unregister-route-route-not-registered");this._routes.get(e.method).splice(r,1)}}let X;const J=()=>(X||(X=new Q,X.addFetchListener(),X.addCacheListener()),X);function Z(e,r,n){let s;if("string"===typeof e){const t=new URL(e,location.href);0;s=new $((e=>{let{url:r}=e;return r.href===t.href}),r,n)}else if(e instanceof RegExp)s=new Y(e,r,n);else if("function"===typeof e)s=new $(e,r,n);else{if(!(e instanceof $))throw new t("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});s=e}return J().registerRoute(s),s}class ee extends ${constructor(e,t){super((r=>{let{request:n}=r;const s=e.getURLsToCacheKeys();for(const o of function(e){let{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:r="index.html",cleanURLs:n=!0,urlManipulation:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){const o=new URL(e,location.href);o.hash="",yield o.href;const a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(const r of[...e.searchParams.keys()])t.some((e=>e.test(r)))&&e.searchParams.delete(r);return e}(o,t);if(yield a.href,r&&a.pathname.endsWith("/")){const e=new URL(a.href);e.pathname+=r,yield e.href}if(n){const e=new URL(a.href);e.pathname+=".html",yield e.href}if(s){const e=s({url:o});for(const t of e)yield t.href}}()}(n.url,t)){const t=s.get(o);if(t){return{cacheKey:t,integrity:e.getIntegrityForCacheKey(t)}}}}),e.strategy)}}const te={cacheWillUpdate:async e=>{let{response:t}=e;return 200===t.status||0===t.status?t:null}};var re;self.addEventListener("activate",(()=>self.clients.claim())),function(e){V().precache(e)}([{'revision':'94c78dbc314adb1da638617ff8a7e756','url':'apple-touch-icon.png'},{'revision':'f21120af273b26460ddc02b7c040542d','url':'favicon.ico'},{'revision':'22729774845da96e2b985221c24ac57a','url':'favicon.svg'},{'revision':'40167c27807b7cc1ee8396acb0f8805c','url':'index.html'},{'revision':'8df6add213ddba3e5d21b4a69d272e68','url':'manifest.webmanifest'},{'revision':null,'url':'static/css/styles.15b5693c.css'},{'revision':null,'url':'static/js/110.0e366505.js'},{'revision':null,'url':'static/js/195.430987fc.chunk.js'},{'revision':null,'url':'static/js/2.103961c9.chunk.js'},{'revision':null,'url':'static/js/230.b57425ef.chunk.js'},{'revision':null,'url':'static/js/264.41536de4.js'},{'revision':null,'url':'static/js/341.1e379763.chunk.js'},{'revision':null,'url':'static/js/372.fa3f790f.chunk.js'},{'revision':null,'url':'static/js/425.3325f1eb.chunk.js'},{'revision':null,'url':'static/js/703.880391f3.js'},{'revision':null,'url':'static/js/712.8d0b0855.chunk.js'},{'revision':null,'url':'static/js/720.f1ee9556.chunk.js'},{'revision':null,'url':'static/js/755.5e588de6.chunk.js'},{'revision':null,'url':'static/js/81.f8d02cc4.chunk.js'},{'revision':null,'url':'static/js/86.e31a339b.chunk.js'},{'revision':null,'url':'static/js/9.3b8a91a1.chunk.js'},{'revision':null,'url':'static/js/90.038be58e.chunk.js'},{'revision':null,'url':'static/js/907.92ae6368.js'},{'revision':null,'url':'static/js/927.efb56557.js'},{'revision':null,'url':'static/js/936.e8fa296c.js'},{'revision':null,'url':'static/js/938.fc2b7e96.chunk.js'},{'revision':null,'url':'static/js/940.68e1b478.js'},{'revision':null,'url':'static/js/996.7a45a01a.chunk.js'},{'revision':null,'url':'static/js/editor.afbd84bf.js'},{'revision':null,'url':'static/js/graphql-engine.2d5da386.chunk.js'},{'revision':null,'url':'static/js/graphql-indexer.0d78b3cd.chunk.js'},{'revision':null,'url':'static/js/graphql.worker.2c56696a.js'},{'revision':null,'url':'static/js/json.1cf77584.js'},{'revision':null,'url':'static/js/main.16fc4ed9.js'},{'revision':null,'url':'static/js/polyfills.0bb6438e.js'},{'revision':null,'url':'static/js/session.195ee628.chunk.js'},{'revision':null,'url':'static/js/yaml.worker.f5693bf4.js'},{'revision':null,'url':'static/media/FiraCode-Medium.1bc138a84f63b384c3f2.woff2'},{'revision':null,'url':'static/media/codicon.184be8c3aa435ca6c3f5.ttf'}]),function(e){const t=V();Z(new ee(t,e))}(re);const ne=new RegExp("/[^/?]+\\.[^/]+$");var se;Z((e=>{let{request:t,url:r}=e;return"navigate"===t.mode&&(!r.pathname.startsWith("/_")&&!r.pathname.match(ne))}),(se="./index.html",V().createHandlerBoundToURL(se))),Z((e=>{let{url:t}=e;return t.origin===self.location.origin&&t.pathname.endsWith("/bcp-config.json")}),new class extends W{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),this.plugins.some((e=>"cacheWillUpdate"in e))||this.plugins.unshift(te)}async _handle(e,r){const n=r.fetchAndCachePut(e).catch((()=>{}));r.waitUntil(n);let s,o=await r.cacheMatch(e);if(o)0;else{0;try{o=await n}catch(a){a instanceof Error&&(s=a)}}if(!o)throw new t("no-response",{url:e.url,error:s});return o}}({cacheName:"runtime",plugins:[new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.cachedResponseWillBeUsed=async e=>{let{event:t,request:r,cacheName:n,cachedResponse:s}=e;if(!s)return null;const o=this._isResponseDateFresh(s),a=this._getCacheExpiration(n);l(a.expireEntries());const i=a.updateTimestamp(r.url);if(t)try{t.waitUntil(i)}catch(c){0}return o?s:null},this.cacheDidUpdate=async e=>{let{cacheName:t,request:r}=e;const n=this._getCacheExpiration(t);await n.updateTimestamp(r.url),await n.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&function(e){n.add(e)}((()=>this.deleteCacheAndMetadata()))}_getCacheExpiration(e){if(e===i())throw new t("expire-custom-caches-only");let r=this._cacheExpirations.get(e);return r||(r=new U(e,this._config),this._cacheExpirations.set(e,r)),r}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(null===t)return!0;return t>=Date.now()-1e3*this._maxAgeSeconds}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),r=new Date(t).getTime();return isNaN(r)?null:r}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}({maxEntries:1})]})),self.addEventListener("message",(e=>{var t,r;"SKIP_WAITING"===(null===(t=e.data)||void 0===t?void 0:t.type)?self.skipWaiting():"CLOSE_UPDATE_DIALOG"===(null===(r=e.data)||void 0===r?void 0:r.type)&&self.clients.matchAll({includeUncontrolled:!0,type:"window"}).then((t=>{t.forEach((t=>{t.postMessage(e.data)}))}))}))})()})();
1
+ (()=>{"use strict";var e={1930:()=>{try{self["workbox:core:6.5.4"]&&_()}catch(e){}},2172:()=>{try{self["workbox:expiration:6.5.4"]&&_()}catch(e){}},4769:()=>{try{self["workbox:precaching:6.5.4"]&&_()}catch(e){}},3357:()=>{try{self["workbox:routing:6.5.4"]&&_()}catch(e){}},7124:()=>{try{self["workbox:strategies:6.5.4"]&&_()}catch(e){}},2870:(e,t,r)=>{var n=r(8057),s=r(1763),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not a function")}},992:(e,t,r)=>{var n=r(8953),s=r(1763),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not a constructor")}},1369:(e,t,r)=>{var n=r(2923).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},6635:(e,t,r)=>{var n=r(9310),s=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not an object")}},8709:(e,t,r)=>{var n=r(3089),s=r(4118),o=r(4330),a=function(e){return function(t,r,a){var i=n(t),c=o(i);if(0===c)return!e&&-1;var u,l=s(a,c);if(e&&r!==r){for(;c>l;)if((u=i[l++])!==u)return!0}else for(;c>l;l++)if((e||l in i)&&i[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},5332:(e,t,r)=>{var n=r(4796),s=n({}.toString),o=n("".slice);e.exports=function(e){return o(s(e),8,-1)}},4959:(e,t,r)=>{var n=r(4272),s=r(8057),o=r(5332),a=r(9831)("toStringTag"),i=Object,c="Arguments"===o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=i(e),a))?r:c?o(t):"Object"===(n=o(t))&&s(t.callee)?"Arguments":n}},9712:(e,t,r)=>{var n=r(421),s=r(3859),o=r(7431),a=r(7149);e.exports=function(e,t,r){for(var i=s(t),c=a.f,u=o.f,l=0;l<i.length;l++){var h=i[l];n(e,h)||r&&n(r,h)||c(e,h,u(t,h))}}},4751:(e,t,r)=>{var n=r(251);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},8597:e=>{e.exports=function(e,t){return{value:e,done:t}}},1335:(e,t,r)=>{var n=r(6040),s=r(7149),o=r(4136);e.exports=n?function(e,t,r){return s.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},4136:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4316:(e,t,r)=>{var n=r(8057),s=r(7149),o=r(1463),a=r(7709);e.exports=function(e,t,r,i){i||(i={});var c=i.enumerable,u=void 0!==i.name?i.name:t;if(n(r)&&o(r,u,i),i.global)c?e[t]=r:a(t,r);else{try{i.unsafe?e[t]&&(c=!0):delete e[t]}catch(l){}c?e[t]=r:s.f(e,t,{value:r,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return e}},7709:(e,t,r)=>{var n=r(3311),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},6040:(e,t,r)=>{var n=r(251);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3355:(e,t,r)=>{var n=r(3311),s=r(9310),o=n.document,a=s(o)&&s(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},788:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},1976:(e,t,r)=>{var n,s,o=r(3311),a=r(788),i=o.process,c=o.Deno,u=i&&i.versions||c&&c.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},2011:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4146:(e,t,r)=>{var n=r(3311),s=r(7431).f,o=r(1335),a=r(4316),i=r(7709),c=r(9712),u=r(6016);e.exports=function(e,t){var r,l,h,f,p,d=e.target,g=e.global,y=e.stat;if(r=g?n:y?n[d]||i(d,{}):n[d]&&n[d].prototype)for(l in t){if(f=t[l],h=e.dontCallGetSet?(p=s(r,l))&&p.value:r[l],!u(g?l:d+(y?".":"#")+l,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}(e.sham||h&&h.sham)&&o(f,"sham",!0),a(r,l,f,e)}}},251:e=>{e.exports=function(e){try{return!!e()}catch(t){return!0}}},5116:(e,t,r)=>{var n=r(251);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},9745:(e,t,r)=>{var n=r(5116),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},1706:(e,t,r)=>{var n=r(6040),s=r(421),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,i=s(o,"name"),c=i&&"something"===function(){}.name,u=i&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:i,PROPER:c,CONFIGURABLE:u}},1e3:(e,t,r)=>{var n=r(5332),s=r(4796);e.exports=function(e){if("Function"===n(e))return s(e)}},4796:(e,t,r)=>{var n=r(5116),s=Function.prototype,o=s.call,a=n&&s.bind.bind(o,o);e.exports=n?a:function(e){return function(){return o.apply(e,arguments)}}},6643:(e,t,r)=>{var n=r(3311),s=r(8057);e.exports=function(e,t){return arguments.length<2?(r=n[e],s(r)?r:void 0):n[e]&&n[e][t];var r}},1146:(e,t,r)=>{var n=r(2870),s=r(3529);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},3311:function(e,t,r){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},421:(e,t,r)=>{var n=r(4796),s=r(1889),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(s(e),t)}},4801:e=>{e.exports={}},3641:(e,t,r)=>{var n=r(6643);e.exports=n("document","documentElement")},2889:(e,t,r)=>{var n=r(6040),s=r(251),o=r(3355);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8635:(e,t,r)=>{var n=r(4796),s=r(251),o=r(5332),a=Object,i=n("".split);e.exports=s((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?i(e,""):a(e)}:a},2774:(e,t,r)=>{var n=r(4796),s=r(8057),o=r(3873),a=n(Function.toString);s(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},5897:(e,t,r)=>{var n,s,o,a=r(4122),i=r(3311),c=r(9310),u=r(1335),l=r(421),h=r(3873),f=r(3051),p=r(4801),d="Object already initialized",g=i.TypeError,y=i.WeakMap;if(a||h.state){var v=h.state||(h.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new g(d);return t.facade=e,v.set(e,t),t},s=function(e){return v.get(e)||{}},o=function(e){return v.has(e)}}else{var m=f("state");p[m]=!0,n=function(e,t){if(l(e,m))throw new g(d);return t.facade=e,u(e,m,t),t},s=function(e){return l(e,m)?e[m]:{}},o=function(e){return l(e,m)}}e.exports={set:n,get:s,has:o,enforce:function(e){return o(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=s(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return r}}}},8057:e=>{var t="object"==typeof document&&document.all;e.exports="undefined"==typeof t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8953:(e,t,r)=>{var n=r(4796),s=r(251),o=r(8057),a=r(4959),i=r(6643),c=r(2774),u=function(){},l=i("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=n(h.exec),p=!h.test(u),d=function(e){if(!o(e))return!1;try{return l(u,[],e),!0}catch(t){return!1}},g=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(h,c(e))}catch(t){return!0}};g.sham=!0,e.exports=!l||s((function(){var e;return d(d.call)||!d(Object)||!d((function(){e=!0}))||e}))?g:d},6016:(e,t,r)=>{var n=r(251),s=r(8057),o=/#|\.prototype\./,a=function(e,t){var r=c[i(e)];return r===l||r!==u&&(s(t)?n(t):!!t)},i=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},3529:e=>{e.exports=function(e){return null===e||void 0===e}},9310:(e,t,r)=>{var n=r(8057);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},255:e=>{e.exports=!1},8400:(e,t,r)=>{var n=r(9310),s=r(5332),o=r(9831)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===s(e))}},2097:(e,t,r)=>{var n=r(6643),s=r(8057),o=r(1781),a=r(1084),i=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&o(t.prototype,i(e))}},1422:(e,t,r)=>{var n=r(5125).IteratorPrototype,s=r(4876),o=r(4136),a=r(7275),i=r(8217),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=s(n,{next:o(+!u,r)}),a(e,l,!1,!0),i[l]=c,e}},5125:(e,t,r)=>{var n,s,o,a=r(251),i=r(8057),c=r(9310),u=r(4876),l=r(5023),h=r(4316),f=r(9831),p=r(255),d=f("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(s=l(l(o)))!==Object.prototype&&(n=s):g=!0),!c(n)||a((function(){var e={};return n[d].call(e)!==e}))?n={}:p&&(n=u(n)),i(n[d])||h(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},8217:e=>{e.exports={}},4330:(e,t,r)=>{var n=r(7834);e.exports=function(e){return n(e.length)}},1463:(e,t,r)=>{var n=r(4796),s=r(251),o=r(8057),a=r(421),i=r(6040),c=r(1706).CONFIGURABLE,u=r(2774),l=r(5897),h=l.enforce,f=l.get,p=String,d=Object.defineProperty,g=n("".slice),y=n("".replace),v=n([].join),m=i&&!s((function(){return 8!==d((function(){}),"length",{value:8}).length})),w=String(String).split("String"),x=e.exports=function(e,t,r){"Symbol("===g(p(t),0,7)&&(t="["+y(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),m&&r&&a(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(s){}var n=h(e);return a(n,"source")||(n.source=v(w,"string"==typeof t?t:"")),e};Function.prototype.toString=x((function(){return o(this)&&f(this).source||u(this)}),"toString")},1113:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},4876:(e,t,r)=>{var n,s=r(6635),o=r(8133),a=r(2011),i=r(4801),c=r(3641),u=r(3355),l=r(3051),h="prototype",f="script",p=l("IE_PROTO"),d=function(){},g=function(e){return"<"+f+">"+e+"</"+f+">"},y=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}v="undefined"!=typeof document?document.domain&&n?y(n):function(){var e,t=u("iframe"),r="java"+f+":";return t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F}():y(n);for(var e=a.length;e--;)delete v[h][a[e]];return v()};i[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(d[h]=s(e),r=new d,d[h]=null,r[p]=e):r=v(),void 0===t?r:o.f(r,t)}},8133:(e,t,r)=>{var n=r(6040),s=r(3626),o=r(7149),a=r(6635),i=r(3089),c=r(3636);t.f=n&&!s?Object.defineProperties:function(e,t){a(e);for(var r,n=i(t),s=c(t),u=s.length,l=0;u>l;)o.f(e,r=s[l++],n[r]);return e}},7149:(e,t,r)=>{var n=r(6040),s=r(2889),o=r(3626),a=r(6635),i=r(5829),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",p="writable";t.f=n?o?function(e,t,r){if(a(e),t=i(t),a(r),"function"===typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=l(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:h in r?r[h]:n[h],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=i(t),a(r),s)try{return u(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},7431:(e,t,r)=>{var n=r(6040),s=r(9745),o=r(5073),a=r(4136),i=r(3089),c=r(5829),u=r(421),l=r(2889),h=Object.getOwnPropertyDescriptor;t.f=n?h:function(e,t){if(e=i(e),t=c(t),l)try{return h(e,t)}catch(r){}if(u(e,t))return a(!s(o.f,e,t),e[t])}},3540:(e,t,r)=>{var n=r(9088),s=r(2011).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},889:(e,t)=>{t.f=Object.getOwnPropertySymbols},5023:(e,t,r)=>{var n=r(421),s=r(8057),o=r(1889),a=r(3051),i=r(4751),c=a("IE_PROTO"),u=Object,l=u.prototype;e.exports=i?u.getPrototypeOf:function(e){var t=o(e);if(n(t,c))return t[c];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},1781:(e,t,r)=>{var n=r(4796);e.exports=n({}.isPrototypeOf)},9088:(e,t,r)=>{var n=r(4796),s=r(421),o=r(3089),a=r(8709).indexOf,i=r(4801),c=n([].push);e.exports=function(e,t){var r,n=o(e),u=0,l=[];for(r in n)!s(i,r)&&s(n,r)&&c(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~a(l,r)||c(l,r));return l}},3636:(e,t,r)=>{var n=r(9088),s=r(2011);e.exports=Object.keys||function(e){return n(e,s)}},5073:(e,t)=>{var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},514:(e,t,r)=>{var n=r(9745),s=r(8057),o=r(9310),a=TypeError;e.exports=function(e,t){var r,i;if("string"===t&&s(r=e.toString)&&!o(i=n(r,e)))return i;if(s(r=e.valueOf)&&!o(i=n(r,e)))return i;if("string"!==t&&s(r=e.toString)&&!o(i=n(r,e)))return i;throw new a("Can't convert object to primitive value")}},3859:(e,t,r)=>{var n=r(6643),s=r(4796),o=r(3540),a=r(889),i=r(6635),c=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(i(e)),r=a.f;return r?c(t,r(e)):t}},2566:(e,t,r)=>{var n=r(9745),s=r(6635),o=r(8057),a=r(5332),i=r(9191),c=TypeError;e.exports=function(e,t){var r=e.exec;if(o(r)){var u=n(r,e,t);return null!==u&&s(u),u}if("RegExp"===a(e))return n(i,e,t);throw new c("RegExp#exec called on incompatible receiver")}},9191:(e,t,r)=>{var n=r(9745),s=r(4796),o=r(715),a=r(3383),i=r(1377),c=r(4437),u=r(4876),l=r(5897).get,h=r(2231),f=r(7170),p=c("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,g=d,y=s("".charAt),v=s("".indexOf),m=s("".replace),w=s("".slice),x=function(){var e=/a/,t=/b*/g;return n(d,e,"a"),n(d,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),b=i.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];(x||_||b||h||f)&&(g=function(e){var t,r,s,i,c,h,f,R=this,E=l(R),O=o(e),C=E.raw;if(C)return C.lastIndex=R.lastIndex,t=n(g,C,O),R.lastIndex=C.lastIndex,t;var S=E.groups,I=b&&R.sticky,T=n(a,R),L=R.source,j=0,P=O;if(I&&(T=m(T,"y",""),-1===v(T,"g")&&(T+="g"),P=w(O,R.lastIndex),R.lastIndex>0&&(!R.multiline||R.multiline&&"\n"!==y(O,R.lastIndex-1))&&(L="(?: "+L+")",P=" "+P,j++),r=new RegExp("^(?:"+L+")",T)),_&&(r=new RegExp("^"+L+"$(?!\\s)",T)),x&&(s=R.lastIndex),i=n(d,I?r:R,P),I?i?(i.input=w(i.input,j),i[0]=w(i[0],j),i.index=R.lastIndex,R.lastIndex+=i[0].length):R.lastIndex=0:x&&i&&(R.lastIndex=R.global?i.index+i[0].length:s),_&&i&&i.length>1&&n(p,i[0],r,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(i[c]=void 0)})),i&&S)for(i.groups=h=u(null),c=0;c<S.length;c++)h[(f=S[c])[0]]=i[f[1]];return i}),e.exports=g},3383:(e,t,r)=>{var n=r(6635);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},5414:(e,t,r)=>{var n=r(9745),s=r(421),o=r(1781),a=r(3383),i=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in i||s(e,"flags")||!o(i,e)?t:n(a,e)}},1377:(e,t,r)=>{var n=r(251),s=r(3311).RegExp,o=n((function(){var e=s("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=o||n((function(){return!s("a","y").sticky})),i=o||n((function(){var e=s("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:i,MISSED_STICKY:a,UNSUPPORTED_Y:o}},2231:(e,t,r)=>{var n=r(251),s=r(3311).RegExp;e.exports=n((function(){var e=s(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},7170:(e,t,r)=>{var n=r(251),s=r(3311).RegExp;e.exports=n((function(){var e=s("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},8506:(e,t,r)=>{var n=r(3529),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},7275:(e,t,r)=>{var n=r(7149).f,s=r(421),o=r(9831)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!s(e,o)&&n(e,o,{configurable:!0,value:t})}},3051:(e,t,r)=>{var n=r(4437),s=r(8668),o=n("keys");e.exports=function(e){return o[e]||(o[e]=s(e))}},3873:(e,t,r)=>{var n=r(255),s=r(3311),o=r(7709),a="__core-js_shared__",i=e.exports=s[a]||o(a,{});(i.versions||(i.versions=[])).push({version:"3.37.1",mode:n?"pure":"global",copyright:"\xa9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},4437:(e,t,r)=>{var n=r(3873);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},7001:(e,t,r)=>{var n=r(6635),s=r(992),o=r(3529),a=r(9831)("species");e.exports=function(e,t){var r,i=n(e).constructor;return void 0===i||o(r=n(i)[a])?t:s(r)}},2923:(e,t,r)=>{var n=r(4796),s=r(2599),o=r(715),a=r(8506),i=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,h=o(a(t)),f=s(r),p=h.length;return f<0||f>=p?e?"":void 0:(n=c(h,f))<55296||n>56319||f+1===p||(l=c(h,f+1))<56320||l>57343?e?i(h,f):n:e?u(h,f,f+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},3219:(e,t,r)=>{var n=r(1976),s=r(251),o=r(3311).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4118:(e,t,r)=>{var n=r(2599),s=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):o(r,t)}},3089:(e,t,r)=>{var n=r(8635),s=r(8506);e.exports=function(e){return n(s(e))}},2599:(e,t,r)=>{var n=r(1113);e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},7834:(e,t,r)=>{var n=r(2599),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},1889:(e,t,r)=>{var n=r(8506),s=Object;e.exports=function(e){return s(n(e))}},9557:(e,t,r)=>{var n=r(9745),s=r(9310),o=r(2097),a=r(1146),i=r(514),c=r(9831),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!s(e)||o(e))return e;var r,c=a(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!s(r)||o(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),i(e,t)}},5829:(e,t,r)=>{var n=r(9557),s=r(2097);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},4272:(e,t,r)=>{var n={};n[r(9831)("toStringTag")]="z",e.exports="[object z]"===String(n)},715:(e,t,r)=>{var n=r(4959),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},1763:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},8668:(e,t,r)=>{var n=r(4796),s=0,o=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++s+o,36)}},1084:(e,t,r)=>{var n=r(3219);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3626:(e,t,r)=>{var n=r(6040),s=r(251);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4122:(e,t,r)=>{var n=r(3311),s=r(8057),o=n.WeakMap;e.exports=s(o)&&/native code/.test(String(o))},9831:(e,t,r)=>{var n=r(3311),s=r(4437),o=r(421),a=r(8668),i=r(3219),c=r(1084),u=n.Symbol,l=s("wks"),h=c?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)||(l[e]=i&&o(u,e)?u[e]:h("Symbol."+e)),l[e]}},6523:(e,t,r)=>{var n=r(4146),s=r(9745),o=r(1e3),a=r(1422),i=r(8597),c=r(8506),u=r(7834),l=r(715),h=r(6635),f=r(3529),p=r(5332),d=r(8400),g=r(5414),y=r(1146),v=r(4316),m=r(251),w=r(9831),x=r(7001),b=r(1369),_=r(2566),R=r(5897),E=r(255),O=w("matchAll"),C="RegExp String",S=C+" Iterator",I=R.set,T=R.getterFor(S),L=RegExp.prototype,j=TypeError,P=o("".indexOf),D=o("".matchAll),A=!!D&&!m((function(){D("a",/./)})),k=a((function(e,t,r,n){I(this,{type:S,regexp:e,string:t,global:r,unicode:n,done:!1})}),C,(function(){var e=T(this);if(e.done)return i(void 0,!0);var t=e.regexp,r=e.string,n=_(t,r);return null===n?(e.done=!0,i(void 0,!0)):e.global?(""===l(n[0])&&(t.lastIndex=b(r,u(t.lastIndex),e.unicode)),i(n,!1)):(e.done=!0,i(n,!1))})),U=function(e){var t,r,n,s=h(this),o=l(e),a=x(s,RegExp),i=l(g(s));return t=new a(a===RegExp?s.source:s,i),r=!!~P(i,"g"),n=!!~P(i,"u"),t.lastIndex=u(s.lastIndex),new k(t,o,r,n)};n({target:"String",proto:!0,forced:A},{matchAll:function(e){var t,r,n,o,a=c(this);if(f(e)){if(A)return D(a,e)}else{if(d(e)&&(t=l(c(g(e))),!~P(t,"g")))throw new j("`.matchAll` does not allow non-global regexes");if(A)return D(a,e);if(void 0===(n=y(e,O))&&E&&"RegExp"===p(e)&&(n=U),n)return s(n,e,a)}return r=l(a),o=new RegExp(e,"g"),E?s(U,o,r):o[O](r)}}),E||O in L||v(L,O,U)}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),(()=>{r(6523),r(1930);const e=function(e){let t=e;for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];return n.length>0&&(t+=" :: ".concat(JSON.stringify(n))),t};class t extends Error{constructor(t,r){super(e(t,r)),this.name=t,this.details=r}}const n=new Set;const s={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!==typeof registration?registration.scope:""},o=e=>[s.prefix,e,s.suffix].filter((e=>e&&e.length>0)).join("-"),a=e=>e||o(s.precache),i=e=>e||o(s.runtime);function c(e,t){const r=new URL(e);for(const n of t)r.searchParams.delete(n);return r.href}let u;function l(e){e.then((()=>{}))}class h{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}const f=e=>new URL(String(e),location.href).href.replace(new RegExp("^".concat(location.origin)),"");function p(e){return new Promise((t=>setTimeout(t,e)))}function d(e,t){const r=t();return e.waitUntil(r),r}async function g(e,r){let n=null;if(e.url){n=new URL(e.url).origin}if(n!==self.location.origin)throw new t("cross-origin-copy-response",{origin:n});const s=e.clone(),o={headers:new Headers(s.headers),status:s.status,statusText:s.statusText},a=r?r(o):o,i=function(){if(void 0===u){const t=new Response("");if("body"in t)try{new Response(t.body),u=!0}catch(e){u=!1}u=!1}return u}()?s.body:await s.blob();return new Response(i,a)}const y=(e,t)=>t.some((t=>e instanceof t));let v,m;const w=new WeakMap,x=new WeakMap,b=new WeakMap,_=new WeakMap,R=new WeakMap;let E={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return x.get(e);if("objectStoreNames"===t)return e.objectStoreNames||b.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return S(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function O(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(m||(m=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(I(this),r),S(w.get(this))}:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return S(e.apply(I(this),r))}:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];const o=e.call(I(this),t,...n);return b.set(o,t.sort?t.sort():[t]),S(o)}}function C(e){return"function"===typeof e?O(e):(e instanceof IDBTransaction&&function(e){if(x.has(e))return;const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("complete",s),e.removeEventListener("error",o),e.removeEventListener("abort",o)},s=()=>{t(),n()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",s),e.addEventListener("error",o),e.addEventListener("abort",o)}));x.set(e,t)}(e),y(e,v||(v=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,E):e)}function S(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("success",s),e.removeEventListener("error",o)},s=()=>{t(S(e.result)),n()},o=()=>{r(e.error),n()};e.addEventListener("success",s),e.addEventListener("error",o)}));return t.then((t=>{t instanceof IDBCursor&&w.set(t,e)})).catch((()=>{})),R.set(t,e),t}(e);if(_.has(e))return _.get(e);const t=C(e);return t!==e&&(_.set(e,t),R.set(t,e)),t}const I=e=>R.get(e);const T=["get","getKey","getAll","getAllKeys","count"],L=["put","add","delete","clear"],j=new Map;function P(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(j.get(t))return j.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,s=L.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!s&&!T.includes(r))return;const o=async function(e){const t=this.transaction(e,s?"readwrite":"readonly");let o=t.store;for(var a=arguments.length,i=new Array(a>1?a-1:0),c=1;c<a;c++)i[c-1]=arguments[c];return n&&(o=o.index(i.shift())),(await Promise.all([o[r](...i),s&&t.done]))[0]};return j.set(t,o),o}E=(e=>({...e,get:(t,r,n)=>P(t,r)||e.get(t,r,n),has:(t,r)=>!!P(t,r)||e.has(t,r)}))(E);r(2172);const D="cache-entries",A=e=>{const t=new URL(e,location.href);return t.hash="",t.href};class k{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(D,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&function(e){let{blocked:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=indexedDB.deleteDatabase(e);t&&r.addEventListener("blocked",(e=>t(e.oldVersion,e))),S(r).then((()=>{}))}(this._cacheName)}async setTimestamp(e,t){const r={url:e=A(e),timestamp:t,cacheName:this._cacheName,id:this._getId(e)},n=(await this.getDb()).transaction(D,"readwrite",{durability:"relaxed"});await n.store.put(r),await n.done}async getTimestamp(e){const t=await this.getDb(),r=await t.get(D,this._getId(e));return null===r||void 0===r?void 0:r.timestamp}async expireEntries(e,t){const r=await this.getDb();let n=await r.transaction(D).store.index("timestamp").openCursor(null,"prev");const s=[];let o=0;for(;n;){const r=n.value;r.cacheName===this._cacheName&&(e&&r.timestamp<e||t&&o>=t?s.push(n.value):o++),n=await n.continue()}const a=[];for(const i of s)await r.delete(D,i.id),a.push(i.url);return a}_getId(e){return this._cacheName+"|"+A(e)}async getDb(){return this._db||(this._db=await function(e,t){let{blocked:r,upgrade:n,blocking:s,terminated:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=indexedDB.open(e,t),i=S(a);return n&&a.addEventListener("upgradeneeded",(e=>{n(S(a.result),e.oldVersion,e.newVersion,S(a.transaction),e)})),r&&a.addEventListener("blocked",(e=>r(e.oldVersion,e.newVersion,e))),i.then((e=>{o&&e.addEventListener("close",(()=>o())),s&&e.addEventListener("versionchange",(e=>s(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),i}("workbox-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class U{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new k(e)}async expireEntries(){if(this._isRunning)return void(this._rerunRequested=!0);this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),r=await self.caches.open(this._cacheName);for(const n of t)await r.delete(n,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,l(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),r=Date.now()-1e3*this._maxAgeSeconds;return void 0===t||t<r}return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}r(4769);function q(e){if(!e)throw new t("add-to-cache-list-unexpected-type",{entry:e});if("string"===typeof e){const t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}const{revision:r,url:n}=e;if(!n)throw new t("add-to-cache-list-unexpected-type",{entry:e});if(!r){const e=new URL(n,location.href);return{cacheKey:e.href,url:e.href}}const s=new URL(n,location.href),o=new URL(n,location.href);return s.searchParams.set("__WB_REVISION__",r),{cacheKey:s.href,url:o.href}}class N{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async e=>{let{request:t,state:r}=e;r&&(r.originalRequest=t)},this.cachedResponseWillBeUsed=async e=>{let{event:t,state:r,cachedResponse:n}=e;if("install"===t.type&&r&&r.originalRequest&&r.originalRequest instanceof Request){const e=r.originalRequest.url;n?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return n}}}class M{constructor(e){let{precacheController:t}=e;this.cacheKeyWillBeUsed=async e=>{let{request:t,params:r}=e;const n=(null===r||void 0===r?void 0:r.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return n?new Request(n,{headers:t.headers}):t},this._precacheController=t}}r(7124);function K(e){return"string"===typeof e?new Request(e):e}class F{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new h,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:r}=this;let n=K(e);if("navigate"===n.mode&&r instanceof FetchEvent&&r.preloadResponse){const e=await r.preloadResponse;if(e)return e}const s=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const e of this.iterateCallbacks("requestWillFetch"))n=await e({request:n.clone(),event:r})}catch(a){if(a instanceof Error)throw new t("plugin-error-request-will-fetch",{thrownErrorMessage:a.message})}const o=n.clone();try{let e;e=await fetch(n,"navigate"===n.mode?void 0:this._strategy.fetchOptions);for(const t of this.iterateCallbacks("fetchDidSucceed"))e=await t({event:r,request:o,response:e});return e}catch(i){throw s&&await this.runCallbacks("fetchDidFail",{error:i,event:r,originalRequest:s.clone(),request:o.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=K(e);let r;const{cacheName:n,matchOptions:s}=this._strategy,o=await this.getCacheKey(t,"read"),a=Object.assign(Object.assign({},s),{cacheName:n});r=await caches.match(o,a);for(const i of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await i({cacheName:n,matchOptions:s,cachedResponse:r,request:o,event:this.event})||void 0;return r}async cachePut(e,r){const s=K(e);await p(0);const o=await this.getCacheKey(s,"write");if(!r)throw new t("cache-put-with-no-response",{url:f(o.url)});const a=await this._ensureResponseSafeToCache(r);if(!a)return!1;const{cacheName:i,matchOptions:u}=this._strategy,l=await self.caches.open(i),h=this.hasCallback("cacheDidUpdate"),d=h?await async function(e,t,r,n){const s=c(t.url,r);if(t.url===s)return e.match(t,n);const o=Object.assign(Object.assign({},n),{ignoreSearch:!0}),a=await e.keys(t,o);for(const i of a)if(s===c(i.url,r))return e.match(i,n)}(l,o.clone(),["__WB_REVISION__"],u):null;try{await l.put(o,h?a.clone():a)}catch(g){if(g instanceof Error)throw"QuotaExceededError"===g.name&&await async function(){for(const e of n)await e()}(),g}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:i,oldResponse:d,newResponse:a.clone(),request:o,event:this.event});return!0}async getCacheKey(e,t){const r="".concat(e.url," | ").concat(t);if(!this._cacheKeys[r]){let n=e;for(const e of this.iterateCallbacks("cacheKeyWillBeUsed"))n=K(await e({mode:t,request:n,event:this.event,params:this.params}));this._cacheKeys[r]=n}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if("function"===typeof t[e]){const r=this._pluginStateMap.get(t),n=n=>{const s=Object.assign(Object.assign({},n),{state:r});return t[e](s)};yield n}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const n of this.iterateCallbacks("cacheWillUpdate"))if(t=await n({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&200!==t.status&&(t=void 0),t}}class W{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.cacheName=i(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r="string"===typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,s=new F(this,{event:t,request:r,params:n}),o=this._getResponse(s,r,t);return[o,this._awaitComplete(o,s,r,t)]}async _getResponse(e,r,n){let s;await e.runCallbacks("handlerWillStart",{event:n,request:r});try{if(s=await this._handle(r,e),!s||"error"===s.type)throw new t("no-response",{url:r.url})}catch(o){if(o instanceof Error)for(const t of e.iterateCallbacks("handlerDidError"))if(s=await t({error:o,event:n,request:r}),s)break;if(!s)throw o}for(const t of e.iterateCallbacks("handlerWillRespond"))s=await t({event:n,request:r,response:s});return s}async _awaitComplete(e,t,r,n){let s,o;try{s=await e}catch(o){}try{await t.runCallbacks("handlerDidRespond",{event:n,request:r,response:s}),await t.doneWaiting()}catch(a){a instanceof Error&&(o=a)}if(await t.runCallbacks("handlerDidComplete",{event:n,request:r,response:s,error:o}),t.destroy(),o)throw o}}class B extends W{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.cacheName=a(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push(B.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const r=await t.cacheMatch(e);return r||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,r){let n;const s=r.params||{};if(!this._fallbackToNetwork)throw new t("missing-precache-entry",{cacheName:this.cacheName,url:e.url});{0;const t=s.integrity,o=e.integrity,a=!o||o===t;if(n=await r.fetch(new Request(e,{integrity:"no-cors"!==e.mode?o||t:void 0})),t&&a&&"no-cors"!==e.mode){this._useDefaultCacheabilityPluginIfNeeded();await r.cachePut(e,n.clone());0}}return n}async _handleInstall(e,r){this._useDefaultCacheabilityPluginIfNeeded();const n=await r.fetch(e);if(!await r.cachePut(e,n.clone()))throw new t("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[r,n]of this.plugins.entries())n!==B.copyRedirectedCacheableResponsesPlugin&&(n===B.defaultPrecacheCacheabilityPlugin&&(e=r),n.cacheWillUpdate&&t++);0===t?this.plugins.push(B.defaultPrecacheCacheabilityPlugin):t>1&&null!==e&&this.plugins.splice(e,1)}}B.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate(e){let{response:t}=e;return!t||t.status>=400?null:t}},B.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate(e){let{response:t}=e;return t.redirected?await g(t):t}};class H{constructor(){let{cacheName:e,plugins:t=[],fallbackToNetwork:r=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new B({cacheName:a(e),plugins:[...t,new M({precacheController:this})],fallbackToNetwork:r}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const r=[];for(const n of e){"string"===typeof n?r.push(n):n&&void 0===n.revision&&r.push(n.url);const{cacheKey:e,url:s}=q(n),o="string"!==typeof n&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(s)&&this._urlsToCacheKeys.get(s)!==e)throw new t("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(s),secondEntry:e});if("string"!==typeof n&&n.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==n.integrity)throw new t("add-to-cache-list-conflicting-integrities",{url:s});this._cacheKeysToIntegrities.set(e,n.integrity)}if(this._urlsToCacheKeys.set(s,e),this._urlsToCacheModes.set(s,o),r.length>0){const e="Workbox is precaching URLs without revision "+"info: ".concat(r.join(", "),"\nThis is generally NOT safe. ")+"Learn more at https://bit.ly/wb-precache";console.warn(e)}}}install(e){return d(e,(async()=>{const t=new N;this.strategy.plugins.push(t);for(const[s,o]of this._urlsToCacheKeys){const t=this._cacheKeysToIntegrities.get(o),r=this._urlsToCacheModes.get(s),n=new Request(s,{integrity:t,cache:r,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:o},request:n,event:e}))}const{updatedURLs:r,notUpdatedURLs:n}=t;return{updatedURLs:r,notUpdatedURLs:n}}))}activate(e){return d(e,(async()=>{const e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),r=new Set(this._urlsToCacheKeys.values()),n=[];for(const s of t)r.has(s.url)||(await e.delete(s),n.push(s.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,r=this.getCacheKeyForURL(t);if(r){return(await self.caches.open(this.strategy.cacheName)).match(r)}}createHandlerBoundToURL(e){const r=this.getCacheKeyForURL(e);if(!r)throw new t("non-precached-url",{url:e});return t=>(t.request=new Request(e),t.params=Object.assign({cacheKey:r},t.params),this.strategy.handle(t))}}let G;const V=()=>(G||(G=new H),G);r(3357);const z=e=>e&&"object"===typeof e?e:{handle:e};class ${constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET";this.handler=z(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=z(e)}}class Y extends ${constructor(e,t,r){super((t=>{let{url:r}=t;const n=e.exec(r.href);if(n&&(r.origin===location.origin||0===n.index))return n.slice(1)}),t,r)}}class Q{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",(e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)}))}addCacheListener(){self.addEventListener("message",(e=>{if(e.data&&"CACHE_URLS"===e.data.type){const{payload:t}=e.data;0;const r=Promise.all(t.urlsToCache.map((t=>{"string"===typeof t&&(t=[t]);const r=new Request(...t);return this.handleRequest({request:r,event:e})})));e.waitUntil(r),e.ports&&e.ports[0]&&r.then((()=>e.ports[0].postMessage(!0)))}}))}handleRequest(e){let{request:t,event:r}=e;const n=new URL(t.url,location.href);if(!n.protocol.startsWith("http"))return void 0;const s=n.origin===location.origin,{params:o,route:a}=this.findMatchingRoute({event:r,request:t,sameOrigin:s,url:n});let i=a&&a.handler;const c=t.method;if(!i&&this._defaultHandlerMap.has(c)&&(i=this._defaultHandlerMap.get(c)),!i)return void 0;let u;try{u=i.handle({url:n,request:t,event:r,params:o})}catch(h){u=Promise.reject(h)}const l=a&&a.catchHandler;return u instanceof Promise&&(this._catchHandler||l)&&(u=u.catch((async e=>{if(l){0;try{return await l.handle({url:n,request:t,event:r,params:o})}catch(s){s instanceof Error&&(e=s)}}if(this._catchHandler)return this._catchHandler.handle({url:n,request:t,event:r});throw e}))),u}findMatchingRoute(e){let{url:t,sameOrigin:r,request:n,event:s}=e;const o=this._routes.get(n.method)||[];for(const a of o){let e;const o=a.match({url:t,sameOrigin:r,request:n,event:s});if(o)return e=o,(Array.isArray(e)&&0===e.length||o.constructor===Object&&0===Object.keys(o).length||"boolean"===typeof o)&&(e=void 0),{route:a,params:e}}return{}}setDefaultHandler(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";this._defaultHandlerMap.set(t,z(e))}setCatchHandler(e){this._catchHandler=z(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new t("unregister-route-but-not-found-with-method",{method:e.method});const r=this._routes.get(e.method).indexOf(e);if(!(r>-1))throw new t("unregister-route-route-not-registered");this._routes.get(e.method).splice(r,1)}}let X;const J=()=>(X||(X=new Q,X.addFetchListener(),X.addCacheListener()),X);function Z(e,r,n){let s;if("string"===typeof e){const t=new URL(e,location.href);0;s=new $((e=>{let{url:r}=e;return r.href===t.href}),r,n)}else if(e instanceof RegExp)s=new Y(e,r,n);else if("function"===typeof e)s=new $(e,r,n);else{if(!(e instanceof $))throw new t("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});s=e}return J().registerRoute(s),s}class ee extends ${constructor(e,t){super((r=>{let{request:n}=r;const s=e.getURLsToCacheKeys();for(const o of function(e){let{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:r="index.html",cleanURLs:n=!0,urlManipulation:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){const o=new URL(e,location.href);o.hash="",yield o.href;const a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(const r of[...e.searchParams.keys()])t.some((e=>e.test(r)))&&e.searchParams.delete(r);return e}(o,t);if(yield a.href,r&&a.pathname.endsWith("/")){const e=new URL(a.href);e.pathname+=r,yield e.href}if(n){const e=new URL(a.href);e.pathname+=".html",yield e.href}if(s){const e=s({url:o});for(const t of e)yield t.href}}()}(n.url,t)){const t=s.get(o);if(t){return{cacheKey:t,integrity:e.getIntegrityForCacheKey(t)}}}}),e.strategy)}}const te={cacheWillUpdate:async e=>{let{response:t}=e;return 200===t.status||0===t.status?t:null}};var re;self.addEventListener("activate",(()=>self.clients.claim())),function(e){V().precache(e)}([{'revision':'94c78dbc314adb1da638617ff8a7e756','url':'apple-touch-icon.png'},{'revision':'f21120af273b26460ddc02b7c040542d','url':'favicon.ico'},{'revision':'22729774845da96e2b985221c24ac57a','url':'favicon.svg'},{'revision':'a7db2070937309cca72ae2c1ba8feb27','url':'index.html'},{'revision':'8df6add213ddba3e5d21b4a69d272e68','url':'manifest.webmanifest'},{'revision':null,'url':'static/css/styles.15b5693c.css'},{'revision':null,'url':'static/js/110.0e366505.js'},{'revision':null,'url':'static/js/195.430987fc.chunk.js'},{'revision':null,'url':'static/js/2.103961c9.chunk.js'},{'revision':null,'url':'static/js/230.b57425ef.chunk.js'},{'revision':null,'url':'static/js/264.41536de4.js'},{'revision':null,'url':'static/js/341.1e379763.chunk.js'},{'revision':null,'url':'static/js/372.fa3f790f.chunk.js'},{'revision':null,'url':'static/js/425.3325f1eb.chunk.js'},{'revision':null,'url':'static/js/703.880391f3.js'},{'revision':null,'url':'static/js/712.8d0b0855.chunk.js'},{'revision':null,'url':'static/js/720.f1ee9556.chunk.js'},{'revision':null,'url':'static/js/755.5e588de6.chunk.js'},{'revision':null,'url':'static/js/81.f8d02cc4.chunk.js'},{'revision':null,'url':'static/js/86.e31a339b.chunk.js'},{'revision':null,'url':'static/js/9.3b8a91a1.chunk.js'},{'revision':null,'url':'static/js/90.440dba4b.chunk.js'},{'revision':null,'url':'static/js/907.dbbbef22.js'},{'revision':null,'url':'static/js/927.efb56557.js'},{'revision':null,'url':'static/js/936.e8fa296c.js'},{'revision':null,'url':'static/js/938.fc2b7e96.chunk.js'},{'revision':null,'url':'static/js/940.68e1b478.js'},{'revision':null,'url':'static/js/996.7a45a01a.chunk.js'},{'revision':null,'url':'static/js/editor.afbd84bf.js'},{'revision':null,'url':'static/js/graphql-engine.ca3257e7.chunk.js'},{'revision':null,'url':'static/js/graphql-indexer.708d479a.chunk.js'},{'revision':null,'url':'static/js/graphql.worker.2c56696a.js'},{'revision':null,'url':'static/js/json.1cf77584.js'},{'revision':null,'url':'static/js/main.a589de02.js'},{'revision':null,'url':'static/js/polyfills.0bb6438e.js'},{'revision':null,'url':'static/js/session.90fe8809.chunk.js'},{'revision':null,'url':'static/js/yaml.worker.f5693bf4.js'},{'revision':null,'url':'static/media/FiraCode-Medium.1bc138a84f63b384c3f2.woff2'},{'revision':null,'url':'static/media/codicon.184be8c3aa435ca6c3f5.ttf'}]),function(e){const t=V();Z(new ee(t,e))}(re);const ne=new RegExp("/[^/?]+\\.[^/]+$");var se;Z((e=>{let{request:t,url:r}=e;return"navigate"===t.mode&&(!r.pathname.startsWith("/_")&&!r.pathname.match(ne))}),(se="./index.html",V().createHandlerBoundToURL(se))),Z((e=>{let{url:t}=e;return t.origin===self.location.origin&&t.pathname.endsWith("/bcp-config.json")}),new class extends W{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),this.plugins.some((e=>"cacheWillUpdate"in e))||this.plugins.unshift(te)}async _handle(e,r){const n=r.fetchAndCachePut(e).catch((()=>{}));r.waitUntil(n);let s,o=await r.cacheMatch(e);if(o)0;else{0;try{o=await n}catch(a){a instanceof Error&&(s=a)}}if(!o)throw new t("no-response",{url:e.url,error:s});return o}}({cacheName:"runtime",plugins:[new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.cachedResponseWillBeUsed=async e=>{let{event:t,request:r,cacheName:n,cachedResponse:s}=e;if(!s)return null;const o=this._isResponseDateFresh(s),a=this._getCacheExpiration(n);l(a.expireEntries());const i=a.updateTimestamp(r.url);if(t)try{t.waitUntil(i)}catch(c){0}return o?s:null},this.cacheDidUpdate=async e=>{let{cacheName:t,request:r}=e;const n=this._getCacheExpiration(t);await n.updateTimestamp(r.url),await n.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&function(e){n.add(e)}((()=>this.deleteCacheAndMetadata()))}_getCacheExpiration(e){if(e===i())throw new t("expire-custom-caches-only");let r=this._cacheExpirations.get(e);return r||(r=new U(e,this._config),this._cacheExpirations.set(e,r)),r}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(null===t)return!0;return t>=Date.now()-1e3*this._maxAgeSeconds}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),r=new Date(t).getTime();return isNaN(r)?null:r}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}({maxEntries:1})]})),self.addEventListener("message",(e=>{var t,r;"SKIP_WAITING"===(null===(t=e.data)||void 0===t?void 0:t.type)?self.skipWaiting():"CLOSE_UPDATE_DIALOG"===(null===(r=e.data)||void 0===r?void 0:r.type)&&self.clients.matchAll({includeUncontrolled:!0,type:"window"}).then((t=>{t.forEach((t=>{t.postMessage(e.data)}))}))}))})()})();
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_chillicream_nitro=self.webpackChunk_chillicream_nitro||[]).push([[90],{14090:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Jt});var o=n(67315),r=n(6730),i=n(40821),a=n(9950),s=(n(62316),n(36022),n(53501),n(75885),n(23328)),l=n(17669),c=n(69649),d=n(88803),u=n(89989),p=n(15209),h=n(23845),x=n(69529),m=n(30628),f=n(97353),g=n(50514),j=n(64381),v=n(47594),y=n(10119),b=n(76884);async function C(e,t,n){if(null===e||void 0===e||!e.treeModel)return;const o={kind:y.$e.OPERATION,astNode:{kind:x.xs.OPERATION_DEFINITION,operationType:n,location:[0,0],selectionSet:(0,b.wD)()},type:t,typeName:t.name};return e.collapseAll(),e.treeModel.triggerCreate({name:"",checkable:!1,expandable:!1,renamable:!0,metadata:o})}var k=n(44414);function w(){const{Menu:e,MenuItem:t,closeMenu:n,toggleMenu:r,status$:i}=(0,v.b)(),s=(0,o.gxC)(),l=(0,o.zKO)(),d=(0,o.H1s)(s),u=(0,v.CH)(),p=(0,a.useCallback)((()=>{null!==d&&void 0!==d&&d.queryType&&C(d,d.queryType,x.S5.QUERY),n()}),[d,n]),h=(0,a.useCallback)((()=>{null!==d&&void 0!==d&&d.mutationType&&C(d,d.mutationType,x.S5.MUTATION),n()}),[d,n]),m=(0,a.useCallback)((()=>{null!==d&&void 0!==d&&d.subscriptionType&&C(d,d.subscriptionType,x.S5.SUBSCRIPTION),n()}),[d,n]);return(0,a.useEffect)((()=>i.subscribe(u)),[i,u]),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(j.pG,{disabled:!l.exists,tooltip:i.value()?void 0:"New Operation",onClick:r,children:(0,k.jsx)(c.RE,{})}),(0,k.jsxs)(e,{children:[(0,k.jsx)(t,{onClick:p,children:"New Query"}),l.hasMutationType&&(0,k.jsx)(t,{onClick:h,children:"New Mutation"}),l.hasSubscriptionType&&(0,k.jsx)(t,{onClick:m,children:"New Subscription"})]})]})}function N(){const e=(0,o.gxC)(),t=(0,o.H1s)(e),[n,r]=function(){const{Menu:e,MenuItem:t,MenuSeparator:n,openMenu:r,closeMenu:i}=(0,v.EF)();return[(0,a.useCallback)((function(r){let{builderModel:s}=r;const l=(0,o.zKO)(),c=(0,a.useCallback)((()=>{null!==s&&void 0!==s&&s.queryType&&C(s,s.queryType,x.S5.QUERY),i()}),[s]),d=(0,a.useCallback)((()=>{null!==s&&void 0!==s&&s.mutationType&&C(s,s.mutationType,x.S5.MUTATION),i()}),[s]),u=(0,a.useCallback)((()=>{null!==s&&void 0!==s&&s.subscriptionType&&C(s,s.subscriptionType,x.S5.SUBSCRIPTION),i()}),[s]),p=(0,a.useCallback)((()=>{null===s||void 0===s||s.collapseAll(),i()}),[s]);return(0,k.jsxs)(e,{children:[(0,k.jsx)(t,{onClick:c,children:"New Query"}),l.hasMutationType&&(0,k.jsx)(t,{onClick:d,children:"New Mutation"}),l.hasSubscriptionType&&(0,k.jsx)(t,{onClick:u,children:"New Subscription"}),(0,k.jsx)(n,{}),(0,k.jsx)(t,{onClick:p,children:"Collapse All"})]})}),[e,t,n,i]),r]}(),i=(0,a.useRef)([]),s=(0,a.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),r(e)}),[r]),l=(0,a.useCallback)(((e,n)=>{n.selected||(n.model.selectedNodes.forEach((e=>{e.selected=!1})),n.toggleSelected()),n.expanded||n.toggleExpanded(),t&&function(e,t){const n=(0,o.W09)();if(n){const o=(0,b.$V)(e,t);o&&(n.setPosition(o),n.revealPositionInCenterIfOutsideViewport(o))}}(t,n)}),[t]),c=(0,a.useCallback)((async e=>{const n=(0,o.W09)();if(!n)return;const r=n.getModel();return r&&t&&(0,y.uN)(e.metadata)?(e.metadata.astNode.name=(0,m.Oj)((0,m.zI)(x.Yp.NAME,e.name,0,0,0,0,0,0)),await A(t,n,r,e.metadata.astNode),void window.setTimeout((()=>{(0,b.jm)(t,new g.Position(1,1))}),h.tx)):void 0}),[t]),d=(0,a.useCallback)((e=>{const n=e.subscribeFor((async e=>{if(t)for(const n of e)if(n.node)switch(n.kind){case"checked":await I(t,n.node);break;case"unchecked":M(t,n.node);break;case"created":c(n.node)}}),"checked","unchecked","created");i.current.push(n)}),[t,e,c]);return(0,a.useEffect)((()=>{const e=i.current;return()=>{let t;for(;t=e.pop();)t()}}),[e]),t?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(p.PH,{id:h.Fk,model:t.treeModel,itemHeight:p._Y,emptyContent:(0,k.jsx)(S,{}),onInitialized:d,onContextMenu:s,children:e=>(0,k.jsx)(p.nF,{id:e.id,depth:e.depth,name:e.name,path:e.path,checkable:e.checkable,checked:e.checked,expandable:e.expandable,expanded:e.expanded,node:e,onClick:l,renderIcon:O,renderName:_})}),(0,k.jsx)(n,{builderModel:t})]}):null}function S(){const e=(0,o.zKO)(),t=(0,o.$nk)(),n=(0,o.DMK)(e.endpoint);return t?(0,k.jsx)(l.$M,{}):n?(0,k.jsx)(l.jc,{}):null!==e&&void 0!==e&&e.exists?(0,k.jsx)(l.HY,{title:"No Operations",icon:(0,k.jsx)(c.Lq,{inheritColor:!0})}):(0,k.jsx)(l.pu,{})}async function A(e,t,n,o){n.pushStackElement(),n.pushEditOperations(null,[{range:{startColumn:1,startLineNumber:1,endColumn:1,endLineNumber:1},text:(0,x.yy)(o)+(n.getValueLength()?"\n\n":"")}],(()=>null)),await e.updateAST(n.getValue()),t.setPosition(new g.Position(1,1))}async function T(e,t,n,o,r){const i=(0,x.g$)(e.documentAST.tokens,o.location),a=i.startToken.start,s=i.endToken.end;n.pushStackElement(),n.pushEditOperations(null,[{range:{startColumn:a.column,startLineNumber:a.line,endColumn:s.column,endLineNumber:s.line},text:(0,x.yy)(o)}],(()=>null)),await e.updateAST(n.getValue());const l=void 0===r?a:e.documentAST.tokens[r].end;t.setPosition(new g.Position(l.line,l.column))}async function I(e,t){const n=e.schemaEndpoint,r=(0,o.W09)();if(!n||!r)return;const i=r.getModel();if(i){if((0,y.UW)(t.metadata)){var a;const o=null!==(a=await s.gA.getFields(n,t.metadata.typeName))&&void 0!==a?a:[],l=(0,b.SM)(t),c={kind:x.xs.OPERATION_DEFINITION,location:[0,0],operationType:l,selectionSet:(0,b.wD)()};return H(c,o),void await A(e,r,i,c)}if((0,y.XC)(t.metadata)){const[o,a]=Y(t),l="enum"===t.metadata.unwrappedValueType.typeKind||"scalar"===t.metadata.unwrappedValueType.typeKind?void 0:await s.gA.getFields(n,t.metadata.unwrappedValueType.name);if(!a){const n=(0,b.SM)(t),a=B({kind:x.xs.OPERATION_DEFINITION,location:[0,0],operationType:n},!0,o,l);return void await A(e,r,i,a)}const c=(0,b.K5)(t);if(!c)return;const d=(0,x.YR)(c.astNode,{OperationDefinition:e=>B(e,a.path===c.treeNode.path,o,l),FragmentDefinition:e=>B(e,a.path===c.treeNode.path,o,l),InlineFragment:(e,t,n,r,i)=>{const s=(0,b.ou)(r,i,c.treeNode.path,(0,b.pK)(e));return B(e,a.path===s,o,l)},Field:(e,t,n,r,i)=>{const s=(0,b.ou)(r,i,c.treeNode.path,(0,b.MO)(e));return B(e,a.path===s,o,l)}});await T(e,r,i,d)}else if((0,y.e$)(t.metadata)||(0,y.YC)(t.metadata)){var l;const[n,o]=Y(t);if(!o)return;const a=(0,b.K5)(t);if(!a)return;const s=(0,y.e$)(t.metadata)?[t.metadata.argumentType]:null!==(l=t.metadata.fieldType.arguments)&&void 0!==l?l:[],c=(0,x.YR)(a.astNode,{OperationDefinition:e=>B(e,o.path===a.treeNode.path,n,void 0,s),FragmentDefinition:e=>B(e,o.path===a.treeNode.path,n,void 0,s),InlineFragment:(e,t,r,i,l)=>{const c=(0,b.ou)(i,l,a.treeNode.path,(0,b.pK)(e));return B(e,o.path===c,n,void 0,s)},Field:(e,t,r,i,l)=>{const c=(0,b.ou)(i,l,a.treeNode.path,(0,b.MO)(e));return B(e,o.path===c,n,void 0,s)},ArgumentDict:(e,t,r,i,l)=>{if((0,x.N5)(r)){const e=(0,b.ou)(i,l,a.treeNode.path,(0,b.XA)());return B(r,o.path===e,n,void 0,s).argumentDict}return e}});await T(e,r,i,c)}else if((0,y.WH)(t.metadata)){const[n,o]=Y(t);if(!o)return;const a=(0,b.K5)(t);if(!a)return;const s=[E(t)],l=(0,x.YR)(a.astNode,{OperationDefinition:e=>B(e,o.path===a.treeNode.path,n,void 0,s),FragmentDefinition:e=>B(e,o.path===a.treeNode.path,n,void 0,s),InlineFragment:(e,t,r,i,l)=>{const c=(0,b.ou)(i,l,a.treeNode.path,(0,b.pK)(e));return B(e,o.path===c,n,void 0,s)},Field:(e,t,r,i,l)=>{const c=(0,b.ou)(i,l,a.treeNode.path,(0,b.MO)(e));return B(e,o.path===c,n,void 0,s)},ArgumentDict:(e,t,r,i,l)=>{if((0,x.N5)(r)){const e=(0,b.ou)(i,l,a.treeNode.path,(0,b.XA)());return B(r,o.path===e,n,void 0,s).argumentDict}return e},Argument:(e,t,r,i,s)=>{if((0,x.SF)(e)){const t=e,r=(0,b.ou)(i,s,a.treeNode.path,(0,b.vK)(e));return o.path===r&&V(t,n),t}return e},ObjectField:(e,t,r,i,s)=>{if((0,x.cY)(e)){const t=e,r=(0,b.ou)(i,s,a.treeNode.path,(0,b.MO)(e));return o.path===r&&V(t,n),t}return e}});await T(e,r,i,l)}else if((0,y.SR)(t.metadata)){const[n,o]=Y(t);if(!o)return;const a=(0,b.K5)(t);if(!a)return;const s=(0,x.YR)(a.astNode,{OperationDefinition:e=>B(e,o.path===a.treeNode.path,n),FragmentDefinition:e=>B(e,o.path===a.treeNode.path,n),InlineFragment:(e,t,r,i,s)=>{const l=(0,b.ou)(i,s,a.treeNode.path,(0,b.pK)(e));return B(e,o.path===l,n)},Field:(e,t,r,i,s)=>{const l=(0,b.ou)(i,s,a.treeNode.path,(0,b.MO)(e));return B(e,o.path===l,n)}});await T(e,r,i,s)}else if((0,y._w)(t.metadata)){const[o,a]=Y(t);if(!a)return;const l=(0,b.K5)(t);if(!l)return;const c=await s.gA.getFields(n,t.metadata.type.name),d=(0,x.YR)(l.astNode,{OperationDefinition:e=>B(e,a.path===l.treeNode.path,o,c),FragmentDefinition:e=>B(e,a.path===l.treeNode.path,o,c),InlineFragment:(e,t,n,r,i)=>{const s=(0,b.ou)(r,i,l.treeNode.path,(0,b.pK)(e));return B(e,a.path===s,o,c)},Field:(e,t,n,r,i)=>{const s=(0,b.ou)(r,i,l.treeNode.path,(0,b.MO)(e));return B(e,a.path===s,o,c)}});await T(e,r,i,d)}else;}}function E(e){let t=e;for(;t=null===(n=t)||void 0===n?void 0:n.parent;){var n;if((0,y.e$)(t.metadata))return t.metadata.argumentType}throw new Error}async function M(e,t){const n=(0,o.W09)();if(!n)return;const r=n.getModel();if(r){var i,a;if((0,y.uN)(t.metadata)||(0,y.F2)(t.metadata))!function(e,t,n,o){const r=(0,x.g$)(e,o),i=r.endToken.index+1,a=e.length>i?e[i].start:r.endToken.end,s=r.startToken.start;t.setPosition(new g.Position(s.line,s.position)),n.pushStackElement(),n.pushEditOperations(null,[{range:{endColumn:a.column,endLineNumber:a.line,startColumn:s.column,startLineNumber:s.line},text:""}],(()=>null))}(e.documentAST.tokens,n,r,t.metadata.astNode.location),(null!==(i=t.parent)&&void 0!==i?i:t.model).remove(t);if((0,y.YC)(t.metadata)){var s;const o=(0,b.K5)(t);if(!o)return;let i;const a=(0,x.YR)(o.astNode,{ArgumentDict:(e,n,r,a,s)=>{const l=(0,b.ou)(a,s,o.treeNode.path,(0,b.XA)());return t.path===l?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await T(e,n,r,a,null!==(s=i)&&void 0!==s?s:void 0)}if((0,y.e$)(t.metadata))if((0,y.YC)(null===(a=t.parent)||void 0===a?void 0:a.metadata)&&0===t.parent.children.filter((e=>e.checked)).length)t.parent.checked=!1;else{const o=(0,b.K5)(t);if(!o)return;let i;const a=(0,x.YR)(o.astNode,{Argument:(e,n,r,a,s)=>{const l=(0,b.ou)(a,s,o.treeNode.path,(0,b.vK)(e));return t.path===l?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await T(e,n,r,a,i)}if((0,y.XC)(t.metadata)){const o=(0,b.K5)(t);if(!o)return;let i;const a=(0,x.YR)(o.astNode,{Field:(e,n,r,a,s)=>{const l=(0,b.ou)(a,s,o.treeNode.path,(0,b.MO)(e));return t.path===l?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await T(e,n,r,a,i)}if((0,y.WH)(t.metadata)){const o=(0,b.K5)(t);if(!o)return;let i;const a=(0,x.YR)(o.astNode,{ObjectField:(e,n,r,a,s)=>{const l=(0,b.ou)(a,s,o.treeNode.path,(0,b.MO)(e));return t.path===l?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await T(e,n,r,a,i)}if((0,y._w)(t.metadata)){const o=(0,b.K5)(t);if(!o)return;let i;const a=(0,x.YR)(o.astNode,{InlineFragment:(e,n,r,a,s)=>{const l=(0,b.ou)(a,s,o.treeNode.path,(0,b.pK)(e));return t.path===l?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await T(e,n,r,a,i)}if((0,y.SR)(t.metadata)){const o=(0,b.K5)(t);if(!o)return;let i;const a=(0,x.YR)(o.astNode,{FragmentSpread:(e,n,r,a,s)=>{const l=(0,b.ou)(a,s,o.treeNode.path,(0,b.Rr)(e));return t.path===l?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await T(e,n,r,a,i)}}}function O(e){return(0,y.XC)(e.metadata)?(0,k.jsx)(p.Zh,{children:(0,k.jsx)(c.UI,{})}):(0,y.e$)(e.metadata)||(0,y.YC)(e.metadata)||(0,y.WH)(e.metadata)?(0,k.jsx)(p.Zh,{children:(0,k.jsx)(c.zG,{})}):(0,k.jsx)(p.Zh,{children:(0,k.jsx)(c.Lq,{})})}function _(e){return(0,k.jsx)(u.$,{children:R(e)})}function R(e){return(0,y.e$)(e.metadata)&&e.metadata.argumentType?(0,k.jsx)(d.ef,{argument:e.metadata.argumentType}):((0,y.XC)(e.metadata)||(0,y.WH)(e.metadata))&&e.metadata.fieldType?(0,k.jsx)(d.D0,{type:e.metadata.fieldType,collapsed:!0}):(0,y._w)(e.metadata)?(0,k.jsx)(P,{typeName:e.metadata.type.name}):(0,y.SR)(e.metadata)?(0,k.jsx)(K,{fragmentName:e.metadata.fragmentName}):(0,y.uN)(e.metadata)?(0,k.jsx)(F,{operationName:e.name,typeName:e.metadata.typeName}):(0,y.F2)(e.metadata)?(0,k.jsx)(L,{fragmentName:e.name,typeName:e.metadata.typeName}):(0,k.jsx)(D,{name:e.name})}function D(e){let{name:t}=e;return(0,k.jsx)(d.a,{children:(0,k.jsx)(d.vs,{children:t})})}function F(e){let{operationName:t,typeName:n}=e;return(0,k.jsxs)(d.a,{children:[t!==b.Wo&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(d.tm,{children:t}),(0,k.jsx)(d.nG,{children:": "})]}),(0,k.jsx)(d.sc,{children:n})]})}function L(e){let{fragmentName:t,typeName:n}=e;return(0,k.jsx)(d.a,{children:t===b.Wo?(0,k.jsx)(d.tm,{children:"unnamed"}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(d.tm,{children:t===b.Wo?"unnamed":t}),(0,k.jsx)(d.nG,{children:": "}),(0,k.jsx)(d.sc,{children:n})]})})}function P(e){let{typeName:t}=e;return(0,k.jsxs)(d.a,{children:[(0,k.jsx)(d.nG,{children:"... "}),(0,k.jsx)(d.Ht,{children:"on "}),(0,k.jsx)(d.sc,{children:t})]})}function K(e){let{fragmentName:t}=e;return(0,k.jsxs)(d.a,{children:[(0,k.jsx)(d.nG,{children:"..."}),(0,k.jsx)(d.sc,{children:t})]})}function B(e,t,n,o,r){const i=e;return t&&(i.selectionSet||(i.selectionSet=(0,b.wD)()),function(e,t,n,o){let r,i=e,a=(0,x.N5)(e)||(0,x.cX)(e)?e:void 0;for(;r=t.shift();)if(!(0,y.UW)(r.metadata)){if((0,y.XC)(r.metadata))a=$(r.metadata.fieldType);else{if((0,y.SR)(r.metadata)){var s,l;a=U(r.metadata.fragmentName),null===(s=i)||void 0===s||null===(l=s.selectionSet)||void 0===l||l.selections.push(a);break}if((0,y._w)(r.metadata))a=q(r.metadata.type.name);else{if((0,y.YC)(r.metadata)&&(0,x.N5)(a)){a.argumentDict||(a.argumentDict=X());continue}if((0,y.e$)(r.metadata))break}}var c,d;if(a)null===(c=i)||void 0===c||null===(d=c.selectionSet)||void 0===d||d.selections.push(a);if(!a||(0,x.AY)(a))break;i=a}var u;(0,x.N5)(a)&&null!==o&&void 0!==o&&o.length&&(null===(u=a.argumentDict)||void 0===u||u.arguments.push(...o.map((e=>{const n=function(e){var t;const n={kind:x.xs.ARGUMENT,name:G(e.name),location:[0,0],value:null!==(t=e.defaultValue)&&void 0!==t?t:null};return n}(e);return V(n,t),n}))));!(0,x.AY)(a)&&a&&null!==n&&void 0!==n&&n.length&&H(a,n)}(i,n,o,r)),i}function H(e,t){for(const o of t){const t=(0,f.TL)(o);var n;if("enum"===t.typeKind||"scalar"===t.typeKind)null===(n=e.selectionSet)||void 0===n||n.selections.push($(o))}}function V(e,t){let n,o,r=e;for(;n=t.shift();){var i;if((0,y.WH)(n.metadata))if(o=W(n.metadata.fieldType),o)(null===(i=r.value)||void 0===i?void 0:i.kind)===x.xs.OBJECT?r.value.fields.push(o):r.value={kind:x.xs.OBJECT,location:[0,0],closed:!0,fields:[o]},r=o}}function Y(e){const t=[];let n=e.parent;for(t.unshift(e);n;){if(n.checked)return[t,n];t.unshift(n),n=n.parent}return[t,n]}function X(){return{kind:x.xs.ARGUMENT_DICT,closed:!0,location:[0,0],arguments:[]}}function G(e){return(0,m.Oj)({kind:x.Yp.NAME,index:0,end:{column:0,line:0,position:0},start:{column:0,line:0,position:0},value:e})}function $(e){const t=(0,f.TL)(e);return{kind:x.xs.FIELD,location:[0,0],name:G(e.name),selectionSet:"enum"===t.typeKind||"scalar"===t.typeKind?void 0:(0,b.wD)()}}function W(e){return{kind:x.xs.OBJECT_FIELD,location:[0,0],name:G(e.name),value:{kind:x.xs.NULL,location:[0,0]}}}function U(e){return{kind:x.xs.FRAGMENT_SPREAD,location:[0,0],name:G(e)}}function q(e){return{kind:x.xs.INLINE_FRAGMENT,location:[0,0],typeCondition:{kind:x.xs.NAMED_TYPE,location:[0,0],name:G(e)},selectionSet:(0,b.wD)()}}n(67752);function Q(){const e=(0,o.gxC)(),t=(0,o.H1s)(e),n=(0,a.useCallback)((()=>{null===t||void 0===t||t.collapseAll()}),[t]);return(0,k.jsxs)(r.AW,{spacing:"right",children:[(0,k.jsx)(r.w,{children:"Builder"}),(0,k.jsx)(r.jB,{}),(0,k.jsxs)(j.e2,{children:[(0,k.jsx)(w,{}),(0,k.jsx)(j.pG,{tooltip:"Collapse Elements in Builder",onClick:n,children:(0,k.jsx)(c.AL,{})})]})]})}var z=n(77545),Z=n(66800);function J(){const e=(0,o.gxC)(),t=(0,o.nrs)(),n=(0,o._e)(),i=(0,o.XdC)(e),s=(0,o.w6G)(e),l=(0,a.useCallback)((o=>n(t||e,{headers:o})),[t,e,n]);return(0,k.jsx)(r.gN,{children:(0,k.jsx)(Z.Z,{children:(0,k.jsx)(z.L,{authHeaderValue:i,headers:s,onChange:l})})})}var ee=n(19045),te=n(23406),ne=n(66094),oe=n(53790);const re="operations";function ie(){const e=function(){const e=(0,o.gxC)(),t=(0,o.H1s)(e),n=function(e,t){const n=(0,o.cmd)(),r=(0,o.udK)(re,e),i=(0,o.m2y)(),s=(0,v.YQ)((async e=>{i(e),await(null===t||void 0===t?void 0:t.updateAST(e))}),[t,i]);return(0,a.useEffect)((()=>{function e(e){null!==r&&void 0!==r&&r.uri&&oe.F.setSchemaInfo(r.uri,e)}return e(n.value()),n.subscribe(e)}),[r,n]),(0,a.useEffect)((()=>{var e;let t;const n=null===r||void 0===r||null===(e=r.onDidChangeContent((()=>{r&&!r.isDisposed()&&(t=s(r.getValue()))})))||void 0===e?void 0:e.dispose;return()=>{var e;null===n||void 0===n||n(),null===(e=t)||void 0===e||e()}}),[r,s]),r}(e,t),r=(0,o.l3b)(),i=(0,a.useRef)(null),s=(0,a.useRef)(null),l=(0,o.o0S)(),c=(0,o.SK_)();return(0,a.useEffect)((()=>{const e=s.current,t=g.editor.create(e,{...ee.Ng,glyphMargin:!0});i.current=t;const n=o.Hk3.register(re,t);return(0,te.p$)(t),t.onKeyUp((e=>{e.altKey||e.ctrlKey||e.metaKey||!e.shiftKey||e.keyCode!==g.KeyCode.Digit8||t.trigger("editor","editor.action.triggerSuggest",{})})),t.onContextMenu((()=>(0,ee.iD)(e))),()=>{n(),i.current=null,t.dispose()}}),[]),(0,a.useEffect)((()=>{if(i.current&&(i.current.setModel(n),r&&requestAnimationFrame((()=>{var e;null===(e=i.current)||void 0===e||e.restoreViewState(r)})),e)){function o(n){if(t){const o=(0,b.vL)(t,n.position);if(o)if(t.activeOperationDefinition===o.astNode||(0,x.ML)(o.astNode))"mouse"!==n.source&&"keyboard"!==n.source||(0,b.jm)(t,n.position);else{if("mouse"===n.source||"keyboard"===n.source){const e=t.subscribeToActiveOperationChanged((()=>{e(),(0,b.jm)(t,n.position)}))}c(e,{activeOperation:o.index})}}a()}function a(){var t;const n=null===(t=i.current)||void 0===t?void 0:t.saveViewState();n&&c(e,{operationsEditorViewState:n})}const s=[g.editor.registerCommand("execute-operation",((t,n)=>{l(e,n)})),i.current.onDidFocusEditorText((()=>{c(e,{focusedElement:ne.W7C})})),i.current.onDidChangeCursorPosition(o),i.current.onDidChangeCursorSelection(a),i.current.onDidScrollChange(a)];return()=>{s.forEach((e=>{let{dispose:t}=e;return t()}))}}}),[e,n,t,r,l,c]),(0,v.fs)(re,s),s}();return(0,k.jsx)(r.nG,{ref:e})}var ae=n(69253);function se(){return(0,k.jsxs)(r.AW,{spacing:"right",children:[(0,k.jsx)(le,{}),(0,k.jsx)(r.jB,{}),(0,k.jsx)(ce,{}),(0,k.jsx)(de,{})]})}function le(){const e=(0,o.gxC)(),t=(0,o._Ji)(),n=(0,o.fV)(),r=(0,o.SK_)(),{Tabs:i,Tab:s,MoreTabs:l}=(0,v.NS)(),c=(0,a.useCallback)(((o,i)=>{r(e,{activeOperationsSettingsViewId:i,isOperationsSettingsPaneCollapsed:n===i&&!t})}),[e,n,t,r]);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(i,{value:!t&&n,"aria-label":"Operation Setting Sections",onChange:c,children:[(0,k.jsx)(s,{label:"GraphQL Variables",value:"variables"}),(0,k.jsx)(s,{label:"HTTP Headers",value:"http-headers"})]}),(0,k.jsx)(l,{})]})}function ce(){const e=(0,o.wZY)(),t=(0,o.EN5)(),{hasUploadType:n}=(0,o.zKO)(),r=(0,o.WAs)(),i=(0,ae.H)(),s=(0,a.useCallback)((async()=>{r&&i({workspaceId:r,parentId:e})}),[e,r,i]);return n?(0,k.jsx)(j.pG,{tooltip:"Add Files",disabled:!t,onClick:s,children:(0,k.jsx)(c.hM,{inheritColor:!0})}):null}function de(){const e=(0,o.gxC)(),t=(0,o._Ji)(),n=(0,o.SK_)(),r=(0,a.useCallback)((()=>{n(e,{isOperationsSettingsPaneCollapsed:!0})}),[e,n]),i=(0,a.useCallback)((()=>{n(e,{isOperationsSettingsPaneCollapsed:!1})}),[e,n]);return t?(0,k.jsx)(j.pG,{tooltip:"Expand",onClick:i,children:(0,k.jsx)(c.uv,{})}):(0,k.jsx)(j.pG,{tooltip:"Collapse",onClick:r,children:(0,k.jsx)(c.xr,{})})}n(93967),n(54913);var ue,pe,he=n(47885),xe=n(57528),me=n(49420),fe=n(13588),ge=n(69311);const je=(0,a.memo)((function(e){var t;let{selectedKey:n,operations:o,onSelectionChange:r}=e;const i=o.map(((e,t)=>{var n,o,r,i,a,s;let l,c;switch(e.type){case x.S5.MUTATION:l=(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(me.sM,{}),(0,k.jsx)(ye,{children:null!==(n=e.name)&&void 0!==n?n:"Unnamed Mutation"})]}),c="Mutation: ".concat(null!==(o=e.name)&&void 0!==o?o:"Unnamed Mutation");break;case x.S5.QUERY:l=(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(me.XK,{}),(0,k.jsx)(ye,{children:null!==(r=e.name)&&void 0!==r?r:"Unnamed Query"})]}),c="Query: ".concat(null!==(i=e.name)&&void 0!==i?i:"Unnamed Query");break;case x.S5.SUBSCRIPTION:l=(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(me.yU,{}),(0,k.jsx)(ye,{children:null!==(a=e.name)&&void 0!==a?a:"Unnamed Subscription"})]}),c="Subscription: ".concat(null!==(s=e.name)&&void 0!==s?s:"Unnamed Subscription");break;default:throw new Error('Type "'.concat(e.type,'" does not exist.'))}return{content:l,title:c,key:t,value:{activeOperation:t}}})),a=null!==(t=i.find((e=>e.value.activeOperation===n)))&&void 0!==t?t:i[0];return(0,k.jsx)(fe.L,{selected:a,options:i,onSelectionChange:r,children:e=>{let{content:t,title:n}=e;return(0,k.jsx)(ve,{variant:"text",endIcon:(0,k.jsx)(c.D3,{}),tooltip:n,children:t})}})})),ve=(0,ge.Ay)(j.Si)(ue||(ue=(0,xe.A)(["display:grid;grid-template-columns:auto 1fr auto;max-width:150px;"]))),ye=ge.Ay.div(pe||(pe=(0,xe.A)(["margin-left:7px;text-overflow:ellipsis;text-align:start;white-space:nowrap;flex:0 0 auto;"])));function be(){var e;const t=(0,o.gxC)(),n=(0,o.NXe)(),i=(0,o.Gkt)(t),s=(0,o.$nk)(),l=null!==(e=(0,o.NFP)())&&void 0!==e?e:0,d=(0,o.n2K)(),u=(0,o.o0S)(),p=(0,o.SK_)(),h=(0,a.useCallback)((()=>{var e,t;null===(e=(0,o.W09)())||void 0===e||null===(t=e.getAction("editor.action.formatDocument"))||void 0===t||t.run()}),[]),x=(0,a.useCallback)((()=>{i&&d(t)}),[t,i,d]),m=(0,a.useCallback)((()=>{i||u(t,l)}),[l,t,i,u]),f=(0,a.useCallback)((e=>{let{value:{activeOperation:r}}=e;if(p(t,{activeOperation:r}),void 0!==r){const e=n.at(r);e&&function(e){const t=(0,o.W09)();if(t){const n=new g.Position(e.location.startToken.start.line,e.location.startToken.start.column);n&&(t.setPosition(n),t.revealPositionNearTop(n))}}(e)}}),[t,n,p]);return(0,o.wkm)(o.bab.formatDocument,h,void 0,[h]),(0,o.wkm)(o.bab.toggleOperation,(()=>{i?d(t):u(t,l)}),void 0,[l,t,i,d,u]),(0,k.jsxs)(r.AW,{spacing:"right",children:[(0,k.jsx)(r.w,{children:"Request"}),(0,k.jsx)(r.jB,{}),(0,k.jsxs)(j.e2,{children:[(0,k.jsx)(j.pG,{tooltip:(0,o.WIA)(o.bab.formatDocument,"Format Document"),onClick:h,children:(0,k.jsx)(c.hb,{})}),n.length>1&&(0,k.jsx)(je,{selectedKey:l,operations:n,onSelectionChange:f}),i?(0,k.jsx)(j.Si,{color:"primary",startIcon:(0,k.jsx)(he.y,{colorSelector:e=>e.components.buttonPrimaryText}),tooltip:(0,o.WIA)(o.bab.toggleOperation,"Cancel Operation"),onClick:x,children:"Cancel"}):(0,k.jsx)(j.Si,{color:"primary",disabled:s,startIcon:(0,k.jsx)(c.yZ,{}),tooltip:(0,o.WIA)(o.bab.toggleOperation,"Run Operation"),onClick:m,children:"Run"})]})]})}n(32799);const Ce="variables";function ke(){return(0,k.jsx)(r.nG,{ref:we()})}function we(){const e=(0,o.gxC)(),t=function(e){const t=(0,o.udK)(Ce,e),n=(0,o.nVi)(),r=(0,v.YQ)(n,[n]);return(0,a.useEffect)((()=>{var e;let n;const o=null===t||void 0===t||null===(e=t.onDidChangeContent((()=>{t.isDisposed()||(n=r(t.getValue()))})))||void 0===e?void 0:e.dispose;return()=>{var e;null===o||void 0===o||o(),null===(e=n)||void 0===e||e()}}),[t,r]),(0,a.useEffect)((()=>{let e=[];return g.editor.onDidChangeMarkers((n=>{n.forEach((n=>{if(n.toString()===(null===t||void 0===t?void 0:t.uri.toString())){const o=g.editor.getModelMarkers({owner:"json",resource:n});if(t.isDisposed())return;e=t.deltaDecorations(e,o.reduce(((e,t)=>(t.severity!==g.MarkerSeverity.Error&&t.severity!==g.MarkerSeverity.Warning||e.push({range:new g.Range(t.startLineNumber,1,t.startLineNumber,1),options:{glyphMarginClassName:t.severity===g.MarkerSeverity.Error?"codicon-error":"codicon-warning"}}),e)),[]))}}))})).dispose}),[t]),t}(e),n=(0,o.sKH)(),r=(0,a.useRef)(null),i=(0,a.useRef)(null),s=(0,o.SK_)();return(0,a.useEffect)((()=>{const e=i.current,t=g.editor.create(e,{...ee.Ng,glyphMargin:!0});r.current=t;const n=o.Hk3.register(Ce,t);return(0,te.p$)(t),t.onContextMenu((()=>(0,ee.iD)(e))),()=>{n(),r.current=null,t.dispose()}}),[]),(0,a.useEffect)((()=>{if(r.current&&(r.current.setModel(t),n&&requestAnimationFrame((()=>{var e;null===(e=r.current)||void 0===e||e.restoreViewState(n)})),e)){function o(){var t;const n=null===(t=r.current)||void 0===t?void 0:t.saveViewState();n&&s(e,{variablesEditorViewState:n})}const i=[r.current.onDidFocusEditorText((()=>{s(e,{focusedElement:ne.r_W})})),r.current.onDidChangeCursorPosition(o),r.current.onDidChangeCursorSelection(o),r.current.onDidScrollChange(o)];return()=>{i.forEach((e=>{let{dispose:t}=e;return t()}))}}}),[e,t,n,s]),(0,v.fs)(Ce,i),i}function Ne(){const e=(0,o.gxC)(),t=(0,o.HyM)(),n=(0,a.useRef)(t.value()),s=(0,o.KRs)(),l=(0,a.useRef)(null),c=(0,o.SK_)(),d=(0,a.useCallback)((t=>{n.current=t,c(e,{isOperationsSettingsPaneCollapsed:t})}),[e,c]),u=(0,a.useCallback)((t=>{c(e,{operationsSettingsPaneHeight:t})}),[e,c]);return(0,a.useEffect)((()=>t.subscribe((e=>{l.current&&n.current!==e&&(n.current=e,e?l.current.collapse():l.current.expand())}))),[t]),(0,k.jsxs)(r.wn,{children:[(0,k.jsx)(be,{}),(0,k.jsx)(r.Y2,{}),(0,k.jsx)(r.gN,{children:(0,k.jsx)(i.yr,{id:"request",ref:l,asideCollapsible:!0,asideCollapsed:n.current,asideHeight:s,asideMenu:(0,k.jsx)(Se,{}),asideMenuInBetween:!0,mainPane:"top",topContent:(0,k.jsx)(ie,{}),bottomContent:(0,k.jsx)(Ae,{}),onAsideCollapsedChange:d,onAsideHeightChange:u})})]})}const Se=(0,a.memo)((function(){return(0,k.jsx)(r.wn,{$separator:"top",children:(0,k.jsx)(se,{})})})),Ae=(0,a.memo)((function(){return(0,k.jsx)(r.wn,{$separator:"top",children:(0,k.jsx)(Te,{})})}));function Te(){switch((0,o.fV)()){case"http-headers":return(0,k.jsx)(J,{});case"http-settings":return null;case"variables":return(0,k.jsx)(ke,{})}}const Ie="response";function Ee(){return(0,k.jsx)(r.nG,{ref:Me()})}function Me(){const e=(0,o.gxC)(),t=(0,o.yoR)(),n=(0,o.BIB)(e),r=(0,a.useRef)(null),i=(0,te.bu)((()=>g.editor.createModel(Oe(n.value()),"json"))),s=(0,o.SK_)(),l=(0,v.YQ)((t=>{const n=t.saveViewState();n&&s(e,{responseEditorViewState:n})}),[e,s]);return(0,a.useEffect)((()=>{const a=r.current;if(!a)return;const c=g.editor.create(a,{...ee.Ng,readOnly:!0,model:i.current}),d=o.Hk3.register(Ie,c);t&&requestAnimationFrame((()=>{c.restoreViewState(t)})),c.onContextMenu((()=>(0,ee.iD)(a))),c.onDidChangeCursorPosition((()=>l(c))),c.onDidChangeCursorSelection((()=>l(c))),c.onDidScrollChange((()=>l(c))),c.onDidFocusEditorText((()=>{s(e,{focusedElement:ne.Pe7})})),i.current.setValue(Oe(n.value())),i.current.updateOptions(ee.x5);const u=n.subscribe((e=>{c.setScrollPosition({scrollLeft:0,scrollTop:0}),i.current.setValue(Oe(e))}));return()=>{u(),d(),c.dispose()}}),[n,e,i,t,l,s]),(0,v.fs)(Ie,r),r}function Oe(e){return e&&"string"!==typeof e?JSON.stringify(e,null,2):null!==e&&void 0!==e?e:""}var _e,Re=n(34877),De=n(5910),Fe=n(28511),Le=n(9912);function Pe(){const e=(0,o.gxC)(),t=(0,a.useRef)(null),n=(0,a.useRef)(null),r=(0,o.TO5)(e),i=(0,o.ujl)(e),s=(0,a.useRef)(!0),d=(0,a.useRef)(!1),u=(0,o.QRo)(),p=(0,o.bkB)(),h=(0,o.Sp8)(),x=(0,a.useRef)(r);x.current=r;const m=(0,a.useCallback)((t=>{s.current=!1,u(e,t.id,void 0)}),[e,u]),f=(0,a.useCallback)((e=>{p(e.id,void 0,!1)}),[p]),g=(0,a.useCallback)((t=>{s.current=!1,u(e,t.parentId,t.id)}),[e,u]),j=(0,a.useCallback)((e=>{p(e.parentId,void 0,!1)}),[p]),v=(0,a.useCallback)((t=>{h(e,t.scrollOffset)}),[e,h]),y=(0,a.useCallback)((e=>{t.current=e,d.current&&t.current&&x.current&&(t.current.scrollTo(i),d.current=!1)}),[i]);(0,a.useEffect)((()=>{d.current=!0}),[e]),(0,a.useEffect)((()=>{s.current=!0}),[null===r||void 0===r?void 0:r.activeChildId]),(0,a.useLayoutEffect)((()=>{var e;if(s.current&&null!==r&&void 0!==r&&r.activeId&&t.current&&null!==(e=x.current)&&void 0!==e&&e.entries.length){const e=x.current.activeId?x.current.entries.findIndex((e=>{var t;let{id:n}=e;return n===(null===(t=x.current)||void 0===t?void 0:t.activeId)})):-1;-1===e?t.current.scrollToItem(x.current.entries.length-1,"end"):t.current.scrollToItem(e,"end")}s.current=!0}),[null===r||void 0===r?void 0:r.activeId]);const b=(0,a.useCallback)(((e,t)=>"item-".concat(t.entries[e].id)),[]),C=(0,a.memo)((function(e){let{data:t,index:n,style:r}=e;const i=t.entries[n];return(0,o.qBC)(i)?(0,k.jsx)("div",{style:r,onClick:()=>g(i),onDoubleClick:()=>j(i),children:(0,k.jsx)(Be,{id:i.id,kind:i.kind,active:i.id===t.activeChildId&&i.parentId===t.activeId,last:i.last,duration:i.duration,index:i.index,success:i.success,received:i.received})},"entry-".concat(i.id)):(0,k.jsx)("div",{style:r,onClick:()=>m(i),onDoubleClick:()=>f(i),children:(0,k.jsx)(Ke,{id:i.id,documentId:t.documentId,duration:i.duration,operationName:i.operationName,operationStatus:i.operationStatus,operationType:i.operationType,pending:i.pending,active:i.id===t.activeId,started:i.started,expandable:i.expandable,expanded:i.expanded})},"entry-".concat(i.id))}),Le.t7);return null!==r&&void 0!==r&&r.entries.length?(0,k.jsx)(De.d,{innerListRef:y,scrollbarRef:n,itemCount:r.entries.length,itemData:r,itemKey:b,itemSize:Re.lh,tabIndex:-1,onScrollVirtualList:v,children:C}):(0,k.jsx)(l.HY,{title:"No Responses",icon:(0,k.jsx)(c.mo,{})})}const Ke=(0,a.memo)((function(e){let{id:t,documentId:n,active:o,duration:r,operationName:i,operationStatus:a,operationType:s,pending:l,started:c,expandable:d,expanded:u}=e;return(0,k.jsxs)(Re.St,{className:o?"active":void 0,children:[(0,k.jsx)(He,{documentId:n,resultId:t,active:o,pending:l,expandable:d,expanded:u}),(0,k.jsx)(Ve,{operationStatus:a}),(0,k.jsx)(Re.dg,{children:s===x.S5.MUTATION?(0,k.jsx)(me.sM,{title:"Mutation"}):s===x.S5.SUBSCRIPTION?(0,k.jsx)(me.yU,{title:"Subscription"}):(0,k.jsx)(me.XK,{title:"Query"})}),(0,k.jsx)(Re.hE,{children:i||s}),(0,k.jsx)(Re.gX,{children:(0,Fe.n$)(c)}),(0,k.jsx)(Re.G3,{children:(0,te.Ds)(r)})]})})),Be=(0,a.memo)((function(e){let{active:t,last:n,duration:o,kind:r,index:i,success:a,received:s}=e;return(0,k.jsxs)(Re.St,{className:t?"active":void 0,children:[(0,k.jsx)(Re.dg,{children:n?t?(0,k.jsx)(c.BB,{}):(0,k.jsx)(c.Dv,{}):t?(0,k.jsx)(c.XJ,{}):(0,k.jsx)(c.Z5,{})}),(0,k.jsx)(Ye,{success:a}),(0,k.jsx)(Re.dg,{children:(0,k.jsx)(c.b1,{})}),(0,k.jsxs)(Re.hE,{children:["event"===r?"Event":"Patch"," ",i+1]}),(0,k.jsx)(Re.gX,{children:(0,Fe.n$)(s)}),(0,k.jsx)(Re.G3,{children:(0,te.Ds)(o)})]})}));function He(e){let{documentId:t,resultId:n,active:r,pending:i,expandable:s,expanded:l}=e;const d=(0,o.QQs)(),u=(0,o.HjE)(),p=(0,a.useCallback)((e=>{s&&(e.stopPropagation(),l?d(t,n):u(t,n))}),[t,n,s,l,d,u]);return(0,k.jsx)(Re.dg,{onClick:p,children:i?(0,k.jsx)(he.y,{}):s?l?(0,k.jsx)(c.D3,{}):(0,k.jsx)(c.vK,{}):r?(0,k.jsx)(c.yf,{}):(0,k.jsx)(c.M1,{})})}function Ve(e){let{operationStatus:t}=e;switch(t){case"cancelled":return(0,k.jsx)(Xe,{children:(0,k.jsx)(c.tT,{})});case"failed":return(0,k.jsx)(Xe,{children:(0,k.jsx)(c.ik,{})});default:return(0,k.jsx)(Xe,{children:(0,k.jsx)(c.BK,{})})}}function Ye(e){let{success:t}=e;return t?(0,k.jsx)(Xe,{children:(0,k.jsx)(c.BK,{})}):(0,k.jsx)(Xe,{children:(0,k.jsx)(c.ik,{})})}const Xe=(0,ge.Ay)(Re.dg)(_e||(_e=(0,xe.A)(["margin-right:5px;"])));function Ge(){const e=(0,o.gxC)(),t=(0,o.MaU)(e),n=(0,o.bkB)(),i=(0,a.useCallback)((async()=>{t&&n(t,void 0,!1)}),[t,n]);return(0,k.jsxs)(r.AW,{spacing:"right",children:[(0,k.jsx)(r.w,{children:"Responses"}),(0,k.jsx)(r.jB,{}),t&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(j.pG,{tooltip:"Go to Log Entry",onClick:i,children:(0,k.jsx)(c.D0,{})}),(0,k.jsx)($e,{documentId:e})]}),(0,k.jsx)(We,{})]})}function $e(e){let{documentId:t}=e;const n=(0,o.Gkt)(t),r=(0,o.LTd)(),i=(0,a.useCallback)((()=>{r(t)}),[t,r]);return(0,k.jsx)(j.pG,{tooltip:"Clear Results",disabled:n,onClick:i,children:(0,k.jsx)(c.EO,{})})}function We(){const e=(0,o.gxC)(),t=(0,o.ILA)(),n=(0,o.SK_)(),r=(0,a.useCallback)((()=>{n(e,{isResponseEntriesPaneCollapsed:!0})}),[e,n]),i=(0,a.useCallback)((()=>{n(e,{isResponseEntriesPaneCollapsed:!1})}),[e,n]);return t?(0,k.jsx)(j.pG,{tooltip:"Expand",onClick:i,children:(0,k.jsx)(c.uv,{})}):(0,k.jsx)(j.pG,{tooltip:"Collapse",onClick:r,children:(0,k.jsx)(c.xr,{})})}n(5084);var Ue,qe,Qe,ze,Ze,Je,et,tt,nt,ot=n(8395),rt=n.n(ot),it=n(45098),at=n(32089),st=n(89614),lt=n(85668),ct=n(37630);n(88626);function dt(){const e=(0,o.gxC)(),t=(0,o.Ac3)(e),n=(0,o.GKj)(e);return t||n?null!==t&&void 0!==t&&t.queryPlan&&null!==t&&void 0!==t&&t.queryPlanHash?(0,k.jsx)(xt,{queryPlan:t.queryPlan,queryPlanHash:t.queryPlanHash}):null!==t&&void 0!==t&&t.queryPlanEnabled?(0,k.jsx)(l.HY,{title:"Fusion Query Plan Not Supported",icon:(0,k.jsx)(c.Z_,{}),children:(0,k.jsx)(l.pd,{children:"Looks like this GraphQL Server does not support Query Plans."})}):t&&!n?(0,k.jsx)(ut,{}):(0,k.jsx)(l.HY,{title:"No Fusion Query Plan Yet",icon:(0,k.jsx)(c.Z_,{}),children:(0,k.jsx)(l.pd,{children:"Run the GraphQL Operation to get the Query Plan."})}):(0,k.jsx)(ut,{})}function ut(){const e=(0,o.gxC)(),t=(0,o._5E)(e);return(0,k.jsxs)(l.HY,{title:"Fusion Query Plan",icon:(0,k.jsx)(c.Z_,{}),children:[(0,k.jsx)(l.pd,{children:"Enable Query Plan to get insights into how Fusion fetches data from Subgraphs."}),(0,k.jsx)(l.pd,{children:(0,k.jsx)(it.A,{color:"primary",onClick:()=>t(),children:"Enable Query Plan"})})]})}const pt=(0,a.createContext)({selectedVariable:null,setSelectedVariable:Fe.lQ,resetSelectedVariable:Fe.lQ});function ht(e){let{children:t}=e;const[n,o]=(0,a.useState)(null);return(0,k.jsx)(pt.Provider,{value:{selectedVariable:n,setSelectedVariable:o,resetSelectedVariable:()=>o(null)},children:t})}const xt=(0,a.memo)((function(e){let{queryPlan:t,queryPlanHash:n}=e;const[o,r]=(0,a.useState)([]),[i,s]=(l=t,c="LR",(0,a.useMemo)((()=>{const[e,t]=function(e,t){const n=[],o=[];function r(e,t,o){const r={id:e,width:12+("Compose"===t.type?72:152),height:"Compose"===t.type?40:60,position:{x:0,y:0},data:t,parentNode:o||void 0,extent:o?"parent":void 0,type:"Compose"===t.type?"compose":"custom",selectable:!1,focusable:!1,deletable:!1};return n.push(r),r}function i(e,n){const[r,i]=function(e){return"LR"===e?[st.yX.Right,st.yX.Left]:[st.yX.Bottom,st.yX.Top]}(t);o.push({id:(0,at.Ak)(),source:e.id,target:n.id,sourceHandle:r,targetHandle:i,type:"custom",animated:!0,focusable:!1,deletable:!1,markerEnd:{type:st.TG.ArrowClosed}})}function a(e,t,o){switch(t.type){case"Sequence":break;case"Parallel":case"Compose":case"Resolve":case"ResolveByKeyBatch":case"ResolveNode":{const a=n.at(-1),s=r(e,t,o),l=n.find((e=>e.id===o));a&&s&&a.parentNode===s.parentNode&&"Parallel"!==(null===l||void 0===l?void 0:l.data.type)&&i(a,s)}break;default:throw new Error("unknown type: "+t.type)}}function s(e){const t=[[null,e,null]];for(;t.length>0;){const[e,n,o]=t.shift();e&&a(e,n,o),"nodes"in n&&n.nodes.forEach((n=>{t.push([(0,at.Ak)(),n,e])}))}}return s(e.rootNode),[n,o]}(l,c),n=(new(rt().graphlib.Graph)).setGraph({rankdir:c,align:"UL",ranksep:64,nodesep:44}).setDefaultEdgeLabel((()=>({})));function o(e){return e.reduce(((e,t)=>{const{parentNode:n}=t;if(n){var o;const r=null!==(o=e.get(n))&&void 0!==o?o:[];r.push(t),e.set(n,r)}return e}),new Map)}e.forEach((e=>{let{id:t,width:o,height:r}=e;n.setNode(t,{width:null!==o&&void 0!==o?o:void 0,height:null!==r&&void 0!==r?r:void 0})})),t.forEach((e=>{let{source:t,target:o}=e;n.setEdge(t,o)})),rt().layout(n),e.forEach((e=>{const{x:t,y:o,width:r,height:i}=n.node(e.id),a=e.parentNode?0:20,s=e.parentNode?0:20;e.position={x:t+a-r/2,y:o+s-i/2}}));const r=o(e);return e.forEach((t=>{if(r.has(t.id)){const{x:o,y:i,width:a,height:s}=n.node(t.id),l=(0,st.Jo)(r.get(t.id)),c=20;e.push({id:(0,at.Ak)(),position:{x:o+c/2-a/2,y:i+c/2-s/2},data:void 0,style:{width:Math.max(a,l.x+l.width+c),height:Math.max(s,l.y+l.height+c)},zIndex:-1,type:"group",selectable:!1,focusable:!1,deletable:!1})}})),e.forEach((e=>{if(e.parentNode){const{x:t,y:o,width:r,height:i}=n.node(e.id),a=0,s=-44;e.position={x:t+a-r/2,y:o+s-i/2}}})),[e,t]}),[l,c]));var l,c;return(0,k.jsx)(ht,{children:(0,k.jsxs)(mt,{nodes:o.length?i.map((e=>o.some((t=>{var n,o,r;return(null===(n=e.data)||void 0===n?void 0:n.selectionSetId)===t||(null===(o=e.data)||void 0===o||null===(r=o.selectionSetIds)||void 0===r?void 0:r.includes(t))}))?{...e,selected:!0}:e)):i,edges:s,nodeTypes:Tt,edgeTypes:It,minZoom:.75,maxZoom:1.25,zoomOnScroll:!0,nodesDraggable:!1,proOptions:{hideAttribution:!0},defaultMarkerColor:ee.lt.graph.edge,fitView:!0,onNodeMouseEnter:(e,t)=>{var n,o;void 0!==(null===(n=t.data)||void 0===n?void 0:n.selectionSetId)?r([t.data.selectionSetId]):void 0!==(null===(o=t.data)||void 0===o?void 0:o.selectionSetIds)&&r(t.data.selectionSetIds)},onNodeMouseLeave:()=>{r([])},children:[t.state&&(0,k.jsx)(st.Zk,{position:"bottom-center",style:{bottom:20},children:(0,k.jsx)(vt,{children:Object.entries(t.state).map((e=>{let[t,n]=e;return(0,k.jsx)(kt,{name:t,value:n},t)}))})}),(0,k.jsx)(lt.V,{variant:lt._.Dots}),(0,k.jsx)(ct.H,{showInteractive:!1})]})},n)}));const mt=(0,ge.Ay)(st.Gc)(Ue||(Ue=(0,xe.A)(["--node-border-radius:10px;background-color:",";color:",";font-family:",";.react-flow__background > pattern > circle{fill:",";}.react-flow__viewport,.react-flow__nodes,.react-flow__node,.react-flow__pane{overflow:visible;}.react-flow__node-custom,.react-flow__node-compose{display:flex;align-items:center;justify-content:center;}.react-flow__node-group{border:1px dashed ",";border-radius:var(--node-border-radius);background-color:",";&.selected{border-color:",";}}.react-flow__handle{visibility:hidden;}.react-flow__edge-path{stroke:",";stroke-width:2;stroke-dasharray:5 5;}.react-flow__arrowhead{polyline{fill:",";stroke:",";}}.react-flow__edge.selected .react-flow__edge-path{stroke:",";}.react-flow__controls{border-radius:4px;}.react-flow__controls-button{border:1px solid ",";background-color:",";border-radius:4px;&:not(:last-of-type){border-bottom-right-radius:0;border-bottom-left-radius:0;}&:not(:first-of-type){border-top-right-radius:0;border-top-left-radius:0;margin-top:-1px;}&:hover{background-color:",";& > svg{fill:",";}}& > svg{fill:",";}}.react-flow__attribution{display:none;}"])),ee.lt.graph.background,ee.lt.graph.text,ee.F2,ee.lt.graph.backgroundPattern,ee.lt.graph.nodeBorder,ee.lt.graph.background,ee.lt.graph.nodeBorderActive,ee.lt.graph.edge,ee.lt.graph.edge,ee.lt.graph.edge,ee.lt.graph.edgeActive,ee.lt.components.toggleButtonBorder,ee.lt.components.toggleButton,ee.lt.components.toggleButtonHover,ee.lt.components.toggleButtonHoverText,ee.lt.components.toggleButtonText),ft=ge.Ay.div(qe||(qe=(0,xe.A)(["width:152px;height:36px;padding:6px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px;font-weight:500;background-color:",";border:1px solid ",";border:",";border-radius:var(--node-border-radius);box-shadow:",";overflow:visible;.selected &{border-color:",";}"])),ee.lt.graph.node,ee.lt.graph.nodeBorder,(e=>{let{$ghost:t}=e;return t?"none":""}),(e=>{let{$ghost:t}=e;return t?"none":""}),ee.lt.graph.nodeBorderActive),gt=ge.Ay.div(Qe||(Qe=(0,xe.A)(["-webkit-box-orient:vertical;-webkit-line-clamp:2;text-overflow:ellipsis;text-align:center;font-size:0.875rem;width:100%;margin:auto;"]))),jt=ge.Ay.div(ze||(ze=(0,xe.A)(["position:absolute;top:100%;min-width:100%;margin-top:12px;display:flex;justify-content:space-evenly;gap:8px;overflow:visible;"]))),vt=ge.Ay.ul(Ze||(Ze=(0,xe.A)(["display:flex;gap:5px;list-style:none;margin:0;padding:0;"]))),yt=ge.Ay.li(Je||(Je=(0,xe.A)(["display:flex;gap:6px;"]))),bt=ge.Ay.span(et||(et=(0,xe.A)(["display:inline-flex;align-items:center;justify-content:center;border-radius:12px;box-sizing:border-box;min-width:24px;height:24px;border:1px solid ",";font-size:0.875rem;color:",";background-color:",";pointer-events:all;user-select:none;cursor:default;"])),(e=>{let{$selected:t}=e;return t?ee.lt.graph.nodeBorderActive:ee.lt.graph.nodeBorder}),ee.lt.graph.text,ee.lt.graph.node),Ct=ge.Ay.span(tt||(tt=(0,xe.A)(["display:inline-flex;align-items:center;justify-content:flex-start;height:24px;font-size:0.875rem;user-select:none;"])));function kt(e){let{name:t,value:n}=e;const{selectedVariable:o,setSelectedVariable:r,resetSelectedVariable:i}=(0,a.useContext)(pt);return(0,k.jsxs)(yt,{children:[(0,k.jsx)(bt,{$selected:o===t,onMouseEnter:()=>{r(t)},onMouseLeave:i,children:t.replace("__fusion_exports__","")}),n&&(0,k.jsx)(Ct,{children:n})]})}function wt(e){let{type:t,subgraph:n}=e;switch(t){case"Resolve":return"Fetch from ".concat(n);case"ResolveNode":return"Fetch from ***";case"ResolveByKeyBatch":return"Batch from ".concat(n);default:return t}}const Nt=(0,a.memo)((function(e){let{data:t}=e;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(ft,{$ghost:"Parallel"===t.type,children:(0,k.jsx)(gt,{children:(0,k.jsx)(wt,{type:t.type,subgraph:t.subgraph})})}),(t.requires||t.provides)&&(0,k.jsxs)(jt,{children:[t.requires&&(0,k.jsxs)(vt,{children:[(0,k.jsx)(Et,{}),t.requires.map((e=>{let{variable:t}=e;return(0,k.jsx)(kt,{name:t},t)}))]}),t.provides&&(0,k.jsxs)(vt,{children:[t.provides.map((e=>{let{variable:t}=e;return(0,k.jsx)(kt,{name:t},t)})),(0,k.jsx)(Mt,{})]})]}),(0,k.jsx)(st.h7,{id:st.yX.Right,type:"source",position:st.yX.Right}),(0,k.jsx)(st.h7,{id:st.yX.Bottom,type:"source",position:st.yX.Bottom}),(0,k.jsx)(st.h7,{id:st.yX.Left,type:"target",position:st.yX.Left}),(0,k.jsx)(st.h7,{id:st.yX.Top,type:"target",position:st.yX.Top})]})})),St=ge.Ay.div(nt||(nt=(0,xe.A)(["width:84px;height:16px;padding:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid ",";font-weight:500;background-color:",";border-radius:30px;overflow:visible;"])),ee.lt.graph.nodeBorder,ee.lt.graph.node),At=(0,a.memo)((function(e){let{data:t}=e;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(St,{children:(0,k.jsx)(gt,{children:(0,k.jsx)(wt,{type:t.type,subgraph:t.subgraph})})}),(0,k.jsx)(st.h7,{id:st.yX.Right,type:"source",position:st.yX.Right}),(0,k.jsx)(st.h7,{id:st.yX.Bottom,type:"source",position:st.yX.Bottom}),(0,k.jsx)(st.h7,{id:st.yX.Left,type:"target",position:st.yX.Left}),(0,k.jsx)(st.h7,{id:st.yX.Top,type:"target",position:st.yX.Top})]})})),Tt={custom:Nt,compose:At},It={custom:(0,a.memo)((function(e){let{id:t,style:n,markerEnd:o,...r}=e;const[i]=(0,st.oN)({offset:10,borderRadius:40,...r});return(0,k.jsx)("path",{id:t,style:n,className:"react-flow__edge-path",d:i,markerEnd:o})}))};function Et(){return(0,k.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{fill:ee.lt.graph.text,transform:"rotate(-90deg)"},children:(0,k.jsx)("path",{d:"M 16.114 11.287 L 16.114 6.533 L 14.23 6.533 L 14.23 9.554 C 12.791 7.939 10.572 6.93 8.147 6.93 C 4.157 6.93 0.711 9.672 0.41 13.344 L 0.384 13.663 L2.27 13.663 L 2.297 13.395 C 2.565 10.787 5.064 8.713 8.147 8.713 C 10.33 8.713 12.223 9.754 13.236 11.287 L 9.681 11.287 L 9.681 13.069 L 14.91 13.069 L 16.119 11.911 L 16.119 11.287 L 16.114 11.287 Z"})})}function Mt(){return(0,k.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{fill:ee.lt.graph.text,transform:"rotate(90deg)"},children:(0,k.jsx)("path",{d:"M 16.114 11.287 L 16.114 6.533 L 14.23 6.533 L 14.23 9.554 C 12.791 7.939 10.572 6.93 8.147 6.93 C 4.157 6.93 0.711 9.672 0.41 13.344 L 0.384 13.663 L2.27 13.663 L 2.297 13.395 C 2.565 10.787 5.064 8.713 8.147 8.713 C 10.33 8.713 12.223 9.754 13.236 11.287 L 9.681 11.287 L 9.681 13.069 L 14.91 13.069 L 16.119 11.911 L 16.119 11.287 L 16.114 11.287 Z"})})}var Ot,_t,Rt=n(15231),Dt=n(39919),Ft=n(53065);function Lt(){return(0,k.jsxs)(r.AW,{spacing:"right",children:[(0,k.jsx)(r.w,{children:"Response"}),(0,k.jsx)(r.jB,{}),(0,k.jsx)(Kt,{}),(0,k.jsx)(Pt,{})]})}function Pt(){const e=(0,o.gxC)(),t=(0,o.l4V)(),n=(0,o.SK_)(),r=(0,a.useCallback)((t=>{n(e,{activeResponseViewId:t})}),[e,n]),i=(0,a.useCallback)(((e,t)=>{t&&r(t)}),[r]);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Ht,{}),(0,k.jsxs)(Rt.A,{exclusive:!0,size:"small",value:t,onChange:i,children:[(0,k.jsx)(Dt.A,{value:"json",children:(0,k.jsx)(Ft.A,{title:"JSON",placement:"bottom",children:(0,k.jsx)(c.qz,{})})}),(0,k.jsx)(Dt.A,{value:"query-plan",children:(0,k.jsx)(Ft.A,{title:"Query Plan",placement:"bottom",children:(0,k.jsx)(c.Z_,{})})})]})]})}function Kt(){var e,t,n;const i=(0,o.gxC)(),a=(0,o.tpw)(i),s=function(e){if(!e)return!1;return(0,o._mr)(e)?"cancelled"!==e.operationStatus&&!!e.statusCode&&(null===e||void 0===e?void 0:e.statusCode)<300:"succeeded"===e.operationStatus}(a),l=e=>{switch(e){case"cancelled":return"abort";case"failed":return"failure";default:return"success"}};return a?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(r.S1,{children:[(0,k.jsx)(r.Jn,{$variant:s?"status-succeeded":"status-failed",children:(0,k.jsx)(c.bz,{inheritColor:!0})}),(0,k.jsxs)(Bt,{children:[(0,k.jsx)(r.ld,{$variant:s?"status-succeeded":"status-failed",children:(0,o._mr)(a)?"cancelled"===a.operationStatus?l(a.operationStatus):null!==(e=a.statusCode)&&void 0!==e?e:l(a.operationStatus):l(a.operationStatus)}),(0,k.jsx)(r.ve,{children:"Status"})]})]}),(null===(t=a.children)||void 0===t?void 0:t.length)&&(0,k.jsx)(r.S1,{children:(0,k.jsxs)(Bt,{children:[(0,k.jsx)(r.ld,{children:null===(n=a.children)||void 0===n?void 0:n.length}),(0,k.jsx)(r.ve,{children:(0,o._mr)(a)?"Patches":"Events"})]})}),(0,k.jsx)(r.S1,{children:(0,k.jsxs)(Bt,{children:[(0,k.jsx)(r.ld,{children:(0,te.Ds)(a.duration)}),(0,k.jsx)(r.ve,{children:"Duration"})]})}),(0,k.jsx)(r.S1,{children:(0,k.jsxs)(Bt,{children:[(0,k.jsx)(r.ld,{children:(0,te.YC)(a.contentLength)}),(0,k.jsx)(r.ve,{children:"Size"})]})})]}):null}const Bt=(0,ge.Ay)(r.mA)(Ot||(Ot=(0,xe.A)(["min-width:52px;"]))),Ht=ge.Ay.div(_t||(_t=(0,xe.A)(["flex:0 0 6px;"])));function Vt(){const e=(0,o.gxC)(),t=(0,o.zpm)(),n=(0,a.useRef)(t.value()),s=(0,o.Ilp)(),l=(0,a.useRef)(null),c=(0,o.SK_)(),d=(0,a.useCallback)((t=>{n.current=t,c(e,{isResponseEntriesPaneCollapsed:t})}),[e,c]),u=(0,a.useCallback)((t=>{c(e,{responseEntriesPaneHeight:t})}),[e,c]);return(0,a.useEffect)((()=>t.subscribe((e=>{l.current&&n.current!==e&&(n.current=e,e?l.current.collapse():l.current.expand())}))),[t]),(0,k.jsx)(r.wn,{$separator:"left",children:(0,k.jsx)(i.yr,{id:"response",ref:l,asideCollapsible:!0,asideCollapsed:n.current,asideHeight:s,asideMenu:(0,k.jsx)(Gt,{}),asideMenuInBetween:!0,mainPane:"top",topContent:(0,k.jsx)(Yt,{}),bottomContent:(0,k.jsx)($t,{}),onAsideCollapsedChange:d,onAsideHeightChange:u})})}const Yt=(0,a.memo)((function(){return(0,k.jsxs)(r.wn,{children:[(0,k.jsx)(Lt,{}),(0,k.jsx)(r.Y2,{}),(0,k.jsx)(r.gN,{children:(0,k.jsx)(Xt,{})})]})}));function Xt(){switch((0,o.l4V)()){case"json":return(0,k.jsx)(Ee,{});case"query-plan":return(0,k.jsx)(dt,{})}}const Gt=(0,a.memo)((function(){return(0,k.jsx)(r.wn,{$separator:"top",children:(0,k.jsx)(Ge,{})})})),$t=(0,a.memo)((function(){return(0,k.jsx)(r.wn,{$separator:"top",children:(0,k.jsx)(r.gN,{children:(0,k.jsx)(Pe,{})})})}));var Wt,Ut;function qt(){const e=(0,o.htp)(),t=(0,o.AXs)(),n=(0,o.xUU)(),i=(0,a.useCallback)((e=>()=>n(e)),[n]);return(0,k.jsxs)(r.wn,{$fixedSize:36,$separator:"right",children:[(0,k.jsx)(Qt,{title:"Operation Builder",className:(s="builder",t||e!==s?void 0:"active"),onClick:i("builder"),children:(0,k.jsx)(c.Lq,{inheritColor:!0})}),(0,k.jsx)(Zt,{})]});var s}function Qt(e){let{title:t,children:n,className:o,disabled:r,onClick:i}=e;return(0,k.jsx)(Ft.A,{title:r?"":t,placement:"right",disableInteractive:!0,children:(0,k.jsx)(zt,{className:o,disabled:r,onClick:i,children:(0,k.jsx)("span",{className:"icon-container",children:n})})})}const zt=ge.Ay.button(Wt||(Wt=(0,xe.A)(["position:relative;display:flex;align-items:center;justify-content:center;width:36px;height:36px;transition:border-color 0.2s ease,opacity 0.2s ease;& > .icon-container{display:flex;align-items:center;justify-content:center;border-radius:4px;width:24px;height:24px;background-color:",";transition:background-color 0.2s ease;& > .icon{width:16px;height:16px;fill:",";transition:fill 0.2s ease;}}&:disabled,&:disabled:hover{opacity:0.5;& > .icon-container{background-color:",";& > .icon{fill:",";}}}&.active{width:36px;& > .icon-container{background-color:",";& > .icon{fill:",";}}&:hover{width:36px;& > .icon-container{background-color:",";& > .icon{fill:",";}}}}&:hover{& > .icon-container{background-color:",";& > .icon{fill:",";}}}"])),ee.lt.components.buttonIcon,ee.lt.components.buttonIconText,ee.lt.components.buttonIcon,ee.lt.components.buttonIconText,ee.lt.components.buttonIconHover,ee.lt.components.buttonIconHoverText,ee.lt.components.buttonIconHover,ee.lt.components.buttonIconHoverText,ee.lt.components.buttonIconHover,ee.lt.components.buttonIconHoverText),Zt=ge.Ay.div(Ut||(Ut=(0,xe.A)(["margin:auto;"]))),Jt=(0,a.memo)((function(){const e=(0,o.gxC)(),t=(0,o.AXs)(),n=(0,o.qQd)(),s=(0,o.gj1)(),l=(0,o.SK_)(),c=(0,a.useCallback)((t=>{l(e,{isOperationCompanionCollapsed:t})}),[e,l]);return(0,k.jsx)(i.YV,{id:"operation",asideWidth:n,mainPane:"right",asideCollapsed:t,asideCollapsible:!0,asideMenu:(0,k.jsx)(qt,{}),onAsideWidthChange:s,onAsideCollapsedChange:c,leftContent:(0,k.jsxs)(r.wn,{$separator:"right",children:[(0,k.jsx)(Q,{}),(0,k.jsx)(r.Y2,{}),!1,(0,k.jsx)(r.gN,{children:(0,k.jsx)(N,{})})]}),rightContent:(0,k.jsx)(r.wn,{children:(0,k.jsx)(r.gN,{children:(0,k.jsx)(nn,{})})})})})),en=(0,a.memo)(Ne),tn=(0,a.memo)(Vt),nn=(0,a.memo)((function(){const e=(0,o.ut_)(),t=(0,o.lD7)();return(0,k.jsx)(i.YV,{id:"document",asideWidth:t,leftContent:(0,k.jsx)(en,{}),mainPane:"left",relativeWidth:!0,rightContent:(0,k.jsx)(tn,{}),onAsideWidthChange:e})}))},88803:(e,t,n)=>{n.d(t,{D0:()=>I,Ht:()=>Q,Ix:()=>M,WL:()=>T,ZU:()=>O,a:()=>R,ef:()=>S,nG:()=>B,sc:()=>G,tm:()=>$,vs:()=>K});var o,r,i,a,s,l,c,d,u,p,h,x,m,f,g,j,v,y,b=n(57528),C=n(19045),k=n(97353),w=n(69311),N=n(44414);function S(e){let{argument:t,onClick:n}=e;return(0,N.jsxs)(L,{children:[(0,N.jsx)($,{children:t.name}),(0,N.jsx)(B,{children:": "}),(0,N.jsx)(O,{type:t.type,onClick:n?()=>n(t):void 0}),(0,N.jsx)(E,{type:t.type,defaultValue:t.defaultValue})]})}function A(e){let{arguments:t,onClick:n}=e;return null!==t&&void 0!==t&&t.length?(0,N.jsx)(F,{children:t.map((e=>(0,N.jsx)(S,{argument:e,onClick:n},e.coordinate)))}):null}function T(e){let{directive:{name:t,arguments:n},collapsed:o,onClick:r}=e;return(0,N.jsxs)(R,{children:[(0,N.jsxs)(D,{children:["@",t]}),(null===n||void 0===n?void 0:n.length)&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(P,{children:"("}),o?"...":(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("br",{}),(0,N.jsx)(A,{arguments:n,onClick:r})]}),(0,N.jsx)(P,{children:")"})]})]})}function I(e){var t;let{type:n,collapsed:o,onClick:r}=e;return(0,N.jsxs)(R,{children:[(0,N.jsx)($,{children:n.name}),(null===(t=n.arguments)||void 0===t?void 0:t.length)&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(P,{children:"("}),o?"...":(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("br",{}),(0,N.jsx)(A,{arguments:n.arguments,onClick:r})]}),(0,N.jsx)(P,{children:")"})]}),(0,N.jsx)(B,{children:": "}),(0,N.jsx)(O,{type:n.valueType,onClick:r?()=>r(n):void 0}),(0,N.jsx)(E,{type:n.valueType,defaultValue:n.defaultValue})]})}function E(e){let{type:t,defaultValue:n}=e;if(void 0===n)return null;const o=JSON.stringify(n,null,2);if((0,k.jn)(t))switch(typeof n){case"string":return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(W,{children:" = "}),(0,N.jsx)(U,{children:o})]});case"number":return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(W,{children:" = "}),(0,N.jsx)(q,{children:o}),";"]});default:return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(W,{children:" = "}),(0,N.jsx)(Q,{children:o})]})}return(0,N.jsx)(G,{children:o})}function M(e){let{type:t}=e;return(0,N.jsx)($,{children:t.name})}function O(e){let{type:t,onClick:n}=e;if("value-type"===t.kind)return(0,N.jsxs)(N.Fragment,{children:[t.isList?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(P,{children:"["}),(0,N.jsx)(O,{type:t.type,onClick:n}),(0,N.jsx)(P,{children:"]"})]}):(0,N.jsx)(O,{type:t.type,onClick:n}),!t.isOptional&&(0,N.jsx)(W,{children:"!"})]});switch(t.typeKind){case"enum":return(0,N.jsx)(H,{children:(0,N.jsx)(_,{type:t,onClick:n})});case"input-object":return(0,N.jsx)(V,{children:(0,N.jsx)(_,{type:t,onClick:n})});case"scalar":return(0,N.jsx)(Y,{children:(0,N.jsx)(_,{type:t,onClick:n})});case"union":return(0,N.jsx)(X,{children:(0,N.jsx)(_,{type:t,onClick:n})});default:return(0,N.jsx)(G,{children:(0,N.jsx)(_,{type:t,onClick:n})})}}function _(e){let{type:t,onClick:n}=e;return n?(0,N.jsx)(z,{onClick:()=>n(t),children:t.name}):(0,N.jsx)(N.Fragment,{children:t.name})}const R=w.Ay.span(o||(o=(0,b.A)(["color:",";"])),C.lt.editor.defaultToken),D=w.Ay.span(r||(r=(0,b.A)(["color:",";"])),C.lt.editor.annotationToken),F=w.Ay.div(i||(i=(0,b.A)(["margin-left:8px;"]))),L=w.Ay.span(a||(a=(0,b.A)(["color:",";"])),C.lt.editor.defaultToken),P=w.Ay.span(s||(s=(0,b.A)(["color:",";"])),C.lt.editor.delimiterToken),K=w.Ay.span(l||(l=(0,b.A)(["color:",";"])),C.lt.editor.defaultToken),B=w.Ay.span(c||(c=(0,b.A)(["color:",";"])),C.lt.editor.delimiterToken),H=w.Ay.span(d||(d=(0,b.A)(["color:",";"])),C.lt.icons.enumIcon),V=w.Ay.span(u||(u=(0,b.A)(["color:",";"])),C.lt.icons.inputObjectIcon),Y=w.Ay.span(p||(p=(0,b.A)(["color:",";"])),C.lt.editor.keywordToken),X=w.Ay.span(h||(h=(0,b.A)(["color:",";"])),C.lt.icons.unionIcon),G=w.Ay.span(x||(x=(0,b.A)(["color:",";"])),C.lt.editor.typeToken),$=w.Ay.span(m||(m=(0,b.A)(["color:",";"])),C.lt.editor.keyToken),W=w.Ay.span(f||(f=(0,b.A)(["color:",";"])),C.lt.editor.operatorToken),U=w.Ay.span(g||(g=(0,b.A)(["color:",";"])),C.lt.editor.stringToken),q=w.Ay.span(j||(j=(0,b.A)(["color:",";"])),C.lt.editor.numberToken),Q=w.Ay.span(v||(v=(0,b.A)(["color:",";"])),C.lt.editor.keywordToken),z=w.Ay.a(y||(y=(0,b.A)(["cursor:pointer;text-decoration:underline;:hover{text-decoration:none;}"])))}}]);
1
+ "use strict";(self.webpackChunk_chillicream_nitro=self.webpackChunk_chillicream_nitro||[]).push([[90],{14090:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Jt});var o=n(67315),r=n(6730),i=n(40821),a=n(9950),s=(n(62316),n(36022),n(53501),n(75885),n(23328)),l=n(17669),c=n(69649),d=n(88803),u=n(89989),p=n(15209),h=n(23845),x=n(69529),m=n(30628),f=n(97353),g=n(50514),j=n(64381),v=n(47594),y=n(10119),b=n(76884);async function C(e,t,n){if(null===e||void 0===e||!e.treeModel)return;const o={kind:y.$e.OPERATION,astNode:{kind:x.xs.OPERATION_DEFINITION,operationType:n,location:[0,0],selectionSet:(0,b.wD)()},type:t,typeName:t.name};return e.collapseAll(),e.treeModel.triggerCreate({name:"",checkable:!1,expandable:!1,renamable:!0,metadata:o})}var k=n(44414);function w(){const{Menu:e,MenuItem:t,closeMenu:n,toggleMenu:r,status$:i}=(0,v.b)(),s=(0,o.gxC)(),l=(0,o.zKO)(),d=(0,o.H1s)(s),u=(0,v.CH)(),p=(0,a.useCallback)((()=>{null!==d&&void 0!==d&&d.queryType&&C(d,d.queryType,x.S5.QUERY),n()}),[d,n]),h=(0,a.useCallback)((()=>{null!==d&&void 0!==d&&d.mutationType&&C(d,d.mutationType,x.S5.MUTATION),n()}),[d,n]),m=(0,a.useCallback)((()=>{null!==d&&void 0!==d&&d.subscriptionType&&C(d,d.subscriptionType,x.S5.SUBSCRIPTION),n()}),[d,n]);return(0,a.useEffect)((()=>i.subscribe(u)),[i,u]),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(j.pG,{disabled:!l.exists,tooltip:i.value()?void 0:"New Operation",onClick:r,children:(0,k.jsx)(c.RE,{})}),(0,k.jsxs)(e,{children:[(0,k.jsx)(t,{onClick:p,children:"New Query"}),l.hasMutationType&&(0,k.jsx)(t,{onClick:h,children:"New Mutation"}),l.hasSubscriptionType&&(0,k.jsx)(t,{onClick:m,children:"New Subscription"})]})]})}function N(){const e=(0,o.gxC)(),t=(0,o.H1s)(e),[n,r]=function(){const{Menu:e,MenuItem:t,MenuSeparator:n,openMenu:r,closeMenu:i}=(0,v.EF)();return[(0,a.useCallback)((function(r){let{builderModel:s}=r;const l=(0,o.zKO)(),c=(0,a.useCallback)((()=>{null!==s&&void 0!==s&&s.queryType&&C(s,s.queryType,x.S5.QUERY),i()}),[s]),d=(0,a.useCallback)((()=>{null!==s&&void 0!==s&&s.mutationType&&C(s,s.mutationType,x.S5.MUTATION),i()}),[s]),u=(0,a.useCallback)((()=>{null!==s&&void 0!==s&&s.subscriptionType&&C(s,s.subscriptionType,x.S5.SUBSCRIPTION),i()}),[s]),p=(0,a.useCallback)((()=>{null===s||void 0===s||s.collapseAll(),i()}),[s]);return(0,k.jsxs)(e,{children:[(0,k.jsx)(t,{onClick:c,children:"New Query"}),l.hasMutationType&&(0,k.jsx)(t,{onClick:d,children:"New Mutation"}),l.hasSubscriptionType&&(0,k.jsx)(t,{onClick:u,children:"New Subscription"}),(0,k.jsx)(n,{}),(0,k.jsx)(t,{onClick:p,children:"Collapse All"})]})}),[e,t,n,i]),r]}(),i=(0,a.useRef)([]),s=(0,a.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),r(e)}),[r]),l=(0,a.useCallback)(((e,n)=>{n.selected||(n.model.selectedNodes.forEach((e=>{e.selected=!1})),n.toggleSelected()),n.expanded||n.toggleExpanded(),t&&function(e,t){const n=(0,o.W09)();if(n){const o=(0,b.$V)(e,t);o&&(n.setPosition(o),n.revealPositionInCenterIfOutsideViewport(o))}}(t,n)}),[t]),c=(0,a.useCallback)((async e=>{const n=(0,o.W09)();if(!n)return;const r=n.getModel();return r&&t&&(0,y.uN)(e.metadata)?(e.metadata.astNode.name=(0,m.Oj)((0,m.zI)(x.Yp.NAME,e.name,0,0,0,0,0,0)),await A(t,n,r,e.metadata.astNode),void window.setTimeout((()=>{(0,b.jm)(t,new g.Position(1,1))}),h.tx)):void 0}),[t]),d=(0,a.useCallback)((e=>{const n=e.subscribeFor((async e=>{if(t)for(const n of e)if(n.node)switch(n.kind){case"checked":await I(t,n.node);break;case"unchecked":M(t,n.node);break;case"created":c(n.node)}}),"checked","unchecked","created");i.current.push(n)}),[t,e,c]);return(0,a.useEffect)((()=>{const e=i.current;return()=>{let t;for(;t=e.pop();)t()}}),[t]),t?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(p.PH,{id:h.Fk,model:t.treeModel,itemHeight:p._Y,emptyContent:(0,k.jsx)(S,{}),onInitialized:d,onContextMenu:s,children:e=>(0,k.jsx)(p.nF,{id:e.id,depth:e.depth,name:e.name,path:e.path,checkable:e.checkable,checked:e.checked,expandable:e.expandable,expanded:e.expanded,node:e,onClick:l,renderIcon:O,renderName:_})}),(0,k.jsx)(n,{builderModel:t})]}):null}function S(){const e=(0,o.zKO)(),t=(0,o.$nk)(),n=(0,o.DMK)(e.endpoint);return t?(0,k.jsx)(l.$M,{}):n?(0,k.jsx)(l.jc,{}):null!==e&&void 0!==e&&e.exists?(0,k.jsx)(l.HY,{title:"No Operations",icon:(0,k.jsx)(c.Lq,{inheritColor:!0})}):(0,k.jsx)(l.pu,{})}async function A(e,t,n,o){n.pushStackElement(),n.pushEditOperations(null,[{range:{startColumn:1,startLineNumber:1,endColumn:1,endLineNumber:1},text:(0,x.yy)(o)+(n.getValueLength()?"\n\n":"")}],(()=>null)),await e.updateAST(n.getValue()),t.setPosition(new g.Position(1,1))}async function T(e,t,n,o,r){const i=(0,x.g$)(e.documentAST.tokens,o.location),a=i.startToken.start,s=i.endToken.end;n.pushStackElement(),n.pushEditOperations(null,[{range:{startColumn:a.column,startLineNumber:a.line,endColumn:s.column,endLineNumber:s.line},text:(0,x.yy)(o)}],(()=>null)),await e.updateAST(n.getValue());const l=void 0===r?a:e.documentAST.tokens[r].end;t.setPosition(new g.Position(l.line,l.column))}async function I(e,t){const n=e.schemaEndpoint,r=(0,o.W09)();if(!n||!r)return;const i=r.getModel();if(i){if((0,y.UW)(t.metadata)){var a;const o=null!==(a=await s.gA.getFields(n,t.metadata.typeName))&&void 0!==a?a:[],l=(0,b.SM)(t),c={kind:x.xs.OPERATION_DEFINITION,location:[0,0],operationType:l,selectionSet:(0,b.wD)()};return H(c,o),void await A(e,r,i,c)}if((0,y.XC)(t.metadata)){const[o,a]=Y(t),l="enum"===t.metadata.unwrappedValueType.typeKind||"scalar"===t.metadata.unwrappedValueType.typeKind?void 0:await s.gA.getFields(n,t.metadata.unwrappedValueType.name);if(!a){const n=(0,b.SM)(t),a=B({kind:x.xs.OPERATION_DEFINITION,location:[0,0],operationType:n},!0,o,l);return void await A(e,r,i,a)}const c=(0,b.K5)(t);if(!c)return;const d=(0,x.YR)(c.astNode,{OperationDefinition:e=>B(e,a.path===c.treeNode.path,o,l),FragmentDefinition:e=>B(e,a.path===c.treeNode.path,o,l),InlineFragment:(e,t,n,r,i)=>{const s=(0,b.ou)(r,i,c.treeNode.path,(0,b.pK)(e));return B(e,a.path===s,o,l)},Field:(e,t,n,r,i)=>{const s=(0,b.ou)(r,i,c.treeNode.path,(0,b.MO)(e));return B(e,a.path===s,o,l)}});await T(e,r,i,d)}else if((0,y.e$)(t.metadata)||(0,y.YC)(t.metadata)){var l;const[n,o]=Y(t);if(!o)return;const a=(0,b.K5)(t);if(!a)return;const s=(0,y.e$)(t.metadata)?[t.metadata.argumentType]:null!==(l=t.metadata.fieldType.arguments)&&void 0!==l?l:[],c=(0,x.YR)(a.astNode,{OperationDefinition:e=>B(e,o.path===a.treeNode.path,n,void 0,s),FragmentDefinition:e=>B(e,o.path===a.treeNode.path,n,void 0,s),InlineFragment:(e,t,r,i,l)=>{const c=(0,b.ou)(i,l,a.treeNode.path,(0,b.pK)(e));return B(e,o.path===c,n,void 0,s)},Field:(e,t,r,i,l)=>{const c=(0,b.ou)(i,l,a.treeNode.path,(0,b.MO)(e));return B(e,o.path===c,n,void 0,s)},ArgumentDict:(e,t,r,i,l)=>{if((0,x.N5)(r)){const e=(0,b.ou)(i,l,a.treeNode.path,(0,b.XA)());return B(r,o.path===e,n,void 0,s).argumentDict}return e}});await T(e,r,i,c)}else if((0,y.WH)(t.metadata)){const[n,o]=Y(t);if(!o)return;const a=(0,b.K5)(t);if(!a)return;const s=[E(t)],l=(0,x.YR)(a.astNode,{OperationDefinition:e=>B(e,o.path===a.treeNode.path,n,void 0,s),FragmentDefinition:e=>B(e,o.path===a.treeNode.path,n,void 0,s),InlineFragment:(e,t,r,i,l)=>{const c=(0,b.ou)(i,l,a.treeNode.path,(0,b.pK)(e));return B(e,o.path===c,n,void 0,s)},Field:(e,t,r,i,l)=>{const c=(0,b.ou)(i,l,a.treeNode.path,(0,b.MO)(e));return B(e,o.path===c,n,void 0,s)},ArgumentDict:(e,t,r,i,l)=>{if((0,x.N5)(r)){const e=(0,b.ou)(i,l,a.treeNode.path,(0,b.XA)());return B(r,o.path===e,n,void 0,s).argumentDict}return e},Argument:(e,t,r,i,s)=>{if((0,x.SF)(e)){const t=e,r=(0,b.ou)(i,s,a.treeNode.path,(0,b.vK)(e));return o.path===r&&V(t,n),t}return e},ObjectField:(e,t,r,i,s)=>{if((0,x.cY)(e)){const t=e,r=(0,b.ou)(i,s,a.treeNode.path,(0,b.MO)(e));return o.path===r&&V(t,n),t}return e}});await T(e,r,i,l)}else if((0,y.SR)(t.metadata)){const[n,o]=Y(t);if(!o)return;const a=(0,b.K5)(t);if(!a)return;const s=(0,x.YR)(a.astNode,{OperationDefinition:e=>B(e,o.path===a.treeNode.path,n),FragmentDefinition:e=>B(e,o.path===a.treeNode.path,n),InlineFragment:(e,t,r,i,s)=>{const l=(0,b.ou)(i,s,a.treeNode.path,(0,b.pK)(e));return B(e,o.path===l,n)},Field:(e,t,r,i,s)=>{const l=(0,b.ou)(i,s,a.treeNode.path,(0,b.MO)(e));return B(e,o.path===l,n)}});await T(e,r,i,s)}else if((0,y._w)(t.metadata)){const[o,a]=Y(t);if(!a)return;const l=(0,b.K5)(t);if(!l)return;const c=await s.gA.getFields(n,t.metadata.type.name),d=(0,x.YR)(l.astNode,{OperationDefinition:e=>B(e,a.path===l.treeNode.path,o,c),FragmentDefinition:e=>B(e,a.path===l.treeNode.path,o,c),InlineFragment:(e,t,n,r,i)=>{const s=(0,b.ou)(r,i,l.treeNode.path,(0,b.pK)(e));return B(e,a.path===s,o,c)},Field:(e,t,n,r,i)=>{const s=(0,b.ou)(r,i,l.treeNode.path,(0,b.MO)(e));return B(e,a.path===s,o,c)}});await T(e,r,i,d)}else;}}function E(e){let t=e;for(;t=null===(n=t)||void 0===n?void 0:n.parent;){var n;if((0,y.e$)(t.metadata))return t.metadata.argumentType}throw new Error}async function M(e,t){const n=(0,o.W09)();if(!n)return;const r=n.getModel();if(r){var i,a;if((0,y.uN)(t.metadata)||(0,y.F2)(t.metadata))!function(e,t,n,o){const r=(0,x.g$)(e,o),i=r.endToken.index+1,a=e.length>i?e[i].start:r.endToken.end,s=r.startToken.start;t.setPosition(new g.Position(s.line,s.position)),n.pushStackElement(),n.pushEditOperations(null,[{range:{endColumn:a.column,endLineNumber:a.line,startColumn:s.column,startLineNumber:s.line},text:""}],(()=>null))}(e.documentAST.tokens,n,r,t.metadata.astNode.location),(null!==(i=t.parent)&&void 0!==i?i:t.model).remove(t);if((0,y.YC)(t.metadata)){var s;const o=(0,b.K5)(t);if(!o)return;let i;const a=(0,x.YR)(o.astNode,{ArgumentDict:(e,n,r,a,s)=>{const l=(0,b.ou)(a,s,o.treeNode.path,(0,b.XA)());return t.path===l?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await T(e,n,r,a,null!==(s=i)&&void 0!==s?s:void 0)}if((0,y.e$)(t.metadata))if((0,y.YC)(null===(a=t.parent)||void 0===a?void 0:a.metadata)&&0===t.parent.children.filter((e=>e.checked)).length)t.parent.checked=!1;else{const o=(0,b.K5)(t);if(!o)return;let i;const a=(0,x.YR)(o.astNode,{Argument:(e,n,r,a,s)=>{const l=(0,b.ou)(a,s,o.treeNode.path,(0,b.vK)(e));return t.path===l?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await T(e,n,r,a,i)}if((0,y.XC)(t.metadata)){const o=(0,b.K5)(t);if(!o)return;let i;const a=(0,x.YR)(o.astNode,{Field:(e,n,r,a,s)=>{const l=(0,b.ou)(a,s,o.treeNode.path,(0,b.MO)(e));return t.path===l?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await T(e,n,r,a,i)}if((0,y.WH)(t.metadata)){const o=(0,b.K5)(t);if(!o)return;let i;const a=(0,x.YR)(o.astNode,{ObjectField:(e,n,r,a,s)=>{const l=(0,b.ou)(a,s,o.treeNode.path,(0,b.MO)(e));return t.path===l?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await T(e,n,r,a,i)}if((0,y._w)(t.metadata)){const o=(0,b.K5)(t);if(!o)return;let i;const a=(0,x.YR)(o.astNode,{InlineFragment:(e,n,r,a,s)=>{const l=(0,b.ou)(a,s,o.treeNode.path,(0,b.pK)(e));return t.path===l?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await T(e,n,r,a,i)}if((0,y.SR)(t.metadata)){const o=(0,b.K5)(t);if(!o)return;let i;const a=(0,x.YR)(o.astNode,{FragmentSpread:(e,n,r,a,s)=>{const l=(0,b.ou)(a,s,o.treeNode.path,(0,b.Rr)(e));return t.path===l?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await T(e,n,r,a,i)}}}function O(e){return(0,y.XC)(e.metadata)?(0,k.jsx)(p.Zh,{children:(0,k.jsx)(c.UI,{})}):(0,y.e$)(e.metadata)||(0,y.YC)(e.metadata)||(0,y.WH)(e.metadata)?(0,k.jsx)(p.Zh,{children:(0,k.jsx)(c.zG,{})}):(0,k.jsx)(p.Zh,{children:(0,k.jsx)(c.Lq,{})})}function _(e){return(0,k.jsx)(u.$,{children:R(e)})}function R(e){return(0,y.e$)(e.metadata)&&e.metadata.argumentType?(0,k.jsx)(d.ef,{argument:e.metadata.argumentType}):((0,y.XC)(e.metadata)||(0,y.WH)(e.metadata))&&e.metadata.fieldType?(0,k.jsx)(d.D0,{type:e.metadata.fieldType,collapsed:!0}):(0,y._w)(e.metadata)?(0,k.jsx)(P,{typeName:e.metadata.type.name}):(0,y.SR)(e.metadata)?(0,k.jsx)(K,{fragmentName:e.metadata.fragmentName}):(0,y.uN)(e.metadata)?(0,k.jsx)(F,{operationName:e.name,typeName:e.metadata.typeName}):(0,y.F2)(e.metadata)?(0,k.jsx)(L,{fragmentName:e.name,typeName:e.metadata.typeName}):(0,k.jsx)(D,{name:e.name})}function D(e){let{name:t}=e;return(0,k.jsx)(d.a,{children:(0,k.jsx)(d.vs,{children:t})})}function F(e){let{operationName:t,typeName:n}=e;return(0,k.jsxs)(d.a,{children:[t!==b.Wo&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(d.tm,{children:t}),(0,k.jsx)(d.nG,{children:": "})]}),(0,k.jsx)(d.sc,{children:n})]})}function L(e){let{fragmentName:t,typeName:n}=e;return(0,k.jsx)(d.a,{children:t===b.Wo?(0,k.jsx)(d.tm,{children:"unnamed"}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(d.tm,{children:t===b.Wo?"unnamed":t}),(0,k.jsx)(d.nG,{children:": "}),(0,k.jsx)(d.sc,{children:n})]})})}function P(e){let{typeName:t}=e;return(0,k.jsxs)(d.a,{children:[(0,k.jsx)(d.nG,{children:"... "}),(0,k.jsx)(d.Ht,{children:"on "}),(0,k.jsx)(d.sc,{children:t})]})}function K(e){let{fragmentName:t}=e;return(0,k.jsxs)(d.a,{children:[(0,k.jsx)(d.nG,{children:"..."}),(0,k.jsx)(d.sc,{children:t})]})}function B(e,t,n,o,r){const i=e;return t&&(i.selectionSet||(i.selectionSet=(0,b.wD)()),function(e,t,n,o){let r,i=e,a=(0,x.N5)(e)||(0,x.cX)(e)?e:void 0;for(;r=t.shift();)if(!(0,y.UW)(r.metadata)){if((0,y.XC)(r.metadata))a=$(r.metadata.fieldType);else{if((0,y.SR)(r.metadata)){var s,l;a=U(r.metadata.fragmentName),null===(s=i)||void 0===s||null===(l=s.selectionSet)||void 0===l||l.selections.push(a);break}if((0,y._w)(r.metadata))a=q(r.metadata.type.name);else{if((0,y.YC)(r.metadata)&&(0,x.N5)(a)){a.argumentDict||(a.argumentDict=X());continue}if((0,y.e$)(r.metadata))break}}var c,d;if(a)null===(c=i)||void 0===c||null===(d=c.selectionSet)||void 0===d||d.selections.push(a);if(!a||(0,x.AY)(a))break;i=a}var u;(0,x.N5)(a)&&null!==o&&void 0!==o&&o.length&&(null===(u=a.argumentDict)||void 0===u||u.arguments.push(...o.map((e=>{const n=function(e){var t;const n={kind:x.xs.ARGUMENT,name:G(e.name),location:[0,0],value:null!==(t=e.defaultValue)&&void 0!==t?t:null};return n}(e);return V(n,t),n}))));!(0,x.AY)(a)&&a&&null!==n&&void 0!==n&&n.length&&H(a,n)}(i,n,o,r)),i}function H(e,t){for(const o of t){const t=(0,f.TL)(o);var n;if("enum"===t.typeKind||"scalar"===t.typeKind)null===(n=e.selectionSet)||void 0===n||n.selections.push($(o))}}function V(e,t){let n,o,r=e;for(;n=t.shift();){var i;if((0,y.WH)(n.metadata))if(o=W(n.metadata.fieldType),o)(null===(i=r.value)||void 0===i?void 0:i.kind)===x.xs.OBJECT?r.value.fields.push(o):r.value={kind:x.xs.OBJECT,location:[0,0],closed:!0,fields:[o]},r=o}}function Y(e){const t=[];let n=e.parent;for(t.unshift(e);n;){if(n.checked)return[t,n];t.unshift(n),n=n.parent}return[t,n]}function X(){return{kind:x.xs.ARGUMENT_DICT,closed:!0,location:[0,0],arguments:[]}}function G(e){return(0,m.Oj)({kind:x.Yp.NAME,index:0,end:{column:0,line:0,position:0},start:{column:0,line:0,position:0},value:e})}function $(e){const t=(0,f.TL)(e);return{kind:x.xs.FIELD,location:[0,0],name:G(e.name),selectionSet:"enum"===t.typeKind||"scalar"===t.typeKind?void 0:(0,b.wD)()}}function W(e){return{kind:x.xs.OBJECT_FIELD,location:[0,0],name:G(e.name),value:{kind:x.xs.NULL,location:[0,0]}}}function U(e){return{kind:x.xs.FRAGMENT_SPREAD,location:[0,0],name:G(e)}}function q(e){return{kind:x.xs.INLINE_FRAGMENT,location:[0,0],typeCondition:{kind:x.xs.NAMED_TYPE,location:[0,0],name:G(e)},selectionSet:(0,b.wD)()}}n(67752);function Q(){const e=(0,o.gxC)(),t=(0,o.H1s)(e),n=(0,a.useCallback)((()=>{null===t||void 0===t||t.collapseAll()}),[t]);return(0,k.jsxs)(r.AW,{spacing:"right",children:[(0,k.jsx)(r.w,{children:"Builder"}),(0,k.jsx)(r.jB,{}),(0,k.jsxs)(j.e2,{children:[(0,k.jsx)(w,{}),(0,k.jsx)(j.pG,{tooltip:"Collapse Elements in Builder",onClick:n,children:(0,k.jsx)(c.AL,{})})]})]})}var z=n(77545),Z=n(66800);function J(){const e=(0,o.gxC)(),t=(0,o.nrs)(),n=(0,o._e)(),i=(0,o.XdC)(e),s=(0,o.w6G)(e),l=(0,a.useCallback)((o=>n(t||e,{headers:o})),[t,e,n]);return(0,k.jsx)(r.gN,{children:(0,k.jsx)(Z.Z,{children:(0,k.jsx)(z.L,{authHeaderValue:i,headers:s,onChange:l})})})}var ee=n(19045),te=n(23406),ne=n(66094),oe=n(53790);const re="operations";function ie(){const e=function(){const e=(0,o.gxC)(),t=(0,o.H1s)(e),n=function(e,t){const n=(0,o.cmd)(),r=(0,o.udK)(re,e),i=(0,o.m2y)(),s=(0,v.YQ)((async e=>{i(e),await(null===t||void 0===t?void 0:t.updateAST(e))}),[t,i]);return(0,a.useEffect)((()=>{function e(e){null!==r&&void 0!==r&&r.uri&&oe.F.setSchemaInfo(r.uri,e)}return e(n.value()),n.subscribe(e)}),[r,n]),(0,a.useEffect)((()=>{var e;let t;const n=null===r||void 0===r||null===(e=r.onDidChangeContent((()=>{r&&!r.isDisposed()&&(t=s(r.getValue()))})))||void 0===e?void 0:e.dispose;return()=>{var e;null===n||void 0===n||n(),null===(e=t)||void 0===e||e()}}),[r,s]),r}(e,t),r=(0,o.l3b)(),i=(0,a.useRef)(null),s=(0,a.useRef)(null),l=(0,o.o0S)(),c=(0,o.SK_)();return(0,a.useEffect)((()=>{const e=s.current,t=g.editor.create(e,{...ee.Ng,glyphMargin:!0});i.current=t;const n=o.Hk3.register(re,t);return(0,te.p$)(t),t.onKeyUp((e=>{e.altKey||e.ctrlKey||e.metaKey||!e.shiftKey||e.keyCode!==g.KeyCode.Digit8||t.trigger("editor","editor.action.triggerSuggest",{})})),t.onContextMenu((()=>(0,ee.iD)(e))),()=>{n(),i.current=null,t.dispose()}}),[]),(0,a.useEffect)((()=>{if(i.current&&(i.current.setModel(n),r&&requestAnimationFrame((()=>{var e;null===(e=i.current)||void 0===e||e.restoreViewState(r)})),e)){function o(n){if(t){const o=(0,b.vL)(t,n.position);if(o)if(t.activeOperationDefinition===o.astNode||(0,x.ML)(o.astNode))"mouse"!==n.source&&"keyboard"!==n.source||(0,b.jm)(t,n.position);else{if("mouse"===n.source||"keyboard"===n.source){const e=t.subscribeToActiveOperationChanged((()=>{e(),(0,b.jm)(t,n.position)}))}c(e,{activeOperation:o.index})}}a()}function a(){var t;const n=null===(t=i.current)||void 0===t?void 0:t.saveViewState();n&&c(e,{operationsEditorViewState:n})}const s=[g.editor.registerCommand("execute-operation",((t,n)=>{l(e,n)})),i.current.onDidFocusEditorText((()=>{c(e,{focusedElement:ne.W7C})})),i.current.onDidChangeCursorPosition(o),i.current.onDidChangeCursorSelection(a),i.current.onDidScrollChange(a)];return()=>{s.forEach((e=>{let{dispose:t}=e;return t()}))}}}),[e,n,t,r,l,c]),(0,v.fs)(re,s),s}();return(0,k.jsx)(r.nG,{ref:e})}var ae=n(69253);function se(){return(0,k.jsxs)(r.AW,{spacing:"right",children:[(0,k.jsx)(le,{}),(0,k.jsx)(r.jB,{}),(0,k.jsx)(ce,{}),(0,k.jsx)(de,{})]})}function le(){const e=(0,o.gxC)(),t=(0,o._Ji)(),n=(0,o.fV)(),r=(0,o.SK_)(),{Tabs:i,Tab:s,MoreTabs:l}=(0,v.NS)(),c=(0,a.useCallback)(((o,i)=>{r(e,{activeOperationsSettingsViewId:i,isOperationsSettingsPaneCollapsed:n===i&&!t})}),[e,n,t,r]);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(i,{value:!t&&n,"aria-label":"Operation Setting Sections",onChange:c,children:[(0,k.jsx)(s,{label:"GraphQL Variables",value:"variables"}),(0,k.jsx)(s,{label:"HTTP Headers",value:"http-headers"})]}),(0,k.jsx)(l,{})]})}function ce(){const e=(0,o.wZY)(),t=(0,o.EN5)(),{hasUploadType:n}=(0,o.zKO)(),r=(0,o.WAs)(),i=(0,ae.H)(),s=(0,a.useCallback)((async()=>{r&&i({workspaceId:r,parentId:e})}),[e,r,i]);return n?(0,k.jsx)(j.pG,{tooltip:"Add Files",disabled:!t,onClick:s,children:(0,k.jsx)(c.hM,{inheritColor:!0})}):null}function de(){const e=(0,o.gxC)(),t=(0,o._Ji)(),n=(0,o.SK_)(),r=(0,a.useCallback)((()=>{n(e,{isOperationsSettingsPaneCollapsed:!0})}),[e,n]),i=(0,a.useCallback)((()=>{n(e,{isOperationsSettingsPaneCollapsed:!1})}),[e,n]);return t?(0,k.jsx)(j.pG,{tooltip:"Expand",onClick:i,children:(0,k.jsx)(c.uv,{})}):(0,k.jsx)(j.pG,{tooltip:"Collapse",onClick:r,children:(0,k.jsx)(c.xr,{})})}n(93967),n(54913);var ue,pe,he=n(47885),xe=n(57528),me=n(49420),fe=n(13588),ge=n(69311);const je=(0,a.memo)((function(e){var t;let{selectedKey:n,operations:o,onSelectionChange:r}=e;const i=o.map(((e,t)=>{var n,o,r,i,a,s;let l,c;switch(e.type){case x.S5.MUTATION:l=(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(me.sM,{}),(0,k.jsx)(ye,{children:null!==(n=e.name)&&void 0!==n?n:"Unnamed Mutation"})]}),c="Mutation: ".concat(null!==(o=e.name)&&void 0!==o?o:"Unnamed Mutation");break;case x.S5.QUERY:l=(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(me.XK,{}),(0,k.jsx)(ye,{children:null!==(r=e.name)&&void 0!==r?r:"Unnamed Query"})]}),c="Query: ".concat(null!==(i=e.name)&&void 0!==i?i:"Unnamed Query");break;case x.S5.SUBSCRIPTION:l=(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(me.yU,{}),(0,k.jsx)(ye,{children:null!==(a=e.name)&&void 0!==a?a:"Unnamed Subscription"})]}),c="Subscription: ".concat(null!==(s=e.name)&&void 0!==s?s:"Unnamed Subscription");break;default:throw new Error('Type "'.concat(e.type,'" does not exist.'))}return{content:l,title:c,key:t,value:{activeOperation:t}}})),a=null!==(t=i.find((e=>e.value.activeOperation===n)))&&void 0!==t?t:i[0];return(0,k.jsx)(fe.L,{selected:a,options:i,onSelectionChange:r,children:e=>{let{content:t,title:n}=e;return(0,k.jsx)(ve,{variant:"text",endIcon:(0,k.jsx)(c.D3,{}),tooltip:n,children:t})}})})),ve=(0,ge.Ay)(j.Si)(ue||(ue=(0,xe.A)(["display:grid;grid-template-columns:auto 1fr auto;max-width:150px;"]))),ye=ge.Ay.div(pe||(pe=(0,xe.A)(["margin-left:7px;text-overflow:ellipsis;text-align:start;white-space:nowrap;flex:0 0 auto;"])));function be(){var e;const t=(0,o.gxC)(),n=(0,o.NXe)(),i=(0,o.Gkt)(t),s=(0,o.$nk)(),l=null!==(e=(0,o.NFP)())&&void 0!==e?e:0,d=(0,o.n2K)(),u=(0,o.o0S)(),p=(0,o.SK_)(),h=(0,a.useCallback)((()=>{var e,t;null===(e=(0,o.W09)())||void 0===e||null===(t=e.getAction("editor.action.formatDocument"))||void 0===t||t.run()}),[]),x=(0,a.useCallback)((()=>{i&&d(t)}),[t,i,d]),m=(0,a.useCallback)((()=>{i||u(t,l)}),[l,t,i,u]),f=(0,a.useCallback)((e=>{let{value:{activeOperation:r}}=e;if(p(t,{activeOperation:r}),void 0!==r){const e=n.at(r);e&&function(e){const t=(0,o.W09)();if(t){const n=new g.Position(e.location.startToken.start.line,e.location.startToken.start.column);n&&(t.setPosition(n),t.revealPositionNearTop(n))}}(e)}}),[t,n,p]);return(0,o.wkm)(o.bab.formatDocument,h,void 0,[h]),(0,o.wkm)(o.bab.toggleOperation,(()=>{i?d(t):u(t,l)}),void 0,[l,t,i,d,u]),(0,k.jsxs)(r.AW,{spacing:"right",children:[(0,k.jsx)(r.w,{children:"Request"}),(0,k.jsx)(r.jB,{}),(0,k.jsxs)(j.e2,{children:[(0,k.jsx)(j.pG,{tooltip:(0,o.WIA)(o.bab.formatDocument,"Format Document"),onClick:h,children:(0,k.jsx)(c.hb,{})}),n.length>1&&(0,k.jsx)(je,{selectedKey:l,operations:n,onSelectionChange:f}),i?(0,k.jsx)(j.Si,{color:"primary",startIcon:(0,k.jsx)(he.y,{colorSelector:e=>e.components.buttonPrimaryText}),tooltip:(0,o.WIA)(o.bab.toggleOperation,"Cancel Operation"),onClick:x,children:"Cancel"}):(0,k.jsx)(j.Si,{color:"primary",disabled:s,startIcon:(0,k.jsx)(c.yZ,{}),tooltip:(0,o.WIA)(o.bab.toggleOperation,"Run Operation"),onClick:m,children:"Run"})]})]})}n(32799);const Ce="variables";function ke(){return(0,k.jsx)(r.nG,{ref:we()})}function we(){const e=(0,o.gxC)(),t=function(e){const t=(0,o.udK)(Ce,e),n=(0,o.nVi)(),r=(0,v.YQ)(n,[n]);return(0,a.useEffect)((()=>{var e;let n;const o=null===t||void 0===t||null===(e=t.onDidChangeContent((()=>{t.isDisposed()||(n=r(t.getValue()))})))||void 0===e?void 0:e.dispose;return()=>{var e;null===o||void 0===o||o(),null===(e=n)||void 0===e||e()}}),[t,r]),(0,a.useEffect)((()=>{let e=[];return g.editor.onDidChangeMarkers((n=>{n.forEach((n=>{if(n.toString()===(null===t||void 0===t?void 0:t.uri.toString())){const o=g.editor.getModelMarkers({owner:"json",resource:n});if(t.isDisposed())return;e=t.deltaDecorations(e,o.reduce(((e,t)=>(t.severity!==g.MarkerSeverity.Error&&t.severity!==g.MarkerSeverity.Warning||e.push({range:new g.Range(t.startLineNumber,1,t.startLineNumber,1),options:{glyphMarginClassName:t.severity===g.MarkerSeverity.Error?"codicon-error":"codicon-warning"}}),e)),[]))}}))})).dispose}),[t]),t}(e),n=(0,o.sKH)(),r=(0,a.useRef)(null),i=(0,a.useRef)(null),s=(0,o.SK_)();return(0,a.useEffect)((()=>{const e=i.current,t=g.editor.create(e,{...ee.Ng,glyphMargin:!0});r.current=t;const n=o.Hk3.register(Ce,t);return(0,te.p$)(t),t.onContextMenu((()=>(0,ee.iD)(e))),()=>{n(),r.current=null,t.dispose()}}),[]),(0,a.useEffect)((()=>{if(r.current&&(r.current.setModel(t),n&&requestAnimationFrame((()=>{var e;null===(e=r.current)||void 0===e||e.restoreViewState(n)})),e)){function o(){var t;const n=null===(t=r.current)||void 0===t?void 0:t.saveViewState();n&&s(e,{variablesEditorViewState:n})}const i=[r.current.onDidFocusEditorText((()=>{s(e,{focusedElement:ne.r_W})})),r.current.onDidChangeCursorPosition(o),r.current.onDidChangeCursorSelection(o),r.current.onDidScrollChange(o)];return()=>{i.forEach((e=>{let{dispose:t}=e;return t()}))}}}),[e,t,n,s]),(0,v.fs)(Ce,i),i}function Ne(){const e=(0,o.gxC)(),t=(0,o.HyM)(),n=(0,a.useRef)(t.value()),s=(0,o.KRs)(),l=(0,a.useRef)(null),c=(0,o.SK_)(),d=(0,a.useCallback)((t=>{n.current=t,c(e,{isOperationsSettingsPaneCollapsed:t})}),[e,c]),u=(0,a.useCallback)((t=>{c(e,{operationsSettingsPaneHeight:t})}),[e,c]);return(0,a.useEffect)((()=>t.subscribe((e=>{l.current&&n.current!==e&&(n.current=e,e?l.current.collapse():l.current.expand())}))),[t]),(0,k.jsxs)(r.wn,{children:[(0,k.jsx)(be,{}),(0,k.jsx)(r.Y2,{}),(0,k.jsx)(r.gN,{children:(0,k.jsx)(i.yr,{id:"request",ref:l,asideCollapsible:!0,asideCollapsed:n.current,asideHeight:s,asideMenu:(0,k.jsx)(Se,{}),asideMenuInBetween:!0,mainPane:"top",topContent:(0,k.jsx)(ie,{}),bottomContent:(0,k.jsx)(Ae,{}),onAsideCollapsedChange:d,onAsideHeightChange:u})})]})}const Se=(0,a.memo)((function(){return(0,k.jsx)(r.wn,{$separator:"top",children:(0,k.jsx)(se,{})})})),Ae=(0,a.memo)((function(){return(0,k.jsx)(r.wn,{$separator:"top",children:(0,k.jsx)(Te,{})})}));function Te(){switch((0,o.fV)()){case"http-headers":return(0,k.jsx)(J,{});case"http-settings":return null;case"variables":return(0,k.jsx)(ke,{})}}const Ie="response";function Ee(){return(0,k.jsx)(r.nG,{ref:Me()})}function Me(){const e=(0,o.gxC)(),t=(0,o.yoR)(),n=(0,o.BIB)(e),r=(0,a.useRef)(null),i=(0,te.bu)((()=>g.editor.createModel(Oe(n.value()),"json"))),s=(0,o.SK_)(),l=(0,v.YQ)((t=>{const n=t.saveViewState();n&&s(e,{responseEditorViewState:n})}),[e,s]);return(0,a.useEffect)((()=>{const a=r.current;if(!a)return;const c=g.editor.create(a,{...ee.Ng,readOnly:!0,model:i.current}),d=o.Hk3.register(Ie,c);t&&requestAnimationFrame((()=>{c.restoreViewState(t)})),c.onContextMenu((()=>(0,ee.iD)(a))),c.onDidChangeCursorPosition((()=>l(c))),c.onDidChangeCursorSelection((()=>l(c))),c.onDidScrollChange((()=>l(c))),c.onDidFocusEditorText((()=>{s(e,{focusedElement:ne.Pe7})})),i.current.setValue(Oe(n.value())),i.current.updateOptions(ee.x5);const u=n.subscribe((e=>{c.setScrollPosition({scrollLeft:0,scrollTop:0}),i.current.setValue(Oe(e))}));return()=>{u(),d(),c.dispose()}}),[n,e,i,t,l,s]),(0,v.fs)(Ie,r),r}function Oe(e){return e&&"string"!==typeof e?JSON.stringify(e,null,2):null!==e&&void 0!==e?e:""}var _e,Re=n(34877),De=n(5910),Fe=n(28511),Le=n(9912);function Pe(){const e=(0,o.gxC)(),t=(0,a.useRef)(null),n=(0,a.useRef)(null),r=(0,o.TO5)(e),i=(0,o.ujl)(e),s=(0,a.useRef)(!0),d=(0,a.useRef)(!1),u=(0,o.QRo)(),p=(0,o.bkB)(),h=(0,o.Sp8)(),x=(0,a.useRef)(r);x.current=r;const m=(0,a.useCallback)((t=>{s.current=!1,u(e,t.id,void 0)}),[e,u]),f=(0,a.useCallback)((e=>{p(e.id,void 0,!1)}),[p]),g=(0,a.useCallback)((t=>{s.current=!1,u(e,t.parentId,t.id)}),[e,u]),j=(0,a.useCallback)((e=>{p(e.parentId,void 0,!1)}),[p]),v=(0,a.useCallback)((t=>{h(e,t.scrollOffset)}),[e,h]),y=(0,a.useCallback)((e=>{t.current=e,d.current&&t.current&&x.current&&(t.current.scrollTo(i),d.current=!1)}),[i]);(0,a.useEffect)((()=>{d.current=!0}),[e]),(0,a.useEffect)((()=>{s.current=!0}),[null===r||void 0===r?void 0:r.activeChildId]),(0,a.useLayoutEffect)((()=>{var e;if(s.current&&null!==r&&void 0!==r&&r.activeId&&t.current&&null!==(e=x.current)&&void 0!==e&&e.entries.length){const e=x.current.activeId?x.current.entries.findIndex((e=>{var t;let{id:n}=e;return n===(null===(t=x.current)||void 0===t?void 0:t.activeId)})):-1;-1===e?t.current.scrollToItem(x.current.entries.length-1,"end"):t.current.scrollToItem(e,"end")}s.current=!0}),[null===r||void 0===r?void 0:r.activeId]);const b=(0,a.useCallback)(((e,t)=>"item-".concat(t.entries[e].id)),[]),C=(0,a.memo)((function(e){let{data:t,index:n,style:r}=e;const i=t.entries[n];return(0,o.qBC)(i)?(0,k.jsx)("div",{style:r,onClick:()=>g(i),onDoubleClick:()=>j(i),children:(0,k.jsx)(Be,{id:i.id,kind:i.kind,active:i.id===t.activeChildId&&i.parentId===t.activeId,last:i.last,duration:i.duration,index:i.index,success:i.success,received:i.received})},"entry-".concat(i.id)):(0,k.jsx)("div",{style:r,onClick:()=>m(i),onDoubleClick:()=>f(i),children:(0,k.jsx)(Ke,{id:i.id,documentId:t.documentId,duration:i.duration,operationName:i.operationName,operationStatus:i.operationStatus,operationType:i.operationType,pending:i.pending,active:i.id===t.activeId,started:i.started,expandable:i.expandable,expanded:i.expanded})},"entry-".concat(i.id))}),Le.t7);return null!==r&&void 0!==r&&r.entries.length?(0,k.jsx)(De.d,{innerListRef:y,scrollbarRef:n,itemCount:r.entries.length,itemData:r,itemKey:b,itemSize:Re.lh,tabIndex:-1,onScrollVirtualList:v,children:C}):(0,k.jsx)(l.HY,{title:"No Responses",icon:(0,k.jsx)(c.mo,{})})}const Ke=(0,a.memo)((function(e){let{id:t,documentId:n,active:o,duration:r,operationName:i,operationStatus:a,operationType:s,pending:l,started:c,expandable:d,expanded:u}=e;return(0,k.jsxs)(Re.St,{className:o?"active":void 0,children:[(0,k.jsx)(He,{documentId:n,resultId:t,active:o,pending:l,expandable:d,expanded:u}),(0,k.jsx)(Ve,{operationStatus:a}),(0,k.jsx)(Re.dg,{children:s===x.S5.MUTATION?(0,k.jsx)(me.sM,{title:"Mutation"}):s===x.S5.SUBSCRIPTION?(0,k.jsx)(me.yU,{title:"Subscription"}):(0,k.jsx)(me.XK,{title:"Query"})}),(0,k.jsx)(Re.hE,{children:i||s}),(0,k.jsx)(Re.gX,{children:(0,Fe.n$)(c)}),(0,k.jsx)(Re.G3,{children:(0,te.Ds)(r)})]})})),Be=(0,a.memo)((function(e){let{active:t,last:n,duration:o,kind:r,index:i,success:a,received:s}=e;return(0,k.jsxs)(Re.St,{className:t?"active":void 0,children:[(0,k.jsx)(Re.dg,{children:n?t?(0,k.jsx)(c.BB,{}):(0,k.jsx)(c.Dv,{}):t?(0,k.jsx)(c.XJ,{}):(0,k.jsx)(c.Z5,{})}),(0,k.jsx)(Ye,{success:a}),(0,k.jsx)(Re.dg,{children:(0,k.jsx)(c.b1,{})}),(0,k.jsxs)(Re.hE,{children:["event"===r?"Event":"Patch"," ",i+1]}),(0,k.jsx)(Re.gX,{children:(0,Fe.n$)(s)}),(0,k.jsx)(Re.G3,{children:(0,te.Ds)(o)})]})}));function He(e){let{documentId:t,resultId:n,active:r,pending:i,expandable:s,expanded:l}=e;const d=(0,o.QQs)(),u=(0,o.HjE)(),p=(0,a.useCallback)((e=>{s&&(e.stopPropagation(),l?d(t,n):u(t,n))}),[t,n,s,l,d,u]);return(0,k.jsx)(Re.dg,{onClick:p,children:i?(0,k.jsx)(he.y,{}):s?l?(0,k.jsx)(c.D3,{}):(0,k.jsx)(c.vK,{}):r?(0,k.jsx)(c.yf,{}):(0,k.jsx)(c.M1,{})})}function Ve(e){let{operationStatus:t}=e;switch(t){case"cancelled":return(0,k.jsx)(Xe,{children:(0,k.jsx)(c.tT,{})});case"failed":return(0,k.jsx)(Xe,{children:(0,k.jsx)(c.ik,{})});default:return(0,k.jsx)(Xe,{children:(0,k.jsx)(c.BK,{})})}}function Ye(e){let{success:t}=e;return t?(0,k.jsx)(Xe,{children:(0,k.jsx)(c.BK,{})}):(0,k.jsx)(Xe,{children:(0,k.jsx)(c.ik,{})})}const Xe=(0,ge.Ay)(Re.dg)(_e||(_e=(0,xe.A)(["margin-right:5px;"])));function Ge(){const e=(0,o.gxC)(),t=(0,o.MaU)(e),n=(0,o.bkB)(),i=(0,a.useCallback)((async()=>{t&&n(t,void 0,!1)}),[t,n]);return(0,k.jsxs)(r.AW,{spacing:"right",children:[(0,k.jsx)(r.w,{children:"Responses"}),(0,k.jsx)(r.jB,{}),t&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(j.pG,{tooltip:"Go to Log Entry",onClick:i,children:(0,k.jsx)(c.D0,{})}),(0,k.jsx)($e,{documentId:e})]}),(0,k.jsx)(We,{})]})}function $e(e){let{documentId:t}=e;const n=(0,o.Gkt)(t),r=(0,o.LTd)(),i=(0,a.useCallback)((()=>{r(t)}),[t,r]);return(0,k.jsx)(j.pG,{tooltip:"Clear Results",disabled:n,onClick:i,children:(0,k.jsx)(c.EO,{})})}function We(){const e=(0,o.gxC)(),t=(0,o.ILA)(),n=(0,o.SK_)(),r=(0,a.useCallback)((()=>{n(e,{isResponseEntriesPaneCollapsed:!0})}),[e,n]),i=(0,a.useCallback)((()=>{n(e,{isResponseEntriesPaneCollapsed:!1})}),[e,n]);return t?(0,k.jsx)(j.pG,{tooltip:"Expand",onClick:i,children:(0,k.jsx)(c.uv,{})}):(0,k.jsx)(j.pG,{tooltip:"Collapse",onClick:r,children:(0,k.jsx)(c.xr,{})})}n(5084);var Ue,qe,Qe,ze,Ze,Je,et,tt,nt,ot=n(8395),rt=n.n(ot),it=n(45098),at=n(32089),st=n(89614),lt=n(85668),ct=n(37630);n(88626);function dt(){const e=(0,o.gxC)(),t=(0,o.Ac3)(e),n=(0,o.GKj)(e);return t||n?null!==t&&void 0!==t&&t.queryPlan&&null!==t&&void 0!==t&&t.queryPlanHash?(0,k.jsx)(xt,{queryPlan:t.queryPlan,queryPlanHash:t.queryPlanHash}):null!==t&&void 0!==t&&t.queryPlanEnabled?(0,k.jsx)(l.HY,{title:"Fusion Query Plan Not Supported",icon:(0,k.jsx)(c.Z_,{}),children:(0,k.jsx)(l.pd,{children:"Looks like this GraphQL Server does not support Query Plans."})}):t&&!n?(0,k.jsx)(ut,{}):(0,k.jsx)(l.HY,{title:"No Fusion Query Plan Yet",icon:(0,k.jsx)(c.Z_,{}),children:(0,k.jsx)(l.pd,{children:"Run the GraphQL Operation to get the Query Plan."})}):(0,k.jsx)(ut,{})}function ut(){const e=(0,o.gxC)(),t=(0,o._5E)(e);return(0,k.jsxs)(l.HY,{title:"Fusion Query Plan",icon:(0,k.jsx)(c.Z_,{}),children:[(0,k.jsx)(l.pd,{children:"Enable Query Plan to get insights into how Fusion fetches data from Subgraphs."}),(0,k.jsx)(l.pd,{children:(0,k.jsx)(it.A,{color:"primary",onClick:()=>t(),children:"Enable Query Plan"})})]})}const pt=(0,a.createContext)({selectedVariable:null,setSelectedVariable:Fe.lQ,resetSelectedVariable:Fe.lQ});function ht(e){let{children:t}=e;const[n,o]=(0,a.useState)(null);return(0,k.jsx)(pt.Provider,{value:{selectedVariable:n,setSelectedVariable:o,resetSelectedVariable:()=>o(null)},children:t})}const xt=(0,a.memo)((function(e){let{queryPlan:t,queryPlanHash:n}=e;const[o,r]=(0,a.useState)([]),[i,s]=(l=t,c="LR",(0,a.useMemo)((()=>{const[e,t]=function(e,t){const n=[],o=[];function r(e,t,o){const r={id:e,width:12+("Compose"===t.type?72:152),height:"Compose"===t.type?40:60,position:{x:0,y:0},data:t,parentNode:o||void 0,extent:o?"parent":void 0,type:"Compose"===t.type?"compose":"custom",selectable:!1,focusable:!1,deletable:!1};return n.push(r),r}function i(e,n){const[r,i]=function(e){return"LR"===e?[st.yX.Right,st.yX.Left]:[st.yX.Bottom,st.yX.Top]}(t);o.push({id:(0,at.Ak)(),source:e.id,target:n.id,sourceHandle:r,targetHandle:i,type:"custom",animated:!0,focusable:!1,deletable:!1,markerEnd:{type:st.TG.ArrowClosed}})}function a(e,t,o){switch(t.type){case"Sequence":break;case"Parallel":case"Compose":case"Resolve":case"ResolveByKeyBatch":case"ResolveNode":{const a=n.at(-1),s=r(e,t,o),l=n.find((e=>e.id===o));a&&s&&a.parentNode===s.parentNode&&"Parallel"!==(null===l||void 0===l?void 0:l.data.type)&&i(a,s)}break;default:throw new Error("unknown type: "+t.type)}}function s(e){const t=[[null,e,null]];for(;t.length>0;){const[e,n,o]=t.shift();e&&a(e,n,o),"nodes"in n&&n.nodes.forEach((n=>{t.push([(0,at.Ak)(),n,e])}))}}return s(e.rootNode),[n,o]}(l,c),n=(new(rt().graphlib.Graph)).setGraph({rankdir:c,align:"UL",ranksep:64,nodesep:44}).setDefaultEdgeLabel((()=>({})));function o(e){return e.reduce(((e,t)=>{const{parentNode:n}=t;if(n){var o;const r=null!==(o=e.get(n))&&void 0!==o?o:[];r.push(t),e.set(n,r)}return e}),new Map)}e.forEach((e=>{let{id:t,width:o,height:r}=e;n.setNode(t,{width:null!==o&&void 0!==o?o:void 0,height:null!==r&&void 0!==r?r:void 0})})),t.forEach((e=>{let{source:t,target:o}=e;n.setEdge(t,o)})),rt().layout(n),e.forEach((e=>{const{x:t,y:o,width:r,height:i}=n.node(e.id),a=e.parentNode?0:20,s=e.parentNode?0:20;e.position={x:t+a-r/2,y:o+s-i/2}}));const r=o(e);return e.forEach((t=>{if(r.has(t.id)){const{x:o,y:i,width:a,height:s}=n.node(t.id),l=(0,st.Jo)(r.get(t.id)),c=20;e.push({id:(0,at.Ak)(),position:{x:o+c/2-a/2,y:i+c/2-s/2},data:void 0,style:{width:Math.max(a,l.x+l.width+c),height:Math.max(s,l.y+l.height+c)},zIndex:-1,type:"group",selectable:!1,focusable:!1,deletable:!1})}})),e.forEach((e=>{if(e.parentNode){const{x:t,y:o,width:r,height:i}=n.node(e.id),a=0,s=-44;e.position={x:t+a-r/2,y:o+s-i/2}}})),[e,t]}),[l,c]));var l,c;return(0,k.jsx)(ht,{children:(0,k.jsxs)(mt,{nodes:o.length?i.map((e=>o.some((t=>{var n,o,r;return(null===(n=e.data)||void 0===n?void 0:n.selectionSetId)===t||(null===(o=e.data)||void 0===o||null===(r=o.selectionSetIds)||void 0===r?void 0:r.includes(t))}))?{...e,selected:!0}:e)):i,edges:s,nodeTypes:Tt,edgeTypes:It,minZoom:.75,maxZoom:1.25,zoomOnScroll:!0,nodesDraggable:!1,proOptions:{hideAttribution:!0},defaultMarkerColor:ee.lt.graph.edge,fitView:!0,onNodeMouseEnter:(e,t)=>{var n,o;void 0!==(null===(n=t.data)||void 0===n?void 0:n.selectionSetId)?r([t.data.selectionSetId]):void 0!==(null===(o=t.data)||void 0===o?void 0:o.selectionSetIds)&&r(t.data.selectionSetIds)},onNodeMouseLeave:()=>{r([])},children:[t.state&&(0,k.jsx)(st.Zk,{position:"bottom-center",style:{bottom:20},children:(0,k.jsx)(vt,{children:Object.entries(t.state).map((e=>{let[t,n]=e;return(0,k.jsx)(kt,{name:t,value:n},t)}))})}),(0,k.jsx)(lt.V,{variant:lt._.Dots}),(0,k.jsx)(ct.H,{showInteractive:!1})]})},n)}));const mt=(0,ge.Ay)(st.Gc)(Ue||(Ue=(0,xe.A)(["--node-border-radius:10px;background-color:",";color:",";font-family:",";.react-flow__background > pattern > circle{fill:",";}.react-flow__viewport,.react-flow__nodes,.react-flow__node,.react-flow__pane{overflow:visible;}.react-flow__node-custom,.react-flow__node-compose{display:flex;align-items:center;justify-content:center;}.react-flow__node-group{border:1px dashed ",";border-radius:var(--node-border-radius);background-color:",";&.selected{border-color:",";}}.react-flow__handle{visibility:hidden;}.react-flow__edge-path{stroke:",";stroke-width:2;stroke-dasharray:5 5;}.react-flow__arrowhead{polyline{fill:",";stroke:",";}}.react-flow__edge.selected .react-flow__edge-path{stroke:",";}.react-flow__controls{border-radius:4px;}.react-flow__controls-button{border:1px solid ",";background-color:",";border-radius:4px;&:not(:last-of-type){border-bottom-right-radius:0;border-bottom-left-radius:0;}&:not(:first-of-type){border-top-right-radius:0;border-top-left-radius:0;margin-top:-1px;}&:hover{background-color:",";& > svg{fill:",";}}& > svg{fill:",";}}.react-flow__attribution{display:none;}"])),ee.lt.graph.background,ee.lt.graph.text,ee.F2,ee.lt.graph.backgroundPattern,ee.lt.graph.nodeBorder,ee.lt.graph.background,ee.lt.graph.nodeBorderActive,ee.lt.graph.edge,ee.lt.graph.edge,ee.lt.graph.edge,ee.lt.graph.edgeActive,ee.lt.components.toggleButtonBorder,ee.lt.components.toggleButton,ee.lt.components.toggleButtonHover,ee.lt.components.toggleButtonHoverText,ee.lt.components.toggleButtonText),ft=ge.Ay.div(qe||(qe=(0,xe.A)(["width:152px;height:36px;padding:6px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px;font-weight:500;background-color:",";border:1px solid ",";border:",";border-radius:var(--node-border-radius);box-shadow:",";overflow:visible;.selected &{border-color:",";}"])),ee.lt.graph.node,ee.lt.graph.nodeBorder,(e=>{let{$ghost:t}=e;return t?"none":""}),(e=>{let{$ghost:t}=e;return t?"none":""}),ee.lt.graph.nodeBorderActive),gt=ge.Ay.div(Qe||(Qe=(0,xe.A)(["-webkit-box-orient:vertical;-webkit-line-clamp:2;text-overflow:ellipsis;text-align:center;font-size:0.875rem;width:100%;margin:auto;"]))),jt=ge.Ay.div(ze||(ze=(0,xe.A)(["position:absolute;top:100%;min-width:100%;margin-top:12px;display:flex;justify-content:space-evenly;gap:8px;overflow:visible;"]))),vt=ge.Ay.ul(Ze||(Ze=(0,xe.A)(["display:flex;gap:5px;list-style:none;margin:0;padding:0;"]))),yt=ge.Ay.li(Je||(Je=(0,xe.A)(["display:flex;gap:6px;"]))),bt=ge.Ay.span(et||(et=(0,xe.A)(["display:inline-flex;align-items:center;justify-content:center;border-radius:12px;box-sizing:border-box;min-width:24px;height:24px;border:1px solid ",";font-size:0.875rem;color:",";background-color:",";pointer-events:all;user-select:none;cursor:default;"])),(e=>{let{$selected:t}=e;return t?ee.lt.graph.nodeBorderActive:ee.lt.graph.nodeBorder}),ee.lt.graph.text,ee.lt.graph.node),Ct=ge.Ay.span(tt||(tt=(0,xe.A)(["display:inline-flex;align-items:center;justify-content:flex-start;height:24px;font-size:0.875rem;user-select:none;"])));function kt(e){let{name:t,value:n}=e;const{selectedVariable:o,setSelectedVariable:r,resetSelectedVariable:i}=(0,a.useContext)(pt);return(0,k.jsxs)(yt,{children:[(0,k.jsx)(bt,{$selected:o===t,onMouseEnter:()=>{r(t)},onMouseLeave:i,children:t.replace("__fusion_exports__","")}),n&&(0,k.jsx)(Ct,{children:n})]})}function wt(e){let{type:t,subgraph:n}=e;switch(t){case"Resolve":return"Fetch from ".concat(n);case"ResolveNode":return"Fetch from ***";case"ResolveByKeyBatch":return"Batch from ".concat(n);default:return t}}const Nt=(0,a.memo)((function(e){let{data:t}=e;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(ft,{$ghost:"Parallel"===t.type,children:(0,k.jsx)(gt,{children:(0,k.jsx)(wt,{type:t.type,subgraph:t.subgraph})})}),(t.requires||t.provides)&&(0,k.jsxs)(jt,{children:[t.requires&&(0,k.jsxs)(vt,{children:[(0,k.jsx)(Et,{}),t.requires.map((e=>{let{variable:t}=e;return(0,k.jsx)(kt,{name:t},t)}))]}),t.provides&&(0,k.jsxs)(vt,{children:[t.provides.map((e=>{let{variable:t}=e;return(0,k.jsx)(kt,{name:t},t)})),(0,k.jsx)(Mt,{})]})]}),(0,k.jsx)(st.h7,{id:st.yX.Right,type:"source",position:st.yX.Right}),(0,k.jsx)(st.h7,{id:st.yX.Bottom,type:"source",position:st.yX.Bottom}),(0,k.jsx)(st.h7,{id:st.yX.Left,type:"target",position:st.yX.Left}),(0,k.jsx)(st.h7,{id:st.yX.Top,type:"target",position:st.yX.Top})]})})),St=ge.Ay.div(nt||(nt=(0,xe.A)(["width:84px;height:16px;padding:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid ",";font-weight:500;background-color:",";border-radius:30px;overflow:visible;"])),ee.lt.graph.nodeBorder,ee.lt.graph.node),At=(0,a.memo)((function(e){let{data:t}=e;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(St,{children:(0,k.jsx)(gt,{children:(0,k.jsx)(wt,{type:t.type,subgraph:t.subgraph})})}),(0,k.jsx)(st.h7,{id:st.yX.Right,type:"source",position:st.yX.Right}),(0,k.jsx)(st.h7,{id:st.yX.Bottom,type:"source",position:st.yX.Bottom}),(0,k.jsx)(st.h7,{id:st.yX.Left,type:"target",position:st.yX.Left}),(0,k.jsx)(st.h7,{id:st.yX.Top,type:"target",position:st.yX.Top})]})})),Tt={custom:Nt,compose:At},It={custom:(0,a.memo)((function(e){let{id:t,style:n,markerEnd:o,...r}=e;const[i]=(0,st.oN)({offset:10,borderRadius:40,...r});return(0,k.jsx)("path",{id:t,style:n,className:"react-flow__edge-path",d:i,markerEnd:o})}))};function Et(){return(0,k.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{fill:ee.lt.graph.text,transform:"rotate(-90deg)"},children:(0,k.jsx)("path",{d:"M 16.114 11.287 L 16.114 6.533 L 14.23 6.533 L 14.23 9.554 C 12.791 7.939 10.572 6.93 8.147 6.93 C 4.157 6.93 0.711 9.672 0.41 13.344 L 0.384 13.663 L2.27 13.663 L 2.297 13.395 C 2.565 10.787 5.064 8.713 8.147 8.713 C 10.33 8.713 12.223 9.754 13.236 11.287 L 9.681 11.287 L 9.681 13.069 L 14.91 13.069 L 16.119 11.911 L 16.119 11.287 L 16.114 11.287 Z"})})}function Mt(){return(0,k.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{fill:ee.lt.graph.text,transform:"rotate(90deg)"},children:(0,k.jsx)("path",{d:"M 16.114 11.287 L 16.114 6.533 L 14.23 6.533 L 14.23 9.554 C 12.791 7.939 10.572 6.93 8.147 6.93 C 4.157 6.93 0.711 9.672 0.41 13.344 L 0.384 13.663 L2.27 13.663 L 2.297 13.395 C 2.565 10.787 5.064 8.713 8.147 8.713 C 10.33 8.713 12.223 9.754 13.236 11.287 L 9.681 11.287 L 9.681 13.069 L 14.91 13.069 L 16.119 11.911 L 16.119 11.287 L 16.114 11.287 Z"})})}var Ot,_t,Rt=n(15231),Dt=n(39919),Ft=n(53065);function Lt(){return(0,k.jsxs)(r.AW,{spacing:"right",children:[(0,k.jsx)(r.w,{children:"Response"}),(0,k.jsx)(r.jB,{}),(0,k.jsx)(Kt,{}),(0,k.jsx)(Pt,{})]})}function Pt(){const e=(0,o.gxC)(),t=(0,o.l4V)(),n=(0,o.SK_)(),r=(0,a.useCallback)((t=>{n(e,{activeResponseViewId:t})}),[e,n]),i=(0,a.useCallback)(((e,t)=>{t&&r(t)}),[r]);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Ht,{}),(0,k.jsxs)(Rt.A,{exclusive:!0,size:"small",value:t,onChange:i,children:[(0,k.jsx)(Dt.A,{value:"json",children:(0,k.jsx)(Ft.A,{title:"JSON",placement:"bottom",children:(0,k.jsx)(c.qz,{})})}),(0,k.jsx)(Dt.A,{value:"query-plan",children:(0,k.jsx)(Ft.A,{title:"Query Plan",placement:"bottom",children:(0,k.jsx)(c.Z_,{})})})]})]})}function Kt(){var e,t,n;const i=(0,o.gxC)(),a=(0,o.tpw)(i),s=function(e){if(!e)return!1;return(0,o._mr)(e)?"cancelled"!==e.operationStatus&&!!e.statusCode&&(null===e||void 0===e?void 0:e.statusCode)<300:"succeeded"===e.operationStatus}(a),l=e=>{switch(e){case"cancelled":return"abort";case"failed":return"failure";default:return"success"}};return a?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(r.S1,{children:[(0,k.jsx)(r.Jn,{$variant:s?"status-succeeded":"status-failed",children:(0,k.jsx)(c.bz,{inheritColor:!0})}),(0,k.jsxs)(Bt,{children:[(0,k.jsx)(r.ld,{$variant:s?"status-succeeded":"status-failed",children:(0,o._mr)(a)?"cancelled"===a.operationStatus?l(a.operationStatus):null!==(e=a.statusCode)&&void 0!==e?e:l(a.operationStatus):l(a.operationStatus)}),(0,k.jsx)(r.ve,{children:"Status"})]})]}),(null===(t=a.children)||void 0===t?void 0:t.length)&&(0,k.jsx)(r.S1,{children:(0,k.jsxs)(Bt,{children:[(0,k.jsx)(r.ld,{children:null===(n=a.children)||void 0===n?void 0:n.length}),(0,k.jsx)(r.ve,{children:(0,o._mr)(a)?"Patches":"Events"})]})}),(0,k.jsx)(r.S1,{children:(0,k.jsxs)(Bt,{children:[(0,k.jsx)(r.ld,{children:(0,te.Ds)(a.duration)}),(0,k.jsx)(r.ve,{children:"Duration"})]})}),(0,k.jsx)(r.S1,{children:(0,k.jsxs)(Bt,{children:[(0,k.jsx)(r.ld,{children:(0,te.YC)(a.contentLength)}),(0,k.jsx)(r.ve,{children:"Size"})]})})]}):null}const Bt=(0,ge.Ay)(r.mA)(Ot||(Ot=(0,xe.A)(["min-width:52px;"]))),Ht=ge.Ay.div(_t||(_t=(0,xe.A)(["flex:0 0 6px;"])));function Vt(){const e=(0,o.gxC)(),t=(0,o.zpm)(),n=(0,a.useRef)(t.value()),s=(0,o.Ilp)(),l=(0,a.useRef)(null),c=(0,o.SK_)(),d=(0,a.useCallback)((t=>{n.current=t,c(e,{isResponseEntriesPaneCollapsed:t})}),[e,c]),u=(0,a.useCallback)((t=>{c(e,{responseEntriesPaneHeight:t})}),[e,c]);return(0,a.useEffect)((()=>t.subscribe((e=>{l.current&&n.current!==e&&(n.current=e,e?l.current.collapse():l.current.expand())}))),[t]),(0,k.jsx)(r.wn,{$separator:"left",children:(0,k.jsx)(i.yr,{id:"response",ref:l,asideCollapsible:!0,asideCollapsed:n.current,asideHeight:s,asideMenu:(0,k.jsx)(Gt,{}),asideMenuInBetween:!0,mainPane:"top",topContent:(0,k.jsx)(Yt,{}),bottomContent:(0,k.jsx)($t,{}),onAsideCollapsedChange:d,onAsideHeightChange:u})})}const Yt=(0,a.memo)((function(){return(0,k.jsxs)(r.wn,{children:[(0,k.jsx)(Lt,{}),(0,k.jsx)(r.Y2,{}),(0,k.jsx)(r.gN,{children:(0,k.jsx)(Xt,{})})]})}));function Xt(){switch((0,o.l4V)()){case"json":return(0,k.jsx)(Ee,{});case"query-plan":return(0,k.jsx)(dt,{})}}const Gt=(0,a.memo)((function(){return(0,k.jsx)(r.wn,{$separator:"top",children:(0,k.jsx)(Ge,{})})})),$t=(0,a.memo)((function(){return(0,k.jsx)(r.wn,{$separator:"top",children:(0,k.jsx)(r.gN,{children:(0,k.jsx)(Pe,{})})})}));var Wt,Ut;function qt(){const e=(0,o.htp)(),t=(0,o.AXs)(),n=(0,o.xUU)(),i=(0,a.useCallback)((e=>()=>n(e)),[n]);return(0,k.jsxs)(r.wn,{$fixedSize:36,$separator:"right",children:[(0,k.jsx)(Qt,{title:"Operation Builder",className:(s="builder",t||e!==s?void 0:"active"),onClick:i("builder"),children:(0,k.jsx)(c.Lq,{inheritColor:!0})}),(0,k.jsx)(Zt,{})]});var s}function Qt(e){let{title:t,children:n,className:o,disabled:r,onClick:i}=e;return(0,k.jsx)(Ft.A,{title:r?"":t,placement:"right",disableInteractive:!0,children:(0,k.jsx)(zt,{className:o,disabled:r,onClick:i,children:(0,k.jsx)("span",{className:"icon-container",children:n})})})}const zt=ge.Ay.button(Wt||(Wt=(0,xe.A)(["position:relative;display:flex;align-items:center;justify-content:center;width:36px;height:36px;transition:border-color 0.2s ease,opacity 0.2s ease;& > .icon-container{display:flex;align-items:center;justify-content:center;border-radius:4px;width:24px;height:24px;background-color:",";transition:background-color 0.2s ease;& > .icon{width:16px;height:16px;fill:",";transition:fill 0.2s ease;}}&:disabled,&:disabled:hover{opacity:0.5;& > .icon-container{background-color:",";& > .icon{fill:",";}}}&.active{width:36px;& > .icon-container{background-color:",";& > .icon{fill:",";}}&:hover{width:36px;& > .icon-container{background-color:",";& > .icon{fill:",";}}}}&:hover{& > .icon-container{background-color:",";& > .icon{fill:",";}}}"])),ee.lt.components.buttonIcon,ee.lt.components.buttonIconText,ee.lt.components.buttonIcon,ee.lt.components.buttonIconText,ee.lt.components.buttonIconHover,ee.lt.components.buttonIconHoverText,ee.lt.components.buttonIconHover,ee.lt.components.buttonIconHoverText,ee.lt.components.buttonIconHover,ee.lt.components.buttonIconHoverText),Zt=ge.Ay.div(Ut||(Ut=(0,xe.A)(["margin:auto;"]))),Jt=(0,a.memo)((function(){const e=(0,o.gxC)(),t=(0,o.AXs)(),n=(0,o.qQd)(),s=(0,o.gj1)(),l=(0,o.SK_)(),c=(0,a.useCallback)((t=>{l(e,{isOperationCompanionCollapsed:t})}),[e,l]);return(0,k.jsx)(i.YV,{id:"operation",asideWidth:n,mainPane:"right",asideCollapsed:t,asideCollapsible:!0,asideMenu:(0,k.jsx)(qt,{}),onAsideWidthChange:s,onAsideCollapsedChange:c,leftContent:(0,k.jsxs)(r.wn,{$separator:"right",children:[(0,k.jsx)(Q,{}),(0,k.jsx)(r.Y2,{}),!1,(0,k.jsx)(r.gN,{children:(0,k.jsx)(N,{})})]}),rightContent:(0,k.jsx)(r.wn,{children:(0,k.jsx)(r.gN,{children:(0,k.jsx)(nn,{})})})})})),en=(0,a.memo)(Ne),tn=(0,a.memo)(Vt),nn=(0,a.memo)((function(){const e=(0,o.ut_)(),t=(0,o.lD7)();return(0,k.jsx)(i.YV,{id:"document",asideWidth:t,leftContent:(0,k.jsx)(en,{}),mainPane:"left",relativeWidth:!0,rightContent:(0,k.jsx)(tn,{}),onAsideWidthChange:e})}))},88803:(e,t,n)=>{n.d(t,{D0:()=>I,Ht:()=>Q,Ix:()=>M,WL:()=>T,ZU:()=>O,a:()=>R,ef:()=>S,nG:()=>B,sc:()=>G,tm:()=>$,vs:()=>K});var o,r,i,a,s,l,c,d,u,p,h,x,m,f,g,j,v,y,b=n(57528),C=n(19045),k=n(97353),w=n(69311),N=n(44414);function S(e){let{argument:t,onClick:n}=e;return(0,N.jsxs)(L,{children:[(0,N.jsx)($,{children:t.name}),(0,N.jsx)(B,{children:": "}),(0,N.jsx)(O,{type:t.type,onClick:n?()=>n(t):void 0}),(0,N.jsx)(E,{type:t.type,defaultValue:t.defaultValue})]})}function A(e){let{arguments:t,onClick:n}=e;return null!==t&&void 0!==t&&t.length?(0,N.jsx)(F,{children:t.map((e=>(0,N.jsx)(S,{argument:e,onClick:n},e.coordinate)))}):null}function T(e){let{directive:{name:t,arguments:n},collapsed:o,onClick:r}=e;return(0,N.jsxs)(R,{children:[(0,N.jsxs)(D,{children:["@",t]}),(null===n||void 0===n?void 0:n.length)&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(P,{children:"("}),o?"...":(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("br",{}),(0,N.jsx)(A,{arguments:n,onClick:r})]}),(0,N.jsx)(P,{children:")"})]})]})}function I(e){var t;let{type:n,collapsed:o,onClick:r}=e;return(0,N.jsxs)(R,{children:[(0,N.jsx)($,{children:n.name}),(null===(t=n.arguments)||void 0===t?void 0:t.length)&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(P,{children:"("}),o?"...":(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("br",{}),(0,N.jsx)(A,{arguments:n.arguments,onClick:r})]}),(0,N.jsx)(P,{children:")"})]}),(0,N.jsx)(B,{children:": "}),(0,N.jsx)(O,{type:n.valueType,onClick:r?()=>r(n):void 0}),(0,N.jsx)(E,{type:n.valueType,defaultValue:n.defaultValue})]})}function E(e){let{type:t,defaultValue:n}=e;if(void 0===n)return null;const o=JSON.stringify(n,null,2);if((0,k.jn)(t))switch(typeof n){case"string":return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(W,{children:" = "}),(0,N.jsx)(U,{children:o})]});case"number":return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(W,{children:" = "}),(0,N.jsx)(q,{children:o}),";"]});default:return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(W,{children:" = "}),(0,N.jsx)(Q,{children:o})]})}return(0,N.jsx)(G,{children:o})}function M(e){let{type:t}=e;return(0,N.jsx)($,{children:t.name})}function O(e){let{type:t,onClick:n}=e;if("value-type"===t.kind)return(0,N.jsxs)(N.Fragment,{children:[t.isList?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(P,{children:"["}),(0,N.jsx)(O,{type:t.type,onClick:n}),(0,N.jsx)(P,{children:"]"})]}):(0,N.jsx)(O,{type:t.type,onClick:n}),!t.isOptional&&(0,N.jsx)(W,{children:"!"})]});switch(t.typeKind){case"enum":return(0,N.jsx)(H,{children:(0,N.jsx)(_,{type:t,onClick:n})});case"input-object":return(0,N.jsx)(V,{children:(0,N.jsx)(_,{type:t,onClick:n})});case"scalar":return(0,N.jsx)(Y,{children:(0,N.jsx)(_,{type:t,onClick:n})});case"union":return(0,N.jsx)(X,{children:(0,N.jsx)(_,{type:t,onClick:n})});default:return(0,N.jsx)(G,{children:(0,N.jsx)(_,{type:t,onClick:n})})}}function _(e){let{type:t,onClick:n}=e;return n?(0,N.jsx)(z,{onClick:()=>n(t),children:t.name}):(0,N.jsx)(N.Fragment,{children:t.name})}const R=w.Ay.span(o||(o=(0,b.A)(["color:",";"])),C.lt.editor.defaultToken),D=w.Ay.span(r||(r=(0,b.A)(["color:",";"])),C.lt.editor.annotationToken),F=w.Ay.div(i||(i=(0,b.A)(["margin-left:8px;"]))),L=w.Ay.span(a||(a=(0,b.A)(["color:",";"])),C.lt.editor.defaultToken),P=w.Ay.span(s||(s=(0,b.A)(["color:",";"])),C.lt.editor.delimiterToken),K=w.Ay.span(l||(l=(0,b.A)(["color:",";"])),C.lt.editor.defaultToken),B=w.Ay.span(c||(c=(0,b.A)(["color:",";"])),C.lt.editor.delimiterToken),H=w.Ay.span(d||(d=(0,b.A)(["color:",";"])),C.lt.icons.enumIcon),V=w.Ay.span(u||(u=(0,b.A)(["color:",";"])),C.lt.icons.inputObjectIcon),Y=w.Ay.span(p||(p=(0,b.A)(["color:",";"])),C.lt.editor.keywordToken),X=w.Ay.span(h||(h=(0,b.A)(["color:",";"])),C.lt.icons.unionIcon),G=w.Ay.span(x||(x=(0,b.A)(["color:",";"])),C.lt.editor.typeToken),$=w.Ay.span(m||(m=(0,b.A)(["color:",";"])),C.lt.editor.keyToken),W=w.Ay.span(f||(f=(0,b.A)(["color:",";"])),C.lt.editor.operatorToken),U=w.Ay.span(g||(g=(0,b.A)(["color:",";"])),C.lt.editor.stringToken),q=w.Ay.span(j||(j=(0,b.A)(["color:",";"])),C.lt.editor.numberToken),Q=w.Ay.span(v||(v=(0,b.A)(["color:",";"])),C.lt.editor.keywordToken),z=w.Ay.a(y||(y=(0,b.A)(["cursor:pointer;text-decoration:underline;:hover{text-decoration:none;}"])))}}]);