diff --git a/404.html b/404.html index 77c9d216..f8b9691f 100644 --- a/404.html +++ b/404.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/changelog/index.html b/changelog/index.html index 77c9d216..f8b9691f 100644 --- a/changelog/index.html +++ b/changelog/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components-en/index.html b/components-en/index.html index 77c9d216..f8b9691f 100644 --- a/components-en/index.html +++ b/components-en/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/editable-text/index.html b/components/editable-text/index.html index 77c9d216..f8b9691f 100644 --- a/components/editable-text/index.html +++ b/components/editable-text/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/empty-canvas/index.html b/components/empty-canvas/index.html index 77c9d216..f8b9691f 100644 --- a/components/empty-canvas/index.html +++ b/components/empty-canvas/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/full-screen/index.html b/components/full-screen/index.html index 77c9d216..f8b9691f 100644 --- a/components/full-screen/index.html +++ b/components/full-screen/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/icons-en/index.html b/components/icons-en/index.html index 77c9d216..f8b9691f 100644 --- a/components/icons-en/index.html +++ b/components/icons-en/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/icons/index.html b/components/icons/index.html index 77c9d216..f8b9691f 100644 --- a/components/icons/index.html +++ b/components/icons/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/illustration/index.html b/components/illustration/index.html index 77c9d216..f8b9691f 100644 --- a/components/illustration/index.html +++ b/components/illustration/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/import-files/index.html b/components/import-files/index.html index 77c9d216..f8b9691f 100644 --- a/components/import-files/index.html +++ b/components/import-files/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/importor/index.html b/components/importor/index.html index 77c9d216..f8b9691f 100644 --- a/components/importor/index.html +++ b/components/importor/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/index.html b/components/index.html index 77c9d216..f8b9691f 100644 --- a/components/index.html +++ b/components/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/layout/index.html b/components/layout/index.html index 77c9d216..f8b9691f 100644 --- a/components/layout/index.html +++ b/components/layout/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/logo/index.html b/components/logo/index.html index 77c9d216..f8b9691f 100644 --- a/components/logo/index.html +++ b/components/logo/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/properties-list-en/index.html b/components/properties-list-en/index.html index 77c9d216..f8b9691f 100644 --- a/components/properties-list-en/index.html +++ b/components/properties-list-en/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/properties-list/index.html b/components/properties-list/index.html index 77c9d216..f8b9691f 100644 --- a/components/properties-list/index.html +++ b/components/properties-list/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/provider/index.html b/components/provider/index.html index 77c9d216..f8b9691f 100644 --- a/components/provider/index.html +++ b/components/provider/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/query-statements/index.html b/components/query-statements/index.html index 77c9d216..f8b9691f 100644 --- a/components/query-statements/index.html +++ b/components/query-statements/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/resizable-panel/index.html b/components/resizable-panel/index.html index 77c9d216..f8b9691f 100644 --- a/components/resizable-panel/index.html +++ b/components/resizable-panel/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/segmented-tabs/index.html b/components/segmented-tabs/index.html index 77c9d216..f8b9691f 100644 --- a/components/segmented-tabs/index.html +++ b/components/segmented-tabs/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/side-tabs/index.html b/components/side-tabs/index.html index 77c9d216..f8b9691f 100644 --- a/components/side-tabs/index.html +++ b/components/side-tabs/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/table-card/index.html b/components/table-card/index.html index 77c9d216..f8b9691f 100644 --- a/components/table-card/index.html +++ b/components/table-card/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/toolbar/index.html b/components/toolbar/index.html index 77c9d216..f8b9691f 100644 --- a/components/toolbar/index.html +++ b/components/toolbar/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/typing-text/index.html b/components/typing-text/index.html index 77c9d216..f8b9691f 100644 --- a/components/typing-text/index.html +++ b/components/typing-text/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/utils/index.html b/components/utils/index.html index 77c9d216..f8b9691f 100644 --- a/components/utils/index.html +++ b/components/utils/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/data/index.html b/graphs/data/index.html index 77c9d216..f8b9691f 100644 --- a/graphs/data/index.html +++ b/graphs/data/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/index.html b/graphs/index.html index 77c9d216..f8b9691f 100644 --- a/graphs/index.html +++ b/graphs/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/layout/index.html b/graphs/layout/index.html index 77c9d216..f8b9691f 100644 --- a/graphs/layout/index.html +++ b/graphs/layout/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/online/index.html b/graphs/online/index.html index 77c9d216..f8b9691f 100644 --- a/graphs/online/index.html +++ b/graphs/online/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/performance-1/index.html b/graphs/performance-1/index.html index 77c9d216..f8b9691f 100644 --- a/graphs/performance-1/index.html +++ b/graphs/performance-1/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/performance-2/index.html b/graphs/performance-2/index.html index 77c9d216..f8b9691f 100644 --- a/graphs/performance-2/index.html +++ b/graphs/performance-2/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/performance-3/index.html b/graphs/performance-3/index.html index 77c9d216..f8b9691f 100644 --- a/graphs/performance-3/index.html +++ b/graphs/performance-3/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/provider/index.html b/graphs/provider/index.html index 77c9d216..f8b9691f 100644 --- a/graphs/provider/index.html +++ b/graphs/provider/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/quick/index.html b/graphs/quick/index.html index 77c9d216..f8b9691f 100644 --- a/graphs/quick/index.html +++ b/graphs/quick/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/style/index.html b/graphs/style/index.html index 77c9d216..f8b9691f 100644 --- a/graphs/style/index.html +++ b/graphs/style/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/index.html b/index.html index 77c9d216..f8b9691f 100644 --- a/index.html +++ b/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/meta__packages.f4c98f98.async.js b/meta__packages.09db9ae5.async.js similarity index 99% rename from meta__packages.f4c98f98.async.js rename to meta__packages.09db9ae5.async.js index c546c436..2c538679 100644 --- a/meta__packages.f4c98f98.async.js +++ b/meta__packages.09db9ae5.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[56],{23639:function(e,t,r){r.d(t,{Or:function(){return v},VP:function(){return Z},aq:function(){return fe}});var n=r(71909),o=r.n(n);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function f(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){f(i,n,o,a,c,"next",e)}function c(e){f(i,n,o,a,c,"throw",e)}a(void 0)}))}}function d(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function T(e,t){if(e){if("string"==typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(e,t):void 0}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function I(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){I(i,n,o,a,c,"next",e)}function c(e){I(i,n,o,a,c,"throw",e)}a(void 0)}))}}function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"admin",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"password";N(this,e),D(this,"driver",void 0),D(this,"uri",void 0);try{var o=new(w().driver.auth.PlainTextSaslAuthenticator)(r,n),i=new(w().driver.Client)(t,{traversalSource:"g",authenticator:o});this.uri=t,this.driver=i}catch(e){console.log(e)}}var t,r,n,o,i,a,c,u,s,l,f,p,d;return t=e,r=[{key:"connect",value:(d=_(C().mark((function e(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.driver){e.next=4;break}return e.next=3,this.driver.verifyConnectivity();case 3:return e.abrupt("return",!0);case 4:return e.abrupt("return",!1);case 5:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"getSession",value:(p=_(C().mark((function e(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.driver){e.next=2;break}return e.abrupt("return",this.driver);case 2:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"query",value:(f=_(C().mark((function e(t){var r,n,o,i,a,c,u,s,l,f,p,d,h,m,y,v,g,b;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[],e.prev=1,console.log("%c[Query] 查询语句","color:blue",t),e.next=5,this.driver.submit(t);case 5:r=e.sent,console.log("%c[Query] 查询结果","color:green",r),e.next=12;break;case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",{nodes:[],edges:[],raw:e.t0,mode:"error"});case 12:n="graph",o=[],i={},a={},c=new Set,u=P(r),e.prev=18,u.s();case 20:if((s=u.n()).done){e.next=71;break}if(!((l=s.value)instanceof w().structure.Vertex)){e.next=27;break}return e.next=25,this.handleVertexMapping(a,c,l);case 25:e.next=69;break;case 27:if(!(l instanceof w().structure.Edge)){e.next=32;break}return e.next=30,this.handleEdgeMapping(a,i,c,l);case 30:e.next=69;break;case 32:if(!(l instanceof w().structure.Path)){e.next=35;break}e.next=69;break;case 35:if(!this.isGSExpandPath(l)){e.next=62;break}f=P(l),e.prev=37,f.s();case 39:if((p=f.n()).done){e.next=50;break}if(!((d=p.value)instanceof w().structure.Vertex)){e.next=46;break}return e.next=44,this.handleVertexMapping(a,c,d);case 44:e.next=48;break;case 46:return e.next=48,this.handleEdgeMapping(a,i,c,d);case 48:e.next=39;break;case 50:e.next=55;break;case 52:e.prev=52,e.t1=e.catch(37),f.e(e.t1);case 55:return e.prev=55,f.f(),e.finish(55);case 58:return e.next=60,this.handleTableResult(o,l);case 60:e.next=69;break;case 62:if(n="table","number"!=typeof l&&"string"!=typeof l){e.next=67;break}o.push(l),e.next=69;break;case 67:return e.next=69,this.handleTableResult(o,l);case 69:e.next=20;break;case 71:e.next=76;break;case 73:e.prev=73,e.t2=e.catch(18),u.e(e.t2);case 76:return e.prev=76,u.f(),e.finish(76);case 79:if("graph"!==n){e.next=84;break}return e.next=82,this.queryNodesProperties(O(c));case 82:for(m in h=e.sent)m in a&&(a[m].properties=h[m]);case 84:if("graph"!==n){e.next=90;break}for(g in y=[],v=[],a)y.push(a[g]);for(b in i)v.push(i[b]);return e.abrupt("return",{nodes:y,edges:v,mode:n,table:o,raw:r});case 90:if("table"!==n){e.next=92;break}return e.abrupt("return",{nodes:[],edges:[],mode:n,table:o,raw:r});case 92:case"end":return e.stop()}}),e,this,[[1,9],[18,73,76,79],[37,52,55,58]])}))),function(e){return f.apply(this,arguments)})},{key:"isGSExpandPath",value:function(e){if(!e instanceof Array)return!1;try{var t,r=!0,n=!1,o=P(e);try{for(o.s();!(t=o.n()).done;){var i=t.value;r&&(r=i instanceof w().structure.Vertex||i instanceof w().structure.Edge),i instanceof w().structure.Edge&&(n=!0)}}catch(e){o.e(e)}finally{o.f()}return r&&n}catch(e){return!1}return!1}},{key:"jsonGraphData",value:(l=_(C().mark((function e(t){var r,n,o,i,a,c,u,s,l;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r={},n=t.id,o=t.label,i=t.properties,r.id="".concat(n),r.label=o,i){for(c in a={},i)(u=i[c])&&u[0]&&(a["".concat(c)]=u[0].value);r.properties=a}if(!(t instanceof w().structure.Edge)){e.next=13;break}return s=t.inV,l=t.outV,e.next=9,this.jsonGraphData(s);case 9:return r.inV=e.sent,e.next=12,this.jsonGraphData(l);case 12:r.outV=e.sent;case 13:return e.abrupt("return",r);case 14:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"handleVertexMapping",value:(s=_(C().mark((function e(t,r,n){var o;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.jsonGraphData(n);case 2:o=e.sent,t[o.id]=j(j({},o),{},{nodeType:o.label}),r.add(o.id);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return s.apply(this,arguments)})},{key:"handleEdgeMapping",value:(u=_(C().mark((function e(t,r,n,o){var i,a,c;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.jsonGraphData(o);case 2:i=e.sent,a=i.outV,c=i.inV,r[i.id]=j(j({},i),{},{edgeType:i.label,source:a.id,target:c.id}),t[a.id]=j(j({},a),{},{nodeType:a.label}),n.add(a.id),t[c.id]=j(j({},c),{},{nodeType:c.label}),n.add(c.id);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return u.apply(this,arguments)})},{key:"handleTableResult",value:(c=_(C().mark((function e(t,r){var n,o,i,a,c,u,s,l;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.entries(),o={},i=P(n),e.prev=3,i.s();case 5:if((a=i.n()).done){e.next=22;break}if(c=a.value,u=S(c,2),s=u[0],l=u[1],s instanceof w().process.EnumValue&&(s="~".concat(s.elementName)),"number"!=typeof l){e.next=13;break}o[s]=l,e.next=20;break;case 13:if(!(l instanceof w().structure.Vertex||l instanceof w().structure.Edge)){e.next=19;break}return e.next=16,this.jsonGraphData(l);case 16:o[s]=e.sent,e.next=20;break;case 19:o[s]=JSON.stringify(l);case 20:e.next=5;break;case 22:e.next=27;break;case 24:e.prev=24,e.t0=e.catch(3),i.e(e.t0);case 27:return e.prev=27,i.f(),e.finish(27);case 30:t.push(o);case 31:case"end":return e.stop()}}),e,this,[[3,24,27,30]])}))),function(e,t){return c.apply(this,arguments)})},{key:"queryNodesProperties",value:(a=_(C().mark((function e(t){var r,n,o,i,a,c,u,s,l,f,p,d,h,m,y;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r={},t&&0!==t.length){e.next=3;break}return e.abrupt("return",r);case 3:return n="g.V(".concat(t.join(","),").elementMap()"),e.next=6,this.driver.submit(n);case 6:o=e.sent,i=P(o);try{for(i.s();!(a=i.n()).done;){c=a.value,u=null,s=c.entries(),l={},f=P(s);try{for(f.s();!(p=f.n()).done;)d=p.value,h=S(d,2),m=h[0],y=h[1],m instanceof w().process.EnumValue?"id"===m.elementName&&(u=y):l[m]=y}catch(e){f.e(e)}finally{f.f()}r[u]=l}}catch(e){i.e(e)}finally{i.f()}return e.abrupt("return",r);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"queryEdgesProperties",value:(i=_(C().mark((function e(t){var r;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={},e.abrupt("return",r);case 2:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"close",value:(o=_(C().mark((function e(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.driver){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.driver.close();case 4:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})}],r&&A(t.prototype,r),n&&A(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Z=F;var G=r(26731);var M=function(e,t){return e.reduce((function(e,r){return e.some((function(e){return t(r,e)}))||e.push(r),e}),[])};var q=["_ID","_SRC","_DST","_LABEL"];function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function U(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function H(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return V(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return V(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function W(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function K(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){W(i,n,o,a,c,"next",e)}function c(e){W(i,n,o,a,c,"throw",e)}a(void 0)}))}}function $(e,t){for(var r=0;r() RETURN COUNT(r) AS edge_count;");case 7:return o=e.sent,i=parseInt(n.toString().split("\n")[1],10),a=parseInt(o.toString().split("\n")[1],10),c=[i,a],e.abrupt("return",c);case 12:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"loadFromIndexDB",value:(a=K(Q().mark((function e(){var t,r=this;return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=function(){return new Promise((function(e,t){r.FS.syncfs(!0,(function(r){r?(console.error("Error loading from indexdb: ",r),t(r)):(console.log("Load from indexdb successfully"),e())}))}))},e.next=3,t();case 3:console.log("finish load from indexdb");case 4:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)})},{key:"openDataset",value:(i=K(Q().mark((function e(){var t,r;return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(this.FS.readdir("/")),console.log("Open dataset ".concat(this.curDataset)),e.next=4,this.kuzuEngine.Database(this.curDataset,0,10,!1,!1,1073741824);case 4:return this.db=e.sent,e.next=7,this.kuzuEngine.Connection(this.db);case 7:return this.conn=e.sent,e.next=10,null===(t=this.conn)||void 0===t?void 0:t.execute("MATCH (n) RETURN count(n);");case 10:r=e.sent,console.log(r.toString());case 12:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"closeDataset",value:(o=K(Q().mark((function e(){return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("Close dataset ".concat(this.curDataset)),!this.conn){e.next=5;break}return e.next=4,this.conn.close();case 4:console.log("Connection closed.");case 5:if(!this.db){e.next=9;break}return e.next=8,this.db.close();case 8:console.log("Database closed.");case 9:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"writeBack",value:(n=K(Q().mark((function e(){var t=this;return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("start to write back"),e.abrupt("return",new Promise((function(e){t.FS.syncfs(!1,(function(t){t?(console.error("Error saving to indexdb: ",t),e({success:!1,message:t})):(console.log("Save to indexdb successfully"),e({success:!0,message:"Save to indexdb successfully"}))}))})));case 2:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"close",value:(r=K(Q().mark((function e(){return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.closeDataset();case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"cancel",value:(t=K(Q().mark((function e(){return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.closeDataset();case 2:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}();function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function oe(){oe=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new L(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};s(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(C([])));w&&w!==r&&n.call(w,a)&&(b=w);var E=g.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==ne(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function C(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ae(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ae(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r","<",">","<=",">="],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function","@keywords":"keyword","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[\+\-\*\/\^%]+/,"delimiter.operator"],[/[\!<>\?=\|&]/,"delimiter"]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}};var d=[].concat(["count","fold","sum","min","max","mean","group","groupCount"],["hasId","hasLabel","has","hasNot","is","where","not","dedup","order","limit","coin","sample","union"],["id","label","constant","valueMap","values","elementMap","select"]),h=["outV","inV","otherV","bothV"],m=["outE","inE","bothE","out","in","both"],y={};function v(e){return(e.match(/\r?\n/g)||[]).length+1}[].concat(h,["out","in","both"]).forEach((function(e){y[e]=[].concat(m,s(d))})),["outE","inE","bothE"].forEach((function(e){y[e]=[].concat(h,s(d))})),i.Mj.register({id:"gremlin"}),i.Mj.setMonarchTokensProvider("gremlin",p),i.Mj.setLanguageConfiguration("gremlin",f),i.Mj.registerCompletionItemProvider("gremlin",{triggerCharacters:["."],provideCompletionItems:function(e,t){var r,n=e.getLineContent(t.lineNumber).slice(0,t.column-1).trim(),o=function(e){var t=function(e){for(var t=1;t0?r[r.length-1]:"");return{suggestions:o}}});var g={cypher:"cypherTheme",gremlin:"GremlinTheme"},b=(0,n.forwardRef)((function(e,t){(0,o.useDynamicStyle)("\n.monaco-editor .view-overlays .current-line {\n background-color: transparent !important;\n}\n\n.monaco-editor .monaco-scrollable-element::-webkit-scrollbar {\n display: none;\n}\n\n.decorationsOverviewRuler {\n display: none !important;\n}\n\n.monaco-editor .view-overlays .current-line-exact {\n border: none !important;\n}\n\n.monaco-editor .scroll-decoration {\n box-shadow: none;\n}\n","cypher-editor-style");var r,a=e.value,c=e.language,u=void 0===c?"cypher":c,s=e.maxRows,l=void 0===s?10:s,f=e.minRows,p=void 0===f?1:f,d=e.onChangeContent,h=e.clear,m=e.onInit,y=d?0:v(a),b=(0,o.useStudioProvier)().isLight;return(0,n.useEffect)((function(){return t&&t.current&&(v(a)<=l&&(t.current.style.height=20*v(a)+"px"),r=i.j6.create(t.current,{language:"gremlin",value:a,theme:b?g[u]:"vs-dark",suggestLineHeight:20,automaticLayout:!0,minimap:{enabled:!1},fontSize:14,lineHeight:20,folding:!0,wordWrap:"on",scrollBeyondLastLine:!1,scrollBeyondLastColumn:0}),t.current.codeEditor=r,r.onDidChangeModelContent((function(){var e,n=r.getContentHeight(),o=null===(e=r.getModel())||void 0===e?void 0:e.getLineCount();n<=20*l&&(t.current.style.height=n+"px"),d&&d(o,r)})),m&&m(t.current)),function(){r.dispose()}}),[t,a,u,!b]),n.useEffect((function(){h&&t&&t.current&&t.current.codeEditor&&t.current.codeEditor.setValue("")}),[h]),n.createElement("div",{ref:t,style:{padding:"5px 0px",width:"100%",height:20*(p+y)+"px",border:b?"1px solid rgb(187, 190, 195)":"1px solid #434343",borderRadius:"6px"}})})),x=b},21050:function(e,t,r){r.r(t),r.d(t,{ConnectEndpoint:function(){return Lt},QueryStatement:function(){return qt},Statement:function(){return wt.default},default:function(){return Ut},sdk:function(){return Bt}});var n=r(50959),o=r(53531),i=r(31192),a=r(55736),c=r(56331),u=o.Z.useToken,s=function(e){var t=u().token,r=(0,a.qp)().store.welcome;if(r){var o=r.title,i=r.description;return n.createElement("div",{style:{margin:"12px",borderRadius:"8px",background:t.colorBgBase}},n.createElement(c.Z,{message:o,description:i,type:"info",closable:!0}))}return null},l=r(54016),f=r(84155),p=r(28541),d=function(e){var t=e.isDark,r=t?"#272727":"#E6E9EE";return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 915 866",fill:"none"},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M552.085 623.067C491.189 655.842 482.589 745.72 418.484 770.756C352.941 796.353 259.359 798.915 226.164 750.352C189.108 696.141 291.287 607.551 265.559 547.035C237.793 481.726 101.961 496.952 88.3682 426.238C76.2288 363.085 150.831 297.41 208.118 248.21C263.376 200.753 332.496 162.372 402.856 156.147C468.399 150.348 511.091 201.87 571.612 216.049C633.101 230.454 738.7 185.557 759.412 239.679C782.973 301.247 654.143 363.856 654.328 432.195C654.506 498.496 794.484 523.038 760.348 586.766C727.485 648.115 617.062 588.097 552.085 623.067Z",fill:t?"#272727":"#EEF1F6"}),n.createElement("circle",{cx:"595.876",cy:"255.218",r:"12.5406",transform:"rotate(30 595.876 255.218)",fill:r}),n.createElement("circle",{cx:"724.312",cy:"289.146",r:"12.5406",transform:"rotate(30 724.312 289.146)",fill:r}),n.createElement("circle",{cx:"735.006",cy:"235.789",r:"12.5406",transform:"rotate(30 735.006 235.789)",fill:r}),n.createElement("circle",{cx:"800.535",cy:"288.103",r:"12.5406",transform:"rotate(30 800.535 288.103)",fill:r}),n.createElement("circle",{cx:"613.406",cy:"199.774",r:"12.5406",transform:"rotate(30 613.406 199.774)",fill:r}),n.createElement("circle",{cx:"662.947",cy:"242.856",r:"12.5406",transform:"rotate(30 662.947 242.856)",fill:r}),n.createElement("circle",{cx:"722.216",cy:"420.273",r:"12.5406",transform:"rotate(30 722.216 420.273)",fill:r}),n.createElement("circle",{cx:"788.851",cy:"389.157",r:"12.5406",transform:"rotate(30 788.851 389.157)",fill:r}),n.createElement("line",{x1:"594.446",y1:"254.765",x2:"611.976",y2:"199.321",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"661.962",y1:"243.988",x2:"612.422",y2:"200.905",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"663.219",y1:"244.332",x2:"596.148",y2:"256.693",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"663.85",y1:"241.659",x2:"725.215",y2:"287.949",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"736.476",y1:"236.083",x2:"725.782",y2:"289.441",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"735.152",y1:"237.281",x2:"663.093",y2:"244.349",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"735.941",y1:"234.616",x2:"801.471",y2:"286.93",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"787.591",y1:"389.971",x2:"723.052",y2:"289.96",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"787.361",y1:"388.985",x2:"799.046",y2:"287.931",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"800.556",y1:"289.603",x2:"724.333",y2:"290.646",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"789.486",y1:"390.517",x2:"722.851",y2:"421.632",stroke:r,strokeWidth:"3"}),n.createElement("circle",{cx:"165.557",cy:"381.703",r:"16.9036",transform:"rotate(165 165.557 381.703)",fill:r}),n.createElement("circle",{cx:"131.703",cy:"474.871",r:"16.9036",transform:"rotate(165 131.703 474.871)",fill:r}),n.createElement("circle",{cx:"216.702",cy:"581.703",r:"16.9036",transform:"rotate(165 216.702 581.703)",fill:r}),n.createElement("line",{x1:"132.878",y1:"473.939",x2:"218.059",y2:"581.392",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"130.293",y1:"474.359",x2:"164.148",y2:"381.191",stroke:r,strokeWidth:"3"}),n.createElement("circle",{cx:"334",cy:"204",r:"7",fill:r}),n.createElement("circle",{cx:"361",cy:"152",r:"7",fill:r}),n.createElement("circle",{cx:"283",cy:"229",r:"7",fill:r}),n.createElement("circle",{cx:"385",cy:"219",r:"7",fill:r}),n.createElement("circle",{cx:"414",cy:"190",r:"7",fill:r}),n.createElement("line",{x1:"282.78",y1:"228.551",x2:"333.78",y2:"203.551",stroke:r}),n.createElement("line",{x1:"384.859",y1:"219.48",x2:"333.859",y2:"204.48",stroke:r}),n.createElement("line",{x1:"384.647",y1:"218.646",x2:"413.647",y2:"189.646",stroke:r}),n.createElement("line",{x1:"384.53",y1:"219.169",x2:"360.53",y2:"152.169",stroke:r}),n.createElement("line",{x1:"333.556",y1:"203.77",x2:"360.556",y2:"151.77",stroke:r}),n.createElement("ellipse",{cx:"553",cy:"673.5",rx:"25",ry:"24.5",fill:r}),n.createElement("circle",{cx:"786",cy:"553",r:"25",fill:r}),n.createElement("line",{x1:"551.872",y1:"671.669",x2:"785.082",y2:"551.223",stroke:r,strokeWidth:"4"}))},h=r(58002),m=function(e){var t=(0,h.useStudioProvier)().isLight;return n.createElement("div",{style:{fontSize:"14px",height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},n.createElement(d,{isDark:!t}),n.createElement(l.Z.Text,{type:"secondary",style:{position:"absolute"}},n.createElement(f.Z,{id:"You can write cypher or gremlin queries, and then click the {icon} button to query data",values:{icon:n.createElement(p.Z,null)}})))};function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&p.size0&&t.length===p.size,y=function(e){f((function(t){return q(q({},t),{},{checkedSet:e})}))},v=function(e,t){t?p.add(e):p.delete(e),y(p)};return 0==t.length&&c?n.createElement("div",{style:{padding:"120px 0px"}},n.createElement(P.Z,{imageStyle:{height:"80px"},description:n.createElement(l.Z.Text,{style:{fontSize:"12px"}},c)})):n.createElement(n.Fragment,null,n.createElement(T.Z,{vertical:!0,flex:1,style:{position:"relative",height:"100%"}},n.createElement("div",{style:q({position:"absolute",top:"-34px",right:"0px",zIndex:99},i)},d&&n.createElement(j.Z,{indeterminate:h,onChange:function(e){var r=e.target.checked?new Set(t.map((function(e){return e.id}))):new Set;y(r)},checked:m},n.createElement(L.ZP,{icon:n.createElement(C.Z,null),size:"small",type:"text",onClick:function(){o(R(p))}})),n.createElement(L.ZP,{icon:d?n.createElement(I.Z,null):n.createElement(_.Z,null),size:"small",type:"text",onClick:function(){f((function(e){return q(q({},e),{},{batch:!e.batch})}))}})),a?n.createElement(Q,{items:t,batch:d,checkedSet:p,onChange:v,onClick:r}):n.createElement("div",{style:Y.list},n.createElement(V,{items:t,batch:d,checkedSet:p,onChange:v,onClick:r}))))},K=r(15001),$=function(e){var t=e.children,r=e.title,i=o.Z.useToken().token;return n.createElement(T.Z,{vertical:!0,style:{height:"100%",overflow:"hidden",borderTop:"1px solid ".concat(i.colorBorder),marginTop:"-2px",marginLeft:"-4px",marginRight:"-8px"}},n.createElement(l.Z.Title,{level:5,style:{margin:"0px",flexBasis:"30px",padding:"12px"}},n.createElement(f.Z,{id:r})),n.createElement("div",{style:{height:"100%",overflow:"hidden",marginBottom:"8px"}},t))};function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function X(){X=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new L(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};s(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(C([])));w&&w!==r&&n.call(w,a)&&(b=w);var E=g.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==J(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function C(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function ee(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var te=function(e){var t=(0,a.qp)(),r=t.store,o=t.updateStore,i=r.savedStatements,c=e.deleteStatements,u=i.map((function(e){return e})),s=function(){var e,t=(e=X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c(t),o((function(e){e.savedStatements=e.savedStatements.filter((function(e){return-1===t.indexOf(e.id)}))}));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ee(i,n,o,a,c,"next",e)}function c(e){ee(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return n.createElement($,{title:"Saved"},n.createElement(W,{items:u,onClick:function(e){e.id;var t=e.script;o((function(e){e.globalScript=t,e.autoRun=!0}))},onDelete:s,placeholder:n.createElement(n.Fragment,null,n.createElement(f.Z,{id:"No saved query statements {br} You can click {icon} to save.",values:{icon:n.createElement(K.Z,null),br:n.createElement("br",null)}}))}))};function re(e){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(e)}function ne(e,t){for(var r=0;r(a:Task),(a)-[:Belong]->(t: Topic) RETURN t.category, COUNT(p)",desc:"找出每个主题下的论文数量"},{cypher:"MATCH (t: Topic)<-[:Belong]-(a:Task),\n (a)<-[:WorkOn]-(p:Paper)-[:Use]->(s:Solution),\n (s)-[:ApplyOn]->(ch:Challenge)\n WHERE t.category = $topic_name\n RETURN t.category, ch.challenge, COUNT(p)",desc:"检索特定主题下,每个挑战(Challenge)所应用的解决方案(Solution)中与论文(Paper)相关的数量"}],null,2),"\n\n任务2: 根据 Schema 结构和用户的输入,生成 Cypher 查询语句,用于图数据库查询\n").concat("\n注意要以JSON的格式返回结果:\nRight Cases:\nquerys1: 列举出鲁迅的一个别名可以吗?\nanswer1: \"match (:ENTITY{name:'鲁迅'})<--(h)-[:Relationship{name:'别名'}]->(q) return distinct q.name limit 1\"\n\nquerys2: 我们常用的301SH不锈钢带的硬度公差是多少,你知道吗? \nanswers2: \"match(p:ENTITY{name:'301SH不锈钢带'})-[:Relationship{name:'硬度公差'}]-> (q) return q.name\"\nWrong Cases:\nquerys: 12344加油这首歌真好听,你知道歌曲原唱是谁吗? answers: MATCH (a:Actor)-[:ACTED_IN]->(m:Movie) WHERE m.name = '12345加油' RETURN a.name\nquerys: 七宗梦是什么时候上映的? answers: MATCH (a:Actor)-[:ACTED_IN]->(m:Movie) WHERE m.name = '七宗梦' RETURN a.name LIMIT 30\n","\n\nInstructions:\nNote: Do not include any explanations or apologies in your responses.\nDo not respond to any questions that might ask anything else than for you to construct a Cypher statement.\nDo not include any text except the generated Cypher statement.\nYou must use the relaship or property shown in the schema!!! do not use other keys!!!\nYou must use the relaship or property shown in the schema!!! do not use other keys!!!\nYou must use the relaship or property shown in the schema!!! do not use other keys!!!\n你必须使用Sechema中出现的关键词!!!\n\n当前会话中图的 Schema 结构如下:\n\n{graphSchema}\n\n你需要根据用户的提问,自动切换到上述两个任务中,并且给出正确返回,让我们开始吧!\n\n");function ue(e,t){var r=function(e){return JSON.stringify(e,null,2)}(t);return e.replace(/\{graphSchema\}/g,r)}function se(e,t,r){return[t&&new ce({status:"success",role:"system",content:ue(t,r),timestamp:Date.now(),reserved:!0}),e&&new ce({status:"success",role:"assistant",content:e,timestamp:Date.now(),reserved:!0})].filter(Boolean)}var le=r(55216),fe=r(48722),pe=r(16889),de=r(31097),he=r(12423),me=r(25046);function ye(e){return function(e){if(Array.isArray(e))return ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ve(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(e,t){if(e){if("string"==typeof e)return ge(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ge(e,t):void 0}}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}(ye(e.matchAll(/```cypher\s*([\s\S]*?)\s*```/g)));try{for(o.s();!(t=o.n()).done;){var i=t.value,a=e.substring(n,i.index).trim();a&&r.push({type:"text",content:a});var c=i[1].trim();r.push({type:"cypher",content:c}),n=i.index+i[0].length}}catch(e){o.e(e)}finally{o.f()}var u=e.substring(n).trim();return u&&r.push({type:"text",content:u}),r}var xe=function(e){var t=e.style;return n.createElement("svg",{width:"41px",height:"62px",viewBox:"0 0 41 62",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",style:t},n.createElement("title",null,"logo image"),n.createElement("g",{id:"页面-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},n.createElement("g",{id:"Medium",transform:"translate(-332, -376)",fillRule:"nonzero"},n.createElement("g",{id:"编组",transform:"translate(332, 376)"},n.createElement("path",{d:"M20.9765256,25 L20.9743827,19.8935471 L22.5478011,18.78271 L26,16.3451158 L25.9983928,13 L18.4270199,18.1683792 C16.9071738,19.2057816 15.8019773,20.29689 15,21.3704617 L15,21.4778737 L20.9765256,25 Z",id:"路径",fill:"#2281F2"}),n.createElement("path",{d:"M6.93795336,20.7840634 C8.51291573,17.334308 13.2733365,13.6674352 13.2733365,13.6674352 L29,3.26992071 L22.9018725,0 L10.9685669,7.75591857 C10.9685669,7.75591857 -0.854857679,14.9756228 0.049338003,26.8260698 C0.761651772,36.1593797 12.3046335,39 12.3046335,39 C5.52316592,36.2295591 4.72994467,25.6215065 6.93795336,20.7840634 Z",id:"路径",fill:"#2281F2"}),n.createElement("path",{d:"M29.2439473,3 L13.4603304,13.6082752 C13.4603304,13.6082752 8.68266998,17.3489173 7.10200396,20.8691596 C4.7340225,26.1425307 5.81651263,38.201864 13.9672848,39.9124792 C13.9672848,39.9124792 17.3656344,40.7454111 23.3969644,37.2721576 C26.5517126,35.4552583 30.7231127,39.070597 30.7231127,39.070597 C35.4705973,35.3685528 31.9076521,31.827613 28.0846459,30.5007395 C24.3395483,29.2007168 21.5847673,31.781743 17.5346192,32.8378717 C13.4844711,33.8940003 12.4480677,29.1934447 12.4480677,29.1934447 C12.4480677,29.1934447 10.5497323,23.0871416 17.786999,18.1633893 L25.5410959,12.8877806 L25.5427418,16.3022982 L20.3958387,19.9243496 L20.3980333,25.1367472 L29.4222592,19.0125436 L29.2439473,3 Z",id:"路径",fill:"#1FB2FD"}),n.createElement("path",{d:"M36.7904047,27.0251597 C32.1878283,23.2677091 25.8158521,23.5156909 20.7707852,25.0562844 C18.0303799,25.8934309 12.0176813,28.5163788 12.0176813,28.5163788 C12.0176813,28.5163788 12.0918982,28.8392544 12.2746294,29.2936102 C12.3094889,29.3801542 12.3471596,29.4705815 12.3904528,29.565447 C12.4309348,29.6547648 12.476477,29.747966 12.5248305,29.8422768 C12.5928627,29.9759761 12.6687665,30.1130041 12.7536662,30.2516963 C12.8082044,30.3415689 12.8649916,30.4314415 12.9268391,30.5207593 C13.016799,30.6516848 13.1146305,30.7815007 13.2208957,30.9079881 C13.3007352,31.0034083 13.3873216,31.0960548 13.4767193,31.1864821 C13.8635471,31.5770395 14.3408972,31.9132295 14.9284481,32.1068439 C15.0189704,32.1368014 15.1117416,32.1628756 15.2078863,32.1856211 C15.7825055,32.3220943 16.4521449,32.3265324 17.2302986,32.1301442 C17.2404191,32.1279251 17.2494151,32.1245965 17.2595356,32.1218227 C19.9341576,31.4411211 21.9492606,30.1523927 23.9930384,29.7130156 C25.2822771,29.3890305 26.5895077,29.3241225 28.042361,29.8123192 C31.9601172,31.1282314 35.611367,34.640474 30.74622,38.3113806 L30.74622,38.3113806 L30.74622,38.3113806 L17.8768858,46.5019905 L17.877448,46.5014357 L14.3510177,44.4709811 L22.2523132,39.6783315 L17.0768044,37.0060091 L4,44.7372702 L4.00056225,44.737825 L13.0353533,49.5842871 L13.0342288,49.5848419 L19.4039561,53 L37.3717709,41.2716281 C37.3706464,41.2732924 45.9106577,34.4712695 36.7904047,27.0251597 Z",id:"路径",fill:"#37EDD7"}),n.createElement("path",{d:"M40.9961107,35 C40.9955641,35 40.994471,35.0005545 40.9939244,35.0011089 C40.9928312,35.0238418 40.9884586,35.0454657 40.9873655,35.0676442 C40.8900752,39.0492238 37.4668795,41.8592287 37.4668795,41.8592287 L20,53.5810744 L20.0032794,62 L38.0440621,49.2618285 C41.053501,47.4803475 41,43.5348078 41,43.5348078 L40.9961107,35 Z",id:"路径",fill:"#1FB2FD"}),n.createElement("polygon",{id:"路径",fill:"#2281F2",points:"22.9982925 41 22.9982925 41 22.9982925 41 15 45.9410083 18.498008 47.9919928 18.6237906 48 23 45.1631669"}),n.createElement("polygon",{id:"路径",fill:"#2281F2",points:"18.9961684 53.4177665 4 45 4.00328419 53.0147944 19 62"})))))},we=o.Z.useToken,Ee=function(e){var t=e.content,r=e.onQuery;return n.createElement("div",{style:{position:"relative"}},n.createElement("pre",{style:{border:"1px solid #ddd",padding:"6px",borderRadius:"4px"}},n.createElement("code",{style:{whiteSpace:"pre-wrap"}},t)),n.createElement(O.Z,{title:"开始查询"},n.createElement(L.ZP,{style:{position:"absolute",bottom:"2px",right:"2px"},onClick:function(){r&&r(t)},size:"small",icon:n.createElement(p.Z,{style:{color:"#52c41a"}}),type:"text"})))},Se=function(e){var t=e.content,r=e.role,o=we().token,i="user"===r?"rgba(221,221,221,0.3)":o.colorPrimaryBg;return n.createElement("div",{style:{background:i,borderRadius:"6px",padding:"6px"}},n.createElement(l.Z.Text,{style:{fontSize:"12px"}}," ",t))},ke=function(e){var t=e.role,r=e.content,o=(e.timestamp,e.onQuery),i="user"===t&&!r.includes("`"),a=be(r);return i?n.createElement(T.Z,{align:"start",justify:"flex-end",gap:4,style:{margin:"6px 0px"}},n.createElement(Se,{content:r,role:t})):n.createElement("div",null,n.createElement(fe.Z,{align:"start",size:2},n.createElement(xe,{style:{fontSize:"12px",height:"14px",width:"14px",border:"1px solid #ddd",borderRadius:"50%",padding:"4px"}}),n.createElement("div",null,a.map((function(e,r){return"cypher"===e.type?n.createElement(Ee,{key:r,content:e.content,onQuery:o}):n.createElement(Se,{key:r,content:e.content,role:t})})))))},je=r(52018),Oe=r(63432),Pe=r(37528);function Te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function Ae(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function De(e){return function(e){if(Array.isArray(e))return qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Me(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r(c) RETURN a,b,c LIMIT 25;")),"property"===t&&(r="MATCH(a) where a.".concat(e," IS NOT NULL AND a.").concat(e,' <> ""\n WITH a.').concat(e," as ").concat(e,"\n RETURN ").concat(e," , COUNT(").concat(e,") as ").concat(e,"_COUNT\n ORDER BY ").concat(e,"_COUNT DESC\n "))),"gremlin"===c&&("nodes"===t&&(r="g.V().hasLabel('".concat(e,"').limit(25)")),"edges"===t&&(r="g.V().outE('".concat(e,"').limit(25)")),"property"===t&&(r="g.V().has('".concat(e,"').groupCount().by('").concat(e,"').order().by(select(values), desc)"))),i((function(e){e.globalScript=r,e.autoRun=!0}))};return n.createElement($,{title:"Recommended"},n.createElement("div",{style:{padding:"0px 12px"}},n.createElement(Ke,{level:5,style:$e.title},n.createElement(f.Z,{id:"Vertex Labels"})),l.map((function(e){var t,r=e.label,o=(null!==(t=s.nodeStyle[r])&&void 0!==t?t:{color:"#000"}).color;return n.createElement(Ye.Z,{key:r,style:{borderRadius:"8px",backgroundColor:o,cursor:"pointer",margin:"4px"},bordered:!1,onClick:function(){y(r,"nodes")}},r)})),n.createElement(Ke,{level:5,style:$e.title},n.createElement(f.Z,{id:"Edge Labels"})),p.map((function(e){var t,r=e.label,o=(null!==(t=s.edgeStyle[r])&&void 0!==t?t:{color:"#000"}).color;return n.createElement(Ye.Z,{key:r,style:{borderRadius:"8px",backgroundColor:o,cursor:"pointer",margin:"4px",color:"#000"},bordered:!1,onClick:function(){y(r,"edges")}},r)})),n.createElement(Ke,{style:$e.title},n.createElement(f.Z,{id:"Property Keys"})),d.map((function(e){return n.createElement(Ye.Z,{key:e,style:{borderRadius:"8px",backgroundColor:m?"#000":"#fff",cursor:"pointer",margin:"4px",color:m?"#fff":"#000"},bordered:!1,onClick:function(){y(e,"property")}},e)}))))};function Xe(e){return Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xe(e)}function et(){et=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new L(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};s(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(C([])));w&&w!==r&&n.call(w,a)&&(b=w);var E=g.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==Xe(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function C(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function tt(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var rt=function(e){var t=e.deleteStatements,r=(0,a.qp)(),o=r.store,i=r.updateStore,c=o.storeProcedures.map((function(e){return e})),u=function(){var e,r=(e=et().mark((function e(r){return et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t(r),i((function(e){e.storeProcedures=e.savedStatements.filter((function(e){return-1===r.indexOf(e.id)}))}));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){tt(i,n,o,a,c,"next",e)}function c(e){tt(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}();return n.createElement($,{title:"Stored Procedures"},n.createElement(W,{items:c,onClick:function(e){e.id;var t=e.script;e.name;i((function(e){e.globalScript=t,e.autoRun=!0}))},onDelete:u,placeholder:n.createElement(n.Fragment,null,n.createElement(f.Z,{id:"No stored procedures available. {br} Go to the Extension and create one now!",values:{a:function(e){return n.createElement(l.Z.Link,{style:{fontSize:"12px"},href:"/extension/create",target:"_blank"},e)},br:n.createElement("br",null)}}))}))};function nt(e){return nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nt(e)}function ot(){ot=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new L(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};s(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(C([])));w&&w!==r&&n.call(w,a)&&(b=w);var E=g.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==nt(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function C(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function it(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var at=function(e){var t=e.deleteHistoryStatements,r=(0,a.qp)(),o=r.store,i=r.updateStore,c=o.historyStatements,u=function(){var e,r=(e=ot().mark((function e(r){return ot().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t(r),i((function(e){e.historyStatements=e.historyStatements.filter((function(e){return-1===r.indexOf(e.id)}))}));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){it(i,n,o,a,c,"next",e)}function c(e){it(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}(),s=c.map((function(e){return e}));return n.createElement($,{title:"History"},n.createElement(W,{items:s,onClick:function(e){e.id;var t=e.script;i((function(e){e.globalScript=t,e.autoRun=!1}))},onDelete:u,placeholder:n.createElement(f.Z,{id:"No query history available"})}))},ct=function(e){var t=e.items;return"Segmented"===e.type?n.createElement(h.SegmentedTabs,{items:t,block:!0,rootStyle:{padding:"8px 8px 8px 4px"}}):n.createElement(h.SideTabs,{items:t,width:320})},ut=(0,n.memo)(ct),st=r(62950),lt=r(84158),ft=r(37339),pt=r(91104),dt=r(33741),ht={"en-US":{Recommended:"Recommended",History:"History",Copilot:"Copilot",Saved:"Saved","Stored Procedures":"Stored Procedures","You can write cypher or gremlin queries, and then click the {icon} button to query data":"You can write cypher or gremlin queries, and then click the {icon} button to query data","Vertex Labels":"Vertex Labels","Edge Labels":"Edge Labels","Property Keys":"Property Keys","No saved query statements {br} You can click {icon} to save.":"No saved query statements {br} You can click {icon} to save.","No stored procedures available. {br} Go to the Extension and create one now!":"No stored procedures available. {br} Go to the Extension and create one now!","Privacy Security Notice":"Privacy Security Notice",Setting:"Setting","query.app.sidebar.gpt.setting.security":"To improve the quality of generated Cypher query statements, we'll utilize your graph data schema as the prompt for ChatGPT. Your data will be kept strictly confidential and solely used for this purpose.Furthermore, please note that your OpenAI API key is only stored locally in your browser for added security","OpenAI API key is only stored locally in your browser":"OpenAI API key is only stored locally in your browser","query.copilot.welcome":"Hello! I'm the GraphScope Query Assistant. Feel free to ask me any questions about Cypher or Gremlin queries.","recommend 5 interesting query statements":"recommend 5 interesting query statements","query any subgraph":"query any subgraph","insight the statistical distribution of vertex labels in the graph":"insight the statistical distribution of vertex labels in the graph",Save:"Save",Delete:"Delete",Query:"Query",Share:"Share","query submmited on {submitTime}. It's running ... ":"query submmited on {submitTime}. It's running ... ","query submmited on {submitTime}. Running {runningTime} ms":"query submmited on {submitTime}. Running {runningTime} ms","A total of {totalCount} records were retrieved":"A total of {totalCount} records were retrieved","A total of {totalCount} records were retrieved, including {nodeCount} nodes and {edgeCount} edges.":"A total of {totalCount} records were retrieved, including {nodeCount} nodes and {edgeCount} edges.",Color:"Color",Size:"Size",Caption:"Caption",LineWidth:"LineWidth","Node properties":"Node properties",Graph:"Graph",Table:"Table",Raw:"Raw","Style Setting":"Style Setting","You can click on each label to set the color, size, and display text for vertices and edges.":"You can click on each label to set the color, size, and display text for vertices and edges.","Export graph json":"Export graph json","Clustering layout":"Clustering layout","Vertex Properties":"Vertex Properties","Connect Endpoint":"Connect Endpoint","Connection URL":"Connection URL","Query language":"Query language","Query initiation method":"Query initiation method",Username:"Username",Password:"Password",Connect:"Connect",Close:"Close","Select nodes by box selection":"Select nodes by box selection","Switch graph view dimensions":"Switch graph view dimensions","Zoom to fitview":"Zoom to fitview",Fullscreen:"Fullscreen","Toggle Right Side":"Toggle Right Side","Caption Status":"Caption Status"},"zh-CN":{Recommended:"推荐查询",History:"历史查询",Copilot:"智能查询",Saved:"保存查询","Stored Procedures":"存储过程","You can write cypher or gremlin queries, and then click the {icon} button to query data":"您可以在这里编写 cypher 或 gremlin 语句,点击 {icon} 按钮查询数据","Vertex Labels":"节点类型","Edge Labels":"边类型","Property Keys":"属性字段","No saved query statements {br} You can click {icon} to save.":"暂无保存的查询语句 {br} 您可以点击 {icon} 保存","No stored procedures available. {br} Go to the Extension and create one now!":"暂无存储过程 {br} 快去 插件市场 创建一个吧","Privacy Security Notice":"隐私安全说明",Setting:"设置","query.app.sidebar.gpt.setting.security":"为了提高生成Cypher查询语句的质量,我们将使用您的图数据模式作为ChatGPT的提示。您的数据将被严格保密,仅用于此目的。此外,请注意我们的OpenAI API密钥仅存在于您的浏览器本地,以增加安全性。","OpenAI API key is only stored locally in your browser":"OpenAI API key 仅保存在您浏览器本地","query.copilot.welcome":"您好!我是 GraphScope 查询助理,您有任何关于 Cypher 或者 Gremlin 查询的问题都可以随时问我","recommend 5 interesting query statements":"帮我推荐5个有意思的查询","query any subgraph":"查询任意一个子图","insight the statistical distribution of vertex labels in the graph":"帮我分析图中节点类型的分布情况",Save:"保存",Delete:"删除",Query:"查询",Share:"分享","query submmited on {submitTime}. It's running ... ":"查询提交于 {submitTime}. 正在运行中...","query submmited on {submitTime}. Running {runningTime} ms":"查询提交于 {submitTime}. 查询时长 {runningTime} ms","A total of {totalCount} records were retrieved":"一共检索到 {totalCount} 条记录","A total of {totalCount} records were retrieved, including {nodeCount} nodes and {edgeCount} edges.":"一共检索到 {totalCount} 条记录, 其中包含 {nodeCount} 个节点,{edgeCount} 条边",Color:"颜色",Size:"大小",Caption:"文本",LineWidth:"边宽","Node properties":"属性详情",Graph:"图展示",Table:"表格展示",Raw:"原始数据","Style Setting":"样式设置","You can click on each label to set the color, size, and display text for vertices and edges.":"您可以单击每个标签来设置顶点和边缘的颜色、大小和显示文本。","Export graph json":"导出 json","Clustering layout":"集群布局","Vertex Properties":"节点属性","Connect Endpoint":"连接查询服务","Connection URL":"连接 URL","Query language":"查询语言","Query initiation method":"查询发起方式",Username:"用户名",Password:"密码",Connect:"连接",Close:"关闭","Select nodes by box selection":"通过框选选择节点","Switch graph view dimensions":"切换图表视图维度","Zoom to fitview":"缩放适当视图",Fullscreen:"全屏","Toggle Right Side":"切换右侧","Caption Status":"是否展示标签"}};function mt(e){return mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mt(e)}function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function gt(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var bt=h.Utils.getSearchParams,xt=function(e){var t=e.queryGraphData,r=e.handleCancelQuery,o=e.queryGraphSchema,i=e.displaySidebarPosition,c=void 0===i?"left":i,u=e.displaySidebarType,s=void 0===u?"Sidebar":u,l=(e.enableAbsolutePosition,e.queryStatements),p=e.deleteStatements,d=e.createStatements,m=e.enableImmediateQuery,y=e.connectComponent,v=e.sidebarCollapsed,g=e.sidebarStyle,b=e.welcome,x=(0,a.qp)(),w=x.store,E=x.updateStore,S=w.graphId,j=w.isReady,O=w.schemaData,P=[{key:"recommended",title:n.createElement(f.Z,{id:"Recommended"}),icon:n.createElement(ft.G,{icon:pt.X8G}),children:n.createElement(Je,{schemaData:O,schemaId:S})},{key:"saved",title:n.createElement(f.Z,{id:"Saved"}),icon:n.createElement(ft.G,{icon:pt.xVw}),children:n.createElement(te,{deleteStatements:function(e){return p("saved",e)}})},{key:"history",title:n.createElement(f.Z,{id:"History"}),icon:n.createElement(ft.G,{icon:pt.uF7}),children:n.createElement(at,{deleteHistoryStatements:function(e){return p("history",e)}})},{key:"store-procedure",title:n.createElement(f.Z,{id:"Stored Procedures"}),icon:n.createElement(ft.G,{icon:pt.xf3}),children:n.createElement(rt,{deleteStatements:function(e){return p("store-procedure",e)}})},{key:"copilot",title:n.createElement(f.Z,{id:"Copilot"}),icon:n.createElement(ft.G,{icon:pt.VE0}),children:n.createElement(Be,{schemaData:O})}];(0,n.useEffect)((function(){var t;(t=vt().mark((function t(){var r,n,i,c,u,s,f,p,d,h;return vt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=bt("graph_id")||"",n=bt("language")||e.language,i=bt("global_script")||e.globalScript,c=bt("display_mode")||localStorage.getItem(a.rv.mode)||"flow",u=bt("auto_run"),s=u?"true"===u:e.autoRun,f={nodes:[],edges:[]},p=[],d=[],h=[],t.prev=10,t.next=13,o(r);case 13:return f=t.sent,t.next=16,l("history");case 16:return p=t.sent,t.next=19,l("saved");case 19:return d=t.sent,t.next=22,l("store-procedure");case 22:h=t.sent,t.next=27;break;case 25:t.prev=25,t.t0=t.catch(10);case 27:E((function(e){e.isReady=!0,e.graphId=r,e.schemaData=f,e.historyStatements=p,e.savedStatements=d,e.storeProcedures=h,e.autoRun=s,e.globalScript=(0,lt.Id)(i),e.mode=c,e.language=n,e.welcome=b}));case 28:case"end":return t.stop()}}),t,null,[[10,25]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(e){gt(i,n,o,a,c,"next",e)}function c(e){gt(i,n,o,a,c,"throw",e)}a(void 0)}))})()}),[]);if(j){var T="left"===c?{leftSide:n.createElement(ut,{items:P,type:s})}:{rightSide:n.createElement(ut,{items:P,type:s})};return n.createElement(h.StudioProvier,{locales:ht},n.createElement(h.Section,yt({style:{height:"calc(100vh - 50px)"}},T,{defaultCollapsed:{leftSide:v,rightSide:v},leftSideStyle:g,rightSideStyle:g,splitBorder:!0}),n.createElement(k,{displaySidebarPosition:c,connectComponent:y,handleCancelQuery:r,createStatements:d,queryGraphData:function(e){var r=e.script,n=e.language,o={id:(0,st.Z)(),timestamp:(new Date).getTime(),script:r,language:n};return E((function(e){e.historyStatements.push(o)})),t(o)},enableImmediateQuery:m})))}return null},wt=r(613),Et=r(23639),St=r(40434),kt=r(7234);function jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ot(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ot(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function Ft(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function Zt(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ft(i,n,o,a,c,"next",e)}function c(e){Ft(i,n,o,a,c,"throw",e)}a(void 0)}))}}var Gt={},Mt=function(){var e=Zt(Rt().mark((function e(){var t,r,n,o,i=arguments;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:"cypher",r=i.length>1?i[1]:void 0,n=Gt.gremlin_driver,o=Gt.cypher_driver,"cypher"!==t){e.next=6;break}return o||(Gt.cypher_driver=new Et.Or(r)),e.abrupt("return",Gt.cypher_driver);case 6:if("gremlin"!==t){e.next=9;break}return n||(Gt.gremlin_driver=new Et.VP(r)),e.abrupt("return",Gt.gremlin_driver);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),qt=function(e){var t=e||{},r=t.enableImmediateQuery,o=void 0!==r&&r,i=t.mode,a=void 0===i?"flow":i,c=t.id,u=void 0===c?"":c,s=t.timestamp,l=void 0===s?Date.now():s,f=t.graphId,p=void 0===f?"":f,d=t.schemaData,m=void 0===d?{nodes:[],edges:[]}:d,y=t.script,v=void 0===y?"Match (n) return n limit 10":y,g=t.onQuery,b=At((0,n.useState)({language:e.language||"cypher",endpoint:e.endpoint||"127.0.0.1:7687"}),2),x=b[0],w=b[1],E=x.language,S=x.endpoint,k=function(){var e=Zt(Rt().mark((function e(t){var r,n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.language,e.next=3,Mt(r,S);case 3:return n=e.sent,e.abrupt("return",n.query(t.script));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),j=function(){var e=Zt(Rt().mark((function e(t){var r;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.language,e.next=3,Mt(r,S);case 3:e.sent.close();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return g||S&&E?n.createElement(h.StudioProvier,{locales:ht},n.createElement(wt.default,{language:E,enableImmediateQuery:o,mode:a,active:!0,id:u,timestamp:l,graphId:p,schemaData:m,script:v,onQuery:g||k,onCancel:j})):n.createElement(h.StudioProvier,{locales:ht},n.createElement(Lt,{onConnect:function(e){w((function(t){return _t(_t({},t),{},{endpoint:e.query_endpoint||"",language:e.query_language})}))}}))},zt=r(10422),Bt={render_query_statement:function(e){var t=(e||{}).id,r=void 0===t?"root":t;zt.render(n.createElement(qt,e),document.getElementById(r))}},Ut=function(e){return n.createElement(dt.ZP,{store:a.C1},n.createElement(xt,e))}},613:function(e,t,r){r.r(t),r.d(t,{default:function(){return Ce}});var n=r(50959),o=r(53531),i=r(16483),a=r.n(i),c=r(63904),u=r(57526),s=r(48722),l=r(54016),f=r(17905),p=r(38943),d=r(28541),h=r(42176),m=r(51558),y=r(45334),v=r(16889),g=r(15001),b=r(37528),x=function(e){var t=e.onSave,r=(0,n.useRef)(null),o=(0,b.Z)();return n.createElement(f.Z,{title:o.formatMessage({id:"Save"})},n.createElement(y.Z,{title:"name your statement",description:n.createElement(v.Z,{width:"200px",ref:r}),onConfirm:function(){if(r.current){var e=r.current.input.value;console.log("InputRef.current",e),t&&t(e)}},onCancel:function(){},okText:"Save",cancelText:"Cancel",placement:"bottomRight"},n.createElement(p.ZP,{type:"text",icon:n.createElement(g.Z,null)})))},w=r(62950);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function S(){S=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:P(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};s(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(_([])));w&&w!==r&&n.call(w,a)&&(b=w);var k=g.prototype=y.prototype=Object.create(b);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==E(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function P(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=T(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function T(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function k(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var j=function(e){var t,r=e.onClose,o=e.onQuery,i=e.script,a=void 0===i?"Match (n) return n limit 10":i,y=e.onSave,v=e.id,g=e.isFetching,E=e.antdToken,j=(e.schemaData,e.timestamp,e.language),O=e.message,P=(0,n.useRef)(null),T=(0,b.Z)(),L=function(){var e,t=(e=S().mark((function e(){var t,r;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=null==P||null===(t=P.current)||void 0===t||null===(t=t.codeEditor)||void 0===t?void 0:t.getValue(),o({id:v,script:r,language:j});case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){k(i,n,o,a,c,"next",e)}function c(e){k(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return n.createElement("div",{style:{}},n.createElement(u.Z,{justify:"space-between",style:{paddingBottom:"8px"}},n.createElement(s.Z,null,n.createElement(l.Z.Text,{type:"secondary",style:{fontSize:"12px",textAlign:"center"}},(t=j).charAt(0).toUpperCase()+t.slice(1)," ",O)),n.createElement(s.Z,{size:0},n.createElement(f.Z,{title:T.formatMessage({id:"Query"})},n.createElement(p.ZP,{type:"text",icon:n.createElement(d.Z,{spin:g,style:{color:g?"#52c41a":E.green}}),onClick:L})),y&&n.createElement(x,{onSave:function(e){var t,r=null==P||null===(t=P.current)||void 0===t||null===(t=t.codeEditor)||void 0===t?void 0:t.getValue(),n=(0,w.Z)();y&&y({id:n,script:r,name:e,language:j})}}),r&&n.createElement(f.Z,{title:T.formatMessage({id:"Share"})},n.createElement(p.ZP,{type:"text",icon:n.createElement(h.Z,{onClick:function(){var e,t=null==P||null===(e=P.current)||void 0===e||null===(e=e.codeEditor)||void 0===e?void 0:e.getValue();window.open("".concat(window.location.origin,"/querying?language=").concat(j,"&auto_run=true&global_script=").concat(encodeURIComponent(t)))}})})),r&&n.createElement(f.Z,{title:T.formatMessage({id:"Delete"})},n.createElement(p.ZP,{type:"text",icon:n.createElement(m.Z,{onClick:function(){r&&r(v)}})})))),n.createElement(c.Z,{language:j,ref:P,value:a}))},O=r(84723),P=r(35215),T=r(31192),L=r(9069),C=r(57591),I=r(88766),_=r(7234),N=r(86976);function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?"point":"interval",x:a||u,y:i,color:s,keys:Object.keys(r)}}(t);return{x:e.x,y:e.y,color:e.color,type:e.type,options:e.keys.map((function(e){return{label:e,value:e}}))}})),i=F(o,2),a=i[0],c=i[1];console.log(a);var u=a.type,l=a.x,f=a.y,p=a.color,d=a.options;(0,n.useEffect)((function(){var e;return r.current&&((e=new N.kL({container:r.current,autoFit:!0})).options({type:u,data:t,encode:{x:l,y:f,color:p},transform:[{type:"dodgeX"}]}),e.render()),function(){r.current&&e.destroy()}}),[u,l,f,t,p,r]);return n.createElement("div",{style:{padding:"16px",overflowX:"hidden"}},n.createElement(s.Z,{style:{paddingBottom:"16px"}},"Type:",n.createElement(_.default,{size:"small",defaultValue:u,style:{width:120},onChange:function(e){c((function(t){return D(D({},t),{},{type:e})}))},options:[{label:"interval",value:"interval"},{label:"point",value:"point"}]}),"X:",n.createElement(_.default,{size:"small",defaultValue:l,style:{width:120},onChange:function(e){c((function(t){return D(D({},t),{},{x:e})}))},options:d}),"Y:",n.createElement(_.default,{size:"small",defaultValue:f,style:{width:120},onChange:function(e){c((function(t){return D(D({},t),{},{y:e})}))},options:d}),"Color:",n.createElement(_.default,{size:"small",defaultValue:p,style:{width:120},onChange:function(e){c((function(t){return D(D({},t),{},{color:e})}))},options:d})),n.createElement("div",{ref:r,style:{width:"100%"}}))},q=r(58002),z=r(35731),B=r(36523);function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function Y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return H(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return H(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:"12px",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-8px";return n.createElement(n.Fragment,null,Object.entries(t).map((function(t){var i=Y(t,2),a=i[0],c=i[1];return n.createElement("div",{style:{paddingLeft:"16px",overflowWrap:"break-word",wordBreak:"break-all",whiteSpace:"pre-wrap"},key:a},n.createElement("span",{style:{color:"#F9822F",paddingLeft:r}},'"',a,'" :'),n.createElement("span",{style:{paddingLeft:"6px",textIndent:o}},"object"===U(c)&&null!==c?n.createElement(n.Fragment,null,"{",e(c,"24px","16px"),"}"):JSON.stringify(c,null,2)))})))},Q=function(e){var t=e.expandData,r=e.width;return n.createElement(u.Z,null,Object.values(t).map((function(e){return e.key&&n.createElement("div",{style:{marginLeft:"12px",width:"".concat(r,"%")},key:e.key},"{",V(e.data),"}")})))};function W(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return K(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return K(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0),l=a.length>0,f=u.length>0,p="raw",d=["raw"];return s&&(p="graph",d=["raw","table","graph"]),!s&&l&&(p="table",d=["raw","table"]),s||l||!f||(p="table",d=["raw","table"]),r&&(p=r),t&&(d=["raw"],p="raw"),{viewMode:p,options:d}}(t,r,c),f=l.viewMode,p=l.options,d=function(e){return-1!==p.indexOf(e)},h=[{label:s.formatMessage({id:"Graph"}),key:"graph",icon:n.createElement(he.Z,null),children:n.createElement(de.Z,{data:t,schemaData:o,graphId:i}),disabled:!d("graph")},{label:s.formatMessage({id:"Table"}),key:"table",icon:n.createElement(C.Z,null),children:n.createElement(ce,{data:t}),disabled:!d("table")},{label:s.formatMessage({id:"Raw"}),key:"raw",icon:n.createElement(me.Z,null),children:n.createElement(pe,{data:t,isFetching:r}),disabled:!d("raw")}];return n.createElement("div",{style:{padding:"16px 0px"}},n.createElement(O.Z,{items:h,size:"small",type:"card",activeKey:f,onChange:function(e){u(e)}}))},be=(0,n.memo)(ge);function xe(e){return xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xe(e)}function we(){we=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new L(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};s(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(C([])));w&&w!==r&&n.call(w,a)&&(b=w);var E=g.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==xe(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function C(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function Ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Se(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function m(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var y=u.Utils.storage,v=function(){var e,t=(e=h().mark((function e(t){var r,n,o,i,a,c;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=y.get("query_language")||"cypher",n=y.get("query_endpoint")||"",o=y.get("query_initiation"),i=y.get("query_username"),a=y.get("query_password"),e.prev=5,c={script:t,language:r,endpoint:n,username:i,password:a},"Server"!==o){e.next=11;break}return e.next=10,fetch("/graph/query",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then((function(e){return e.json()})).then((function(e){return e.success?e.data:{nodes:[],edges:[]}}));case 10:return e.abrupt("return",e.sent);case 11:return e.abrupt("return",(0,p.aq)(c));case 14:return e.prev=14,e.t0=e.catch(5),e.abrupt("return",{nodes:[],edges:[]});case 17:case"end":return e.stop()}}),e,null,[[5,14]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){m(i,n,o,a,c,"next",e)}function c(e){m(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function b(){b=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:P(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",m={};function y(){}function v(){}function x(){}var w={};s(w,a,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(_([])));S&&S!==r&&n.call(S,a)&&(w=S);var k=x.prototype=y.prototype=Object.create(w);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==g(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function P(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=T(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function T(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function x(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function w(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){x(i,n,o,a,c,"next",e)}function c(e){x(i,n,o,a,c,"throw",e)}a(void 0)}))}}var E=function(){var e=w(b().mark((function e(t){var r,n,o,i;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.key,n=t.selectIds,o="\n MATCH ".concat(r,"\n WHERE elementId(a) IN [").concat(n,"] \n RETURN a,b,c\n "),e.next=4,v(o);case 4:return i=e.sent,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=w(b().mark((function e(t){var r,n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.schema,n={all:[{key:"(a)-[b]-(c)",label:"One-Hop Neighbors"}]},r.nodes.forEach((function(e){n[e.label]=k(r,e.label)})),e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function k(e,t){var r=[];return e.edges.forEach((function(e){var n=e.source,o=e.target,i=e.label;if((t===n||t===o)&&n===o)return"both",void r.push({key:"(a:".concat(n,")-[b:").concat(i,"]-(c:").concat(o,")"),label:"[".concat(i,"]-(").concat(o,")")});n===t&&("out",r.push({key:"(a:".concat(n,")-[b:").concat(i,"]->(c:").concat(o,")"),label:"[".concat(i,"]->(").concat(o,")")})),o===t&&("in",r.push({key:"(a:".concat(n,")<-[b:").concat(i,"]-(c:").concat(o,")"),label:"[".concat(i,"]<-(").concat(o,")")}))})),[{key:"(a)-[b]-(c)",label:"One-Hop Neighbors"}].concat(r)}var j={queryNeighborData:E,queryNeighborItems:S,queryStatement:v};function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function P(){P=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};s(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(_([])));w&&w!==r&&n.call(w,a)&&(b=w);var E=g.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==O(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=T(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function T(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function T(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function L(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){T(i,n,o,a,c,"next",e)}function c(e){T(i,n,o,a,c,"throw",e)}a(void 0)}))}}var C=function(){var e=L(P().mark((function e(t){var r,n,o,i;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.selectIds,n=r.join(","),o="g.V().hasId(".concat(n,").both().dedup()"),e.next=5,v(o);case 5:return i=e.sent,e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I=function(){var e=L(P().mark((function e(t){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{all:[{key:"(a)-[b]-(c)",label:"One-Hop Neighbors"}]});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_={queryStatement:v,queryNeighborData:C,queryNeighborItems:I},N=function(){var e=(0,u.useSection)().toggleLeftSide;return n.createElement(o.Z,{title:n.createElement(c.Z,{id:"Style settings"}),placement:"left"},n.createElement(i.ZP,{icon:n.createElement(f.Z,null),onClick:function(){return e()},type:"text"}))};(0,s.registerIcons)();var A=function(e){var t=e.data,r=e.schema,o=e.graphId,i=e.id,c=(0,n.useRef)(null),f="gremlin"===u.Utils.storage.get("query_language")?_:j,p=a.Z.useToken().token;return n.createElement("div",{style:{borderRadius:"8px",height:"500px",background:p.colorBgContainer},ref:c},n.createElement(s.GraphProvider,{id:i,services:f},n.createElement(u.Section,{splitBorder:!0,leftSide:n.createElement(s.StyleSetting,null),autoResize:!1,rightSideStyle:{width:"300px",padding:"12px 0px 12px 18px"},defaultCollapsed:{leftSide:!0,rightSide:!0}},n.createElement(s.Prepare,{data:t,schema:r,graphId:o}),n.createElement(s.Canvas,null),n.createElement(s.ZoomStatus,null),n.createElement(s.BasicInteraction,null),n.createElement(s.ClearStatus,null),n.createElement(s.PropertiesPanel,null),n.createElement(s.Loading,null),n.createElement(s.ContextMenu,null,n.createElement(s.NeighborQuery,null),n.createElement(s.DeleteLeafNodes,null),n.createElement(s.DeleteNode,null)),n.createElement(s.Toolbar,{style:{position:"absolute",top:"20px",left:"20px",right:"unset"}},n.createElement(N,null),n.createElement(l.Z,{style:{margin:"0px"}}),n.createElement(u.FullScreen,{containerRef:c}),n.createElement(s.ZoomFit,null),n.createElement(s.Brush,null),n.createElement(s.FixedMode,null),n.createElement(l.Z,{style:{margin:"0px"}}),n.createElement(s.SwitchEngine,null),n.createElement(s.RunCluster,null),n.createElement(s.Export,null)))))};function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}var R=["properties","constraints"];function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function B(e){return{nodes:e.nodes,edges:e.edges.map((function(e){var t=e.properties,r=e.constraints,n=z(e,R),o=M(r[0],2),i=o[0],a=o[1];return Z(Z({},n),{},{source:i,target:a,properties:t})}))}}var U=function(e){var t=e.data,r=e.schemaData,o=e.graphId,i=B(r);return n.createElement("div",{style:{width:"100%"}},n.createElement(A,{data:t,schema:i,graphId:o}))}},43282:function(e,t,r){r.r(t),r.d(t,{demos:function(){return n}});r(50959),r(85430);var n={}},78624:function(e,t,r){r.r(t),r.d(t,{demos:function(){return u}});var n=r(90228),o=r.n(n),i=r(87999),a=r.n(i),c=r(50959),u=(r(8646),{"packages-studio-components-readme-demo-0":{component:c.memo(c.lazy(a()(o()().mark((function e(){var t,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(2428).then(r.bind(r,22428));case 2:return t=e.sent,n=t.default,e.abrupt("return",{default:function(){return c.createElement(n,null)}});case 5:case"end":return e.stop()}}),e)}))))),asset:null,context:void 0,renderOpts:void 0}})},31482:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return m}});var o,i=r(90228),a=r.n(i),c=r(26068),u=r.n(c),s=r(48305),l=r.n(s),f=r(87999),p=r.n(f),d=r(50959),h=(r(4480),r(58002)),m={"editabletext-demo-0":{component:d.memo(d.lazy(p()(a()().mark((function e(){var t,n,o,i,c;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,o=t.useState,e.next=7,Promise.resolve().then(r.bind(r,58002));case 7:return i=e.sent,c=i.EditableText,e.abrupt("return",{default:function(){var e=o({text:"double click"}),t=l()(e,2),r=t[0],i=t[1],a=r.text;return n.createElement("div",null,n.createElement(c,{text:a,onTextChange:function(e){console.log("value",e),i((function(t){return u()(u()({},t),{},{text:e})}))}}))}});case 10:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"editabletext-demo-0",refAtomIds:["EditableText"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { EditableText } from '@graphscope/studio-components';\nexport default () => {\n const [state, updateState] = useState({\n text: 'double click',\n });\n const onChange = value => {\n console.log('value', value);\n updateState(preState => {\n return {\n ...preState,\n text: value,\n };\n });\n };\n const { text } = state;\n return (\n
\n \n
\n );\n};"},react:{type:"NPM",value:"18.2.0"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(d,2)),"@graphscope/studio-components":h},renderOpts:{compile:(o=p()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},87231:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return f}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(93238),r(58002)),f={"emptycanvas-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,58002));case 7:return o=e.sent,i=o.EmptyCanvas,e.abrupt("return",{default:function(){return n.createElement("div",null,n.createElement(i,null))}});case 10:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"emptycanvas-demo-0",refAtomIds:["EmptyCanvas"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { EmptyCanvas } from '@graphscope/studio-components';\nexport default () => {\n return (\n
\n \n
\n );\n};"},react:{type:"NPM",value:"18.2.0"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),"@graphscope/studio-components":l},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},70432:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return f}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(48741),r(58002)),f={"fullscreen-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,o=t.useRef,e.next=8,Promise.resolve().then(r.bind(r,58002));case 8:return i=e.sent,c=i.FullScreen,e.abrupt("return",{default:function(){var e=o(null);return n.createElement("div",null,n.createElement(c,{containerRef:e}),n.createElement("div",{ref:e,style:{width:"100%",height:"500px",background:"#ddd",textAlign:"center",lineHeight:"100%"}},"Trigger full screen"))}});case 11:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"fullscreen-demo-0",refAtomIds:["FullScreen"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState, useRef } from 'react';\nimport { FullScreen } from '@graphscope/studio-components';\nexport default () => {\n const containerRef = useRef(null);\n return (\n
\n \n \n Trigger full screen\n
\n \n );\n};"},react:{type:"NPM",value:"18.2.0"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),"@graphscope/studio-components":l},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},83039:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return p}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(36666),r(2739)),f=r(58002),p={"illustration-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c,u,s;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,2739));case 7:return o=e.sent,o.Space,i=o.Flex,c=o.Typography,e.next=13,Promise.resolve().then(r.bind(r,58002));case 13:return u=e.sent,s=u.Illustration,e.abrupt("return",{default:function(){return n.createElement(i,{wrap:!0,gap:44},Object.keys(s).map((function(e){var t=s[e];return n.createElement(i,{key:e,gap:8,vertical:!0,align:"center"},n.createElement(t,null),n.createElement(c.Text,null,e))})))}});case 16:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"illustration-demo-0",refAtomIds:["Illustration"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { Space, Flex, Typography } from 'antd';\nimport { Illustration } from '@graphscope/studio-components';\n\nexport default () => {\n return (\n \n {Object.keys(Illustration).map(key => {\n const Item = Illustration[key];\n return (\n \n \n {key}\n \n );\n })}\n \n );\n};"},react:{type:"NPM",value:"18.2.0"},antd:{type:"NPM",value:"5.22.2"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),antd:l,"@graphscope/studio-components":f},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},67114:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return f}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(19895),r(58002)),f={"importfiles-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c,u;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,t.useRef,e.next=8,Promise.resolve().then(r.bind(r,58002));case 8:return o=e.sent,i=o.ImportFiles,c=o.Button,u=o.message,e.abrupt("return",{default:function(){return n.createElement("div",{style:{height:"500px"}},n.createElement(i,{upload:{accept:".json,.csv",title:"xxx",description:"xxx"},type:"json"},(function(e){return n.createElement(n.Fragment,null,n.createElement(c,{type:"primary",onClick:function(){return function(e){u(e)}(e)},loading:e.loading},"Visualization"))})))}});case 13:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"importfiles-demo-0",refAtomIds:["ImportFiles"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState, useRef } from 'react';\nimport { ImportFiles, Button, message } from '@graphscope/studio-components';\n\nexport default () => {\n const onSubmit = params => {\n message(params);\n };\n return (\n
\n \n {params => {\n return (\n <>\n \n \n );\n }}\n \n
\n );\n};"},react:{type:"NPM",value:"18.2.0"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),"@graphscope/studio-components":l},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},98063:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return p}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(54581),r(2739)),f=r(58002),p={"logo-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c,u,s;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,2739));case 7:return o=e.sent,o.Space,e.next=11,Promise.resolve().then(r.bind(r,58002));case 11:return i=e.sent,c=i.Logo,u=i.LogoText,s=i.LogoImage,e.abrupt("return",{default:function(){return n.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"40px"}},n.createElement(c,null),n.createElement(u,null),n.createElement(s,null))}});case 16:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"logo-demo-0",refAtomIds:["Logo"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { Space } from 'antd';\nimport { Logo, LogoText, LogoImage } from '@graphscope/studio-components';\n\nexport default () => {\n return (\n
\n \n \n \n
\n );\n};"},react:{type:"NPM",value:"18.2.0"},antd:{type:"NPM",value:"5.22.2"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),antd:l,"@graphscope/studio-components":f},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},47785:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return h}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(518),r(2739)),f=r(53420),p=r(9102),d=r(5855),h={"provider-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c,u,s,l,f,p,d,h;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,2739));case 7:return o=e.sent,i=o.Button,o.Space,o.Input,e.next=13,Promise.resolve().then(r.bind(r,9102));case 13:return c=e.sent,u=c.default,e.next=17,Promise.resolve().then(r.bind(r,5855));case 17:return s=e.sent,l=s.useStudioProvier,e.next=21,Promise.resolve().then(r.bind(r,53420));case 21:return f=e.sent,p=f.components,d=f.token,h=function(){var e=l().handleThemeOrLocale;return n.createElement(i,{onClick:function(){e({components:p,token:d})}},"edit")},e.abrupt("return",{default:function(){return n.createElement(u,{mode:"defaultAlgorithm"},n.createElement(h,null),n.createElement(i,null,"colorPrimary"))}});case 26:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"provider-demo-0",refAtomIds:["Provider"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { Button, Space, Input } from 'antd';\nimport ThemeProvider from './index.tsx';\nimport { useStudioProvier } from './useThemeConfigProvider.tsx';\nimport { components, token } from './const.ts';\n/** 修改主题色 */\nconst ToogleButton = () => {\n const { handleThemeOrLocale } = useStudioProvier();\n return (\n {\n handleThemeOrLocale({\n components,\n token,\n });\n }}\n >\n edit\n \n );\n};\n\nexport default () => {\n return (\n \n \n \n \n );\n};"},react:{type:"NPM",value:"18.2.0"},antd:{type:"NPM",value:"5.22.2"},"./const.ts":{type:"FILE",value:r(22211).Z},"./index.tsx":{type:"FILE",value:r(20880).Z},"./useThemeConfigProvider.tsx":{type:"FILE",value:r(88241).Z}},entry:"index.jsx"},context:{"./const.ts":f,"./index.tsx":p,"./useThemeConfigProvider.tsx":d,react:n||(n=r.t(s,2)),antd:l,"/home/runner/work/portal/portal/packages/studio-components/src/Provider/const.ts":f,"/home/runner/work/portal/portal/packages/studio-components/src/Provider/index.tsx":p,"/home/runner/work/portal/portal/packages/studio-components/src/Provider/useThemeConfigProvider.tsx":d},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},91445:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return f}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(3750),r(78781)),f={"resizablepanel-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,e.next=6,Promise.resolve().then(r.bind(r,78781));case 6:return o=e.sent,i=o.default,e.abrupt("return",{default:function(){return n.createElement(i,{leftSide:n.createElement("div",{style:{minWidth:"300px",height:"300px",background:"#F7F7F7",textAlign:"center"}},"leftSide"),middleSide:n.createElement("div",{style:{minWidth:"600px",height:"300px",background:"#FFA444",textAlign:"center"}},"middleSide"),rightSide:n.createElement("div",{style:{minWidth:"300px",height:"300px",background:"#91CAFA",textAlign:"center"}},"rightSide")})}});case 9:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"resizablepanel-demo-0",refAtomIds:["ResizablePanel"],dependencies:{"index.jsx":{type:"FILE",value:"import React from 'react';\nimport ResizablePanel from './index.tsx';\n\nexport default () => {\n return (\n leftSide\n }\n middleSide={\n
middleSide
\n }\n rightSide={\n \n rightSide\n \n }\n />\n );\n};"},react:{type:"NPM",value:"18.2.0"},"./index.tsx":{type:"FILE",value:r(17239).Z}},entry:"index.jsx"},context:{"./index.tsx":l,react:n||(n=r.t(s,2)),"/home/runner/work/portal/portal/packages/studio-components/src/ResizablePanel/index.tsx":l},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},3151:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return p}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(43716),r(2739)),f=r(58002),p={"segmentedtabs-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c,u,s,l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,2739));case 7:return o=e.sent,o.Space,e.next=11,Promise.resolve().then(r.bind(r,58002));case 11:return i=e.sent,c=i.SegmentedTabs,u=function(){return n.createElement("div",null,"Tab-1 components")},s=function(){return n.createElement("div",null,"Tab-2 components")},l=function(){return n.createElement("div",null,"Tab-3 components")},e.abrupt("return",{default:function(){var e=[{key:"Tab-1",children:n.createElement(u,null),label:"Tab-1"},{key:"Tab-2",children:n.createElement(s,null),label:"Tab-2"},{key:"Tab-3",children:n.createElement(l,null),label:"Tab-3"}];return n.createElement("div",null,n.createElement(c,{items:e}))}});case 17:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"segmentedtabs-demo-0",refAtomIds:["SegmentedTabs"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { Space } from 'antd';\nimport { SegmentedTabs } from '@graphscope/studio-components';\nconst Tab1 = () => {\n return
Tab-1 components
;\n};\nconst Tab2 = () => {\n return
Tab-2 components
;\n};\nconst Tab3 = () => {\n return
Tab-3 components
;\n};\nexport default () => {\n const items = [\n {\n key: 'Tab-1',\n children: ,\n label: 'Tab-1',\n },\n {\n key: 'Tab-2',\n children: ,\n label: 'Tab-2',\n },\n {\n key: 'Tab-3',\n children: ,\n label: 'Tab-3',\n },\n ];\n return (\n
\n \n
\n );\n};"},react:{type:"NPM",value:"18.2.0"},antd:{type:"NPM",value:"5.22.2"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),antd:l,"@graphscope/studio-components":f},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},62359:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return p}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(43765),r(2739)),f=r(58002),p={"sidetabs-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c,u,s;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,2739));case 7:return o=e.sent,o.Space,e.next=11,Promise.resolve().then(r.bind(r,58002));case 11:return i=e.sent,i.SegmentedTabs,c=function(){return n.createElement("div",null,"Tab-1 components")},u=function(){return n.createElement("div",null,"Tab-2 components")},s=function(){return n.createElement("div",null,"Tab-3 components")},e.abrupt("return",{default:function(){var e=[{key:"Tab-1",children:n.createElement(c,null),label:"Tab-1"},{key:"Tab-2",children:n.createElement(u,null),label:"Tab-2"},{key:"Tab-3",children:n.createElement(s,null),label:"Tab-3"}];return n.createElement("div",null,n.createElement(Sidebar,{options:e,value:"Tab-1",collapse:!1}))}});case 17:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"sidetabs-demo-0",refAtomIds:["SideTabs"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { Space } from 'antd';\nimport { SegmentedTabs } from '@graphscope/studio-components';\nconst Tab1 = () => {\n return
Tab-1 components
;\n};\nconst Tab2 = () => {\n return
Tab-2 components
;\n};\nconst Tab3 = () => {\n return
Tab-3 components
;\n};\nexport default () => {\n const items = [\n {\n key: 'Tab-1',\n children: ,\n label: 'Tab-1',\n },\n {\n key: 'Tab-2',\n children: ,\n label: 'Tab-2',\n },\n {\n key: 'Tab-3',\n children: ,\n label: 'Tab-3',\n },\n ];\n return (\n
\n \n
\n );\n};"},react:{type:"NPM",value:"18.2.0"},antd:{type:"NPM",value:"5.22.2"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),antd:l,"@graphscope/studio-components":f},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},99409:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return p}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(44412),r(2739)),f=r(58002),p={"tablecard-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,2739));case 7:return o=e.sent,o.Space,e.next=11,Promise.resolve().then(r.bind(r,58002));case 11:return i=e.sent,c=i.TableCard,e.abrupt("return",{default:function(){return n.createElement("div",null,n.createElement(c,{data:{label:"table-1",properties:[{}]}}))}});case 14:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"tablecard-demo-0",refAtomIds:["TableCard"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { Space } from 'antd';\nimport { TableCard } from '@graphscope/studio-components';\n\nexport default () => {\n const data = {\n label: 'table-1',\n properties: [{}],\n };\n return (\n
\n \n
\n );\n};"},react:{type:"NPM",value:"18.2.0"},antd:{type:"NPM",value:"5.22.2"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),antd:l,"@graphscope/studio-components":f},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},98440:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return p}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(85792),r(2739)),f=r(58002),p={"toolbar-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c,u,s;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,2739));case 7:return o=e.sent,o.Space,i=o.Button,e.next=12,Promise.resolve().then(r.bind(r,58002));case 12:return c=e.sent,u=c.Toolbar,s=c.Icons,e.abrupt("return",{default:function(){return n.createElement("div",{style:{position:"relative",height:"400px"}},n.createElement(u,null,n.createElement(i,{type:"text",icon:n.createElement(s.Sidebar,null)}),n.createElement(i,{type:"text",icon:n.createElement(s.AddNode,null)})))}});case 16:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"toolbar-demo-0",refAtomIds:["Toolbar"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { Space, Button } from 'antd';\nimport { Toolbar, Icons } from '@graphscope/studio-components';\n\nexport default () => {\n return (\n
\n \n
\n );\n};"},react:{type:"NPM",value:"18.2.0"},antd:{type:"NPM",value:"5.22.2"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),antd:l,"@graphscope/studio-components":f},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},2434:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return p}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(44117),r(2739)),f=r(58002),p={"typingtext-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,2739));case 7:return o=e.sent,o.Space,o.Button,e.next=12,Promise.resolve().then(r.bind(r,58002));case 12:return i=e.sent,c=i.TypingText,e.abrupt("return",{default:function(){return n.createElement(c,null,"GraphScope Portal is a user-friendly web interface that simplifies managing graph data with GraphScope. It offers one-stop access to data modeling, importing, querying, and monitoring, catering to both Interactive and Insight engines within the GraphScope Flex architecture.")}});case 15:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"typingtext-demo-0",refAtomIds:["TypingText"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { Space, Button } from 'antd';\nimport { TypingText } from '@graphscope/studio-components';\n\nexport default () => {\n return (\n \n GraphScope Portal is a user-friendly web interface that simplifies managing graph data with GraphScope. It offers\n one-stop access to data modeling, importing, querying, and monitoring, catering to both Interactive and Insight\n engines within the GraphScope Flex architecture.\n \n );\n};"},react:{type:"NPM",value:"18.2.0"},antd:{type:"NPM",value:"5.22.2"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),antd:l,"@graphscope/studio-components":f},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},54734:function(e,t,r){r.r(t),r.d(t,{demos:function(){return n}});r(50959),r(4866);var n={}},82463:function(e,t,r){r.r(t),r.d(t,{demos:function(){return l}});var n,o=r(90228),i=r.n(o),a=r(87999),c=r.n(a),u=r(50959),s=(r(93995),r(58002)),l={"layout-demo-0":{component:u.memo(u.lazy(c()(i()().mark((function e(){var t,n,o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.bind(r,58002));case 2:return t=e.sent,n=t.Layout,o=t.Icons,t.StudioProvider,e.abrupt("return",{default:function(){var e=[{label:"home",key:"/home",icon:u.createElement(o.Cluster,null)}];return u.createElement("div",{style:{height:"500px",border:"1px solid red"}},u.createElement(n,{sideMenu:[e]}))}});case 7:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"layout-demo-0",refAtomIds:["layout"],dependencies:{"index.jsx":{type:"FILE",value:"import { Layout, Icons, StudioProvider } from '@graphscope/studio-components';\n\nexport default () => {\n const sideMenu = [\n {\n label: 'home',\n key: '/home',\n icon: ,\n },\n ];\n return (\n
\n \n
\n );\n};"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{"@graphscope/studio-components":s},renderOpts:{compile:(n=c()(i()().mark((function e(){var t,n=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})}}}},55348:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return f}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(26973),r(61719)),f={"packages-studio-importor-src-app-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,t.useEffect,e.next=8,Promise.resolve().then(r.bind(r,61719));case 8:return o=e.sent,i=o.default,e.abrupt("return",{default:function(){var e=function(){var e=u()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{nodes:[],edges:[]});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return n.createElement("div",{style:{position:"fixed",top:"65px",left:"0px",right:"0px",zIndex:999,bottom:"0px",background:"#fff"}},n.createElement(i,{queryPrimitiveTypes:function(){return["DT_DOUBLE","DT_STRING","DT_SIGNED_INT32","DT_SIGNED_INT64"].map((function(e){return{label:e,value:e}}))},queryGraphSchema:e,appMode:"DATA_MODELING"}))}});case 11:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"packages-studio-importor-src-app-demo-0",refAtomIds:[],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState, useEffect } from 'react';\nimport ModelingApp from '@graphscope/studio-importor';\nexport default () => {\n const queryGraphSchema = async () => {\n return { nodes: [], edges: [] };\n };\n return (\n \n {\n return ['DT_DOUBLE', 'DT_STRING', 'DT_SIGNED_INT32', 'DT_SIGNED_INT64'].map(item => {\n return { label: item, value: item };\n });\n }}\n queryGraphSchema={queryGraphSchema}\n appMode=\"DATA_MODELING\"\n />\n \n );\n};"},react:{type:"NPM",value:"18.2.0"},"@graphscope/studio-importor":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),"@graphscope/studio-importor":l},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},52545:function(e,t,r){r.r(t),r.d(t,{demos:function(){return f}});var n,o=r(90228),i=r.n(o),a=r(87999),c=r.n(a),u=r(50959),s=(r(67866),r(21050)),l=r(58002),f={"packages-studio-query-src-app-demo-0":{component:u.memo(u.lazy(c()(i()().mark((function e(){var t,n,o,a,c;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.bind(r,21050));case 2:return t=e.sent,n=t.default,e.next=6,Promise.resolve().then(r.bind(r,58002));case 6:return o=e.sent,a=o.Utils,c=a.storage,e.abrupt("return",{default:function(){var e=window.GS_ENGINE_TYPE,t="groot"===e?"gremlin":"cypher",r="groot"===e?"g.V().limit 10":"Match (n) return n limit 10",o=c.get("locale")||"en-US",i=c.get("primaryColor")||"#1978FF",a=c.get("themeColor")||"defaultAlgorithm";return u.createElement("div",{style:{position:"fixed",top:"65px",left:"0px",right:"0px",zIndex:999,bottom:"0px",background:"#fff"}},u.createElement(n,{theme:{mode:a,primaryColor:i},locale:o,globalScript:r,language:t,queryInfo:function(){return new Promise((function(e){e({graph_name:"demo"})}))},queryGraphSchema:function(){return new Promise((function(e){e({nodes:[],edges:[]})}))},queryStatements:function(){return new Promise((function(e){e([])}))}}))}});case 10:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"packages-studio-query-src-app-demo-0",refAtomIds:[],dependencies:{"index.jsx":{type:"FILE",value:"import QueryApp from '@graphscope/studio-query';\nimport { Utils } from '@graphscope/studio-components';\nconst { storage } = Utils;\n\nexport default () => {\n const queryInfo = () => {\n return new Promise(resolve => {\n resolve({\n graph_name: 'demo',\n });\n });\n };\n const queryGraphSchema = () => {\n return new Promise(resolve => {\n resolve({\n nodes: [],\n edges: [],\n });\n });\n };\n const queryStatements = () => {\n return new Promise(resolve => {\n resolve([]);\n });\n };\n const { GS_ENGINE_TYPE } = window;\n const language = GS_ENGINE_TYPE === 'groot' ? 'gremlin' : 'cypher';\n const globalScript = GS_ENGINE_TYPE === 'groot' ? 'g.V().limit 10' : 'Match (n) return n limit 10';\n\n const locale = storage.get('locale') || 'en-US';\n const primaryColor = storage.get('primaryColor') || '#1978FF';\n const themeMode = storage.get('themeColor') || 'defaultAlgorithm';\n\n return (\n \n \n \n );\n};"},"@graphscope/studio-query":{type:"NPM",value:"0.1.14"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{"@graphscope/studio-query":s,"@graphscope/studio-components":l},renderOpts:{compile:(n=c()(i()().mark((function e(){var t,n=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})}}}},57298:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return f}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(37275),r(59506)),f={"packages-studio-query-src-statement-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,t.default,e.next=6,Promise.resolve().then(r.bind(r,59506));case 6:return n=e.sent,o=n.default,e.abrupt("return",{default:o});case 9:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"packages-studio-query-src-statement-demo-0",refAtomIds:[],dependencies:{"index.jsx":{type:"FILE",value:"import React from 'react';\nimport SDK from '../sdk/index.tsx';\nexport default SDK;"},react:{type:"NPM",value:"18.2.0"},"../sdk/index.tsx":{type:"FILE",value:r(9534).Z}},entry:"index.jsx"},context:{"../sdk/index.tsx":l,react:n||(n=r.t(s,2)),"/home/runner/work/portal/portal/packages/studio-query/src/sdk/index.tsx":l},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},53420:function(e,t,r){r.r(t),r.d(t,{components:function(){return n},token:function(){return o}});var n={Menu:{itemBg:"rgba(255, 255, 255, 0)",subMenuItemBg:"rgba(255, 255, 255, 0)",iconMarginInlineEnd:14,itemMarginInline:4,iconSize:14,collapsedWidth:50,itemActiveBg:"#eaeaea"},Typography:{titleMarginBottom:"0.2em",titleMarginTop:"0.8em"},Table:{cellPaddingBlock:4,cellPaddingInline:8},Pagination:{itemSize:20},Result:{iconFontSize:62,titleFontSize:20,colorError:"#00000073"}},o={colorBorder:"red",colorBgBase:"#fff"}},9102:function(e,t,r){r.r(t),r.d(t,{default:function(){return m}});var n=r(26068),o=r.n(n),i=r(48305),a=r.n(i),c=r(50959),u=r(36276),s=r(53531),l=r(98262),f=r(5855);r(15558),r(31759),r(90228),r(87999);new(r(49582).Parser)("mysql");var p=function(e){try{var t=localStorage.getItem(e);if(t)return function(e){try{return JSON.parse(e)}catch(t){if("string"!=typeof e||e.startsWith('"')||e.endsWith('"'))return e;try{return JSON.parse('"'.concat(e,'"'))}catch(t){return console.error("Failed to parse the input:",t),e}}}(t)}catch(e){console.error("Error while retrieving data from localStorage:",e)}},d=function(e,t){try{localStorage.setItem(e,JSON.stringify(t,null,2))}catch(e){console.error("Error while storing data in localStorage:",e)}};var h=r(11527),m=function(e){var t=e.children,r=e.locales,n=(0,c.useState)((function(){var t=e.algorithm,r=e.locale;return r||(r=p("locale"))||d("locale",r="en-US"),t||(t=p("algorithm"))||d("algorithm",t="defaultAlgorithm"),{components:p("components"),token:p("token"),algorithm:t,locale:r}})),i=a()(n,2),m=i[0],y=i[1],v=m.components,g=m.token,b=m.algorithm,x=m.locale,w=function(e){var t="defaultAlgorithm"===e;return{componentsConfig:{Menu:{itemBg:"rgba(255, 255, 255, 0)",subMenuItemBg:"rgba(255, 255, 255, 0)",iconMarginInlineEnd:14,itemMarginInline:4,iconSize:14,collapsedWidth:56,horizontalLineHeight:32,itemHeight:32},Typography:{titleMarginBottom:"0.2em",titleMarginTop:"0.8em"},Table:{cellPaddingBlock:4,cellPaddingInline:8},Pagination:{itemSize:20},Result:{iconFontSize:62,titleFontSize:20,colorError:t?"#00000073":"#ddd"}},tokenConfig:{colorBorder:t?"#F0F0F0":"#303030",colorBgBase:t?"#fff":"#1d1d1d",colorBgLayout:t?"#f5f7f9":"rgba(43,43,43,1)"}}}(b),E=w.componentsConfig,S=w.tokenConfig,k=function(){var e="defaultAlgorithm"===(0,f.useStudioProvier)().algorithm;return{sectionBackground:e?"#fff":"#0D0D0D",containerBackground:e?"#f5f7f9":"#020202",instanceBackground:e?"#FCFCFC":"",jobDetailBorder:e?"#efefef":"#323232",jobDetailColor:e?"#1F1F1F":"#808080",codeMirrorBorder:e?"#efefef":"#323232",editorBackground:e?"#fff":"#151515",editorForeground:e?"#212121":"#FFF",buttonBackground:e?"#fff":"#1d1d1d",layoutBackground:e?"#fff":"#020202"}}(),j="defaultAlgorithm"===b,O=r[x||"en-US"];return(0,h.jsx)(f.ContainerProvider,{value:o()({token:o()(o()({},S),g),components:o()(o()({},E),v),handleThemeOrLocale:function(e){var t=e.components,r=e.token;Object.keys(e).forEach((function(t){d(t,e[t])})),y((function(n){var i;return d("token",o()(o()({},n.token),r)),o()(o()({},n),{},{components:o()(o()({},n.components),t),token:o()(o()({},n.token),r),algorithm:e.algorithm||n.algorithm,locale:null!==(i=e.locale)&&void 0!==i?i:p("locale")})}))},algorithm:b,locale:x,isLight:j},k),children:(0,h.jsx)(l.Z,{messages:O,locale:x,children:(0,h.jsx)(u.ZP,{theme:{algorithm:j?s.Z.defaultAlgorithm:s.Z.darkAlgorithm,components:o()(o()({},E),v),token:o()(o()({},S),g)},children:t})})})}},5855:function(e,t,r){r.r(t),r.d(t,{ContainerContext:function(){return a},ContainerProvider:function(){return c},useStudioProvier:function(){return u}});var n=r(36075),o=r.n(n),i=r(50959),a=(0,i.createContext)({components:{},token:{},handleThemeOrLocale:function(e){o()(e)},locale:"en-US",algorithm:"defaultAlgorithm",isLight:!1}),c=a.Provider,u=function(){var e=(0,i.useContext)(a);if(void 0===e||0===Object.keys(e).length)throw new Error("useContext must be used within a ContainerProvider");return e}},78781:function(e,t,r){r.r(t),r.d(t,{default:function(){return u}});r(50959);var n=r(8395),o=r(11527),i={ResizeHandleOuter:{flex:"0 0 1.5em",position:"relative",outline:"none",transform:"rotate(90deg)",backgroundColor:"transparent"},ResizeHandleInner:{position:"absolute",top:"0.25em",bottom:"0.25em",left:"0.25em",right:"0.25em",borderRadius:"0.25em",backgroundColor:"transparent",transition:"background-color 0.2s linear"},Icon:{width:"1em",height:"1em",position:"absolute",left:"calc(50% - 0.5rem)",top:"calc(50% - 0.5rem)"}};function a(e){e.className;var t=e.id;return(0,o.jsx)(n.OT,{style:i.ResizeHandleOuter,id:t,children:(0,o.jsx)("div",{style:i.ResizeHandleInner,children:(0,o.jsx)("svg",{style:i.Icon,viewBox:"0 0 24 24",children:(0,o.jsx)("path",{fill:"currentColor",d:"M8,18H11V15H2V13H22V15H13V18H16L12,22L8,18M12,2L8,6H11V9H2V11H22V9H13V6H16L12,2Z"})})})})}var c={Container:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:"1rem"},Panel:{display:"flex",flexDirection:"row"},PanelContent:{height:"100%",width:"100%",borderRadius:"0.5rem"}},u=function(e){var t=e.leftSide,r=e.middleSide,i=e.rightSide,u=e.leftMinSize,s=void 0===u?20:u,l=e.leftMaxSize,f=void 0===l?40:l,p=e.rightMinSize,d=void 0===p?20:p,h=e.rightMaxSize,m=void 0===h?40:h;return(0,o.jsx)("div",{style:c.Container,children:(0,o.jsxs)(n.eh,{autoSaveId:"example",direction:"horizontal",children:[t&&[(0,o.jsx)(n.s_,{style:c.Panel,collapsible:!1,order:1,minSize:s,maxSize:f,children:(0,o.jsx)("div",{style:c.PanelContent,children:t})}),(0,o.jsx)(a,{},"left-handle")],(0,o.jsx)(n.s_,{style:c.Panel,collapsible:!1,order:2,children:(0,o.jsx)("div",{style:c.PanelContent,children:r})}),i&&[(0,o.jsx)(a,{},"right-handle"),(0,o.jsx)(n.s_,{style:c.Panel,collapsible:!1,order:3,minSize:d,maxSize:m,children:(0,o.jsx)("div",{style:c.PanelContent,children:i})})]]})})}},73174:function(e,t,r){r.d(t,{qp:function(){return i},rv:function(){return o}});var n=r(33741),o={mode:"GS_STUDIO_QUERY_MODE"},i=function(){return(0,n.qp)()}},16471:function(e,t,r){r.d(t,{Ek:function(){return n}});r(58002).Utils.storage;function n(e){return(e.match(/\r?\n/g)||[]).length+1}},70667:function(e,t,r){r.d(t,{Z:function(){return x}});var n=r(50959),o=r(58002),i=r(96066),a=(r(52871),r(26068)),c=r.n(a),u=r(15558),s=r.n(u),l={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},f={defaultToken:"",tokenPostfix:".gremlin",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["g","V","E","out","in","both","has","hasLabel","limit","order","by","select","count","filter","map","dedup","outE","inE","bothE"],builtinLiterals:["true","false","null"],builtinFunctions:["values","keys","id","label","property","outV","inV","bothV","sum","mean","min","max","coalesce","is","not","range","fold"],operators:["+","-","*","/","%","^","=","<>","<",">","<=",">="],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function","@keywords":"keyword","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[\+\-\*\/\^%]+/,"delimiter.operator"],[/[\!<>\?=\|&]/,"delimiter"]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}};var p=[].concat(["count","fold","sum","min","max","mean","group","groupCount"],["hasId","hasLabel","has","hasNot","is","where","not","dedup","order","limit","coin","sample","union"],["id","label","constant","valueMap","values","elementMap","select"]),d=["outV","inV","otherV","bothV"],h=["outE","inE","bothE","out","in","both"],m={};[].concat(d,["out","in","both"]).forEach((function(e){m[e]=[].concat(h,s()(p))})),["outE","inE","bothE"].forEach((function(e){m[e]=[].concat(d,s()(p))}));var y=r(11527);function v(e){return(e.match(/\r?\n/g)||[]).length+1}i.Mj.register({id:"gremlin"}),i.Mj.setMonarchTokensProvider("gremlin",f),i.Mj.setLanguageConfiguration("gremlin",l),i.Mj.registerCompletionItemProvider("gremlin",{triggerCharacters:["."],provideCompletionItems:function(e,t){var r,n=e.getLineContent(t.lineNumber).slice(0,t.column-1).trim(),o=function(e){var t=c()({g:["V","E"],V:[].concat(h,["match"],s()(p)),E:[].concat(d,s()(p))},m)[e]||[];return t.map((function(e){return{label:e,kind:i.Mj.CompletionItemKind.Function,documentation:e,insertText:"".concat(e,"()")}}))}((r=n.replace(/\(.*?\)/g,"").split(/\s|\./).filter(Boolean)).length>0?r[r.length-1]:"");return{suggestions:o}}});var g={cypher:"cypherTheme",gremlin:"GremlinTheme"},b=(0,n.forwardRef)((function(e,t){(0,o.useDynamicStyle)("\n.monaco-editor .view-overlays .current-line {\n background-color: transparent !important;\n}\n\n.monaco-editor .monaco-scrollable-element::-webkit-scrollbar {\n display: none;\n}\n\n.decorationsOverviewRuler {\n display: none !important;\n}\n\n.monaco-editor .view-overlays .current-line-exact {\n border: none !important;\n}\n\n.monaco-editor .scroll-decoration {\n box-shadow: none;\n}\n","cypher-editor-style");var r,a=e.value,c=e.language,u=void 0===c?"cypher":c,s=e.maxRows,l=void 0===s?10:s,f=e.minRows,p=void 0===f?1:f,d=e.onChangeContent,h=e.clear,m=e.onInit,b=d?0:v(a),x=(0,o.useStudioProvier)().isLight;return(0,n.useEffect)((function(){return t&&t.current&&(v(a)<=l&&(t.current.style.height=20*v(a)+"px"),r=i.j6.create(t.current,{language:"gremlin",value:a,theme:x?g[u]:"vs-dark",suggestLineHeight:20,automaticLayout:!0,minimap:{enabled:!1},fontSize:14,lineHeight:20,folding:!0,wordWrap:"on",scrollBeyondLastLine:!1,scrollBeyondLastColumn:0}),t.current.codeEditor=r,r.onDidChangeModelContent((function(){var e,n=r.getContentHeight(),o=null===(e=r.getModel())||void 0===e?void 0:e.getLineCount();n<=20*l&&(t.current.style.height=n+"px"),d&&d(o,r)})),m&&m(t.current)),function(){r.dispose()}}),[t,a,u,!x]),n.useEffect((function(){h&&t&&t.current&&t.current.codeEditor&&t.current.codeEditor.setValue("")}),[h]),(0,y.jsx)("div",{ref:t,style:{padding:"5px 0px",width:"100%",height:20*(p+b)+"px",border:x?"1px solid rgb(187, 190, 195)":"1px solid #434343",borderRadius:"6px"}})})),x=b},59506:function(e,t,r){r.r(t),r.d(t,{default:function(){return _}});var n=r(26068),o=r.n(n),i=r(48305),a=r.n(i),c=r(90228),u=r.n(c),s=r(87999),l=r.n(s),f=r(50959),p=r(53531),d=(r(73174),r(11527)),h=(p.Z.useToken,r(58002)),m=(p.Z.useToken,r(15558),r(54016));r(16483),m.Z.Text,m.Z.Title,p.Z.useToken;r(17069),r(25298),r(82092),"\n你的角色是一个 Cypher 查询助手,你可以根据 Schema 结构,给用户推荐你任务最重要的5条 Cypher 查询语句\n\n任务1: 根据 Schema 结构,自动推荐出关联性最大,最利于用户分析的 10 条Cypher查询语句\nSchema:\n".concat(JSON.stringify({nodes:[{label:"Paper",properties:[{name:"id",type:"DT_SIGNED_INT64"},{name:"conference",type:"DT_STRING"},{name:"CCFRank",type:"DT_STRING"},{name:"CCFField",type:"DT_STRING"},{name:"year",type:"DT_SIGNED_INT32"},{name:"paper",type:"DT_STRING"}],primary:"id"},{label:"Challenge",properties:[{name:"id",type:"DT_SIGNED_INT64"},{name:"challenge",type:"DT_STRING"}],primary:"id"},{label:"Topic",properties:[{name:"id",type:"DT_SIGNED_INT64"},{name:"category",type:"DT_STRING"}],primary:"id"},{label:"Task",properties:[{name:"id",type:"DT_SIGNED_INT64"},{name:"task",type:"DT_STRING"}],primary:"id"},{label:"Solution",properties:[{name:"id",type:"DT_SIGNED_INT64"},{name:"solution",type:"DT_STRING"}],primary:"id"},{label:"CCFField",properties:[{name:"id",type:"DT_SIGNED_INT64"},{name:"field",type:"DT_STRING"}],primary:"id"}],edges:[{label:"WorkOn",properties:[],primary:"WorkOn",constraints:[["Paper","Task"]]},{label:"Resolve",properties:[],primary:"Resolve",constraints:[["Paper","Challenge"]]},{label:"Target",properties:[{name:"number",type:"DT_SIGNED_INT32"}],primary:"Target",constraints:[["Task","Challenge"]]},{label:"Belong",properties:[],primary:"Belong",constraints:[["Task","Topic"]]},{label:"Use",properties:[],primary:"Use",constraints:[["Paper","Solution"]]},{label:"ApplyOn",properties:[],primary:"ApplyOn",constraints:[["Solution","Challenge"]]},{label:"HasField",properties:[],primary:"HasField",constraints:[["Paper","CCFField"]]},{label:"Citation",properties:[],primary:"Citation",constraints:[["Paper","Paper"]]}]},null,2),"\nAnswers:\n").concat(JSON.stringify([{cypher:"Match (n:Paper) return n limit 30",desc:"查询出 Paper 类型的节点"},{cypher:"MATCH (p:Paper)-[:WorkOn]->(a:Task),(a)-[:Belong]->(t: Topic) RETURN t.category, COUNT(p)",desc:"找出每个主题下的论文数量"},{cypher:"MATCH (t: Topic)<-[:Belong]-(a:Task),\n (a)<-[:WorkOn]-(p:Paper)-[:Use]->(s:Solution),\n (s)-[:ApplyOn]->(ch:Challenge)\n WHERE t.category = $topic_name\n RETURN t.category, ch.challenge, COUNT(p)",desc:"检索特定主题下,每个挑战(Challenge)所应用的解决方案(Solution)中与论文(Paper)相关的数量"}],null,2),"\n\n任务2: 根据 Schema 结构和用户的输入,生成 Cypher 查询语句,用于图数据库查询\n").concat("\n注意要以JSON的格式返回结果:\nRight Cases:\nquerys1: 列举出鲁迅的一个别名可以吗?\nanswer1: \"match (:ENTITY{name:'鲁迅'})<--(h)-[:Relationship{name:'别名'}]->(q) return distinct q.name limit 1\"\n\nquerys2: 我们常用的301SH不锈钢带的硬度公差是多少,你知道吗? \nanswers2: \"match(p:ENTITY{name:'301SH不锈钢带'})-[:Relationship{name:'硬度公差'}]-> (q) return q.name\"\nWrong Cases:\nquerys: 12344加油这首歌真好听,你知道歌曲原唱是谁吗? answers: MATCH (a:Actor)-[:ACTED_IN]->(m:Movie) WHERE m.name = '12345加油' RETURN a.name\nquerys: 七宗梦是什么时候上映的? answers: MATCH (a:Actor)-[:ACTED_IN]->(m:Movie) WHERE m.name = '七宗梦' RETURN a.name LIMIT 30\n","\n\nInstructions:\nNote: Do not include any explanations or apologies in your responses.\nDo not respond to any questions that might ask anything else than for you to construct a Cypher statement.\nDo not include any text except the generated Cypher statement.\nYou must use the relaship or property shown in the schema!!! do not use other keys!!!\nYou must use the relaship or property shown in the schema!!! do not use other keys!!!\nYou must use the relaship or property shown in the schema!!! do not use other keys!!!\n你必须使用Sechema中出现的关键词!!!\n\n当前会话中图的 Schema 结构如下:\n\n{graphSchema}\n\n你需要根据用户的提问,自动切换到上述两个任务中,并且给出正确返回,让我们开始吧!\n\n");r(335);p.Z.useToken,p.Z.useToken;r(53056),r(96513),m.Z.Title,r(16471),r(37339),r(33741);var y={"en-US":{Recommended:"Recommended",History:"History",Copilot:"Copilot",Saved:"Saved","Stored Procedures":"Stored Procedures","You can write cypher or gremlin queries, and then click the {icon} button to query data":"You can write cypher or gremlin queries, and then click the {icon} button to query data","Vertex Labels":"Vertex Labels","Edge Labels":"Edge Labels","Property Keys":"Property Keys","No saved query statements {br} You can click {icon} to save.":"No saved query statements {br} You can click {icon} to save.","No stored procedures available. {br} Go to the Extension and create one now!":"No stored procedures available. {br} Go to the Extension and create one now!","Privacy Security Notice":"Privacy Security Notice",Setting:"Setting","query.app.sidebar.gpt.setting.security":"To improve the quality of generated Cypher query statements, we'll utilize your graph data schema as the prompt for ChatGPT. Your data will be kept strictly confidential and solely used for this purpose.Furthermore, please note that your OpenAI API key is only stored locally in your browser for added security","OpenAI API key is only stored locally in your browser":"OpenAI API key is only stored locally in your browser","query.copilot.welcome":"Hello! I'm the GraphScope Query Assistant. Feel free to ask me any questions about Cypher or Gremlin queries.","recommend 5 interesting query statements":"recommend 5 interesting query statements","query any subgraph":"query any subgraph","insight the statistical distribution of vertex labels in the graph":"insight the statistical distribution of vertex labels in the graph",Save:"Save",Delete:"Delete",Query:"Query",Share:"Share","query submmited on {submitTime}. It's running ... ":"query submmited on {submitTime}. It's running ... ","query submmited on {submitTime}. Running {runningTime} ms":"query submmited on {submitTime}. Running {runningTime} ms","A total of {totalCount} records were retrieved":"A total of {totalCount} records were retrieved","A total of {totalCount} records were retrieved, including {nodeCount} nodes and {edgeCount} edges.":"A total of {totalCount} records were retrieved, including {nodeCount} nodes and {edgeCount} edges.",Color:"Color",Size:"Size",Caption:"Caption",LineWidth:"LineWidth","Node properties":"Node properties",Graph:"Graph",Table:"Table",Raw:"Raw","Style Setting":"Style Setting","You can click on each label to set the color, size, and display text for vertices and edges.":"You can click on each label to set the color, size, and display text for vertices and edges.","Export graph json":"Export graph json","Clustering layout":"Clustering layout","Vertex Properties":"Vertex Properties","Connect Endpoint":"Connect Endpoint","Connection URL":"Connection URL","Query language":"Query language","Query initiation method":"Query initiation method",Username:"Username",Password:"Password",Connect:"Connect",Close:"Close","Select nodes by box selection":"Select nodes by box selection","Switch graph view dimensions":"Switch graph view dimensions","Zoom to fitview":"Zoom to fitview",Fullscreen:"Fullscreen","Toggle Right Side":"Toggle Right Side","Caption Status":"Caption Status"},"zh-CN":{Recommended:"推荐查询",History:"历史查询",Copilot:"智能查询",Saved:"保存查询","Stored Procedures":"存储过程","You can write cypher or gremlin queries, and then click the {icon} button to query data":"您可以在这里编写 cypher 或 gremlin 语句,点击 {icon} 按钮查询数据","Vertex Labels":"节点类型","Edge Labels":"边类型","Property Keys":"属性字段","No saved query statements {br} You can click {icon} to save.":"暂无保存的查询语句 {br} 您可以点击 {icon} 保存","No stored procedures available. {br} Go to the Extension and create one now!":"暂无存储过程 {br} 快去 插件市场 创建一个吧","Privacy Security Notice":"隐私安全说明",Setting:"设置","query.app.sidebar.gpt.setting.security":"为了提高生成Cypher查询语句的质量,我们将使用您的图数据模式作为ChatGPT的提示。您的数据将被严格保密,仅用于此目的。此外,请注意我们的OpenAI API密钥仅存在于您的浏览器本地,以增加安全性。","OpenAI API key is only stored locally in your browser":"OpenAI API key 仅保存在您浏览器本地","query.copilot.welcome":"您好!我是 GraphScope 查询助理,您有任何关于 Cypher 或者 Gremlin 查询的问题都可以随时问我","recommend 5 interesting query statements":"帮我推荐5个有意思的查询","query any subgraph":"查询任意一个子图","insight the statistical distribution of vertex labels in the graph":"帮我分析图中节点类型的分布情况",Save:"保存",Delete:"删除",Query:"查询",Share:"分享","query submmited on {submitTime}. It's running ... ":"查询提交于 {submitTime}. 正在运行中...","query submmited on {submitTime}. Running {runningTime} ms":"查询提交于 {submitTime}. 查询时长 {runningTime} ms","A total of {totalCount} records were retrieved":"一共检索到 {totalCount} 条记录","A total of {totalCount} records were retrieved, including {nodeCount} nodes and {edgeCount} edges.":"一共检索到 {totalCount} 条记录, 其中包含 {nodeCount} 个节点,{edgeCount} 条边",Color:"颜色",Size:"大小",Caption:"文本",LineWidth:"边宽","Node properties":"属性详情",Graph:"图展示",Table:"表格展示",Raw:"原始数据","Style Setting":"样式设置","You can click on each label to set the color, size, and display text for vertices and edges.":"您可以单击每个标签来设置顶点和边缘的颜色、大小和显示文本。","Export graph json":"导出 json","Clustering layout":"集群布局","Vertex Properties":"节点属性","Connect Endpoint":"连接查询服务","Connection URL":"连接 URL","Query language":"查询语言","Query initiation method":"查询发起方式",Username:"用户名",Password:"密码",Connect:"连接",Close:"关闭","Select nodes by box selection":"通过框选选择节点","Switch graph view dimensions":"切换图表视图维度","Zoom to fitview":"缩放适当视图",Fullscreen:"全屏","Toggle Right Side":"切换右侧","Caption Status":"是否展示标签"}},v=(h.Utils.getSearchParams,r(39462)),g=r(40434),b=r(57526),x=r(16889),w=r(7234),E=r(38943),S=r(84155),k=h.Utils.storage,j=m.Z.Title,O=(m.Z.Text,function(e){var t=g.Z.useForm(),r=a()(t,1)[0],n=e.onConnect,o=e.onClose;f.useEffect((function(){r.setFieldsValue({query_language:e.query_language||k.get("query_language")||"cypher",query_endpoint:e.query_endpoint||k.get("query_endpoint")||"neo4j://127.0.0.1:7687",query_initiation:e.query_initiation||k.get("query_initiation")||"Browser",query_username:e.query_username||k.get("query_username")||"admin",query_password:e.query_password||k.get("query_password")||"password"})}),[]);return(0,d.jsxs)(b.Z,{vertical:!0,style:{padding:"12px 24px"},children:[(0,d.jsx)(j,{level:3,style:{marginBottom:"12px"},children:(0,d.jsx)(S.Z,{id:"Connect Endpoint"})}),(0,d.jsxs)(g.Z,{layout:"vertical",form:r,children:[(0,d.jsx)(g.Z.Item,{label:(0,d.jsx)(S.Z,{id:"Connection URL"}),name:"query_endpoint",children:(0,d.jsx)(x.Z,{})}),(0,d.jsx)(g.Z.Item,{label:(0,d.jsx)(S.Z,{id:"Query language"}),name:"query_language",children:(0,d.jsx)(w.default,{allowClear:!0,options:[{label:"Cypher",value:"cypher"},{label:"Gremlin",value:"gremlin"}]})}),(0,d.jsx)(g.Z.Item,{label:(0,d.jsx)(S.Z,{id:"Query initiation method"}),name:"query_initiation",children:(0,d.jsx)(w.default,{allowClear:!0,options:[{label:"Browser (client-side)",value:"Browser"},{label:'Server (Ensure that your "'.concat(location.origin,'/query" endpoint is available)'),value:"Server"}]})}),(0,d.jsx)(g.Z.Item,{label:(0,d.jsx)(S.Z,{id:"Username"}),name:"query_username",children:(0,d.jsx)(x.Z,{})}),(0,d.jsx)(g.Z.Item,{label:(0,d.jsx)(S.Z,{id:"Password"}),name:"query_password",children:(0,d.jsx)(x.Z.Password,{})}),(0,d.jsx)(g.Z.Item,{style:{marginTop:"48px"},children:(0,d.jsxs)(b.Z,{justify:"start",children:[(0,d.jsx)(E.ZP,{type:"primary",htmlType:"submit",style:{width:"100%",marginBottom:"12px",marginRight:"12px"},onClick:function(){var e=r.getFieldsValue(!0);Object.keys(e).forEach((function(t){k.set(t,e[t])})),n&&n(r.getFieldsValue(!0))},children:(0,d.jsx)(S.Z,{id:"Connect"})}),o&&(0,d.jsx)(E.ZP,{style:{width:"100%",marginBottom:"12px",marginRight:"12px"},onClick:o,children:(0,d.jsx)(S.Z,{id:"Close"})})]})})]})]})}),P=r(23639),T={},L=function(){var e=l()(u()().mark((function e(){var t,r,n,o,i=arguments;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:"cypher",r=i.length>1?i[1]:void 0,n=T.gremlin_driver,o=T.cypher_driver,"cypher"!==t){e.next=6;break}return o||(T.cypher_driver=new P.Or(r)),e.abrupt("return",T.cypher_driver);case 6:if("gremlin"!==t){e.next=9;break}return n||(T.gremlin_driver=new P.VP(r)),e.abrupt("return",T.gremlin_driver);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=function(e){var t=e||{},r=t.enableImmediateQuery,n=void 0!==r&&r,i=t.mode,c=void 0===i?"flow":i,s=t.id,p=void 0===s?"":s,m=t.timestamp,g=void 0===m?Date.now():m,b=t.graphId,x=void 0===b?"":b,w=t.schemaData,E=void 0===w?{nodes:[],edges:[]}:w,S=t.script,k=void 0===S?"Match (n) return n limit 10":S,j=t.onQuery,P=(0,f.useState)({language:e.language||"cypher",endpoint:e.endpoint||"127.0.0.1:7687"}),T=a()(P,2),C=T[0],I=T[1],_=C.language,N=C.endpoint,A=function(){var e=l()(u()().mark((function e(t){var r,n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.language,e.next=3,L(r,N);case 3:return n=e.sent,e.abrupt("return",n.query(t.script));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),D=function(){var e=l()(u()().mark((function e(t){var r;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.language,e.next=3,L(r,N);case 3:e.sent.close();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return j||N&&_?(0,d.jsx)(h.StudioProvier,{locales:y,children:(0,d.jsx)(v.default,{language:_,enableImmediateQuery:n,mode:c,active:!0,id:p,timestamp:g,graphId:x,schemaData:E,script:k,onQuery:j||A,onCancel:D})}):(0,d.jsx)(h.StudioProvier,{locales:y,children:(0,d.jsx)(O,{onConnect:function(e){I((function(t){return o()(o()({},t),{},{endpoint:e.query_endpoint||"",language:e.query_language})}))}})})},I=r(10422),_={render_query_statement:function(e){var t=(e||{}).id,r=void 0===t?"root":t;I.render((0,d.jsx)(C,o()({},e)),document.getElementById(r))}}},39462:function(e,t,r){r.r(t),r.d(t,{default:function(){return fe}});var n=r(90228),o=r.n(n),i=r(26068),a=r.n(i),c=r(87999),u=r.n(c),s=r(48305),l=r.n(s),f=r(50959),p=r(53531),d=r(16483),h=r.n(d),m=r(70667),y=r(57526),v=r(48722),g=r(54016),b=r(17905),x=r(38943),w=r(28541),E=r(42176),S=r(51558),k=r(45334),j=r(16889),O=r(15001),P=r(37528),T=r(11527),L=function(e){var t=e.onSave,r=(0,f.useRef)(null),n=(0,P.Z)();return(0,T.jsx)(b.Z,{title:n.formatMessage({id:"Save"}),children:(0,T.jsx)(k.Z,{title:"name your statement",description:(0,T.jsx)(j.Z,{width:"200px",ref:r}),onConfirm:function(){if(r.current){var e=r.current.input.value;console.log("InputRef.current",e),t&&t(e)}},onCancel:function(){},okText:"Save",cancelText:"Cancel",placement:"bottomRight",children:(0,T.jsx)(x.ZP,{type:"text",icon:(0,T.jsx)(O.Z,{})})})})},C=r(62950);var I=function(e){var t,r=e.onClose,n=e.onQuery,i=e.script,a=void 0===i?"Match (n) return n limit 10":i,c=e.onSave,s=e.id,l=e.isFetching,p=e.antdToken,d=(e.schemaData,e.timestamp,e.language),h=e.message,k=(0,f.useRef)(null),j=(0,P.Z)(),O=function(){var e=u()(o()().mark((function e(){var t,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=null==k||null===(t=k.current)||void 0===t||null===(t=t.codeEditor)||void 0===t?void 0:t.getValue(),n({id:s,script:r,language:d});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,T.jsxs)("div",{style:{},children:[(0,T.jsxs)(y.Z,{justify:"space-between",style:{paddingBottom:"8px"},children:[(0,T.jsx)(v.Z,{children:(0,T.jsxs)(g.Z.Text,{type:"secondary",style:{fontSize:"12px",textAlign:"center"},children:[(t=d,t.charAt(0).toUpperCase()+t.slice(1))," ",h]})}),(0,T.jsxs)(v.Z,{size:0,children:[(0,T.jsx)(b.Z,{title:j.formatMessage({id:"Query"}),children:(0,T.jsx)(x.ZP,{type:"text",icon:(0,T.jsx)(w.Z,{spin:l,style:{color:l?"#52c41a":p.green}}),onClick:O})}),c&&(0,T.jsx)(L,{onSave:function(e){var t,r=null==k||null===(t=k.current)||void 0===t||null===(t=t.codeEditor)||void 0===t?void 0:t.getValue(),n=(0,C.Z)();c&&c({id:n,script:r,name:e,language:d})}}),r&&(0,T.jsx)(b.Z,{title:j.formatMessage({id:"Share"}),children:(0,T.jsx)(x.ZP,{type:"text",icon:(0,T.jsx)(E.Z,{onClick:function(){var e,t=null==k||null===(e=k.current)||void 0===e||null===(e=e.codeEditor)||void 0===e?void 0:e.getValue();window.open("".concat(window.location.origin,"/querying?language=").concat(d,"&auto_run=true&global_script=").concat(encodeURIComponent(t)))}})})}),r&&(0,T.jsx)(b.Z,{title:j.formatMessage({id:"Delete"}),children:(0,T.jsx)(x.ZP,{type:"text",icon:(0,T.jsx)(S.Z,{onClick:function(){r&&r(s)}})})})]})]}),(0,T.jsx)(m.Z,{language:d,ref:k,value:a})]})},_=r(84723),N=r(15558),A=r.n(N),D=r(35215),R=r(31192),F=r(9069),Z=r(57591),G=r(88766),M=r(31759),q=r.n(M),z=r(7234),B=r(86976),U=function(e){var t=e.table,r=(0,f.useRef)(null),n=f.useState((function(){var e=function(e){var t=e[0],r={},n=[];Object.keys(t).forEach((function(e){var o=q()(t[e]);r[e]={key:e,type:o,enums:new Set},"number"===o&&n.push(e)})),e.forEach((function(e){Object.keys(e).forEach((function(t){r[t].enums.add(e[t])}))}));var o=Object.values(r).filter((function(e){return"string"===e.type})).sort((function(e,t){return e.enums.size1?"point":"interval",x:a||u,y:i,color:s,keys:Object.keys(r)}}(t);return{x:e.x,y:e.y,color:e.color,type:e.type,options:e.keys.map((function(e){return{label:e,value:e}}))}})),o=l()(n,2),i=o[0],c=o[1];console.log(i);var u=i.type,s=i.x,p=i.y,d=i.color,h=i.options;(0,f.useEffect)((function(){var e;return r.current&&((e=new B.kL({container:r.current,autoFit:!0})).options({type:u,data:t,encode:{x:s,y:p,color:d},transform:[{type:"dodgeX"}]}),e.render()),function(){r.current&&e.destroy()}}),[u,s,p,t,d,r]);return(0,T.jsxs)("div",{style:{padding:"16px",overflowX:"hidden"},children:[(0,T.jsxs)(v.Z,{style:{paddingBottom:"16px"},children:["Type:",(0,T.jsx)(z.default,{size:"small",defaultValue:u,style:{width:120},onChange:function(e){c((function(t){return a()(a()({},t),{},{type:e})}))},options:[{label:"interval",value:"interval"},{label:"point",value:"point"}]}),"X:",(0,T.jsx)(z.default,{size:"small",defaultValue:s,style:{width:120},onChange:function(e){c((function(t){return a()(a()({},t),{},{x:e})}))},options:h}),"Y:",(0,T.jsx)(z.default,{size:"small",defaultValue:p,style:{width:120},onChange:function(e){c((function(t){return a()(a()({},t),{},{y:e})}))},options:h}),"Color:",(0,T.jsx)(z.default,{size:"small",defaultValue:d,style:{width:120},onChange:function(e){c((function(t){return a()(a()({},t),{},{color:e})}))},options:h})]}),(0,T.jsx)("div",{ref:r,style:{width:"100%"}})]})},Y=r(58002),H=r(35731),V=r(36523),Q=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12px",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-8px";return(0,T.jsx)(T.Fragment,{children:Object.entries(t).map((function(t){var o=l()(t,2),i=o[0],a=o[1];return(0,T.jsxs)("div",{style:{paddingLeft:"16px",overflowWrap:"break-word",wordBreak:"break-all",whiteSpace:"pre-wrap"},children:[(0,T.jsxs)("span",{style:{color:"#F9822F",paddingLeft:r},children:['"',i,'" :']}),(0,T.jsx)("span",{style:{paddingLeft:"6px",textIndent:n},children:"object"===q()(a)&&null!==a?(0,T.jsxs)(T.Fragment,{children:["{",e(a,"24px","16px"),"}"]}):JSON.stringify(a,null,2)})]},i)}))})},W=function(e){var t=e.expandData,r=e.width;return(0,T.jsx)(y.Z,{children:Object.values(t).map((function(e){return e.key&&(0,T.jsxs)("div",{style:{marginLeft:"12px",width:"".concat(r,"%")},children:["{",Q(e.data),"}"]},e.key)}))})},K=function(e){var t=e.data,r=t.map((function(e){var t=e.keys,r=e._fields;return t.reduce((function(e,t,n){var o=r[n];return e[t]={key:(0,C.Z)(),elementId:o.elementId,data:o,labels:o.labels?o.labels[0]:void 0,type:o.type,startNodeElementId:o.startNodeElementId,endNodeElementId:o.endNodeElementId},e.key=(0,C.Z)(),e}),{})})),n=t[0].keys,o=100/n.length,i=[{title:"#",dataIndex:"index",key:"index",width:"30px",render:function(e,t,r){return r+1}}].concat(A()(n.map((function(e){return{title:e,width:"".concat(o,"%"),key:(0,C.Z)(),render:function(t){return r=t[e],n=r.startNodeElementId,o=r.endNodeElementId,i=r.type,a=r.elementId,c=r.labels,n&&o?(0,T.jsxs)("span",{children:["{",(0,T.jsx)(Y.Icons.Arrow,{style:{color:"#F97108"}})," : ",i," } ID ",a]}):(0,T.jsxs)("span",{children:["{",(0,T.jsx)(Y.Icons.Punctuation,{style:{color:"#B668B0"}})," : ",c," } ID ",a]});var r,n,o,i,a,c}}}))),[D.Z.EXPAND_COLUMN]);return(0,T.jsx)(D.Z,{size:"small",columns:i,dataSource:r,expandable:{expandedRowRender:function(e){return(0,T.jsx)(W,{expandData:e,width:o})},expandIcon:function(e){var t=e.expanded,r=e.onExpand,n=e.record;return t?(0,T.jsx)(H.Z,{style:{color:"#F97108"},onClick:function(e){return r(n,e)}}):(0,T.jsx)(V.Z,{onClick:function(e){return r(n,e)}})},expandRowByClick:!0}})},$=function(e){var t=e.data,r=t[0],n=Object.keys(r),o=[{title:"#",dataIndex:"index",key:"index",width:"30px",render:function(e,t,r){return r+1}}].concat(A()(n.map((function(e){return{title:e,dataIndex:e,width:"".concat(100/n.length,"%"),key:e}})))),i=t.map((function(e){return a()(a()({},e),{},{key:e.id})}));return(0,T.jsx)(D.Z,{size:"small",columns:o,dataSource:i})},J=function(e){var t,r=e.data,n=r.table,o=void 0===n?[]:n,i=r.nodes,c=void 0===i?[]:i,u=r.edges,s=void 0===u?[]:u,p=r.raw,d=c.length,h=s.length,m=o.length,w=(0,P.Z)();t=0===d&&0===h&&0!==m?w.formatMessage({id:"A total of {totalCount} records were retrieved"},{totalCount:m}):w.formatMessage({id:"A total of {totalCount} records were retrieved, including {nodeCount} nodes and {edgeCount} edges."},{totalCount:d+h,nodeCount:d,edgeCount:h});var E,S=(0,f.useState)("table"),k=l()(S,2),j=k[0],O=k[1];return"table"===j&&0!==o.length&&(E=(0,T.jsx)($,{data:o})),"table"===j&&0===o.length&&0!==p.records.length&&(E=(0,T.jsx)(K,{data:p.records})),(0,T.jsxs)("div",{style:{overflowX:"scroll"},children:[(0,T.jsxs)(y.Z,{justify:"space-between",style:{padding:"0px 10px 10px 10px"},align:"center",children:[(0,T.jsx)(g.Z.Text,{children:t}),(0,T.jsxs)(v.Z,{children:[(0,T.jsx)(R.Z,{value:j,onChange:function(e){O(e)},options:[{value:"chart",icon:(0,T.jsx)(F.Z,{}),label:"chart"},{value:"table",icon:(0,T.jsx)(Z.Z,{})}]}),(0,T.jsx)(b.Z,{title:"download",children:(0,T.jsx)(x.ZP,{icon:(0,T.jsx)(G.Z,{}),type:"text",onClick:function(){var e=c.map((function(e){var t=e.id,r=e.label,n=e.properties,o=void 0===n?{}:n;return a()({id:t,label:r},o)})),t=s.map((function(e){var t=e.id,r=e.label,n=e.source,o=e.target,i=e.properties,c=void 0===i?{}:i;return a()({id:t,label:r,source:n,target:o},c)}));Y.Utils.createDownload(JSON.stringify({nodes:e,edges:t},null,2),"result.json")},children:" "})})]})]}),E,"chart"===j&&0!==o.length&&(0,T.jsx)(U,{table:o})]})},X=r(55874),ee=r(29643),te=r(24174),re=r.n(te),ne=function(e){var t=e.data;return e.isFetching?(0,T.jsx)(X.ZP,{icon:(0,T.jsx)(ee.Z,{spin:!0}),status:"success",title:"Running"}):"error"===t.mode?(0,T.jsx)(X.ZP,{status:"error",title:t.raw&&t.raw.name,subTitle:t.raw&&t.raw.message}):(0,T.jsx)("div",{children:(0,T.jsx)(re(),{src:t.raw})})},oe=r(53056),ie=r(13049),ae=r(31931),ce=function(e){var t=e.data,r=e.isFetching,n=e.schemaData,o=e.graphId,i=(e.onQuery,f.useState(null)),a=l()(i,2),c=a[0],u=a[1],s=(0,P.Z)(),p=function(e,t,r){var n=e.nodes,o=void 0===n?[]:n,i=e.edges,a=void 0===i?[]:i,c=e.table,u=void 0===c?[]:c,s=(e.raw,o.length>0),l=a.length>0,f=u.length>0,p="raw",d=["raw"];return s&&(p="graph",d=["raw","table","graph"]),!s&&l&&(p="table",d=["raw","table"]),s||l||!f||(p="table",d=["raw","table"]),r&&(p=r),t&&(d=["raw"],p="raw"),{viewMode:p,options:d}}(t,r,c),d=p.viewMode,h=p.options,m=function(e){return-1!==h.indexOf(e)},y=[{label:s.formatMessage({id:"Graph"}),key:"graph",icon:(0,T.jsx)(ie.Z,{}),children:(0,T.jsx)(oe.Z,{data:t,schemaData:n,graphId:o}),disabled:!m("graph")},{label:s.formatMessage({id:"Table"}),key:"table",icon:(0,T.jsx)(Z.Z,{}),children:(0,T.jsx)(J,{data:t}),disabled:!m("table")},{label:s.formatMessage({id:"Raw"}),key:"raw",icon:(0,T.jsx)(ae.Z,{}),children:(0,T.jsx)(ne,{data:t,isFetching:r}),disabled:!m("raw")}];return(0,T.jsx)("div",{style:{padding:"16px 0px"},children:(0,T.jsx)(_.Z,{items:y,size:"small",type:"card",activeKey:d,onChange:function(e){u(e)}})})},ue=(0,f.memo)(ce),se=p.Z.useToken,le=function(e){var t=e.onQuery,r=e.onClose,n=e.onCancel,i=e.onSave,c=e.script,s=e.id,p=e.active,d=e.mode,m=e.schemaData,y=e.enableImmediateQuery,v=e.graphId,g=e.timestamp,b=e.language,x=se().token,w=(0,P.Z)(),E=p&&"flow"===d?{border:"1px solid ".concat(x.colorBorder)}:{border:"1px solid ".concat(x.colorBorder)},S=(0,f.useRef)(null),k=(0,f.useState)({data:{},isFetching:!1,startTime:0,endTime:0,abort:!1}),j=l()(k,2),O=j[0],L=j[1],C=O.data,_=O.isFetching,N=O.startTime,A=O.endTime;(0,f.useEffect)((function(){S.current&&p&&"flow"===d&&S.current.scrollIntoView({behavior:"smooth"})}),[p]);var D=function(){var e=u()(o()().mark((function e(r){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_){e.next=4;break}return n&&n(r),L((function(e){return a()(a()({},e),{},{isFetching:!1,data:{}})})),e.abrupt("return");case 4:return L((function(e){return a()(a()({},e),{},{isFetching:!0,startTime:(new Date).getTime()})})),e.next=7,t(r);case 7:i=e.sent,L((function(e){return a()(a()({},e),{},{data:i,isFetching:!1,endTime:(new Date).getTime()})}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){y&&(console.log("enableImmediateQuery script",y,c,b),D({id:s,script:c,language:b}))}),[y]);var R=A-N<0?w.formatMessage({id:"query submmited on {submitTime}. It's running ... "},{submitTime:h()(N).format("HH:mm:ss YYYY-MM-DD")}):w.formatMessage({id:"query submmited on {submitTime}. Running {runningTime} ms"},{submitTime:h()(N).format("HH:mm:ss YYYY-MM-DD"),runningTime:A-N});return(0,T.jsxs)("div",{ref:S,style:a()(a()({display:"flex",flexDirection:"column",flex:1,margin:"12px",padding:"8px 16px",borderRadius:"8px"},E),{},{background:x.colorBgContainer}),children:[(0,T.jsx)(I,{message:R,language:b,timestamp:g,schemaData:m,id:s,script:c,onClose:r,onQuery:D,onSave:i,isFetching:_,antdToken:x}),(0,T.jsx)(ue,{data:C,isFetching:_,schemaData:m,graphId:v,onQuery:t})]})},fe=(0,f.memo)(le)},53056:function(e,t,r){r.d(t,{Z:function(){return R}});var n=r(26068),o=r.n(n),i=r(48305),a=r.n(i),c=r(67825),u=r.n(c),s=r(50959),l=r(17905),f=r(38943),p=r(53531),d=r(84155),h=r(58002),m=r(96513),y=r(24279),v=r(63806),g=r(90228),b=r.n(g),x=r(87999),w=r.n(x),E=r(23639),S=h.Utils.storage,k=function(){var e=w()(b()().mark((function e(t){var r,n,o,i,a,c;return b()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=S.get("query_language")||"cypher",n=S.get("query_endpoint")||"",o=S.get("query_initiation"),i=S.get("query_username"),a=S.get("query_password"),e.prev=5,c={script:t,language:r,endpoint:n,username:i,password:a},"Server"!==o){e.next=11;break}return e.next=10,fetch("/graph/query",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then((function(e){return e.json()})).then((function(e){return e.success?e.data:{nodes:[],edges:[]}}));case 10:return e.abrupt("return",e.sent);case 11:return e.abrupt("return",(0,E.aq)(c));case 14:return e.prev=14,e.t0=e.catch(5),e.abrupt("return",{nodes:[],edges:[]});case 17:case"end":return e.stop()}}),e,null,[[5,14]])})));return function(t){return e.apply(this,arguments)}}(),j=function(){var e=w()(b()().mark((function e(t){var r,n,o,i;return b()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.key,n=t.selectIds,o="\n MATCH ".concat(r,"\n WHERE elementId(a) IN [").concat(n,"] \n RETURN a,b,c\n "),e.next=4,k(o);case 4:return i=e.sent,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=function(){var e=w()(b()().mark((function e(t){var r,n;return b()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.schema,n={all:[{key:"(a)-[b]-(c)",label:"One-Hop Neighbors"}]},r.nodes.forEach((function(e){n[e.label]=P(r,e.label)})),e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function P(e,t){var r=[];return e.edges.forEach((function(e){var n=e.source,o=e.target,i=e.label;if((t===n||t===o)&&n===o)return"both",void r.push({key:"(a:".concat(n,")-[b:").concat(i,"]-(c:").concat(o,")"),label:"[".concat(i,"]-(").concat(o,")")});n===t&&("out",r.push({key:"(a:".concat(n,")-[b:").concat(i,"]->(c:").concat(o,")"),label:"[".concat(i,"]->(").concat(o,")")})),o===t&&("in",r.push({key:"(a:".concat(n,")<-[b:").concat(i,"]-(c:").concat(o,")"),label:"[".concat(i,"]<-(").concat(o,")")}))})),[{key:"(a)-[b]-(c)",label:"One-Hop Neighbors"}].concat(r)}var T={queryNeighborData:j,queryNeighborItems:O,queryStatement:k},L=function(){var e=w()(b()().mark((function e(t){var r,n,o,i;return b()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.selectIds,n=r.join(","),o="g.V().hasId(".concat(n,").both().dedup()"),e.next=5,k(o);case 5:return i=e.sent,e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),C=function(){var e=w()(b()().mark((function e(t){return b()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{all:[{key:"(a)-[b]-(c)",label:"One-Hop Neighbors"}]});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I={queryStatement:k,queryNeighborData:L,queryNeighborItems:C},_=r(11527),N=function(){var e=(0,h.useSection)().toggleLeftSide;return(0,_.jsx)(l.Z,{title:(0,_.jsx)(d.Z,{id:"Style settings"}),placement:"left",children:(0,_.jsx)(f.ZP,{icon:(0,_.jsx)(v.Z,{}),onClick:function(){return e()},type:"text"})})};(0,m.registerIcons)();var A=function(e){var t=e.data,r=e.schema,n=e.graphId,o=e.id,i=(0,s.useRef)(null),a="gremlin"===h.Utils.storage.get("query_language")?I:T,c=p.Z.useToken().token;return(0,_.jsx)("div",{style:{borderRadius:"8px",height:"500px",background:c.colorBgContainer},ref:i,children:(0,_.jsx)(m.GraphProvider,{id:o,services:a,children:(0,_.jsxs)(h.Section,{splitBorder:!0,leftSide:(0,_.jsx)(m.StyleSetting,{}),autoResize:!1,rightSideStyle:{width:"300px",padding:"12px 0px 12px 18px"},defaultCollapsed:{leftSide:!0,rightSide:!0},children:[(0,_.jsx)(m.Prepare,{data:t,schema:r,graphId:n}),(0,_.jsx)(m.Canvas,{}),(0,_.jsx)(m.ZoomStatus,{}),(0,_.jsx)(m.BasicInteraction,{}),(0,_.jsx)(m.ClearStatus,{}),(0,_.jsx)(m.PropertiesPanel,{}),(0,_.jsx)(m.Loading,{}),(0,_.jsxs)(m.ContextMenu,{children:[(0,_.jsx)(m.NeighborQuery,{}),(0,_.jsx)(m.DeleteLeafNodes,{}),(0,_.jsx)(m.DeleteNode,{})]}),(0,_.jsxs)(m.Toolbar,{style:{position:"absolute",top:"20px",left:"20px",right:"unset"},children:[(0,_.jsx)(N,{}),(0,_.jsx)(y.Z,{style:{margin:"0px"}}),(0,_.jsx)(h.FullScreen,{containerRef:i}),(0,_.jsx)(m.ZoomFit,{}),(0,_.jsx)(m.Brush,{}),(0,_.jsx)(m.FixedMode,{}),(0,_.jsx)(y.Z,{style:{margin:"0px"}}),(0,_.jsx)(m.SwitchEngine,{}),(0,_.jsx)(m.RunCluster,{}),(0,_.jsx)(m.Export,{})]})]})})})},D=["properties","constraints"];var R=function(e){var t,r=e.data,n=e.schemaData,i=e.graphId,c={nodes:(t=n).nodes,edges:t.edges.map((function(e){var t=e.properties,r=e.constraints,n=u()(e,D),i=a()(r[0],2),c=i[0],s=i[1];return o()(o()({},n),{},{source:c,target:s,properties:t})}))};return(0,_.jsx)("div",{style:{width:"100%"},children:(0,_.jsx)(A,{data:r,schema:c,graphId:i})})}},15776:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(85430);const n=[{value:"update studio graph",paraId:0,tocIndex:2},{value:"update website",paraId:1,tocIndex:4},{value:"update studio graph",paraId:2,tocIndex:6},{value:"update site",paraId:3,tocIndex:8},{value:"update studio-graph",paraId:4,tocIndex:10},{value:"update studio",paraId:5,tocIndex:12},{value:"update site",paraId:6,tocIndex:14},{value:"update version",paraId:7,tocIndex:16},{value:"update",paraId:8,tocIndex:18},{value:"update version",paraId:9,tocIndex:20},{value:"update graph",paraId:10,tocIndex:22},{value:"First Release",paraId:11,tocIndex:24}]},70857:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(8646);const n=[]},12457:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(4480);const n=[]},2565:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(93238);const n=[]},74972:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(48741);const n=[]},27705:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(36666);const n=[{value:"open source : ",paraId:0,tocIndex:0},{value:"https://undraw.co/illustrations",paraId:0,tocIndex:0}]},54520:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(19895);const n=[]},57481:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(54581);const n=[]},28748:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(518);const n=[]},41895:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(3750);const n=[]},56309:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(43716);const n=[]},90389:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(43765);const n=[]},20391:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(44412);const n=[]},27388:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(85792);const n=[]},14872:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(44117);const n=[]},95081:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(4866);const n=[{value:"storage",paraId:0,tocIndex:0},{value:"isDarkTheme",paraId:0,tocIndex:0},{value:"debounce",paraId:0,tocIndex:0}]},13588:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(93995);const n=[]},26103:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(26973);const n=[]},31404:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(67866);const n=[]},2500:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(37275);const n=[]},22211:function(e,t){t.Z="/** components 基础配置 */\nexport const components = {\n Menu: {\n itemBg: 'rgba(255, 255, 255, 0)',\n subMenuItemBg: 'rgba(255, 255, 255, 0)',\n iconMarginInlineEnd: 14,\n itemMarginInline: 4,\n iconSize: 14,\n collapsedWidth: 50,\n itemActiveBg: '#eaeaea',\n },\n Typography: {\n titleMarginBottom: '0.2em',\n titleMarginTop: '0.8em',\n },\n Table: {\n cellPaddingBlock: 4, //\t单元格纵向内间距\n cellPaddingInline: 8, //单元格横向内间距(默认大尺寸)\n },\n Pagination: {\n itemSize: 20,\n },\n Result: {\n iconFontSize: 62,\n titleFontSize: 20,\n colorError: '#00000073',\n },\n};\n\n/** token 基础配置 */\nexport const token = {\n colorBorder: 'red',\n colorBgBase: '#fff',\n};\n"},20880:function(e,t){t.Z="import React, { useEffect, useState } from 'react';\nimport { ConfigProvider, theme } from 'antd';\nimport { IntlProvider } from 'react-intl';\nimport { ContainerProvider } from './useThemeConfigProvider';\nimport type { ThemeProviderType } from './useThemeConfigProvider';\nimport { storage } from '../Utils';\nimport { getThemeConfig } from './getThemeConfig';\nimport { useCustomToken } from './useCustomToken';\n\ntype IThemeProvider = {\n locales: {\n 'zh-CN': Record;\n 'en-US': Record;\n };\n children: React.ReactNode;\n locale?: 'zh-CN' | 'en-US';\n algorithm?: 'defaultAlgorithm' | 'darkAlgorithm';\n};\n\nconst Provider: React.FC = props => {\n const { children, locales } = props;\n const [state, setState] = useState(() => {\n let { algorithm, locale } = props;\n if (!locale) {\n locale = storage.get('locale');\n if (!locale) {\n locale = 'en-US';\n storage.set('locale', locale);\n }\n }\n if (!algorithm) {\n algorithm = storage.get('algorithm');\n if (!algorithm) {\n algorithm = 'defaultAlgorithm';\n storage.set('algorithm', algorithm);\n }\n }\n return {\n components: storage.get('components'),\n token: storage.get('token'),\n algorithm,\n locale,\n };\n });\n\n const { components, token, algorithm, locale } = state;\n const { componentsConfig, tokenConfig } = getThemeConfig(algorithm);\n const colorConfig = useCustomToken();\n const isLight = algorithm === 'defaultAlgorithm';\n\n const handleThemeOrLocale = (themeConfig: Partial) => {\n const { components, token } = themeConfig;\n Object.keys(themeConfig).forEach(key => {\n storage.set(key, themeConfig[key]);\n });\n\n setState(preState => {\n // 特殊化处理,切token数据需初始化数据做基础\n storage.set('token', { ...preState.token, ...token });\n return {\n ...preState,\n components: { ...preState.components, ...components },\n token: { ...preState.token, ...token },\n algorithm: themeConfig.algorithm || preState.algorithm,\n locale: themeConfig.locale ?? storage.get('locale'),\n };\n });\n };\n\n const messages = locales[locale || 'en-US'];\n\n return (\n \n \n \n {children}\n \n \n \n );\n};\n\nexport default Provider;\n"},88241:function(e,t){t.Z="import { createContext, useContext } from 'react';\nimport type { IColorStore } from './getThemeConfig';\nexport interface ThemeProviderType extends IColorStore {\n algorithm?: 'defaultAlgorithm' | 'darkAlgorithm';\n components?: { [key: string]: { [key: string]: string | number } };\n token?: { [key: string]: string | number };\n locale?: 'zh-CN' | 'en-US';\n isLight?: boolean;\n}\nexport interface IContainerContext extends ThemeProviderType {\n handleThemeOrLocale: (value: ThemeProviderType) => void;\n}\nexport const ContainerContext = createContext({\n components: {},\n token: {},\n handleThemeOrLocale: ({}) => {},\n locale: 'en-US',\n algorithm: 'defaultAlgorithm',\n isLight: false,\n});\n\nexport const ContainerProvider = ContainerContext.Provider;\n\nexport const useStudioProvier = () => {\n const context = useContext(ContainerContext);\n\n if (context === undefined || Object.keys(context).length === 0) {\n throw new Error(`useContext must be used within a ContainerProvider`);\n }\n return context;\n};\n"},17239:function(e,t){t.Z="import React from 'react';\nimport { Panel, PanelGroup } from 'react-resizable-panels';\nimport ResizeHandle from './ResizeHandle';\n\ninterface IResizablePanelsProps {\n leftSide?: React.ReactNode;\n middleSide?: React.ReactNode;\n rightSide?: React.ReactNode;\n leftMinSize?: number;\n leftMaxSize?: number;\n rightMinSize?: number;\n rightMaxSize?: number;\n}\n\nconst styles: Record = {\n Container: {\n width: '100%',\n height: '100%',\n display: 'flex',\n flexDirection: 'column',\n gap: '1rem',\n },\n Panel: { display: 'flex', flexDirection: 'row' },\n PanelContent: {\n height: '100%',\n width: '100%',\n borderRadius: '0.5rem',\n },\n};\n\nconst ResizablePanels: React.FC = ({\n leftSide,\n middleSide,\n rightSide,\n leftMinSize = 20,\n leftMaxSize = 40,\n rightMinSize = 20,\n rightMaxSize = 40,\n}) => {\n const renderLeftPanel = () => (\n \n
{leftSide}
\n
\n );\n\n const renderRightPanel = () => (\n \n
{rightSide}
\n
\n );\n\n return (\n
\n \n {leftSide && [renderLeftPanel(), ]}\n \n
{middleSide}
\n
\n {rightSide && [, renderRightPanel()]}\n
\n
\n );\n};\n\nexport default ResizablePanels;\n"},9534:function(e,t){t.Z="import StatementQuery from './query-statement';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\nexport default {\n render_query_statement: config => {\n const { id = 'root' } = config || {};\n ReactDOM.render(, document.getElementById(id));\n },\n};\n"}}]); \ No newline at end of file +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[56],{23639:function(e,t,r){r.d(t,{Or:function(){return v},VP:function(){return Z},aq:function(){return fe}});var n=r(71909),o=r.n(n);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function f(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){f(i,n,o,a,c,"next",e)}function c(e){f(i,n,o,a,c,"throw",e)}a(void 0)}))}}function d(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function T(e,t){if(e){if("string"==typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(e,t):void 0}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function I(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){I(i,n,o,a,c,"next",e)}function c(e){I(i,n,o,a,c,"throw",e)}a(void 0)}))}}function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"admin",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"password";N(this,e),D(this,"driver",void 0),D(this,"uri",void 0);try{var o=new(w().driver.auth.PlainTextSaslAuthenticator)(r,n),i=new(w().driver.Client)(t,{traversalSource:"g",authenticator:o});this.uri=t,this.driver=i}catch(e){console.log(e)}}var t,r,n,o,i,a,c,u,s,l,f,p,d;return t=e,r=[{key:"connect",value:(d=_(C().mark((function e(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.driver){e.next=4;break}return e.next=3,this.driver.verifyConnectivity();case 3:return e.abrupt("return",!0);case 4:return e.abrupt("return",!1);case 5:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"getSession",value:(p=_(C().mark((function e(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.driver){e.next=2;break}return e.abrupt("return",this.driver);case 2:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"query",value:(f=_(C().mark((function e(t){var r,n,o,i,a,c,u,s,l,f,p,d,h,m,y,v,g,b;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[],e.prev=1,console.log("%c[Query] 查询语句","color:blue",t),e.next=5,this.driver.submit(t);case 5:r=e.sent,console.log("%c[Query] 查询结果","color:green",r),e.next=12;break;case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",{nodes:[],edges:[],raw:e.t0,mode:"error"});case 12:n="graph",o=[],i={},a={},c=new Set,u=P(r),e.prev=18,u.s();case 20:if((s=u.n()).done){e.next=71;break}if(!((l=s.value)instanceof w().structure.Vertex)){e.next=27;break}return e.next=25,this.handleVertexMapping(a,c,l);case 25:e.next=69;break;case 27:if(!(l instanceof w().structure.Edge)){e.next=32;break}return e.next=30,this.handleEdgeMapping(a,i,c,l);case 30:e.next=69;break;case 32:if(!(l instanceof w().structure.Path)){e.next=35;break}e.next=69;break;case 35:if(!this.isGSExpandPath(l)){e.next=62;break}f=P(l),e.prev=37,f.s();case 39:if((p=f.n()).done){e.next=50;break}if(!((d=p.value)instanceof w().structure.Vertex)){e.next=46;break}return e.next=44,this.handleVertexMapping(a,c,d);case 44:e.next=48;break;case 46:return e.next=48,this.handleEdgeMapping(a,i,c,d);case 48:e.next=39;break;case 50:e.next=55;break;case 52:e.prev=52,e.t1=e.catch(37),f.e(e.t1);case 55:return e.prev=55,f.f(),e.finish(55);case 58:return e.next=60,this.handleTableResult(o,l);case 60:e.next=69;break;case 62:if(n="table","number"!=typeof l&&"string"!=typeof l){e.next=67;break}o.push(l),e.next=69;break;case 67:return e.next=69,this.handleTableResult(o,l);case 69:e.next=20;break;case 71:e.next=76;break;case 73:e.prev=73,e.t2=e.catch(18),u.e(e.t2);case 76:return e.prev=76,u.f(),e.finish(76);case 79:if("graph"!==n){e.next=84;break}return e.next=82,this.queryNodesProperties(O(c));case 82:for(m in h=e.sent)m in a&&(a[m].properties=h[m]);case 84:if("graph"!==n){e.next=90;break}for(g in y=[],v=[],a)y.push(a[g]);for(b in i)v.push(i[b]);return e.abrupt("return",{nodes:y,edges:v,mode:n,table:o,raw:r});case 90:if("table"!==n){e.next=92;break}return e.abrupt("return",{nodes:[],edges:[],mode:n,table:o,raw:r});case 92:case"end":return e.stop()}}),e,this,[[1,9],[18,73,76,79],[37,52,55,58]])}))),function(e){return f.apply(this,arguments)})},{key:"isGSExpandPath",value:function(e){if(!e instanceof Array)return!1;try{var t,r=!0,n=!1,o=P(e);try{for(o.s();!(t=o.n()).done;){var i=t.value;r&&(r=i instanceof w().structure.Vertex||i instanceof w().structure.Edge),i instanceof w().structure.Edge&&(n=!0)}}catch(e){o.e(e)}finally{o.f()}return r&&n}catch(e){return!1}return!1}},{key:"jsonGraphData",value:(l=_(C().mark((function e(t){var r,n,o,i,a,c,u,s,l;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r={},n=t.id,o=t.label,i=t.properties,r.id="".concat(n),r.label=o,i){for(c in a={},i)(u=i[c])&&u[0]&&(a["".concat(c)]=u[0].value);r.properties=a}if(!(t instanceof w().structure.Edge)){e.next=13;break}return s=t.inV,l=t.outV,e.next=9,this.jsonGraphData(s);case 9:return r.inV=e.sent,e.next=12,this.jsonGraphData(l);case 12:r.outV=e.sent;case 13:return e.abrupt("return",r);case 14:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"handleVertexMapping",value:(s=_(C().mark((function e(t,r,n){var o;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.jsonGraphData(n);case 2:o=e.sent,t[o.id]=j(j({},o),{},{nodeType:o.label}),r.add(o.id);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return s.apply(this,arguments)})},{key:"handleEdgeMapping",value:(u=_(C().mark((function e(t,r,n,o){var i,a,c;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.jsonGraphData(o);case 2:i=e.sent,a=i.outV,c=i.inV,r[i.id]=j(j({},i),{},{edgeType:i.label,source:a.id,target:c.id}),t[a.id]=j(j({},a),{},{nodeType:a.label}),n.add(a.id),t[c.id]=j(j({},c),{},{nodeType:c.label}),n.add(c.id);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return u.apply(this,arguments)})},{key:"handleTableResult",value:(c=_(C().mark((function e(t,r){var n,o,i,a,c,u,s,l;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.entries(),o={},i=P(n),e.prev=3,i.s();case 5:if((a=i.n()).done){e.next=22;break}if(c=a.value,u=S(c,2),s=u[0],l=u[1],s instanceof w().process.EnumValue&&(s="~".concat(s.elementName)),"number"!=typeof l){e.next=13;break}o[s]=l,e.next=20;break;case 13:if(!(l instanceof w().structure.Vertex||l instanceof w().structure.Edge)){e.next=19;break}return e.next=16,this.jsonGraphData(l);case 16:o[s]=e.sent,e.next=20;break;case 19:o[s]=JSON.stringify(l);case 20:e.next=5;break;case 22:e.next=27;break;case 24:e.prev=24,e.t0=e.catch(3),i.e(e.t0);case 27:return e.prev=27,i.f(),e.finish(27);case 30:t.push(o);case 31:case"end":return e.stop()}}),e,this,[[3,24,27,30]])}))),function(e,t){return c.apply(this,arguments)})},{key:"queryNodesProperties",value:(a=_(C().mark((function e(t){var r,n,o,i,a,c,u,s,l,f,p,d,h,m,y;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r={},t&&0!==t.length){e.next=3;break}return e.abrupt("return",r);case 3:return n="g.V(".concat(t.join(","),").elementMap()"),e.next=6,this.driver.submit(n);case 6:o=e.sent,i=P(o);try{for(i.s();!(a=i.n()).done;){c=a.value,u=null,s=c.entries(),l={},f=P(s);try{for(f.s();!(p=f.n()).done;)d=p.value,h=S(d,2),m=h[0],y=h[1],m instanceof w().process.EnumValue?"id"===m.elementName&&(u=y):l[m]=y}catch(e){f.e(e)}finally{f.f()}r[u]=l}}catch(e){i.e(e)}finally{i.f()}return e.abrupt("return",r);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"queryEdgesProperties",value:(i=_(C().mark((function e(t){var r;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={},e.abrupt("return",r);case 2:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"close",value:(o=_(C().mark((function e(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.driver){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.driver.close();case 4:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})}],r&&A(t.prototype,r),n&&A(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Z=F;var G=r(26731);var M=function(e,t){return e.reduce((function(e,r){return e.some((function(e){return t(r,e)}))||e.push(r),e}),[])};var q=["_ID","_SRC","_DST","_LABEL"];function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function U(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function H(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return V(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return V(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function W(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function K(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){W(i,n,o,a,c,"next",e)}function c(e){W(i,n,o,a,c,"throw",e)}a(void 0)}))}}function $(e,t){for(var r=0;r() RETURN COUNT(r) AS edge_count;");case 7:return o=e.sent,i=parseInt(n.toString().split("\n")[1],10),a=parseInt(o.toString().split("\n")[1],10),c=[i,a],e.abrupt("return",c);case 12:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"loadFromIndexDB",value:(a=K(Q().mark((function e(){var t,r=this;return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=function(){return new Promise((function(e,t){r.FS.syncfs(!0,(function(r){r?(console.error("Error loading from indexdb: ",r),t(r)):(console.log("Load from indexdb successfully"),e())}))}))},e.next=3,t();case 3:console.log("finish load from indexdb");case 4:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)})},{key:"openDataset",value:(i=K(Q().mark((function e(){var t,r;return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(this.FS.readdir("/")),console.log("Open dataset ".concat(this.curDataset)),e.next=4,this.kuzuEngine.Database(this.curDataset,0,10,!1,!1,1073741824);case 4:return this.db=e.sent,e.next=7,this.kuzuEngine.Connection(this.db);case 7:return this.conn=e.sent,e.next=10,null===(t=this.conn)||void 0===t?void 0:t.execute("MATCH (n) RETURN count(n);");case 10:r=e.sent,console.log(r.toString());case 12:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"closeDataset",value:(o=K(Q().mark((function e(){return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("Close dataset ".concat(this.curDataset)),!this.conn){e.next=5;break}return e.next=4,this.conn.close();case 4:console.log("Connection closed.");case 5:if(!this.db){e.next=9;break}return e.next=8,this.db.close();case 8:console.log("Database closed.");case 9:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"writeBack",value:(n=K(Q().mark((function e(){var t=this;return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("start to write back"),e.abrupt("return",new Promise((function(e){t.FS.syncfs(!1,(function(t){t?(console.error("Error saving to indexdb: ",t),e({success:!1,message:t})):(console.log("Save to indexdb successfully"),e({success:!0,message:"Save to indexdb successfully"}))}))})));case 2:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"close",value:(r=K(Q().mark((function e(){return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.closeDataset();case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"cancel",value:(t=K(Q().mark((function e(){return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.closeDataset();case 2:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}();function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function oe(){oe=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new L(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};s(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(C([])));w&&w!==r&&n.call(w,a)&&(b=w);var E=g.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==ne(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function C(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ae(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ae(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r","<",">","<=",">="],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function","@keywords":"keyword","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[\+\-\*\/\^%]+/,"delimiter.operator"],[/[\!<>\?=\|&]/,"delimiter"]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}};var d=[].concat(["count","fold","sum","min","max","mean","group","groupCount"],["hasId","hasLabel","has","hasNot","is","where","not","dedup","order","limit","coin","sample","union"],["id","label","constant","valueMap","values","elementMap","select"]),h=["outV","inV","otherV","bothV"],m=["outE","inE","bothE","out","in","both"],y={};function v(e){return(e.match(/\r?\n/g)||[]).length+1}[].concat(h,["out","in","both"]).forEach((function(e){y[e]=[].concat(m,s(d))})),["outE","inE","bothE"].forEach((function(e){y[e]=[].concat(h,s(d))})),i.Mj.register({id:"gremlin"}),i.Mj.setMonarchTokensProvider("gremlin",p),i.Mj.setLanguageConfiguration("gremlin",f),i.Mj.registerCompletionItemProvider("gremlin",{triggerCharacters:["."],provideCompletionItems:function(e,t){var r,n=e.getLineContent(t.lineNumber).slice(0,t.column-1).trim(),o=function(e){var t=function(e){for(var t=1;t0?r[r.length-1]:"");return{suggestions:o}}});var g={cypher:"cypherTheme",gremlin:"GremlinTheme"},b=(0,n.forwardRef)((function(e,t){(0,o.useDynamicStyle)("\n.monaco-editor .view-overlays .current-line {\n background-color: transparent !important;\n}\n\n.monaco-editor .monaco-scrollable-element::-webkit-scrollbar {\n display: none;\n}\n\n.decorationsOverviewRuler {\n display: none !important;\n}\n\n.monaco-editor .view-overlays .current-line-exact {\n border: none !important;\n}\n\n.monaco-editor .scroll-decoration {\n box-shadow: none;\n}\n","cypher-editor-style");var r,a=e.value,c=e.language,u=void 0===c?"cypher":c,s=e.maxRows,l=void 0===s?10:s,f=e.minRows,p=void 0===f?1:f,d=e.onChangeContent,h=e.clear,m=e.onInit,y=d?0:v(a),b=(0,o.useStudioProvier)().isLight;return(0,n.useEffect)((function(){return t&&t.current&&(v(a)<=l&&(t.current.style.height=20*v(a)+"px"),r=i.j6.create(t.current,{language:"gremlin",value:a,theme:b?g[u]:"vs-dark",suggestLineHeight:20,automaticLayout:!0,minimap:{enabled:!1},fontSize:14,lineHeight:20,folding:!0,wordWrap:"on",scrollBeyondLastLine:!1,scrollBeyondLastColumn:0}),t.current.codeEditor=r,r.onDidChangeModelContent((function(){var e,n=r.getContentHeight(),o=null===(e=r.getModel())||void 0===e?void 0:e.getLineCount();n<=20*l&&(t.current.style.height=n+"px"),d&&d(o,r)})),m&&m(t.current)),function(){r.dispose()}}),[t,a,u,!b]),n.useEffect((function(){h&&t&&t.current&&t.current.codeEditor&&t.current.codeEditor.setValue("")}),[h]),n.createElement("div",{ref:t,style:{padding:"5px 0px",width:"100%",height:20*(p+y)+"px",border:b?"1px solid rgb(187, 190, 195)":"1px solid #434343",borderRadius:"6px"}})})),x=b},21050:function(e,t,r){r.r(t),r.d(t,{ConnectEndpoint:function(){return Lt},QueryStatement:function(){return qt},Statement:function(){return wt.default},default:function(){return Ut},sdk:function(){return Bt}});var n=r(50959),o=r(53531),i=r(31192),a=r(55736),c=r(56331),u=o.Z.useToken,s=function(e){var t=u().token,r=(0,a.qp)().store.welcome;if(r){var o=r.title,i=r.description;return n.createElement("div",{style:{margin:"12px",borderRadius:"8px",background:t.colorBgBase}},n.createElement(c.Z,{message:o,description:i,type:"info",closable:!0}))}return null},l=r(54016),f=r(84155),p=r(28541),d=function(e){var t=e.isDark,r=t?"#272727":"#E6E9EE";return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 915 866",fill:"none"},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M552.085 623.067C491.189 655.842 482.589 745.72 418.484 770.756C352.941 796.353 259.359 798.915 226.164 750.352C189.108 696.141 291.287 607.551 265.559 547.035C237.793 481.726 101.961 496.952 88.3682 426.238C76.2288 363.085 150.831 297.41 208.118 248.21C263.376 200.753 332.496 162.372 402.856 156.147C468.399 150.348 511.091 201.87 571.612 216.049C633.101 230.454 738.7 185.557 759.412 239.679C782.973 301.247 654.143 363.856 654.328 432.195C654.506 498.496 794.484 523.038 760.348 586.766C727.485 648.115 617.062 588.097 552.085 623.067Z",fill:t?"#272727":"#EEF1F6"}),n.createElement("circle",{cx:"595.876",cy:"255.218",r:"12.5406",transform:"rotate(30 595.876 255.218)",fill:r}),n.createElement("circle",{cx:"724.312",cy:"289.146",r:"12.5406",transform:"rotate(30 724.312 289.146)",fill:r}),n.createElement("circle",{cx:"735.006",cy:"235.789",r:"12.5406",transform:"rotate(30 735.006 235.789)",fill:r}),n.createElement("circle",{cx:"800.535",cy:"288.103",r:"12.5406",transform:"rotate(30 800.535 288.103)",fill:r}),n.createElement("circle",{cx:"613.406",cy:"199.774",r:"12.5406",transform:"rotate(30 613.406 199.774)",fill:r}),n.createElement("circle",{cx:"662.947",cy:"242.856",r:"12.5406",transform:"rotate(30 662.947 242.856)",fill:r}),n.createElement("circle",{cx:"722.216",cy:"420.273",r:"12.5406",transform:"rotate(30 722.216 420.273)",fill:r}),n.createElement("circle",{cx:"788.851",cy:"389.157",r:"12.5406",transform:"rotate(30 788.851 389.157)",fill:r}),n.createElement("line",{x1:"594.446",y1:"254.765",x2:"611.976",y2:"199.321",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"661.962",y1:"243.988",x2:"612.422",y2:"200.905",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"663.219",y1:"244.332",x2:"596.148",y2:"256.693",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"663.85",y1:"241.659",x2:"725.215",y2:"287.949",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"736.476",y1:"236.083",x2:"725.782",y2:"289.441",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"735.152",y1:"237.281",x2:"663.093",y2:"244.349",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"735.941",y1:"234.616",x2:"801.471",y2:"286.93",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"787.591",y1:"389.971",x2:"723.052",y2:"289.96",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"787.361",y1:"388.985",x2:"799.046",y2:"287.931",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"800.556",y1:"289.603",x2:"724.333",y2:"290.646",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"789.486",y1:"390.517",x2:"722.851",y2:"421.632",stroke:r,strokeWidth:"3"}),n.createElement("circle",{cx:"165.557",cy:"381.703",r:"16.9036",transform:"rotate(165 165.557 381.703)",fill:r}),n.createElement("circle",{cx:"131.703",cy:"474.871",r:"16.9036",transform:"rotate(165 131.703 474.871)",fill:r}),n.createElement("circle",{cx:"216.702",cy:"581.703",r:"16.9036",transform:"rotate(165 216.702 581.703)",fill:r}),n.createElement("line",{x1:"132.878",y1:"473.939",x2:"218.059",y2:"581.392",stroke:r,strokeWidth:"3"}),n.createElement("line",{x1:"130.293",y1:"474.359",x2:"164.148",y2:"381.191",stroke:r,strokeWidth:"3"}),n.createElement("circle",{cx:"334",cy:"204",r:"7",fill:r}),n.createElement("circle",{cx:"361",cy:"152",r:"7",fill:r}),n.createElement("circle",{cx:"283",cy:"229",r:"7",fill:r}),n.createElement("circle",{cx:"385",cy:"219",r:"7",fill:r}),n.createElement("circle",{cx:"414",cy:"190",r:"7",fill:r}),n.createElement("line",{x1:"282.78",y1:"228.551",x2:"333.78",y2:"203.551",stroke:r}),n.createElement("line",{x1:"384.859",y1:"219.48",x2:"333.859",y2:"204.48",stroke:r}),n.createElement("line",{x1:"384.647",y1:"218.646",x2:"413.647",y2:"189.646",stroke:r}),n.createElement("line",{x1:"384.53",y1:"219.169",x2:"360.53",y2:"152.169",stroke:r}),n.createElement("line",{x1:"333.556",y1:"203.77",x2:"360.556",y2:"151.77",stroke:r}),n.createElement("ellipse",{cx:"553",cy:"673.5",rx:"25",ry:"24.5",fill:r}),n.createElement("circle",{cx:"786",cy:"553",r:"25",fill:r}),n.createElement("line",{x1:"551.872",y1:"671.669",x2:"785.082",y2:"551.223",stroke:r,strokeWidth:"4"}))},h=r(58002),m=function(e){var t=(0,h.useStudioProvier)().isLight;return n.createElement("div",{style:{fontSize:"14px",height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},n.createElement(d,{isDark:!t}),n.createElement(l.Z.Text,{type:"secondary",style:{position:"absolute"}},n.createElement(f.Z,{id:"You can write cypher or gremlin queries, and then click the {icon} button to query data",values:{icon:n.createElement(p.Z,null)}})))};function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&p.size0&&t.length===p.size,y=function(e){f((function(t){return q(q({},t),{},{checkedSet:e})}))},v=function(e,t){t?p.add(e):p.delete(e),y(p)};return 0==t.length&&c?n.createElement("div",{style:{padding:"120px 0px"}},n.createElement(P.Z,{imageStyle:{height:"80px"},description:n.createElement(l.Z.Text,{style:{fontSize:"12px"}},c)})):n.createElement(n.Fragment,null,n.createElement(T.Z,{vertical:!0,flex:1,style:{position:"relative",height:"100%"}},n.createElement("div",{style:q({position:"absolute",top:"-34px",right:"0px",zIndex:99},i)},d&&n.createElement(j.Z,{indeterminate:h,onChange:function(e){var r=e.target.checked?new Set(t.map((function(e){return e.id}))):new Set;y(r)},checked:m},n.createElement(L.ZP,{icon:n.createElement(C.Z,null),size:"small",type:"text",onClick:function(){o(R(p))}})),n.createElement(L.ZP,{icon:d?n.createElement(I.Z,null):n.createElement(_.Z,null),size:"small",type:"text",onClick:function(){f((function(e){return q(q({},e),{},{batch:!e.batch})}))}})),a?n.createElement(Q,{items:t,batch:d,checkedSet:p,onChange:v,onClick:r}):n.createElement("div",{style:Y.list},n.createElement(V,{items:t,batch:d,checkedSet:p,onChange:v,onClick:r}))))},K=r(15001),$=function(e){var t=e.children,r=e.title,i=o.Z.useToken().token;return n.createElement(T.Z,{vertical:!0,style:{height:"100%",overflow:"hidden",borderTop:"1px solid ".concat(i.colorBorder),marginTop:"-2px",marginLeft:"-4px",marginRight:"-8px"}},n.createElement(l.Z.Title,{level:5,style:{margin:"0px",flexBasis:"30px",padding:"12px"}},n.createElement(f.Z,{id:r})),n.createElement("div",{style:{height:"100%",overflow:"hidden",marginBottom:"8px"}},t))};function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function X(){X=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new L(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};s(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(C([])));w&&w!==r&&n.call(w,a)&&(b=w);var E=g.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==J(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function C(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function ee(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var te=function(e){var t=(0,a.qp)(),r=t.store,o=t.updateStore,i=r.savedStatements,c=e.deleteStatements,u=i.map((function(e){return e})),s=function(){var e,t=(e=X().mark((function e(t){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c(t),o((function(e){e.savedStatements=e.savedStatements.filter((function(e){return-1===t.indexOf(e.id)}))}));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ee(i,n,o,a,c,"next",e)}function c(e){ee(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return n.createElement($,{title:"Saved"},n.createElement(W,{items:u,onClick:function(e){e.id;var t=e.script;o((function(e){e.globalScript=t,e.autoRun=!0}))},onDelete:s,placeholder:n.createElement(n.Fragment,null,n.createElement(f.Z,{id:"No saved query statements {br} You can click {icon} to save.",values:{icon:n.createElement(K.Z,null),br:n.createElement("br",null)}}))}))};function re(e){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(e)}function ne(e,t){for(var r=0;r(a:Task),(a)-[:Belong]->(t: Topic) RETURN t.category, COUNT(p)",desc:"找出每个主题下的论文数量"},{cypher:"MATCH (t: Topic)<-[:Belong]-(a:Task),\n (a)<-[:WorkOn]-(p:Paper)-[:Use]->(s:Solution),\n (s)-[:ApplyOn]->(ch:Challenge)\n WHERE t.category = $topic_name\n RETURN t.category, ch.challenge, COUNT(p)",desc:"检索特定主题下,每个挑战(Challenge)所应用的解决方案(Solution)中与论文(Paper)相关的数量"}],null,2),"\n\n任务2: 根据 Schema 结构和用户的输入,生成 Cypher 查询语句,用于图数据库查询\n").concat("\n注意要以JSON的格式返回结果:\nRight Cases:\nquerys1: 列举出鲁迅的一个别名可以吗?\nanswer1: \"match (:ENTITY{name:'鲁迅'})<--(h)-[:Relationship{name:'别名'}]->(q) return distinct q.name limit 1\"\n\nquerys2: 我们常用的301SH不锈钢带的硬度公差是多少,你知道吗? \nanswers2: \"match(p:ENTITY{name:'301SH不锈钢带'})-[:Relationship{name:'硬度公差'}]-> (q) return q.name\"\nWrong Cases:\nquerys: 12344加油这首歌真好听,你知道歌曲原唱是谁吗? answers: MATCH (a:Actor)-[:ACTED_IN]->(m:Movie) WHERE m.name = '12345加油' RETURN a.name\nquerys: 七宗梦是什么时候上映的? answers: MATCH (a:Actor)-[:ACTED_IN]->(m:Movie) WHERE m.name = '七宗梦' RETURN a.name LIMIT 30\n","\n\nInstructions:\nNote: Do not include any explanations or apologies in your responses.\nDo not respond to any questions that might ask anything else than for you to construct a Cypher statement.\nDo not include any text except the generated Cypher statement.\nYou must use the relaship or property shown in the schema!!! do not use other keys!!!\nYou must use the relaship or property shown in the schema!!! do not use other keys!!!\nYou must use the relaship or property shown in the schema!!! do not use other keys!!!\n你必须使用Sechema中出现的关键词!!!\n\n当前会话中图的 Schema 结构如下:\n\n{graphSchema}\n\n你需要根据用户的提问,自动切换到上述两个任务中,并且给出正确返回,让我们开始吧!\n\n");function ue(e,t){var r=function(e){return JSON.stringify(e,null,2)}(t);return e.replace(/\{graphSchema\}/g,r)}function se(e,t,r){return[t&&new ce({status:"success",role:"system",content:ue(t,r),timestamp:Date.now(),reserved:!0}),e&&new ce({status:"success",role:"assistant",content:e,timestamp:Date.now(),reserved:!0})].filter(Boolean)}var le=r(55216),fe=r(48722),pe=r(16889),de=r(31097),he=r(12423),me=r(25046);function ye(e){return function(e){if(Array.isArray(e))return ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ve(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(e,t){if(e){if("string"==typeof e)return ge(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ge(e,t):void 0}}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}(ye(e.matchAll(/```cypher\s*([\s\S]*?)\s*```/g)));try{for(o.s();!(t=o.n()).done;){var i=t.value,a=e.substring(n,i.index).trim();a&&r.push({type:"text",content:a});var c=i[1].trim();r.push({type:"cypher",content:c}),n=i.index+i[0].length}}catch(e){o.e(e)}finally{o.f()}var u=e.substring(n).trim();return u&&r.push({type:"text",content:u}),r}var xe=function(e){var t=e.style;return n.createElement("svg",{width:"41px",height:"62px",viewBox:"0 0 41 62",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",style:t},n.createElement("title",null,"logo image"),n.createElement("g",{id:"页面-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},n.createElement("g",{id:"Medium",transform:"translate(-332, -376)",fillRule:"nonzero"},n.createElement("g",{id:"编组",transform:"translate(332, 376)"},n.createElement("path",{d:"M20.9765256,25 L20.9743827,19.8935471 L22.5478011,18.78271 L26,16.3451158 L25.9983928,13 L18.4270199,18.1683792 C16.9071738,19.2057816 15.8019773,20.29689 15,21.3704617 L15,21.4778737 L20.9765256,25 Z",id:"路径",fill:"#2281F2"}),n.createElement("path",{d:"M6.93795336,20.7840634 C8.51291573,17.334308 13.2733365,13.6674352 13.2733365,13.6674352 L29,3.26992071 L22.9018725,0 L10.9685669,7.75591857 C10.9685669,7.75591857 -0.854857679,14.9756228 0.049338003,26.8260698 C0.761651772,36.1593797 12.3046335,39 12.3046335,39 C5.52316592,36.2295591 4.72994467,25.6215065 6.93795336,20.7840634 Z",id:"路径",fill:"#2281F2"}),n.createElement("path",{d:"M29.2439473,3 L13.4603304,13.6082752 C13.4603304,13.6082752 8.68266998,17.3489173 7.10200396,20.8691596 C4.7340225,26.1425307 5.81651263,38.201864 13.9672848,39.9124792 C13.9672848,39.9124792 17.3656344,40.7454111 23.3969644,37.2721576 C26.5517126,35.4552583 30.7231127,39.070597 30.7231127,39.070597 C35.4705973,35.3685528 31.9076521,31.827613 28.0846459,30.5007395 C24.3395483,29.2007168 21.5847673,31.781743 17.5346192,32.8378717 C13.4844711,33.8940003 12.4480677,29.1934447 12.4480677,29.1934447 C12.4480677,29.1934447 10.5497323,23.0871416 17.786999,18.1633893 L25.5410959,12.8877806 L25.5427418,16.3022982 L20.3958387,19.9243496 L20.3980333,25.1367472 L29.4222592,19.0125436 L29.2439473,3 Z",id:"路径",fill:"#1FB2FD"}),n.createElement("path",{d:"M36.7904047,27.0251597 C32.1878283,23.2677091 25.8158521,23.5156909 20.7707852,25.0562844 C18.0303799,25.8934309 12.0176813,28.5163788 12.0176813,28.5163788 C12.0176813,28.5163788 12.0918982,28.8392544 12.2746294,29.2936102 C12.3094889,29.3801542 12.3471596,29.4705815 12.3904528,29.565447 C12.4309348,29.6547648 12.476477,29.747966 12.5248305,29.8422768 C12.5928627,29.9759761 12.6687665,30.1130041 12.7536662,30.2516963 C12.8082044,30.3415689 12.8649916,30.4314415 12.9268391,30.5207593 C13.016799,30.6516848 13.1146305,30.7815007 13.2208957,30.9079881 C13.3007352,31.0034083 13.3873216,31.0960548 13.4767193,31.1864821 C13.8635471,31.5770395 14.3408972,31.9132295 14.9284481,32.1068439 C15.0189704,32.1368014 15.1117416,32.1628756 15.2078863,32.1856211 C15.7825055,32.3220943 16.4521449,32.3265324 17.2302986,32.1301442 C17.2404191,32.1279251 17.2494151,32.1245965 17.2595356,32.1218227 C19.9341576,31.4411211 21.9492606,30.1523927 23.9930384,29.7130156 C25.2822771,29.3890305 26.5895077,29.3241225 28.042361,29.8123192 C31.9601172,31.1282314 35.611367,34.640474 30.74622,38.3113806 L30.74622,38.3113806 L30.74622,38.3113806 L17.8768858,46.5019905 L17.877448,46.5014357 L14.3510177,44.4709811 L22.2523132,39.6783315 L17.0768044,37.0060091 L4,44.7372702 L4.00056225,44.737825 L13.0353533,49.5842871 L13.0342288,49.5848419 L19.4039561,53 L37.3717709,41.2716281 C37.3706464,41.2732924 45.9106577,34.4712695 36.7904047,27.0251597 Z",id:"路径",fill:"#37EDD7"}),n.createElement("path",{d:"M40.9961107,35 C40.9955641,35 40.994471,35.0005545 40.9939244,35.0011089 C40.9928312,35.0238418 40.9884586,35.0454657 40.9873655,35.0676442 C40.8900752,39.0492238 37.4668795,41.8592287 37.4668795,41.8592287 L20,53.5810744 L20.0032794,62 L38.0440621,49.2618285 C41.053501,47.4803475 41,43.5348078 41,43.5348078 L40.9961107,35 Z",id:"路径",fill:"#1FB2FD"}),n.createElement("polygon",{id:"路径",fill:"#2281F2",points:"22.9982925 41 22.9982925 41 22.9982925 41 15 45.9410083 18.498008 47.9919928 18.6237906 48 23 45.1631669"}),n.createElement("polygon",{id:"路径",fill:"#2281F2",points:"18.9961684 53.4177665 4 45 4.00328419 53.0147944 19 62"})))))},we=o.Z.useToken,Ee=function(e){var t=e.content,r=e.onQuery;return n.createElement("div",{style:{position:"relative"}},n.createElement("pre",{style:{border:"1px solid #ddd",padding:"6px",borderRadius:"4px"}},n.createElement("code",{style:{whiteSpace:"pre-wrap"}},t)),n.createElement(O.Z,{title:"开始查询"},n.createElement(L.ZP,{style:{position:"absolute",bottom:"2px",right:"2px"},onClick:function(){r&&r(t)},size:"small",icon:n.createElement(p.Z,{style:{color:"#52c41a"}}),type:"text"})))},Se=function(e){var t=e.content,r=e.role,o=we().token,i="user"===r?"rgba(221,221,221,0.3)":o.colorPrimaryBg;return n.createElement("div",{style:{background:i,borderRadius:"6px",padding:"6px"}},n.createElement(l.Z.Text,{style:{fontSize:"12px"}}," ",t))},ke=function(e){var t=e.role,r=e.content,o=(e.timestamp,e.onQuery),i="user"===t&&!r.includes("`"),a=be(r);return i?n.createElement(T.Z,{align:"start",justify:"flex-end",gap:4,style:{margin:"6px 0px"}},n.createElement(Se,{content:r,role:t})):n.createElement("div",null,n.createElement(fe.Z,{align:"start",size:2},n.createElement(xe,{style:{fontSize:"12px",height:"14px",width:"14px",border:"1px solid #ddd",borderRadius:"50%",padding:"4px"}}),n.createElement("div",null,a.map((function(e,r){return"cypher"===e.type?n.createElement(Ee,{key:r,content:e.content,onQuery:o}):n.createElement(Se,{key:r,content:e.content,role:t})})))))},je=r(52018),Oe=r(63432),Pe=r(37528);function Te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function Ae(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function De(e){return function(e){if(Array.isArray(e))return qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Me(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r(c) RETURN a,b,c LIMIT 25;")),"property"===t&&(r="MATCH(a) where a.".concat(e," IS NOT NULL AND a.").concat(e,' <> ""\n WITH a.').concat(e," as ").concat(e,"\n RETURN ").concat(e," , COUNT(").concat(e,") as ").concat(e,"_COUNT\n ORDER BY ").concat(e,"_COUNT DESC\n "))),"gremlin"===c&&("nodes"===t&&(r="g.V().hasLabel('".concat(e,"').limit(25)")),"edges"===t&&(r="g.V().outE('".concat(e,"').limit(25)")),"property"===t&&(r="g.V().has('".concat(e,"').groupCount().by('").concat(e,"').order().by(select(values), desc)"))),i((function(e){e.globalScript=r,e.autoRun=!0}))};return n.createElement($,{title:"Recommended"},n.createElement("div",{style:{padding:"0px 12px"}},n.createElement(Ke,{level:5,style:$e.title},n.createElement(f.Z,{id:"Vertex Labels"})),l.map((function(e){var t,r=e.label,o=(null!==(t=s.nodeStyle[r])&&void 0!==t?t:{color:"#000"}).color;return n.createElement(Ye.Z,{key:r,style:{borderRadius:"8px",backgroundColor:o,cursor:"pointer",margin:"4px"},bordered:!1,onClick:function(){y(r,"nodes")}},r)})),n.createElement(Ke,{level:5,style:$e.title},n.createElement(f.Z,{id:"Edge Labels"})),p.map((function(e){var t,r=e.label,o=(null!==(t=s.edgeStyle[r])&&void 0!==t?t:{color:"#000"}).color;return n.createElement(Ye.Z,{key:r,style:{borderRadius:"8px",backgroundColor:o,cursor:"pointer",margin:"4px",color:"#000"},bordered:!1,onClick:function(){y(r,"edges")}},r)})),n.createElement(Ke,{style:$e.title},n.createElement(f.Z,{id:"Property Keys"})),d.map((function(e){return n.createElement(Ye.Z,{key:e,style:{borderRadius:"8px",backgroundColor:m?"#000":"#fff",cursor:"pointer",margin:"4px",color:m?"#fff":"#000"},bordered:!1,onClick:function(){y(e,"property")}},e)}))))};function Xe(e){return Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xe(e)}function et(){et=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new L(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};s(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(C([])));w&&w!==r&&n.call(w,a)&&(b=w);var E=g.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==Xe(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function C(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function tt(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var rt=function(e){var t=e.deleteStatements,r=(0,a.qp)(),o=r.store,i=r.updateStore,c=o.storeProcedures.map((function(e){return e})),u=function(){var e,r=(e=et().mark((function e(r){return et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t(r),i((function(e){e.storeProcedures=e.savedStatements.filter((function(e){return-1===r.indexOf(e.id)}))}));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){tt(i,n,o,a,c,"next",e)}function c(e){tt(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}();return n.createElement($,{title:"Stored Procedures"},n.createElement(W,{items:c,onClick:function(e){e.id;var t=e.script;e.name;i((function(e){e.globalScript=t,e.autoRun=!0}))},onDelete:u,placeholder:n.createElement(n.Fragment,null,n.createElement(f.Z,{id:"No stored procedures available. {br} Go to the Extension and create one now!",values:{a:function(e){return n.createElement(l.Z.Link,{style:{fontSize:"12px"},href:"/extension/create",target:"_blank"},e)},br:n.createElement("br",null)}}))}))};function nt(e){return nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nt(e)}function ot(){ot=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new L(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};s(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(C([])));w&&w!==r&&n.call(w,a)&&(b=w);var E=g.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==nt(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function C(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function it(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var at=function(e){var t=e.deleteHistoryStatements,r=(0,a.qp)(),o=r.store,i=r.updateStore,c=o.historyStatements,u=function(){var e,r=(e=ot().mark((function e(r){return ot().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t(r),i((function(e){e.historyStatements=e.historyStatements.filter((function(e){return-1===r.indexOf(e.id)}))}));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){it(i,n,o,a,c,"next",e)}function c(e){it(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}(),s=c.map((function(e){return e}));return n.createElement($,{title:"History"},n.createElement(W,{items:s,onClick:function(e){e.id;var t=e.script;i((function(e){e.globalScript=t,e.autoRun=!1}))},onDelete:u,placeholder:n.createElement(f.Z,{id:"No query history available"})}))},ct=function(e){var t=e.items;return"Segmented"===e.type?n.createElement(h.SegmentedTabs,{items:t,block:!0,rootStyle:{padding:"8px 8px 8px 4px"}}):n.createElement(h.SideTabs,{items:t,width:320})},ut=(0,n.memo)(ct),st=r(62950),lt=r(84158),ft=r(37339),pt=r(91104),dt=r(33741),ht={"en-US":{Recommended:"Recommended",History:"History",Copilot:"Copilot",Saved:"Saved","Stored Procedures":"Stored Procedures","You can write cypher or gremlin queries, and then click the {icon} button to query data":"You can write cypher or gremlin queries, and then click the {icon} button to query data","Vertex Labels":"Vertex Labels","Edge Labels":"Edge Labels","Property Keys":"Property Keys","No saved query statements {br} You can click {icon} to save.":"No saved query statements {br} You can click {icon} to save.","No stored procedures available. {br} Go to the Extension and create one now!":"No stored procedures available. {br} Go to the Extension and create one now!","Privacy Security Notice":"Privacy Security Notice",Setting:"Setting","query.app.sidebar.gpt.setting.security":"To improve the quality of generated Cypher query statements, we'll utilize your graph data schema as the prompt for ChatGPT. Your data will be kept strictly confidential and solely used for this purpose.Furthermore, please note that your OpenAI API key is only stored locally in your browser for added security","OpenAI API key is only stored locally in your browser":"OpenAI API key is only stored locally in your browser","query.copilot.welcome":"Hello! I'm the GraphScope Query Assistant. Feel free to ask me any questions about Cypher or Gremlin queries.","recommend 5 interesting query statements":"recommend 5 interesting query statements","query any subgraph":"query any subgraph","insight the statistical distribution of vertex labels in the graph":"insight the statistical distribution of vertex labels in the graph",Save:"Save",Delete:"Delete",Query:"Query",Share:"Share","query submmited on {submitTime}. It's running ... ":"query submmited on {submitTime}. It's running ... ","query submmited on {submitTime}. Running {runningTime} ms":"query submmited on {submitTime}. Running {runningTime} ms","A total of {totalCount} records were retrieved":"A total of {totalCount} records were retrieved","A total of {totalCount} records were retrieved, including {nodeCount} nodes and {edgeCount} edges.":"A total of {totalCount} records were retrieved, including {nodeCount} nodes and {edgeCount} edges.",Color:"Color",Size:"Size",Caption:"Caption",LineWidth:"LineWidth","Node properties":"Node properties",Graph:"Graph",Table:"Table",Raw:"Raw","Style Setting":"Style Setting","You can click on each label to set the color, size, and display text for vertices and edges.":"You can click on each label to set the color, size, and display text for vertices and edges.","Export graph json":"Export graph json","Clustering layout":"Clustering layout","Vertex Properties":"Vertex Properties","Connect Endpoint":"Connect Endpoint","Connection URL":"Connection URL","Query language":"Query language","Query initiation method":"Query initiation method",Username:"Username",Password:"Password",Connect:"Connect",Close:"Close","Select nodes by box selection":"Select nodes by box selection","Switch graph view dimensions":"Switch graph view dimensions","Zoom to fitview":"Zoom to fitview",Fullscreen:"Fullscreen","Toggle Right Side":"Toggle Right Side","Caption Status":"Caption Status"},"zh-CN":{Recommended:"推荐查询",History:"历史查询",Copilot:"智能查询",Saved:"保存查询","Stored Procedures":"存储过程","You can write cypher or gremlin queries, and then click the {icon} button to query data":"您可以在这里编写 cypher 或 gremlin 语句,点击 {icon} 按钮查询数据","Vertex Labels":"节点类型","Edge Labels":"边类型","Property Keys":"属性字段","No saved query statements {br} You can click {icon} to save.":"暂无保存的查询语句 {br} 您可以点击 {icon} 保存","No stored procedures available. {br} Go to the Extension and create one now!":"暂无存储过程 {br} 快去 插件市场 创建一个吧","Privacy Security Notice":"隐私安全说明",Setting:"设置","query.app.sidebar.gpt.setting.security":"为了提高生成Cypher查询语句的质量,我们将使用您的图数据模式作为ChatGPT的提示。您的数据将被严格保密,仅用于此目的。此外,请注意我们的OpenAI API密钥仅存在于您的浏览器本地,以增加安全性。","OpenAI API key is only stored locally in your browser":"OpenAI API key 仅保存在您浏览器本地","query.copilot.welcome":"您好!我是 GraphScope 查询助理,您有任何关于 Cypher 或者 Gremlin 查询的问题都可以随时问我","recommend 5 interesting query statements":"帮我推荐5个有意思的查询","query any subgraph":"查询任意一个子图","insight the statistical distribution of vertex labels in the graph":"帮我分析图中节点类型的分布情况",Save:"保存",Delete:"删除",Query:"查询",Share:"分享","query submmited on {submitTime}. It's running ... ":"查询提交于 {submitTime}. 正在运行中...","query submmited on {submitTime}. Running {runningTime} ms":"查询提交于 {submitTime}. 查询时长 {runningTime} ms","A total of {totalCount} records were retrieved":"一共检索到 {totalCount} 条记录","A total of {totalCount} records were retrieved, including {nodeCount} nodes and {edgeCount} edges.":"一共检索到 {totalCount} 条记录, 其中包含 {nodeCount} 个节点,{edgeCount} 条边",Color:"颜色",Size:"大小",Caption:"文本",LineWidth:"边宽","Node properties":"属性详情",Graph:"图展示",Table:"表格展示",Raw:"原始数据","Style Setting":"样式设置","You can click on each label to set the color, size, and display text for vertices and edges.":"您可以单击每个标签来设置顶点和边缘的颜色、大小和显示文本。","Export graph json":"导出 json","Clustering layout":"集群布局","Vertex Properties":"节点属性","Connect Endpoint":"连接查询服务","Connection URL":"连接 URL","Query language":"查询语言","Query initiation method":"查询发起方式",Username:"用户名",Password:"密码",Connect:"连接",Close:"关闭","Select nodes by box selection":"通过框选选择节点","Switch graph view dimensions":"切换图表视图维度","Zoom to fitview":"缩放适当视图",Fullscreen:"全屏","Toggle Right Side":"切换右侧","Caption Status":"是否展示标签"}};function mt(e){return mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mt(e)}function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function gt(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var bt=h.Utils.getSearchParams,xt=function(e){var t=e.queryGraphData,r=e.handleCancelQuery,o=e.queryGraphSchema,i=e.displaySidebarPosition,c=void 0===i?"left":i,u=e.displaySidebarType,s=void 0===u?"Sidebar":u,l=(e.enableAbsolutePosition,e.queryStatements),p=e.deleteStatements,d=e.createStatements,m=e.enableImmediateQuery,y=e.connectComponent,v=e.sidebarCollapsed,g=e.sidebarStyle,b=e.welcome,x=(0,a.qp)(),w=x.store,E=x.updateStore,S=w.graphId,j=w.isReady,O=w.schemaData,P=[{key:"recommended",title:n.createElement(f.Z,{id:"Recommended"}),icon:n.createElement(ft.G,{icon:pt.X8G}),children:n.createElement(Je,{schemaData:O,schemaId:S})},{key:"saved",title:n.createElement(f.Z,{id:"Saved"}),icon:n.createElement(ft.G,{icon:pt.xVw}),children:n.createElement(te,{deleteStatements:function(e){return p("saved",e)}})},{key:"history",title:n.createElement(f.Z,{id:"History"}),icon:n.createElement(ft.G,{icon:pt.uF7}),children:n.createElement(at,{deleteHistoryStatements:function(e){return p("history",e)}})},{key:"store-procedure",title:n.createElement(f.Z,{id:"Stored Procedures"}),icon:n.createElement(ft.G,{icon:pt.xf3}),children:n.createElement(rt,{deleteStatements:function(e){return p("store-procedure",e)}})},{key:"copilot",title:n.createElement(f.Z,{id:"Copilot"}),icon:n.createElement(ft.G,{icon:pt.VE0}),children:n.createElement(Be,{schemaData:O})}];(0,n.useEffect)((function(){var t;(t=vt().mark((function t(){var r,n,i,c,u,s,f,p,d,h;return vt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=bt("graph_id")||"",n=bt("language")||e.language,i=bt("global_script")||e.globalScript,c=bt("display_mode")||localStorage.getItem(a.rv.mode)||"flow",u=bt("auto_run"),s=u?"true"===u:e.autoRun,f={nodes:[],edges:[]},p=[],d=[],h=[],t.prev=10,t.next=13,o(r);case 13:return f=t.sent,t.next=16,l("history");case 16:return p=t.sent,t.next=19,l("saved");case 19:return d=t.sent,t.next=22,l("store-procedure");case 22:h=t.sent,t.next=27;break;case 25:t.prev=25,t.t0=t.catch(10);case 27:E((function(e){e.isReady=!0,e.graphId=r,e.schemaData=f,e.historyStatements=p,e.savedStatements=d,e.storeProcedures=h,e.autoRun=s,e.globalScript=(0,lt.Id)(i),e.mode=c,e.language=n,e.welcome=b}));case 28:case"end":return t.stop()}}),t,null,[[10,25]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(e){gt(i,n,o,a,c,"next",e)}function c(e){gt(i,n,o,a,c,"throw",e)}a(void 0)}))})()}),[]);if(j){var T="left"===c?{leftSide:n.createElement(ut,{items:P,type:s})}:{rightSide:n.createElement(ut,{items:P,type:s})};return n.createElement(h.StudioProvier,{locales:ht},n.createElement(h.Section,yt({style:{height:"calc(100vh - 50px)"}},T,{defaultCollapsed:{leftSide:v,rightSide:v},leftSideStyle:g,rightSideStyle:g,splitBorder:!0}),n.createElement(k,{displaySidebarPosition:c,connectComponent:y,handleCancelQuery:r,createStatements:d,queryGraphData:function(e){var r=e.script,n=e.language,o={id:(0,st.Z)(),timestamp:(new Date).getTime(),script:r,language:n};return E((function(e){e.historyStatements.push(o)})),t(o)},enableImmediateQuery:m})))}return null},wt=r(613),Et=r(23639),St=r(40434),kt=r(7234);function jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ot(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ot(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function Ft(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function Zt(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ft(i,n,o,a,c,"next",e)}function c(e){Ft(i,n,o,a,c,"throw",e)}a(void 0)}))}}var Gt={},Mt=function(){var e=Zt(Rt().mark((function e(){var t,r,n,o,i=arguments;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:"cypher",r=i.length>1?i[1]:void 0,n=Gt.gremlin_driver,o=Gt.cypher_driver,"cypher"!==t){e.next=6;break}return o||(Gt.cypher_driver=new Et.Or(r)),e.abrupt("return",Gt.cypher_driver);case 6:if("gremlin"!==t){e.next=9;break}return n||(Gt.gremlin_driver=new Et.VP(r)),e.abrupt("return",Gt.gremlin_driver);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),qt=function(e){var t=e||{},r=t.enableImmediateQuery,o=void 0!==r&&r,i=t.mode,a=void 0===i?"flow":i,c=t.id,u=void 0===c?"":c,s=t.timestamp,l=void 0===s?Date.now():s,f=t.graphId,p=void 0===f?"":f,d=t.schemaData,m=void 0===d?{nodes:[],edges:[]}:d,y=t.script,v=void 0===y?"Match (n) return n limit 10":y,g=t.onQuery,b=At((0,n.useState)({language:e.language||"cypher",endpoint:e.endpoint||"127.0.0.1:7687"}),2),x=b[0],w=b[1],E=x.language,S=x.endpoint,k=function(){var e=Zt(Rt().mark((function e(t){var r,n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.language,e.next=3,Mt(r,S);case 3:return n=e.sent,e.abrupt("return",n.query(t.script));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),j=function(){var e=Zt(Rt().mark((function e(t){var r;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.language,e.next=3,Mt(r,S);case 3:e.sent.close();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return g||S&&E?n.createElement(h.StudioProvier,{locales:ht},n.createElement(wt.default,{language:E,enableImmediateQuery:o,mode:a,active:!0,id:u,timestamp:l,graphId:p,schemaData:m,script:v,onQuery:g||k,onCancel:j})):n.createElement(h.StudioProvier,{locales:ht},n.createElement(Lt,{onConnect:function(e){w((function(t){return _t(_t({},t),{},{endpoint:e.query_endpoint||"",language:e.query_language})}))}}))},zt=r(10422),Bt={render_query_statement:function(e){var t=(e||{}).id,r=void 0===t?"root":t;zt.render(n.createElement(qt,e),document.getElementById(r))}},Ut=function(e){return n.createElement(dt.ZP,{store:a.C1},n.createElement(xt,e))}},613:function(e,t,r){r.r(t),r.d(t,{default:function(){return Ce}});var n=r(50959),o=r(53531),i=r(16483),a=r.n(i),c=r(63904),u=r(57526),s=r(48722),l=r(54016),f=r(17905),p=r(38943),d=r(28541),h=r(42176),m=r(51558),y=r(45334),v=r(16889),g=r(15001),b=r(37528),x=function(e){var t=e.onSave,r=(0,n.useRef)(null),o=(0,b.Z)();return n.createElement(f.Z,{title:o.formatMessage({id:"Save"})},n.createElement(y.Z,{title:"name your statement",description:n.createElement(v.Z,{width:"200px",ref:r}),onConfirm:function(){if(r.current){var e=r.current.input.value;console.log("InputRef.current",e),t&&t(e)}},onCancel:function(){},okText:"Save",cancelText:"Cancel",placement:"bottomRight"},n.createElement(p.ZP,{type:"text",icon:n.createElement(g.Z,null)})))},w=r(62950);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function S(){S=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:P(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};s(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(_([])));w&&w!==r&&n.call(w,a)&&(b=w);var k=g.prototype=y.prototype=Object.create(b);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==E(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function P(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=T(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function T(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function k(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var j=function(e){var t,r=e.onClose,o=e.onQuery,i=e.script,a=void 0===i?"Match (n) return n limit 10":i,y=e.onSave,v=e.id,g=e.isFetching,E=e.antdToken,j=(e.schemaData,e.timestamp,e.language),O=e.message,P=(0,n.useRef)(null),T=(0,b.Z)(),L=function(){var e,t=(e=S().mark((function e(){var t,r;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=null==P||null===(t=P.current)||void 0===t||null===(t=t.codeEditor)||void 0===t?void 0:t.getValue(),o({id:v,script:r,language:j});case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){k(i,n,o,a,c,"next",e)}function c(e){k(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return n.createElement("div",{style:{}},n.createElement(u.Z,{justify:"space-between",style:{paddingBottom:"8px"}},n.createElement(s.Z,null,n.createElement(l.Z.Text,{type:"secondary",style:{fontSize:"12px",textAlign:"center"}},(t=j).charAt(0).toUpperCase()+t.slice(1)," ",O)),n.createElement(s.Z,{size:0},n.createElement(f.Z,{title:T.formatMessage({id:"Query"})},n.createElement(p.ZP,{type:"text",icon:n.createElement(d.Z,{spin:g,style:{color:g?"#52c41a":E.green}}),onClick:L})),y&&n.createElement(x,{onSave:function(e){var t,r=null==P||null===(t=P.current)||void 0===t||null===(t=t.codeEditor)||void 0===t?void 0:t.getValue(),n=(0,w.Z)();y&&y({id:n,script:r,name:e,language:j})}}),r&&n.createElement(f.Z,{title:T.formatMessage({id:"Share"})},n.createElement(p.ZP,{type:"text",icon:n.createElement(h.Z,{onClick:function(){var e,t=null==P||null===(e=P.current)||void 0===e||null===(e=e.codeEditor)||void 0===e?void 0:e.getValue();window.open("".concat(window.location.origin,"/querying?language=").concat(j,"&auto_run=true&global_script=").concat(encodeURIComponent(t)))}})})),r&&n.createElement(f.Z,{title:T.formatMessage({id:"Delete"})},n.createElement(p.ZP,{type:"text",icon:n.createElement(m.Z,{onClick:function(){r&&r(v)}})})))),n.createElement(c.Z,{language:j,ref:P,value:a}))},O=r(84723),P=r(35215),T=r(31192),L=r(9069),C=r(57591),I=r(88766),_=r(7234),N=r(86976);function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?"point":"interval",x:a||u,y:i,color:s,keys:Object.keys(r)}}(t);return{x:e.x,y:e.y,color:e.color,type:e.type,options:e.keys.map((function(e){return{label:e,value:e}}))}})),i=F(o,2),a=i[0],c=i[1];console.log(a);var u=a.type,l=a.x,f=a.y,p=a.color,d=a.options;(0,n.useEffect)((function(){var e;return r.current&&((e=new N.kL({container:r.current,autoFit:!0})).options({type:u,data:t,encode:{x:l,y:f,color:p},transform:[{type:"dodgeX"}]}),e.render()),function(){r.current&&e.destroy()}}),[u,l,f,t,p,r]);return n.createElement("div",{style:{padding:"16px",overflowX:"hidden"}},n.createElement(s.Z,{style:{paddingBottom:"16px"}},"Type:",n.createElement(_.default,{size:"small",defaultValue:u,style:{width:120},onChange:function(e){c((function(t){return D(D({},t),{},{type:e})}))},options:[{label:"interval",value:"interval"},{label:"point",value:"point"}]}),"X:",n.createElement(_.default,{size:"small",defaultValue:l,style:{width:120},onChange:function(e){c((function(t){return D(D({},t),{},{x:e})}))},options:d}),"Y:",n.createElement(_.default,{size:"small",defaultValue:f,style:{width:120},onChange:function(e){c((function(t){return D(D({},t),{},{y:e})}))},options:d}),"Color:",n.createElement(_.default,{size:"small",defaultValue:p,style:{width:120},onChange:function(e){c((function(t){return D(D({},t),{},{color:e})}))},options:d})),n.createElement("div",{ref:r,style:{width:"100%"}}))},q=r(58002),z=r(35731),B=r(36523);function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function Y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return H(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return H(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:"12px",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-8px";return n.createElement(n.Fragment,null,Object.entries(t).map((function(t){var i=Y(t,2),a=i[0],c=i[1];return n.createElement("div",{style:{paddingLeft:"16px",overflowWrap:"break-word",wordBreak:"break-all",whiteSpace:"pre-wrap"},key:a},n.createElement("span",{style:{color:"#F9822F",paddingLeft:r}},'"',a,'" :'),n.createElement("span",{style:{paddingLeft:"6px",textIndent:o}},"object"===U(c)&&null!==c?n.createElement(n.Fragment,null,"{",e(c,"24px","16px"),"}"):JSON.stringify(c,null,2)))})))},Q=function(e){var t=e.expandData,r=e.width;return n.createElement(u.Z,null,Object.values(t).map((function(e){return e.key&&n.createElement("div",{style:{marginLeft:"12px",width:"".concat(r,"%")},key:e.key},"{",V(e.data),"}")})))};function W(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return K(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return K(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0),l=a.length>0,f=u.length>0,p="raw",d=["raw"];return s&&(p="graph",d=["raw","table","graph"]),!s&&l&&(p="table",d=["raw","table"]),s||l||!f||(p="table",d=["raw","table"]),r&&(p=r),t&&(d=["raw"],p="raw"),{viewMode:p,options:d}}(t,r,c),f=l.viewMode,p=l.options,d=function(e){return-1!==p.indexOf(e)},h=[{label:s.formatMessage({id:"Graph"}),key:"graph",icon:n.createElement(he.Z,null),children:n.createElement(de.Z,{data:t,schemaData:o,graphId:i}),disabled:!d("graph")},{label:s.formatMessage({id:"Table"}),key:"table",icon:n.createElement(C.Z,null),children:n.createElement(ce,{data:t}),disabled:!d("table")},{label:s.formatMessage({id:"Raw"}),key:"raw",icon:n.createElement(me.Z,null),children:n.createElement(pe,{data:t,isFetching:r}),disabled:!d("raw")}];return n.createElement("div",{style:{padding:"16px 0px"}},n.createElement(O.Z,{items:h,size:"small",type:"card",activeKey:f,onChange:function(e){u(e)}}))},be=(0,n.memo)(ge);function xe(e){return xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xe(e)}function we(){we=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new L(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};s(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(C([])));w&&w!==r&&n.call(w,a)&&(b=w);var E=g.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==xe(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function C(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function Ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Se(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function m(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var y=u.Utils.storage,v=function(){var e,t=(e=h().mark((function e(t){var r,n,o,i,a,c;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=y.get("query_language")||"cypher",n=y.get("query_endpoint")||"",o=y.get("query_initiation"),i=y.get("query_username"),a=y.get("query_password"),e.prev=5,c={script:t,language:r,endpoint:n,username:i,password:a},"Server"!==o){e.next=11;break}return e.next=10,fetch("/graph/query",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then((function(e){return e.json()})).then((function(e){return e.success?e.data:{nodes:[],edges:[]}}));case 10:return e.abrupt("return",e.sent);case 11:return e.abrupt("return",(0,p.aq)(c));case 14:return e.prev=14,e.t0=e.catch(5),e.abrupt("return",{nodes:[],edges:[]});case 17:case"end":return e.stop()}}),e,null,[[5,14]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){m(i,n,o,a,c,"next",e)}function c(e){m(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function b(){b=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:P(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",m={};function y(){}function v(){}function x(){}var w={};s(w,a,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(_([])));S&&S!==r&&n.call(S,a)&&(w=S);var k=x.prototype=y.prototype=Object.create(w);function j(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==g(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function P(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=T(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function T(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function x(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function w(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){x(i,n,o,a,c,"next",e)}function c(e){x(i,n,o,a,c,"throw",e)}a(void 0)}))}}var E=function(){var e=w(b().mark((function e(t){var r,n,o,i;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.key,n=t.selectIds,o="\n MATCH ".concat(r,"\n WHERE elementId(a) IN [").concat(n,"] \n RETURN a,b,c\n "),e.next=4,v(o);case 4:return i=e.sent,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=w(b().mark((function e(t){var r,n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.schema,n={all:[{key:"(a)-[b]-(c)",label:"One-Hop Neighbors"}]},r.nodes.forEach((function(e){n[e.label]=k(r,e.label)})),e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function k(e,t){var r=[];return e.edges.forEach((function(e){var n=e.source,o=e.target,i=e.label;if((t===n||t===o)&&n===o)return"both",void r.push({key:"(a:".concat(n,")-[b:").concat(i,"]-(c:").concat(o,")"),label:"[".concat(i,"]-(").concat(o,")")});n===t&&("out",r.push({key:"(a:".concat(n,")-[b:").concat(i,"]->(c:").concat(o,")"),label:"[".concat(i,"]->(").concat(o,")")})),o===t&&("in",r.push({key:"(a:".concat(n,")<-[b:").concat(i,"]-(c:").concat(o,")"),label:"[".concat(i,"]<-(").concat(o,")")}))})),[{key:"(a)-[b]-(c)",label:"One-Hop Neighbors"}].concat(r)}var j={queryNeighborData:E,queryNeighborItems:S,queryStatement:v};function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function P(){P=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};s(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(_([])));w&&w!==r&&n.call(w,a)&&(b=w);var E=g.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==O(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=T(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?h:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function T(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function T(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function L(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){T(i,n,o,a,c,"next",e)}function c(e){T(i,n,o,a,c,"throw",e)}a(void 0)}))}}var C=function(){var e=L(P().mark((function e(t){var r,n,o,i;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.selectIds,n=r.join(","),o="g.V().hasId(".concat(n,").both().dedup()"),e.next=5,v(o);case 5:return i=e.sent,e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I=function(){var e=L(P().mark((function e(t){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{all:[{key:"(a)-[b]-(c)",label:"One-Hop Neighbors"}]});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_={queryStatement:v,queryNeighborData:C,queryNeighborItems:I},N=function(){var e=(0,u.useSection)().toggleLeftSide;return n.createElement(o.Z,{title:n.createElement(c.Z,{id:"Style settings"}),placement:"left"},n.createElement(i.ZP,{icon:n.createElement(f.Z,null),onClick:function(){return e()},type:"text"}))};(0,s.registerIcons)();var A=function(e){var t=e.data,r=e.schema,o=e.graphId,i=e.id,c=(0,n.useRef)(null),f="gremlin"===u.Utils.storage.get("query_language")?_:j,p=a.Z.useToken().token;return n.createElement("div",{style:{borderRadius:"8px",height:"500px",background:p.colorBgContainer},ref:c},n.createElement(s.GraphProvider,{id:i,services:f},n.createElement(u.Section,{splitBorder:!0,leftSide:n.createElement(s.StyleSetting,null),autoResize:!1,rightSideStyle:{width:"300px",padding:"12px 0px 12px 18px"},defaultCollapsed:{leftSide:!0,rightSide:!0}},n.createElement(s.Prepare,{data:t,schema:r,graphId:o}),n.createElement(s.Canvas,null),n.createElement(s.ZoomStatus,null),n.createElement(s.BasicInteraction,null),n.createElement(s.ClearStatus,null),n.createElement(s.PropertiesPanel,null),n.createElement(s.Loading,null),n.createElement(s.ContextMenu,null,n.createElement(s.NeighborQuery,null),n.createElement(s.DeleteLeafNodes,null),n.createElement(s.DeleteNode,null)),n.createElement(s.Toolbar,{style:{position:"absolute",top:"20px",left:"20px",right:"unset"}},n.createElement(N,null),n.createElement(l.Z,{style:{margin:"0px"}}),n.createElement(u.FullScreen,{containerRef:c}),n.createElement(s.ZoomFit,null),n.createElement(s.Brush,null),n.createElement(s.FixedMode,null),n.createElement(l.Z,{style:{margin:"0px"}}),n.createElement(s.SwitchEngine,null),n.createElement(s.RunCluster,null),n.createElement(s.Export,null)))))};function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}var R=["properties","constraints"];function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function B(e){return{nodes:e.nodes,edges:e.edges.map((function(e){var t=e.properties,r=e.constraints,n=z(e,R),o=M(r[0],2),i=o[0],a=o[1];return Z(Z({},n),{},{source:i,target:a,properties:t})}))}}var U=function(e){var t=e.data,r=e.schemaData,o=e.graphId,i=B(r);return n.createElement("div",{style:{width:"100%"}},n.createElement(A,{data:t,schema:i,graphId:o}))}},43282:function(e,t,r){r.r(t),r.d(t,{demos:function(){return n}});r(50959),r(85430);var n={}},78624:function(e,t,r){r.r(t),r.d(t,{demos:function(){return u}});var n=r(90228),o=r.n(n),i=r(87999),a=r.n(i),c=r(50959),u=(r(8646),{"packages-studio-components-readme-demo-0":{component:c.memo(c.lazy(a()(o()().mark((function e(){var t,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(2428).then(r.bind(r,22428));case 2:return t=e.sent,n=t.default,e.abrupt("return",{default:function(){return c.createElement(n,null)}});case 5:case"end":return e.stop()}}),e)}))))),asset:null,context:void 0,renderOpts:void 0}})},31482:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return m}});var o,i=r(90228),a=r.n(i),c=r(26068),u=r.n(c),s=r(48305),l=r.n(s),f=r(87999),p=r.n(f),d=r(50959),h=(r(4480),r(58002)),m={"editabletext-demo-0":{component:d.memo(d.lazy(p()(a()().mark((function e(){var t,n,o,i,c;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,o=t.useState,e.next=7,Promise.resolve().then(r.bind(r,58002));case 7:return i=e.sent,c=i.EditableText,e.abrupt("return",{default:function(){var e=o({text:"double click"}),t=l()(e,2),r=t[0],i=t[1],a=r.text;return n.createElement("div",null,n.createElement(c,{text:a,onTextChange:function(e){console.log("value",e),i((function(t){return u()(u()({},t),{},{text:e})}))}}))}});case 10:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"editabletext-demo-0",refAtomIds:["EditableText"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { EditableText } from '@graphscope/studio-components';\nexport default () => {\n const [state, updateState] = useState({\n text: 'double click',\n });\n const onChange = value => {\n console.log('value', value);\n updateState(preState => {\n return {\n ...preState,\n text: value,\n };\n });\n };\n const { text } = state;\n return (\n
\n \n
\n );\n};"},react:{type:"NPM",value:"18.2.0"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(d,2)),"@graphscope/studio-components":h},renderOpts:{compile:(o=p()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},87231:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return f}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(93238),r(58002)),f={"emptycanvas-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,58002));case 7:return o=e.sent,i=o.EmptyCanvas,e.abrupt("return",{default:function(){return n.createElement("div",null,n.createElement(i,null))}});case 10:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"emptycanvas-demo-0",refAtomIds:["EmptyCanvas"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { EmptyCanvas } from '@graphscope/studio-components';\nexport default () => {\n return (\n
\n \n
\n );\n};"},react:{type:"NPM",value:"18.2.0"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),"@graphscope/studio-components":l},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},70432:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return f}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(48741),r(58002)),f={"fullscreen-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,o=t.useRef,e.next=8,Promise.resolve().then(r.bind(r,58002));case 8:return i=e.sent,c=i.FullScreen,e.abrupt("return",{default:function(){var e=o(null);return n.createElement("div",null,n.createElement(c,{containerRef:e}),n.createElement("div",{ref:e,style:{width:"100%",height:"500px",background:"#ddd",textAlign:"center",lineHeight:"100%"}},"Trigger full screen"))}});case 11:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"fullscreen-demo-0",refAtomIds:["FullScreen"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState, useRef } from 'react';\nimport { FullScreen } from '@graphscope/studio-components';\nexport default () => {\n const containerRef = useRef(null);\n return (\n
\n \n \n Trigger full screen\n
\n \n );\n};"},react:{type:"NPM",value:"18.2.0"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),"@graphscope/studio-components":l},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},83039:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return p}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(36666),r(2739)),f=r(58002),p={"illustration-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c,u,s;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,2739));case 7:return o=e.sent,o.Space,i=o.Flex,c=o.Typography,e.next=13,Promise.resolve().then(r.bind(r,58002));case 13:return u=e.sent,s=u.Illustration,e.abrupt("return",{default:function(){return n.createElement(i,{wrap:!0,gap:44},Object.keys(s).map((function(e){var t=s[e];return n.createElement(i,{key:e,gap:8,vertical:!0,align:"center"},n.createElement(t,null),n.createElement(c.Text,null,e))})))}});case 16:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"illustration-demo-0",refAtomIds:["Illustration"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { Space, Flex, Typography } from 'antd';\nimport { Illustration } from '@graphscope/studio-components';\n\nexport default () => {\n return (\n \n {Object.keys(Illustration).map(key => {\n const Item = Illustration[key];\n return (\n \n \n {key}\n \n );\n })}\n \n );\n};"},react:{type:"NPM",value:"18.2.0"},antd:{type:"NPM",value:"5.22.2"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),antd:l,"@graphscope/studio-components":f},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},67114:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return f}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(19895),r(58002)),f={"importfiles-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c,u;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,t.useRef,e.next=8,Promise.resolve().then(r.bind(r,58002));case 8:return o=e.sent,i=o.ImportFiles,c=o.Button,u=o.message,e.abrupt("return",{default:function(){return n.createElement("div",{style:{height:"500px"}},n.createElement(i,{upload:{accept:".json,.csv",title:"xxx",description:"xxx"},type:"json"},(function(e){return n.createElement(n.Fragment,null,n.createElement(c,{type:"primary",onClick:function(){return function(e){u(e)}(e)},loading:e.loading},"Visualization"))})))}});case 13:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"importfiles-demo-0",refAtomIds:["ImportFiles"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState, useRef } from 'react';\nimport { ImportFiles, Button, message } from '@graphscope/studio-components';\n\nexport default () => {\n const onSubmit = params => {\n message(params);\n };\n return (\n
\n \n {params => {\n return (\n <>\n \n \n );\n }}\n \n
\n );\n};"},react:{type:"NPM",value:"18.2.0"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),"@graphscope/studio-components":l},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},98063:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return p}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(54581),r(2739)),f=r(58002),p={"logo-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c,u,s;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,2739));case 7:return o=e.sent,o.Space,e.next=11,Promise.resolve().then(r.bind(r,58002));case 11:return i=e.sent,c=i.Logo,u=i.LogoText,s=i.LogoImage,e.abrupt("return",{default:function(){return n.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"40px"}},n.createElement(c,null),n.createElement(u,null),n.createElement(s,null))}});case 16:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"logo-demo-0",refAtomIds:["Logo"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { Space } from 'antd';\nimport { Logo, LogoText, LogoImage } from '@graphscope/studio-components';\n\nexport default () => {\n return (\n
\n \n \n \n
\n );\n};"},react:{type:"NPM",value:"18.2.0"},antd:{type:"NPM",value:"5.22.2"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),antd:l,"@graphscope/studio-components":f},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},47785:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return h}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(518),r(2739)),f=r(9102),p=r(53420),d=r(5855),h={"provider-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c,u,s,l,f,p,d,h;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,2739));case 7:return o=e.sent,i=o.Button,o.Space,o.Input,e.next=13,Promise.resolve().then(r.bind(r,9102));case 13:return c=e.sent,u=c.default,e.next=17,Promise.resolve().then(r.bind(r,5855));case 17:return s=e.sent,l=s.useStudioProvier,e.next=21,Promise.resolve().then(r.bind(r,53420));case 21:return f=e.sent,p=f.components,d=f.token,h=function(){var e=l().handleThemeOrLocale;return n.createElement(i,{onClick:function(){e({components:p,token:d})}},"edit")},e.abrupt("return",{default:function(){return n.createElement(u,{mode:"defaultAlgorithm"},n.createElement(h,null),n.createElement(i,null,"colorPrimary"))}});case 26:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"provider-demo-0",refAtomIds:["Provider"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { Button, Space, Input } from 'antd';\nimport ThemeProvider from './index.tsx';\nimport { useStudioProvier } from './useThemeConfigProvider.tsx';\nimport { components, token } from './const.ts';\n/** 修改主题色 */\nconst ToogleButton = () => {\n const { handleThemeOrLocale } = useStudioProvier();\n return (\n {\n handleThemeOrLocale({\n components,\n token,\n });\n }}\n >\n edit\n \n );\n};\n\nexport default () => {\n return (\n \n \n \n \n );\n};"},react:{type:"NPM",value:"18.2.0"},antd:{type:"NPM",value:"5.22.2"},"./index.tsx":{type:"FILE",value:r(20880).Z},"./const.ts":{type:"FILE",value:r(22211).Z},"./useThemeConfigProvider.tsx":{type:"FILE",value:r(88241).Z}},entry:"index.jsx"},context:{"./index.tsx":f,"./const.ts":p,"./useThemeConfigProvider.tsx":d,react:n||(n=r.t(s,2)),antd:l,"/home/runner/work/portal/portal/packages/studio-components/src/Provider/index.tsx":f,"/home/runner/work/portal/portal/packages/studio-components/src/Provider/const.ts":p,"/home/runner/work/portal/portal/packages/studio-components/src/Provider/useThemeConfigProvider.tsx":d},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},91445:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return f}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(3750),r(78781)),f={"resizablepanel-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,e.next=6,Promise.resolve().then(r.bind(r,78781));case 6:return o=e.sent,i=o.default,e.abrupt("return",{default:function(){return n.createElement(i,{leftSide:n.createElement("div",{style:{minWidth:"300px",height:"300px",background:"#F7F7F7",textAlign:"center"}},"leftSide"),middleSide:n.createElement("div",{style:{minWidth:"600px",height:"300px",background:"#FFA444",textAlign:"center"}},"middleSide"),rightSide:n.createElement("div",{style:{minWidth:"300px",height:"300px",background:"#91CAFA",textAlign:"center"}},"rightSide")})}});case 9:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"resizablepanel-demo-0",refAtomIds:["ResizablePanel"],dependencies:{"index.jsx":{type:"FILE",value:"import React from 'react';\nimport ResizablePanel from './index.tsx';\n\nexport default () => {\n return (\n leftSide\n }\n middleSide={\n
middleSide
\n }\n rightSide={\n \n rightSide\n \n }\n />\n );\n};"},react:{type:"NPM",value:"18.2.0"},"./index.tsx":{type:"FILE",value:r(17239).Z}},entry:"index.jsx"},context:{"./index.tsx":l,react:n||(n=r.t(s,2)),"/home/runner/work/portal/portal/packages/studio-components/src/ResizablePanel/index.tsx":l},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},3151:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return p}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(43716),r(2739)),f=r(58002),p={"segmentedtabs-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c,u,s,l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,2739));case 7:return o=e.sent,o.Space,e.next=11,Promise.resolve().then(r.bind(r,58002));case 11:return i=e.sent,c=i.SegmentedTabs,u=function(){return n.createElement("div",null,"Tab-1 components")},s=function(){return n.createElement("div",null,"Tab-2 components")},l=function(){return n.createElement("div",null,"Tab-3 components")},e.abrupt("return",{default:function(){var e=[{key:"Tab-1",children:n.createElement(u,null),label:"Tab-1"},{key:"Tab-2",children:n.createElement(s,null),label:"Tab-2"},{key:"Tab-3",children:n.createElement(l,null),label:"Tab-3"}];return n.createElement("div",null,n.createElement(c,{items:e}))}});case 17:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"segmentedtabs-demo-0",refAtomIds:["SegmentedTabs"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { Space } from 'antd';\nimport { SegmentedTabs } from '@graphscope/studio-components';\nconst Tab1 = () => {\n return
Tab-1 components
;\n};\nconst Tab2 = () => {\n return
Tab-2 components
;\n};\nconst Tab3 = () => {\n return
Tab-3 components
;\n};\nexport default () => {\n const items = [\n {\n key: 'Tab-1',\n children: ,\n label: 'Tab-1',\n },\n {\n key: 'Tab-2',\n children: ,\n label: 'Tab-2',\n },\n {\n key: 'Tab-3',\n children: ,\n label: 'Tab-3',\n },\n ];\n return (\n
\n \n
\n );\n};"},react:{type:"NPM",value:"18.2.0"},antd:{type:"NPM",value:"5.22.2"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),antd:l,"@graphscope/studio-components":f},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},62359:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return p}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(43765),r(2739)),f=r(58002),p={"sidetabs-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c,u,s;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,2739));case 7:return o=e.sent,o.Space,e.next=11,Promise.resolve().then(r.bind(r,58002));case 11:return i=e.sent,i.SegmentedTabs,c=function(){return n.createElement("div",null,"Tab-1 components")},u=function(){return n.createElement("div",null,"Tab-2 components")},s=function(){return n.createElement("div",null,"Tab-3 components")},e.abrupt("return",{default:function(){var e=[{key:"Tab-1",children:n.createElement(c,null),label:"Tab-1"},{key:"Tab-2",children:n.createElement(u,null),label:"Tab-2"},{key:"Tab-3",children:n.createElement(s,null),label:"Tab-3"}];return n.createElement("div",null,n.createElement(Sidebar,{options:e,value:"Tab-1",collapse:!1}))}});case 17:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"sidetabs-demo-0",refAtomIds:["SideTabs"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { Space } from 'antd';\nimport { SegmentedTabs } from '@graphscope/studio-components';\nconst Tab1 = () => {\n return
Tab-1 components
;\n};\nconst Tab2 = () => {\n return
Tab-2 components
;\n};\nconst Tab3 = () => {\n return
Tab-3 components
;\n};\nexport default () => {\n const items = [\n {\n key: 'Tab-1',\n children: ,\n label: 'Tab-1',\n },\n {\n key: 'Tab-2',\n children: ,\n label: 'Tab-2',\n },\n {\n key: 'Tab-3',\n children: ,\n label: 'Tab-3',\n },\n ];\n return (\n
\n \n
\n );\n};"},react:{type:"NPM",value:"18.2.0"},antd:{type:"NPM",value:"5.22.2"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),antd:l,"@graphscope/studio-components":f},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},99409:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return p}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(44412),r(2739)),f=r(58002),p={"tablecard-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,2739));case 7:return o=e.sent,o.Space,e.next=11,Promise.resolve().then(r.bind(r,58002));case 11:return i=e.sent,c=i.TableCard,e.abrupt("return",{default:function(){return n.createElement("div",null,n.createElement(c,{data:{label:"table-1",properties:[{}]}}))}});case 14:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"tablecard-demo-0",refAtomIds:["TableCard"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { Space } from 'antd';\nimport { TableCard } from '@graphscope/studio-components';\n\nexport default () => {\n const data = {\n label: 'table-1',\n properties: [{}],\n };\n return (\n
\n \n
\n );\n};"},react:{type:"NPM",value:"18.2.0"},antd:{type:"NPM",value:"5.22.2"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),antd:l,"@graphscope/studio-components":f},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},98440:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return p}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(85792),r(2739)),f=r(58002),p={"toolbar-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c,u,s;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,2739));case 7:return o=e.sent,o.Space,i=o.Button,e.next=12,Promise.resolve().then(r.bind(r,58002));case 12:return c=e.sent,u=c.Toolbar,s=c.Icons,e.abrupt("return",{default:function(){return n.createElement("div",{style:{position:"relative",height:"400px"}},n.createElement(u,null,n.createElement(i,{type:"text",icon:n.createElement(s.Sidebar,null)}),n.createElement(i,{type:"text",icon:n.createElement(s.AddNode,null)})))}});case 16:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"toolbar-demo-0",refAtomIds:["Toolbar"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { Space, Button } from 'antd';\nimport { Toolbar, Icons } from '@graphscope/studio-components';\n\nexport default () => {\n return (\n
\n \n
\n );\n};"},react:{type:"NPM",value:"18.2.0"},antd:{type:"NPM",value:"5.22.2"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),antd:l,"@graphscope/studio-components":f},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},2434:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return p}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(44117),r(2739)),f=r(58002),p={"typingtext-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i,c;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,e.next=7,Promise.resolve().then(r.bind(r,2739));case 7:return o=e.sent,o.Space,o.Button,e.next=12,Promise.resolve().then(r.bind(r,58002));case 12:return i=e.sent,c=i.TypingText,e.abrupt("return",{default:function(){return n.createElement(c,null,"GraphScope Portal is a user-friendly web interface that simplifies managing graph data with GraphScope. It offers one-stop access to data modeling, importing, querying, and monitoring, catering to both Interactive and Insight engines within the GraphScope Flex architecture.")}});case 15:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"typingtext-demo-0",refAtomIds:["TypingText"],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState } from 'react';\nimport { Space, Button } from 'antd';\nimport { TypingText } from '@graphscope/studio-components';\n\nexport default () => {\n return (\n \n GraphScope Portal is a user-friendly web interface that simplifies managing graph data with GraphScope. It offers\n one-stop access to data modeling, importing, querying, and monitoring, catering to both Interactive and Insight\n engines within the GraphScope Flex architecture.\n \n );\n};"},react:{type:"NPM",value:"18.2.0"},antd:{type:"NPM",value:"5.22.2"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),antd:l,"@graphscope/studio-components":f},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},54734:function(e,t,r){r.r(t),r.d(t,{demos:function(){return n}});r(50959),r(4866);var n={}},82463:function(e,t,r){r.r(t),r.d(t,{demos:function(){return l}});var n,o=r(90228),i=r.n(o),a=r(87999),c=r.n(a),u=r(50959),s=(r(93995),r(58002)),l={"layout-demo-0":{component:u.memo(u.lazy(c()(i()().mark((function e(){var t,n,o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.bind(r,58002));case 2:return t=e.sent,n=t.Layout,o=t.Icons,t.StudioProvider,e.abrupt("return",{default:function(){var e=[{label:"home",key:"/home",icon:u.createElement(o.Cluster,null)}];return u.createElement("div",{style:{height:"500px",border:"1px solid red"}},u.createElement(n,{sideMenu:[e]}))}});case 7:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"layout-demo-0",refAtomIds:["layout"],dependencies:{"index.jsx":{type:"FILE",value:"import { Layout, Icons, StudioProvider } from '@graphscope/studio-components';\n\nexport default () => {\n const sideMenu = [\n {\n label: 'home',\n key: '/home',\n icon: ,\n },\n ];\n return (\n
\n \n
\n );\n};"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{"@graphscope/studio-components":s},renderOpts:{compile:(n=c()(i()().mark((function e(){var t,n=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})}}}},55348:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return f}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(26973),r(61719)),f={"packages-studio-importor-src-app-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,n=t.default,t.useState,t.useEffect,e.next=8,Promise.resolve().then(r.bind(r,61719));case 8:return o=e.sent,i=o.default,e.abrupt("return",{default:function(){var e=function(){var e=u()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{nodes:[],edges:[]});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return n.createElement("div",{style:{position:"fixed",top:"65px",left:"0px",right:"0px",zIndex:999,bottom:"0px",background:"#fff"}},n.createElement(i,{queryPrimitiveTypes:function(){return["DT_DOUBLE","DT_STRING","DT_SIGNED_INT32","DT_SIGNED_INT64"].map((function(e){return{label:e,value:e}}))},queryGraphSchema:e,appMode:"DATA_MODELING"}))}});case 11:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"packages-studio-importor-src-app-demo-0",refAtomIds:[],dependencies:{"index.jsx":{type:"FILE",value:"import React, { useState, useEffect } from 'react';\nimport ModelingApp from '@graphscope/studio-importor';\nexport default () => {\n const queryGraphSchema = async () => {\n return { nodes: [], edges: [] };\n };\n return (\n \n {\n return ['DT_DOUBLE', 'DT_STRING', 'DT_SIGNED_INT32', 'DT_SIGNED_INT64'].map(item => {\n return { label: item, value: item };\n });\n }}\n queryGraphSchema={queryGraphSchema}\n appMode=\"DATA_MODELING\"\n />\n \n );\n};"},react:{type:"NPM",value:"18.2.0"},"@graphscope/studio-importor":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{react:n||(n=r.t(s,2)),"@graphscope/studio-importor":l},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},52545:function(e,t,r){r.r(t),r.d(t,{demos:function(){return f}});var n,o=r(90228),i=r.n(o),a=r(87999),c=r.n(a),u=r(50959),s=(r(67866),r(21050)),l=r(58002),f={"packages-studio-query-src-app-demo-0":{component:u.memo(u.lazy(c()(i()().mark((function e(){var t,n,o,a,c;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.bind(r,21050));case 2:return t=e.sent,n=t.default,e.next=6,Promise.resolve().then(r.bind(r,58002));case 6:return o=e.sent,a=o.Utils,c=a.storage,e.abrupt("return",{default:function(){var e=window.GS_ENGINE_TYPE,t="groot"===e?"gremlin":"cypher",r="groot"===e?"g.V().limit 10":"Match (n) return n limit 10",o=c.get("locale")||"en-US",i=c.get("primaryColor")||"#1978FF",a=c.get("themeColor")||"defaultAlgorithm";return u.createElement("div",{style:{position:"fixed",top:"65px",left:"0px",right:"0px",zIndex:999,bottom:"0px",background:"#fff"}},u.createElement(n,{theme:{mode:a,primaryColor:i},locale:o,globalScript:r,language:t,queryInfo:function(){return new Promise((function(e){e({graph_name:"demo"})}))},queryGraphSchema:function(){return new Promise((function(e){e({nodes:[],edges:[]})}))},queryStatements:function(){return new Promise((function(e){e([])}))}}))}});case 10:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"packages-studio-query-src-app-demo-0",refAtomIds:[],dependencies:{"index.jsx":{type:"FILE",value:"import QueryApp from '@graphscope/studio-query';\nimport { Utils } from '@graphscope/studio-components';\nconst { storage } = Utils;\n\nexport default () => {\n const queryInfo = () => {\n return new Promise(resolve => {\n resolve({\n graph_name: 'demo',\n });\n });\n };\n const queryGraphSchema = () => {\n return new Promise(resolve => {\n resolve({\n nodes: [],\n edges: [],\n });\n });\n };\n const queryStatements = () => {\n return new Promise(resolve => {\n resolve([]);\n });\n };\n const { GS_ENGINE_TYPE } = window;\n const language = GS_ENGINE_TYPE === 'groot' ? 'gremlin' : 'cypher';\n const globalScript = GS_ENGINE_TYPE === 'groot' ? 'g.V().limit 10' : 'Match (n) return n limit 10';\n\n const locale = storage.get('locale') || 'en-US';\n const primaryColor = storage.get('primaryColor') || '#1978FF';\n const themeMode = storage.get('themeColor') || 'defaultAlgorithm';\n\n return (\n \n \n \n );\n};"},"@graphscope/studio-query":{type:"NPM",value:"0.1.14"},"@graphscope/studio-components":{type:"NPM",value:"0.1.14"}},entry:"index.jsx"},context:{"@graphscope/studio-query":s,"@graphscope/studio-components":l},renderOpts:{compile:(n=c()(i()().mark((function e(){var t,n=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})}}}},57298:function(e,t,r){var n;r.r(t),r.d(t,{demos:function(){return f}});var o,i=r(90228),a=r.n(i),c=r(87999),u=r.n(c),s=r(50959),l=(r(37275),r(59506)),f={"packages-studio-query-src-statement-demo-0":{component:s.memo(s.lazy(u()(a()().mark((function e(){var t,n,o;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.t.bind(r,50959,19));case 2:return t=e.sent,t.default,e.next=6,Promise.resolve().then(r.bind(r,59506));case 6:return n=e.sent,o=n.default,e.abrupt("return",{default:o});case 9:case"end":return e.stop()}}),e)}))))),asset:{type:"BLOCK",id:"packages-studio-query-src-statement-demo-0",refAtomIds:[],dependencies:{"index.jsx":{type:"FILE",value:"import React from 'react';\nimport SDK from '../sdk/index.tsx';\nexport default SDK;"},react:{type:"NPM",value:"18.2.0"},"../sdk/index.tsx":{type:"FILE",value:r(9534).Z}},entry:"index.jsx"},context:{"../sdk/index.tsx":l,react:n||(n=r.t(s,2)),"/home/runner/work/portal/portal/packages/studio-query/src/sdk/index.tsx":l},renderOpts:{compile:(o=u()(a()().mark((function e(){var t,n=arguments;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(1128).then(r.bind(r,61128));case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})}}}},53420:function(e,t,r){r.r(t),r.d(t,{components:function(){return n},token:function(){return o}});var n={Menu:{itemBg:"rgba(255, 255, 255, 0)",subMenuItemBg:"rgba(255, 255, 255, 0)",iconMarginInlineEnd:14,itemMarginInline:4,iconSize:14,collapsedWidth:50,itemActiveBg:"#eaeaea"},Typography:{titleMarginBottom:"0.2em",titleMarginTop:"0.8em"},Table:{cellPaddingBlock:4,cellPaddingInline:8},Pagination:{itemSize:20},Result:{iconFontSize:62,titleFontSize:20,colorError:"#00000073"}},o={colorBorder:"red",colorBgBase:"#fff"}},9102:function(e,t,r){r.r(t),r.d(t,{default:function(){return m}});var n=r(26068),o=r.n(n),i=r(48305),a=r.n(i),c=r(50959),u=r(36276),s=r(53531),l=r(98262),f=r(5855);r(15558),r(31759),r(90228),r(87999);new(r(49582).Parser)("mysql");var p=function(e){try{var t=localStorage.getItem(e);if(t)return function(e){try{return JSON.parse(e)}catch(t){if("string"!=typeof e||e.startsWith('"')||e.endsWith('"'))return e;try{return JSON.parse('"'.concat(e,'"'))}catch(t){return console.error("Failed to parse the input:",t),e}}}(t)}catch(e){console.error("Error while retrieving data from localStorage:",e)}},d=function(e,t){try{localStorage.setItem(e,JSON.stringify(t,null,2))}catch(e){console.error("Error while storing data in localStorage:",e)}};var h=r(11527),m=function(e){var t=e.children,r=e.locales,n=(0,c.useState)((function(){var t=e.algorithm,r=e.locale;return r||(r=p("locale"))||d("locale",r="en-US"),t||(t=p("algorithm"))||d("algorithm",t="defaultAlgorithm"),{components:p("components"),token:p("token"),algorithm:t,locale:r}})),i=a()(n,2),m=i[0],y=i[1],v=m.components,g=m.token,b=m.algorithm,x=m.locale,w=function(e){var t="defaultAlgorithm"===e;return{componentsConfig:{Menu:{itemBg:"rgba(255, 255, 255, 0)",subMenuItemBg:"rgba(255, 255, 255, 0)",iconMarginInlineEnd:14,itemMarginInline:4,iconSize:14,collapsedWidth:56,horizontalLineHeight:32,itemHeight:32},Typography:{titleMarginBottom:"0.2em",titleMarginTop:"0.8em"},Table:{cellPaddingBlock:4,cellPaddingInline:8},Pagination:{itemSize:20},Result:{iconFontSize:62,titleFontSize:20,colorError:t?"#00000073":"#ddd"}},tokenConfig:{colorBorder:t?"#F0F0F0":"#303030",colorBgBase:t?"#fff":"#1d1d1d",colorBgLayout:t?"#f5f7f9":"rgba(43,43,43,1)"}}}(b),E=w.componentsConfig,S=w.tokenConfig,k=function(){var e="defaultAlgorithm"===(0,f.useStudioProvier)().algorithm;return{sectionBackground:e?"#fff":"#0D0D0D",containerBackground:e?"#f5f7f9":"#020202",instanceBackground:e?"#FCFCFC":"",jobDetailBorder:e?"#efefef":"#323232",jobDetailColor:e?"#1F1F1F":"#808080",codeMirrorBorder:e?"#efefef":"#323232",editorBackground:e?"#fff":"#151515",editorForeground:e?"#212121":"#FFF",buttonBackground:e?"#fff":"#1d1d1d",layoutBackground:e?"#fff":"#020202"}}(),j="defaultAlgorithm"===b,O=r[x||"en-US"];return(0,h.jsx)(f.ContainerProvider,{value:o()({token:o()(o()({},S),g),components:o()(o()({},E),v),handleThemeOrLocale:function(e){var t=e.components,r=e.token;Object.keys(e).forEach((function(t){d(t,e[t])})),y((function(n){var i;return d("token",o()(o()({},n.token),r)),o()(o()({},n),{},{components:o()(o()({},n.components),t),token:o()(o()({},n.token),r),algorithm:e.algorithm||n.algorithm,locale:null!==(i=e.locale)&&void 0!==i?i:p("locale")})}))},algorithm:b,locale:x,isLight:j},k),children:(0,h.jsx)(l.Z,{messages:O,locale:x,children:(0,h.jsx)(u.ZP,{theme:{algorithm:j?s.Z.defaultAlgorithm:s.Z.darkAlgorithm,components:o()(o()({},E),v),token:o()(o()({},S),g)},children:t})})})}},5855:function(e,t,r){r.r(t),r.d(t,{ContainerContext:function(){return a},ContainerProvider:function(){return c},useStudioProvier:function(){return u}});var n=r(36075),o=r.n(n),i=r(50959),a=(0,i.createContext)({components:{},token:{},handleThemeOrLocale:function(e){o()(e)},locale:"en-US",algorithm:"defaultAlgorithm",isLight:!1}),c=a.Provider,u=function(){var e=(0,i.useContext)(a);if(void 0===e||0===Object.keys(e).length)throw new Error("useContext must be used within a ContainerProvider");return e}},78781:function(e,t,r){r.r(t),r.d(t,{default:function(){return u}});r(50959);var n=r(8395),o=r(11527),i={ResizeHandleOuter:{flex:"0 0 1.5em",position:"relative",outline:"none",transform:"rotate(90deg)",backgroundColor:"transparent"},ResizeHandleInner:{position:"absolute",top:"0.25em",bottom:"0.25em",left:"0.25em",right:"0.25em",borderRadius:"0.25em",backgroundColor:"transparent",transition:"background-color 0.2s linear"},Icon:{width:"1em",height:"1em",position:"absolute",left:"calc(50% - 0.5rem)",top:"calc(50% - 0.5rem)"}};function a(e){e.className;var t=e.id;return(0,o.jsx)(n.OT,{style:i.ResizeHandleOuter,id:t,children:(0,o.jsx)("div",{style:i.ResizeHandleInner,children:(0,o.jsx)("svg",{style:i.Icon,viewBox:"0 0 24 24",children:(0,o.jsx)("path",{fill:"currentColor",d:"M8,18H11V15H2V13H22V15H13V18H16L12,22L8,18M12,2L8,6H11V9H2V11H22V9H13V6H16L12,2Z"})})})})}var c={Container:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:"1rem"},Panel:{display:"flex",flexDirection:"row"},PanelContent:{height:"100%",width:"100%",borderRadius:"0.5rem"}},u=function(e){var t=e.leftSide,r=e.middleSide,i=e.rightSide,u=e.leftMinSize,s=void 0===u?20:u,l=e.leftMaxSize,f=void 0===l?40:l,p=e.rightMinSize,d=void 0===p?20:p,h=e.rightMaxSize,m=void 0===h?40:h;return(0,o.jsx)("div",{style:c.Container,children:(0,o.jsxs)(n.eh,{autoSaveId:"example",direction:"horizontal",children:[t&&[(0,o.jsx)(n.s_,{style:c.Panel,collapsible:!1,order:1,minSize:s,maxSize:f,children:(0,o.jsx)("div",{style:c.PanelContent,children:t})}),(0,o.jsx)(a,{},"left-handle")],(0,o.jsx)(n.s_,{style:c.Panel,collapsible:!1,order:2,children:(0,o.jsx)("div",{style:c.PanelContent,children:r})}),i&&[(0,o.jsx)(a,{},"right-handle"),(0,o.jsx)(n.s_,{style:c.Panel,collapsible:!1,order:3,minSize:d,maxSize:m,children:(0,o.jsx)("div",{style:c.PanelContent,children:i})})]]})})}},73174:function(e,t,r){r.d(t,{qp:function(){return i},rv:function(){return o}});var n=r(33741),o={mode:"GS_STUDIO_QUERY_MODE"},i=function(){return(0,n.qp)()}},16471:function(e,t,r){r.d(t,{Ek:function(){return n}});r(58002).Utils.storage;function n(e){return(e.match(/\r?\n/g)||[]).length+1}},70667:function(e,t,r){r.d(t,{Z:function(){return x}});var n=r(50959),o=r(58002),i=r(96066),a=(r(52871),r(26068)),c=r.n(a),u=r(15558),s=r.n(u),l={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},f={defaultToken:"",tokenPostfix:".gremlin",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["g","V","E","out","in","both","has","hasLabel","limit","order","by","select","count","filter","map","dedup","outE","inE","bothE"],builtinLiterals:["true","false","null"],builtinFunctions:["values","keys","id","label","property","outV","inV","bothV","sum","mean","min","max","coalesce","is","not","range","fold"],operators:["+","-","*","/","%","^","=","<>","<",">","<=",">="],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function","@keywords":"keyword","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[\+\-\*\/\^%]+/,"delimiter.operator"],[/[\!<>\?=\|&]/,"delimiter"]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}};var p=[].concat(["count","fold","sum","min","max","mean","group","groupCount"],["hasId","hasLabel","has","hasNot","is","where","not","dedup","order","limit","coin","sample","union"],["id","label","constant","valueMap","values","elementMap","select"]),d=["outV","inV","otherV","bothV"],h=["outE","inE","bothE","out","in","both"],m={};[].concat(d,["out","in","both"]).forEach((function(e){m[e]=[].concat(h,s()(p))})),["outE","inE","bothE"].forEach((function(e){m[e]=[].concat(d,s()(p))}));var y=r(11527);function v(e){return(e.match(/\r?\n/g)||[]).length+1}i.Mj.register({id:"gremlin"}),i.Mj.setMonarchTokensProvider("gremlin",f),i.Mj.setLanguageConfiguration("gremlin",l),i.Mj.registerCompletionItemProvider("gremlin",{triggerCharacters:["."],provideCompletionItems:function(e,t){var r,n=e.getLineContent(t.lineNumber).slice(0,t.column-1).trim(),o=function(e){var t=c()({g:["V","E"],V:[].concat(h,["match"],s()(p)),E:[].concat(d,s()(p))},m)[e]||[];return t.map((function(e){return{label:e,kind:i.Mj.CompletionItemKind.Function,documentation:e,insertText:"".concat(e,"()")}}))}((r=n.replace(/\(.*?\)/g,"").split(/\s|\./).filter(Boolean)).length>0?r[r.length-1]:"");return{suggestions:o}}});var g={cypher:"cypherTheme",gremlin:"GremlinTheme"},b=(0,n.forwardRef)((function(e,t){(0,o.useDynamicStyle)("\n.monaco-editor .view-overlays .current-line {\n background-color: transparent !important;\n}\n\n.monaco-editor .monaco-scrollable-element::-webkit-scrollbar {\n display: none;\n}\n\n.decorationsOverviewRuler {\n display: none !important;\n}\n\n.monaco-editor .view-overlays .current-line-exact {\n border: none !important;\n}\n\n.monaco-editor .scroll-decoration {\n box-shadow: none;\n}\n","cypher-editor-style");var r,a=e.value,c=e.language,u=void 0===c?"cypher":c,s=e.maxRows,l=void 0===s?10:s,f=e.minRows,p=void 0===f?1:f,d=e.onChangeContent,h=e.clear,m=e.onInit,b=d?0:v(a),x=(0,o.useStudioProvier)().isLight;return(0,n.useEffect)((function(){return t&&t.current&&(v(a)<=l&&(t.current.style.height=20*v(a)+"px"),r=i.j6.create(t.current,{language:"gremlin",value:a,theme:x?g[u]:"vs-dark",suggestLineHeight:20,automaticLayout:!0,minimap:{enabled:!1},fontSize:14,lineHeight:20,folding:!0,wordWrap:"on",scrollBeyondLastLine:!1,scrollBeyondLastColumn:0}),t.current.codeEditor=r,r.onDidChangeModelContent((function(){var e,n=r.getContentHeight(),o=null===(e=r.getModel())||void 0===e?void 0:e.getLineCount();n<=20*l&&(t.current.style.height=n+"px"),d&&d(o,r)})),m&&m(t.current)),function(){r.dispose()}}),[t,a,u,!x]),n.useEffect((function(){h&&t&&t.current&&t.current.codeEditor&&t.current.codeEditor.setValue("")}),[h]),(0,y.jsx)("div",{ref:t,style:{padding:"5px 0px",width:"100%",height:20*(p+b)+"px",border:x?"1px solid rgb(187, 190, 195)":"1px solid #434343",borderRadius:"6px"}})})),x=b},59506:function(e,t,r){r.r(t),r.d(t,{default:function(){return _}});var n=r(26068),o=r.n(n),i=r(48305),a=r.n(i),c=r(90228),u=r.n(c),s=r(87999),l=r.n(s),f=r(50959),p=r(53531),d=(r(73174),r(11527)),h=(p.Z.useToken,r(58002)),m=(p.Z.useToken,r(15558),r(54016));r(16483),m.Z.Text,m.Z.Title,p.Z.useToken;r(17069),r(25298),r(82092),"\n你的角色是一个 Cypher 查询助手,你可以根据 Schema 结构,给用户推荐你任务最重要的5条 Cypher 查询语句\n\n任务1: 根据 Schema 结构,自动推荐出关联性最大,最利于用户分析的 10 条Cypher查询语句\nSchema:\n".concat(JSON.stringify({nodes:[{label:"Paper",properties:[{name:"id",type:"DT_SIGNED_INT64"},{name:"conference",type:"DT_STRING"},{name:"CCFRank",type:"DT_STRING"},{name:"CCFField",type:"DT_STRING"},{name:"year",type:"DT_SIGNED_INT32"},{name:"paper",type:"DT_STRING"}],primary:"id"},{label:"Challenge",properties:[{name:"id",type:"DT_SIGNED_INT64"},{name:"challenge",type:"DT_STRING"}],primary:"id"},{label:"Topic",properties:[{name:"id",type:"DT_SIGNED_INT64"},{name:"category",type:"DT_STRING"}],primary:"id"},{label:"Task",properties:[{name:"id",type:"DT_SIGNED_INT64"},{name:"task",type:"DT_STRING"}],primary:"id"},{label:"Solution",properties:[{name:"id",type:"DT_SIGNED_INT64"},{name:"solution",type:"DT_STRING"}],primary:"id"},{label:"CCFField",properties:[{name:"id",type:"DT_SIGNED_INT64"},{name:"field",type:"DT_STRING"}],primary:"id"}],edges:[{label:"WorkOn",properties:[],primary:"WorkOn",constraints:[["Paper","Task"]]},{label:"Resolve",properties:[],primary:"Resolve",constraints:[["Paper","Challenge"]]},{label:"Target",properties:[{name:"number",type:"DT_SIGNED_INT32"}],primary:"Target",constraints:[["Task","Challenge"]]},{label:"Belong",properties:[],primary:"Belong",constraints:[["Task","Topic"]]},{label:"Use",properties:[],primary:"Use",constraints:[["Paper","Solution"]]},{label:"ApplyOn",properties:[],primary:"ApplyOn",constraints:[["Solution","Challenge"]]},{label:"HasField",properties:[],primary:"HasField",constraints:[["Paper","CCFField"]]},{label:"Citation",properties:[],primary:"Citation",constraints:[["Paper","Paper"]]}]},null,2),"\nAnswers:\n").concat(JSON.stringify([{cypher:"Match (n:Paper) return n limit 30",desc:"查询出 Paper 类型的节点"},{cypher:"MATCH (p:Paper)-[:WorkOn]->(a:Task),(a)-[:Belong]->(t: Topic) RETURN t.category, COUNT(p)",desc:"找出每个主题下的论文数量"},{cypher:"MATCH (t: Topic)<-[:Belong]-(a:Task),\n (a)<-[:WorkOn]-(p:Paper)-[:Use]->(s:Solution),\n (s)-[:ApplyOn]->(ch:Challenge)\n WHERE t.category = $topic_name\n RETURN t.category, ch.challenge, COUNT(p)",desc:"检索特定主题下,每个挑战(Challenge)所应用的解决方案(Solution)中与论文(Paper)相关的数量"}],null,2),"\n\n任务2: 根据 Schema 结构和用户的输入,生成 Cypher 查询语句,用于图数据库查询\n").concat("\n注意要以JSON的格式返回结果:\nRight Cases:\nquerys1: 列举出鲁迅的一个别名可以吗?\nanswer1: \"match (:ENTITY{name:'鲁迅'})<--(h)-[:Relationship{name:'别名'}]->(q) return distinct q.name limit 1\"\n\nquerys2: 我们常用的301SH不锈钢带的硬度公差是多少,你知道吗? \nanswers2: \"match(p:ENTITY{name:'301SH不锈钢带'})-[:Relationship{name:'硬度公差'}]-> (q) return q.name\"\nWrong Cases:\nquerys: 12344加油这首歌真好听,你知道歌曲原唱是谁吗? answers: MATCH (a:Actor)-[:ACTED_IN]->(m:Movie) WHERE m.name = '12345加油' RETURN a.name\nquerys: 七宗梦是什么时候上映的? answers: MATCH (a:Actor)-[:ACTED_IN]->(m:Movie) WHERE m.name = '七宗梦' RETURN a.name LIMIT 30\n","\n\nInstructions:\nNote: Do not include any explanations or apologies in your responses.\nDo not respond to any questions that might ask anything else than for you to construct a Cypher statement.\nDo not include any text except the generated Cypher statement.\nYou must use the relaship or property shown in the schema!!! do not use other keys!!!\nYou must use the relaship or property shown in the schema!!! do not use other keys!!!\nYou must use the relaship or property shown in the schema!!! do not use other keys!!!\n你必须使用Sechema中出现的关键词!!!\n\n当前会话中图的 Schema 结构如下:\n\n{graphSchema}\n\n你需要根据用户的提问,自动切换到上述两个任务中,并且给出正确返回,让我们开始吧!\n\n");r(335);p.Z.useToken,p.Z.useToken;r(53056),r(96513),m.Z.Title,r(16471),r(37339),r(33741);var y={"en-US":{Recommended:"Recommended",History:"History",Copilot:"Copilot",Saved:"Saved","Stored Procedures":"Stored Procedures","You can write cypher or gremlin queries, and then click the {icon} button to query data":"You can write cypher or gremlin queries, and then click the {icon} button to query data","Vertex Labels":"Vertex Labels","Edge Labels":"Edge Labels","Property Keys":"Property Keys","No saved query statements {br} You can click {icon} to save.":"No saved query statements {br} You can click {icon} to save.","No stored procedures available. {br} Go to the Extension and create one now!":"No stored procedures available. {br} Go to the Extension and create one now!","Privacy Security Notice":"Privacy Security Notice",Setting:"Setting","query.app.sidebar.gpt.setting.security":"To improve the quality of generated Cypher query statements, we'll utilize your graph data schema as the prompt for ChatGPT. Your data will be kept strictly confidential and solely used for this purpose.Furthermore, please note that your OpenAI API key is only stored locally in your browser for added security","OpenAI API key is only stored locally in your browser":"OpenAI API key is only stored locally in your browser","query.copilot.welcome":"Hello! I'm the GraphScope Query Assistant. Feel free to ask me any questions about Cypher or Gremlin queries.","recommend 5 interesting query statements":"recommend 5 interesting query statements","query any subgraph":"query any subgraph","insight the statistical distribution of vertex labels in the graph":"insight the statistical distribution of vertex labels in the graph",Save:"Save",Delete:"Delete",Query:"Query",Share:"Share","query submmited on {submitTime}. It's running ... ":"query submmited on {submitTime}. It's running ... ","query submmited on {submitTime}. Running {runningTime} ms":"query submmited on {submitTime}. Running {runningTime} ms","A total of {totalCount} records were retrieved":"A total of {totalCount} records were retrieved","A total of {totalCount} records were retrieved, including {nodeCount} nodes and {edgeCount} edges.":"A total of {totalCount} records were retrieved, including {nodeCount} nodes and {edgeCount} edges.",Color:"Color",Size:"Size",Caption:"Caption",LineWidth:"LineWidth","Node properties":"Node properties",Graph:"Graph",Table:"Table",Raw:"Raw","Style Setting":"Style Setting","You can click on each label to set the color, size, and display text for vertices and edges.":"You can click on each label to set the color, size, and display text for vertices and edges.","Export graph json":"Export graph json","Clustering layout":"Clustering layout","Vertex Properties":"Vertex Properties","Connect Endpoint":"Connect Endpoint","Connection URL":"Connection URL","Query language":"Query language","Query initiation method":"Query initiation method",Username:"Username",Password:"Password",Connect:"Connect",Close:"Close","Select nodes by box selection":"Select nodes by box selection","Switch graph view dimensions":"Switch graph view dimensions","Zoom to fitview":"Zoom to fitview",Fullscreen:"Fullscreen","Toggle Right Side":"Toggle Right Side","Caption Status":"Caption Status"},"zh-CN":{Recommended:"推荐查询",History:"历史查询",Copilot:"智能查询",Saved:"保存查询","Stored Procedures":"存储过程","You can write cypher or gremlin queries, and then click the {icon} button to query data":"您可以在这里编写 cypher 或 gremlin 语句,点击 {icon} 按钮查询数据","Vertex Labels":"节点类型","Edge Labels":"边类型","Property Keys":"属性字段","No saved query statements {br} You can click {icon} to save.":"暂无保存的查询语句 {br} 您可以点击 {icon} 保存","No stored procedures available. {br} Go to the Extension and create one now!":"暂无存储过程 {br} 快去 插件市场 创建一个吧","Privacy Security Notice":"隐私安全说明",Setting:"设置","query.app.sidebar.gpt.setting.security":"为了提高生成Cypher查询语句的质量,我们将使用您的图数据模式作为ChatGPT的提示。您的数据将被严格保密,仅用于此目的。此外,请注意我们的OpenAI API密钥仅存在于您的浏览器本地,以增加安全性。","OpenAI API key is only stored locally in your browser":"OpenAI API key 仅保存在您浏览器本地","query.copilot.welcome":"您好!我是 GraphScope 查询助理,您有任何关于 Cypher 或者 Gremlin 查询的问题都可以随时问我","recommend 5 interesting query statements":"帮我推荐5个有意思的查询","query any subgraph":"查询任意一个子图","insight the statistical distribution of vertex labels in the graph":"帮我分析图中节点类型的分布情况",Save:"保存",Delete:"删除",Query:"查询",Share:"分享","query submmited on {submitTime}. It's running ... ":"查询提交于 {submitTime}. 正在运行中...","query submmited on {submitTime}. Running {runningTime} ms":"查询提交于 {submitTime}. 查询时长 {runningTime} ms","A total of {totalCount} records were retrieved":"一共检索到 {totalCount} 条记录","A total of {totalCount} records were retrieved, including {nodeCount} nodes and {edgeCount} edges.":"一共检索到 {totalCount} 条记录, 其中包含 {nodeCount} 个节点,{edgeCount} 条边",Color:"颜色",Size:"大小",Caption:"文本",LineWidth:"边宽","Node properties":"属性详情",Graph:"图展示",Table:"表格展示",Raw:"原始数据","Style Setting":"样式设置","You can click on each label to set the color, size, and display text for vertices and edges.":"您可以单击每个标签来设置顶点和边缘的颜色、大小和显示文本。","Export graph json":"导出 json","Clustering layout":"集群布局","Vertex Properties":"节点属性","Connect Endpoint":"连接查询服务","Connection URL":"连接 URL","Query language":"查询语言","Query initiation method":"查询发起方式",Username:"用户名",Password:"密码",Connect:"连接",Close:"关闭","Select nodes by box selection":"通过框选选择节点","Switch graph view dimensions":"切换图表视图维度","Zoom to fitview":"缩放适当视图",Fullscreen:"全屏","Toggle Right Side":"切换右侧","Caption Status":"是否展示标签"}},v=(h.Utils.getSearchParams,r(39462)),g=r(40434),b=r(57526),x=r(16889),w=r(7234),E=r(38943),S=r(84155),k=h.Utils.storage,j=m.Z.Title,O=(m.Z.Text,function(e){var t=g.Z.useForm(),r=a()(t,1)[0],n=e.onConnect,o=e.onClose;f.useEffect((function(){r.setFieldsValue({query_language:e.query_language||k.get("query_language")||"cypher",query_endpoint:e.query_endpoint||k.get("query_endpoint")||"neo4j://127.0.0.1:7687",query_initiation:e.query_initiation||k.get("query_initiation")||"Browser",query_username:e.query_username||k.get("query_username")||"admin",query_password:e.query_password||k.get("query_password")||"password"})}),[]);return(0,d.jsxs)(b.Z,{vertical:!0,style:{padding:"12px 24px"},children:[(0,d.jsx)(j,{level:3,style:{marginBottom:"12px"},children:(0,d.jsx)(S.Z,{id:"Connect Endpoint"})}),(0,d.jsxs)(g.Z,{layout:"vertical",form:r,children:[(0,d.jsx)(g.Z.Item,{label:(0,d.jsx)(S.Z,{id:"Connection URL"}),name:"query_endpoint",children:(0,d.jsx)(x.Z,{})}),(0,d.jsx)(g.Z.Item,{label:(0,d.jsx)(S.Z,{id:"Query language"}),name:"query_language",children:(0,d.jsx)(w.default,{allowClear:!0,options:[{label:"Cypher",value:"cypher"},{label:"Gremlin",value:"gremlin"}]})}),(0,d.jsx)(g.Z.Item,{label:(0,d.jsx)(S.Z,{id:"Query initiation method"}),name:"query_initiation",children:(0,d.jsx)(w.default,{allowClear:!0,options:[{label:"Browser (client-side)",value:"Browser"},{label:'Server (Ensure that your "'.concat(location.origin,'/query" endpoint is available)'),value:"Server"}]})}),(0,d.jsx)(g.Z.Item,{label:(0,d.jsx)(S.Z,{id:"Username"}),name:"query_username",children:(0,d.jsx)(x.Z,{})}),(0,d.jsx)(g.Z.Item,{label:(0,d.jsx)(S.Z,{id:"Password"}),name:"query_password",children:(0,d.jsx)(x.Z.Password,{})}),(0,d.jsx)(g.Z.Item,{style:{marginTop:"48px"},children:(0,d.jsxs)(b.Z,{justify:"start",children:[(0,d.jsx)(E.ZP,{type:"primary",htmlType:"submit",style:{width:"100%",marginBottom:"12px",marginRight:"12px"},onClick:function(){var e=r.getFieldsValue(!0);Object.keys(e).forEach((function(t){k.set(t,e[t])})),n&&n(r.getFieldsValue(!0))},children:(0,d.jsx)(S.Z,{id:"Connect"})}),o&&(0,d.jsx)(E.ZP,{style:{width:"100%",marginBottom:"12px",marginRight:"12px"},onClick:o,children:(0,d.jsx)(S.Z,{id:"Close"})})]})})]})]})}),P=r(23639),T={},L=function(){var e=l()(u()().mark((function e(){var t,r,n,o,i=arguments;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:"cypher",r=i.length>1?i[1]:void 0,n=T.gremlin_driver,o=T.cypher_driver,"cypher"!==t){e.next=6;break}return o||(T.cypher_driver=new P.Or(r)),e.abrupt("return",T.cypher_driver);case 6:if("gremlin"!==t){e.next=9;break}return n||(T.gremlin_driver=new P.VP(r)),e.abrupt("return",T.gremlin_driver);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=function(e){var t=e||{},r=t.enableImmediateQuery,n=void 0!==r&&r,i=t.mode,c=void 0===i?"flow":i,s=t.id,p=void 0===s?"":s,m=t.timestamp,g=void 0===m?Date.now():m,b=t.graphId,x=void 0===b?"":b,w=t.schemaData,E=void 0===w?{nodes:[],edges:[]}:w,S=t.script,k=void 0===S?"Match (n) return n limit 10":S,j=t.onQuery,P=(0,f.useState)({language:e.language||"cypher",endpoint:e.endpoint||"127.0.0.1:7687"}),T=a()(P,2),C=T[0],I=T[1],_=C.language,N=C.endpoint,A=function(){var e=l()(u()().mark((function e(t){var r,n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.language,e.next=3,L(r,N);case 3:return n=e.sent,e.abrupt("return",n.query(t.script));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),D=function(){var e=l()(u()().mark((function e(t){var r;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.language,e.next=3,L(r,N);case 3:e.sent.close();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return j||N&&_?(0,d.jsx)(h.StudioProvier,{locales:y,children:(0,d.jsx)(v.default,{language:_,enableImmediateQuery:n,mode:c,active:!0,id:p,timestamp:g,graphId:x,schemaData:E,script:k,onQuery:j||A,onCancel:D})}):(0,d.jsx)(h.StudioProvier,{locales:y,children:(0,d.jsx)(O,{onConnect:function(e){I((function(t){return o()(o()({},t),{},{endpoint:e.query_endpoint||"",language:e.query_language})}))}})})},I=r(10422),_={render_query_statement:function(e){var t=(e||{}).id,r=void 0===t?"root":t;I.render((0,d.jsx)(C,o()({},e)),document.getElementById(r))}}},39462:function(e,t,r){r.r(t),r.d(t,{default:function(){return fe}});var n=r(90228),o=r.n(n),i=r(26068),a=r.n(i),c=r(87999),u=r.n(c),s=r(48305),l=r.n(s),f=r(50959),p=r(53531),d=r(16483),h=r.n(d),m=r(70667),y=r(57526),v=r(48722),g=r(54016),b=r(17905),x=r(38943),w=r(28541),E=r(42176),S=r(51558),k=r(45334),j=r(16889),O=r(15001),P=r(37528),T=r(11527),L=function(e){var t=e.onSave,r=(0,f.useRef)(null),n=(0,P.Z)();return(0,T.jsx)(b.Z,{title:n.formatMessage({id:"Save"}),children:(0,T.jsx)(k.Z,{title:"name your statement",description:(0,T.jsx)(j.Z,{width:"200px",ref:r}),onConfirm:function(){if(r.current){var e=r.current.input.value;console.log("InputRef.current",e),t&&t(e)}},onCancel:function(){},okText:"Save",cancelText:"Cancel",placement:"bottomRight",children:(0,T.jsx)(x.ZP,{type:"text",icon:(0,T.jsx)(O.Z,{})})})})},C=r(62950);var I=function(e){var t,r=e.onClose,n=e.onQuery,i=e.script,a=void 0===i?"Match (n) return n limit 10":i,c=e.onSave,s=e.id,l=e.isFetching,p=e.antdToken,d=(e.schemaData,e.timestamp,e.language),h=e.message,k=(0,f.useRef)(null),j=(0,P.Z)(),O=function(){var e=u()(o()().mark((function e(){var t,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=null==k||null===(t=k.current)||void 0===t||null===(t=t.codeEditor)||void 0===t?void 0:t.getValue(),n({id:s,script:r,language:d});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,T.jsxs)("div",{style:{},children:[(0,T.jsxs)(y.Z,{justify:"space-between",style:{paddingBottom:"8px"},children:[(0,T.jsx)(v.Z,{children:(0,T.jsxs)(g.Z.Text,{type:"secondary",style:{fontSize:"12px",textAlign:"center"},children:[(t=d,t.charAt(0).toUpperCase()+t.slice(1))," ",h]})}),(0,T.jsxs)(v.Z,{size:0,children:[(0,T.jsx)(b.Z,{title:j.formatMessage({id:"Query"}),children:(0,T.jsx)(x.ZP,{type:"text",icon:(0,T.jsx)(w.Z,{spin:l,style:{color:l?"#52c41a":p.green}}),onClick:O})}),c&&(0,T.jsx)(L,{onSave:function(e){var t,r=null==k||null===(t=k.current)||void 0===t||null===(t=t.codeEditor)||void 0===t?void 0:t.getValue(),n=(0,C.Z)();c&&c({id:n,script:r,name:e,language:d})}}),r&&(0,T.jsx)(b.Z,{title:j.formatMessage({id:"Share"}),children:(0,T.jsx)(x.ZP,{type:"text",icon:(0,T.jsx)(E.Z,{onClick:function(){var e,t=null==k||null===(e=k.current)||void 0===e||null===(e=e.codeEditor)||void 0===e?void 0:e.getValue();window.open("".concat(window.location.origin,"/querying?language=").concat(d,"&auto_run=true&global_script=").concat(encodeURIComponent(t)))}})})}),r&&(0,T.jsx)(b.Z,{title:j.formatMessage({id:"Delete"}),children:(0,T.jsx)(x.ZP,{type:"text",icon:(0,T.jsx)(S.Z,{onClick:function(){r&&r(s)}})})})]})]}),(0,T.jsx)(m.Z,{language:d,ref:k,value:a})]})},_=r(84723),N=r(15558),A=r.n(N),D=r(35215),R=r(31192),F=r(9069),Z=r(57591),G=r(88766),M=r(31759),q=r.n(M),z=r(7234),B=r(86976),U=function(e){var t=e.table,r=(0,f.useRef)(null),n=f.useState((function(){var e=function(e){var t=e[0],r={},n=[];Object.keys(t).forEach((function(e){var o=q()(t[e]);r[e]={key:e,type:o,enums:new Set},"number"===o&&n.push(e)})),e.forEach((function(e){Object.keys(e).forEach((function(t){r[t].enums.add(e[t])}))}));var o=Object.values(r).filter((function(e){return"string"===e.type})).sort((function(e,t){return e.enums.size1?"point":"interval",x:a||u,y:i,color:s,keys:Object.keys(r)}}(t);return{x:e.x,y:e.y,color:e.color,type:e.type,options:e.keys.map((function(e){return{label:e,value:e}}))}})),o=l()(n,2),i=o[0],c=o[1];console.log(i);var u=i.type,s=i.x,p=i.y,d=i.color,h=i.options;(0,f.useEffect)((function(){var e;return r.current&&((e=new B.kL({container:r.current,autoFit:!0})).options({type:u,data:t,encode:{x:s,y:p,color:d},transform:[{type:"dodgeX"}]}),e.render()),function(){r.current&&e.destroy()}}),[u,s,p,t,d,r]);return(0,T.jsxs)("div",{style:{padding:"16px",overflowX:"hidden"},children:[(0,T.jsxs)(v.Z,{style:{paddingBottom:"16px"},children:["Type:",(0,T.jsx)(z.default,{size:"small",defaultValue:u,style:{width:120},onChange:function(e){c((function(t){return a()(a()({},t),{},{type:e})}))},options:[{label:"interval",value:"interval"},{label:"point",value:"point"}]}),"X:",(0,T.jsx)(z.default,{size:"small",defaultValue:s,style:{width:120},onChange:function(e){c((function(t){return a()(a()({},t),{},{x:e})}))},options:h}),"Y:",(0,T.jsx)(z.default,{size:"small",defaultValue:p,style:{width:120},onChange:function(e){c((function(t){return a()(a()({},t),{},{y:e})}))},options:h}),"Color:",(0,T.jsx)(z.default,{size:"small",defaultValue:d,style:{width:120},onChange:function(e){c((function(t){return a()(a()({},t),{},{color:e})}))},options:h})]}),(0,T.jsx)("div",{ref:r,style:{width:"100%"}})]})},Y=r(58002),H=r(35731),V=r(36523),Q=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12px",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-8px";return(0,T.jsx)(T.Fragment,{children:Object.entries(t).map((function(t){var o=l()(t,2),i=o[0],a=o[1];return(0,T.jsxs)("div",{style:{paddingLeft:"16px",overflowWrap:"break-word",wordBreak:"break-all",whiteSpace:"pre-wrap"},children:[(0,T.jsxs)("span",{style:{color:"#F9822F",paddingLeft:r},children:['"',i,'" :']}),(0,T.jsx)("span",{style:{paddingLeft:"6px",textIndent:n},children:"object"===q()(a)&&null!==a?(0,T.jsxs)(T.Fragment,{children:["{",e(a,"24px","16px"),"}"]}):JSON.stringify(a,null,2)})]},i)}))})},W=function(e){var t=e.expandData,r=e.width;return(0,T.jsx)(y.Z,{children:Object.values(t).map((function(e){return e.key&&(0,T.jsxs)("div",{style:{marginLeft:"12px",width:"".concat(r,"%")},children:["{",Q(e.data),"}"]},e.key)}))})},K=function(e){var t=e.data,r=t.map((function(e){var t=e.keys,r=e._fields;return t.reduce((function(e,t,n){var o=r[n];return e[t]={key:(0,C.Z)(),elementId:o.elementId,data:o,labels:o.labels?o.labels[0]:void 0,type:o.type,startNodeElementId:o.startNodeElementId,endNodeElementId:o.endNodeElementId},e.key=(0,C.Z)(),e}),{})})),n=t[0].keys,o=100/n.length,i=[{title:"#",dataIndex:"index",key:"index",width:"30px",render:function(e,t,r){return r+1}}].concat(A()(n.map((function(e){return{title:e,width:"".concat(o,"%"),key:(0,C.Z)(),render:function(t){return r=t[e],n=r.startNodeElementId,o=r.endNodeElementId,i=r.type,a=r.elementId,c=r.labels,n&&o?(0,T.jsxs)("span",{children:["{",(0,T.jsx)(Y.Icons.Arrow,{style:{color:"#F97108"}})," : ",i," } ID ",a]}):(0,T.jsxs)("span",{children:["{",(0,T.jsx)(Y.Icons.Punctuation,{style:{color:"#B668B0"}})," : ",c," } ID ",a]});var r,n,o,i,a,c}}}))),[D.Z.EXPAND_COLUMN]);return(0,T.jsx)(D.Z,{size:"small",columns:i,dataSource:r,expandable:{expandedRowRender:function(e){return(0,T.jsx)(W,{expandData:e,width:o})},expandIcon:function(e){var t=e.expanded,r=e.onExpand,n=e.record;return t?(0,T.jsx)(H.Z,{style:{color:"#F97108"},onClick:function(e){return r(n,e)}}):(0,T.jsx)(V.Z,{onClick:function(e){return r(n,e)}})},expandRowByClick:!0}})},$=function(e){var t=e.data,r=t[0],n=Object.keys(r),o=[{title:"#",dataIndex:"index",key:"index",width:"30px",render:function(e,t,r){return r+1}}].concat(A()(n.map((function(e){return{title:e,dataIndex:e,width:"".concat(100/n.length,"%"),key:e}})))),i=t.map((function(e){return a()(a()({},e),{},{key:e.id})}));return(0,T.jsx)(D.Z,{size:"small",columns:o,dataSource:i})},J=function(e){var t,r=e.data,n=r.table,o=void 0===n?[]:n,i=r.nodes,c=void 0===i?[]:i,u=r.edges,s=void 0===u?[]:u,p=r.raw,d=c.length,h=s.length,m=o.length,w=(0,P.Z)();t=0===d&&0===h&&0!==m?w.formatMessage({id:"A total of {totalCount} records were retrieved"},{totalCount:m}):w.formatMessage({id:"A total of {totalCount} records were retrieved, including {nodeCount} nodes and {edgeCount} edges."},{totalCount:d+h,nodeCount:d,edgeCount:h});var E,S=(0,f.useState)("table"),k=l()(S,2),j=k[0],O=k[1];return"table"===j&&0!==o.length&&(E=(0,T.jsx)($,{data:o})),"table"===j&&0===o.length&&0!==p.records.length&&(E=(0,T.jsx)(K,{data:p.records})),(0,T.jsxs)("div",{style:{overflowX:"scroll"},children:[(0,T.jsxs)(y.Z,{justify:"space-between",style:{padding:"0px 10px 10px 10px"},align:"center",children:[(0,T.jsx)(g.Z.Text,{children:t}),(0,T.jsxs)(v.Z,{children:[(0,T.jsx)(R.Z,{value:j,onChange:function(e){O(e)},options:[{value:"chart",icon:(0,T.jsx)(F.Z,{}),label:"chart"},{value:"table",icon:(0,T.jsx)(Z.Z,{})}]}),(0,T.jsx)(b.Z,{title:"download",children:(0,T.jsx)(x.ZP,{icon:(0,T.jsx)(G.Z,{}),type:"text",onClick:function(){var e=c.map((function(e){var t=e.id,r=e.label,n=e.properties,o=void 0===n?{}:n;return a()({id:t,label:r},o)})),t=s.map((function(e){var t=e.id,r=e.label,n=e.source,o=e.target,i=e.properties,c=void 0===i?{}:i;return a()({id:t,label:r,source:n,target:o},c)}));Y.Utils.createDownload(JSON.stringify({nodes:e,edges:t},null,2),"result.json")},children:" "})})]})]}),E,"chart"===j&&0!==o.length&&(0,T.jsx)(U,{table:o})]})},X=r(55874),ee=r(29643),te=r(24174),re=r.n(te),ne=function(e){var t=e.data;return e.isFetching?(0,T.jsx)(X.ZP,{icon:(0,T.jsx)(ee.Z,{spin:!0}),status:"success",title:"Running"}):"error"===t.mode?(0,T.jsx)(X.ZP,{status:"error",title:t.raw&&t.raw.name,subTitle:t.raw&&t.raw.message}):(0,T.jsx)("div",{children:(0,T.jsx)(re(),{src:t.raw})})},oe=r(53056),ie=r(13049),ae=r(31931),ce=function(e){var t=e.data,r=e.isFetching,n=e.schemaData,o=e.graphId,i=(e.onQuery,f.useState(null)),a=l()(i,2),c=a[0],u=a[1],s=(0,P.Z)(),p=function(e,t,r){var n=e.nodes,o=void 0===n?[]:n,i=e.edges,a=void 0===i?[]:i,c=e.table,u=void 0===c?[]:c,s=(e.raw,o.length>0),l=a.length>0,f=u.length>0,p="raw",d=["raw"];return s&&(p="graph",d=["raw","table","graph"]),!s&&l&&(p="table",d=["raw","table"]),s||l||!f||(p="table",d=["raw","table"]),r&&(p=r),t&&(d=["raw"],p="raw"),{viewMode:p,options:d}}(t,r,c),d=p.viewMode,h=p.options,m=function(e){return-1!==h.indexOf(e)},y=[{label:s.formatMessage({id:"Graph"}),key:"graph",icon:(0,T.jsx)(ie.Z,{}),children:(0,T.jsx)(oe.Z,{data:t,schemaData:n,graphId:o}),disabled:!m("graph")},{label:s.formatMessage({id:"Table"}),key:"table",icon:(0,T.jsx)(Z.Z,{}),children:(0,T.jsx)(J,{data:t}),disabled:!m("table")},{label:s.formatMessage({id:"Raw"}),key:"raw",icon:(0,T.jsx)(ae.Z,{}),children:(0,T.jsx)(ne,{data:t,isFetching:r}),disabled:!m("raw")}];return(0,T.jsx)("div",{style:{padding:"16px 0px"},children:(0,T.jsx)(_.Z,{items:y,size:"small",type:"card",activeKey:d,onChange:function(e){u(e)}})})},ue=(0,f.memo)(ce),se=p.Z.useToken,le=function(e){var t=e.onQuery,r=e.onClose,n=e.onCancel,i=e.onSave,c=e.script,s=e.id,p=e.active,d=e.mode,m=e.schemaData,y=e.enableImmediateQuery,v=e.graphId,g=e.timestamp,b=e.language,x=se().token,w=(0,P.Z)(),E=p&&"flow"===d?{border:"1px solid ".concat(x.colorBorder)}:{border:"1px solid ".concat(x.colorBorder)},S=(0,f.useRef)(null),k=(0,f.useState)({data:{},isFetching:!1,startTime:0,endTime:0,abort:!1}),j=l()(k,2),O=j[0],L=j[1],C=O.data,_=O.isFetching,N=O.startTime,A=O.endTime;(0,f.useEffect)((function(){S.current&&p&&"flow"===d&&S.current.scrollIntoView({behavior:"smooth"})}),[p]);var D=function(){var e=u()(o()().mark((function e(r){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_){e.next=4;break}return n&&n(r),L((function(e){return a()(a()({},e),{},{isFetching:!1,data:{}})})),e.abrupt("return");case 4:return L((function(e){return a()(a()({},e),{},{isFetching:!0,startTime:(new Date).getTime()})})),e.next=7,t(r);case 7:i=e.sent,L((function(e){return a()(a()({},e),{},{data:i,isFetching:!1,endTime:(new Date).getTime()})}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){y&&(console.log("enableImmediateQuery script",y,c,b),D({id:s,script:c,language:b}))}),[y]);var R=A-N<0?w.formatMessage({id:"query submmited on {submitTime}. It's running ... "},{submitTime:h()(N).format("HH:mm:ss YYYY-MM-DD")}):w.formatMessage({id:"query submmited on {submitTime}. Running {runningTime} ms"},{submitTime:h()(N).format("HH:mm:ss YYYY-MM-DD"),runningTime:A-N});return(0,T.jsxs)("div",{ref:S,style:a()(a()({display:"flex",flexDirection:"column",flex:1,margin:"12px",padding:"8px 16px",borderRadius:"8px"},E),{},{background:x.colorBgContainer}),children:[(0,T.jsx)(I,{message:R,language:b,timestamp:g,schemaData:m,id:s,script:c,onClose:r,onQuery:D,onSave:i,isFetching:_,antdToken:x}),(0,T.jsx)(ue,{data:C,isFetching:_,schemaData:m,graphId:v,onQuery:t})]})},fe=(0,f.memo)(le)},53056:function(e,t,r){r.d(t,{Z:function(){return R}});var n=r(26068),o=r.n(n),i=r(48305),a=r.n(i),c=r(67825),u=r.n(c),s=r(50959),l=r(17905),f=r(38943),p=r(53531),d=r(84155),h=r(58002),m=r(96513),y=r(24279),v=r(63806),g=r(90228),b=r.n(g),x=r(87999),w=r.n(x),E=r(23639),S=h.Utils.storage,k=function(){var e=w()(b()().mark((function e(t){var r,n,o,i,a,c;return b()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=S.get("query_language")||"cypher",n=S.get("query_endpoint")||"",o=S.get("query_initiation"),i=S.get("query_username"),a=S.get("query_password"),e.prev=5,c={script:t,language:r,endpoint:n,username:i,password:a},"Server"!==o){e.next=11;break}return e.next=10,fetch("/graph/query",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then((function(e){return e.json()})).then((function(e){return e.success?e.data:{nodes:[],edges:[]}}));case 10:return e.abrupt("return",e.sent);case 11:return e.abrupt("return",(0,E.aq)(c));case 14:return e.prev=14,e.t0=e.catch(5),e.abrupt("return",{nodes:[],edges:[]});case 17:case"end":return e.stop()}}),e,null,[[5,14]])})));return function(t){return e.apply(this,arguments)}}(),j=function(){var e=w()(b()().mark((function e(t){var r,n,o,i;return b()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.key,n=t.selectIds,o="\n MATCH ".concat(r,"\n WHERE elementId(a) IN [").concat(n,"] \n RETURN a,b,c\n "),e.next=4,k(o);case 4:return i=e.sent,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=function(){var e=w()(b()().mark((function e(t){var r,n;return b()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.schema,n={all:[{key:"(a)-[b]-(c)",label:"One-Hop Neighbors"}]},r.nodes.forEach((function(e){n[e.label]=P(r,e.label)})),e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function P(e,t){var r=[];return e.edges.forEach((function(e){var n=e.source,o=e.target,i=e.label;if((t===n||t===o)&&n===o)return"both",void r.push({key:"(a:".concat(n,")-[b:").concat(i,"]-(c:").concat(o,")"),label:"[".concat(i,"]-(").concat(o,")")});n===t&&("out",r.push({key:"(a:".concat(n,")-[b:").concat(i,"]->(c:").concat(o,")"),label:"[".concat(i,"]->(").concat(o,")")})),o===t&&("in",r.push({key:"(a:".concat(n,")<-[b:").concat(i,"]-(c:").concat(o,")"),label:"[".concat(i,"]<-(").concat(o,")")}))})),[{key:"(a)-[b]-(c)",label:"One-Hop Neighbors"}].concat(r)}var T={queryNeighborData:j,queryNeighborItems:O,queryStatement:k},L=function(){var e=w()(b()().mark((function e(t){var r,n,o,i;return b()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.selectIds,n=r.join(","),o="g.V().hasId(".concat(n,").both().dedup()"),e.next=5,k(o);case 5:return i=e.sent,e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),C=function(){var e=w()(b()().mark((function e(t){return b()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{all:[{key:"(a)-[b]-(c)",label:"One-Hop Neighbors"}]});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I={queryStatement:k,queryNeighborData:L,queryNeighborItems:C},_=r(11527),N=function(){var e=(0,h.useSection)().toggleLeftSide;return(0,_.jsx)(l.Z,{title:(0,_.jsx)(d.Z,{id:"Style settings"}),placement:"left",children:(0,_.jsx)(f.ZP,{icon:(0,_.jsx)(v.Z,{}),onClick:function(){return e()},type:"text"})})};(0,m.registerIcons)();var A=function(e){var t=e.data,r=e.schema,n=e.graphId,o=e.id,i=(0,s.useRef)(null),a="gremlin"===h.Utils.storage.get("query_language")?I:T,c=p.Z.useToken().token;return(0,_.jsx)("div",{style:{borderRadius:"8px",height:"500px",background:c.colorBgContainer},ref:i,children:(0,_.jsx)(m.GraphProvider,{id:o,services:a,children:(0,_.jsxs)(h.Section,{splitBorder:!0,leftSide:(0,_.jsx)(m.StyleSetting,{}),autoResize:!1,rightSideStyle:{width:"300px",padding:"12px 0px 12px 18px"},defaultCollapsed:{leftSide:!0,rightSide:!0},children:[(0,_.jsx)(m.Prepare,{data:t,schema:r,graphId:n}),(0,_.jsx)(m.Canvas,{}),(0,_.jsx)(m.ZoomStatus,{}),(0,_.jsx)(m.BasicInteraction,{}),(0,_.jsx)(m.ClearStatus,{}),(0,_.jsx)(m.PropertiesPanel,{}),(0,_.jsx)(m.Loading,{}),(0,_.jsxs)(m.ContextMenu,{children:[(0,_.jsx)(m.NeighborQuery,{}),(0,_.jsx)(m.DeleteLeafNodes,{}),(0,_.jsx)(m.DeleteNode,{})]}),(0,_.jsxs)(m.Toolbar,{style:{position:"absolute",top:"20px",left:"20px",right:"unset"},children:[(0,_.jsx)(N,{}),(0,_.jsx)(y.Z,{style:{margin:"0px"}}),(0,_.jsx)(h.FullScreen,{containerRef:i}),(0,_.jsx)(m.ZoomFit,{}),(0,_.jsx)(m.Brush,{}),(0,_.jsx)(m.FixedMode,{}),(0,_.jsx)(y.Z,{style:{margin:"0px"}}),(0,_.jsx)(m.SwitchEngine,{}),(0,_.jsx)(m.RunCluster,{}),(0,_.jsx)(m.Export,{})]})]})})})},D=["properties","constraints"];var R=function(e){var t,r=e.data,n=e.schemaData,i=e.graphId,c={nodes:(t=n).nodes,edges:t.edges.map((function(e){var t=e.properties,r=e.constraints,n=u()(e,D),i=a()(r[0],2),c=i[0],s=i[1];return o()(o()({},n),{},{source:c,target:s,properties:t})}))};return(0,_.jsx)("div",{style:{width:"100%"},children:(0,_.jsx)(A,{data:r,schema:c,graphId:i})})}},15776:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(85430);const n=[{value:"update studio graph",paraId:0,tocIndex:2},{value:"update website",paraId:1,tocIndex:4},{value:"update studio graph",paraId:2,tocIndex:6},{value:"update site",paraId:3,tocIndex:8},{value:"update studio-graph",paraId:4,tocIndex:10},{value:"update studio",paraId:5,tocIndex:12},{value:"update site",paraId:6,tocIndex:14},{value:"update version",paraId:7,tocIndex:16},{value:"update",paraId:8,tocIndex:18},{value:"update version",paraId:9,tocIndex:20},{value:"update graph",paraId:10,tocIndex:22},{value:"First Release",paraId:11,tocIndex:24}]},70857:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(8646);const n=[]},12457:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(4480);const n=[]},2565:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(93238);const n=[]},74972:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(48741);const n=[]},27705:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(36666);const n=[{value:"open source : ",paraId:0,tocIndex:0},{value:"https://undraw.co/illustrations",paraId:0,tocIndex:0}]},54520:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(19895);const n=[]},57481:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(54581);const n=[]},28748:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(518);const n=[]},41895:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(3750);const n=[]},56309:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(43716);const n=[]},90389:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(43765);const n=[]},20391:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(44412);const n=[]},27388:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(85792);const n=[]},14872:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(44117);const n=[]},95081:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(4866);const n=[{value:"storage",paraId:0,tocIndex:0},{value:"isDarkTheme",paraId:0,tocIndex:0},{value:"debounce",paraId:0,tocIndex:0}]},13588:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(93995);const n=[]},26103:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(26973);const n=[]},31404:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(67866);const n=[]},2500:function(e,t,r){r.r(t),r.d(t,{texts:function(){return n}});r(37275);const n=[]},22211:function(e,t){t.Z="/** components 基础配置 */\nexport const components = {\n Menu: {\n itemBg: 'rgba(255, 255, 255, 0)',\n subMenuItemBg: 'rgba(255, 255, 255, 0)',\n iconMarginInlineEnd: 14,\n itemMarginInline: 4,\n iconSize: 14,\n collapsedWidth: 50,\n itemActiveBg: '#eaeaea',\n },\n Typography: {\n titleMarginBottom: '0.2em',\n titleMarginTop: '0.8em',\n },\n Table: {\n cellPaddingBlock: 4, //\t单元格纵向内间距\n cellPaddingInline: 8, //单元格横向内间距(默认大尺寸)\n },\n Pagination: {\n itemSize: 20,\n },\n Result: {\n iconFontSize: 62,\n titleFontSize: 20,\n colorError: '#00000073',\n },\n};\n\n/** token 基础配置 */\nexport const token = {\n colorBorder: 'red',\n colorBgBase: '#fff',\n};\n"},20880:function(e,t){t.Z="import React, { useEffect, useState } from 'react';\nimport { ConfigProvider, theme } from 'antd';\nimport { IntlProvider } from 'react-intl';\nimport { ContainerProvider } from './useThemeConfigProvider';\nimport type { ThemeProviderType } from './useThemeConfigProvider';\nimport { storage } from '../Utils';\nimport { getThemeConfig } from './getThemeConfig';\nimport { useCustomToken } from './useCustomToken';\n\ntype IThemeProvider = {\n locales: {\n 'zh-CN': Record;\n 'en-US': Record;\n };\n children: React.ReactNode;\n locale?: 'zh-CN' | 'en-US';\n algorithm?: 'defaultAlgorithm' | 'darkAlgorithm';\n};\n\nconst Provider: React.FC = props => {\n const { children, locales } = props;\n const [state, setState] = useState(() => {\n let { algorithm, locale } = props;\n if (!locale) {\n locale = storage.get('locale');\n if (!locale) {\n locale = 'en-US';\n storage.set('locale', locale);\n }\n }\n if (!algorithm) {\n algorithm = storage.get('algorithm');\n if (!algorithm) {\n algorithm = 'defaultAlgorithm';\n storage.set('algorithm', algorithm);\n }\n }\n return {\n components: storage.get('components'),\n token: storage.get('token'),\n algorithm,\n locale,\n };\n });\n\n const { components, token, algorithm, locale } = state;\n const { componentsConfig, tokenConfig } = getThemeConfig(algorithm);\n const colorConfig = useCustomToken();\n const isLight = algorithm === 'defaultAlgorithm';\n\n const handleThemeOrLocale = (themeConfig: Partial) => {\n const { components, token } = themeConfig;\n Object.keys(themeConfig).forEach(key => {\n storage.set(key, themeConfig[key]);\n });\n\n setState(preState => {\n // 特殊化处理,切token数据需初始化数据做基础\n storage.set('token', { ...preState.token, ...token });\n return {\n ...preState,\n components: { ...preState.components, ...components },\n token: { ...preState.token, ...token },\n algorithm: themeConfig.algorithm || preState.algorithm,\n locale: themeConfig.locale ?? storage.get('locale'),\n };\n });\n };\n\n const messages = locales[locale || 'en-US'];\n\n return (\n \n \n \n {children}\n \n \n \n );\n};\n\nexport default Provider;\n"},88241:function(e,t){t.Z="import { createContext, useContext } from 'react';\nimport type { IColorStore } from './getThemeConfig';\nexport interface ThemeProviderType extends IColorStore {\n algorithm?: 'defaultAlgorithm' | 'darkAlgorithm';\n components?: { [key: string]: { [key: string]: string | number } };\n token?: { [key: string]: string | number };\n locale?: 'zh-CN' | 'en-US';\n isLight?: boolean;\n}\nexport interface IContainerContext extends ThemeProviderType {\n handleThemeOrLocale: (value: ThemeProviderType) => void;\n}\nexport const ContainerContext = createContext({\n components: {},\n token: {},\n handleThemeOrLocale: ({}) => {},\n locale: 'en-US',\n algorithm: 'defaultAlgorithm',\n isLight: false,\n});\n\nexport const ContainerProvider = ContainerContext.Provider;\n\nexport const useStudioProvier = () => {\n const context = useContext(ContainerContext);\n\n if (context === undefined || Object.keys(context).length === 0) {\n throw new Error(`useContext must be used within a ContainerProvider`);\n }\n return context;\n};\n"},17239:function(e,t){t.Z="import React from 'react';\nimport { Panel, PanelGroup } from 'react-resizable-panels';\nimport ResizeHandle from './ResizeHandle';\n\ninterface IResizablePanelsProps {\n leftSide?: React.ReactNode;\n middleSide?: React.ReactNode;\n rightSide?: React.ReactNode;\n leftMinSize?: number;\n leftMaxSize?: number;\n rightMinSize?: number;\n rightMaxSize?: number;\n}\n\nconst styles: Record = {\n Container: {\n width: '100%',\n height: '100%',\n display: 'flex',\n flexDirection: 'column',\n gap: '1rem',\n },\n Panel: { display: 'flex', flexDirection: 'row' },\n PanelContent: {\n height: '100%',\n width: '100%',\n borderRadius: '0.5rem',\n },\n};\n\nconst ResizablePanels: React.FC = ({\n leftSide,\n middleSide,\n rightSide,\n leftMinSize = 20,\n leftMaxSize = 40,\n rightMinSize = 20,\n rightMaxSize = 40,\n}) => {\n const renderLeftPanel = () => (\n \n
{leftSide}
\n
\n );\n\n const renderRightPanel = () => (\n \n
{rightSide}
\n
\n );\n\n return (\n
\n \n {leftSide && [renderLeftPanel(), ]}\n \n
{middleSide}
\n
\n {rightSide && [, renderRightPanel()]}\n
\n
\n );\n};\n\nexport default ResizablePanels;\n"},9534:function(e,t){t.Z="import StatementQuery from './query-statement';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\nexport default {\n render_query_statement: config => {\n const { id = 'root' } = config || {};\n ReactDOM.render(, document.getElementById(id));\n },\n};\n"}}]); \ No newline at end of file diff --git a/modelings/index.html b/modelings/index.html index 77c9d216..f8b9691f 100644 --- a/modelings/index.html +++ b/modelings/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/queries/index.html b/queries/index.html index 77c9d216..f8b9691f 100644 --- a/queries/index.html +++ b/queries/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src-en/index.html b/src-en/index.html index 77c9d216..f8b9691f 100644 --- a/src-en/index.html +++ b/src-en/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/editable-text/index.html b/src/editable-text/index.html index 77c9d216..f8b9691f 100644 --- a/src/editable-text/index.html +++ b/src/editable-text/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/empty-canvas/index.html b/src/empty-canvas/index.html index 77c9d216..f8b9691f 100644 --- a/src/empty-canvas/index.html +++ b/src/empty-canvas/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/full-screen/index.html b/src/full-screen/index.html index 77c9d216..f8b9691f 100644 --- a/src/full-screen/index.html +++ b/src/full-screen/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/icons-en/index.html b/src/icons-en/index.html index 77c9d216..f8b9691f 100644 --- a/src/icons-en/index.html +++ b/src/icons-en/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/icons/index.html b/src/icons/index.html index 77c9d216..f8b9691f 100644 --- a/src/icons/index.html +++ b/src/icons/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/illustration/index.html b/src/illustration/index.html index 77c9d216..f8b9691f 100644 --- a/src/illustration/index.html +++ b/src/illustration/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/import-files/index.html b/src/import-files/index.html index 77c9d216..f8b9691f 100644 --- a/src/import-files/index.html +++ b/src/import-files/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/importor/index.html b/src/importor/index.html index 77c9d216..f8b9691f 100644 --- a/src/importor/index.html +++ b/src/importor/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/index.html b/src/index.html index 77c9d216..f8b9691f 100644 --- a/src/index.html +++ b/src/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/layout/index.html b/src/layout/index.html index 77c9d216..f8b9691f 100644 --- a/src/layout/index.html +++ b/src/layout/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/logo/index.html b/src/logo/index.html index 77c9d216..f8b9691f 100644 --- a/src/logo/index.html +++ b/src/logo/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/properties-list-en/index.html b/src/properties-list-en/index.html index 77c9d216..f8b9691f 100644 --- a/src/properties-list-en/index.html +++ b/src/properties-list-en/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/properties-list/index.html b/src/properties-list/index.html index 77c9d216..f8b9691f 100644 --- a/src/properties-list/index.html +++ b/src/properties-list/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/provider/index.html b/src/provider/index.html index 77c9d216..f8b9691f 100644 --- a/src/provider/index.html +++ b/src/provider/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/resizable-panel/index.html b/src/resizable-panel/index.html index 77c9d216..f8b9691f 100644 --- a/src/resizable-panel/index.html +++ b/src/resizable-panel/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/segmented-tabs/index.html b/src/segmented-tabs/index.html index 77c9d216..f8b9691f 100644 --- a/src/segmented-tabs/index.html +++ b/src/segmented-tabs/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/side-tabs/index.html b/src/side-tabs/index.html index 77c9d216..f8b9691f 100644 --- a/src/side-tabs/index.html +++ b/src/side-tabs/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/table-card/index.html b/src/table-card/index.html index 77c9d216..f8b9691f 100644 --- a/src/table-card/index.html +++ b/src/table-card/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/toolbar/index.html b/src/toolbar/index.html index 77c9d216..f8b9691f 100644 --- a/src/toolbar/index.html +++ b/src/toolbar/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/typing-text/index.html b/src/typing-text/index.html index 77c9d216..f8b9691f 100644 --- a/src/typing-text/index.html +++ b/src/typing-text/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/utils/index.html b/src/utils/index.html index 77c9d216..f8b9691f 100644 --- a/src/utils/index.html +++ b/src/utils/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/umi.24e2c65a.js b/umi.ee575052.js similarity index 99% rename from umi.24e2c65a.js rename to umi.ee575052.js index f6978494..e8c0be66 100644 --- a/umi.24e2c65a.js +++ b/umi.ee575052.js @@ -1 +1 @@ -(function(){var __webpack_modules__={75875:function(e,t,n){"use strict";n.r(t),n.d(t,{blue:function(){return x},blueDark:function(){return j},cyan:function(){return _},cyanDark:function(){return N},geekblue:function(){return k},geekblueDark:function(){return D},generate:function(){return d},gold:function(){return g},goldDark:function(){return I},gray:function(){return O},green:function(){return w},greenDark:function(){return L},grey:function(){return C},greyDark:function(){return z},lime:function(){return b},limeDark:function(){return M},magenta:function(){return E},magentaDark:function(){return F},orange:function(){return m},orangeDark:function(){return Z},presetDarkPalettes:function(){return B},presetPalettes:function(){return T},presetPrimaryColors:function(){return p},purple:function(){return S},purpleDark:function(){return $},red:function(){return h},redDark:function(){return P},volcano:function(){return v},volcanoDark:function(){return A},yellow:function(){return y},yellowDark:function(){return R}});var r=n(96299),o=n(28556),i=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function a(e){var t=e.r,n=e.g,o=e.b,i=(0,r.py)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function c(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.vq)(t,n,o,!1))}function s(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function l(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function u(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function f(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function d(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),d=5;d>0;d-=1){var p=a(r),h=c((0,o.uA)({h:l(p,d,!0),s:u(p,d,!0),v:f(p,d,!0)}));n.push(h)}n.push(c(r));for(var v=1;v<=4;v+=1){var m=a(r),g=c((0,o.uA)({h:l(m,v),s:u(m,v),v:f(m,v)}));n.push(g)}return"dark"===t.theme?i.map((function(e){var r=e.index,i=e.opacity;return c(s((0,o.uA)(t.backgroundColor||"#141414"),(0,o.uA)(n[r]),100*i))})):n}var p={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},h=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];h.primary=h[5];var v=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];v.primary=v[5];var m=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];m.primary=m[5];var g=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];g.primary=g[5];var y=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];y.primary=y[5];var b=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];b.primary=b[5];var w=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];w.primary=w[5];var _=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];_.primary=_[5];var x=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];x.primary=x[5];var k=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];k.primary=k[5];var S=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];S.primary=S[5];var E=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];E.primary=E[5];var C=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];C.primary=C[5];var O=C,T={red:h,volcano:v,orange:m,gold:g,yellow:y,lime:b,green:w,cyan:_,blue:x,geekblue:k,purple:S,magenta:E,grey:C},P=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];P.primary=P[5];var A=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];A.primary=A[5];var Z=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Z.primary=Z[5];var I=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];I.primary=I[5];var R=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];R.primary=R[5];var M=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];M.primary=M[5];var L=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];L.primary=L[5];var N=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];N.primary=N[5];var j=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];j.primary=j[5];var D=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];D.primary=D[5];var $=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];$.primary=$[5];var F=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];F.primary=F[5];var z=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];z.primary=z[5];var B={red:P,volcano:A,orange:Z,gold:I,yellow:R,lime:M,green:L,cyan:N,blue:j,geekblue:D,purple:$,magenta:F,grey:z}},26757:function(e,t,n){"use strict";n.r(t),n.d(t,{genCalc:function(){return w},genStyleUtils:function(){return M},mergeToken:function(){return E},statistic:function(){return C},statisticToken:function(){return T}});var r=n(24744),o=n(99459),i=n(57904),a=n(98037),c=n(50959),s=n(59637),l=n(73779),u=n(71374),f=n(46468),d=n(45675),p=n(10053),h=(0,u.Z)((function e(){(0,l.Z)(this,e)})),v="CALC_UNIT",m=new RegExp(v,"g");function g(e){return"number"==typeof e?"".concat(e).concat(v):e}var y=function(e){(0,d.Z)(n,e);var t=(0,p.Z)(n);function n(e,o){var a;(0,l.Z)(this,n),a=t.call(this),(0,i.Z)((0,f.Z)(a),"result",""),(0,i.Z)((0,f.Z)(a),"unitlessCssVar",void 0),(0,i.Z)((0,f.Z)(a),"lowPriority",void 0);var c=(0,r.Z)(e);return a.unitlessCssVar=o,e instanceof n?a.result="(".concat(e.result,")"):"number"===c?a.result=g(e):"string"===c&&(a.result=e),a}return(0,u.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(g(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(g(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(m,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(h),b=function(e){(0,d.Z)(n,e);var t=(0,p.Z)(n);function n(e){var r;return(0,l.Z)(this,n),r=t.call(this),(0,i.Z)((0,f.Z)(r),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,u.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(h),w=function(e,t){var n="css"===e?y:b;return function(e){return new n(e,t)}},_=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};n(62412);var x=function(e,t,n,r){var i=(0,a.Z)({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var t,n=(0,o.Z)(e,2),r=n[0],a=n[1];(null!=i&&i[r]||null!=i&&i[a])&&(null!==(t=i[a])&&void 0!==t||(i[a]=null==i?void 0:i[r]))}));var c=(0,a.Z)((0,a.Z)({},n),i);return Object.keys(c).forEach((function(e){c[e]===t[e]&&delete c[e]})),c},k="undefined"!=typeof CSSINJS_STATISTIC,S=!0;function E(){for(var e=arguments.length,t=new Array(e),n=0;n1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}());var I=function(e,t){return c.useMemo((function(){var n=Z.get(t);if(n)return n;var r=e();return Z.set(t,r),r}),t)},R=function(){return{}};var M=function(e){var t=e.useCSP,n=void 0===t?R:t,l=e.useToken,u=e.usePrefix,f=e.getResetStyles,d=e.getCommonStyle,p=e.getCompUnitless;function h(t,i,c){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h=Array.isArray(t)?t:[t,t],v=(0,o.Z)(h,1),m=v[0],g=h.join("-"),y=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=l(),h=o.theme,v=o.realToken,b=o.hashId,k=o.token,S=o.cssVar,C=u(),O=C.rootPrefixCls,Z=C.iconPrefixCls,R=n(),M=S?"css":"js",L=I((function(){var e=new Set;return S&&Object.keys(p.unitless||{}).forEach((function(t){e.add((0,s.token2CSSVar)(t,S.prefix)),e.add((0,s.token2CSSVar)(t,_(m,S.prefix)))})),w(M,e)}),[M,m,null==S?void 0:S.prefix]),N=A(M),j=N.max,D=N.min,$={theme:h,token:k,hashId:b,nonce:function(){return R.nonce},clientOnly:p.clientOnly,layer:y,order:p.order||-999};(0,s.useStyleRegister)((0,a.Z)((0,a.Z)({},$),{},{clientOnly:!1,path:["Shared",O]}),(function(){return"function"==typeof f?f(k):[]}));var F=(0,s.useStyleRegister)((0,a.Z)((0,a.Z)({},$),{},{path:[g,e,Z]}),(function(){if(!1===p.injectStyle)return[];var n=T(k),o=n.token,a=n.flush,l=P(m,v,c),u=".".concat(e),f=x(m,v,l,{deprecatedTokens:p.deprecatedTokens});S&&l&&"object"===(0,r.Z)(l)&&Object.keys(l).forEach((function(e){l[e]="var(".concat((0,s.token2CSSVar)(e,_(m,S.prefix)),")")}));var h=E(o,{componentCls:u,prefixCls:e,iconCls:".".concat(Z),antCls:".".concat(O),calc:L,max:j,min:D},S?l:f),g=i(h,{hashId:b,prefixCls:e,rootPrefixCls:O,iconPrefixCls:Z});a(m,f);var y="function"==typeof d?d(h,e,t,p.resetFont):null;return[!1===p.resetStyle?null:y,g]}));return[F,b]}}return{genStyleHooks:function(e,t,n,r){var u=Array.isArray(e)?e[0]:e;function f(e){return"".concat(String(u)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var d=(null==r?void 0:r.unitless)||{},v="function"==typeof p?p(e):{},m=(0,a.Z)((0,a.Z)({},v),{},(0,i.Z)({},f("zIndexPopup"),!0));Object.keys(d).forEach((function(e){m[f(e)]=d[e]}));var g=(0,a.Z)((0,a.Z)({},r),{},{unitless:m,prefixToken:f}),y=h(e,t,n,g),b=function(e,t,n){var r=n.unitless,o=n.injectStyle,i=void 0===o||o,a=n.prefixToken,u=n.ignore,f=function(o){var i=o.rootCls,c=o.cssVar,f=void 0===c?{}:c,d=l().realToken;return(0,s.useCSSVarRegister)({path:[e],prefix:f.prefix,key:f.key,unitless:r,ignore:u,token:d,scope:i},(function(){var r=P(e,d,t),o=x(e,d,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((function(e){o[a(e)]=o[e],delete o[e]})),o})),null},d=function(t){var n=l().cssVar;return[function(r){return i&&n?c.createElement(c.Fragment,null,c.createElement(f,{rootCls:t,cssVar:n,component:e}),r):r},null==n?void 0:n.key]};return d}(u,n,g);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=y(e,t),r=(0,o.Z)(n,2),i=r[1],a=b(t),c=(0,o.Z)(a,2),s=c[0],l=c[1];return[s,i,l]}},genSubStyleComponent:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=h(e,t,n,(0,a.Z)({resetStyle:!1,order:-998},r)),i=function(e){var t=e.prefixCls,n=e.rootCls;return o(t,void 0===n?t:n),null};return i},genComponentStyleHook:h}}},59637:function(e,t,n){"use strict";n.r(t),n.d(t,{Keyframes:function(){return Ye},NaNLinter:function(){return Pe},StyleProvider:function(){return S},Theme:function(){return z},_experimental:function(){return it},createCache:function(){return x},createTheme:function(){return H},extractStyle:function(){return Ve},genCalc:function(){return j},getComputedToken:function(){return ge},legacyLogicalPropertiesTransformer:function(){return tt},legacyNotSelectorLinter:function(){return Oe},logicalPropertiesLinter:function(){return Te},parentSelectorLinter:function(){return Ae},px2remTransformer:function(){return ot},token2CSSVar:function(){return oe},unit:function(){return ne},useCSSVarRegister:function(){return We},useCacheToken:function(){return be},useStyleRegister:function(){return He}});var r=n(99459),o=n(57904),i=n(35047),a=n(98037);var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},s=n(68042),l=n(50959),u=n.t(l,2),f=n(58006),d=n(1388),p=n(23943),h=n(73779),v=n(71374);function m(e){return e.join("%")}var g=function(){function e(t){(0,h.Z)(this,e),(0,o.Z)(this,"instanceId",void 0),(0,o.Z)(this,"cache",new Map),this.instanceId=t}return(0,v.Z)(e,[{key:"get",value:function(e){return this.opGet(m(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(m(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),y=["children"],b="data-token-hash",w="data-css-hash",_="__cssinjs_instance__";function x(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(w,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[_]=t[_]||e,t[_]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(w,"]"))).forEach((function(t){var n,o=t.getAttribute(w);r[o]?t[_]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new g(e)}var k=l.createContext({hashPriority:"low",cache:x(),defaultCache:!0}),S=function(e){var t=e.children,n=(0,f.Z)(e,y),r=l.useContext(k),o=(0,d.Z)((function(){var e=(0,a.Z)({},r);Object.keys(n).forEach((function(t){var r=n[t];void 0!==n[t]&&(e[t]=r)}));var t=n.cache;return e.cache=e.cache||x(),e.defaultCache=!t&&r.defaultCache,e}),[r,n],(function(e,t){return!(0,p.Z)(e[0],t[0],!0)||!(0,p.Z)(e[1],t[1],!0)}));return l.createElement(k.Provider,{value:o},t)},E=k,C=n(24744),O=n(68264),T=n(46468),P=n(45675),A=n(10053),Z=(0,v.Z)((function e(){(0,h.Z)(this,e)})),I="CALC_UNIT",R=new RegExp(I,"g");function M(e){return"number"==typeof e?"".concat(e).concat(I):e}var L=function(e){(0,P.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){var i;(0,h.Z)(this,n),i=t.call(this),(0,o.Z)((0,T.Z)(i),"result",""),(0,o.Z)((0,T.Z)(i),"unitlessCssVar",void 0),(0,o.Z)((0,T.Z)(i),"lowPriority",void 0);var a=(0,C.Z)(e);return i.unitlessCssVar=r,e instanceof n?i.result="(".concat(e.result,")"):"number"===a?i.result=M(e):"string"===a&&(i.result=e),i}return(0,v.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(M(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(M(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(R,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(Z),N=function(e){(0,P.Z)(n,e);var t=(0,A.Z)(n);function n(e){var r;return(0,h.Z)(this,n),r=t.call(this),(0,o.Z)((0,T.Z)(r),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,v.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(Z),j=function(e,t){var n="css"===e?L:N;return function(e){return new n(e,t)}};var D=function(){function e(){(0,h.Z)(this,e),(0,o.Z)(this,"cache",void 0),(0,o.Z)(this,"keys",void 0),(0,o.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,v.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var o=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce((function(e,t){var n=(0,r.Z)(e,2)[1];return o.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),F+=1}return(0,v.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),B=new D;function H(e){var t=Array.isArray(e)?e:[e];return B.has(t)||B.set(t,new z(t)),B.get(t)}var q=new WeakMap,U={};function W(e,t){for(var n=q,r=0;r3&&void 0!==arguments[3]?arguments[3]:{},c=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(c)return e;var s=(0,a.Z)((0,a.Z)({},i),{},(r={},(0,o.Z)(r,b,t),(0,o.Z)(r,w,n),r)),l=Object.keys(s).map((function(e){var t=s[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},ie=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,r.Z)(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")})).join(""),"}"):""},ae=function(e,t,n){var o={},i={};return Object.entries(e).forEach((function(e){var t,a,c=(0,r.Z)(e,2),s=c[0],l=c[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])i[s]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(a=n.ignore)&&void 0!==a&&a[s])){var u,f=oe(s,null==n?void 0:n.prefix);o[f]="number"!=typeof l||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[s]?String(l):"".concat(l,"px"),i[s]="var(".concat(f,")")}})),[i,ie(o,t,{scope:null==n?void 0:n.scope})]},ce=n(84025),se=(0,a.Z)({},u).useInsertionEffect,le=se?function(e,t,n){return se((function(){return e(),t()}),n)}:function(e,t,n){l.useMemo(e,n),(0,ce.Z)((function(){return t(!0)}),n)},ue=void 0!==(0,a.Z)({},u).useInsertionEffect?function(e){var t=[],n=!1;return l.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};var fe=function(){return!1};function de(e,t,n,o,a){var c=l.useContext(E).cache,s=m([e].concat((0,i.Z)(t))),u=ue([s]),f=(fe(),function(e){c.opUpdate(s,(function(t){var o=t||[void 0,void 0],i=(0,r.Z)(o,2),a=i[0];var c=[void 0===a?0:a,i[1]||n()];return e?e(c):c}))});l.useMemo((function(){f()}),[s]);var d=c.opGet(s)[1];return le((function(){null==a||a(d)}),(function(e){return f((function(t){var n=(0,r.Z)(t,2),o=n[0],i=n[1];return e&&0===o&&(null==a||a(d)),[o+1,i]})),function(){c.opUpdate(s,(function(t){var n=t||[],i=(0,r.Z)(n,2),a=i[0],l=void 0===a?0:a,f=i[1];return 0===l-1?(u((function(){!e&&c.opGet(s)||null==o||o(f,!1)})),null):[l-1,f]}))}}),[s]),d}var pe={},he=new Map;function ve(e){he.set(e,(he.get(e)||0)+1)}function me(e,t){he.set(e,(he.get(e)||0)-1);var n=Array.from(he.keys()),r=n.filter((function(e){return(he.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(b,'="').concat(e,'"]')).forEach((function(e){var n;e[_]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),he.delete(e)}))}var ge=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,a.Z)((0,a.Z)({},o),t);return r&&(i=r(i)),i},ye="token";function be(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,l.useContext)(E),u=o.cache.instanceId,f=o.container,d=n.salt,p=void 0===d?"":d,h=n.override,v=void 0===h?pe:h,m=n.formatToken,g=n.getComputedToken,y=n.cssVar,x=W((function(){return Object.assign.apply(Object,[{}].concat((0,i.Z)(t)))}),t),k=K(x),S=K(v),C=y?K(y):"",O=de(ye,[p,e.id,k,S,C],(function(){var t,n=g?g(x,v,e):ge(x,v,e,m),o=(0,a.Z)({},n),i="";if(y){var s=ae(n,y.key,{prefix:y.prefix,ignore:y.ignore,unitless:y.unitless,preserve:y.preserve}),l=(0,r.Z)(s,2);n=l[0],i=l[1]}var u=V(n,p);n._tokenKey=u,o._tokenKey=V(o,p);var f=null!==(t=null==y?void 0:y.key)&&void 0!==t?t:u;n._themeKey=f,ve(f);var d="".concat("css","-").concat(c(u));return n._hashId=d,[n,d,o,i,(null==y?void 0:y.key)||""]}),(function(e){me(e[0]._themeKey,u)}),(function(e){var t=(0,r.Z)(e,4),n=t[0],o=t[3];if(y&&o){var i=(0,s.hq)(o,c("css-variables-".concat(n._themeKey)),{mark:w,prepend:"queue",attachTo:f,priority:-999});i[_]=u,i.setAttribute(b,n._themeKey)}}));return O}var we=n(2053),_e=n(67126),xe=n(24614),ke=n(73333);function Se(e,t){var n=t.path,r=t.parentSelectors;(0,$.ZP)(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}function Ee(e){var t;return((null===(t=e.match(/:not\(([^)]*)\)/))||void 0===t?void 0:t[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter((function(e){return e})).length>1}var Ce,Oe=function(e,t,n){var r=function(e){return e.parentSelectors.reduce((function(e,t){return e?t.includes("&")?t.replace(/&/g,e):"".concat(e," ").concat(t):t}),"")}(n),o=r.match(/:not\([^)]*\)/g)||[];o.length>0&&o.some(Ee)&&Se("Concat ':not' selector not support in legacy browsers.",n)},Te=function(e,t,n){switch(e){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":return void Se("You seem to be using non-logical property '".concat(e,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),n);case"margin":case"padding":case"borderWidth":case"borderStyle":if("string"==typeof t){var r=t.split(" ").map((function(e){return e.trim()}));4===r.length&&r[1]!==r[3]&&Se("You seem to be using '".concat(e,"' property with different left ").concat(e," and right ").concat(e,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),n)}return;case"clear":case"textAlign":return void("left"!==t&&"right"!==t||Se("You seem to be using non-logical value '".concat(t,"' of ").concat(e,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),n));case"borderRadius":if("string"==typeof t)t.split("/").map((function(e){return e.trim()})).reduce((function(e,t){if(e)return e;var n=t.split(" ").map((function(e){return e.trim()}));return n.length>=2&&n[0]!==n[1]||(3===n.length&&n[1]!==n[2]||(4===n.length&&n[2]!==n[3]||e))}),!1)&&Se("You seem to be using non-logical value '".concat(t,"' of ").concat(e,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),n);return}},Pe=function(e,t,n){("string"==typeof t&&/NaN/g.test(t)||Number.isNaN(t))&&Se("Unexpected 'NaN' in property '".concat(e,": ").concat(t,"'."),n)},Ae=function(e,t,n){n.parentSelectors.some((function(e){return e.split(",").some((function(e){return e.split("&").length>2}))}))&&Se("Should not use more than one `&` in a selector.",n)},Ze="data-ant-cssinjs-cache-path",Ie="_FILE_STYLE__";var Re=!0;function Me(e){return function(){if(!Ce&&(Ce={},(0,O.Z)())){var e=document.createElement("div");e.className=Ze,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,r.Z)(t,2),o=n[0],i=n[1];Ce[o]=i}));var n,o=document.querySelector("style[".concat(Ze,"]"));o&&(Re=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!Ce[e]}var Le="_multi_value_";function Ne(e){return(0,xe.q)((0,ke.MY)(e),xe.P).replace(/\{%%%\:[^;];}/g,";")}function je(e){return"object"===(0,C.Z)(e)&&e&&("_skip_check_"in e||Le in e)}function De(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,i.Z)(n.slice(1))).join(" ")})).join(",")}var $e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},c=o.root,s=o.injectHash,l=o.parentSelectors,u=n.hashId,f=n.layer,d=(n.path,n.hashPriority),p=n.transformers,h=void 0===p?[]:p,v=(n.linters,""),m={};function g(t){var o=t.getName(u);if(!m[o]){var i=e(t.style,n,{root:!1,parentSelectors:l}),a=(0,r.Z)(i,1)[0];m[o]="@keyframes ".concat(t.getName(u)).concat(a)}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){Array.isArray(e)?y(e,t):e&&t.push(e)})),t}var b=y(Array.isArray(t)?t:[t]);return b.forEach((function(t){var o="string"!=typeof t||c?t:{};if("string"==typeof o)v+="".concat(o,"\n");else if(o._keyframe)g(o);else{var f=h.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),o);Object.keys(f).forEach((function(t){var o=f[t];if("object"!==(0,C.Z)(o)||!o||"animationName"===t&&o._keyframe||je(o)){var p;function E(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;_e.Z[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(g(t),r=t.getName(u)),v+="".concat(n,":").concat(r,";")}var h=null!==(p=null==o?void 0:o.value)&&void 0!==p?p:o;"object"===(0,C.Z)(o)&&null!=o&&o[Le]&&Array.isArray(h)?h.forEach((function(e){E(t,e)})):E(t,h)}else{var y=!1,b=t.trim(),w=!1;(c||s)&&u?b.startsWith("@")?y=!0:b=De("&"===b?"":t,u,d):!c||u||"&"!==b&&""!==b||(b="",w=!0);var _=e(o,n,{root:w,injectHash:y,parentSelectors:[].concat((0,i.Z)(l),[b])}),x=(0,r.Z)(_,2),k=x[0],S=x[1];m=(0,a.Z)((0,a.Z)({},m),S),v+="".concat(b).concat(k)}}))}})),c?f&&(v="@layer ".concat(f.name," {").concat(v,"}"),f.dependencies&&(m["@layer ".concat(f.name)]=f.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(f.name,";")})).join("\n"))):v="{".concat(v,"}"),[v,m]};function Fe(e,t){return c("".concat(e.join("%")).concat(t))}function ze(){return null}var Be="style";function He(e,t){var n=e.token,c=e.path,u=e.hashId,f=e.layer,d=e.nonce,p=e.clientOnly,h=e.order,v=void 0===h?0:h,m=l.useContext(E),g=m.autoClear,y=(m.mock,m.defaultCache),x=m.hashPriority,k=m.container,S=m.ssrInline,C=m.transformers,T=m.linters,P=m.cache,A=m.layer,Z=n._tokenKey,I=[Z];A&&I.push("layer"),I.push.apply(I,(0,i.Z)(c));var R=te;var M=de(Be,I,(function(){var e=I.join("|");if(Me(e)){var n=function(e){var t=Ce[e],n=null;if(t&&(0,O.Z)())if(Re)n=Ie;else{var r=document.querySelector("style[".concat(w,'="').concat(Ce[e],'"]'));r?n=r.innerHTML:delete Ce[e]}return[n,t]}(e),o=(0,r.Z)(n,2),i=o[0],a=o[1];if(i)return[i,Z,a,{},p,v]}var s=t(),l=$e(s,{hashId:u,hashPriority:x,layer:A?f:void 0,path:c.join("-"),transformers:C,linters:T}),d=(0,r.Z)(l,2),h=d[0],m=d[1],g=Ne(h),y=Fe(I,g);return[g,Z,y,m,p,v]}),(function(e,t){var n=(0,r.Z)(e,3)[2];(t||g)&&te&&(0,s.jL)(n,{mark:w})}),(function(e){var t=(0,r.Z)(e,4),n=t[0],o=(t[1],t[2]),i=t[3];if(R&&n!==Ie){var c={mark:w,prepend:!A&&"queue",attachTo:k,priority:v},l="function"==typeof d?d():d;l&&(c.csp={nonce:l});var u=[],f=[];Object.keys(i).forEach((function(e){e.startsWith("@layer")?u.push(e):f.push(e)})),u.forEach((function(e){(0,s.hq)(Ne(i[e]),"_layer-".concat(e),(0,a.Z)((0,a.Z)({},c),{},{prepend:!0}))}));var p=(0,s.hq)(n,o,c);p[_]=P.instanceId,p.setAttribute(b,Z),f.forEach((function(e){(0,s.hq)(Ne(i[e]),"_effect-".concat(e),c)}))}})),L=(0,r.Z)(M,3),N=L[0],j=L[1],D=L[2];return function(e){var t,n;S&&!R&&y?t=l.createElement("style",(0,we.Z)({},(n={},(0,o.Z)(n,b,j),(0,o.Z)(n,w,D),n),{dangerouslySetInnerHTML:{__html:N}})):t=l.createElement(ze,null);return l.createElement(l.Fragment,null,t,e)}}var qe,Ue="cssVar",We=function(e,t){var n=e.key,o=e.prefix,a=e.unitless,c=e.ignore,u=e.token,f=e.scope,d=void 0===f?"":f,p=(0,l.useContext)(E),h=p.cache.instanceId,v=p.container,m=u._tokenKey,g=[].concat((0,i.Z)(e.path),[n,d,m]);return de(Ue,g,(function(){var e=t(),i=ae(e,n,{prefix:o,unitless:a,ignore:c,scope:d}),s=(0,r.Z)(i,2),l=s[0],u=s[1];return[l,u,Fe(g,u),n]}),(function(e){var t=(0,r.Z)(e,3)[2];te&&(0,s.jL)(t,{mark:w})}),(function(e){var t=(0,r.Z)(e,3),o=t[1],i=t[2];if(o){var a=(0,s.hq)(o,i,{mark:w,prepend:"queue",attachTo:v,priority:-999});a[_]=h,a.setAttribute(b,n)}}))},Ge=(qe={},(0,o.Z)(qe,Be,(function(e,t,n){var o=(0,r.Z)(e,6),i=o[0],a=o[1],c=o[2],s=o[3],l=o[4],u=o[5],f=(n||{}).plain;if(l)return null;var d=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return d=re(i,a,c,p,f),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=re(Ne(s[e]),a,"_effect-".concat(e),p,f);e.startsWith("@layer")?d=n+d:d+=n}})),[u,c,d]})),(0,o.Z)(qe,ye,(function(e,t,n){var o=(0,r.Z)(e,5),i=o[2],a=o[3],c=o[4],s=(n||{}).plain;if(!a)return null;var l=i._tokenKey;return[-999,l,re(a,c,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),(0,o.Z)(qe,Ue,(function(e,t,n){var o=(0,r.Z)(e,4),i=o[1],a=o[2],c=o[3],s=(n||{}).plain;if(!i)return null;return[-999,a,re(i,c,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),qe);function Ke(e){return null!==e}function Ve(e,t){var n="boolean"==typeof t?{plain:t}:t||{},i=n.plain,a=void 0!==i&&i,c=n.types,s=void 0===c?["style","token","cssVar"]:c,l=new RegExp("^(".concat(("string"==typeof s?[s]:s).join("|"),")%")),u=Array.from(e.cache.keys()).filter((function(e){return l.test(e)})),f={},d={},p="";return u.map((function(t){var n=t.replace(l,"").replace(/%/g,"|"),o=t.split("%"),i=(0,r.Z)(o,1)[0],c=(0,Ge[i])(e.cache.get(t)[1],f,{plain:a});if(!c)return null;var s=(0,r.Z)(c,3),u=s[0],p=s[1],h=s[2];return t.startsWith("style")&&(d[n]=p),[u,h]})).filter(Ke).sort((function(e,t){return(0,r.Z)(e,1)[0]-(0,r.Z)(t,1)[0]})).forEach((function(e){var t=(0,r.Z)(e,2)[1];p+=t})),p+=re(".".concat(Ze,'{content:"').concat(function(e){return Object.keys(e).map((function(t){var n=e[t];return"".concat(t,":").concat(n)})).join(";")}(d),'";}'),void 0,void 0,(0,o.Z)({},Ze,Ze),a),p}var Xe=function(){function e(t,n){(0,h.Z)(this,e),(0,o.Z)(this,"name",void 0),(0,o.Z)(this,"style",void 0),(0,o.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,v.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}(),Ye=Xe;function Qe(e){return e.notSplit=!0,e}var Je={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:Qe(["borderTop","borderBottom"]),borderBlockStart:Qe(["borderTop"]),borderBlockEnd:Qe(["borderBottom"]),borderInline:Qe(["borderLeft","borderRight"]),borderInlineStart:Qe(["borderLeft"]),borderInlineEnd:Qe(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function et(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var tt={visit:function(e){var t={};return Object.keys(e).forEach((function(n){var o=e[n],i=Je[n];if(!i||"number"!=typeof o&&"string"!=typeof o)t[n]=o;else{var a=function(e){if("number"==typeof e)return[[e],!1];var t=String(e).trim(),n=t.match(/(.*)(!important)/),r=(n?n[1]:t).trim().split(/\s+/),o=[],i=0;return[r.reduce((function(e,t){if(t.includes("(")||t.includes(")")){var n=t.split("(").length-1,r=t.split(")").length-1;i+=n-r}return i>=0&&o.push(t),0===i&&(e.push(o.join(" ")),o=[]),e}),[]),!!n]}(o),c=(0,r.Z)(a,2),s=c[0],l=c[1];i.length&&i.notSplit?i.forEach((function(e){t[e]=et(o,l)})):1===i.length?t[i[0]]=et(s[0],l):2===i.length?i.forEach((function(e,n){var r;t[e]=et(null!==(r=s[n])&&void 0!==r?r:s[0],l)})):4===i.length?i.forEach((function(e,n){var r,o;t[e]=et(null!==(r=null!==(o=s[n])&&void 0!==o?o:s[n-2])&&void 0!==r?r:s[0],l)})):t[n]=o}})),t}},nt=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function rt(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return 10*Math.round(r/10)/n}var ot=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootValue,n=void 0===t?16:t,o=e.precision,i=void 0===o?5:o,c=e.mediaQuery,s=void 0!==c&&c,l=function(e,t){if(!t)return e;var r=parseFloat(t);if(r<=1)return e;var o=rt(r/n,i);return"".concat(o,"rem")},u=function(e){var t=(0,a.Z)({},e);return Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),o=n[0],i=n[1];if("string"==typeof i&&i.includes("px")){var a=i.replace(nt,l);t[o]=a}_e.Z[o]||"number"!=typeof i||0===i||(t[o]="".concat(i,"px").replace(nt,l));var c=o.trim();if(c.startsWith("@")&&c.includes("px")&&s){var u=o.replace(nt,l);t[u]=t[o],delete t[o]}})),t};return{visit:u}},it={supportModernCSS:function(){return void 0===J&&(J=Q(":where(.".concat(X,') { content: "').concat(Y,'"!important; }'),(function(e){e.className=X}))),J&&(void 0===ee&&(ee=Q(".".concat(X," { inset-block: 93px !important; }"),(function(e){e.className=X}),(function(e){return"93px"===getComputedStyle(e).bottom}))),ee)}}},17338:function(e,t){"use strict";t.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"}},70922:function(e,t){"use strict";t.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"}},82350:function(e,t,n){"use strict";var r=n(2053),o=n(99459),i=n(57904),a=n(58006),c=n(50959),s=n(82187),l=n.n(s),u=n(75875),f=n(2101),d=n(43452),p=n(49118),h=n(77348),v=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,p.U)(u.blue.primary);var m=c.forwardRef((function(e,t){var n=e.className,s=e.icon,u=e.spin,p=e.rotate,m=e.tabIndex,g=e.onClick,y=e.twoToneColor,b=(0,a.Z)(e,v),w=c.useContext(f.Z),_=w.prefixCls,x=void 0===_?"anticon":_,k=w.rootClassName,S=l()(k,x,(0,i.Z)((0,i.Z)({},"".concat(x,"-").concat(s.name),!!s.name),"".concat(x,"-spin"),!!u||"loading"===s.name),n),E=m;void 0===E&&g&&(E=-1);var C=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,O=(0,h.H9)(y),T=(0,o.Z)(O,2),P=T[0],A=T[1];return c.createElement("span",(0,r.Z)({role:"img","aria-label":s.name},b,{ref:t,tabIndex:E,onClick:g,className:S}),c.createElement(d.Z,{icon:s,primaryColor:P,secondaryColor:A,style:C}))}));m.displayName="AntdIcon",m.getTwoToneColor=p.m,m.setTwoToneColor=p.U,t.Z=m},2101:function(e,t,n){"use strict";var r=(0,n(50959).createContext)({});t.Z=r},43452:function(e,t,n){"use strict";var r=n(58006),o=n(98037),i=n(50959),a=n(77348),c=["icon","className","onClick","style","primaryColor","secondaryColor"],s={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var l=function(e){var t=e.icon,n=e.className,l=e.onClick,u=e.style,f=e.primaryColor,d=e.secondaryColor,p=(0,r.Z)(e,c),h=i.useRef(),v=s;if(f&&(v={primaryColor:f,secondaryColor:d||(0,a.pw)(f)}),(0,a.C3)(h),(0,a.Kp)((0,a.r)(t),"icon should be icon definiton, but got ".concat(t)),!(0,a.r)(t))return null;var m=t;return m&&"function"==typeof m.icon&&(m=(0,o.Z)((0,o.Z)({},m),{},{icon:m.icon(v.primaryColor,v.secondaryColor)})),(0,a.R_)(m.icon,"svg-".concat(m.name),(0,o.Z)((0,o.Z)({className:n,onClick:l,style:u,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},p),{},{ref:h}))};l.displayName="IconReact",l.getTwoToneColors=function(){return(0,o.Z)({},s)},l.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;s.primaryColor=t,s.secondaryColor=n||(0,a.pw)(t),s.calculated=!!n},t.Z=l},49118:function(e,t,n){"use strict";n.d(t,{U:function(){return a},m:function(){return c}});var r=n(99459),o=n(43452),i=n(77348);function a(e){var t=(0,i.H9)(e),n=(0,r.Z)(t,2),a=n[0],c=n[1];return o.Z.setTwoToneColors({primaryColor:a,secondaryColor:c})}function c(){var e=o.Z.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}},10705:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2053),o=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var s=o.forwardRef(c)},42216:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2053),o=n(50959),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var s=o.forwardRef(c)},51558:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2053),o=n(50959),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var s=o.forwardRef(c)},6713:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2053),o=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var s=o.forwardRef(c)},41473:function(e,t,n){"use strict";var r=n(2053),o=n(50959),i=n(17338),a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i.Z}))},s=o.forwardRef(c);t.Z=s},50848:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2053),o=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var s=o.forwardRef(c)},34382:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2053),o=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var s=o.forwardRef(c)},62299:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2053),o=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var s=o.forwardRef(c)},41610:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2053),o=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var s=o.forwardRef(c)},5022:function(e,t,n){"use strict";var r=n(2053),o=n(50959),i=n(70922),a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i.Z}))},s=o.forwardRef(c);t.Z=s},77348:function(e,t,n){"use strict";n.d(t,{C3:function(){return b},H9:function(){return g},Kp:function(){return d},R_:function(){return v},pw:function(){return m},r:function(){return p},vD:function(){return y}});var r=n(98037),o=n(24744),i=n(75875),a=n(68042),c=n(93196),s=n(20983),l=n(50959),u=n(2101);function f(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function d(e,t){(0,s.ZP)(e,"[@ant-design/icons] ".concat(t))}function p(e){return"object"===(0,o.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,o.Z)(e.icon)||"function"==typeof e.icon)}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[f(n)]=r;return t}),{})}function v(e,t,n){return n?l.createElement(e.tag,(0,r.Z)((0,r.Z)({key:t},h(e.attrs)),n),(e.children||[]).map((function(n,r){return v(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):l.createElement(e.tag,(0,r.Z)({key:t},h(e.attrs)),(e.children||[]).map((function(n,r){return v(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function m(e){return(0,i.generate)(e)[0]}function g(e){return e?Array.isArray(e)?e:[e]:[]}var y={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},b=function(e){var t=(0,l.useContext)(u.Z),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),(0,l.useEffect)((function(){var t=e.current,r=(0,c.A)(t);(0,a.hq)(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})}),[])}},24070:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(50959).createContext)({});t.default=r},91574:function(e,t,n){"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function c(e){return 1===e.length?"0"+e:String(e)}function s(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,c=0,s=(o+i)/2;if(o===i)c=0,a=0;else{var l=o-i;switch(c=s>.5?l/(2-o-i):l/(o+i),o){case e:a=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function u(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,c=o,s=o-i,l=0===o?0:s/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/s+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=m(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=i(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=u(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=u(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=s(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=s(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),f(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i=[c(Math.round(e).toString(16)),c(Math.round(t).toString(16)),c(Math.round(n).toString(16)),c(d(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*r(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*r(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+f(this.r,this.g,this.b,!1),t=0,n=Object.entries(v);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=o(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=o(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=o(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=o(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+c)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a.5?l/(2-o-i):l/(o+i),o){case e:a=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function c(e,t,n){var o,i,c;if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)i=n,c=n,o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=a(l,s,e+1/3),i=a(l,s,e),c=a(l,s,e-1/3)}return{r:255*o,g:255*i,b:255*c}}function s(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,c=o,s=o-i,l=0===o?0:s/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/s+(t>16,g:(65280&e)>>8,b:255&e}}},76367:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},28556:function(e,t,n){"use strict";n.d(t,{ky:function(){return d},uA:function(){return a},uz:function(){return f}});var r=n(96299),o=n(76367),i=n(23881);function a(e){var t={r:0,g:0,b:0},n=1,o=null,a=null,c=null,s=!1,l=!1;return"string"==typeof e&&(e=f(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),s=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(o=(0,i.JX)(e.s),a=(0,i.JX)(e.v),t=(0,r.WE)(e.h,o,a),s=!0,l="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(o=(0,i.JX)(e.s),c=(0,i.JX)(e.l),t=(0,r.ve)(e.h,o,c),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.Yq)(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var c="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),l="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),u={CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+s),rgba:new RegExp("rgba"+l),hsl:new RegExp("hsl"+s),hsla:new RegExp("hsla"+l),hsv:new RegExp("hsv"+s),hsva:new RegExp("hsva"+l),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=u.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=u.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=u.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=u.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=u.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=u.hex8.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"}:(n=u.hex6.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"}:(n=u.hex4.exec(e))?{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=u.hex3.exec(e))&&{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"}}function d(e){return Boolean(u.CSS_UNIT.exec(String(e)))}},99978:function(e,t,n){"use strict";n.d(t,{C:function(){return c},H:function(){return s}});var r=n(96299),o=n(76367),i=n(28556),a=n(23881),c=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.R);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+c)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a=4.5;case"AAlarge":return a>=3;case"AAAsmall":return a>=7;default:return!1}}function c(e,t,n){void 0===n&&(n={includeFallbackColors:!1,level:"AA",size:"small"});for(var o=null,s=0,l=n.includeFallbackColors,u=n.level,f=n.size,d=0,p=t;ds&&(s=v,o=new r.C(h))}return a(e,o,{level:u,size:f})||!l?o:(n.includeFallbackColors=!1,c(e,["#fff","#000"],n))}var s=n(96299);function l(e,t){var n=new r.C(e),o="#"+(0,s.GC)(n.r,n.g,n.b,n.a),i=o,a=n.gradientType?"GradientType = 1, ":"";if(t){var c=new r.C(t);i="#"+(0,s.GC)(c.r,c.g,c.b,c.a)}return"progid:DXImageTransform.Microsoft.gradient(".concat(a,"startColorstr=").concat(o,",endColorstr=").concat(i,")")}var u=n(23881);function f(e,t){var n={r:(0,u.JX)(e.r),g:(0,u.JX)(e.g),b:(0,u.JX)(e.b)};return void 0!==e.a&&(n.a=Number(e.a)),new r.C(n,t)}function d(){return new r.C({r:Math.random(),g:Math.random(),b:Math.random()})}var p=n(28556);function h(e){if(void 0===e&&(e={}),void 0!==e.count&&null!==e.count){var t=e.count,n=[];for(e.count=void 0;t>n.length;)e.count=null,e.seed&&(e.seed+=1),n.push(h(e));return e.count=t,n}var o=function(e,t){var n=m(function(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if("string"==typeof e){var n=y.find((function(t){return t.name===e}));if(n){var o=g(n);if(o.hueRange)return o.hueRange}var i=new r.C(e);if(i.isValid){var a=i.toHsv().h;return[a,a]}}return[0,360]}(e),t);n<0&&(n=360+n);return n}(e.hue,e.seed),i=function(e,t){if("monochrome"===t.hue)return 0;if("random"===t.luminosity)return m([0,100],t.seed);var n=v(e).saturationRange,r=n[0],o=n[1];switch(t.luminosity){case"bright":r=55;break;case"dark":r=o-10;break;case"light":o=55}return m([r,o],t.seed)}(o,e),a=function(e,t,n){var r=function(e,t){for(var n=v(e).lowerBounds,r=0;r=o&&t<=a){var s=(c-i)/(a-o);return s*t+(i-s*o)}}return 0}(e,t),o=100;switch(n.luminosity){case"dark":o=r+20;break;case"light":r=(o+r)/2;break;case"random":r=0,o=100}return m([r,o],n.seed)}(o,i,e),c={h:o,s:i,v:a};return void 0!==e.alpha&&(c.a=e.alpha),new r.C(c)}function v(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=y;t=r.hueRange[0]&&e<=r.hueRange[1])return r}throw Error("Color not found")}function m(e,t){if(void 0===t)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var n=e[1]||1,r=e[0]||0,o=(t=(9301*t+49297)%233280)/233280;return Math.floor(r+o*(n-r))}function g(e){var t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],r=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[r,o]}}var y=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],b=r.H},23881:function(e,t,n){"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function c(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return c},JX:function(){return a},V2:function(){return o},Yq:function(){return i},sh:function(){return r}})},19114:function(e,t,n){"use strict";n.d(t,{ms:function(){return $e},xB:function(){return Me},iv:function(){return Le},tZ:function(){return Re}});var r=n(50959),o=n.t(r,2);var i=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?d(x,--w):0,y--,10===_&&(y=1,g--),_}function C(){return _=w2||A(_)>3?"":" "}function L(e,t){for(;--t&&C()&&!(_<48||_>102||_>57&&_<65||_>70&&_<97););return P(e,T()+(t<6&&32==O()&&32==C()))}function N(e){for(;C();)switch(_){case e:return w;case 34:case 39:34!==e&&39!==e&&N(_);break;case 40:41===e&&N(e);break;case 92:C()}return w}function j(e,t){for(;C()&&e+_!==57&&(e+_!==84||47!==O()););return"/*"+P(t,w-1)+"*"+c(47===e?e:C())}function D(e){for(;!A(O());)C();return P(e,w)}var $="-ms-",F="-moz-",z="-webkit-",B="comm",H="rule",q="decl",U="@keyframes";function W(e,t){for(var n="",r=v(e),o=0;o0&&h(N)-g&&m(b>32?Q(N+";",r,n,g-1):Q(u(N," ","")+";",r,n,g-2),l);break;case 59:N+=";";default:if(m(I=X(N,t,n,p,v,o,s,P,A=[],Z=[],g),i),123===S)if(0===v)V(N,t,I,I,A,i,g,s,Z);else switch(99===y&&110===d(N,3)?100:y){case 100:case 108:case 109:case 115:V(e,I,I,r&&m(X(e,I,I,0,0,o,s,P,o,A=[],g),Z),o,Z,g,s,r?A:Z);break;default:V(N,I,I,I,[""],Z,0,s,Z)}}p=v=b=0,_=k=1,P=N="",g=a;break;case 58:g=1+h(N),b=w;default:if(_<1)if(123==S)--_;else if(125==S&&0==_++&&125==E())continue;switch(N+=c(S),S*_){case 38:k=v>0?1:(N+="\f",-1);break;case 44:s[p++]=(h(N)-1)*k,k=1;break;case 64:45===O()&&(N+=R(C())),y=O(),v=g=h(P=N+=D(T())),S++;break;case 45:45===w&&2==h(N)&&(_=0)}}return i}function X(e,t,n,r,o,i,c,s,f,d,h){for(var m=o-1,g=0===o?i:[""],y=v(g),b=0,w=0,_=0;b0?g[x]+" "+S:u(S,/&\f/g,g[x])))&&(f[_++]=E);return k(e,t,n,0===o?H:s,f,d,h)}function Y(e,t,n){return k(e,t,n,B,c(_),p(e,2,-2),0)}function Q(e,t,n,r){return k(e,t,n,q,p(e,0,r),p(e,r+1,-1),r)}var J=function(e,t,n){for(var r=0,o=0;r=o,o=O(),38===r&&12===o&&(t[n]=1),!A(o);)C();return P(e,w)},ee=function(e,t){return I(function(e,t){var n=-1,r=44;do{switch(A(r)){case 0:38===r&&12===O()&&(t[n]=1),e[n]+=J(w-1,t,n);break;case 2:e[n]+=R(r);break;case 4:if(44===r){e[++n]=58===O()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=c(r)}}while(r=C());return e}(Z(e),t))},te=new WeakMap,ne=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||te.get(n))&&!r){te.set(e,!0);for(var o=[],i=ee(t,o),a=n.props,c=0,s=0;c6)switch(d(e,t+1)){case 109:if(45!==d(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+F+(108==d(e,t+3)?"$3":"$2-$3"))+e;case 115:return~f(e,"stretch")?oe(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==d(e,t+1))break;case 6444:switch(d(e,h(e)-3-(~f(e,"!important")&&10))){case 107:return u(e,":",":"+z)+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(45===d(e,14)?"inline-":"")+"box$3$1"+z+"$2$3$1"+$+"$2box$3")+e}break;case 5936:switch(d(e,t+11)){case 114:return z+e+$+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+$+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+$+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+$+e+e}return e}var ie=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case q:e.return=oe(e.value,e.length);break;case U:return W([S(e,{value:u(e.value,"@","@"+z)})],r);case H:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([S(e,{props:[u(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return W([S(e,{props:[u(t,/:(plac\w+)/,":"+z+"input-$1")]}),S(e,{props:[u(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[u(t,/:(plac\w+)/,$+"input-$1")]})],r)}return""}))}}],ae=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||ie,c={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:l,styles:o,next:be}}var xe=!!o.useInsertionEffect&&o.useInsertionEffect,ke=xe||function(e){return e()},Se=xe||r.useLayoutEffect,Ee={}.hasOwnProperty,Ce=r.createContext("undefined"!=typeof HTMLElement?ae({key:"css"}):null);Ce.Provider;var Oe=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(Ce);return e(t,o,n)}))};var Te=r.createContext({});var Pe="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ae=function(e,t){var n={};for(var r in t)Ee.call(t,r)&&(n[r]=t[r]);return n[Pe]=e,n},Ze=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return se(t,n,r),ke((function(){return le(t,n,r)})),null};var Ie=Oe((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[Pe],a=[o],c="";"string"==typeof e.className?c=ce(t.registered,a,e.className):null!=e.className&&(c=e.className+" ");var s=_e(a,void 0,r.useContext(Te));c+=t.key+"-"+s.name;var l={};for(var u in e)Ee.call(e,u)&&"css"!==u&&u!==Pe&&(l[u]=e[u]);return l.ref=n,l.className=c,r.createElement(r.Fragment,null,r.createElement(Ze,{cache:t,serialized:s,isStringTag:"string"==typeof i}),r.createElement(i,l))})),Re=(n(72535),function(e,t){var n=arguments;if(null==t||!Ee.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=Ie,i[1]=Ae(e,t);for(var a=2;a1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(S,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(E.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(x.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(x,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var i=o.options[0];"w"===i?t=(0,a.pi)((0,a.pi)({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,a.pi)((0,a.pi)({},t),C(i)))}else if(k.test(o.stem))t=(0,a.pi)((0,a.pi)({},t),C(o.stem));else{var c=O(o.stem);c&&(t=(0,a.pi)((0,a.pi)({},t),c));var s=T(o.stem);s&&(t=(0,a.pi)((0,a.pi)({},t),s))}}return t}var Z,I={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function R(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(I[n||""]||I[r||""]||I["".concat(r,"-001")]||I["001"])[0]}var M=new RegExp("^".concat(y.source,"*")),L=new RegExp("".concat(y.source,"*$"));function N(e,t){return{start:e,end:t}}var j=!!String.prototype.startsWith&&"_a".startsWith("a",1),D=!!String.fromCodePoint,$=!!Object.fromEntries,F=!!String.prototype.codePointAt,z=!!String.prototype.trimStart,B=!!String.prototype.trimEnd,H=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},q=!0;try{q="a"===(null===(Z=Q("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Z?void 0:Z[0])}catch(e){q=!1}var U,W=j?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},G=D?String.fromCodePoint:function(){for(var e=[],t=0;ti;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},K=$?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},X=z?function(e){return e.trimStart()}:function(e){return e.replace(M,"")},Y=B?function(e){return e.trimEnd()}:function(e){return e.replace(L,"")};function Q(e,t){return new RegExp(e,t)}if(q){var J=Q("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");U=function(e,t){var n;return J.lastIndex=t,null!==(n=J.exec(e)[1])&&void 0!==n?n:""}}else U=function(e,t){for(var n=[];;){var r=V(e,t);if(void 0===r||ne(r)||re(r))break;n.push(r),t+=r>=65536?2:1}return G.apply(void 0,n)};var ee=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var i=[];!this.isEOF();){var a=this.char();if(123===a){if((c=this.parseArgument(e,n)).err)return c;i.push(c.val)}else{if(125===a&&e>0)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(r.UNMATCHED_CLOSING_TAG,N(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&te(this.peek()||0)){if((c=this.parseTag(e,t)).err)return c;i.push(c.val)}else{var c;if((c=this.parseLiteral(e,t)).err)return c;i.push(c.val)}}else{var s=this.clonePosition();this.bump(),i.push({type:o.pound,location:N(s,this.clonePosition())})}}}return{val:i,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:o.literal,value:"<".concat(i,"/>"),location:N(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var c=a.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:o.tag,value:i,children:c,location:N(n,this.clonePosition())},err:null}:this.error(r.INVALID_TAG,N(s,this.clonePosition())))}return this.error(r.UNCLOSED_TAG,N(n,this.clonePosition()))}return this.error(r.INVALID_TAG,N(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var c=this.tryParseLeftAngleBracket();if(!c)break;r+=c}}}var s=N(n,this.clonePosition());return{val:{type:o.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(te(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return G.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),G(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,N(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(r.EMPTY_ARGUMENT,N(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(r.MALFORMED_ARGUMENT,N(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,N(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:o.argument,value:i,location:N(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,N(n,this.clonePosition())):this.parseArgumentOptions(e,t,i,n);default:return this.error(r.MALFORMED_ARGUMENT,N(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=U(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:N(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,c){var s,l=this.clonePosition(),u=this.parseIdentifierIfPossible().value,f=this.clonePosition();switch(u){case"":return this.error(r.EXPECT_ARGUMENT_TYPE,N(l,f));case"number":case"date":case"time":this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition();if((x=this.parseSimpleArgStyleIfPossible()).err)return x;if(0===(g=Y(x.val)).length)return this.error(r.EXPECT_ARGUMENT_STYLE,N(this.clonePosition(),this.clonePosition()));d={style:g,styleLocation:N(p,this.clonePosition())}}if((k=this.tryParseArgumentClose(c)).err)return k;var h=N(c,this.clonePosition());if(d&&W(null==d?void 0:d.style,"::",0)){var v=X(d.style.slice(2));if("number"===u)return(x=this.parseNumberSkeletonFromString(v,d.styleLocation)).err?x:{val:{type:o.number,value:n,location:h,style:x.val},err:null};if(0===v.length)return this.error(r.EXPECT_DATE_TIME_SKELETON,h);var m=v;this.locale&&(m=function(e,t){for(var n="",r=0;r>1),s=R(t);for("H"!=s&&"k"!=s||(c=0);c-- >0;)n+="a";for(;a-- >0;)n=s+n}else n+="J"===o?"H":o}return n}(v,this.locale));var g={type:i.dateTime,pattern:m,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?w(m):{}};return{val:{type:"date"===u?o.date:o.time,value:n,location:h,style:g},err:null}}return{val:{type:"number"===u?o.number:"date"===u?o.date:o.time,value:n,location:h,style:null!==(s=null==d?void 0:d.style)&&void 0!==s?s:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(r.EXPECT_SELECT_ARGUMENT_OPTIONS,N(y,(0,a.pi)({},y)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),_=0;if("select"!==u&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N(this.clonePosition(),this.clonePosition()));var x;if(this.bumpSpace(),(x=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return x;this.bumpSpace(),b=this.parseIdentifierIfPossible(),_=x.val}var k,S=this.tryParsePluralOrSelectOptions(e,u,t,b);if(S.err)return S;if((k=this.tryParseArgumentClose(c)).err)return k;var E=N(c,this.clonePosition());return"select"===u?{val:{type:o.select,value:n,options:K(S.val),location:E},err:null}:{val:{type:o.plural,value:n,options:K(S.val),offset:_,pluralType:"plural"===u?"cardinal":"ordinal",location:E},err:null};default:return this.error(r.INVALID_ARGUMENT_TYPE,N(l,f))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,N(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,N(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(_).filter((function(e){return e.length>0}));n=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var c=N(r,this.clonePosition());return o?H(i*=n)?{val:i,err:null}:this.error(t,c):this.error(e,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=V(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(W(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ne(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function te(e){return e>=97&&e<=122||e>=65&&e<=90}function ne(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function re(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function oe(e){e.forEach((function(e){if(delete e.location,d(e)||p(e))for(var t in e.options)delete e.options[t].location,oe(e.options[t].value);else l(e)&&m(e.style)||(u(e)||f(e))&&g(e.style)?delete e.style.location:v(e)&&oe(e.children)}))}function ie(e,t){void 0===t&&(t={}),t=(0,a.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ee(e,t).parse();if(n.err){var o=SyntaxError(r[n.err.kind]);throw o.location=n.err.location,o.originalMessage=n.err.message,o}return(null==t?void 0:t.captureLocation)||oe(n.val),n.val}},30626:function(e,t,n){"use strict";n.d(t,{$6:function(){return f},OV:function(){return c},Qe:function(){return l},X9:function(){return u},gb:function(){return s},wI:function(){return a}});var r,o=n(15767);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(r||(r={}));var i=function(e){function t(n,r,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return(0,o.ZT)(t,e),t}(Error),a=function(e){function t(t,n){return e.call(this,r.UNSUPPORTED_FORMATTER,t,n)||this}return(0,o.ZT)(t,e),t}(i),c=function(e){function t(t,n){return e.call(this,r.INVALID_CONFIG,t,n)||this}return(0,o.ZT)(t,e),t}(i),s=function(e){function t(t,n){return e.call(this,r.MISSING_DATA,t,n)||this}return(0,o.ZT)(t,e),t}(i),l=function(e){function t(t,n,o){var i=e.call(this,r.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),o)||this;return i.locale=n,i}return(0,o.ZT)(t,e),t}(i),u=function(e){function t(t,n,r,o){var i=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,o)||this;return i.descriptor=r,i.locale=n,i}return(0,o.ZT)(t,e),t}(l),f=function(e){function t(t,n){var o=e.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return o.descriptor=t,o}return(0,o.ZT)(t,e),t}(i)},32005:function(e,t,n){"use strict";n.d(t,{L6:function(){return c},Sn:function(){return l},TB:function(){return d},Z0:function(){return s},ax:function(){return f}});var r=n(15767),o=n(24625),i=n(61472),a=n(30626);function c(e,t,n){return void 0===n&&(n={}),t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}var s={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function l(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function u(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function f(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,a=Intl.DisplayNames,c=(0,i.H)((function(){for(var e,t=[],n=0;nparseFloat(e)));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const m=(e,t,n)=>0===n?e:e/100;function g(e,t){const n=t||255;return e>n?n:e<0?0:e}class y{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,o.Z)(this,"isValid",!0),(0,o.Z)(this,"r",0),(0,o.Z)(this,"g",0),(0,o.Z)(this,"b",0),(0,o.Z)(this,"a",1),(0,o.Z)(this,"_h",void 0),(0,o.Z)(this,"_s",void 0),(0,o.Z)(this,"_l",void 0),(0,o.Z)(this,"_v",void 0),(0,o.Z)(this,"_max",void 0),(0,o.Z)(this,"_min",void 0),(0,o.Z)(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof y)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=g(e.r),this.g=g(e.g),this.b=g(e.b),this.a="number"==typeof e.a?g(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:h(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:h(o("r")),g:h(o("g")),b:h(o("b")),a:h(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>h((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=h(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=h(100*this.getSaturation()),n=h(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=g(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=h(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const c=e/60,s=(1-Math.abs(2*n-1))*t,l=s*(1-Math.abs(c%2-1));c>=0&&c<1?(o=s,i=l):c>=1&&c<2?(o=l,i=s):c>=2&&c<3?(i=s,a=l):c>=3&&c<4?(i=l,a=s):c>=4&&c<5?(o=l,a=s):c>=5&&c<6&&(o=s,a=l);const u=n-s/2;this.r=h(255*(o+u)),this.g=h(255*(i+u)),this.b=h(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=h(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),c=i-a,s=h(n*(1-t)*255),l=h(n*(1-t*c)*255),u=h(n*(1-t*(1-c))*255);switch(a){case 0:this.g=u,this.b=s;break;case 1:this.r=l,this.b=s;break;case 2:this.r=s,this.b=u;break;case 3:this.r=s,this.g=l;break;case 4:this.r=u,this.g=s;break;default:this.g=s,this.b=l}}fromHsvString(e){const t=v(e,m);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=v(e,m);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=v(e,((e,t)=>t.includes("%")?h(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var b=["b"],w=["v"],_=function(e){return Math.round(Number(e||0))},x=function(e){(0,u.Z)(n,e);var t=(0,f.Z)(n);function n(e){return(0,s.Z)(this,n),t.call(this,function(e){if(e instanceof y)return e;if(e&&"object"===(0,p.Z)(e)&&"h"in e&&"b"in e){var t=e,n=t.b,r=(0,d.Z)(t,b);return(0,c.Z)((0,c.Z)({},r),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return(0,l.Z)(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=_(100*e.s),n=_(100*e.b),r=_(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,n=(0,d.Z)(e,w);return(0,c.Z)((0,c.Z)({},n),{},{b:t,a:this.a})}}]),n}(y),k=function(e){return e instanceof x?e:new x(e)},S=k("#1677ff"),E=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.color,i=e.type,a=r.current.getBoundingClientRect(),s=a.width,l=a.height,u=n.current.getBoundingClientRect(),f=u.width/2,d=u.height/2,p=(t.x+f)/s,h=1-(t.y+d)/l,v=o.toHsb(),m=p,g=(t.x+f)/s*360;if(i)switch(i){case"hue":return k((0,c.Z)((0,c.Z)({},v),{},{h:g<=0?0:g}));case"alpha":return k((0,c.Z)((0,c.Z)({},v),{},{a:m<=0?0:m}))}return k({h:v.h,s:p<=0?0:p,b:h>=1?1:h,a:v.a})},C=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},O=n(82187),T=n.n(O),P=function(e){var t=e.color,n=e.prefixCls,r=e.className,o=e.style,i=e.onClick,c="".concat(n,"-color-block");return a.createElement("div",{className:T()(c,r),style:o,onClick:i},a.createElement("div",{className:"".concat(c,"-inner"),style:{background:t}}))};var A=function(e){var t=e.targetRef,n=e.containerRef,r=e.direction,o=e.onDragChange,c=e.onDragChangeComplete,s=e.calculate,l=e.color,u=e.disabledDrag,f=(0,a.useState)({x:0,y:0}),d=(0,i.Z)(f,2),p=d[0],h=d[1],v=(0,a.useRef)(null),m=(0,a.useRef)(null);(0,a.useEffect)((function(){h(s())}),[l]),(0,a.useEffect)((function(){return function(){document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",m.current),v.current=null,m.current=null}}),[]);var g=function(e){var i=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),a=i.pageX,c=i.pageY,s=n.current.getBoundingClientRect(),l=s.x,u=s.y,f=s.width,d=s.height,h=t.current.getBoundingClientRect(),v=h.width,m=h.height,g=v/2,y=m/2,b=Math.max(0,Math.min(a-l,f))-g,w=Math.max(0,Math.min(c-u,d))-y,_={x:b,y:"x"===r?p.y:w};if(0===v&&0===m||v!==m)return!1;null==o||o(_)},y=function(e){e.preventDefault(),g(e)},b=function(e){e.preventDefault(),document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",m.current),v.current=null,m.current=null,null==c||c()};return[p,function(e){document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",m.current),u||(g(e),document.addEventListener("mousemove",y),document.addEventListener("mouseup",b),document.addEventListener("touchmove",y),document.addEventListener("touchend",b),v.current=y,m.current=b)}]},Z=n(62412),I=function(e){var t=e.size,n=void 0===t?"default":t,r=e.color,i=e.prefixCls;return a.createElement("div",{className:T()("".concat(i,"-handler"),(0,o.Z)({},"".concat(i,"-handler-sm"),"small"===n)),style:{backgroundColor:r}})},R=function(e){var t=e.children,n=e.style,r=e.prefixCls;return a.createElement("div",{className:"".concat(r,"-palette"),style:(0,c.Z)({position:"relative"},n)},t)},M=(0,a.forwardRef)((function(e,t){var n=e.children,r=e.x,o=e.y;return a.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)})),L=function(e){var t=e.color,n=e.onChange,r=e.prefixCls,o=e.onChangeComplete,c=e.disabled,s=(0,a.useRef)(),l=(0,a.useRef)(),u=(0,a.useRef)(t),f=(0,Z.zX)((function(e){var r=E({offset:e,targetRef:l,containerRef:s,color:t});u.current=r,n(r)})),d=A({color:t,containerRef:s,targetRef:l,calculate:function(){return C(t)},onDragChange:f,onDragChangeComplete:function(){return null==o?void 0:o(u.current)},disabledDrag:c}),p=(0,i.Z)(d,2),h=p[0],v=p[1];return a.createElement("div",{ref:s,className:"".concat(r,"-select"),onMouseDown:v,onTouchStart:v},a.createElement(R,{prefixCls:r},a.createElement(M,{x:h.x,y:h.y,ref:l},a.createElement(I,{color:t.toRgbString(),prefixCls:r})),a.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},N=function(e,t){var n=(0,Z.C8)(e,{value:t}),r=(0,i.Z)(n,2),o=r[0],c=r[1];return[(0,a.useMemo)((function(){return k(o)}),[o]),c]},j=function(e){var t=e.colors,n=e.children,r=e.direction,o=void 0===r?"to right":r,i=e.type,c=e.prefixCls,s=(0,a.useMemo)((function(){return t.map((function(e,n){var r=k(e);return"alpha"===i&&n===t.length-1&&(r=new x(r.setA(1))),r.toRgbString()})).join(",")}),[t,i]);return a.createElement("div",{className:"".concat(c,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(s,")")}},n)},D=function(e){var t=e.prefixCls,n=e.colors,r=e.disabled,o=e.onChange,c=e.onChangeComplete,s=e.color,l=e.type,u=(0,a.useRef)(),f=(0,a.useRef)(),d=(0,a.useRef)(s),p=function(e){return"hue"===l?e.getHue():100*e.a},h=(0,Z.zX)((function(e){var t=E({offset:e,targetRef:f,containerRef:u,color:s,type:l});d.current=t,o(p(t))})),v=A({color:s,targetRef:f,containerRef:u,calculate:function(){return C(s,l)},onDragChange:h,onDragChangeComplete:function(){c(p(d.current))},direction:"x",disabledDrag:r}),m=(0,i.Z)(v,2),g=m[0],y=m[1],b=a.useMemo((function(){if("hue"===l){var e=s.toHsb();return e.s=1,e.b=1,e.a=1,new x(e)}return s}),[s,l]),w=a.useMemo((function(){return n.map((function(e){return"".concat(e.color," ").concat(e.percent,"%")}))}),[n]);return a.createElement("div",{ref:u,className:T()("".concat(t,"-slider"),"".concat(t,"-slider-").concat(l)),onMouseDown:y,onTouchStart:y},a.createElement(R,{prefixCls:t},a.createElement(M,{x:g.x,y:g.y,ref:f},a.createElement(I,{size:"small",color:b.toHexString(),prefixCls:t})),a.createElement(j,{colors:w,type:l,prefixCls:t})))};var $=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],F=(0,a.forwardRef)((function(e,t){var n=e.value,c=e.defaultValue,s=e.prefixCls,l=void 0===s?"rc-color-picker":s,u=e.onChange,f=e.onChangeComplete,d=e.className,p=e.style,h=e.panelRender,v=e.disabledAlpha,m=void 0!==v&&v,g=e.disabled,y=void 0!==g&&g,b=function(e){return a.useMemo((function(){return[(e||{}).slider||D]}),[e])}(e.components),w=(0,i.Z)(b,1)[0],_=N(c||S,n),k=(0,i.Z)(_,2),E=k[0],C=k[1],O=(0,a.useMemo)((function(){return E.setA(1).toRgbString()}),[E]),A=function(e,t){n||C(e),null==u||u(e,t)},Z=function(e){return new x(E.setHue(e))},I=function(e){return new x(E.setA(e/100))},R=T()("".concat(l,"-panel"),d,(0,o.Z)({},"".concat(l,"-panel-disabled"),y)),M={prefixCls:l,disabled:y,color:E},j=a.createElement(a.Fragment,null,a.createElement(L,(0,r.Z)({onChange:A},M,{onChangeComplete:f})),a.createElement("div",{className:"".concat(l,"-slider-container")},a.createElement("div",{className:T()("".concat(l,"-slider-group"),(0,o.Z)({},"".concat(l,"-slider-group-disabled-alpha"),m))},a.createElement(w,(0,r.Z)({},M,{type:"hue",colors:$,min:0,max:359,value:E.getHue(),onChange:function(e){A(Z(e),{type:"hue",value:e})},onChangeComplete:function(e){f&&f(Z(e))}})),!m&&a.createElement(w,(0,r.Z)({},M,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:O}],min:0,max:100,value:100*E.a,onChange:function(e){A(I(e),{type:"alpha",value:e})},onChangeComplete:function(e){f&&f(I(e))}}))),a.createElement(P,{color:E.toRgbString(),prefixCls:l})));return a.createElement("div",{className:R,style:p,ref:t},"function"==typeof h?h(j):j)}));var z=F},15077:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(99459),o=n(50959),i=n(10422),a=n(68264),c=(n(20983),n(97548)),s=o.createContext(null),l=n(35047),u=n(84025),f=[];var d=n(68042),p=n(50381);var h="rc-util-locker-".concat(Date.now()),v=0;function m(e){var t=!!e,n=o.useState((function(){return v+=1,"".concat(h,"_").concat(v)})),i=(0,r.Z)(n,1)[0];(0,u.Z)((function(){if(t){var e=(0,p.o)(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,d.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),i)}else(0,d.jL)(i);return function(){(0,d.jL)(i)}}),[t,i])}var g=!1;var y=function(e){return!1!==e&&((0,a.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};var b=o.forwardRef((function(e,t){var n=e.open,d=e.autoLock,p=e.getContainer,h=(e.debug,e.autoDestroy),v=void 0===h||h,b=e.children,w=o.useState(n),_=(0,r.Z)(w,2),x=_[0],k=_[1],S=x||n;o.useEffect((function(){(v||n)&&k(n)}),[n,v]);var E=o.useState((function(){return y(p)})),C=(0,r.Z)(E,2),O=C[0],T=C[1];o.useEffect((function(){var e=y(p);T(null!=e?e:null)}));var P=function(e,t){var n=o.useState((function(){return(0,a.Z)()?document.createElement("div"):null})),i=(0,r.Z)(n,1)[0],c=o.useRef(!1),d=o.useContext(s),p=o.useState(f),h=(0,r.Z)(p,2),v=h[0],m=h[1],g=d||(c.current?void 0:function(e){m((function(t){return[e].concat((0,l.Z)(t))}))});function y(){i.parentElement||document.body.appendChild(i),c.current=!0}function b(){var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i),c.current=!1}return(0,u.Z)((function(){return e?d?d(y):y():b(),b}),[e]),(0,u.Z)((function(){v.length&&(v.forEach((function(e){return e()})),m(f))}),[v]),[i,g]}(S&&!O),A=(0,r.Z)(P,2),Z=A[0],I=A[1],R=null!=O?O:Z;m(d&&n&&(0,a.Z)()&&(R===Z||R===document.body));var M=null;b&&(0,c.Yr)(b)&&t&&(M=b.ref);var L=(0,c.x1)(M,t);if(!S||!(0,a.Z)()||void 0===O)return null;var N,j=!1===R||("boolean"==typeof N&&(g=N),g),D=b;return t&&(D=o.cloneElement(b,{ref:L})),o.createElement(s.Provider,{value:I},j?D:(0,i.createPortal)(D,R))}))},9623:function(e,t,n){"use strict";n.d(t,{Z:function(){return G}});var r=n(98037),o=n(99459),i=n(58006),a=n(15077),c=n(82187),s=n.n(c),l=n(86983),u=n(42708),f=n(93196),d=n(65985),p=n(23614),h=n(84025),v=n(74191),m=n(50959),g=n(2053),y=n(82570),b=n(97548);function w(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,c=i.content,l=o.x,u=void 0===l?0:l,f=o.y,d=void 0===f?0:f,p=m.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(!1!==n.autoArrow){var v=n.points[0],g=n.points[1],y=v[0],b=v[1],w=g[0],_=g[1];y!==w&&["t","b"].includes(y)?"t"===y?h.top=0:h.bottom=0:h.top=d,b!==_&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=u}return m.createElement("div",{ref:p,className:s()("".concat(t,"-arrow"),a),style:h},c)}function _(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?m.createElement(y.default,(0,g.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return m.createElement("div",{style:{zIndex:r},className:s()("".concat(t,"-mask"),n)})})):null}var x=m.memo((function(e){return e.children}),(function(e,t){return t.cache}));var k=m.forwardRef((function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,c=e.style,u=e.target,f=e.onVisibleChanged,d=e.open,p=e.keepDom,v=e.fresh,k=e.onClick,S=e.mask,E=e.arrow,C=e.arrowPos,O=e.align,T=e.motion,P=e.maskMotion,A=e.forceRender,Z=e.getPopupContainer,I=e.autoDestroy,R=e.portal,M=e.zIndex,L=e.onMouseEnter,N=e.onMouseLeave,j=e.onPointerEnter,D=e.onPointerDownCapture,$=e.ready,F=e.offsetX,z=e.offsetY,B=e.offsetR,H=e.offsetB,q=e.onAlign,U=e.onPrepare,W=e.stretch,G=e.targetWidth,K=e.targetHeight,V="function"==typeof n?n():n,X=d||p,Y=(null==Z?void 0:Z.length)>0,Q=m.useState(!Z||!Y),J=(0,o.Z)(Q,2),ee=J[0],te=J[1];if((0,h.Z)((function(){!ee&&Y&&u&&te(!0)}),[ee,Y,u]),!ee)return null;var ne="auto",re={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if($||!d){var oe,ie=O.points,ae=O.dynamicInset||(null===(oe=O._experimental)||void 0===oe?void 0:oe.dynamicInset),ce=ae&&"r"===ie[0][1],se=ae&&"b"===ie[0][0];ce?(re.right=B,re.left=ne):(re.left=F,re.right=ne),se?(re.bottom=H,re.top=ne):(re.top=z,re.bottom=ne)}var le={};return W&&(W.includes("height")&&K?le.height=K:W.includes("minHeight")&&K&&(le.minHeight=K),W.includes("width")&&G?le.width=G:W.includes("minWidth")&&G&&(le.minWidth=G)),d||(le.pointerEvents="none"),m.createElement(R,{open:A||X,getContainer:Z&&function(){return Z(u)},autoDestroy:I},m.createElement(_,{prefixCls:a,open:d,zIndex:M,mask:S,motion:P}),m.createElement(l.Z,{onResize:q,disabled:!d},(function(e){return m.createElement(y.default,(0,g.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:A,leavedClassName:"".concat(a,"-hidden")},T,{onAppearPrepare:U,onEnterPrepare:U,visible:d,onVisibleChanged:function(e){var t;null==T||null===(t=T.onVisibleChanged)||void 0===t||t.call(T,e),f(e)}}),(function(n,o){var l=n.className,u=n.style,f=s()(a,l,i);return m.createElement("div",{ref:(0,b.sQ)(e,t,o),className:f,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},re),le),u),{},{boxSizing:"border-box",zIndex:M},c),onMouseEnter:L,onMouseLeave:N,onPointerEnter:j,onClick:k,onPointerDownCapture:D},E&&m.createElement(w,{prefixCls:a,arrow:E,arrowPos:C,align:O}),m.createElement(x,{cache:!d&&!v},V))}))})))}));var S=m.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,b.Yr)(n),i=m.useCallback((function(e){(0,b.mH)(t,r?r(e):e)}),[r]),a=(0,b.x1)(i,n.ref);return o?m.cloneElement(n,{ref:a}):n})),E=m.createContext(null);function C(e){return e?Array.isArray(e)?e:[e]:[]}function O(e,t,n,r){return m.useMemo((function(){var o=C(null!=n?n:t),i=C(null!=r?r:t),a=new Set(o),c=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),c.has("hover")&&(c.delete("hover"),c.add("click"))),[a,c]}),[e,t,n,r])}var T=n(73860);function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function A(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function L(e){return M(parseFloat(e),0)}function N(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=I(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,c=t.borderLeftWidth,s=t.borderRightWidth,l=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,h=L(i),v=L(a),m=L(c),g=L(s),y=M(Math.round(l.width/d*1e3)/1e3),b=M(Math.round(l.height/u*1e3)/1e3),w=(d-p-m-g)*y,_=(u-f-h-v)*b,x=h*b,k=v*b,S=m*y,E=g*y,C=0,O=0;if("clip"===r){var T=L(o);C=T*y,O=T*b}var P=l.x+S-C,A=l.y+x-O,Z=P+l.width+2*C-S-E-w,R=A+l.height+2*O-x-k-_;n.left=Math.max(n.left,P),n.top=Math.max(n.top,A),n.right=Math.min(n.right,Z),n.bottom=Math.min(n.bottom,R)}})),n}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function D(e,t){var n=t||[],r=(0,o.Z)(n,2),i=r[0],a=r[1];return[j(e.width,i),j(e.height,a)]}function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function F(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function z(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function B(e,t,n,i,a,c,s){var l=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[i]||{}}),f=(0,o.Z)(l,2),p=f[0],v=f[1],g=m.useRef(0),y=m.useMemo((function(){return t?R(t):[]}),[t]),b=m.useRef({});e||(b.current={});var w=(0,d.Z)((function(){if(t&&n&&e){var l,f,d,p,h,m=t,g=m.ownerDocument,w=I(m).getComputedStyle(m),_=w.width,x=w.height,k=w.position,S=m.style.left,E=m.style.top,C=m.style.right,O=m.style.bottom,P=m.style.overflow,A=(0,r.Z)((0,r.Z)({},a[i]),c),Z=g.createElement("div");if(null===(l=m.parentElement)||void 0===l||l.appendChild(Z),Z.style.left="".concat(m.offsetLeft,"px"),Z.style.top="".concat(m.offsetTop,"px"),Z.style.position=k,Z.style.height="".concat(m.offsetHeight,"px"),Z.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(n))h={x:n[0],y:n[1],width:0,height:0};else{var R,L,j=n.getBoundingClientRect();j.x=null!==(R=j.x)&&void 0!==R?R:j.left,j.y=null!==(L=j.y)&&void 0!==L?L:j.top,h={x:j.x,y:j.y,width:j.width,height:j.height}}var B=m.getBoundingClientRect();B.x=null!==(f=B.x)&&void 0!==f?f:B.left,B.y=null!==(d=B.y)&&void 0!==d?d:B.top;var H=g.documentElement,q=H.clientWidth,U=H.clientHeight,W=H.scrollWidth,G=H.scrollHeight,K=H.scrollTop,V=H.scrollLeft,X=B.height,Y=B.width,Q=h.height,J=h.width,ee={left:0,top:0,right:q,bottom:U},te={left:-V,top:-K,right:W-V,bottom:G-K},ne=A.htmlRegion,re="visible",oe="visibleFirst";"scroll"!==ne&&ne!==oe&&(ne=re);var ie=ne===oe,ae=N(te,y),ce=N(ee,y),se=ne===re?ce:ae,le=ie?ce:se;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var ue=m.getBoundingClientRect();m.style.left=S,m.style.top=E,m.style.right=C,m.style.bottom=O,m.style.overflow=P,null===(p=m.parentElement)||void 0===p||p.removeChild(Z);var fe=M(Math.round(Y/parseFloat(_)*1e3)/1e3),de=M(Math.round(X/parseFloat(x)*1e3)/1e3);if(0===fe||0===de||(0,u.Sh)(n)&&!(0,T.Z)(n))return;var pe=A.offset,he=A.targetOffset,ve=D(B,pe),me=(0,o.Z)(ve,2),ge=me[0],ye=me[1],be=D(h,he),we=(0,o.Z)(be,2),_e=we[0],xe=we[1];h.x-=_e,h.y-=xe;var ke=A.points||[],Se=(0,o.Z)(ke,2),Ee=Se[0],Ce=$(Se[1]),Oe=$(Ee),Te=F(h,Ce),Pe=F(B,Oe),Ae=(0,r.Z)({},A),Ze=Te.x-Pe.x+ge,Ie=Te.y-Pe.y+ye;function Et(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:se,r=B.x+e,o=B.y+t,i=r+Y,a=o+X,c=Math.max(r,n.left),s=Math.max(o,n.top),l=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(l-c)*(u-s))}var Re,Me,Le,Ne,je=Et(Ze,Ie),De=Et(Ze,Ie,ce),$e=F(h,["t","l"]),Fe=F(B,["t","l"]),ze=F(h,["b","r"]),Be=F(B,["b","r"]),He=A.overflow||{},qe=He.adjustX,Ue=He.adjustY,We=He.shiftX,Ge=He.shiftY,Ke=function(e){return"boolean"==typeof e?e:e>=0};function Ct(){Re=B.y+Ie,Me=Re+X,Le=B.x+Ze,Ne=Le+Y}Ct();var Ve=Ke(Ue),Xe=Oe[0]===Ce[0];if(Ve&&"t"===Oe[0]&&(Me>le.bottom||b.current.bt)){var Ye=Ie;Xe?Ye-=X-Q:Ye=$e.y-Be.y-ye;var Qe=Et(Ze,Ye),Je=Et(Ze,Ye,ce);Qe>je||Qe===je&&(!ie||Je>=De)?(b.current.bt=!0,Ie=Ye,ye=-ye,Ae.points=[z(Oe,0),z(Ce,0)]):b.current.bt=!1}if(Ve&&"b"===Oe[0]&&(Reje||tt===je&&(!ie||nt>=De)?(b.current.tb=!0,Ie=et,ye=-ye,Ae.points=[z(Oe,0),z(Ce,0)]):b.current.tb=!1}var rt=Ke(qe),ot=Oe[1]===Ce[1];if(rt&&"l"===Oe[1]&&(Ne>le.right||b.current.rl)){var it=Ze;ot?it-=Y-J:it=$e.x-Be.x-ge;var at=Et(it,Ie),ct=Et(it,Ie,ce);at>je||at===je&&(!ie||ct>=De)?(b.current.rl=!0,Ze=it,ge=-ge,Ae.points=[z(Oe,1),z(Ce,1)]):b.current.rl=!1}if(rt&&"r"===Oe[1]&&(Leje||lt===je&&(!ie||ut>=De)?(b.current.lr=!0,Ze=st,ge=-ge,Ae.points=[z(Oe,1),z(Ce,1)]):b.current.lr=!1}Ct();var ft=!0===We?0:We;"number"==typeof ft&&(Lece.right&&(Ze-=Ne-ce.right-ge,h.x>ce.right-ft&&(Ze+=h.x-ce.right+ft)));var dt=!0===Ge?0:Ge;"number"==typeof dt&&(Rece.bottom&&(Ie-=Me-ce.bottom-ye,h.y>ce.bottom-dt&&(Ie+=h.y-ce.bottom+dt)));var pt=B.x+Ze,ht=pt+Y,vt=B.y+Ie,mt=vt+X,gt=h.x,yt=gt+J,bt=h.y,wt=bt+Q,_t=(Math.max(pt,gt)+Math.min(ht,yt))/2-pt,xt=(Math.max(vt,bt)+Math.min(mt,wt))/2-vt;null==s||s(t,Ae);var kt=ue.right-B.x-(Ze+B.width),St=ue.bottom-B.y-(Ie+B.height);1===fe&&(Ze=Math.round(Ze),kt=Math.round(kt)),1===de&&(Ie=Math.round(Ie),St=Math.round(St)),v({ready:!0,offsetX:Ze/fe,offsetY:Ie/de,offsetR:kt/fe,offsetB:St/de,arrowX:_t/fe,arrowY:xt/de,scaleX:fe,scaleY:de,align:Ae})}})),_=function(){v((function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})}))};return(0,h.Z)(_,[i]),(0,h.Z)((function(){e||_()}),[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,function(){g.current+=1;var e=g.current;Promise.resolve().then((function(){g.current===e&&w()}))}]}var H=n(35047);function q(e,t,n,r,o){(0,h.Z)((function(){if(e&&t&&n){var i=n,a=R(t),c=R(i),s=I(i),l=new Set([s].concat((0,H.Z)(a),(0,H.Z)(c)));function u(){r(),o()}return l.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),s.addEventListener("resize",u,{passive:!0}),r(),function(){l.forEach((function(e){e.removeEventListener("scroll",u),s.removeEventListener("resize",u)}))}}}),[e,t,n])}n(20983);function U(e,t,n,r,o,i,a,c){var s=m.useRef(e);s.current=e;var l=m.useRef(!1);return m.useEffect((function(){if(t&&r&&(!o||i)){var e=function(){l.current=!1},u=function(e){var t;!s.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||l.current||c(!1)},d=I(r);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var p=(0,f.A)(n);return p&&(p.addEventListener("mousedown",u,!0),p.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),p&&(p.removeEventListener("mousedown",u,!0),p.removeEventListener("contextmenu",u,!0))}}}),[t,n,r,o,i]),function(){l.current=!0}}var W=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,t=m.forwardRef((function(t,n){var a=t.prefixCls,c=void 0===a?"rc-trigger-popup":a,g=t.children,y=t.action,b=void 0===y?"hover":y,w=t.showAction,_=t.hideAction,x=t.popupVisible,C=t.defaultPopupVisible,T=t.onPopupVisibleChange,P=t.afterPopupVisibleChange,I=t.mouseEnterDelay,R=t.mouseLeaveDelay,M=void 0===R?.1:R,L=t.focusDelay,N=t.blurDelay,j=t.mask,D=t.maskClosable,$=void 0===D||D,F=t.getPopupContainer,z=t.forceRender,H=t.autoDestroy,G=t.destroyPopupOnHide,K=t.popup,V=t.popupClassName,X=t.popupStyle,Y=t.popupPlacement,Q=t.builtinPlacements,J=void 0===Q?{}:Q,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,re=t.getPopupClassNameFromAlign,oe=t.fresh,ie=t.alignPoint,ae=t.onPopupClick,ce=t.onPopupAlign,se=t.arrow,le=t.popupMotion,ue=t.maskMotion,fe=t.popupTransitionName,de=t.popupAnimation,pe=t.maskTransitionName,he=t.maskAnimation,ve=t.className,me=t.getTriggerDOMNode,ge=(0,i.Z)(t,W),ye=H||G||!1,be=m.useState(!1),we=(0,o.Z)(be,2),_e=we[0],xe=we[1];(0,h.Z)((function(){xe((0,v.Z)())}),[]);var ke=m.useRef({}),Se=m.useContext(E),Ee=m.useMemo((function(){return{registerSubPopup:function(e,t){ke.current[e]=t,null==Se||Se.registerSubPopup(e,t)}}}),[Se]),Ce=(0,p.Z)(),Oe=m.useState(null),Te=(0,o.Z)(Oe,2),Pe=Te[0],Ae=Te[1],Ze=m.useRef(null),Ie=(0,d.Z)((function(e){Ze.current=e,(0,u.Sh)(e)&&Pe!==e&&Ae(e),null==Se||Se.registerSubPopup(Ce,e)})),Re=m.useState(null),Me=(0,o.Z)(Re,2),Le=Me[0],Ne=Me[1],je=m.useRef(null),De=(0,d.Z)((function(e){(0,u.Sh)(e)&&Le!==e&&(Ne(e),je.current=e)})),$e=m.Children.only(g),Fe=(null==$e?void 0:$e.props)||{},ze={},Be=(0,d.Z)((function(e){var t,n,r=Le;return(null==r?void 0:r.contains(e))||(null===(t=(0,f.A)(r))||void 0===t?void 0:t.host)===e||e===r||(null==Pe?void 0:Pe.contains(e))||(null===(n=(0,f.A)(Pe))||void 0===n?void 0:n.host)===e||e===Pe||Object.values(ke.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),He=Z(c,le,de,fe),qe=Z(c,ue,he,pe),Ue=m.useState(C||!1),We=(0,o.Z)(Ue,2),Ge=We[0],Ke=We[1],Ve=null!=x?x:Ge,Xe=(0,d.Z)((function(e){void 0===x&&Ke(e)}));(0,h.Z)((function(){Ke(x||!1)}),[x]);var Ye=m.useRef(Ve);Ye.current=Ve;var Qe=m.useRef([]);Qe.current=[];var Je=(0,d.Z)((function(e){var t;Xe(e),(null!==(t=Qe.current[Qe.current.length-1])&&void 0!==t?t:Ve)!==e&&(Qe.current.push(e),null==T||T(e))})),et=m.useRef(),tt=function(){clearTimeout(et.current)},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tt(),0===t?Je(e):et.current=setTimeout((function(){Je(e)}),1e3*t)};m.useEffect((function(){return tt}),[]);var rt=m.useState(!1),ot=(0,o.Z)(rt,2),it=ot[0],at=ot[1];(0,h.Z)((function(e){e&&!Ve||at(!0)}),[Ve]);var ct=m.useState(null),st=(0,o.Z)(ct,2),lt=st[0],ut=st[1],ft=m.useState(null),dt=(0,o.Z)(ft,2),pt=dt[0],ht=dt[1],vt=function(e){ht([e.clientX,e.clientY])},mt=B(Ve,Pe,ie&&null!==pt?pt:Le,Y,J,ee,ce),gt=(0,o.Z)(mt,11),yt=gt[0],bt=gt[1],wt=gt[2],_t=gt[3],xt=gt[4],kt=gt[5],St=gt[6],Et=gt[7],Ct=gt[8],Ot=gt[9],Tt=gt[10],Pt=O(_e,b,w,_),At=(0,o.Z)(Pt,2),Zt=At[0],It=At[1],Rt=Zt.has("click"),Mt=It.has("click")||It.has("contextMenu"),Lt=(0,d.Z)((function(){it||Tt()}));q(Ve,Le,Pe,Lt,(function(){Ye.current&&ie&&Mt&&nt(!1)})),(0,h.Z)((function(){Lt()}),[pt,Y]),(0,h.Z)((function(){!Ve||null!=J&&J[Y]||Lt()}),[JSON.stringify(ee)]);var Nt=m.useMemo((function(){var e=A(J,c,Ot,ie);return s()(e,null==re?void 0:re(Ot))}),[Ot,re,J,c,ie]);m.useImperativeHandle(n,(function(){return{nativeElement:je.current,popupElement:Ze.current,forceAlign:Lt}}));var jt=m.useState(0),Dt=(0,o.Z)(jt,2),$t=Dt[0],Ft=Dt[1],zt=m.useState(0),Bt=(0,o.Z)(zt,2),Ht=Bt[0],qt=Bt[1],Ut=function(){if(ne&&Le){var e=Le.getBoundingClientRect();Ft(e.width),qt(e.height)}};function Wt(e,t,n,r){ze[e]=function(o){var i;null==r||r(o),nt(t,n);for(var a=arguments.length,c=new Array(a>1?a-1:0),s=1;s1?n-1:0),o=1;o1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(d))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=(0,c.createElement)(n,e);else{if(void 0===r)throw i;a=r}}return(0,c.createElement)(f.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}var h=function(e){return c.createElement(p,{fallbackRender:function(e){var t=e.error;return c.createElement(u.Z,{type:"error"},c.createElement("p",null,c.createElement("strong",null,t.message||"This demo has been crashed.")),t.stack&&c.createElement("p",null,c.createElement("details",{open:!0},c.createElement("summary",null,"Error stack"),c.createElement("pre",null,t.stack))))}},e.children)};function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n',isBinary:!1},c[l]={content:(0,P.AM)(s.react),isBinary:!1};var u=P.EV.applyPlugins({type:r.Ac.modify,key:"modifyCodeSandboxData",initialValue:{files:c},args:e});return(0,T.Z)(u)}(e);o.method="POST",o.target="_blank",o.style.display="none",o.action=(null==t?void 0:t.api)||"https://codesandbox.io/api/v1/sandboxes/define",o.appendChild(i),o.setAttribute("data-demo",(null===(n=e.assets)||void 0===n?void 0:n.id)||""),i.name="parameters",i.value=a,document.body.appendChild(o),o.submit(),o.remove()},R=n(26068),M=n.n(R),L=n(25298),N=n.n(L),j=n(17069),D=n.n(j),$=n(31759),F=n.n($),z=n(48305),B=n.n(z),H="https://stackblitz.com",q=["angular-cli","create-react-app","html","javascript","node","polymer","typescript","vue"],U=["project","search","ports","settings"],W=["light","dark"],G=["editor","preview"],K={clickToLoad:function(e){return X("ctl",e)},devToolsHeight:function(e){return Y("devtoolsheight",e)},forceEmbedLayout:function(e){return X("embed",e)},hideDevTools:function(e){return X("hidedevtools",e)},hideExplorer:function(e){return X("hideExplorer",e)},hideNavigation:function(e){return X("hideNavigation",e)},openFile:function(e){return J("file",e)},showSidebar:function(e){return function(e,t){if("boolean"==typeof t)return"".concat(e,"=").concat(t?"1":"0");return""}("showSidebar",e)},sidebarView:function(e){return Q("sidebarView",e,U)},startScript:function(e){return J("startScript",e)},terminalHeight:function(e){return Y("terminalHeight",e)},theme:function(e){return Q("theme",e,W)},view:function(e){return Q("view",e,G)},zenMode:function(e){return X("zenMode",e)},organization:function(e){return"".concat(J("orgName",null==e?void 0:e.name),"&").concat(J("orgProvider",null==e?void 0:e.provider))},crossOriginIsolated:function(e){return X("corp",e)}};function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.entries(e).map((function(e){var t=B()(e,2),n=t[0],r=t[1];return null!=r&&K.hasOwnProperty(n)?K[n](r):""})).filter(Boolean);return t.length?"?".concat(t.join("&")):""}function X(e,t){return!0===t?"".concat(e,"=1"):""}function Y(e,t){if("number"==typeof t&&!Number.isNaN(t)){var n=Math.min(100,Math.max(0,t));return"".concat(e,"=").concat(encodeURIComponent(Math.round(n)))}return""}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return n.includes(t)?"".concat(e,"=").concat(encodeURIComponent(t)):""}function J(e,t){return(Array.isArray(t)?t:[t]).filter((function(e){return"string"==typeof e&&""!==e.trim()})).map((function(t){return"".concat(e,"=").concat(encodeURIComponent(t))})).join("&")}function ee(){return Math.random().toString(36).slice(2,6)+Math.random().toString(36).slice(2,6)}function te(e,t){return"".concat(re(t)).concat(e).concat(V(t))}function ne(e,t){var n={forceEmbedLayout:!0};return t&&"object"===F()(t)&&Object.assign(n,t),"".concat(re(n)).concat(e).concat(V(n))}function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="string"==typeof e.origin?e.origin:H;return t.replace(/\/$/,"")}function oe(e,t,n){if(!t||!e||!e.parentNode)throw new Error("Invalid Element");e.id&&(t.id=e.id),e.className&&(t.className=e.className),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.hasOwnProperty.call(t,"height")?"".concat(t.height):"".concat(300),r=Object.hasOwnProperty.call(t,"width")?"".concat(t.width):void 0;e.setAttribute("height",n),r?e.setAttribute("width",r):e.setAttribute("style","width:100%;")}(t,n),function(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=null!==(n=null===(r=e.allow)||void 0===r||null===(r=r.split(";"))||void 0===r?void 0:r.map((function(e){return e.trim()})))&&void 0!==n?n:[];o.crossOriginIsolated&&!i.includes("cross-origin-isolated")&&i.push("cross-origin-isolated");i.length>0&&(t.allow=i.join("; "))}(e,t,n),e.replaceWith(t)}function ie(e){if("string"==typeof e){var t=document.getElementById(e);if(!t)throw new Error("Could not find element with id '".concat(e,"'"));return t}if(e instanceof HTMLElement)return e;throw new Error("Invalid element: ".concat(e))}function ae(e){return e&&!1===e.newWindow?"_self":"_blank"}var ce=function(){function e(t){N()(this,e),this.pending={},this.port=t,this.port.onmessage=this.messageListener.bind(this)}return D()(e,[{key:"request",value:function(e){var t=this,n=e.type,r=e.payload;return new Promise((function(e,o){var i=ee();t.pending[i]={resolve:e,reject:o},t.port.postMessage({type:n,payload:M()(M()({},r),{},{__reqid:i})})}))}},{key:"messageListener",value:function(e){var t;if("string"==typeof(null===(t=e.data.payload)||void 0===t?void 0:t.__reqid)){var n=e.data,r=n.type,o=n.payload,i=o.__reqid,a=o.__success,c=o.__error;this.pending[i]&&(a?this.pending[i].resolve(this.cleanResult(o)):this.pending[i].reject(c?"".concat(r,": ").concat(c):r),delete this.pending[i])}}},{key:"cleanResult",value:function(e){var t=M()({},e);return delete t.__reqid,delete t.__success,delete t.__error,Object.keys(t).length?t:null}}]),e}(),se=function(){function e(t,n){var r=this;N()(this,e),this.editor={openFile:function(e){return r._rdc.request({type:"SDK_OPEN_FILE",payload:{path:e}})},setCurrentFile:function(e){return r._rdc.request({type:"SDK_SET_CURRENT_FILE",payload:{path:e}})},setTheme:function(e){return r._rdc.request({type:"SDK_SET_UI_THEME",payload:{theme:e}})},setView:function(e){return r._rdc.request({type:"SDK_SET_UI_VIEW",payload:{view:e}})},showSidebar:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return r._rdc.request({type:"SDK_TOGGLE_SIDEBAR",payload:{visible:e}})}},this.preview={origin:"",getUrl:function(){return r._rdc.request({type:"SDK_GET_PREVIEW_URL",payload:{}}).then((function(e){var t;return null!==(t=null==e?void 0:e.url)&&void 0!==t?t:null}))},setUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";if("string"!=typeof e||!e.startsWith("/"))throw new Error("Invalid argument: expected a path starting with '/', got '".concat(e,"'"));return r._rdc.request({type:"SDK_SET_PREVIEW_URL",payload:{path:e}})}},this._rdc=new ce(t),Object.defineProperty(this.preview,"origin",{value:"string"==typeof n.previewOrigin?n.previewOrigin:null,writable:!1})}return D()(e,[{key:"applyFsDiff",value:function(e){var t=function(e){return null!==e&&"object"===F()(e)};if(!t(e)||!t(e.create))throw new Error("Invalid diff object: expected diff.create to be an object.");if(!Array.isArray(e.destroy))throw new Error("Invalid diff object: expected diff.destroy to be an array.");return this._rdc.request({type:"SDK_APPLY_FS_DIFF",payload:e})}},{key:"getDependencies",value:function(){return this._rdc.request({type:"SDK_GET_DEPS_SNAPSHOT",payload:{}})}},{key:"getFsSnapshot",value:function(){return this._rdc.request({type:"SDK_GET_FS_SNAPSHOT",payload:{}})}}]),e}(),le=[],ue=D()((function e(t){var n=this;N()(this,e),this.id=ee(),this.element=t,this.pending=new Promise((function(e,t){var r=function(t){var r=t.data,o=t.ports;"SDK_INIT_SUCCESS"===(null==r?void 0:r.action)&&r.id===n.id&&(n.vm=new se(o[0],r.payload),e(n.vm),i())},o=function(){var e;null===(e=n.element.contentWindow)||void 0===e||e.postMessage({action:"SDK_INIT",id:n.id},"*")};function i(){window.clearInterval(c),window.removeEventListener("message",r)}window.addEventListener("message",r),o();var a=0,c=window.setInterval((function(){if(n.vm)i();else{if(a>=20)return i(),t("Timeout: Unable to establish a connection with the StackBlitz VM"),void le.forEach((function(e,t){e.id===n.id&&le.splice(t,1)}));a++,o()}}),500)})),le.push(this)}));function fe(e,t){var n=document.createElement("input");return n.type="hidden",n.name=e,n.value=t,n}function de(e){var t=e.template,n=e.title,r=e.description,o=e.dependencies,i=e.files,a=e.settings;if(!q.includes(t)){var c=q.map((function(e){return"'".concat(e,"'")})).join(", ");console.warn("Unsupported project.template: must be one of ".concat(c))}var s=[],l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";s.push(fe(e,"string"==typeof t?t:n))};l("project[title]",n),"string"==typeof r&&r.length>0&&l("project[description]",r),l("project[template]",t,"javascript"),o&&("node"===t?console.warn("Invalid project.dependencies: dependencies must be provided as a 'package.json' file when using the 'node' template."):l("project[dependencies]",JSON.stringify(o))),a&&l("project[settings]",JSON.stringify(a)),Object.entries(i).forEach((function(e){var t=B()(e,2),n=t[0],r=t[1];l("project[files][".concat(function(e){return e.replace(/\[/g,"%5B").replace(/\]/g,"%5D")}(n),"]"),r)}));var u=document.createElement("form");return u.method="POST",u.setAttribute("style","display:none!important;"),u.append.apply(u,s),u}function pe(e){var t,n,r,o;return null!=e&&e.contentWindow?(null!==(o=(n=e)instanceof Element?"element":"id",t=null!==(r=le.find((function(e){return e[o]===n})))&&void 0!==r?r:null)&&void 0!==t?t:new ue(e)).pending:Promise.reject("Provided element is not an iframe.")}var he={connect:pe,embedGithubProject:function(e,t,n){var r=ie(e),o=document.createElement("iframe");return o.src=ne("/github/".concat(t),n),oe(r,o,n),pe(o)},embedProject:function(e,t,n){var r,o=ie(e),i=function(e,t){var n=de(e);return n.action=ne("/run",t),n.id="sb_run","\n\n\n\n ".concat(n.outerHTML,"\n + \ No newline at end of file diff --git a/~demos/editabletext-demo-0/index.html b/~demos/editabletext-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/editabletext-demo-0/index.html +++ b/~demos/editabletext-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/emptycanvas-demo-0/index.html b/~demos/emptycanvas-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/emptycanvas-demo-0/index.html +++ b/~demos/emptycanvas-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/fullscreen-demo-0/index.html b/~demos/fullscreen-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/fullscreen-demo-0/index.html +++ b/~demos/fullscreen-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/icons-demo-en-us-0/index.html b/~demos/icons-demo-en-us-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/icons-demo-en-us-0/index.html +++ b/~demos/icons-demo-en-us-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/icons-demo-zh-cn-0/index.html b/~demos/icons-demo-zh-cn-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/icons-demo-zh-cn-0/index.html +++ b/~demos/icons-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/illustration-demo-0/index.html b/~demos/illustration-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/illustration-demo-0/index.html +++ b/~demos/illustration-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/importfiles-demo-0/index.html b/~demos/importfiles-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/importfiles-demo-0/index.html +++ b/~demos/importfiles-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/layout-demo-0/index.html b/~demos/layout-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/layout-demo-0/index.html +++ b/~demos/layout-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/logo-demo-0/index.html b/~demos/logo-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/logo-demo-0/index.html +++ b/~demos/logo-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-components-src-importor-demo-zh-cn-0/index.html b/~demos/packages-studio-components-src-importor-demo-zh-cn-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-components-src-importor-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-components-src-importor-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-components-src-importor-demo-zh-cn-1/index.html b/~demos/packages-studio-components-src-importor-demo-zh-cn-1/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-components-src-importor-demo-zh-cn-1/index.html +++ b/~demos/packages-studio-components-src-importor-demo-zh-cn-1/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-data-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-data-demo-zh-cn-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-data-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-data-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-demo-zh-cn-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-1/index.html b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-1/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-1/index.html +++ b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-1/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-2/index.html b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-2/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-2/index.html +++ b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-2/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-3/index.html b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-3/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-3/index.html +++ b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-3/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-4/index.html b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-4/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-4/index.html +++ b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-4/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-online-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-online-demo-zh-cn-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-online-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-online-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-performance-1-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-performance-1-demo-zh-cn-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-performance-1-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-performance-1-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-performance-2-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-performance-2-demo-zh-cn-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-performance-2-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-performance-2-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-performance-3-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-performance-3-demo-zh-cn-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-performance-3-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-performance-3-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-quick-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-quick-demo-zh-cn-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-quick-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-quick-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-quick-demo-zh-cn-1/index.html b/~demos/packages-studio-graph-docs-quick-demo-zh-cn-1/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-quick-demo-zh-cn-1/index.html +++ b/~demos/packages-studio-graph-docs-quick-demo-zh-cn-1/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-quick-demo-zh-cn-2/index.html b/~demos/packages-studio-graph-docs-quick-demo-zh-cn-2/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-quick-demo-zh-cn-2/index.html +++ b/~demos/packages-studio-graph-docs-quick-demo-zh-cn-2/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-quick-demo-zh-cn-3/index.html b/~demos/packages-studio-graph-docs-quick-demo-zh-cn-3/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-quick-demo-zh-cn-3/index.html +++ b/~demos/packages-studio-graph-docs-quick-demo-zh-cn-3/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-style-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-style-demo-zh-cn-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-style-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-style-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-style-demo-zh-cn-1/index.html b/~demos/packages-studio-graph-docs-style-demo-zh-cn-1/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-style-demo-zh-cn-1/index.html +++ b/~demos/packages-studio-graph-docs-style-demo-zh-cn-1/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-style-demo-zh-cn-2/index.html b/~demos/packages-studio-graph-docs-style-demo-zh-cn-2/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-style-demo-zh-cn-2/index.html +++ b/~demos/packages-studio-graph-docs-style-demo-zh-cn-2/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-style-demo-zh-cn-3/index.html b/~demos/packages-studio-graph-docs-style-demo-zh-cn-3/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-style-demo-zh-cn-3/index.html +++ b/~demos/packages-studio-graph-docs-style-demo-zh-cn-3/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-style-demo-zh-cn-4/index.html b/~demos/packages-studio-graph-docs-style-demo-zh-cn-4/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-graph-docs-style-demo-zh-cn-4/index.html +++ b/~demos/packages-studio-graph-docs-style-demo-zh-cn-4/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-importor-src-app-demo-0/index.html b/~demos/packages-studio-importor-src-app-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-importor-src-app-demo-0/index.html +++ b/~demos/packages-studio-importor-src-app-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-query-src-app-demo-0/index.html b/~demos/packages-studio-query-src-app-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-query-src-app-demo-0/index.html +++ b/~demos/packages-studio-query-src-app-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-query-src-statement-demo-0/index.html b/~demos/packages-studio-query-src-statement-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/packages-studio-query-src-statement-demo-0/index.html +++ b/~demos/packages-studio-query-src-statement-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/propertieslist-demo-zh-cn-0/index.html b/~demos/propertieslist-demo-zh-cn-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/propertieslist-demo-zh-cn-0/index.html +++ b/~demos/propertieslist-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/propertieslist-demo-zh-cn-1/index.html b/~demos/propertieslist-demo-zh-cn-1/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/propertieslist-demo-zh-cn-1/index.html +++ b/~demos/propertieslist-demo-zh-cn-1/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/propertieslist-demo-zh-cn-2/index.html b/~demos/propertieslist-demo-zh-cn-2/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/propertieslist-demo-zh-cn-2/index.html +++ b/~demos/propertieslist-demo-zh-cn-2/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/propertieslist-demo-zh-cn-3/index.html b/~demos/propertieslist-demo-zh-cn-3/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/propertieslist-demo-zh-cn-3/index.html +++ b/~demos/propertieslist-demo-zh-cn-3/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/provider-demo-0/index.html b/~demos/provider-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/provider-demo-0/index.html +++ b/~demos/provider-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/resizablepanel-demo-0/index.html b/~demos/resizablepanel-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/resizablepanel-demo-0/index.html +++ b/~demos/resizablepanel-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/segmentedtabs-demo-0/index.html b/~demos/segmentedtabs-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/segmentedtabs-demo-0/index.html +++ b/~demos/segmentedtabs-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/sidetabs-demo-0/index.html b/~demos/sidetabs-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/sidetabs-demo-0/index.html +++ b/~demos/sidetabs-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/tablecard-demo-0/index.html b/~demos/tablecard-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/tablecard-demo-0/index.html +++ b/~demos/tablecard-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/toolbar-demo-0/index.html b/~demos/toolbar-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/toolbar-demo-0/index.html +++ b/~demos/toolbar-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/typingtext-demo-0/index.html b/~demos/typingtext-demo-0/index.html index 77c9d216..f8b9691f 100644 --- a/~demos/typingtext-demo-0/index.html +++ b/~demos/typingtext-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file