From a105fe750fb25a30d47d384ba578cf17921ec444 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Sat, 23 Nov 2024 18:46:27 +0800 Subject: [PATCH] Auto Submit --- ...c80638.async.js => 11161.ce8377b1.async.js | 2 +- 13488.163c870f.async.js | 1 + 13488.4e8c9925.async.js | 1 - 22276.2ec24480.async.js | 1 + 25894.5255efc8.async.js | 1 - 27092.611b9add.async.js | 1 + 27092.6a71d170.async.js | 1 - 28647.f9e747fb.async.js | 1 + 28647.ffd62e4e.async.js | 1 - 39433.64c8fbe3.async.js | 1 - 3979.ae112682.async.js | 1 + 41228.08eac97c.async.js | 1 + 41228.588f480d.async.js | 1 - 41910.3ccb486b.async.js | 1 + 41910.fcb790b0.async.js | 1 - 45840.cb5d5fd7.async.js | 1 - 45840.d393aea4.async.js | 1 + 46122.0b35ed46.async.js | 1 + 46949.52f63b52.async.js | 1 - 46949.57350e6a.async.js | 1 + 49969.4cea7ee0.async.js | 1 - ...99dc3e.async.js => 53823.c35195e5.async.js | 2 +- 57058.45b891d8.async.js | 1 - 57930.2daf4412.async.js | 1 + 57930.3ba567ab.async.js | 1 - 59028.15962a7d.async.js | 1 - 59028.ca43e536.async.js | 1 + 59057.0ecb1ac6.async.js | 1 + 59057.8b666ea5.async.js | 1 - 61941.4914b206.async.js | 1 + 63995.5097c0a4.async.js | 1 + 63995.c85680cf.async.js | 1 - ...b12ffc.async.js => 71448.67611f9c.async.js | 2 +- 75573.c728ab94.async.js | 1 + 77372.aea17359.async.js | 1 - 77372.ca9503ae.async.js | 1 + 779.a34affca.async.js | 1 + 79266.c893e1e3.async.js | 1 + 79817.6eb39080.async.js | 1 + 79817.fbe0a68b.async.js | 1 - 80699.38fe1ede.async.js | 1 + 80699.eefe573d.async.js | 1 - 83791.bcaf4e13.async.js | 1 + 87083.21070afc.async.js | 1 - 87083.3642a35b.async.js | 1 + 94545.2a8f5490.async.js | 1 - 94545.79e2e3da.async.js | 1 + 97120.41fa0a95.async.js | 1 - 9951.cd117348.async.js | 1 - 9951.e99f03ff.async.js | 1 + images/fj.svg | 20 ++++++++ images/kc.svg | 20 ++++++++ images/one.svg | 48 ++++++++++++++++++ images/qt.svg | 20 ++++++++ images/sj.svg | 20 ++++++++ images/sp.svg | 20 ++++++++ images/sx.svg | 20 ++++++++ images/zj.svg | 20 ++++++++ images/zsd.svg | 20 ++++++++ images/zy.svg | 20 ++++++++ ...sync.js => monaco-editor.84ba4d1d.async.js | 2 +- ...nHomework__Detail__index.9b6d26d7.async.js | 2 +- ..._Exercise__Answer__index.04f1faa6.async.js | 1 - ..._Exercise__Answer__index.188f670d.async.js | 1 + ..._Exercise__Export__index.87779c73.async.js | 1 - ..._Exercise__Export__index.acc55f9f.async.js | 1 + ...se__ImitateAnswer__index.3fcdc670.async.js | 1 - ...se__ImitateAnswer__index.49dc52b7.async.js | 1 + ...e__ImitateAnswer__index.ca9c0cb6.chunk.css | 1 - ...e__ImitateAnswer__index.f0b828fe.chunk.css | 1 + ..._Exercise__Review__index.b0953e02.async.js | 1 + ..._Exercise__Review__index.f5433fe8.async.js | 1 - ...__Lists__Exercise__index.3dc363cc.async.js | 2 +- ...ts__GroupHomework__index.6156cbd4.async.js | 2 +- ...ts__Polls__Detail__index.3df95e9c.async.js | 1 - ...ts__Polls__Detail__index.8e3a0c79.async.js | 1 + ...y__Random__Detail__index.204f4b1b.async.js | 1 - ...y__Random__Detail__index.6716d888.async.js | 1 + ...ngeFromProblemSet__index.13eeceb0.async.js | 1 - ...ngeFromProblemSet__index.df128f87.async.js | 1 + p__Paperlibrary__index.204b9665.async.js | 1 + p__Paperlibrary__index.569a503d.async.js | 1 - p__Problemset__index.ec355898.async.js | 1 + p__Problemset__index.fea14273.async.js | 1 - p__Shixuns__Edit__index.41ea1c84.async.js | 1 + p__Shixuns__Edit__index.eae59a19.async.js | 1 - p__Shixuns__Exports__index.0d28d963.async.js | 1 - p__Shixuns__Exports__index.21de30d2.async.js | 1 + ...owledgegraph__Detail__id.6c3020cd.async.js | 1 + ...wledgegraph__Detail__id.78256a6f.chunk.css | 1 - ...owledgegraph__Detail__id.8e166dc8.async.js | 1 - ...wledgegraph__Detail__id.e43f8279.chunk.css | 1 + ...nc.js => p__tasks__index.a826dcd0.async.js | 2 +- static/iconfont.1575ef87.woff | Bin 312616 -> 0 bytes static/iconfont.17a925d8.woff | Bin 0 -> 313060 bytes static/iconfont.34ab300d.svg | 1 + ...ont.67ae3978.ttf => iconfont.37921726.ttf} | Bin 514952 -> 515652 bytes static/iconfont.69eb55b3.woff2 | Bin 0 -> 252312 bytes static/iconfont.9d8db4bf.svg | 1 - static/iconfont.b4b1de1b.woff2 | Bin 252252 -> 0 bytes umi.cdf89a45.css => umi.6412473a.css | 2 +- umi.b59bc575.js | 1 + umi.fdb36fac.js | 1 - 103 files changed, 278 insertions(+), 47 deletions(-) rename 11161.58c80638.async.js => 11161.ce8377b1.async.js (87%) create mode 100644 13488.163c870f.async.js delete mode 100644 13488.4e8c9925.async.js create mode 100644 22276.2ec24480.async.js delete mode 100644 25894.5255efc8.async.js create mode 100644 27092.611b9add.async.js delete mode 100644 27092.6a71d170.async.js create mode 100644 28647.f9e747fb.async.js delete mode 100644 28647.ffd62e4e.async.js delete mode 100644 39433.64c8fbe3.async.js create mode 100644 3979.ae112682.async.js create mode 100644 41228.08eac97c.async.js delete mode 100644 41228.588f480d.async.js create mode 100644 41910.3ccb486b.async.js delete mode 100644 41910.fcb790b0.async.js delete mode 100644 45840.cb5d5fd7.async.js create mode 100644 45840.d393aea4.async.js create mode 100644 46122.0b35ed46.async.js delete mode 100644 46949.52f63b52.async.js create mode 100644 46949.57350e6a.async.js delete mode 100644 49969.4cea7ee0.async.js rename 53823.0199dc3e.async.js => 53823.c35195e5.async.js (92%) delete mode 100644 57058.45b891d8.async.js create mode 100644 57930.2daf4412.async.js delete mode 100644 57930.3ba567ab.async.js delete mode 100644 59028.15962a7d.async.js create mode 100644 59028.ca43e536.async.js create mode 100644 59057.0ecb1ac6.async.js delete mode 100644 59057.8b666ea5.async.js create mode 100644 61941.4914b206.async.js create mode 100644 63995.5097c0a4.async.js delete mode 100644 63995.c85680cf.async.js rename 71448.c2b12ffc.async.js => 71448.67611f9c.async.js (99%) create mode 100644 75573.c728ab94.async.js delete mode 100644 77372.aea17359.async.js create mode 100644 77372.ca9503ae.async.js create mode 100644 779.a34affca.async.js create mode 100644 79266.c893e1e3.async.js create mode 100644 79817.6eb39080.async.js delete mode 100644 79817.fbe0a68b.async.js create mode 100644 80699.38fe1ede.async.js delete mode 100644 80699.eefe573d.async.js create mode 100644 83791.bcaf4e13.async.js delete mode 100644 87083.21070afc.async.js create mode 100644 87083.3642a35b.async.js delete mode 100644 94545.2a8f5490.async.js create mode 100644 94545.79e2e3da.async.js delete mode 100644 97120.41fa0a95.async.js delete mode 100644 9951.cd117348.async.js create mode 100644 9951.e99f03ff.async.js create mode 100644 images/fj.svg create mode 100644 images/kc.svg create mode 100644 images/one.svg create mode 100644 images/qt.svg create mode 100644 images/sj.svg create mode 100644 images/sp.svg create mode 100644 images/sx.svg create mode 100644 images/zj.svg create mode 100644 images/zsd.svg create mode 100644 images/zy.svg rename monaco-editor.82bdb639.async.js => monaco-editor.84ba4d1d.async.js (99%) rename p__Classrooms__Lists__CommonHomework__Detail__index.134c94ec.async.js => p__Classrooms__Lists__CommonHomework__Detail__index.9b6d26d7.async.js (99%) delete mode 100644 p__Classrooms__Lists__Exercise__Answer__index.04f1faa6.async.js create mode 100644 p__Classrooms__Lists__Exercise__Answer__index.188f670d.async.js delete mode 100644 p__Classrooms__Lists__Exercise__Export__index.87779c73.async.js create mode 100644 p__Classrooms__Lists__Exercise__Export__index.acc55f9f.async.js delete mode 100644 p__Classrooms__Lists__Exercise__ImitateAnswer__index.3fcdc670.async.js create mode 100644 p__Classrooms__Lists__Exercise__ImitateAnswer__index.49dc52b7.async.js delete mode 100644 p__Classrooms__Lists__Exercise__ImitateAnswer__index.ca9c0cb6.chunk.css create mode 100644 p__Classrooms__Lists__Exercise__ImitateAnswer__index.f0b828fe.chunk.css create mode 100644 p__Classrooms__Lists__Exercise__Review__index.b0953e02.async.js delete mode 100644 p__Classrooms__Lists__Exercise__Review__index.f5433fe8.async.js rename p__Classrooms__Lists__Exercise__index.b7702b37.async.js => p__Classrooms__Lists__Exercise__index.3dc363cc.async.js (82%) rename p__Classrooms__Lists__GroupHomework__index.a3669763.async.js => p__Classrooms__Lists__GroupHomework__index.6156cbd4.async.js (83%) delete mode 100644 p__Classrooms__Lists__Polls__Detail__index.3df95e9c.async.js create mode 100644 p__Classrooms__Lists__Polls__Detail__index.8e3a0c79.async.js delete mode 100644 p__Paperlibrary__Random__Detail__index.204f4b1b.async.js create mode 100644 p__Paperlibrary__Random__Detail__index.6716d888.async.js delete mode 100644 p__Paperlibrary__Random__ExchangeFromProblemSet__index.13eeceb0.async.js create mode 100644 p__Paperlibrary__Random__ExchangeFromProblemSet__index.df128f87.async.js create mode 100644 p__Paperlibrary__index.204b9665.async.js delete mode 100644 p__Paperlibrary__index.569a503d.async.js create mode 100644 p__Problemset__index.ec355898.async.js delete mode 100644 p__Problemset__index.fea14273.async.js create mode 100644 p__Shixuns__Edit__index.41ea1c84.async.js delete mode 100644 p__Shixuns__Edit__index.eae59a19.async.js delete mode 100644 p__Shixuns__Exports__index.0d28d963.async.js create mode 100644 p__Shixuns__Exports__index.21de30d2.async.js create mode 100644 p__knowledgegraph__Detail__id.6c3020cd.async.js delete mode 100644 p__knowledgegraph__Detail__id.78256a6f.chunk.css delete mode 100644 p__knowledgegraph__Detail__id.8e166dc8.async.js create mode 100644 p__knowledgegraph__Detail__id.e43f8279.chunk.css rename p__tasks__index.8197866f.async.js => p__tasks__index.a826dcd0.async.js (83%) delete mode 100644 static/iconfont.1575ef87.woff create mode 100644 static/iconfont.17a925d8.woff create mode 100644 static/iconfont.34ab300d.svg rename static/{iconfont.67ae3978.ttf => iconfont.37921726.ttf} (92%) create mode 100644 static/iconfont.69eb55b3.woff2 delete mode 100644 static/iconfont.9d8db4bf.svg delete mode 100644 static/iconfont.b4b1de1b.woff2 rename umi.cdf89a45.css => umi.6412473a.css (62%) create mode 100644 umi.b59bc575.js delete mode 100644 umi.fdb36fac.js diff --git a/11161.58c80638.async.js b/11161.ce8377b1.async.js similarity index 87% rename from 11161.58c80638.async.js rename to 11161.ce8377b1.async.js index 40d8e44fb4..4c83b74067 100644 --- a/11161.58c80638.async.js +++ b/11161.ce8377b1.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[11161],{70481:function(e,t,r){r.d(t,{wT:function(){return te}});var n=r(80813),o=function(){function e(){this.handlers={}}return e.prototype.eventNames=function(){var e,t=(null===(e=Object.getOwnPropertySymbols)||void 0===e?void 0:e.call(Object,this.handlers))||[];return Object.keys(this.handlers).concat(t)},e.prototype.rawListeners=function(e){var t=this.handlers[e];return t?t.map((function(e){return e.raw})):[]},e.prototype.listeners=function(e){var t=this.handlers[e];return t?t.map((function(e){return e.wrap})):[]},e.prototype.hasListener=function(e,t){return this.rawListeners(e).some((function(e){return e===t}))},e.prototype._on=function(e,t,r,n,o){void 0===n&&(n=null),void 0===o&&(o=1);var c={raw:t,wrap:r,context:n};if(this.handlers[e]){var i=1===o?"push":"unshift";this.handlers[e][i](c)}else this.handlers[e]=[c];return this},e.prototype.prependListener=function(e,t,r){return this._on(e,t,t,r,0)},e.prototype.on=function(e,t,r){return this._on(e,t,t,r)},e.prototype._wrapOnce=function(e,t,r){var n=this;void 0===r&&(r=null);var o=function(){for(var c=[],i=0;i0)&&(n.forEach((function(e){e.wrap.apply(e.context,t)})),!0)},e}(),c={},i=function(){function e(e){void 0===e&&(e="default"),this.scope=e,c[this.scope]||(c[this.scope]={}),this.data=c[this.scope]}return e.prototype.getItem=function(e){return e in this.data?this.data[e]:null},e.prototype.setItem=function(e,t){this.data[e]=t},e.prototype.removeItem=function(e){delete this.data[e]},e.prototype.clear=function(){c[this.scope]={},this.data=c[this.scope]},e}();function a(e){try{var t="object"==typeof e&&null!==e&&!!e.setItem&&!!e.getItem&&!!e.removeItem;if(t){var r=Math.random().toString(16).substring(2,8)+(new Date).getTime();if(e.setItem(r,"1"),"1"!==e.getItem(r))return!1;e.removeItem(r)}return t}catch(t){return console.error("[cache2] ".concat(e," is not supported. The default memory cache will be used.")),!1}}var l=function(){function e(e,t){void 0===t&&(t={});var r=!!e&&a(e);this.options=(0,n.pi)({needParsed:r,prefix:""},t),this.storage=r?e:new i(this.options.memoryScope)}return e.prototype.getKey=function(e){return this.options.prefix+e},e.prototype.get=function(e){var t=this.storage.getItem(this.getKey(e));return this.options.needParsed?function(e,t){try{return JSON.parse(e,t)}catch(t){return e}}(t,this.options.reviver):t},e.prototype.set=function(e,t){this.storage.setItem(this.getKey(e),this.options.needParsed?function(e,t){return JSON.stringify(e,t)}(t,this.options.replacer):t)},e.prototype.del=function(e){this.storage.removeItem(this.getKey(e))},e.prototype.clear=function(){"function"==typeof this.storage.clear&&this.storage.clear()},e}(),s="default",u=function(e){function t(t,r){var o,c=e.call(this)||this,i=s;return"string"==typeof t?i=t||s:"object"==typeof t&&(o=t),o||"object"!=typeof r||(o=r),c.options=(0,n.pi)({max:-1,stdTTL:0,maxStrategy:"limited",checkperiod:0,prefix:"cache2_"},o),c.storage=new l(c.options.storage,(0,n.pi)({memoryScope:i},c.options)),c.cacheKey=i,c.startCheckperiod(),c}return(0,n.ZT)(t,e),t.prototype._check=function(e,t){var r=!0;return 0!==t.t&&t.t0?r+n:0,n:r}},t.prototype._isLimited=function(e){return this.options.max>-1&&e>=this.options.max},t.prototype._getReplaceKey=function(e,t){var r=e[0];return e.forEach((function(e){(t[e].t0&&this.setCacheValues(r),n},t.prototype.clear=function(){this.storage.del(this.cacheKey)},t.prototype.keys=function(){var e=this,t=this.cacheValues;return Object.keys(t).filter((function(r){return e._check(r,t[r])}))},t.prototype.has=function(e){var t=this.cacheValues[e];return!(!t||!this._check(e,t))},t.prototype.take=function(e){var t,r=this.cacheValues[e];return r&&this._check(e,r)&&(t=r.v,this.del(e)),t},t.prototype.ttl=function(e,t){var r=this.cacheValues,n=r[e];return!(!n||!this._check(e,n))&&(r[e]=this._wrap(n.v,t),!0)},t.prototype.getTtl=function(e){var t=this.cacheValues,r=t[e];if(r&&this._check(e,r))return t[e].t},t.prototype.getLastModified=function(e){var t=this.cacheValues,r=t[e];if(r&&this._check(e,r))return t[e].n},t.prototype.startCheckperiod=function(){var e=this;this.keys(),this.options.checkperiod>0&&(clearTimeout(this._checkTimeout),this._checkTimeout=setTimeout((function(){e.startCheckperiod()}),this.options.checkperiod))},t.prototype.stopCheckperiod=function(){clearTimeout(this._checkTimeout)},t}(o),d="undefined",f="object",p=Object.prototype,h=p.toString,m=(p.hasOwnProperty,p.propertyIsEnumerable,Object.getOwnPropertySymbols,Object.getPrototypeOf,Object.keys,Function.prototype.toString,typeof Symbol!==d&&Symbol.prototype,Array.prototype.slice,Math.min),v=Math.max,g=Math.random,b=Math.floor,y=Math.ceil,w=(Math.abs,Number.isFinite,Number.isInteger,Number.isSafeInteger,typeof globalThis===f&&globalThis,typeof r.g===f&&r.g,typeof self===f&&self,Number.MAX_SAFE_INTEGER,Number.MIN_SAFE_INTEGER,["Function","AsyncFunction","GeneratorFunction","Proxy"].map((function(e){return"[object "+e+"]"})),0),x="_"+g().toString(36).substring(2,4);function k(e){return void 0===e&&(e=x),""+e+ ++w}function E(e){return h.call(e)}var T=function(){function e(e){this.promiseCache={},this.cache=new u(k("uh_async_memo"),e)}return e.prototype.run=function(e,t,r){var o,c=this;if(!t||"string"!=typeof(o=t)&&"[object String]"!==E(o))return e();var i=(0,n.pi)({persisted:!0},r);if(i.persisted){var a=this.cache.get(t);if(a)return Promise.resolve(a)}return this.promiseCache[t]||(this.promiseCache[t]=e().then((function(e){return delete c.promiseCache[t],c.cache.set(t,e,i.ttl),e})).catch((function(e){return delete c.promiseCache[t],Promise.reject(e)}))),this.promiseCache[t]},e}(),z=T,I=typeof Blob!==d;function j(e){return!!(I&&e instanceof Blob)||"[object Blob]"===E(e)}var O,S="undefined"!=typeof URL,L=Object.keys,N=(Object.values,S?URL.createObjectURL:(O="",function(){return O})),R=S?URL.revokeObjectURL:function(){};var P=[200,304];function M(e,t){return new Promise((function(r,o){var c,i,a,l,s,u,d,f,p,h,m,v,g,b,y,w,x,k,E,T,z,I,O,S,N,R;j(e)?r(e):(c=e,i=(0,n.pi)({responseType:"blob"},t),a=i||{},l=a.method,s=void 0===l?"get":l,u=a.data,d=void 0===u?null:u,f=a.timeout,p=a.headers,h=a.withCredentials,m=void 0!==h&&h,v=a.async,g=void 0===v||v,b=a.user,y=void 0===b?null:b,w=a.password,x=void 0===w?null:w,k=a.responseType,E=a.onReadyStateChange,T=a.onLoadStart,z=a.onProgress,I=a.onAbort,O=a.onTimeout,S=a.onError,N=a.onLoad,R=a.onLoadEnd,new Promise((function(e,t){var r=new XMLHttpRequest;r.open(s.toLowerCase(),c,g,y,x),E&&(r.onreadystatechange=E),"number"==typeof f&&f>0&&(r.timeout=f),r.withCredentials=m,k&&(r.responseType=k),"object"==typeof p&&L(p).map((function(e){r.setRequestHeader(e,p[e])}));var n,o=function(e){return function(n){t(n),null==e||e.call(r,n)}},i={loadstart:T,progress:z,abort:o(I),timeout:o(O),error:o(S),load:(n=N,function(t){e(t),null==n||n.call(r,t)}),loadend:R};L(i).map((function(e){var t=i[e];t&&r.addEventListener(e,t)})),r.send(d)}))).then((function(t){var n=t.target.status;if(-1!==P.indexOf(n))r(t.target.response);else{var c=new Error("The file does not support get requests, responseStatus ".concat(n,", '").concat(e,"'."));console.error(c),o(c)}})).catch((function(e){console.error(new Error("Failed to request file. ".concat(e))),o(e)}))}))}function _(e,t){return M(e,t).then((function(e){return function(e){return new Promise((function(t,r){var n=j(e),o=n?N(e):e,c=new Image;n||(c.crossOrigin="anonymous"),c.onload=function(){t(c)},c.onerror=function(t){n&&R(o),console.error("[loadImage] The image load failed, '".concat(e,"'.")),r(t)},c.src=o}))}(e).then((function(t){return{blob:e,image:t}}))}))}function C(e){return"function"==typeof e||function(e){return null!==e&&"object"==typeof e}(e)}var B=/^0b[01]+$/i,D=/^0o[0-7]+$/i,W=/^[-+]0x[0-9a-f]+$/i;function F(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||"[object Symbol]"===E(e)}(e))return NaN;if(C(e)&&(e=Number(e)),"string"!=typeof e)return 0===e?e:+e;e=e.trim();var t=B.test(e);return t||D.test(e)?parseInt(e.slice(2),t?2:8):W.test(e)?NaN:+e}function H(e){return e?(e=F(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function U(e,t){void 0===e&&(e=0),void 0===t&&(t=1),e=H(e),t=H(t);var r=y(m(e,t)||0),n=b(v(e,t)||0);if(r>n){var o=r;r=n,n=o}return b(r+g()*(n-r+1))}var V,A=Math.PI;!function(e){e[e.None=0]="None",e[e.Outer=1]="Outer",e[e.Inner=2]="Inner"}(V||(V={}));var q=[V.None,V.Outer,V.Inner];function X(e){return e[U(0,e.length-1)]}function K(e){var t={top:X(q),right:X(q),bottom:X(q),left:X(q)},r=Object.keys(t),n=["top","bottom"],o=["left","right"];if(t.top===V.Outer&&t.bottom===V.Outer?t[X(n)]=V.Inner:t.top!==V.Outer&&t.bottom!==V.Outer&&(t[X(n)]=V.Outer),t.left===V.Outer&&t.right===V.Outer?t[X(o)]=V.Inner:t.left!==V.Outer&&t.right!==V.Outer&&(t[X(o)]=V.Outer),e){var c=[],i=[];r.forEach((function(e){t[e]===V.Inner?c.push(e):t[e]===V.None&&i.push(e)})),2===e?c.forEach((function(e){return t[e]=V.None})):3===e?0===c.length?t[X(i)]=V.Inner:2===c.length&&(t[X(c)]=V.None):4==e&&i.forEach((function(e){return t[e]=V.Inner}))}return t}function Y(e,t){void 0===t&&(t={});var r=t.x,n=void 0===r?0:r,o=t.y,c=void 0===o?0:o,i=t.w,a=void 0===i?60:i,l=t.h,s=void 0===l?60:l,u=t.needClosePath,d=void 0===u||u,f=t.points,p=t.margin,h=void 0===p?0:p;h=h<=0?0:h,"number"!=typeof f&&f||(f=K(f));var m=.15*(Math.min(a,s)-2*h),v=Math.hypot(m,m)/2,g=m+v,b={x:n+h,y:c+h,w:a-g-2*h,h:s-g-2*h},y=b.w/2,w=b.h/2;f.left===V.Outer&&(b.x+=g),f.top===V.Outer&&(b.y+=g),e.beginPath(),e.lineWidth=2,e.moveTo(b.x,b.y),f.top!==V.None&&(e.lineTo(b.x+y-v,b.y),f.top===V.Inner?e.arc(b.x+y,b.y+v,m,1.25*A,1.75*A,!0):e.arc(b.x+y,b.y-v,m,.75*A,.25*A)),e.lineTo(b.x+b.w,b.y),f.right!==V.None&&(e.lineTo(b.x+b.w,b.y+w-v),f.right===V.Inner?e.arc(b.x+b.w-v,b.y+w,m,1.75*A,.25*A,!0):e.arc(b.x+b.w+v,b.y+w,m,1.25*A,.75*A)),e.lineTo(b.x+b.w,b.y+b.h),f.bottom!==V.None&&(e.lineTo(b.x+y+v,b.y+b.h),f.bottom===V.Inner?e.arc(b.x+y,b.y+b.h-v,m,.25*A,.75*A,!0):e.arc(b.x+y,b.y+b.h+v,m,1.75*A,1.25*A)),e.lineTo(b.x,b.y+b.h),f.left!==V.None&&(e.lineTo(b.x,b.y+w+v),f.left===V.Inner?e.arc(b.x+v,b.y+w,m,.75*A,1.25*A,!0):e.arc(b.x-v,b.y+w,m,.25*A,1.75*A)),e.lineTo(b.x,b.y),e.stroke(),d&&e.closePath()}function G(e,t,r,n){return new Promise((function(o){t?e.toBlob((function(t){o(t?URL.createObjectURL(t):e.toDataURL(r,n))}),r,n):o(e.toDataURL(r,n))}))}var J=new z({max:5,maxStrategy:"replaced"});J.cache.on("del",(function(e,t){try{t.image.src&&URL.revokeObjectURL(t.image.src)}catch(e){}}));var Z=new WeakMap,$="image/jpeg",Q="image/png",ee=[];function te(e,t){void 0===t&&(t={});var r=t.borderWidth,n=void 0===r?2:r,o=t.borderColor,c=void 0===o?"rgba(255,255,255,0.7)":o,i=t.fillColor,a=void 0===i?"rgba(255,255,255,0.7)":i,l=t.points,s=t.width,u=void 0===s?60:s,d=t.height,f=void 0===d?60:d,p=t.x,h=t.y,m=t.margin,v=void 0===m?2:m,g=t.equalHeight,b=void 0===g||g,y=t.imageWidth,w=t.imageHeight,x=t.bgWidth,E=t.bgHeight,T=t.bgOffset,z=void 0===T?[0,0]:T,I=t.bgImageType,j=void 0===I?$:I,O=t.quality,S=void 0===O?.8:O,L=t.format,N=void 0===L?"dataURL":L,R=t.cacheImage,P=void 0===R||R,M=t.autoRevokePreviousBlobUrl,B=void 0===M||M,D=t.ajaxOptions;return new Promise((function(t,r){var o,i=document.createElement("canvas"),s=document.createElement("canvas"),d=i.getContext("2d"),m=s.getContext("2d"),g=P?C(o=e)?(Z.get(o)||Z.set(o,k("cp")),Z.get(o)):String(o):void 0;J.run((function(){return _(e,D)}),g).then((function(e){var o=e.image;y&&(o.width=y),w&&(o.height=w);var g="number"==typeof x&&x>0?x>u?x:u:o.width,k="number"==typeof E&&E>0?E>f?E:f:o.height;i.width=g,i.height=k;var T=g-u,I=k-f,O=void 0===p?U(u,T):p||0,L=void 0===h?U(0,I):h||0;O<0?O=0:O>T&&(O=T),L<0?L=0:L>I&&(L=I);var R="number"!=typeof l&&l?l:K(l),P="function"==typeof z?z(o.width,o.height):z;d.strokeStyle=c,d.lineWidth=n,d.fillStyle=a,Y(d,{x:O,y:L,w:u,h:f,points:R,margin:v}),d.fillStyle=a,d.fill(),d.globalCompositeOperation="destination-over",d.drawImage(o,P[0],P[1],o.width,o.height),s.width=g,s.height=k,m.strokeStyle=c,m.lineWidth=n,Y(m,{x:O,y:L,w:u,h:f,points:R,margin:v}),m.globalCompositeOperation="destination-over",m.clip(),m.drawImage(o,P[0],P[1],o.width,o.height);var M=m.getImageData(O,L,u,f);m.clearRect(0,0,g,k),s.width=u,s.height=b?k:f,m.putImageData(M,0,b?L:0);var _="blob"===N,C=G(s,_,Q,S),D=G(i,_,j,S);Promise.all([C,D]).then((function(e){var r=e[0],n=e[1];B&&(ee.length&&(ee.forEach((function(e){URL.revokeObjectURL(e)})),ee.length=0),_&&ee.push(n,r)),t({puzzleUrl:r,bgUrl:n,x:O,y:b?0:L})})).catch(r)})).catch(r)}))}},90526:function(e,t,r){r.d(t,{ZP:function(){return R}});var n=r(80813),o=r(92310),c=r.n(o),i=r(59301),a=function(){var e=(0,i.useRef)(!1);return(0,i.useEffect)((function(){return e.current=!1,function(){e.current=!0}}),[]),e};var l=function(e){var t=a(),r=(0,n.CR)((0,i.useState)(e),2),o=r[0],c=r[1];return[o,(0,i.useCallback)((function(e){t.current||c(e)}),[])]};var s=function(e){var t=(0,i.useRef)(e);return t.current=e,t},u=function(e){(0,i.useEffect)((function(){e()}),[])};!function(e,t){void 0===t&&(t={});var r=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("@-webkit-keyframes slider-icon-animate_spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes slider-icon-animate_spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.rc-slider-captcha-icon {\n display: inline-block;\n display: inline-flex;\n align-items: center;\n justify-content: center;\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.rc-slider-captcha-icon > svg {\n line-height: 1;\n}\n.rc-slider-captcha-icon-spin {\n -webkit-animation: slider-icon-animate_spin 1s infinite linear;\n animation: slider-icon-animate_spin 1s infinite linear;\n}\n.rc-slider-captcha-button {\n display: inline-block;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 40px;\n height: 100%;\n padding: 5px 0;\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n font-size: 22px;\n line-height: 1;\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);\n cursor: -webkit-grab;\n cursor: grab;\n transition-timing-function: linear;\n transition-duration: 0.2s;\n transition-property: background-color, color;\n touch-action: none;\n}\n.rc-slider-captcha-button-active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-verify {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-pc:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-active,\n.rc-slider-captcha-button:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.rc-slider-captcha-button-verify,\n.rc-slider-captcha-button-verify:active {\n cursor: wait;\n}\n.rc-slider-captcha-button-error {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-error:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-error:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-success {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-success:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-success:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-disabled {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-button-disabled:hover {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-button-disabled:active {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-control {\n position: relative;\n box-sizing: border-box;\n width: 100%;\n height: 42px;\n height: var(--rcsc-control-height, 42px);\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n border: 1px solid #e4e7eb;\n border: 1px solid var(--rcsc-border-color, #e4e7eb);\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-button {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-indicator {\n position: absolute;\n top: -1px;\n bottom: -1px;\n left: -1px;\n display: none;\n box-sizing: border-box;\n width: 0;\n background-color: #d1e9fe;\n background-color: var(--rcsc-primary-light, #d1e9fe);\n border: 1px solid #1991fa;\n border: 1px solid var(--rcsc-primary, #1991fa);\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-tips {\n position: relative;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n color: #45494c;\n color: var(--rcsc-text-color, #45494c);\n font-size: 14px;\n line-height: 20px;\n text-align: center;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.rc-slider-captcha-control-moving .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-verify .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-error .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-success .rc-slider-captcha-control-indicator {\n display: block;\n}\n.rc-slider-captcha-control-error .rc-slider-captcha-control-indicator {\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-success .rc-slider-captcha-control-indicator {\n background-color: #d2f4ef;\n background-color: var(--rcsc-success-light, #d2f4ef);\n border-color: #52ccba;\n border-color: var(--rcsc-success, #52ccba);\n}\n.rc-slider-captcha-control-errors {\n padding-left: 0;\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-load-failed {\n padding-left: 0;\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-button,\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-button,\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-indicator {\n display: none;\n}\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-tips {\n color: #f57a7a;\n color: var(--rcsc-error, #f57a7a);\n cursor: pointer;\n}\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-tips {\n color: #f57a7a;\n color: var(--rcsc-error, #f57a7a);\n cursor: pointer;\n}\n.rc-slider-captcha-jigsaw {\n position: relative;\n background-color: #f7f9fa;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.rc-slider-captcha-jigsaw img {\n position: absolute;\n}\n.rc-slider-captcha-jigsaw-bg {\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n.rc-slider-captcha-jigsaw-puzzle {\n width: 60px;\n height: 100%;\n touch-action: none;\n}\n.rc-slider-captcha-jigsaw-puzzle:hover {\n cursor: -webkit-grab;\n cursor: grab;\n}\n.rc-slider-captcha-jigsaw-puzzle:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.rc-slider-captcha-jigsaw-refresh {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 2;\n padding: 5px;\n color: #fff;\n font-size: 22px;\n line-height: 0;\n cursor: pointer;\n opacity: 0.75;\n transition: opacity 0.2s linear;\n}\n.rc-slider-captcha-jigsaw-refresh:hover {\n opacity: 1;\n}\n.rc-slider-captcha-jigsaw-refresh-disabled {\n cursor: not-allowed;\n}\n.rc-slider-captcha-jigsaw-refresh-disabled:hover {\n opacity: 0.75;\n}\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle {\n pointer-events: none;\n}\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle:hover,\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle:active {\n cursor: default;\n}\n.rc-slider-captcha-loading {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n padding: 15px;\n color: #45494c;\n color: var(--rcsc-text-color, #45494c);\n font-size: 14px;\n text-align: center;\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n}\n.rc-slider-captcha-loading-icon {\n font-size: 30px;\n}\n.rc-slider-captcha-loading-text {\n margin-top: 5px;\n}\n.rc-slider-captcha-load-failed {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n color: #ccc;\n font-size: 85px;\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n}\n.rc-slider-captcha {\n position: relative;\n}\n.rc-slider-captcha > * {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.rc-slider-captcha-panel {\n padding-bottom: 15px;\n}\n.rc-slider-captcha-panel-inner {\n overflow: hidden;\n border-radius: 2px;\n border-radius: var(--rcsc-panel-border-radius, 2px);\n}\n.rc-slider-captcha-float .rc-slider-captcha-panel {\n position: absolute;\n left: 0;\n display: none;\n opacity: 0;\n transition-timing-function: ease-out;\n transition-duration: 0.3s;\n transition-property: top, bottom, opacity;\n}\n.rc-slider-captcha-float-top .rc-slider-captcha-panel {\n bottom: 22px;\n}\n.rc-slider-captcha-float-bottom .rc-slider-captcha-panel {\n top: 22px;\n padding: 15px 0 0;\n}\n");var d="rc-slider-captcha";function f(e){var t=0,r=0;return"number"==typeof e.clientX&&"number"==typeof e.clientY?(t=e.clientX,r=e.clientY):e.touches&&e.touches[0]?(t=e.touches[0].clientX,r=e.touches[0].clientY):e.changedTouches&&e.changedTouches[0]&&(t=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY),{clientX:t,clientY:r}}function p(e,t){if(void 0===t&&(t={}),e)for(var r in t)e.style[r]=t[r]}var h="object"==typeof window&&window&&"object"==typeof document&&document&&window.document===document&&!!document.addEventListener&&"ontouchstart"in window;function m(e,t){return"number"==typeof e&&!Number.isNaN(e)&&"number"==typeof t&&t>0?Number(e.toFixed(t)):e}var v="".concat(d,"-button"),g=i.forwardRef((function(e,t){var r,o=e.className,a=e.disabled,l=e.active,s=e.success,u=e.error,d=e.verify,f=(0,n._T)(e,["className","disabled","active","success","error","verify"]);return i.createElement("span",(0,n.pi)({className:c()(v,o,(r={},r["".concat(v,"-disabled")]=a,r["".concat(v,"-active")]=l,r["".concat(v,"-verify")]=d,r["".concat(v,"-success")]=s,r["".concat(v,"-error")]=u,r["".concat(v,"-pc")]=!h,r)),ref:t},f))}));g.displayName="SliderButton";var b,y="".concat(d,"-icon"),w=function(e){var t,r=e.className,o=e.spin,a=(0,n._T)(e,["className","spin"]);return i.createElement("span",(0,n.pi)({className:c()(y,(t={},t["".concat(y,"-spin")]=o,t),r)},a))},x={arrowRight:i.createElement((function(e){return i.createElement("svg",(0,n.pi)({viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),i.createElement("path",{d:"M116.9408 561.4592m0-40.96l0 0q0-40.96 40.96-40.96l573.44 0q40.96 0 40.96 40.96l0 0q0 40.96-40.96 40.96l-573.44 0q-40.96 0-40.96-40.96Z"}),i.createElement("path",{d:"M769.82272 519.43424l-203.22304-203.22304a40.96 40.96 0 1 1 57.91744-57.91744l231.71072 231.71072a40.96 40.96 0 0 1 0.45056 58.44992L624.9472 780.12416a40.96 40.96 0 0 1-57.93792-57.91744l202.79296-202.79296z"}))}),null),check:i.createElement((function(e){return i.createElement("svg",(0,n.pi)({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),i.createElement("path",{d:"M864.554667 268.501333a42.666667 42.666667 0 0 1 0 60.330667L412.032 781.397333a42.453333 42.453333 0 0 1-22.613333 11.818667l-5.034667 0.597333H379.306667a42.496 42.496 0 0 1-27.648-12.416l-211.2-211.2a42.666667 42.666667 0 1 1 60.330666-60.330666l180.992 180.992 422.4-422.4a42.666667 42.666667 0 0 1 60.330667 0z"}))}),null),loading:i.createElement((function(e){return i.createElement("svg",(0,n.pi)({viewBox:"0 0 120 120",width:"1em",height:"1em"},e),i.createElement("defs",null,i.createElement("line",{id:"l",x1:"60",x2:"60",y1:"7",y2:"27",stroke:"currentColor",strokeWidth:"11",strokeLinecap:"round"})),i.createElement("g",null,i.createElement("use",{xlinkHref:"#l",opacity:".27"}),i.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(30 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(60 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(90 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(120 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(150 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".37",transform:"rotate(180 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".46",transform:"rotate(210 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".56",transform:"rotate(240 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".66",transform:"rotate(270 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".75",transform:"rotate(300 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".85",transform:"rotate(330 60,60)"})))}),null),refresh:i.createElement((function(e){return i.createElement("svg",(0,n.pi)({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),i.createElement("path",{d:"M866.133333 573.013333a42.666667 42.666667 0 0 0-53.333333 27.733334A304.64 304.64 0 0 1 519.68 810.666667 302.933333 302.933333 0 0 1 213.333333 512a302.933333 302.933333 0 0 1 306.346667-298.666667 309.76 309.76 0 0 1 198.4 71.253334l-92.586667-15.36a42.666667 42.666667 0 0 0-49.066666 35.413333 42.666667 42.666667 0 0 0 35.413333 49.066667l180.906667 29.866666h7.253333a42.666667 42.666667 0 0 0 14.506667-2.56 14.08 14.08 0 0 0 4.266666-2.56 33.28 33.28 0 0 0 8.533334-4.693333l3.84-4.693333c0-2.133333 3.84-3.84 5.546666-6.4s0-4.266667 2.133334-5.973334a57.173333 57.173333 0 0 0 2.986666-7.68l32-170.666666a42.666667 42.666667 0 0 0-85.333333-16.213334l-11.52 61.866667A392.96 392.96 0 0 0 519.68 128 388.266667 388.266667 0 0 0 128 512a388.266667 388.266667 0 0 0 391.68 384A389.12 389.12 0 0 0 896 626.346667a42.666667 42.666667 0 0 0-29.866667-53.333334z"}))}),null),x:i.createElement((function(e){return i.createElement("svg",(0,n.pi)({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),i.createElement("path",{d:"M572.96896 524.6976l217.23136 217.25184a40.96 40.96 0 1 1-57.93792 57.91744L515.072 582.63552l-212.3776 212.3776a40.96 40.96 0 1 1-57.9584-57.91744l212.39808-212.3776-217.21088-217.23136a40.96 40.96 0 1 1 57.91744-57.91744l217.23136 217.21088L737.0752 244.736a40.96 40.96 0 1 1 57.93792 57.91744L572.96896 524.71808z"}))}),null),imageFill:i.createElement((function(e){return i.createElement("svg",(0,n.pi)({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16"},e),i.createElement("path",{d:"M.002 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-12a2 2 0 0 1-2-2zm1 9v1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062zm5-6.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"}))}),null)},k=function(e){var t=e.type,r=(0,n._T)(e,["type"]);return i.createElement(w,(0,n.pi)({},r),x[t])};!function(e){e[e.Default=1]="Default",e[e.Loading=2]="Loading",e[e.Moving=3]="Moving",e[e.Verify=4]="Verify",e[e.Success=5]="Success",e[e.Error=6]="Error",e[e.LoadFailed=7]="LoadFailed"}(b||(b={}));var E,T="".concat(d,"-control"),z=function(e){var t,r=e.status,o=void 0===r?b.Default:r,a=e.isLimitErrors,l=e.tipText,s=e.tipIcon,u=e.sliderButtonProps,d=e.indicatorProps,f=e.controlRef,h=(0,n._T)(e,["status","isLimitErrors","tipText","tipIcon","sliderButtonProps","indicatorProps","controlRef"]),m=(0,i.useRef)(null),v=(0,i.useRef)(null),y=(0,i.useRef)(null),w=(0,i.useRef)({}),x=(0,i.useMemo)((function(){return(0,n.pi)({default:"向右拖动滑块填充拼图",loading:"加载中...",moving:null,verifying:null,success:null,error:null,errors:i.createElement(i.Fragment,null,i.createElement(k,{type:"x",style:{fontSize:20}})," 失败过多,点击重试"),loadFailed:"加载失败,点击重试"},l)}),[l]),E=(0,i.useMemo)((function(){return(0,n.pi)({default:i.createElement(k,{type:"arrowRight"}),loading:i.createElement(k,{type:"loading",spin:!0}),error:i.createElement(k,{type:"x"}),success:i.createElement(k,{type:"check"})},s)}),[s]),z=(0,i.useMemo)((function(){var e;return(e={})[b.Default]=[x.default,E.default],e[b.Loading]=[x.loading,E.default],e[b.Moving]=[x.moving,E.default],e[b.Verify]=[x.verifying,E.loading],e[b.Error]=[x.error,E.error],e[b.Success]=[x.success,E.success],e[b.LoadFailed]=[x.loadFailed,E.default],e}),[x,E]),I=function(e){var t;return(e||"number"!=typeof w.current.sliderButtonWidth)&&(w.current.sliderButtonWidth=(null===(t=v.current)||void 0===t?void 0:t.clientWidth)||40),w.current.sliderButtonWidth},j=function(e){if(e||"number"!=typeof w.current.indicatorBorderWidth)if(y.current){var t=window.getComputedStyle(y.current);w.current.indicatorBorderWidth=parseInt(t.borderLeftWidth)+parseInt(t.borderRightWidth)}else w.current.indicatorBorderWidth=2;return w.current.indicatorBorderWidth},O=function(e){var t;return!e&&w.current.rect||m.current&&(w.current.rect=null===(t=m.current)||void 0===t?void 0:t.getBoundingClientRect()),w.current.rect};(0,i.useImperativeHandle)(f,(function(){return{getSliderButtonWidth:I,getIndicatorBorderWidth:j,getRect:O,updateLeft:function(e){var t=I(),r=j();p(v.current,{left:e+"px"}),p(y.current,{width:e+t+r+"px"})}}}),[]);var S=o===b.Loading,L=o===b.Moving,N=o===b.Verify,R=o===b.Success,P=o===b.Error,M=o===b.LoadFailed,_=a?x.errors:z[o][0];return i.createElement("div",(0,n.pi)({},h,{className:c()(T,(t={},t["".concat(T,"-loading")]=S,t["".concat(T,"-moving")]=L,t["".concat(T,"-verify")]=N,t["".concat(T,"-success")]=R,t["".concat(T,"-error")]=P,t["".concat(T,"-errors")]=a,t["".concat(T,"-load-failed")]=M,t),h.className),ref:m}),i.createElement("div",(0,n.pi)({},d,{className:c()("".concat(T,"-indicator"),null==d?void 0:d.className),ref:y})),i.createElement(g,(0,n.pi)({},u,{className:c()("".concat(T,"-button"),null==u?void 0:u.className),disabled:S,active:L,verify:N,success:R,error:P,ref:v}),z[o][1]),i.createElement("div",{className:c()("".concat(T,"-tips")),style:_?{}:{display:"none"}},_))},I="".concat(d,"-loading"),j=function(e){var t=e.icon,r=void 0===t?i.createElement(k,{type:"loading",spin:!0}):t,o=e.text,a=void 0===o?"加载中...":o,l=e.className,s=(0,n._T)(e,["icon","text","className"]);return i.createElement("div",(0,n.pi)({className:c()(I,l)},s),i.createElement("div",{className:"".concat(I,"-icon")},r),i.createElement("div",{className:"".concat(I,"-text")},a))},O="".concat(d,"-jigsaw"),S={bgSize:{width:320,height:160},puzzleSize:{width:60,left:0},loadFailedIcon:i.createElement(k,{type:"imageFill"}),refreshIcon:i.createElement(k,{type:"refresh"})},L=function(e){var t,r,o=e.status,a=e.bgSize,l=void 0===a?S.bgSize:a,s=e.puzzleSize,u=void 0===s?S.puzzleSize:s,f=e.bgUrl,h=e.puzzleUrl,m=e.bgImgProps,v=e.puzzleImgProps,g=e.jigsawRef,y=e.loadingBoxProps,w=e.loadFailedIcon,x=void 0===w?S.loadFailedIcon:w,k=e.showRefreshIcon,E=void 0===k||k,T=e.refreshIcon,z=void 0===T?S.refreshIcon:T,I=e.disabledRefresh,L=e.onRefresh,N=e.style,R=e.className,P=e.children,M=(0,n._T)(e,["status","bgSize","puzzleSize","bgUrl","puzzleUrl","bgImgProps","puzzleImgProps","jigsawRef","loadingBoxProps","loadFailedIcon","showRefreshIcon","refreshIcon","disabledRefresh","onRefresh","style","className","children"]),_=(0,i.useRef)(null);if((0,i.useImperativeHandle)(g,(function(){return{updateLeft:function(e){p(_.current,{left:e+"px"})}}})),o===b.Loading)return i.createElement(j,(0,n.pi)({},y,{style:(0,n.pi)((0,n.pi)({},null==y?void 0:y.style),l)}));if(o===b.LoadFailed||!f||!h)return i.createElement("div",{className:"".concat(d,"-load-failed"),style:l},x);var C=o===b.Verify||o===b.Error||o===b.Success;return i.createElement("div",(0,n.pi)({className:c()(O,(t={},t["".concat(O,"-stop")]=C,t),R),style:(0,n.pi)((0,n.pi)({},N),l)},M),i.createElement("img",(0,n.pi)({src:f,alt:""},m,{className:c()("".concat(O,"-bg"),null==m?void 0:m.className),style:(0,n.pi)((0,n.pi)({},null==m?void 0:m.style),l)})),i.createElement("img",(0,n.pi)({src:h,alt:""},v,{className:c()("".concat(O,"-puzzle"),null==v?void 0:v.className),style:(0,n.pi)((0,n.pi)({},null==v?void 0:v.style),u),ref:_})),E&&o!==b.Success&&z&&i.createElement("div",{className:c()("".concat(O,"-refresh"),(r={},r["".concat(O,"-refresh-disabled")]=o===b.Verify||I,r)),onClick:function(){o===b.Verify||I||null==L||L()}},z),P)};!function(e){e.Puzzle="puzzle",e.Button="button"}(E||(E={}));var N=h?{start:"touchstart",move:"touchmove",end:"touchend"}:{start:"mousedown",move:"mousemove",end:"mouseup"},R=function(e){var t,r=e.mode,o=void 0===r?"embed":r,a=e.limitErrorCount,v=void 0===a?0:a,g=e.tipText,y=e.tipIcon,w=e.refreshIcon,x=e.bgSize,k=e.puzzleSize,T=e.request,I=e.autoRequest,j=void 0===I||I,O=e.onVerify,R=e.autoRefreshOnError,P=void 0===R||R,M=e.actionRef,_=e.showRefreshIcon,C=void 0===_||_,B=e.jigsawContent,D=e.errorHoldDuration,W=void 0===D?500:D,F=e.loadingDelay,H=void 0===F?0:F,U=e.placement,V=void 0===U?"top":U,A=e.loadingBoxProps,q=e.sliderButtonProps,X=e.precision,K=void 0===X?7:X,Y=e.className,G=e.style,J=e.styles,Z=l(),$=Z[0],Q=Z[1],ee=l(b.Default),te=ee[0],re=ee[1],ne=s(te),oe=(0,i.useRef)(null),ce=(0,i.useRef)(null),ie=(0,i.useRef)(null),ae=(0,i.useMemo)((function(){return"float"===o||"slider"===o?o:"embed"}),[o]),le=(0,i.useMemo)((function(){return void 0!==w?w:void 0!==(null==y?void 0:y.refresh)?y.refresh:void 0}),[w,y]),se=(0,i.useMemo)((function(){return(0,n.pi)((0,n.pi)({},S.bgSize),x)}),[x]),ue=(0,i.useMemo)((function(){return(0,n.pi)((0,n.pi)({},S.puzzleSize),k)}),[k]),de=(0,i.useMemo)((function(){return"bottom"===V?"top":"bottom"}),[V]),fe=(0,i.useRef)({isPressed:!1,trail:[],errorCount:0,startInfo:{x:0,y:0,timestamp:0},currentTargetType:E.Button,floatTransitionTimer:null,floatDelayShowTimer:null,floatDelayHideTimer:null,refreshTimer:null,loadingTimer:null,sliderButtonWidth:40,indicatorBorderWidth:2,ratio:1,buttonMaxDistance:0,puzzleMaxDistance:0}),pe="slider"===ae,he="number"==typeof H&&H>0,me=te===b.Error&&v>0&&fe.current.errorCount>=v,ve=function(){var e;return(null===(e=oe.current)||void 0===e?void 0:e.getRect(!0).height)||42},ge=function(){return(0,n.mG)(void 0,void 0,void 0,(function(){var e;return(0,n.Jh)(this,(function(t){switch(t.label){case 0:if(pe)return[2];if(!T)return[3,4];he?fe.current.loadingTimer=setTimeout((function(){re(b.Loading)}),H):re(b.Loading),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,T()];case 2:return e=t.sent(),he&&clearTimeout(fe.current.loadingTimer),Q(e),re(b.Default),[3,4];case 3:return t.sent(),he&&clearTimeout(fe.current.loadingTimer),re(b.LoadFailed),[3,4];case 4:return[2]}}))}))},be=function(e){void 0===e&&(e=300),"float"===ae&&ne.current!==b.Success&&(clearTimeout(fe.current.floatTransitionTimer),clearTimeout(fe.current.floatDelayHideTimer),clearTimeout(fe.current.floatDelayShowTimer),fe.current.floatDelayShowTimer=setTimeout((function(){var e,t;p(ie.current,{display:"block"}),null==(t=ie.current)||t.scrollTop;var r=ve()+"px";p(ie.current,((e={})[de]=r,e.opacity="1",e))}),e))},ye=function(e){void 0===e&&(e=300),"float"===ae&&(clearTimeout(fe.current.floatTransitionTimer),clearTimeout(fe.current.floatDelayHideTimer),clearTimeout(fe.current.floatDelayShowTimer),fe.current.floatDelayHideTimer=setTimeout((function(){var e,t=ve()/2+"px";p(ie.current,((e={})[de]=t,e.opacity="0",e)),fe.current.floatTransitionTimer=setTimeout((function(){p(ie.current,{display:"none"})}),300)}),e))},we=function(e){var t;pe||null===(t=ce.current)||void 0===t||t.updateLeft(e)},xe=function(){var e;fe.current.isPressed=!1,re(b.Default),null===(e=oe.current)||void 0===e||e.updateLeft(0),we(ue.left)},ke=function(e){void 0===e&&(e=!1),e&&(fe.current.errorCount=0),clearTimeout(fe.current.refreshTimer),ne.current!==b.Loading&&(xe(),ge())},Ee=function(e){fe.current.currentTargetType=E.Puzzle,ze(e)},Te=function(e){fe.current.currentTargetType=E.Button,ze(e)},ze=function(e){if(ne.current===b.Default){e.preventDefault();var t=f(e),r=t.clientX,n=t.clientY;fe.current.startInfo={x:r,y:n,timestamp:(new Date).getTime()},fe.current.trail=[[r,n]],oe.current&&(fe.current.sliderButtonWidth=oe.current.getSliderButtonWidth(!0),fe.current.indicatorBorderWidth=oe.current.getIndicatorBorderWidth(!0)),fe.current.buttonMaxDistance=se.width-fe.current.sliderButtonWidth-fe.current.indicatorBorderWidth,fe.current.puzzleMaxDistance=se.width-ue.width-ue.left,fe.current.ratio=fe.current.puzzleMaxDistance/fe.current.buttonMaxDistance,fe.current.currentTargetType===E.Puzzle&&(fe.current.ratio=1/fe.current.ratio),h&&be(0),fe.current.isPressed=!0,document.addEventListener(N.move,Ie),document.addEventListener(N.end,je),document.addEventListener("touchcancel",je)}},Ie=function(e){var t;if(fe.current.isPressed){e.preventDefault();var r=f(e),n=r.clientX,o=r.clientY,c=n-fe.current.startInfo.x;fe.current.trail.push([n,o]),ne.current!==b.Moving&&c>0&&re(b.Moving);var i=c,a=c;fe.current.currentTargetType===E.Puzzle?(i=(c=Math.max(0,Math.min(c,fe.current.puzzleMaxDistance)))+ue.left,a=c*fe.current.ratio):(a=c=Math.max(0,Math.min(c,fe.current.buttonMaxDistance)),i=c*fe.current.ratio+ue.left),null===(t=oe.current)||void 0===t||t.updateLeft(a),we(i)}},je=function(e){if(document.removeEventListener(N.move,Ie),document.removeEventListener(N.end,je),document.removeEventListener("touchcancel",je),fe.current.isPressed){if(ne.current!==b.Moving)return fe.current.isPressed=!1,void(h&&ye());if(O){fe.current.isPressed=!1,re(b.Verify);var t=(new Date).getTime(),r=f(e),n=r.clientX,o=r.clientY-fe.current.startInfo.y,c=n-fe.current.startInfo.x,i=c;fe.current.currentTargetType===E.Puzzle?i=(c=Math.max(0,Math.min(c,fe.current.puzzleMaxDistance)))*fe.current.ratio:(i=c=Math.max(0,Math.min(c,fe.current.buttonMaxDistance)),c*=fe.current.ratio),O({x:m(c,K),y:m(o,K),sliderOffsetX:m(i,K),duration:t-fe.current.startInfo.timestamp,trail:fe.current.trail,targetType:fe.current.currentTargetType,errorCount:fe.current.errorCount}).then((function(){fe.current.errorCount=0,re(b.Success),ye()})).catch((function(){fe.current.errorCount+=1,re(b.Error),h&&ye(),(v<=0||fe.current.errorCount0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0)&&!(n=c.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=c.return)&&r.call(c)}finally{if(o)throw o.error}}return i}Object.create;"function"==typeof SuppressedError&&SuppressedError}}]); \ No newline at end of file +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[11161],{70481:function(e,t,r){r.d(t,{wT:function(){return te}});var n=r(80813),o=function(){function e(){this.handlers={}}return e.prototype.eventNames=function(){var e,t=(null===(e=Object.getOwnPropertySymbols)||void 0===e?void 0:e.call(Object,this.handlers))||[];return Object.keys(this.handlers).concat(t)},e.prototype.rawListeners=function(e){var t=this.handlers[e];return t?t.map((function(e){return e.raw})):[]},e.prototype.listeners=function(e){var t=this.handlers[e];return t?t.map((function(e){return e.wrap})):[]},e.prototype.hasListener=function(e,t){return this.rawListeners(e).some((function(e){return e===t}))},e.prototype._on=function(e,t,r,n,o){void 0===n&&(n=null),void 0===o&&(o=1);var c={raw:t,wrap:r,context:n};if(this.handlers[e]){var i=1===o?"push":"unshift";this.handlers[e][i](c)}else this.handlers[e]=[c];return this},e.prototype.prependListener=function(e,t,r){return this._on(e,t,t,r,0)},e.prototype.on=function(e,t,r){return this._on(e,t,t,r)},e.prototype._wrapOnce=function(e,t,r){var n=this;void 0===r&&(r=null);var o=function(){for(var c=[],i=0;i0)&&(n.forEach((function(e){e.wrap.apply(e.context,t)})),!0)},e}(),c={},i=function(){function e(e){void 0===e&&(e="default"),this.scope=e,c[this.scope]||(c[this.scope]={}),this.data=c[this.scope]}return e.prototype.getItem=function(e){return e in this.data?this.data[e]:null},e.prototype.setItem=function(e,t){this.data[e]=t},e.prototype.removeItem=function(e){delete this.data[e]},e.prototype.clear=function(){c[this.scope]={},this.data=c[this.scope]},e}();function a(e){try{var t="object"==typeof e&&null!==e&&!!e.setItem&&!!e.getItem&&!!e.removeItem;if(t){var r=Math.random().toString(16).substring(2,8)+(new Date).getTime();if(e.setItem(r,"1"),"1"!==e.getItem(r))return!1;e.removeItem(r)}return t}catch(t){return console.error("[cache2] ".concat(e," is not supported. The default memory cache will be used.")),!1}}var l=function(){function e(e,t){void 0===t&&(t={});var r=!!e&&a(e);this.options=(0,n.pi)({needParsed:r,prefix:""},t),this.storage=r?e:new i(this.options.memoryScope)}return e.prototype.getKey=function(e){return this.options.prefix+e},e.prototype.get=function(e){var t=this.storage.getItem(this.getKey(e));return this.options.needParsed?function(e,t){try{return JSON.parse(e,t)}catch(t){return e}}(t,this.options.reviver):t},e.prototype.set=function(e,t){this.storage.setItem(this.getKey(e),this.options.needParsed?function(e,t){return JSON.stringify(e,t)}(t,this.options.replacer):t)},e.prototype.del=function(e){this.storage.removeItem(this.getKey(e))},e.prototype.clear=function(){"function"==typeof this.storage.clear&&this.storage.clear()},e}(),s="default",u=function(e){function t(t,r){var o,c=e.call(this)||this,i=s;return"string"==typeof t?i=t||s:"object"==typeof t&&(o=t),o||"object"!=typeof r||(o=r),c.options=(0,n.pi)({max:-1,stdTTL:0,maxStrategy:"limited",checkperiod:0,prefix:"cache2_"},o),c.storage=new l(c.options.storage,(0,n.pi)({memoryScope:i},c.options)),c.cacheKey=i,c.startCheckperiod(),c}return(0,n.ZT)(t,e),t.prototype._check=function(e,t){var r=!0;return 0!==t.t&&t.t0?r+n:0,n:r}},t.prototype._isLimited=function(e){return this.options.max>-1&&e>=this.options.max},t.prototype._getReplaceKey=function(e,t){var r=e[0];return e.forEach((function(e){(t[e].t0&&this.setCacheValues(r),n},t.prototype.clear=function(){this.storage.del(this.cacheKey)},t.prototype.keys=function(){var e=this,t=this.cacheValues;return Object.keys(t).filter((function(r){return e._check(r,t[r])}))},t.prototype.has=function(e){var t=this.cacheValues[e];return!(!t||!this._check(e,t))},t.prototype.take=function(e){var t,r=this.cacheValues[e];return r&&this._check(e,r)&&(t=r.v,this.del(e)),t},t.prototype.ttl=function(e,t){var r=this.cacheValues,n=r[e];return!(!n||!this._check(e,n))&&(r[e]=this._wrap(n.v,t),!0)},t.prototype.getTtl=function(e){var t=this.cacheValues,r=t[e];if(r&&this._check(e,r))return t[e].t},t.prototype.getLastModified=function(e){var t=this.cacheValues,r=t[e];if(r&&this._check(e,r))return t[e].n},t.prototype.startCheckperiod=function(){var e=this;this.keys(),this.options.checkperiod>0&&(clearTimeout(this._checkTimeout),this._checkTimeout=setTimeout((function(){e.startCheckperiod()}),this.options.checkperiod))},t.prototype.stopCheckperiod=function(){clearTimeout(this._checkTimeout)},t}(o),d="undefined",f="object",p=Object.prototype,h=p.toString,m=(p.hasOwnProperty,p.propertyIsEnumerable,Object.getOwnPropertySymbols,Object.getPrototypeOf,Object.keys,Function.prototype.toString,typeof Symbol!==d&&Symbol.prototype,Array.prototype.slice,Math.min),v=Math.max,g=Math.random,b=Math.floor,y=Math.ceil,w=(Math.abs,Number.isFinite,Number.isInteger,Number.isSafeInteger,typeof globalThis===f&&globalThis,typeof r.g===f&&r.g,typeof self===f&&self,Number.MAX_SAFE_INTEGER,Number.MIN_SAFE_INTEGER,["Function","AsyncFunction","GeneratorFunction","Proxy"].map((function(e){return"[object "+e+"]"})),0),x="_"+g().toString(36).substring(2,4);function k(e){return void 0===e&&(e=x),""+e+ ++w}function E(e){return h.call(e)}var T=function(){function e(e){this.promiseCache={},this.cache=new u(k("uh_async_memo"),e)}return e.prototype.run=function(e,t,r){var o,c=this;if(!t||"string"!=typeof(o=t)&&"[object String]"!==E(o))return e();var i=(0,n.pi)({persisted:!0},r);if(i.persisted){var a=this.cache.get(t);if(a)return Promise.resolve(a)}return this.promiseCache[t]||(this.promiseCache[t]=e().then((function(e){return delete c.promiseCache[t],c.cache.set(t,e,i.ttl),e})).catch((function(e){return delete c.promiseCache[t],Promise.reject(e)}))),this.promiseCache[t]},e}(),z=T,I=typeof Blob!==d;function j(e){return!!(I&&e instanceof Blob)||"[object Blob]"===E(e)}var S,O="undefined"!=typeof URL,L=Object.keys,N=(Object.values,O?URL.createObjectURL:(S="",function(){return S})),R=O?URL.revokeObjectURL:function(){};var P=[200,304];function M(e,t){return new Promise((function(r,o){var c,i,a,l,s,u,d,f,p,h,m,v,g,b,y,w,x,k,E,T,z,I,S,O,N,R;j(e)?r(e):(c=e,i=(0,n.pi)({responseType:"blob"},t),a=i||{},l=a.method,s=void 0===l?"get":l,u=a.data,d=void 0===u?null:u,f=a.timeout,p=a.headers,h=a.withCredentials,m=void 0!==h&&h,v=a.async,g=void 0===v||v,b=a.user,y=void 0===b?null:b,w=a.password,x=void 0===w?null:w,k=a.responseType,E=a.onReadyStateChange,T=a.onLoadStart,z=a.onProgress,I=a.onAbort,S=a.onTimeout,O=a.onError,N=a.onLoad,R=a.onLoadEnd,new Promise((function(e,t){var r=new XMLHttpRequest;r.open(s.toLowerCase(),c,g,y,x),E&&(r.onreadystatechange=E),"number"==typeof f&&f>0&&(r.timeout=f),r.withCredentials=m,k&&(r.responseType=k),"object"==typeof p&&L(p).map((function(e){r.setRequestHeader(e,p[e])}));var n,o=function(e){return function(n){t(n),null==e||e.call(r,n)}},i={loadstart:T,progress:z,abort:o(I),timeout:o(S),error:o(O),load:(n=N,function(t){e(t),null==n||n.call(r,t)}),loadend:R};L(i).map((function(e){var t=i[e];t&&r.addEventListener(e,t)})),r.send(d)}))).then((function(t){var n=t.target.status;if(-1!==P.indexOf(n))r(t.target.response);else{var c=new Error("The file does not support get requests, responseStatus ".concat(n,", '").concat(e,"'."));console.error(c),o(c)}})).catch((function(e){console.error(new Error("Failed to request file. ".concat(e))),o(e)}))}))}function _(e,t){return M(e,t).then((function(e){return function(e){return new Promise((function(t,r){var n=j(e),o=n?N(e):e,c=new Image;n||(c.crossOrigin="anonymous"),c.onload=function(){t(c)},c.onerror=function(t){n&&R(o),console.error("[loadImage] The image load failed, '".concat(e,"'.")),r(t)},c.src=o}))}(e).then((function(t){return{blob:e,image:t}}))}))}function C(e){return"function"==typeof e||function(e){return null!==e&&"object"==typeof e}(e)}var B=/^0b[01]+$/i,D=/^0o[0-7]+$/i,W=/^[-+]0x[0-9a-f]+$/i;function F(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||"[object Symbol]"===E(e)}(e))return NaN;if(C(e)&&(e=Number(e)),"string"!=typeof e)return 0===e?e:+e;e=e.trim();var t=B.test(e);return t||D.test(e)?parseInt(e.slice(2),t?2:8):W.test(e)?NaN:+e}function H(e){return e?(e=F(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function U(e,t){void 0===e&&(e=0),void 0===t&&(t=1),e=H(e),t=H(t);var r=y(m(e,t)||0),n=b(v(e,t)||0);if(r>n){var o=r;r=n,n=o}return b(r+g()*(n-r+1))}var V,A=Math.PI;!function(e){e[e.None=0]="None",e[e.Outer=1]="Outer",e[e.Inner=2]="Inner"}(V||(V={}));var q=[V.None,V.Outer,V.Inner];function X(e){return e[U(0,e.length-1)]}function K(e){var t={top:X(q),right:X(q),bottom:X(q),left:X(q)},r=Object.keys(t),n=["top","bottom"],o=["left","right"];if(t.top===V.Outer&&t.bottom===V.Outer?t[X(n)]=V.Inner:t.top!==V.Outer&&t.bottom!==V.Outer&&(t[X(n)]=V.Outer),t.left===V.Outer&&t.right===V.Outer?t[X(o)]=V.Inner:t.left!==V.Outer&&t.right!==V.Outer&&(t[X(o)]=V.Outer),e){var c=[],i=[];r.forEach((function(e){t[e]===V.Inner?c.push(e):t[e]===V.None&&i.push(e)})),2===e?c.forEach((function(e){return t[e]=V.None})):3===e?0===c.length?t[X(i)]=V.Inner:2===c.length&&(t[X(c)]=V.None):4==e&&i.forEach((function(e){return t[e]=V.Inner}))}return t}function Y(e,t){void 0===t&&(t={});var r=t.x,n=void 0===r?0:r,o=t.y,c=void 0===o?0:o,i=t.w,a=void 0===i?60:i,l=t.h,s=void 0===l?60:l,u=t.needClosePath,d=void 0===u||u,f=t.points,p=t.margin,h=void 0===p?0:p;h=h<=0?0:h,"number"!=typeof f&&f||(f=K(f));var m=.15*(Math.min(a,s)-2*h),v=Math.hypot(m,m)/2,g=m+v,b={x:n+h,y:c+h,w:a-g-2*h,h:s-g-2*h},y=b.w/2,w=b.h/2;f.left===V.Outer&&(b.x+=g),f.top===V.Outer&&(b.y+=g),e.beginPath(),e.lineWidth=2,e.moveTo(b.x,b.y),f.top!==V.None&&(e.lineTo(b.x+y-v,b.y),f.top===V.Inner?e.arc(b.x+y,b.y+v,m,1.25*A,1.75*A,!0):e.arc(b.x+y,b.y-v,m,.75*A,.25*A)),e.lineTo(b.x+b.w,b.y),f.right!==V.None&&(e.lineTo(b.x+b.w,b.y+w-v),f.right===V.Inner?e.arc(b.x+b.w-v,b.y+w,m,1.75*A,.25*A,!0):e.arc(b.x+b.w+v,b.y+w,m,1.25*A,.75*A)),e.lineTo(b.x+b.w,b.y+b.h),f.bottom!==V.None&&(e.lineTo(b.x+y+v,b.y+b.h),f.bottom===V.Inner?e.arc(b.x+y,b.y+b.h-v,m,.25*A,.75*A,!0):e.arc(b.x+y,b.y+b.h+v,m,1.75*A,1.25*A)),e.lineTo(b.x,b.y+b.h),f.left!==V.None&&(e.lineTo(b.x,b.y+w+v),f.left===V.Inner?e.arc(b.x+v,b.y+w,m,.75*A,1.25*A,!0):e.arc(b.x-v,b.y+w,m,.25*A,1.75*A)),e.lineTo(b.x,b.y),e.stroke(),d&&e.closePath()}function G(e,t,r,n){return new Promise((function(o){t?e.toBlob((function(t){o(t?URL.createObjectURL(t):e.toDataURL(r,n))}),r,n):o(e.toDataURL(r,n))}))}var J=new z({max:5,maxStrategy:"replaced"});J.cache.on("del",(function(e,t){try{t.image.src&&URL.revokeObjectURL(t.image.src)}catch(e){}}));var Z=new WeakMap,$="image/jpeg",Q="image/png",ee=[];function te(e,t){void 0===t&&(t={});var r=t.borderWidth,n=void 0===r?2:r,o=t.borderColor,c=void 0===o?"rgba(255,255,255,0.7)":o,i=t.fillColor,a=void 0===i?"rgba(255,255,255,0.7)":i,l=t.points,s=t.width,u=void 0===s?60:s,d=t.height,f=void 0===d?60:d,p=t.x,h=t.y,m=t.margin,v=void 0===m?2:m,g=t.equalHeight,b=void 0===g||g,y=t.imageWidth,w=t.imageHeight,x=t.bgWidth,E=t.bgHeight,T=t.bgOffset,z=void 0===T?[0,0]:T,I=t.bgImageType,j=void 0===I?$:I,S=t.quality,O=void 0===S?.8:S,L=t.format,N=void 0===L?"dataURL":L,R=t.cacheImage,P=void 0===R||R,M=t.autoRevokePreviousBlobUrl,B=void 0===M||M,D=t.ajaxOptions;return new Promise((function(t,r){var o,i=document.createElement("canvas"),s=document.createElement("canvas"),d=i.getContext("2d"),m=s.getContext("2d"),g=P?C(o=e)?(Z.get(o)||Z.set(o,k("cp")),Z.get(o)):String(o):void 0;J.run((function(){return _(e,D)}),g).then((function(e){var o=e.image;y&&(o.width=y),w&&(o.height=w);var g="number"==typeof x&&x>0?x>u?x:u:o.width,k="number"==typeof E&&E>0?E>f?E:f:o.height;i.width=g,i.height=k;var T=g-u,I=k-f,S=void 0===p?U(u,T):p||0,L=void 0===h?U(0,I):h||0;S<0?S=0:S>T&&(S=T),L<0?L=0:L>I&&(L=I);var R="number"!=typeof l&&l?l:K(l),P="function"==typeof z?z(o.width,o.height):z;d.strokeStyle=c,d.lineWidth=n,d.fillStyle=a,Y(d,{x:S,y:L,w:u,h:f,points:R,margin:v}),d.fillStyle=a,d.fill(),d.globalCompositeOperation="destination-over",d.drawImage(o,P[0],P[1],o.width,o.height),s.width=g,s.height=k,m.strokeStyle=c,m.lineWidth=n,Y(m,{x:S,y:L,w:u,h:f,points:R,margin:v}),m.globalCompositeOperation="destination-over",m.clip(),m.drawImage(o,P[0],P[1],o.width,o.height);var M=m.getImageData(S,L,u,f);m.clearRect(0,0,g,k),s.width=u,s.height=b?k:f,m.putImageData(M,0,b?L:0);var _="blob"===N,C=G(s,_,Q,O),D=G(i,_,j,O);Promise.all([C,D]).then((function(e){var r=e[0],n=e[1];B&&(ee.length&&(ee.forEach((function(e){URL.revokeObjectURL(e)})),ee.length=0),_&&ee.push(n,r)),t({puzzleUrl:r,bgUrl:n,x:S,y:b?0:L})})).catch(r)})).catch(r)}))}},90526:function(e,t,r){r.d(t,{ZP:function(){return R}});var n=r(80813),o=r(92310),c=r.n(o),i=r(59301),a=function(){var e=(0,i.useRef)(!1);return(0,i.useEffect)((function(){return e.current=!1,function(){e.current=!0}}),[]),e};var l=function(e){var t=a(),r=(0,n.CR)((0,i.useState)(e),2),o=r[0],c=r[1];return[o,(0,i.useCallback)((function(e){t.current||c(e)}),[])]};var s=function(e){var t=(0,i.useRef)(e);return t.current=e,t},u=function(e){(0,i.useEffect)((function(){e()}),[])};!function(e,t){void 0===t&&(t={});var r=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("@-webkit-keyframes slider-icon-animate_spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes slider-icon-animate_spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.rc-slider-captcha-icon {\n display: inline-block;\n display: inline-flex;\n align-items: center;\n justify-content: center;\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.rc-slider-captcha-icon > svg {\n line-height: 1;\n}\n.rc-slider-captcha-icon-spin {\n -webkit-animation: slider-icon-animate_spin 1s infinite linear;\n animation: slider-icon-animate_spin 1s infinite linear;\n}\n.rc-slider-captcha-button {\n display: inline-block;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 40px;\n height: 100%;\n padding: 5px 0;\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n font-size: 22px;\n line-height: 1;\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);\n cursor: -webkit-grab;\n cursor: grab;\n transition-timing-function: linear;\n transition-duration: 0.2s;\n transition-property: background-color, color;\n touch-action: none;\n}\n.rc-slider-captcha-button-active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-verify {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-pc:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-active,\n.rc-slider-captcha-button:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.rc-slider-captcha-button-verify,\n.rc-slider-captcha-button-verify:active {\n cursor: wait;\n}\n.rc-slider-captcha-button-error {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-error:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-error:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-success {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-success:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-success:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-disabled {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-button-disabled:hover {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-button-disabled:active {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-control {\n position: relative;\n box-sizing: border-box;\n width: 100%;\n height: 42px;\n height: var(--rcsc-control-height, 42px);\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n border: 1px solid #e4e7eb;\n border: 1px solid var(--rcsc-border-color, #e4e7eb);\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-button {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-indicator {\n position: absolute;\n top: -1px;\n bottom: -1px;\n left: -1px;\n display: none;\n box-sizing: border-box;\n width: 0;\n background-color: #d1e9fe;\n background-color: var(--rcsc-primary-light, #d1e9fe);\n border: 1px solid #1991fa;\n border: 1px solid var(--rcsc-primary, #1991fa);\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-tips {\n position: relative;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n color: #45494c;\n color: var(--rcsc-text-color, #45494c);\n font-size: 14px;\n line-height: 20px;\n text-align: center;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.rc-slider-captcha-control-moving .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-verify .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-error .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-success .rc-slider-captcha-control-indicator {\n display: block;\n}\n.rc-slider-captcha-control-error .rc-slider-captcha-control-indicator {\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-success .rc-slider-captcha-control-indicator {\n background-color: #d2f4ef;\n background-color: var(--rcsc-success-light, #d2f4ef);\n border-color: #52ccba;\n border-color: var(--rcsc-success, #52ccba);\n}\n.rc-slider-captcha-control-errors {\n padding-left: 0;\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-load-failed {\n padding-left: 0;\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-button,\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-button,\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-indicator {\n display: none;\n}\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-tips {\n color: #f57a7a;\n color: var(--rcsc-error, #f57a7a);\n cursor: pointer;\n}\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-tips {\n color: #f57a7a;\n color: var(--rcsc-error, #f57a7a);\n cursor: pointer;\n}\n.rc-slider-captcha-jigsaw {\n position: relative;\n background-color: #f7f9fa;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.rc-slider-captcha-jigsaw img {\n position: absolute;\n}\n.rc-slider-captcha-jigsaw-bg {\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n.rc-slider-captcha-jigsaw-puzzle {\n width: 60px;\n height: 100%;\n touch-action: none;\n}\n.rc-slider-captcha-jigsaw-puzzle:hover {\n cursor: -webkit-grab;\n cursor: grab;\n}\n.rc-slider-captcha-jigsaw-puzzle:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.rc-slider-captcha-jigsaw-refresh {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 2;\n padding: 5px;\n color: #fff;\n font-size: 22px;\n line-height: 0;\n cursor: pointer;\n opacity: 0.75;\n transition: opacity 0.2s linear;\n}\n.rc-slider-captcha-jigsaw-refresh:hover {\n opacity: 1;\n}\n.rc-slider-captcha-jigsaw-refresh-disabled {\n cursor: not-allowed;\n}\n.rc-slider-captcha-jigsaw-refresh-disabled:hover {\n opacity: 0.75;\n}\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle {\n pointer-events: none;\n}\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle:hover,\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle:active {\n cursor: default;\n}\n.rc-slider-captcha-loading {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n padding: 15px;\n color: #45494c;\n color: var(--rcsc-text-color, #45494c);\n font-size: 14px;\n text-align: center;\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n}\n.rc-slider-captcha-loading-icon {\n font-size: 30px;\n}\n.rc-slider-captcha-loading-text {\n margin-top: 5px;\n}\n.rc-slider-captcha-load-failed {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n color: #ccc;\n font-size: 85px;\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n}\n.rc-slider-captcha {\n position: relative;\n}\n.rc-slider-captcha > * {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.rc-slider-captcha-panel {\n padding-bottom: 15px;\n}\n.rc-slider-captcha-panel-inner {\n overflow: hidden;\n border-radius: 2px;\n border-radius: var(--rcsc-panel-border-radius, 2px);\n}\n.rc-slider-captcha-float .rc-slider-captcha-panel {\n position: absolute;\n left: 0;\n display: none;\n opacity: 0;\n transition-timing-function: ease-out;\n transition-duration: 0.3s;\n transition-property: top, bottom, opacity;\n}\n.rc-slider-captcha-float-top .rc-slider-captcha-panel {\n bottom: 22px;\n}\n.rc-slider-captcha-float-bottom .rc-slider-captcha-panel {\n top: 22px;\n padding: 15px 0 0;\n}\n");var d="rc-slider-captcha";function f(e){var t=0,r=0;return"number"==typeof e.clientX&&"number"==typeof e.clientY?(t=e.clientX,r=e.clientY):e.touches&&e.touches[0]?(t=e.touches[0].clientX,r=e.touches[0].clientY):e.changedTouches&&e.changedTouches[0]&&(t=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY),{clientX:t,clientY:r}}function p(e,t){if(void 0===t&&(t={}),e)for(var r in t)e.style[r]=t[r]}var h="object"==typeof window&&window&&"object"==typeof document&&document&&window.document===document&&!!document.addEventListener&&"ontouchstart"in window;function m(e,t){return"number"==typeof e&&!Number.isNaN(e)&&"number"==typeof t&&t>0?Number(e.toFixed(t)):e}var v="".concat(d,"-button"),g=i.forwardRef((function(e,t){var r,o=e.className,a=e.disabled,l=e.active,s=e.success,u=e.error,d=e.verify,f=(0,n._T)(e,["className","disabled","active","success","error","verify"]);return i.createElement("span",(0,n.pi)({className:c()(v,o,(r={},r["".concat(v,"-disabled")]=a,r["".concat(v,"-active")]=l,r["".concat(v,"-verify")]=d,r["".concat(v,"-success")]=s,r["".concat(v,"-error")]=u,r["".concat(v,"-pc")]=!h,r)),ref:t},f))}));g.displayName="SliderButton";var b,y="".concat(d,"-icon"),w=function(e){var t,r=e.className,o=e.spin,a=(0,n._T)(e,["className","spin"]);return i.createElement("span",(0,n.pi)({className:c()(y,(t={},t["".concat(y,"-spin")]=o,t),r)},a))},x={arrowRight:i.createElement((function(e){return i.createElement("svg",(0,n.pi)({viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),i.createElement("path",{d:"M116.9408 561.4592m0-40.96l0 0q0-40.96 40.96-40.96l573.44 0q40.96 0 40.96 40.96l0 0q0 40.96-40.96 40.96l-573.44 0q-40.96 0-40.96-40.96Z"}),i.createElement("path",{d:"M769.82272 519.43424l-203.22304-203.22304a40.96 40.96 0 1 1 57.91744-57.91744l231.71072 231.71072a40.96 40.96 0 0 1 0.45056 58.44992L624.9472 780.12416a40.96 40.96 0 0 1-57.93792-57.91744l202.79296-202.79296z"}))}),null),check:i.createElement((function(e){return i.createElement("svg",(0,n.pi)({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),i.createElement("path",{d:"M864.554667 268.501333a42.666667 42.666667 0 0 1 0 60.330667L412.032 781.397333a42.453333 42.453333 0 0 1-22.613333 11.818667l-5.034667 0.597333H379.306667a42.496 42.496 0 0 1-27.648-12.416l-211.2-211.2a42.666667 42.666667 0 1 1 60.330666-60.330666l180.992 180.992 422.4-422.4a42.666667 42.666667 0 0 1 60.330667 0z"}))}),null),loading:i.createElement((function(e){return i.createElement("svg",(0,n.pi)({viewBox:"0 0 120 120",width:"1em",height:"1em"},e),i.createElement("defs",null,i.createElement("line",{id:"l",x1:"60",x2:"60",y1:"7",y2:"27",stroke:"currentColor",strokeWidth:"11",strokeLinecap:"round"})),i.createElement("g",null,i.createElement("use",{xlinkHref:"#l",opacity:".27"}),i.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(30 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(60 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(90 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(120 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(150 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".37",transform:"rotate(180 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".46",transform:"rotate(210 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".56",transform:"rotate(240 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".66",transform:"rotate(270 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".75",transform:"rotate(300 60,60)"}),i.createElement("use",{xlinkHref:"#l",opacity:".85",transform:"rotate(330 60,60)"})))}),null),refresh:i.createElement((function(e){return i.createElement("svg",(0,n.pi)({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),i.createElement("path",{d:"M866.133333 573.013333a42.666667 42.666667 0 0 0-53.333333 27.733334A304.64 304.64 0 0 1 519.68 810.666667 302.933333 302.933333 0 0 1 213.333333 512a302.933333 302.933333 0 0 1 306.346667-298.666667 309.76 309.76 0 0 1 198.4 71.253334l-92.586667-15.36a42.666667 42.666667 0 0 0-49.066666 35.413333 42.666667 42.666667 0 0 0 35.413333 49.066667l180.906667 29.866666h7.253333a42.666667 42.666667 0 0 0 14.506667-2.56 14.08 14.08 0 0 0 4.266666-2.56 33.28 33.28 0 0 0 8.533334-4.693333l3.84-4.693333c0-2.133333 3.84-3.84 5.546666-6.4s0-4.266667 2.133334-5.973334a57.173333 57.173333 0 0 0 2.986666-7.68l32-170.666666a42.666667 42.666667 0 0 0-85.333333-16.213334l-11.52 61.866667A392.96 392.96 0 0 0 519.68 128 388.266667 388.266667 0 0 0 128 512a388.266667 388.266667 0 0 0 391.68 384A389.12 389.12 0 0 0 896 626.346667a42.666667 42.666667 0 0 0-29.866667-53.333334z"}))}),null),x:i.createElement((function(e){return i.createElement("svg",(0,n.pi)({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),i.createElement("path",{d:"M572.96896 524.6976l217.23136 217.25184a40.96 40.96 0 1 1-57.93792 57.91744L515.072 582.63552l-212.3776 212.3776a40.96 40.96 0 1 1-57.9584-57.91744l212.39808-212.3776-217.21088-217.23136a40.96 40.96 0 1 1 57.91744-57.91744l217.23136 217.21088L737.0752 244.736a40.96 40.96 0 1 1 57.93792 57.91744L572.96896 524.71808z"}))}),null),imageFill:i.createElement((function(e){return i.createElement("svg",(0,n.pi)({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16"},e),i.createElement("path",{d:"M.002 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-12a2 2 0 0 1-2-2zm1 9v1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062zm5-6.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"}))}),null)},k=function(e){var t=e.type,r=(0,n._T)(e,["type"]);return i.createElement(w,(0,n.pi)({},r),x[t])};!function(e){e[e.Default=1]="Default",e[e.Loading=2]="Loading",e[e.Moving=3]="Moving",e[e.Verify=4]="Verify",e[e.Success=5]="Success",e[e.Error=6]="Error",e[e.LoadFailed=7]="LoadFailed"}(b||(b={}));var E,T="".concat(d,"-control"),z=function(e){var t,r=e.status,o=void 0===r?b.Default:r,a=e.isLimitErrors,l=e.tipText,s=e.tipIcon,u=e.sliderButtonProps,d=e.indicatorProps,f=e.controlRef,h=(0,n._T)(e,["status","isLimitErrors","tipText","tipIcon","sliderButtonProps","indicatorProps","controlRef"]),m=(0,i.useRef)(null),v=(0,i.useRef)(null),y=(0,i.useRef)(null),w=(0,i.useRef)({}),x=(0,i.useMemo)((function(){return(0,n.pi)({default:"向右拖动滑块填充拼图",loading:"加载中...",moving:null,verifying:null,success:null,error:null,errors:i.createElement(i.Fragment,null,i.createElement(k,{type:"x",style:{fontSize:20}})," 失败过多,点击重试"),loadFailed:"加载失败,点击重试"},l)}),[l]),E=(0,i.useMemo)((function(){return(0,n.pi)({default:i.createElement(k,{type:"arrowRight"}),loading:i.createElement(k,{type:"loading",spin:!0}),error:i.createElement(k,{type:"x"}),success:i.createElement(k,{type:"check"})},s)}),[s]),z=(0,i.useMemo)((function(){var e;return(e={})[b.Default]=[x.default,E.default],e[b.Loading]=[x.loading,E.default],e[b.Moving]=[x.moving,E.default],e[b.Verify]=[x.verifying,E.loading],e[b.Error]=[x.error,E.error],e[b.Success]=[x.success,E.success],e[b.LoadFailed]=[x.loadFailed,E.default],e}),[x,E]),I=function(e){var t;return(e||"number"!=typeof w.current.sliderButtonWidth)&&(w.current.sliderButtonWidth=(null===(t=v.current)||void 0===t?void 0:t.clientWidth)||40),w.current.sliderButtonWidth},j=function(e){if(e||"number"!=typeof w.current.indicatorBorderWidth)if(y.current){var t=window.getComputedStyle(y.current);w.current.indicatorBorderWidth=parseInt(t.borderLeftWidth)+parseInt(t.borderRightWidth)}else w.current.indicatorBorderWidth=2;return w.current.indicatorBorderWidth},S=function(e){var t;return!e&&w.current.rect||m.current&&(w.current.rect=null===(t=m.current)||void 0===t?void 0:t.getBoundingClientRect()),w.current.rect};(0,i.useImperativeHandle)(f,(function(){return{getSliderButtonWidth:I,getIndicatorBorderWidth:j,getRect:S,updateLeft:function(e){var t=I(),r=j();p(v.current,{left:e+"px"}),p(y.current,{width:e+t+r+"px"})}}}),[]);var O=o===b.Loading,L=o===b.Moving,N=o===b.Verify,R=o===b.Success,P=o===b.Error,M=o===b.LoadFailed,_=a?x.errors:z[o][0];return i.createElement("div",(0,n.pi)({},h,{className:c()(T,(t={},t["".concat(T,"-loading")]=O,t["".concat(T,"-moving")]=L,t["".concat(T,"-verify")]=N,t["".concat(T,"-success")]=R,t["".concat(T,"-error")]=P,t["".concat(T,"-errors")]=a,t["".concat(T,"-load-failed")]=M,t),h.className),ref:m}),i.createElement("div",(0,n.pi)({},d,{className:c()("".concat(T,"-indicator"),null==d?void 0:d.className),ref:y})),i.createElement(g,(0,n.pi)({},u,{className:c()("".concat(T,"-button"),null==u?void 0:u.className),disabled:O,active:L,verify:N,success:R,error:P,ref:v}),z[o][1]),i.createElement("div",{className:c()("".concat(T,"-tips")),style:_?{}:{display:"none"}},_))},I="".concat(d,"-loading"),j=function(e){var t=e.icon,r=void 0===t?i.createElement(k,{type:"loading",spin:!0}):t,o=e.text,a=void 0===o?"加载中...":o,l=e.className,s=(0,n._T)(e,["icon","text","className"]);return i.createElement("div",(0,n.pi)({className:c()(I,l)},s),i.createElement("div",{className:"".concat(I,"-icon")},r),i.createElement("div",{className:"".concat(I,"-text")},a))},S="".concat(d,"-jigsaw"),O={bgSize:{width:320,height:160},puzzleSize:{width:60,left:0},loadFailedIcon:i.createElement(k,{type:"imageFill"}),refreshIcon:i.createElement(k,{type:"refresh"})},L=function(e){var t,r,o=e.status,a=e.bgSize,l=void 0===a?O.bgSize:a,s=e.puzzleSize,u=void 0===s?O.puzzleSize:s,f=e.bgUrl,h=e.puzzleUrl,m=e.bgImgProps,v=e.puzzleImgProps,g=e.jigsawRef,y=e.loadingBoxProps,w=e.loadFailedIcon,x=void 0===w?O.loadFailedIcon:w,k=e.showRefreshIcon,E=void 0===k||k,T=e.refreshIcon,z=void 0===T?O.refreshIcon:T,I=e.disabledRefresh,L=e.onRefresh,N=e.style,R=e.className,P=e.children,M=(0,n._T)(e,["status","bgSize","puzzleSize","bgUrl","puzzleUrl","bgImgProps","puzzleImgProps","jigsawRef","loadingBoxProps","loadFailedIcon","showRefreshIcon","refreshIcon","disabledRefresh","onRefresh","style","className","children"]),_=(0,i.useRef)(null);if((0,i.useImperativeHandle)(g,(function(){return{updateLeft:function(e){p(_.current,{left:e+"px"})}}})),o===b.Loading)return i.createElement(j,(0,n.pi)({},y,{style:(0,n.pi)((0,n.pi)({},null==y?void 0:y.style),l)}));if(o===b.LoadFailed||!f||!h)return i.createElement("div",{className:"".concat(d,"-load-failed"),style:l},x);var C=o===b.Verify||o===b.Error||o===b.Success;return i.createElement("div",(0,n.pi)({className:c()(S,(t={},t["".concat(S,"-stop")]=C,t),R),style:(0,n.pi)((0,n.pi)({},N),l)},M),i.createElement("img",(0,n.pi)({src:f,alt:""},m,{className:c()("".concat(S,"-bg"),null==m?void 0:m.className),style:(0,n.pi)((0,n.pi)({},null==m?void 0:m.style),l)})),i.createElement("img",(0,n.pi)({src:h,alt:""},v,{className:c()("".concat(S,"-puzzle"),null==v?void 0:v.className),style:(0,n.pi)((0,n.pi)({},null==v?void 0:v.style),u),ref:_})),E&&o!==b.Success&&z&&i.createElement("div",{className:c()("".concat(S,"-refresh"),(r={},r["".concat(S,"-refresh-disabled")]=o===b.Verify||I,r)),onClick:function(){o===b.Verify||I||null==L||L()}},z),P)};!function(e){e.Puzzle="puzzle",e.Button="button"}(E||(E={}));var N=h?{start:"touchstart",move:"touchmove",end:"touchend"}:{start:"mousedown",move:"mousemove",end:"mouseup"},R=function(e){var t,r=e.mode,o=void 0===r?"embed":r,a=e.limitErrorCount,v=void 0===a?0:a,g=e.tipText,y=e.tipIcon,w=e.refreshIcon,x=e.bgSize,k=e.puzzleSize,T=e.request,I=e.autoRequest,j=void 0===I||I,S=e.onVerify,R=e.autoRefreshOnError,P=void 0===R||R,M=e.actionRef,_=e.showRefreshIcon,C=void 0===_||_,B=e.jigsawContent,D=e.errorHoldDuration,W=void 0===D?500:D,F=e.loadingDelay,H=void 0===F?0:F,U=e.placement,V=void 0===U?"top":U,A=e.loadingBoxProps,q=e.sliderButtonProps,X=e.precision,K=void 0===X?7:X,Y=e.className,G=e.style,J=e.styles,Z=l(),$=Z[0],Q=Z[1],ee=l(b.Default),te=ee[0],re=ee[1],ne=s(te),oe=(0,i.useRef)(null),ce=(0,i.useRef)(null),ie=(0,i.useRef)(null),ae=(0,i.useMemo)((function(){return"float"===o||"slider"===o?o:"embed"}),[o]),le=(0,i.useMemo)((function(){return void 0!==w?w:void 0!==(null==y?void 0:y.refresh)?y.refresh:void 0}),[w,y]),se=(0,i.useMemo)((function(){return(0,n.pi)((0,n.pi)({},O.bgSize),x)}),[x]),ue=(0,i.useMemo)((function(){return(0,n.pi)((0,n.pi)({},O.puzzleSize),k)}),[k]),de=(0,i.useMemo)((function(){return"bottom"===V?"top":"bottom"}),[V]),fe=(0,i.useRef)({isPressed:!1,trail:[],errorCount:0,startInfo:{x:0,y:0,timestamp:0},currentTargetType:E.Button,floatTransitionTimer:null,floatDelayShowTimer:null,floatDelayHideTimer:null,refreshTimer:null,loadingTimer:null,sliderButtonWidth:40,indicatorBorderWidth:2,ratio:1,buttonMaxDistance:0,puzzleMaxDistance:0}),pe="slider"===ae,he="number"==typeof H&&H>0,me=te===b.Error&&v>0&&fe.current.errorCount>=v,ve=function(){var e;return(null===(e=oe.current)||void 0===e?void 0:e.getRect(!0).height)||42},ge=function(){return(0,n.mG)(void 0,void 0,void 0,(function(){var e;return(0,n.Jh)(this,(function(t){switch(t.label){case 0:if(pe)return[2];if(!T)return[3,4];he?fe.current.loadingTimer=setTimeout((function(){re(b.Loading)}),H):re(b.Loading),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,T()];case 2:return e=t.sent(),he&&clearTimeout(fe.current.loadingTimer),Q(e),re(b.Default),[3,4];case 3:return t.sent(),he&&clearTimeout(fe.current.loadingTimer),re(b.LoadFailed),[3,4];case 4:return[2]}}))}))},be=function(e){void 0===e&&(e=300),"float"===ae&&ne.current!==b.Success&&(clearTimeout(fe.current.floatTransitionTimer),clearTimeout(fe.current.floatDelayHideTimer),clearTimeout(fe.current.floatDelayShowTimer),fe.current.floatDelayShowTimer=setTimeout((function(){var e,t;p(ie.current,{display:"block"}),null==(t=ie.current)||t.scrollTop;var r=ve()+"px";p(ie.current,((e={})[de]=r,e.opacity="1",e))}),e))},ye=function(e){void 0===e&&(e=300),"float"===ae&&(clearTimeout(fe.current.floatTransitionTimer),clearTimeout(fe.current.floatDelayHideTimer),clearTimeout(fe.current.floatDelayShowTimer),fe.current.floatDelayHideTimer=setTimeout((function(){var e,t=ve()/2+"px";p(ie.current,((e={})[de]=t,e.opacity="0",e)),fe.current.floatTransitionTimer=setTimeout((function(){p(ie.current,{display:"none"})}),300)}),e))},we=function(e){var t;pe||null===(t=ce.current)||void 0===t||t.updateLeft(e)},xe=function(){var e;fe.current.isPressed=!1,re(b.Default),null===(e=oe.current)||void 0===e||e.updateLeft(0),we(ue.left)},ke=function(e){void 0===e&&(e=!1),e&&(fe.current.errorCount=0),clearTimeout(fe.current.refreshTimer),ne.current!==b.Loading&&(xe(),ge())},Ee=function(e){fe.current.currentTargetType=E.Puzzle,ze(e)},Te=function(e){fe.current.currentTargetType=E.Button,ze(e)},ze=function(e){if(ne.current===b.Default){e.preventDefault();var t=f(e),r=t.clientX,n=t.clientY;fe.current.startInfo={x:r,y:n,timestamp:(new Date).getTime()},fe.current.trail=[[r,n]],oe.current&&(fe.current.sliderButtonWidth=oe.current.getSliderButtonWidth(!0),fe.current.indicatorBorderWidth=oe.current.getIndicatorBorderWidth(!0)),fe.current.buttonMaxDistance=se.width-fe.current.sliderButtonWidth-fe.current.indicatorBorderWidth,fe.current.puzzleMaxDistance=se.width-ue.width-ue.left,fe.current.ratio=fe.current.puzzleMaxDistance/fe.current.buttonMaxDistance,fe.current.currentTargetType===E.Puzzle&&(fe.current.ratio=1/fe.current.ratio),h&&be(0),fe.current.isPressed=!0,document.addEventListener(N.move,Ie),document.addEventListener(N.end,je),document.addEventListener("touchcancel",je)}},Ie=function(e){var t;if(fe.current.isPressed){e.preventDefault();var r=f(e),n=r.clientX,o=r.clientY,c=n-fe.current.startInfo.x;fe.current.trail.push([n,o]),ne.current!==b.Moving&&c>0&&re(b.Moving);var i=c,a=c;fe.current.currentTargetType===E.Puzzle?(i=(c=Math.max(0,Math.min(c,fe.current.puzzleMaxDistance)))+ue.left,a=c*fe.current.ratio):(a=c=Math.max(0,Math.min(c,fe.current.buttonMaxDistance)),i=c*fe.current.ratio+ue.left),null===(t=oe.current)||void 0===t||t.updateLeft(a),we(i)}},je=function(e){if(document.removeEventListener(N.move,Ie),document.removeEventListener(N.end,je),document.removeEventListener("touchcancel",je),fe.current.isPressed){if(ne.current!==b.Moving)return fe.current.isPressed=!1,void(h&&ye());if(S){fe.current.isPressed=!1,re(b.Verify);var t=(new Date).getTime(),r=f(e),n=r.clientX,o=r.clientY-fe.current.startInfo.y,c=n-fe.current.startInfo.x,i=c;fe.current.currentTargetType===E.Puzzle?i=(c=Math.max(0,Math.min(c,fe.current.puzzleMaxDistance)))*fe.current.ratio:(i=c=Math.max(0,Math.min(c,fe.current.buttonMaxDistance)),c*=fe.current.ratio),S({x:m(c,K),y:m(o,K),sliderOffsetX:m(i,K),duration:t-fe.current.startInfo.timestamp,trail:fe.current.trail,targetType:fe.current.currentTargetType,errorCount:fe.current.errorCount}).then((function(){fe.current.errorCount=0,re(b.Success),ye()})).catch((function(){fe.current.errorCount+=1,re(b.Error),h&&ye(),(v<=0||fe.current.errorCount0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,c=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=c.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=c.return)&&r.call(c)}finally{if(o)throw o.error}}return i}function d(){for(var e=0,t=0,r=arguments.length;t()=>{t=null,e.apply(void 0,(0,n.Z)(o))},s=function(){if(null==t){for(var e=arguments.length,n=new Array(e),s=0;s{r.Z.cancel(t),t=null},s}},81228:function(e,t,o){"use strict";o.d(t,{Z:function(){return S}});var n=o(79545),r=o(68550),s=o(17928),i=o(7711),l=o(59301),a=o(92310),u=o.n(a),p=o(28647),f=o(55405),c=o(27666),d=o(36355),h=o(83116),v=o(37613);const m=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var g=(0,h.Z)("Affix",(e=>{const t=(0,v.TS)(e,{zIndexPopup:e.zIndexBase+10});return[m(t)]}));function y(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function w(e,t,o){if(void 0!==o&&t.top>e.top-o)return o+t.top}function L(e,t,o){if(void 0!==o&&t.bottom{const t=e.getTargetFunc(),o=null==t?void 0:t(),{prevTarget:n}=e.state;n!==o&&(P.forEach((t=>{null==n||n.removeEventListener(t,e.lazyUpdatePosition),null==o||o.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:o}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,o=e.getTargetFunc(),n=null==o?void 0:o();P.forEach((o=>{null==n||n.removeEventListener(o,e.lazyUpdatePosition),null==t||t.removeEventListener(o,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:o}=e.props;return void 0===t&&void 0===o?0:o},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:o}=e.state,{onChange:n}=e.props,r=e.getTargetFunc();if(t!==C.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!r)return;const s=e.getOffsetTop(),i=e.getOffsetBottom(),l=r();if(l){const t={status:C.None},r=y(e.placeholderNodeRef.current);if(0===r.top&&0===r.left&&0===r.width&&0===r.height)return;const a=y(l),u=w(r,a,s),p=L(r,a,i);void 0!==u?(t.affixStyle={position:"fixed",top:u,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}):void 0!==p&&(t.affixStyle={position:"fixed",bottom:p,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}),t.lastAffix=!!t.affixStyle,n&&o!==t.lastAffix&&n(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:C.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,c.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,c.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:o}=e.state;if(t&&o){const n=e.getOffsetTop(),r=e.getOffsetBottom(),s=t();if(s&&e.placeholderNodeRef.current){const t=y(s),i=y(e.placeholderNodeRef.current),l=w(i,t,n),a=L(i,t,r);if(void 0!==l&&o.top===l||void 0!==a&&o.bottom===a)return}}e.prepareMeasure()})),e}return(0,r.Z)(o,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:b}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:o,rootClassName:n,children:r}=this.props,s=u()(e&&n,{[o]:!!e});let i=(0,f.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return l.createElement(p.Z,{onResize:this.updatePosition},l.createElement("div",Object.assign({},i,{ref:this.placeholderNodeRef}),e&&l.createElement("div",{style:t,"aria-hidden":"true"}),l.createElement("div",{className:s,ref:this.fixedNodeRef,style:e},l.createElement(p.Z,{onResize:this.updatePosition},r))))}}]),o}(l.Component);x.contextType=d.E_;var S=(0,l.forwardRef)(((e,t)=>{const{prefixCls:o,rootClassName:n}=e,{getPrefixCls:r}=(0,l.useContext)(d.E_),s=r("affix",o),[i,a]=g(s),p=Object.assign(Object.assign({},e),{affixPrefixCls:s,rootClassName:u()(n,a)});return i(l.createElement(x,Object.assign({},p,{ref:t})))}))},51581:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));u.ref=function(t){e.scrollComponent=t,a&&a(t)};var p=[o];return r&&(l?i?p.unshift(l):p.push(l):this.defaultLoader&&(i?p.unshift(this.defaultLoader):p.push(this.defaultLoader))),s.default.createElement(n,u,p)}}]),t}(r.Component);a.propTypes={children:i.default.node.isRequired,element:i.default.node,hasMore:i.default.bool,initialLoad:i.default.bool,isReverse:i.default.bool,loader:i.default.node,loadMore:i.default.func.isRequired,pageStart:i.default.number,ref:i.default.func,getScrollParent:i.default.func,threshold:i.default.number,useCapture:i.default.bool,useWindow:i.default.bool},a.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=a,e.exports=t.default},26724:function(e,t,o){e.exports=o(51581)}}]); \ No newline at end of file diff --git a/13488.4e8c9925.async.js b/13488.4e8c9925.async.js deleted file mode 100644 index 1c5a17078b..0000000000 --- a/13488.4e8c9925.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[13488],{27666:function(e,t,o){"use strict";var n=o(26390),r=o(71783);t.Z=function(e){let t;const o=o=>()=>{t=null,e.apply(void 0,(0,n.Z)(o))},s=function(){if(null==t){for(var e=arguments.length,n=new Array(e),s=0;s{r.Z.cancel(t),t=null},s}},81228:function(e,t,o){"use strict";o.d(t,{Z:function(){return S}});var n=o(79545),r=o(68550),s=o(17928),i=o(99487),l=o(59301),a=o(92310),u=o.n(a),p=o(28647),f=o(55405),c=o(27666),d=o(36355),h=o(83116),v=o(37613);const m=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var g=(0,h.Z)("Affix",(e=>{const t=(0,v.TS)(e,{zIndexPopup:e.zIndexBase+10});return[m(t)]}));function y(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function w(e,t,o){if(void 0!==o&&t.top>e.top-o)return o+t.top}function L(e,t,o){if(void 0!==o&&t.bottom{const t=e.getTargetFunc(),o=null==t?void 0:t(),{prevTarget:n}=e.state;n!==o&&(P.forEach((t=>{null==n||n.removeEventListener(t,e.lazyUpdatePosition),null==o||o.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:o}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,o=e.getTargetFunc(),n=null==o?void 0:o();P.forEach((o=>{null==n||n.removeEventListener(o,e.lazyUpdatePosition),null==t||t.removeEventListener(o,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:o}=e.props;return void 0===t&&void 0===o?0:o},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:o}=e.state,{onChange:n}=e.props,r=e.getTargetFunc();if(t!==C.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!r)return;const s=e.getOffsetTop(),i=e.getOffsetBottom(),l=r();if(l){const t={status:C.None},r=y(e.placeholderNodeRef.current);if(0===r.top&&0===r.left&&0===r.width&&0===r.height)return;const a=y(l),u=w(r,a,s),p=L(r,a,i);void 0!==u?(t.affixStyle={position:"fixed",top:u,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}):void 0!==p&&(t.affixStyle={position:"fixed",bottom:p,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}),t.lastAffix=!!t.affixStyle,n&&o!==t.lastAffix&&n(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:C.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,c.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,c.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:o}=e.state;if(t&&o){const n=e.getOffsetTop(),r=e.getOffsetBottom(),s=t();if(s&&e.placeholderNodeRef.current){const t=y(s),i=y(e.placeholderNodeRef.current),l=w(i,t,n),a=L(i,t,r);if(void 0!==l&&o.top===l||void 0!==a&&o.bottom===a)return}}e.prepareMeasure()})),e}return(0,r.Z)(o,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:b}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:o,rootClassName:n,children:r}=this.props,s=u()(e&&n,{[o]:!!e});let i=(0,f.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return l.createElement(p.Z,{onResize:this.updatePosition},l.createElement("div",Object.assign({},i,{ref:this.placeholderNodeRef}),e&&l.createElement("div",{style:t,"aria-hidden":"true"}),l.createElement("div",{className:s,ref:this.fixedNodeRef,style:e},l.createElement(p.Z,{onResize:this.updatePosition},r))))}}]),o}(l.Component);x.contextType=d.E_;var S=(0,l.forwardRef)(((e,t)=>{const{prefixCls:o,rootClassName:n}=e,{getPrefixCls:r}=(0,l.useContext)(d.E_),s=r("affix",o),[i,a]=g(s),p=Object.assign(Object.assign({},e),{affixPrefixCls:s,rootClassName:u()(n,a)});return i(l.createElement(x,Object.assign({},p,{ref:t})))}))},51581:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));u.ref=function(t){e.scrollComponent=t,a&&a(t)};var p=[o];return r&&(l?i?p.unshift(l):p.push(l):this.defaultLoader&&(i?p.unshift(this.defaultLoader):p.push(this.defaultLoader))),s.default.createElement(n,u,p)}}]),t}(r.Component);a.propTypes={children:i.default.node.isRequired,element:i.default.node,hasMore:i.default.bool,initialLoad:i.default.bool,isReverse:i.default.bool,loader:i.default.node,loadMore:i.default.func.isRequired,pageStart:i.default.number,ref:i.default.func,getScrollParent:i.default.func,threshold:i.default.number,useCapture:i.default.bool,useWindow:i.default.bool},a.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=a,e.exports=t.default},26724:function(e,t,o){e.exports=o(51581)}}]); \ No newline at end of file diff --git a/22276.2ec24480.async.js b/22276.2ec24480.async.js new file mode 100644 index 0000000000..c192c68b81 --- /dev/null +++ b/22276.2ec24480.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[22276],{5122:function(n,e,t){var i=t(79800),r=t.n(i),s=t(59301),o=t(25778),l=(t(48136),t(36761)),a=t(43418),c=t(37712),d=(0,s.forwardRef)((function(n,e){var t=n.callback,i=n.width,d=n.onChange,u=n.disabled,A=n.readOnly,v=n.type,m=void 0===v?"":v,p=n.value,f=void 0===p?"":p,g=n.style,x=void 0===g?{}:g,h=(0,s.useRef)(),b=(0,s.useRef)(),j=(0,s.useState)(0),y=r()(j,2),C=y[0],_=y[1],B=(0,s.useState)(0),E=r()(B,2),w=E[0],I=E[1],Q=(0,s.useState)(!1),N=r()(Q,2),k=N[0],Z=N[1],T=function(){var n=document.createElement("div");n.innerHTML=h.current.getValue();var e=n.innerText;return t&&t(e),e};(0,s.useImperativeHandle)(e,(function(){return{getData:T}}));var P=function(n,e,t,i){var r=document.body.clientHeight,s=document.body.clientWidth;return!(n<20&&t>n||n>s-20&&te||e>r-20&&i1e4*(null==k?void 0:k.length),0===t||l||setTimeout(x,1e3),!l){n.next=13;break}return f.Z.error({centered:!0,okText:"知道啦",title:"调试代码超时",content:"请检查程序代码是否存在死循环"}),z(!1),n.abrupt("return");case 13:0===t&&(z(!1),a=null==k?void 0:k.map((function(n,e){return o()(o()({},n),{},{type:1===(null==i?void 0:i.right_arr[e])?"success":"warning"})})),Z(a),q(i),2===i.status&&(z(!1),f.Z.error({centered:!0,okText:"知道啦",title:"调试代码超时"})));case 14:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),h=V(),n.next=25,(0,y.bM)(null==v?void 0:v.identifier,{});case 25:x(),n.next=29;break;case 28:z(!1);case 29:O(!X);case 30:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(f.Z,{centered:!0,destroyOnClose:!0,open:"BPROGRAM"===c.actionTabs.key,title:"试题体验",okText:X?"重新答题":"提交代码",cancelText:"取消",width:708,onOk:H,onCancel:function(){I({}),Z([]),O(!1),u({type:"problemset/setActionTabs",payload:{}})},okButtonProps:{loading:L},children:(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"c-light-primary mb5 font16",children:"程序填空题"}),(0,E.jsx)(h.Z,{value:null==w||null===(t=w.program_attr)||void 0===t?void 0:t.description}),(null==w||null===(i=w.program_attr)||void 0===i?void 0:i.code)&&(0,E.jsx)(h.Z,{showProgramFill:!0,onFillChange:function(n){var e=null==n?void 0:n.map((function(n,e){return o()({},n)}));Z(e)},programFillValue:k,value:b.Base64.decode(null==w||null===(s=w.program_attr)||void 0===s?void 0:s.code)}),X&&(0,E.jsxs)(v.Fragment,{children:[(0,E.jsx)("div",{className:x.Z.line}),null==w||null===(l=w.standard_answer)||void 0===l?void 0:l.map((function(n,e){return(0,E.jsxs)("div",{className:"c-grey-333 mb5",style:{display:"flex",alignItems:"baseline"},children:[(0,E.jsxs)("b",{children:["填空",e+1,"答案: "]}),(0,E.jsx)("pre",{children:(null==n?void 0:n.answer_text)||""})]})})),(0,E.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,E.jsx)("b",{children:"解析: "}),(null==w?void 0:w.analysis)||"暂无解析"]})]})]})}),(null==F?void 0:F.id)&&2!==F.status&&(0,E.jsx)(f.Z,{open:(null==F?void 0:F.id)&&2!==F.status,title:"运行结果",width:1100,footer:!1,onOk:function(){q({})},onCancel:function(){q({})},children:(0,E.jsxs)("div",{style:{maxHeight:600,overflow:"auto",marginBottom:15},children:[(0,E.jsxs)("div",{style:{marginBottom:20,display:"flex",justifyContent:"space-between",fontSize:14},children:[(0,E.jsxs)("div",{children:[(0,E.jsx)("span",{style:{color:"#666666"},children:"状态"}),(0,E.jsx)("span",{style:{marginLeft:12,color:0!==F.status&&"#E30000"},children:C.Im[F.status]})]}),(0,E.jsxs)("div",{children:[(0,E.jsx)("span",{style:{color:"#666666"},children:"提交时间"}),(0,E.jsx)("span",{style:{marginLeft:12},children:B()(F.created_at).format("YYYY-MM-DD HH:mm:ss")})]}),(0,E.jsxs)("div",{children:[(0,E.jsx)("span",{style:{color:"#666666"},children:"语言"}),(0,E.jsx)("span",{style:{marginLeft:12},children:F.language})]}),(0,E.jsxs)("div",{children:[(0,E.jsx)("span",{style:{color:"#666666"},children:"执行用时"}),(0,E.jsxs)("span",{style:{marginLeft:12},children:[F.execute_time,"ms"]})]})]}),(0,E.jsx)(C.Y4,o()({},F))]})})]})}))},15714:function(n,e,t){t.d(e,{Z:function(){return k}});var i=t(7557),r=t.n(i),s=t(41498),o=t.n(s),l=t(79800),a=t.n(l),c=t(59301),d=t(5296),u=t(8591),A=t(43418),v=t(89392),m=t(38279),p=t(82242),f=t.n(p),g=t(5112),x=t(3113),h=t(28103),b=t(21475),j=t(37712),y=(0,d.connect)((function(n){return{problemset:n.problemset}}))((function(n){n.problemset,n.dispatch;var e=n.showdiv,t=n.data,i=(0,c.useState)([]),s=a()(i,2),l=s[0],d=s[1],A=(0,c.useState)(!1),p=a()(A,2),y=p[0],C=p[1],_=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];(0,c.useEffect)((function(){var n;(null===(n=Object.keys(t))||void 0===n?void 0:n.length)>0&&d(t.choices)}),[t]);var B=function(){var n=o()(r()().mark((function n(){var e;return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(l.some((function(n){return null==n?void 0:n.checked}))){n.next=3;break}return u.ZP.warning("请您作答后再提交"),n.abrupt("return");case 3:y&&(e=(0,v.cloneDeep)(t),d(e.choices)),C(!y);case 5:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,j.jsxs)("div",{children:[(0,j.jsx)("div",{className:"c-light-primary mb5 font16",children:"单选题"}),(0,j.jsx)(m.Z,{value:null==t?void 0:t.name}),null==l?void 0:l.map((function(n,e){var t=n.is_answer,i=n.checked,r=n.choice_text,s="";return y&&t&&(s=b.Z.green),y&&!t&&i&&(s=b.Z.red),(0,j.jsxs)("div",{style:{pointerEvents:y?"none":"auto"},className:"".concat(b.Z.row," ").concat(s),children:[(0,j.jsx)(g.ZP,{onChange:function(n){return function(n,e){console.log(n.target.checked);var t=l.map((function(t,i){return f()(f()({},t),{},{checked:i===e&&n.target.checked})}));d(t)}(n,e)},checked:i}),(0,j.jsxs)("span",{children:[_[e],". "]}),(0,j.jsx)(m.Z,{className:b.Z.html,value:r}),y&&t&&(0,j.jsx)("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),y&&!t&&i&&(0,j.jsx)("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"})]},e)})),y&&(0,j.jsx)(c.Fragment,{children:(0,j.jsxs)("div",{style:{background:"#F6F7F9",padding:10,marginTop:10},children:[(0,j.jsxs)("div",{className:"c-grey-333 mb5",children:[(0,j.jsx)("b",{children:"正确答案: "}),_[l.findIndex((function(n){return n.is_answer}))]]}),(0,j.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,j.jsx)("b",{children:"解析: "}),(null==t?void 0:t.analysis)||"暂无解析"]})]})}),(0,j.jsx)("div",{style:{textAlign:"end",marginTop:10},children:(0,j.jsx)(x.ZP,{type:"primary",onClick:function(){B()},children:y?"重新答题":"提交答案"})}),!e&&(0,j.jsx)(h.Z,{})]})})),C=t(92832),_=t(5122),B=(0,d.connect)((function(n){return{problemset:n.problemset}}))((function(n){n.problemset;var e,t=n.datas,i=n.showdiv,s=(n.dispatch,(0,c.useState)({})),l=a()(s,2),d=l[0],A=l[1],p=(0,c.useState)([]),g=a()(p,2),y=g[0],B=g[1],E=(0,c.useState)(!1),w=a()(E,2),I=w[0],Q=w[1];(0,c.useEffect)((function(){if(Object.keys(t)){var n,e=(0,v.cloneDeep)(t);A(e),B(null==e||null===(n=e.standard_answer)||void 0===n?void 0:n.map((function(n){return f()({value:"",answer:(null==n?void 0:n.answer_text)||[]},n)})))}}),[t]);var N=function(){var n=o()(r()().mark((function n(){var e,i;return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!y.some((function(n){return""===(null==n?void 0:n.value)}))){n.next=3;break}return u.ZP.warning("请您作答后再提交"),n.abrupt("return");case 3:I&&(i=(0,v.cloneDeep)(t),B(null==i||null===(e=i.standard_answer)||void 0===e?void 0:e.map((function(n){return f()({value:"",answer:(null==n?void 0:n.answer_text)||[]},n)})))),Q(!I);case 5:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,j.jsxs)("div",{children:[(0,j.jsx)("div",{className:"c-light-primary mb5 font16",children:"填空题"}),(0,j.jsx)(m.Z,{value:null==d?void 0:d.name}),null==y?void 0:y.map((function(n,e){var t=n.value,i=n.answer,r="";return I&&null!=i&&i.includes(t)&&(r=b.Z.green),!I||null!=i&&i.includes(t)||(r=b.Z.red),(0,j.jsxs)("div",{style:{pointerEvents:I?"none":"auto",marginTop:10},className:"".concat(b.Z.row," ").concat(r),children:[(0,j.jsxs)("div",{style:{minWidth:80},children:["填空",e+1,"答案:"]}),1===(null==n?void 0:n.model)?(0,j.jsx)(C.Z.TextArea,{className:b.Z.textArea,style:{width:610,marginRight:10},onChange:function(n){return function(n,e){var t=y.map((function(t,i){return f()(f()({},t),{},{value:i===e?n.target.value:t.value})}));B(t)}(n,e)},value:t}):(0,j.jsx)(_.Z,{value:t,onChange:function(n){var t=y.map((function(t,i){return f()(f()({},t),{},{value:i===e?n:t.value})}));B(t)}}),I&&(null==i?void 0:i.includes(t))&&(0,j.jsx)("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),I&&!(null!=i&&i.includes(t))&&(0,j.jsx)("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"})]},e)})),I&&(0,j.jsx)(c.Fragment,{children:(0,j.jsxs)("div",{style:{background:"#F6F7F9",padding:10,marginTop:10},children:[null==d||null===(e=d.standard_answer)||void 0===e?void 0:e.map((function(n,e){var t,i;return(0,j.jsxs)("div",{className:"c-grey-333 mb5",children:[(0,j.jsxs)("b",{children:["填空",e+1,"答案: "]}),1===(null==n?void 0:n.model)?(null==n||null===(t=n.answer_text)||void 0===t?void 0:t.join("、"))||"":(0,j.jsx)(_.Z,{value:null==n||null===(i=n.answer_text)||void 0===i?void 0:i.join("、"),disabled:!0})]})})),(0,j.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,j.jsx)("b",{children:"解析: "}),(null==d?void 0:d.analysis)||"暂无解析"]})]})}),(0,j.jsx)("div",{style:{textAlign:"end",marginTop:10},children:(0,j.jsx)(x.ZP,{type:"primary",onClick:function(){N()},children:I?"重新答题":"提交答案"})}),!i&&(0,j.jsx)(h.Z,{})]})})),E=(0,d.connect)((function(n){return{problemset:n.problemset}}))((function(n){n.problemset;var e,t=n.datas,i=n.showdiv,s=(n.dispatch,(0,c.useState)({})),l=a()(s,2),d=l[0],A=l[1],p=(0,c.useState)([]),y=a()(p,2),C=y[0],_=y[1],B=(0,c.useState)(!1),E=a()(B,2),w=E[0],I=E[1];(0,c.useEffect)((function(){if(Object.keys(t)){var n=(0,v.cloneDeep)(t);A(n),_(n.choices)}}),[t]);var Q=function(){var n=o()(r()().mark((function n(){var e;return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(C.some((function(n){return null==n?void 0:n.checked}))){n.next=3;break}return u.ZP.warning("请您作答后再提交"),n.abrupt("return");case 3:w&&(e=(0,v.cloneDeep)(t),_(e.choices)),I(!w);case 5:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,j.jsxs)("div",{children:[(0,j.jsx)("div",{className:"c-light-primary mb5 font16",children:"判断题"}),(0,j.jsx)(m.Z,{value:null==d?void 0:d.name}),null==C?void 0:C.map((function(n,e){var t=n.is_answer,i=n.checked,r=n.choice_text,s="";return w&&t&&(s=b.Z.green),w&&!t&&i&&(s=b.Z.red),(0,j.jsxs)("div",{style:{pointerEvents:w?"none":"auto"},className:"".concat(b.Z.row," ").concat(s),children:[(0,j.jsx)(g.ZP,{onChange:function(n){return function(n,e){console.log(n.target.checked);var t=C.map((function(t,i){return f()(f()({},t),{},{checked:i===e&&n.target.checked})}));_(t)}(n,e)},checked:i}),(0,j.jsx)(m.Z,{className:b.Z.html,value:r}),w&&t&&(0,j.jsx)("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),w&&!t&&i&&(0,j.jsx)("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"})]},e)})),w&&(0,j.jsx)(c.Fragment,{children:(0,j.jsxs)("div",{style:{background:"#F6F7F9",padding:10,marginTop:10},children:[(0,j.jsxs)("div",{className:"c-grey-333 mb5",children:[(0,j.jsx)("b",{children:"正确答案: "}),null===(e=C.find((function(n){return n.is_answer})))||void 0===e?void 0:e.choice_text]}),(0,j.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,j.jsx)("b",{children:"解析: "}),(null==d?void 0:d.analysis)||"暂无解析"]})]})}),(0,j.jsx)("div",{style:{textAlign:"end",marginTop:10},children:(0,j.jsx)(x.ZP,{type:"primary",onClick:function(){Q()},children:w?"重新答题":"提交答案"})}),!i&&(0,j.jsx)(h.Z,{})]})})),w=t(24905),I=(0,d.connect)((function(n){return{problemset:n.problemset}}))((function(n){n.problemset;var e=n.data,t=n.showdiv,i=(n.dispatch,(0,c.useState)([])),s=a()(i,2),l=s[0],d=s[1],A=(0,c.useState)(!1),p=a()(A,2),g=p[0],y=p[1],C=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];(0,c.useEffect)((function(){var n;(null===(n=Object.keys(e))||void 0===n?void 0:n.length)>0&&d(e.choices)}),[e]);var _,B=function(){var n=o()(r()().mark((function n(){var t;return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(l.some((function(n){return null==n?void 0:n.checked}))){n.next=3;break}return u.ZP.warning("请您作答后再提交"),n.abrupt("return");case 3:g&&(t=(0,v.cloneDeep)(e),d(t.choices)),y(!g);case 5:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,j.jsxs)("div",{children:[(0,j.jsx)("div",{className:"c-light-primary mb5 font16",children:"多选题"}),(0,j.jsx)(m.Z,{value:null==e?void 0:e.name}),null==l?void 0:l.map((function(n,e){var t=n.is_answer,i=n.checked,r=n.choice_text,s="";return g&&t&&(s=b.Z.green),g&&!t&&i&&(s=b.Z.red),(0,j.jsxs)("div",{style:{pointerEvents:g?"none":"auto"},className:"".concat(b.Z.row," ").concat(s),children:[(0,j.jsx)(w.Z,{style:{padding:3},onChange:function(n){return function(n,e){console.log(n.target.checked);var t=l.map((function(t,i){return f()(f()({},t),{},{checked:i===e?n.target.checked:t.checked})}));d(t)}(n,e)},checked:i}),(0,j.jsxs)("span",{children:[C[e],". "]}),(0,j.jsx)(m.Z,{className:b.Z.html,value:r}),g&&t&&(0,j.jsx)("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),g&&!t&&i&&(0,j.jsx)("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"})]},e)})),g&&(0,j.jsx)(c.Fragment,{children:(0,j.jsxs)("div",{style:{background:"#F6F7F9",padding:10,marginTop:10},children:[(0,j.jsxs)("div",{className:"c-grey-333 mb5",children:[(0,j.jsx)("b",{children:"正确答案: "}),(_="",l.forEach((function(n,e){n.is_answer&&(_+=C[e])})),_)]}),(0,j.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,j.jsx)("b",{children:"解析: "}),(null==e?void 0:e.analysis)||"暂无解析"]})]})}),(0,j.jsx)("div",{style:{textAlign:"end",marginTop:10},children:(0,j.jsx)(x.ZP,{type:"primary",onClick:function(){B()},children:g?"重新答题":"提交答案"})}),!t&&(0,j.jsx)(h.Z,{})]})})),Q=t(16318),N=(0,d.connect)((function(n){return{problemset:n.problemset}}))((function(n){n.problemset,n.dispatch;var e,t,i,s=n.showdiv,l=n.datas,d=(0,c.useState)({}),A=a()(d,2),p=A[0],f=A[1],g=(0,c.useState)(!1),b=a()(g,2),y=b[0],C=b[1],_=(0,c.useState)(!0),B=a()(_,2),E=B[0],w=B[1],I=(0,c.useState)(""),N=a()(I,2),k=N[0],Z=N[1];(0,c.useEffect)((function(){if(Object.keys(l)){var n=(0,v.cloneDeep)(l);f(n)}}),[l]);var T=function(){var n=o()(r()().mark((function n(){return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(k){n.next=3;break}return u.ZP.warning("请您作答后再提交"),n.abrupt("return");case 3:y&&Z(""),C(!y);case 5:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,j.jsxs)("div",{children:[(0,j.jsx)("div",{className:"c-light-primary mb5 font16",children:"简答题"}),(0,j.jsx)(m.Z,{value:null==p?void 0:p.name,style:{marginBottom:10}}),E?(0,j.jsx)("div",{style:{border:"1px solid #f1f1f1",padding:10},onClick:function(){w(!1)},children:" 点击开始作答"}):(0,j.jsx)(Q.Z,{defaultValue:k,onChange:function(n){Z(n)}}),y&&(0,j.jsx)(c.Fragment,{children:(0,j.jsxs)("div",{style:{background:"#F6F7F9",padding:10,marginTop:10},children:[(0,j.jsx)("span",{style:{color:"#5F6368"},children:"参考答案:"}),(0,j.jsx)("br",{}),(null==p||null===(e=p.answer_texts)||void 0===e?void 0:e[0])||"暂无参考答案",(null==p||null===(t=p.keywords)||void 0===t?void 0:t.length)>0&&(0,j.jsxs)("div",{style:{marginTop:10,marginBottom:10},children:[(0,j.jsx)("span",{style:{color:"#5F6368"},children:"关键词:"}),null==p||null===(i=p.keywords)||void 0===i?void 0:i.map((function(n){var e,t,i;return(null==n||null===(e=n.keyword)||void 0===e?void 0:e.length)>1?(null==n||null===(t=n.keyword)||void 0===t?void 0:t.join("或"))+";":(null==n||null===(i=n.keyword)||void 0===i?void 0:i[0])+";"}))]}),(0,j.jsxs)("div",{style:{color:"#5F6368"},children:[(0,j.jsx)("b",{children:"解析:"}),(0,j.jsx)("br",{}),(null==p?void 0:p.analysis)||"暂无解析"]})]})}),(0,j.jsx)("div",{style:{textAlign:"end",marginTop:10},children:(0,j.jsx)(x.ZP,{type:"primary",onClick:function(){T()},children:y?"重新答题":"提交答案"})}),!s&&(0,j.jsx)(h.Z,{})]})})),k=(0,d.connect)((function(n){return{problemset:n.problemset}}))((function(n){var e,t,i=n.problemset,s=n.dispatch,l=(0,c.useState)({}),d=a()(l,2),p=d[0],f=d[1],g=(0,c.useState)(!1),x=a()(g,2),h=x[0],b=x[1],C=(0,c.useState)(!0),_=a()(C,2),w=(_[0],_[1]),Q=(0,c.useState)(""),k=a()(Q,2),Z=k[0],T=k[1];(0,c.useEffect)((function(){var n;if("COMBINATION"===(null==i||null===(n=i.actionTabs)||void 0===n?void 0:n.key)){var e,t=(0,v.cloneDeep)(null==i||null===(e=i.actionTabs)||void 0===e?void 0:e.params);f(t)}}),[null==i||null===(e=i.actionTabs)||void 0===e?void 0:e.key]);var P=function(){var n=o()(r()().mark((function n(){return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(Z){n.next=3;break}return u.ZP.warning("请您作答后再提交"),n.abrupt("return");case 3:b(!h);case 5:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,j.jsx)(A.Z,{centered:!0,destroyOnClose:!0,open:"COMBINATION"===i.actionTabs.key,title:"试题体验",okText:h?"重新答题":"提交答案",cancelText:"取消",footer:!1,width:708,bodyStyle:{maxHeight:600,overflow:"auto"},onOk:P,onCancel:function(){f({}),w(!0),b(!1),T(""),s({type:"problemset/setActionTabs",payload:{}})},children:(0,j.jsxs)("div",{children:[(0,j.jsx)("div",{className:"c-light-primary mb5 font16",children:"组合题"}),(0,j.jsx)(m.Z,{value:null==p?void 0:p.name,style:{marginBottom:10}}),null==p||null===(t=p.sub_item_banks)||void 0===t?void 0:t.map((function(n,e){var t,i,r,s,o;return"SINGLE"===(null==n?void 0:n.item_type)?(0,j.jsx)(y,{data:n,showdiv:(null==p||null===(t=p.sub_item_banks)||void 0===t?void 0:t.length)-1===e}):"MULTIPLE"===(null==n?void 0:n.item_type)?(0,j.jsx)(I,{data:n,showdiv:(null==p||null===(i=p.sub_item_banks)||void 0===i?void 0:i.length)-1===e}):"JUDGMENT"===(null==n?void 0:n.item_type)?(0,j.jsx)(E,{datas:n,showdiv:(null==p||null===(r=p.sub_item_banks)||void 0===r?void 0:r.length)-1===e}):"COMPLETION"===(null==n?void 0:n.item_type)?(0,j.jsx)(B,{datas:n,showdiv:(null==p||null===(s=p.sub_item_banks)||void 0===s?void 0:s.length)-1===e}):"SUBJECTIVE"===(null==n?void 0:n.item_type)?(0,j.jsx)(N,{datas:n,showdiv:(null==p||null===(o=p.sub_item_banks)||void 0===o?void 0:o.length)-1===e}):void 0}))]})})}))},34120:function(n,e,t){var i=t(7557),r=t.n(i),s=t(41498),o=t.n(s),l=t(82242),a=t.n(l),c=t(79800),d=t.n(c),u=t(59301),A=t(5296),v=t(8591),m=t(43418),p=t(92832),f=t(89392),g=t(21475),x=t(38279),h=t(5122),b=t(37712);e.Z=(0,A.connect)((function(n){return{problemset:n.problemset}}))((function(n){var e,t,i=n.problemset,s=n.dispatch,l=(0,u.useState)({}),c=d()(l,2),A=c[0],j=c[1],y=(0,u.useState)([]),C=d()(y,2),_=C[0],B=C[1],E=(0,u.useState)(!1),w=d()(E,2),I=w[0],Q=w[1];(0,u.useEffect)((function(){var n;if("COMPLETION"===(null==i||null===(n=i.actionTabs)||void 0===n?void 0:n.key)){var e,t,r=(0,f.cloneDeep)(null==i||null===(e=i.actionTabs)||void 0===e?void 0:e.params);j(r),B(null==r||null===(t=r.standard_answer)||void 0===t?void 0:t.map((function(n){return a()({value:"",answer:(null==n?void 0:n.answer_text)||[]},n)})))}}),[null==i||null===(e=i.actionTabs)||void 0===e?void 0:e.key]);var N=function(){var n=o()(r()().mark((function n(){var e,t,s;return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!_.some((function(n){return""===(null==n?void 0:n.value)}))){n.next=3;break}return v.ZP.warning("请您作答后再提交"),n.abrupt("return");case 3:I&&(s=(0,f.cloneDeep)(null==i||null===(e=i.actionTabs)||void 0===e?void 0:e.params),B(null==s||null===(t=s.standard_answer)||void 0===t?void 0:t.map((function(n){return a()({value:"",answer:(null==n?void 0:n.answer_text)||[]},n)})))),Q(!I);case 5:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,b.jsx)(m.Z,{centered:!0,destroyOnClose:!0,open:"COMPLETION"===i.actionTabs.key,title:"试题体验",okText:I?"重新答题":"提交答案",cancelText:"取消",width:708,onOk:N,onCancel:function(){j({}),B([]),Q(!1),s({type:"problemset/setActionTabs",payload:{}})},children:(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"c-light-primary mb5 font16",children:"填空题"}),(0,b.jsx)(x.Z,{value:null==A?void 0:A.name}),null==_?void 0:_.map((function(n,e){var t=n.value,i=n.answer,r="";return I&&null!=i&&i.includes(t)&&(r=g.Z.green),!I||null!=i&&i.includes(t)||(r=g.Z.red),(0,b.jsxs)("div",{style:{pointerEvents:I?"none":"auto",marginTop:10},className:"".concat(g.Z.row," ").concat(r),children:[(0,b.jsxs)("div",{style:{minWidth:80},children:["填空",e+1,"答案:"]}),1===(null==n?void 0:n.model)?(0,b.jsx)(p.Z.TextArea,{className:g.Z.textArea,style:{width:610,marginRight:10},onChange:function(n){return function(n,e){var t=_.map((function(t,i){return a()(a()({},t),{},{value:i===e?n.target.value:t.value})}));B(t)}(n,e)},value:t}):(0,b.jsx)(h.Z,{value:t,onChange:function(n){var t=_.map((function(t,i){return a()(a()({},t),{},{value:i===e?n:t.value})}));B(t)}}),I&&(null==i?void 0:i.includes(t))&&(0,b.jsx)("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),I&&!(null!=i&&i.includes(t))&&(0,b.jsx)("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"})]},e)})),I&&(0,b.jsxs)(u.Fragment,{children:[(0,b.jsx)("div",{className:g.Z.line}),null==A||null===(t=A.standard_answer)||void 0===t?void 0:t.map((function(n,e){var t,i;return(0,b.jsxs)("div",{className:"c-grey-333 mb5",children:[(0,b.jsxs)("b",{children:["填空",e+1,"答案: "]}),1===(null==n?void 0:n.model)?(null==n||null===(t=n.answer_text)||void 0===t?void 0:t.join("、"))||"":(0,b.jsx)(h.Z,{value:null==n||null===(i=n.answer_text)||void 0===i?void 0:i.join("、"),disabled:!0})]})})),(0,b.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,b.jsx)("b",{children:"解析: "}),(null==A?void 0:A.analysis)||"暂无解析"]})]})]})})}))},53208:function(n,e,t){var i=t(82242),r=t.n(i),s=t(7557),o=t.n(s),l=t(41498),a=t.n(l),c=t(79800),d=t.n(c),u=t(59301),A=t(5296),v=t(8591),m=t(43418),p=t(5112),f=t(89392),g=t(21475),x=t(38279),h=t(37712);e.Z=(0,A.connect)((function(n){return{problemset:n.problemset}}))((function(n){var e,t,i=n.problemset,s=n.dispatch,l=(0,u.useState)({}),c=d()(l,2),A=c[0],b=c[1],j=(0,u.useState)([]),y=d()(j,2),C=y[0],_=y[1],B=(0,u.useState)(!1),E=d()(B,2),w=E[0],I=E[1];(0,u.useEffect)((function(){var n;if("JUDGMENT"===(null==i||null===(n=i.actionTabs)||void 0===n?void 0:n.key)){var e,t=(0,f.cloneDeep)(null==i||null===(e=i.actionTabs)||void 0===e?void 0:e.params);b(t),_(t.choices)}}),[null==i||null===(e=i.actionTabs)||void 0===e?void 0:e.key]);var Q=function(){var n=a()(o()().mark((function n(){var e,t;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(C.some((function(n){return null==n?void 0:n.checked}))){n.next=3;break}return v.ZP.warning("请您作答后再提交"),n.abrupt("return");case 3:w&&(t=(0,f.cloneDeep)(null==i||null===(e=i.actionTabs)||void 0===e?void 0:e.params),_(t.choices)),I(!w);case 5:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,h.jsx)(m.Z,{centered:!0,destroyOnClose:!0,open:"JUDGMENT"===i.actionTabs.key,title:"试题体验",okText:w?"重新答题":"提交答案",cancelText:"取消",width:708,onOk:Q,onCancel:function(){b({}),_([]),I(!1),s({type:"problemset/setActionTabs",payload:{}})},children:(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"c-light-primary mb5 font16",children:"判断题"}),(0,h.jsx)(x.Z,{value:null==A?void 0:A.name}),null==C?void 0:C.map((function(n,e){var t=n.is_answer,i=n.checked,s=n.choice_text,o="";return w&&t&&(o=g.Z.green),w&&!t&&i&&(o=g.Z.red),(0,h.jsxs)("div",{style:{pointerEvents:w?"none":"auto"},className:"".concat(g.Z.row," ").concat(o),children:[(0,h.jsx)(p.ZP,{onChange:function(n){return function(n,e){console.log(n.target.checked);var t=C.map((function(t,i){return r()(r()({},t),{},{checked:i===e&&n.target.checked})}));_(t)}(n,e)},checked:i}),(0,h.jsx)(x.Z,{className:g.Z.html,value:s}),w&&t&&(0,h.jsx)("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),w&&!t&&i&&(0,h.jsx)("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"})]},e)})),w&&(0,h.jsxs)(u.Fragment,{children:[(0,h.jsx)("div",{className:g.Z.line}),(0,h.jsxs)("div",{className:"c-grey-333 mb5",children:[(0,h.jsx)("b",{children:"正确答案: "}),null===(t=C.find((function(n){return n.is_answer})))||void 0===t?void 0:t.choice_text]}),(0,h.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,h.jsx)("b",{children:"解析: "}),(null==A?void 0:A.analysis)||"暂无解析"]})]})]})})}))},1693:function(n,e,t){var i=t(82242),r=t.n(i),s=t(7557),o=t.n(s),l=t(41498),a=t.n(l),c=t(79800),d=t.n(c),u=t(59301),A=t(5296),v=t(8591),m=t(43418),p=t(24905),f=t(89392),g=t(21475),x=t(38279),h=t(37712);e.Z=(0,A.connect)((function(n){return{problemset:n.problemset}}))((function(n){var e,t=n.problemset,i=n.dispatch,s=(0,u.useState)({}),l=d()(s,2),c=l[0],A=l[1],b=(0,u.useState)([]),j=d()(b,2),y=j[0],C=j[1],_=(0,u.useState)(!1),B=d()(_,2),E=B[0],w=B[1],I=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];(0,u.useEffect)((function(){var n;if("MULTIPLE"===(null==t||null===(n=t.actionTabs)||void 0===n?void 0:n.key)){var e,i=(0,f.cloneDeep)(null==t||null===(e=t.actionTabs)||void 0===e?void 0:e.params);A(i),C(i.choices)}}),[null==t||null===(e=t.actionTabs)||void 0===e?void 0:e.key]);var Q,N=function(){var n=a()(o()().mark((function n(){var e,i;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(y.some((function(n){return null==n?void 0:n.checked}))){n.next=3;break}return v.ZP.warning("请您作答后再提交"),n.abrupt("return");case 3:E&&(i=(0,f.cloneDeep)(null==t||null===(e=t.actionTabs)||void 0===e?void 0:e.params),C(i.choices)),w(!E);case 5:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,h.jsx)(m.Z,{centered:!0,destroyOnClose:!0,open:"MULTIPLE"===t.actionTabs.key,title:"试题体验",okText:E?"重新答题":"提交答案",cancelText:"取消",width:708,onOk:N,onCancel:function(){A({}),C([]),w(!1),i({type:"problemset/setActionTabs",payload:{}})},children:(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"c-light-primary mb5 font16",children:"多选题"}),(0,h.jsx)(x.Z,{value:null==c?void 0:c.name}),null==y?void 0:y.map((function(n,e){var t=n.is_answer,i=n.checked,s=n.choice_text,o="";return E&&t&&(o=g.Z.green),E&&!t&&i&&(o=g.Z.red),(0,h.jsxs)("div",{style:{pointerEvents:E?"none":"auto"},className:"".concat(g.Z.row," ").concat(o),children:[(0,h.jsx)(p.Z,{style:{padding:3},onChange:function(n){return function(n,e){console.log(n.target.checked);var t=y.map((function(t,i){return r()(r()({},t),{},{checked:i===e?n.target.checked:t.checked})}));C(t)}(n,e)},checked:i}),(0,h.jsxs)("span",{children:[I[e],". "]}),(0,h.jsx)(x.Z,{className:g.Z.html,value:s}),E&&t&&(0,h.jsx)("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),E&&!t&&i&&(0,h.jsx)("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"})]},e)})),E&&(0,h.jsxs)(u.Fragment,{children:[(0,h.jsx)("div",{className:g.Z.line}),(0,h.jsxs)("div",{className:"c-grey-333 mb5",children:[(0,h.jsx)("b",{children:"正确答案: "}),(Q="",y.forEach((function(n,e){n.is_answer&&(Q+=I[e])})),Q)]}),(0,h.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,h.jsx)("b",{children:"解析: "}),(null==c?void 0:c.analysis)||"暂无解析"]})]})]})})}))},22630:function(n,e,t){var i=t(82242),r=t.n(i),s=t(7557),o=t.n(s),l=t(41498),a=t.n(l),c=t(79800),d=t.n(c),u=t(59301),A=t(5296),v=t(8591),m=t(43418),p=t(5112),f=t(89392),g=t(21475),x=t(38279),h=t(37712);e.Z=(0,A.connect)((function(n){return{problemset:n.problemset}}))((function(n){var e,t=n.problemset,i=n.dispatch,s=(0,u.useState)({}),l=d()(s,2),c=l[0],A=l[1],b=(0,u.useState)([]),j=d()(b,2),y=j[0],C=j[1],_=(0,u.useState)(!1),B=d()(_,2),E=B[0],w=B[1],I=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];(0,u.useEffect)((function(){var n;if("SINGLE"===(null==t||null===(n=t.actionTabs)||void 0===n?void 0:n.key)){var e,i=(0,f.cloneDeep)(null==t||null===(e=t.actionTabs)||void 0===e?void 0:e.params);A(i),C(i.choices)}}),[null==t||null===(e=t.actionTabs)||void 0===e?void 0:e.key]);var Q=function(){var n=a()(o()().mark((function n(){var e,i;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(y.some((function(n){return null==n?void 0:n.checked}))){n.next=3;break}return v.ZP.warning("请您作答后再提交"),n.abrupt("return");case 3:E&&(i=(0,f.cloneDeep)(null==t||null===(e=t.actionTabs)||void 0===e?void 0:e.params),C(i.choices)),w(!E);case 5:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,h.jsx)(m.Z,{centered:!0,destroyOnClose:!0,open:"SINGLE"===t.actionTabs.key,title:"试题体验",okText:E?"重新答题":"提交答案",cancelText:"取消",width:708,onOk:Q,onCancel:function(){A({}),C([]),w(!1),i({type:"problemset/setActionTabs",payload:{}})},children:(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"c-light-primary mb5 font16",children:"单选题"}),(0,h.jsx)(x.Z,{value:null==c?void 0:c.name}),null==y?void 0:y.map((function(n,e){var t=n.is_answer,i=n.checked,s=n.choice_text,o="";return E&&t&&(o=g.Z.green),E&&!t&&i&&(o=g.Z.red),(0,h.jsxs)("div",{style:{pointerEvents:E?"none":"auto"},className:"".concat(g.Z.row," ").concat(o),children:[(0,h.jsx)(p.ZP,{onChange:function(n){return function(n,e){console.log(n.target.checked);var t=y.map((function(t,i){return r()(r()({},t),{},{checked:i===e&&n.target.checked})}));C(t)}(n,e)},checked:i}),(0,h.jsxs)("span",{children:[I[e],". "]}),(0,h.jsx)(x.Z,{className:g.Z.html,value:s}),E&&t&&(0,h.jsx)("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),E&&!t&&i&&(0,h.jsx)("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"})]},e)})),E&&(0,h.jsxs)(u.Fragment,{children:[(0,h.jsx)("div",{className:g.Z.line}),(0,h.jsxs)("div",{className:"c-grey-333 mb5",children:[(0,h.jsx)("b",{children:"正确答案: "}),I[y.findIndex((function(n){return n.is_answer}))]]}),(0,h.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,h.jsx)("b",{children:"解析: "}),(null==c?void 0:c.analysis)||"暂无解析"]})]})]})})}))},46961:function(n,e,t){var i=t(7557),r=t.n(i),s=t(41498),o=t.n(s),l=t(79800),a=t.n(l),c=t(59301),d=t(5296),u=t(8591),A=t(43418),v=t(89392),m=t(21475),p=t(38279),f=t(16318),g=t(37712);e.Z=(0,d.connect)((function(n){return{problemset:n.problemset}}))((function(n){var e,t,i,s,l,d=n.problemset,x=n.dispatch,h=(0,c.useState)({}),b=a()(h,2),j=b[0],y=b[1],C=(0,c.useState)(!1),_=a()(C,2),B=_[0],E=_[1],w=(0,c.useState)(!0),I=a()(w,2),Q=I[0],N=I[1],k=(0,c.useState)(""),Z=a()(k,2),T=Z[0],P=Z[1];(0,c.useEffect)((function(){var n;if("SUBJECTIVE"===(null==d||null===(n=d.actionTabs)||void 0===n?void 0:n.key)){var e,t=(0,v.cloneDeep)(null==d||null===(e=d.actionTabs)||void 0===e?void 0:e.params);y(t)}}),[null==d||null===(e=d.actionTabs)||void 0===e?void 0:e.key]);var X=function(){var n=o()(r()().mark((function n(){return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(T){n.next=3;break}return u.ZP.warning("请您作答后再提交"),n.abrupt("return");case 3:B&&P(""),E(!B);case 5:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return console.log("----",B),(0,g.jsx)(A.Z,{centered:!0,destroyOnClose:!0,open:"SUBJECTIVE"===d.actionTabs.key,title:"试题体验",okText:B?"重新答题":"提交答案",cancelText:"取消",width:800,onOk:X,bodyStyle:{maxHeight:600,overflow:"auto"},onCancel:function(){y({}),N(!0),E(!1),P(""),x({type:"problemset/setActionTabs",payload:{}})},children:(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:"c-light-primary mb5 font16",children:"简答题"}),(0,g.jsx)(p.Z,{value:null==j?void 0:j.name,style:{marginBottom:10,color:"#5f6368"}}),Q?(0,g.jsx)("div",{style:{border:"1px solid #f1f1f1",padding:10},onClick:function(){N(!1)},children:" 点击开始作答"}):(0,g.jsx)(f.Z,{height:160,defaultValue:T,onChange:function(n){P(n)}}),B&&(0,g.jsxs)(c.Fragment,{children:[(0,g.jsx)("div",{className:m.Z.line}),(0,g.jsx)("span",{style:{color:"#5F6368"},children:"参考答案:"}),(0,g.jsx)("div",{style:{marginTop:10},children:(null==j||null===(t=j.answer_texts)||void 0===t?void 0:t[0])||"暂无参考答案"}),(null==j||null===(i=j.keywords)||void 0===i?void 0:i.length)>0&&(0,g.jsxs)("div",{style:{marginTop:10,marginBottom:10},children:[(0,g.jsx)("span",{style:{color:"#5F6368"},children:"关键词:"}),null==j||null===(s=j.keywords)||void 0===s?void 0:s.map((function(n){var e,t,i;return(null==n||null===(e=n.keyword)||void 0===e?void 0:e.length)>1?(null==n||null===(t=n.keyword)||void 0===t?void 0:t.join("或"))+";":(null==n||null===(i=n.keyword)||void 0===i?void 0:i[0])+";"}))]}),(0,g.jsx)("div",{style:{color:"#5F6368",marginTop:(null==j||null===(l=j.keywords)||void 0===l?void 0:l.length)<=0?20:10},children:(0,g.jsx)("b",{children:"解析:"})}),(0,g.jsx)("div",{style:{marginTop:10,color:"#9096A3"},children:(null==j?void 0:j.analysis)||"暂无解析"})]})]})})}))},96352:function(n,e,t){t.d(e,{N:function(){return y},Z:function(){return C}});var i=t(37205),r=t.n(i),s=t(79800),o=t.n(s),l=t(59301),a=t(38279),c=t(5112),d=t(6848),u=t(24905),A=t(20834),v=t(38854),m={flex_box_center:"flex_box_center___K3pXk",flex_space_between:"flex_space_between___JNXiy",flex_box_vertical_center:"flex_box_vertical_center___lX_K7",flex_box_center_end:"flex_box_center_end___ESJAL",flex_box_column:"flex_box_column___nMTYm",line:"line___cNtUM",b1:"b1___xIRxk",b2:"b2___N5uit",list:"list___SBMGo",title:"title___zQP91",tr:"tr___uaxLL",itemDetail:"itemDetail___Ye51x",answerWrapper:"answerWrapper___WJAPa",decoration:"decoration___fOLFB",row:"row___FvSRM",typeRow:"typeRow___qpDsw",type:"type___a8Bs6",typeName:"typeName___EfvMr",typeIcon:"typeIcon___XnhBc",unpublished:"unpublished___h3A34",private:"private___Ok_kP",public:"public___V5_HF",reviewFlag:"reviewFlag___MWDMc",typeRightAction:"typeRightAction___zwJ4e",actionLink:"actionLink___XxdsL",actionIcon:"actionIcon___YoZs8",topicTitle:"topicTitle___TXfB_",topicTitleContent:"topicTitleContent___MceUW",judgmentContent:"judgmentContent___Adte7",programContent:"programContent___R8AFa",otherContent:"otherContent___CNAVC",combinationContent:"combinationContent___NWKpD",con:"con___MJkTE",otherContentItem:"otherContentItem___sXGMT",otehrContentHtml:"otehrContentHtml___MKkjT",difficultyRow:"difficultyRow___E6YVK",updateTimeRow:"updateTimeRow___MPFJY",updateTimeWrap:"updateTimeWrap___iIz5W",updateTimeContent:"updateTimeContent___CpqJg",programLanguage:"programLanguage___lku0d",updateTimeRowAction:"updateTimeRowAction___Y6grB",bottomAction:"bottomAction___sQwM3",borderColorBlue:"borderColorBlue___vZe0j",borderColorRed:"borderColorRed___GPm9E",borderColorFFF:"borderColorFFF___izaeA",borderColorGray:"borderColorGray___WdIyN",selectIcon:"selectIcon___I35Ch",colorGreen:"colorGreen___yFw84",parseAnswerBorder:"parseAnswerBorder___tmhXi",answer:"answer___c9YYj",answerHtml:"answerHtml___sp4Xx",parse:"parse___Lif5r",parseText:"parseText___KMhnK",parseAnswer:"parseAnswer___aFs0o",parseAnswerHtml:"parseAnswerHtml___AfP6o",actionBar:"actionBar___Q6e1E",know:"know___EtJbV",menu:"menu___ODbWA",bottom:"bottom___yLg8j",textBtn:"textBtn___p8TrW"},p=t(93697),f=t(24334),g=t(5122),x=t(21082),h=t(37712),b=["A.","B.","C.","D.","E.","F.","G.","H.","I.","J.","K.","L.","M.","N.","O.","P.","Q.","R.","S.","T.","U.","V.","W.","X.","Y.","Z."],j=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],y=function(n){var e,t,i,r,s,o,a,c,d,u,f,g,b,j,y,C=n.SubjectShare,_=n.isProblemset,B=n.data,E=n.user,w=n.activeTabsKey,I=n.onPublicReview,Q=void 0===I?function(){}:I,N=n.onStartExperience,k=void 0===N?function(){}:N,Z=n.onSetPrivate,T=void 0===Z?function(){}:Z,P=n.onCorrection,X=void 0===P?function(){}:P,O=n.onChangeTag,W=void 0===O?function(){}:O,M=n.onCollect,L=void 0===M?function(){}:M,z=n.onSetPublic,S=void 0===z?function(){}:z,R=n.onDelete,F=void 0===R?function(){}:R,q=(n.onCancel,n.onSelect,n.onMoveTo),V=void 0===q?function(){}:q,H=n.addProblemset,D=void 0===H?function(){}:H,U=n.onSetShare,G=void 0===U?function(){}:U,Y=n.onCancelShare,J=void 0===Y?function(){}:Y,K=n.onPublish,$=void 0===K?function(){}:K,nn=n.onCancelPublish,en=void 0===nn?function(){}:nn,tn="PROGRAM"===B.item_type?"/problems/newedit/".concat(null===(e=B.program_attr)||void 0===e?void 0:e.identifier,"?tabs_key=").concat(w):"BPROGRAM"===B.item_type?"/problemset/edit/".concat(null===(t=B.program_attr)||void 0===t?void 0:t.identifier,"?type=1&tabs_key=").concat(w):"/problemset/edit/".concat(B.id,"?tabs_key=").concat(w),rn="0"===w&&!B.public&&!B.apply&&("PROGRAM"===B.item_type&&0!==(null===(i=B.program_attr)||void 0===i?void 0:i.status)||"PROGRAM"!==B.item_type),sn=[{label:(0,h.jsx)("a",{className:m.actionLink,onClick:function(){var n;return en(null==B||null===(n=B.program_attr)||void 0===n?void 0:n.identifier)},children:"撤销发布"}),key:"0",show:("0"===w||"3"===w)&&"PROGRAM"===B.item_type&&0!==(null===(r=B.program_attr)||void 0===r?void 0:r.status)&&!B.public&&(null===(s=B.author)||void 0===s?void 0:s.login)===(null===(o=E.userInfo)||void 0===o?void 0:o.login)},{label:(0,h.jsx)("a",{className:m.actionLink,onClick:function(){return V(B.id)},children:"移动到"}),key:"1",show:"0"===w},{label:(0,h.jsx)("a",{className:m.actionLink,onClick:function(){B.is_share?J(B.id):G(B.id)},children:"共享"}),key:"3",show:"0"===w&&C},{label:(0,h.jsx)("a",{className:m.actionLink,onClick:function(){return S(B)},children:"公开"}),key:"4",show:rn},{label:(0,h.jsx)("a",{className:m.reviewFlag,onClick:Q,children:"公开审核中"}),key:"5",show:"0"===w&&!B.public&&B.apply&&("PROGRAM"===B.item_type&&0!==B.program_attr.status||"PROGRAM"!==B.item_type)},{label:(0,h.jsx)("a",{className:m.actionLink,onClick:function(){return T(B.id)},children:"撤销公开"}),key:"6",show:("0"===w||"1"===w)&&B.public&&(null===(a=B.author)||void 0===a?void 0:a.login)===(null===(c=E.userInfo)||void 0===c?void 0:c.login)||"1"===w&&(0,p.ag)()},{label:(0,h.jsx)("a",{className:m.actionLink,onClick:function(){return L(B.id,B.is_collected)},children:"取消收藏"}),key:"7",show:"2"===w},{label:(0,h.jsx)("a",{className:m.actionLink,onClick:function(){var n;return $(null==B||null===(n=B.program_attr)||void 0===n?void 0:n.identifier)},children:"发布"}),key:"8",show:("0"===w||"3"===w)&&"PROGRAM"===B.item_type&&0===(null===(d=B.program_attr)||void 0===d?void 0:d.status)&&!B.public&&(null===(u=B.author)||void 0===u?void 0:u.login)===(null===(f=E.userInfo)||void 0===f?void 0:f.login)},{label:(0,h.jsx)("a",{className:m.actionLink,onClick:function(){return L(B.id,B.is_collected)},children:B.is_collected?"取消收藏":"收藏"}),key:"9",show:!("1"!==w&&"3"!==w||(0,p.ag)()||(0,p.JA)()||(null===(g=B.author)||void 0===g?void 0:g.login)===(null===(b=E.userInfo)||void 0===b?void 0:b.login))},{label:(0,h.jsx)("a",{className:m.actionLink,onClick:function(){return X(B.id)},children:"纠错"}),key:"10",show:"0"!==w&&!(0,p.ag)()&&!(0,p.JA)()},{label:(0,h.jsx)("a",{className:m.actionLink,onClick:function(){return W(B)},children:"修改知识点"}),key:"15",show:"0"===w||"3"===w&&(null==B?void 0:B.edit_item_bank)},{label:(0,h.jsx)("a",{className:m.actionLink,onClick:function(){return F(B.id)},children:"删除"}),key:"11",show:"0"===w&&!B.public||"1"===w&&(0,p.ag)()&&(null===(j=B.author)||void 0===j?void 0:j.login)!==(null===(y=E.userInfo)||void 0===y?void 0:y.login)},{label:(0,h.jsx)("a",{className:m.actionLink,onClick:function(){return D(B.id)},children:"加入我的题库"}),key:"12",show:"1"===w||"3"===w}].filter((function(n){return n.show})),on=(0,h.jsx)(A.Z,{forceSubMenuRender:!0,className:m.menu,items:sn}),ln=(0,h.jsx)(A.Z,{forceSubMenuRender:!0,className:m.menu,children:(0,h.jsx)(A.Z.Item,{children:(0,h.jsx)("a",{className:m.actionLink,onClick:function(){return X(B.id)},children:"纠错"})},"10")}),an="0"!==w&&!(0,p.ag)()&&!(0,p.JA)();return(0,h.jsx)(l.Fragment,{children:_?(0,h.jsxs)(h.Fragment,{children:[("0"===w||"3"===w&&(null==B?void 0:B.edit_item_bank))&&!B.public&&(0,h.jsxs)("span",{className:m.textBtn,style:{cursor:"pointer"},onClick:function(){return(0,x.xg)(tn)},children:[(0,h.jsxs)("div",{className:m.line,children:[(0,h.jsx)("b",{className:m.b1}),(0,h.jsx)("b",{className:m.b2})]}),(0,h.jsx)("i",{className:"iconfont icon-bianji10 font14 mr5"}),"编辑"]}),(0,h.jsxs)("span",{className:m.textBtn,style:{cursor:"pointer"},onClick:function(){return k(B)},children:[(0,h.jsxs)("div",{className:m.line,children:[(0,h.jsx)("b",{className:m.b1}),(0,h.jsx)("b",{className:m.b2})]}),(0,h.jsx)("i",{className:"iconfont icon-tiyan font14 mr5"}),"体验",(0,h.jsxs)("div",{className:m.line,children:[(0,h.jsx)("b",{className:m.b1}),(0,h.jsx)("b",{className:m.b2})]})]}),sn.length>0&&(0,h.jsx)(v.Z,{dropdownRender:function(){return on},children:(0,h.jsx)("span",{style:{cursor:"default",width:"105px"},onClick:function(n){return n.preventDefault()},children:(0,h.jsxs)("span",{className:m.textBtn,children:[(0,h.jsx)("i",{className:"iconfont icon-gengduo5 font14 mr5"}),"更多",(0,h.jsxs)("div",{className:m.line,children:[(0,h.jsx)("b",{className:m.b1}),(0,h.jsx)("b",{className:m.b2})]})]})})})]}):an?(0,h.jsx)(v.Z,{className:"ml40",dropdownRender:function(){return ln},children:(0,h.jsx)("span",{style:{cursor:"default",width:"105px"},onClick:function(n){return n.preventDefault()},children:(0,h.jsxs)("span",{className:m.textBtn,children:[(0,h.jsx)("i",{className:"iconfont icon-gengduo5 font14 mr5"}),"更多",(0,h.jsxs)("div",{className:m.line,children:[(0,h.jsx)("b",{className:m.b1}),(0,h.jsx)("b",{className:m.b2})]})]})})}):(0,h.jsx)("span",{})})},C=function(n){var e,t,i,s,A,v=n.data,p=n.selectIds,x=n.onSelectCheckBox,y=void 0===x?function(){}:x,C=n.showCheckbox,_=void 0===C||C,B=(0,l.useState)(!1),E=o()(B,2),w=E[0],I=E[1],Q=function(){var n;if("BPROGRAM"!==(null==v?void 0:v.item_type))return(0,h.jsx)("div",{children:null===(n=v.standard_answer)||void 0===n?void 0:n.map((function(n,e){var t,i;return(0,h.jsx)("div",{className:m.answerHtml,children:1===(null==n?void 0:n.model)?"答案(填空".concat(n.position,"):").concat(null==n||null===(t=n.answer_text)||void 0===t?void 0:t.join("、")):(0,h.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,h.jsxs)("span",{style:{minWidth:110},children:["答案(填空",n.position,"):"]}),(0,h.jsx)(g.Z,{value:null==n||null===(i=n.answer_text)||void 0===i?void 0:i.join("、"),readOnly:!0})]})},e)}))})};return(0,h.jsxs)("div",{className:m.itemWrap,children:[(0,h.jsxs)("div",{className:m.list,children:[_&&(0,h.jsx)(u.Z,{className:"mr10",onChange:function(n){var e=r()(p);n.target.checked?e.push(v.id):e=e.filter((function(n){return n!==v.id})),y(e)},checked:p.includes(v.id)}),(0,h.jsx)("div",{onClick:function(){return I(!w)},className:m.title,children:(0,h.jsx)(a.Z,{showLines:1,showTextOnly:!0,className:m.topicTitleContent,value:"BPROGRAM"===(null==v?void 0:v.item_type)?null==v||null===(e=v.program_attr)||void 0===e?void 0:e.description:v.name},1)}),(0,h.jsx)("div",{onClick:function(){return I(!w)},className:m.tr,children:(0,h.jsx)("i",{style:{transform:w?"scale(0.5) rotate(-180deg)":"scale(0.5) rotate(0deg)"},className:"iconfont icon-zhankai4"})})]}),(0,h.jsxs)("aside",{style:w?{display:"block"}:{display:"none"},className:m.itemDetail,children:[(0,h.jsxs)("div",{style:{marginBottom:44},children:[(0,h.jsx)(a.Z,{className:m.topicTitleContent,value:"BPROGRAM"===(null==v?void 0:v.item_type)?null==v||null===(t=v.program_attr)||void 0===t?void 0:t.description:v.name},2),(0,h.jsx)("div",{className:"".concat(m.row," mt15"),children:"JUDGMENT"===v.item_type?(0,h.jsx)("div",{className:m.judgmentContent,children:v.choices.map((function(n,e){return(0,h.jsx)(c.ZP,{disabled:!0,children:n.choice_text},e)}))}):"PROGRAM"===v.item_type?(0,h.jsx)("div",{className:m.programContent,children:(0,h.jsx)(a.Z,{value:null===(s=v.program_attr)||void 0===s?void 0:s.description})}):"COMBINATION"===v.item_type?(0,h.jsx)("div",{className:m.combinationContent,children:null==v||null===(A=v.sub_item_banks)||void 0===A?void 0:A.map((function(n,e){var t,i,r,s,o,u="(题目".concat(e+1,"-").concat("SINGLE"==(null==n?void 0:n.item_type)?"单选题":"MULTIPLE"==(null==n?void 0:n.item_type)?"多选题":"COMPLETION"==(null==n?void 0:n.item_type)?"填空题":"JUDGMENT"==(null==n?void 0:n.item_type)?"判断题":"简答题",") ");return(0,h.jsxs)(l.Fragment,{children:[(0,h.jsx)("div",{style:{marginTop:10,marginBottom:10},children:(0,h.jsx)(a.Z,{value:u+n.name})}),("SINGLE"==(null==n?void 0:n.item_type)||"MULTIPLE"==(null==n?void 0:n.item_type))&&n.choices.map((function(n,e){return(0,h.jsxs)("div",{className:m.otherContentItem,children:[(0,h.jsx)("p",{children:b[e]}),(0,h.jsx)(a.Z,{className:m.otehrContentHtml,value:n.choice_text})]},e)})),"JUDGMENT"==(null==n?void 0:n.item_type)&&(0,h.jsx)("div",{style:{display:"flex",marginBottom:10},children:n.choices.map((function(n,e){return(0,h.jsx)(c.ZP,{disabled:!0,children:n.choice_text},e)}))}),(0,h.jsxs)("div",{className:m.con,children:["SINGLE"==(null==n?void 0:n.item_type)&&(0,h.jsxs)("b",{className:"c-grey-333 font14",children:[" 答案:",null==j?void 0:j[null==n||null===(t=n.choices)||void 0===t?void 0:t.findIndex((function(n){return null==n?void 0:n.is_answer}))]," "]}),"COMPLETION"==(null==n?void 0:n.item_type)&&(null==n||null===(i=n.standard_answer)||void 0===i?void 0:i.map((function(n,e){var t;return(0,h.jsx)("div",{className:m.answerHtml,children:"答案(填空".concat(n.position,"):").concat(null==n||null===(t=n.answer_text)||void 0===t?void 0:t.join("、"))},e)}))),"MULTIPLE"==(null==n?void 0:n.item_type)&&(0,h.jsxs)("b",{className:"c-grey-333 font14",children:[" 答案:",null==n||null===(r=n.choices)||void 0===r?void 0:r.map((function(n,e){if(null!=n&&n.is_answer)return(null==j?void 0:j[e])+" "}))," "]}),"JUDGMENT"==(null==n?void 0:n.item_type)&&(0,h.jsxs)("div",{children:["答案:",null==n||null===(s=n.choices)||void 0===s||null===(s=s.find((function(n){return n.is_answer})))||void 0===s?void 0:s.choice_text]}),"SUBJECTIVE"==(null==n?void 0:n.item_type)&&(0,h.jsxs)("div",{children:["答案:",null==n||null===(o=n.answer_texts)||void 0===o?void 0:o[0]]}),(0,h.jsxs)("div",{children:[(0,h.jsx)("span",{children:"解析:"}),(0,h.jsx)(a.Z,{className:m.parseAnswerHtml,value:n.analysis||"暂无解析"})]}),(0,h.jsxs)("div",{children:[(0,h.jsx)("span",{children:"知识点:"}),(0,h.jsx)(d.Z,{title:(null==v?void 0:v.tag_discipline)||"--",children:(0,h.jsx)("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:(null==v?void 0:v.tag_discipline)||"--"})})]})]})]})}))}):(0,h.jsx)("div",{className:m.otherContent,children:v.choices.map((function(n,e){return(0,h.jsxs)("div",{className:m.otherContentItem,children:[(0,h.jsx)("p",{children:b[e]}),(0,h.jsx)(a.Z,{className:m.otehrContentHtml,value:n.choice_text})]},e)}))})}),(0,h.jsx)("div",{className:m.row,children:(0,h.jsx)("div",{className:m.updateTimeRow,children:(0,h.jsx)("div",{className:m.updateTimeWrap,children:"PROGRAM"===v.item_type&&(0,h.jsxs)("p",{className:m.programLanguage,children:["编程语言:",null==v||null===(i=v.languages)||void 0===i?void 0:i.join("/")]})})})})]}),"COMBINATION"!==v.item_type&&(0,h.jsxs)("div",{className:m.answerWrapper,children:[(0,h.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACMgAAAA6CAYAAABPwffJAAAAAXNSR0IArs4c6QAAH35JREFUeF7t3Q2MZWV9x/H/c849d17uzL6y7K4M76xLNIAKoiBQak0oRgsiYKyxUEq0LwZLYmqa0hqtpi8xodam1daKRFtbRITYBmlspRBBAXmRaHddsCyO7Bsssztzd2buveec5jl37jC7bN155l7OL7P3ewmZfTnn+Z37+f9nsjn3n+c4W8JrfHx8bGam9ZfNZutif3q1Wrl3YKDyB2NjY+NLWC74FHV+8AVzQlcC6nqr87vC4+RgAXW91fnBYJyAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACpr6/r86nBcoVUNdbnV+uNmnqevcy34WW84knto0513giz22NWef03P9qb27Vs846a9MrOiSjzg/14vjuBNT1Vud3p8fZoQLqeqvzQ704HgEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBMzU9/fV+fRAuQLqeqvzy9UmTV3vXucHD8g88shj/2zm3ttoNOa7wZmzJEnMnPvqOeec9euvZJuo81/J98baLxdQ11udT0+UK6Cutzq/XG3SEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBA4OgTU9/fV+UdHFZfPu1DXW52/fCp1dFyput69zg8ekLnvvu8+l+e28XDldM52XHTRW171SpZanf9KvjfWfrmAut7qfHqiXAF1vdX55WqThgACCCCAAAIIIIAAAggggAACCCCAAAIIIIDA0SGgvr+vzj86qrh83oW63ur85VOpo+NK1fXudX7wgMy3v31vnue5NZtNc84sz9sPWkqq1aLCb3vbxcFrhrSGOj/kWjm2ewF1vdX53QuyQoiAut7q/BArjkUAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAIG2gPr+vjqfPihXQF1vdX652qSp693r/OBhlrvu+ve8PRiTmx+N6QzJtFsjt8sue0fwmiFtpc4PuVaO7V5AXW91fveCrBAioK63Oj/EimMRQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEECgLaC+v6/Opw/KFVDXW51frjZp6nr3Oj94mOX22+/0kzHWbDaK3WP8yw/JJElSDMxceeXlwWuGtJU6P+RaObZ7AXW91fndC7JCiIC63ur8ECuORQABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAgbaA+v6+Op8+KFdAXW91frnapKnr3ev84GGWW2/9Smcsptgx5qVdZNq/vuaa9wWvGdJW6vyQa+XY7gXU9Vbndy/ICiEC6nqr80OsOBYBBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQTaAur7++p8+qBcAXW91fnlapOmrnev84OHWb7whVvyZrN5UCf4xy055yxJqnb99dcGrxnSVur8kGvl2O4F1PVW53cvyAohAup6q/NDrDgWAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEE2gLq+/vqfPqgXAF1vdX55WqTpq53r/ODh1k+85m/yZ05y4vdY/zjldpLFEMy5uyGD/9e8JohbaXOD7lWju1eQF1vdX73gqwQIqCutzo/xIpjEUAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAoC2gvr+vzqcPyhVQ11udX642aep69zo/eJjl05+++ZAdZNqPVvKvJEnsIx+5MXjNkLZS54dcK8d2L6Cutzq/e0FWCBFQ11udH2LFsQgggAACCCCAAAIIIIAAAggggAACCCCAAAIIINAWUN/fV+fTB+UKqOutzi9XmzR1vXudHzzM8olPfCrvPFKp/dXvHtNuDL/Yn3zspuA1Q9pKnR9yrRzbvYC63ur87gVZIURAXW91fogVxyKAAAIIIIAAAggggAACCCCAAAIIIIAAAggggEBbQH1/X51PH5QroK63Or9cbdLU9e51fvAwy003fSxvNhsLOuGlJfwOMp/85MeD1wxpK3V+yLVybPcC6nqr87sXZIUQAXW91fkhVhyLAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACbQH1/X11Pn1QroC63ur8crVJU9e71/nBwyw33viR3O8a03nN7x4zt5PMzTd/OnjNkLZS54dcK8d2L6Cutzq/e0FWCBFQ11udH2LFsQgggAACCCCAAAIIIIAAAggggAACCCCAAAIIINAWUN/fV+fTB+UKqOutzi9XmzR1vXudHzzM8qEP3ZC3mi3Lbe65SvM94axaTeyzn/1M8JohbaXOD7lWju1eQF1vdX73gqwQIqCutzo/xIpjEUAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAoC2gvr+vzqcPyhVQ11udX642aep69zo/eJjluuuuf2kyxv/KrzD3Nc9zu+WWfwxeM6St1Pkh18qx3Quo663O716QFUIE1PVW54dYcSwCCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAgi0BdT399X59EG5Aup6q/PL1SZNXe9e5wcPs7z//dfkzUbjoP1j/COX/KOWqtWqffnLtwavGdJW6vyQa+XY7gXU9Vbndy/ICiEC6nqr80OsOBYBBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQTaAur7++p8+qBcAXW91fnlapOmrnev84OHWa644sp8fsuY+X7obCrj7I47bg9eM6St1Pkh18qx3Quo663O716QFUIE1PVW54dYcSwCCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAgi0BdT399X59EG5Aup6q/PL1SZNXe9e5wcPs7zjHb+Wt1rNYseY9is359z8DjLf/OZdwWuGtJU6P+RaObZ7AXW91fndC7JCiIC63ur8ECuORQABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAgbaA+v6+Op8+KFdAXW91frnapKnr3ev84GGWSy65NG82m0UnNJuN4muSJMVX/4ilb33r7uA1Q9pKnR9yrRzbvYC63ur87gVZIURAXW91fogVxyKAAAIIIIAAAggggAACCCCAAAIIIIAAAggggEBbQH1/X51PH5QroK63Or9cbdLU9e51fvAwy4UXXpT73WP8kIxzZv43fgeZJKkWu8ncf/99wWuGtJU6P+RaObZ7AXW91fndC7JCiIC63ur8ECuORQABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAgbaA+v6+Op8+KFdAXW91frnapKnr3ev84GGWN73pzXmr1SoGYzo7yfgdZPyQTKVSse9//3vBa4a0lTo/5Fo5tnsBdb3V+d0LskKIgLre6vwQK45FAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQACBtoD6/r46nz4oV0Bdb3V+udqkqevd6/zgYZazzz4nbzQaxXBMsXuM74liB5mk2EXm0UcfCV4zpK3U+SHXyrHdC6jrrc7vXpAVQgTU9Vbnh1hxLAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCLQF1Pf31fn0QbkC6nqr88vVJk1d717nBw+zbN58et7ZOabZbPjpGKtWE/OPXapWq7Zly/8ErxnSVur8kGvl2O4F1PVW53cvyAohAup6q/NDrDgWAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEE2gLq+/vqfPqgXAF1vdX55WqTpq53r/ODh1lOOeXUYkCmMyRjls8Px/gBmaeffip4zZC2UueHXCvHdi+grrc6v3tBVggRUNdbnR9ixbEIIIAAAggggAACCCCAAAIIIIAAAggggAACCCDQFlDf31fn0wflCqjrrc4vV5s0db17nR88zOIv4MCBujUafkimYa7zeKVKYsO1mv30p08HrxnSVur8kGvl2O4F1PVW53cvyAohAup6q/NDrDgWAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEE2gLq+/vqfPqgXAF1vdX55WqTpq53r/MXNcyS57m75557Vq9atfbCq656951+95h6fWp+F5kkqVqtVrMkSexrX/v65RMTL9x/ySWXvOicy3vRMur8XrwH1li8gLre6vzFS3FkLwTU9Vbn98KQNRBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQ6DcB9f19dX6/1Vv9ftX1Vuer/fstX13vVzL//x2Q8aG+0HfffXd1zbp1v3rssSe8rzay4opzXrc5rtfr1mo1bWpqqthBZnh42DpDMo88vjWtT+2/Y/fuZ/9p754937r00ksbfp3QYRl1fr81ufr9quutzlf791u+ut7q/H6rN+8XAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAIFeCKjv76vze2HIGosXUNdbnb94KY7shYC63mXlH3ZAphN+7733Dqw5ZsONGzae9Ie55aMe9o2vP714tJIfkvE7yZi5YueYzg4yDz+2pfB35iZ37njmz/ZPPP+5Cy64YKL4s0XuKKPO70UDscbiBdT1VucvXoojeyGgrrc6vxeGrIEAAggggAACCCCAAAIIIIAAAggggAACCCCAQL8JqO/vq/P7rd7q96uutzpf7d9v+ep6l5n/sgGZuXD34IMPrhpZsfrP12886beyLI98Ezhndv65ZxSDMX5Ixn/NcysGZKrVavH1gYeeLP7Mv6LIZbuf2/7Fycm9N5x33nmzZpYfaUhGnd9vza5+v+p6q/PV/v2Wr663Or/f6s37RQABBBBAAAEEEEAAAQQQQAABBBBAAAEEEECgFwLq+/vq/F4YssbiBdT1VucvXoojeyGgrnfZ+QcNyCwIHxhdufbGdRtO+NPcD8f4o+amXi6+4Ozi8UqNRntAxr/845Wq1aT4+p37H2nXwU/T5GYuctmenc/+8eS+F24+0pCMOr8XDcQaixdQ11udv3gpjuyFgLre6vxeGLIGAggggAACCCCAAAIIIIAAAggggAACCCCAAAL9JqC+v6/O77d6q9+vut7qfLV/v+Wr663Inx+Q6YT70ZaHH330shNPfM2X8jwfzf2Ui5k1m6nd9i+32q23/MNBu8c45yzP8/kBmWuv+4Bd9Z7fsCSJi/Oc/8+5ye3bf3ztG9/whrv8qM3hdpJR5/dbs6vfr7re6ny1f7/lq+utzu+3evN+EUAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBDohYD6/r46vxeGrLF4AXW91fmLl+LIXgio663KP3RAJnrggQfWbjjutL+t1Ubf7Ydj/MYxrVbLPv93N9vT27batm3bit1j/JxLs9kqvvqdY/zLP2Zp06ZNduqmzfbB37nRKpVKsZGMH5Kp1ye/vvPnT/3u+eef/4KZZYc+amkOQJbfiyZijcULqOutzl+8FEf2QkBdb3V+LwxZAwEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQACBfhNQ399X5/dbvdXvV11vdb7av9/y1fVW5RcDMgumc6IfPP7ku44/YdNXsyyL/XCMP+CuO2+zhx96wOIoth/+8Ilixxj/eCW/e8zc+ZYkSfH7M888y9IstTeee75ddvnVxXYx/rAoitKfPbvtvWe/7oxv+AGZhbvIqPP7rdnV71ddb3W+2r/f8tX1Vuf3W715vwgggAACCCCAAAIIIIAAAggggAACCCCAAAII9EJAfX9fnd8LQ9ZYvIC63ur8xUtxZC8E1PVW5i8ckInMLN761M/+YuWqtb/fGY7ZvXunfeHzf21xHFujMWNbtmwthmOKV95+XtLcnIxVk6q9evMmGxgYsjRN7foP3mDHHrth/ph9Ey/81ebTjv+omaULd5HpTAep8nvRRKyxeAF1vdX5i5fiyF4IqOutzu+FIWsggAACCCCAAAIIIIAAAggggAACCCCAAAIIINBvAur7++r8fqu3+v2q663OV/v3W7663sp8t2A6J37ooR+OverEE2+pxMkv5Zkffsnt3v+6x3705GOWZZkdODBlW7duKwZiGg0/JFOMx8w/Zsn/+aZNp1mtNup3jLHXnvF6u/itlxSPWHKRWStt/vdz27f/5rnnnjk+NyTjF/Avv4gk/9BHPfVb85f9fuk31+n5sun7Mo9+o9/6svF50wgggAACCCCAAAIIIIAAAggggAACCCCAAAJdCfD5Ap8vdNVAgSfTb/RbYMt0dXjf99vC6Zz77ntw8+mvOesbae5OzX0fZpnd/q9ftqmpSZua2metZtOeeeZZm56ents1xhWPW2rvIONscHDQTjrpBKskiY2MrLSRkVG78j3v989XMpc7i13+9JYfP/Guiy46b2tnF5m56hW71yjyGZDp6vsn+GT6jR/wwU3TxQn0G/3WRftwKgIIIIAAAggggAACCCCAAAIIIIAAAggggECfCvD5Ap8vlNn69Bv9Rr+VN5/S2UEmesYs2fPw4284/uTN/2FZXsssszxzdvttXzLnnL3w/K5iGGbHjp02NVW3RmN2buMXX67cqtWqjYyM2MaNG4rdY9asPbb483dfda25KLfIIrPI1Z956keXbHjzOT84ycxvQZN1BmRU+QzIlPntZr6H/DgV/VYue9+m0W/8g6Jvm583jgACCCCAAAIIIIAAAggggAACCCCAAAIIILBkAT5f4POFJTfPEk6k3+i3JbTNkk/p+36bA4jHxy3Z/txD55x2ypl3Z3lWy/PMbyBjd//bbRZFse3e9VzxmKVWq1XsIpOmaTEw419+gMYPxZx88olWqVSK36/fcFxxzNvfebXfQMaciyxyUX3rTx59+yknnP/w2FgxIJPOVU6Wz4DMkr93lnQi/cYP+CU1zhJPot/otyW2DqchgAACCCCAAAIIIIAAAggggAACCCCAAAII9LEAny/w+UKZ7U+/0W/0W3nzKZ0dZCo7dlgyPv74a4874dW35VF+kmX+8Umpfe+737FGs1HsINOYnSlq44dkdu7cbfV6vRiGGR4etg0bjrU4jou/HxgcsrXHrLdqUrU3v+WXzbnYLMrNZe6Znz/7k6vHxl73o40biwGZ1lyxZfkMyJT57Ta/g4ys3vRbufVWp839g4J+UxeCfAQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEElpEAny8wsFBmu9Jv9Bv9Vt58ih+Qicws3rXLqnv2bD111THHfi6Kquf53WP8DjH/+/SWYjhmdna6+LqY19q16606MGjHrNtgJ596+twOM2ZZ1nhw4vndv71u3ean16+3xsIdZFT5zrnOY54W89Y4pksB+o1+67KFgk6n3+i3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",alt:"",className:m.decoration}),(0,h.jsx)("div",{className:m.answer,children:function(){var n,e,t,i,r={SUBJECTIVE:null===(n=v.answer_texts)||void 0===n?void 0:n[0],JUDGMENT:null===(e=v.choices)||void 0===e||null===(e=e.find((function(n){return n.is_answer})))||void 0===e?void 0:e.choice_text},s=v.choices.map((function(n){return n.is_answer})).findIndex((function(n){return n})),o=s>-1?j[s]:"",l="";v.choices.map((function(n,e){n.is_answer&&(l+=j[e])}));var c=r[v.item_type],d=(null==v||null===(t=v.program_attr)||void 0===t?void 0:t.code)||"";try{var u;d=f.Base64.decode((null==v||null===(u=v.program_attr)||void 0===u?void 0:u.code)||"")}catch(n){}var A={SINGLE:(0,h.jsx)(a.Z,{className:m.answerHtml,value:"答案:".concat(o||"无")}),MULTIPLE:(0,h.jsx)(a.Z,{className:m.answerHtml,value:"答案:".concat(l||"无")}),COMPLETION:Q(),BPROGRAM:(0,h.jsxs)("div",{children:[(0,h.jsx)(a.Z,{className:m.answerHtml,showProgramFill:!0,value:d}),null===(i=v.standard_answer)||void 0===i?void 0:i.map((function(n,e){return(0,h.jsx)("div",{className:m.answerHtml,children:"答案(填空".concat(n.position,"):").concat(null==n?void 0:n.answer_text)},e)}))]})},p=(0,h.jsx)(a.Z,{className:m.answerHtml,value:"答案:".concat(c||"无")});return A[v.item_type]||p}()}),(0,h.jsxs)("div",{className:m.parse,children:[(0,h.jsx)("div",{className:m.parseText,children:"解析:"}),(0,h.jsx)("div",{className:m.parseAnswer,children:v.analysis?(0,h.jsx)(a.Z,{className:m.parseAnswerHtml,value:v.analysis}):"暂无解析"})]}),(0,h.jsxs)("div",{className:m.parse,children:[(0,h.jsx)("div",{className:m.parseText,children:"知识点:"}),(0,h.jsx)(d.Z,{title:(null==v?void 0:v.tag_discipline)||"--",children:(0,h.jsx)("div",{className:m.parseAnswer,style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:(null==v?void 0:v.tag_discipline)||"--"})})]})]})]})]})}},21475:function(n,e){e.Z={modalContent:"modalContent___UXmJC",modalContentLeft:"modalContentLeft___JOFgX",green:"green___rI_w_",textArea:"textArea___OTapv",red:"red___cDswv",row:"row___CE3Y7",html:"html___u9n4r",line:"line___Lh9Lb"}}}]); \ No newline at end of file diff --git a/25894.5255efc8.async.js b/25894.5255efc8.async.js deleted file mode 100644 index 8e3df2b6a1..0000000000 --- a/25894.5255efc8.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[25894,42441,43428],{680:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(5891),i=r(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},o=r(22589),s=function(e,t){return i.createElement(o.Z,(0,n.Z)({},e,{ref:t,icon:a}))};var l=i.forwardRef(s)},88522:function(e,t,r){"use strict";var n=r(92310),i=r.n(n),a=r(75440),o=r(55405),s=r(59301),l=r(53487),u=r(92343),h=r(36355),c=r(57809);const{Option:d}=c.default;function f(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const p=(e,t)=>{const{prefixCls:r,className:n,popupClassName:l,dropdownClassName:p,children:m,dataSource:g}=e,_=(0,a.Z)(m);let v;1===_.length&&(0,u.l$)(_[0])&&!f(_[0])&&([v]=_);const y=v?()=>v:void 0;let x;x=_.length&&f(_[0])?m:g?g.map((e=>{if((0,u.l$)(e))return e;switch(typeof e){case"string":return s.createElement(d,{key:e,value:e},e);case"object":{const{value:t}=e;return s.createElement(d,{key:t,value:t},e.text)}default:return}})):[];const{getPrefixCls:T}=s.useContext(h.E_),b=T("select",r);return s.createElement(c.default,Object.assign({ref:t,suffixIcon:null},(0,o.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:b,popupClassName:l||p,className:i()(`${b}-auto-complete`,n),mode:c.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:y}),x)},m=s.forwardRef(p),g=(0,l.Z)(m);m.Option=d,m._InternalPanelDoNotUseOrYouWillBeFired=g,t.Z=m},28103:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(92310),i=r.n(n),a=r(59301),o=r(36355),s=r(17313),l=r(83116),u=r(37613);const h=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:n,lineWidth:i,textPaddingInline:a,orientationMargin:o,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},(0,s.Wf)(e)),{borderBlockStart:`${i}px solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*o+"%"},"&::after":{width:100-100*o+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*o+"%"},"&::after":{width:100*o+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:r}}})}};var c=(0,l.Z)("Divider",(e=>{const t=(0,u.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[h(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),d=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:r,divider:n}=a.useContext(o.E_),{prefixCls:s,type:l="horizontal",orientation:u="center",orientationMargin:h,className:f,rootClassName:p,children:m,dashed:g,plain:_,style:v}=e,y=d(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",s),[T,b]=c(x),w=u.length>0?`-${u}`:u,E=!!m,S="left"===u&&null!=h,M="right"===u&&null!=h,A=i()(x,null==n?void 0:n.className,b,`${x}-${l}`,{[`${x}-with-text`]:E,[`${x}-with-text${w}`]:E,[`${x}-dashed`]:!!g,[`${x}-plain`]:!!_,[`${x}-rtl`]:"rtl"===r,[`${x}-no-default-orientation-margin-left`]:S,[`${x}-no-default-orientation-margin-right`]:M},f,p),C=a.useMemo((()=>"number"==typeof h?h:/^\d+$/.test(h)?Number(h):h),[h]),L=Object.assign(Object.assign({},S&&{marginLeft:C}),M&&{marginRight:C});return T(a.createElement("div",Object.assign({className:A,style:Object.assign(Object.assign({},null==n?void 0:n.style),v)},y,{role:"separator"}),m&&"vertical"!==l&&a.createElement("span",{className:`${x}-inner-text`,style:L},m)))}},43428:function(e,t,r){"use strict";r.d(t,{Z:function(){return H}});var n=r(92310),i=r.n(n),a=r(57259),o=r(29043),s=r(43403),l=r(19171),u=r(59301),h=u.createContext(null),c=u.createContext({}),d=h,f=r(80962),p=r(5891),m=r(43167),g=r(20287),_=r(47413),v=r(83794);var y=function(e){var t=e.prefixCls,r=e.className,n=e.style,o=e.children,s=e.containerRef,l=e.id,h={onMouseEnter:e.onMouseEnter,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp},d=u.useContext(c).panel,f=(0,v.useComposeRef)(d,s);return u.createElement(u.Fragment,null,u.createElement("div",(0,p.Z)({id:l,className:i()("".concat(t,"-content"),r),style:(0,a.Z)({},n),"aria-modal":"true",role:"dialog",ref:f},h),o))},x=r(85870);function T(e){return"string"==typeof e&&String(Number(e))===e?((0,x.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var b={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function w(e,t){var r,n,s,l,h=e.prefixCls,c=e.open,v=e.placement,x=e.inline,w=e.push,E=e.forceRender,S=e.autoFocus,M=e.keyboard,A=e.rootClassName,C=e.rootStyle,L=e.zIndex,N=e.className,D=e.id,I=e.style,P=e.motion,O=e.width,R=e.height,F=e.children,B=e.contentWrapperStyle,U=e.mask,z=e.maskClosable,G=e.maskMotion,H=e.maskClassName,k=e.maskStyle,V=e.afterOpenChange,W=e.onClose,j=e.onMouseEnter,X=e.onMouseOver,q=e.onMouseLeave,Z=e.onClick,Y=e.onKeyDown,K=e.onKeyUp,$=u.useRef(),Q=u.useRef(),J=u.useRef();u.useImperativeHandle(t,(function(){return $.current}));u.useEffect((function(){var e;c&&S&&(null===(e=$.current)||void 0===e||e.focus({preventScroll:!0}))}),[c]);var ee=u.useState(!1),te=(0,o.Z)(ee,2),re=te[0],ne=te[1],ie=u.useContext(d),ae=null!==(r=null!==(n=null===(s=!1===w?{distance:0}:!0===w?{}:w||{})||void 0===s?void 0:s.distance)&&void 0!==n?n:null==ie?void 0:ie.pushDistance)&&void 0!==r?r:180,oe=u.useMemo((function(){return{pushDistance:ae,push:function(){ne(!0)},pull:function(){ne(!1)}}}),[ae]);u.useEffect((function(){var e,t;c?null==ie||null===(e=ie.push)||void 0===e||e.call(ie):null==ie||null===(t=ie.pull)||void 0===t||t.call(ie)}),[c]),u.useEffect((function(){return function(){var e;null==ie||null===(e=ie.pull)||void 0===e||e.call(ie)}}),[]);var se=U&&u.createElement(m.default,(0,p.Z)({key:"mask"},G,{visible:c}),(function(e,t){var r=e.className,n=e.style;return u.createElement("div",{className:i()("".concat(h,"-mask"),r,H),style:(0,a.Z)((0,a.Z)({},n),k),onClick:z&&c?W:void 0,ref:t})})),le="function"==typeof P?P(v):P,ue={};if(re&&ae)switch(v){case"top":ue.transform="translateY(".concat(ae,"px)");break;case"bottom":ue.transform="translateY(".concat(-ae,"px)");break;case"left":ue.transform="translateX(".concat(ae,"px)");break;default:ue.transform="translateX(".concat(-ae,"px)")}"left"===v||"right"===v?ue.width=T(O):ue.height=T(R);var he={onMouseEnter:j,onMouseOver:X,onMouseLeave:q,onClick:Z,onKeyDown:Y,onKeyUp:K},ce=u.createElement(m.default,(0,p.Z)({key:"panel"},le,{visible:c,forceRender:E,onVisibleChanged:function(e){null==V||V(e)},removeOnLeave:!1,leavedClassName:"".concat(h,"-content-wrapper-hidden")}),(function(t,r){var n=t.className,o=t.style;return u.createElement("div",(0,p.Z)({className:i()("".concat(h,"-content-wrapper"),n),style:(0,a.Z)((0,a.Z)((0,a.Z)({},ue),o),B)},(0,_.Z)(e,{data:!0})),u.createElement(y,(0,p.Z)({id:D,containerRef:r,prefixCls:h,className:N,style:I},he),F))})),de=(0,a.Z)({},C);return L&&(de.zIndex=L),u.createElement(d.Provider,{value:oe},u.createElement("div",{className:i()(h,"".concat(h,"-").concat(v),A,(l={},(0,f.Z)(l,"".concat(h,"-open"),c),(0,f.Z)(l,"".concat(h,"-inline"),x),l)),style:de,tabIndex:-1,ref:$,onKeyDown:function(e){var t=e.keyCode,r=e.shiftKey;switch(t){case g.Z.TAB:var n;if(t===g.Z.TAB)if(r||document.activeElement!==J.current){if(r&&document.activeElement===Q.current){var i;null===(i=J.current)||void 0===i||i.focus({preventScroll:!0})}}else null===(n=Q.current)||void 0===n||n.focus({preventScroll:!0});break;case g.Z.ESC:W&&M&&(e.stopPropagation(),W(e))}}},se,u.createElement("div",{tabIndex:0,ref:Q,style:b,"aria-hidden":"true","data-sentinel":"start"}),ce,u.createElement("div",{tabIndex:0,ref:J,style:b,"aria-hidden":"true","data-sentinel":"end"})))}var E=u.forwardRef(w);var S=function(e){var t=e.open,r=void 0!==t&&t,n=e.prefixCls,i=void 0===n?"rc-drawer":n,h=e.placement,d=void 0===h?"right":h,f=e.autoFocus,p=void 0===f||f,m=e.keyboard,g=void 0===m||m,_=e.width,v=void 0===_?378:_,y=e.mask,x=void 0===y||y,T=e.maskClosable,b=void 0===T||T,w=e.getContainer,S=e.forceRender,M=e.afterOpenChange,A=e.destroyOnClose,C=e.onMouseEnter,L=e.onMouseOver,N=e.onMouseLeave,D=e.onClick,I=e.onKeyDown,P=e.onKeyUp,O=e.panelRef,R=u.useState(!1),F=(0,o.Z)(R,2),B=F[0],U=F[1];var z=u.useState(!1),G=(0,o.Z)(z,2),H=G[0],k=G[1];(0,l.Z)((function(){k(!0)}),[]);var V=!!H&&r,W=u.useRef(),j=u.useRef();(0,l.Z)((function(){V&&(j.current=document.activeElement)}),[V]);var X=u.useMemo((function(){return{panel:O}}),[O]);if(!S&&!B&&!V&&A)return null;var q={onMouseEnter:C,onMouseOver:L,onMouseLeave:N,onClick:D,onKeyDown:I,onKeyUp:P},Z=(0,a.Z)((0,a.Z)({},e),{},{open:V,prefixCls:i,placement:d,autoFocus:p,keyboard:g,width:v,mask:x,maskClosable:b,inline:!1===w,afterOpenChange:function(e){var t,r;(U(e),null==M||M(e),e||!j.current||null!==(t=W.current)&&void 0!==t&&t.contains(j.current))||(null===(r=j.current)||void 0===r||r.focus({preventScroll:!0}))},ref:W},q);return u.createElement(c.Provider,{value:X},u.createElement(s.Z,{open:V||S||B,autoDestroy:!1,getContainer:w,autoLock:x&&(V||B)},u.createElement(E,Z)))},M=r(62892),A=r(36355),C=r(32441),L=r(47729);var N=e=>{const{prefixCls:t,title:r,footer:n,extra:a,closeIcon:o,closable:s,onClose:l,headerStyle:h,drawerStyle:c,bodyStyle:d,footerStyle:f,children:p}=e,m=u.useCallback((e=>u.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${t}-close`},e)),[l]),[g,_]=(0,L.Z)(s,o,m,void 0,!0),v=u.useMemo((()=>r||g?u.createElement("div",{style:h,className:i()(`${t}-header`,{[`${t}-header-close-only`]:g&&!r&&!a})},u.createElement("div",{className:`${t}-header-title`},_,r&&u.createElement("div",{className:`${t}-title`},r)),a&&u.createElement("div",{className:`${t}-extra`},a)):null),[g,_,a,h,t,r]),y=u.useMemo((()=>{if(!n)return null;const e=`${t}-footer`;return u.createElement("div",{className:e,style:f},n)}),[n,f,t]);return u.createElement("div",{className:`${t}-wrapper-body`,style:c},v,u.createElement("div",{className:`${t}-body`,style:d},p),y)},D=r(33234),I=r(83116),P=r(37613);var O=e=>{const{componentCls:t,motionDurationSlow:r}=e,n={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${r}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${r}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[n,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[n,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[n,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[n,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const R=e=>{const{componentCls:t,zIndexPopup:r,colorBgMask:n,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:o,padding:s,paddingLG:l,fontSizeLG:u,lineHeightLG:h,lineWidth:c,lineType:d,colorSplit:f,marginSM:p,colorIcon:m,colorIconHover:g,colorText:_,fontWeightStrong:v,footerPaddingBlock:y,footerPaddingInline:x}=e,T=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none","&-pure":{position:"relative",background:i,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:r,background:n,pointerEvents:"auto"},[T]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${T}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${T}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${T}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${T}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${s}px ${l}px`,fontSize:u,lineHeight:h,borderBottom:`${c}px ${d} ${f}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:p,color:m,fontWeight:v,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${o}`,textRendering:"auto","&:focus, &:hover":{color:g,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:_,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:h},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${y}px ${x}px`,borderTop:`${c}px ${d} ${f}`},"&-rtl":{direction:"rtl"}}}};var F=(0,I.Z)("Drawer",(e=>{const t=(0,P.TS)(e,{});return[R(t),O(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}))),B=r(11575),U=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i{const{rootClassName:t,width:r,height:n,size:a="default",mask:o=!0,push:s=z,open:l,afterOpenChange:h,onClose:c,prefixCls:d,getContainer:f,style:p,className:m,visible:g,afterVisibleChange:_}=e,v=U(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:y,getPrefixCls:x,direction:T,drawer:b}=u.useContext(A.E_),w=x("drawer",d),[E,L]=F(w),I=void 0===f&&y?()=>y(document.body):f,P=i()({"no-mask":!o,[`${w}-rtl`]:"rtl"===T},t,L);const O=u.useMemo((()=>null!=r?r:"large"===a?736:378),[r,a]),R=u.useMemo((()=>null!=n?n:"large"===a?736:378),[n,a]),G={motionName:(0,M.m)(w,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},H=(0,B.H)();return E(u.createElement(D.BR,null,u.createElement(C.Ux,{status:!0,override:!0},u.createElement(S,Object.assign({prefixCls:w,onClose:c,maskMotion:G,motion:e=>({motionName:(0,M.m)(w,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},v,{open:null!=l?l:g,mask:o,push:s,width:O,height:R,style:Object.assign(Object.assign({},null==b?void 0:b.style),p),className:i()(null==b?void 0:b.className,m),rootClassName:P,getContainer:I,afterOpenChange:null!=h?h:_,panelRef:H}),u.createElement(N,Object.assign({prefixCls:w},v,{onClose:c}))))))};G._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:r,className:n,placement:a="right"}=e,o=U(e,["prefixCls","style","className","placement"]),{getPrefixCls:s}=u.useContext(A.E_),l=s("drawer",t),[h,c]=F(l),d=i()(l,`${l}-pure`,`${l}-${a}`,c,n);return h(u.createElement("div",{className:d,style:r},u.createElement(N,Object.assign({prefixCls:l},o))))};var H=G},97774:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=Object.assign||function(e){for(var t=1;t0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i),e},s.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]},s.cross=function(e,t,r){var n=t[0]*r[1]-t[1]*r[0];return e[0]=e[1]=0,e[2]=n,e},s.lerp=function(e,t,r,n){var i=t[0],a=t[1];return e[0]=i+n*(r[0]-i),e[1]=a+n*(r[1]-a),e},s.random=function(e,t){t=t||1;var r=2*n()*Math.PI;return e[0]=Math.cos(r)*t,e[1]=Math.sin(r)*t,e},s.transformMat2=function(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i,e[1]=r[1]*n+r[3]*i,e},s.transformMat2d=function(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e},s.transformMat3=function(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[3]*i+r[6],e[1]=r[1]*n+r[4]*i+r[7],e},s.transformMat4=function(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[4]*i+r[12],e[1]=r[1]*n+r[5]*i+r[13],e},s.forEach=(o=s.create(),function(e,t,r,n,i,a){var s,l;for(t||(t=2),r||(r=0),l=n?Math.min(n*t+r,e.length):e.length,s=r;s0&&(a=1/Math.sqrt(a),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a),e},l.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]},l.cross=function(e,t,r){var n=t[0],i=t[1],a=t[2],o=r[0],s=r[1],l=r[2];return e[0]=i*l-a*s,e[1]=a*o-n*l,e[2]=n*s-i*o,e},l.lerp=function(e,t,r,n){var i=t[0],a=t[1],o=t[2];return e[0]=i+n*(r[0]-i),e[1]=a+n*(r[1]-a),e[2]=o+n*(r[2]-o),e},l.random=function(e,t){t=t||1;var r=2*n()*Math.PI,i=2*n()-1,a=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(r)*a,e[1]=Math.sin(r)*a,e[2]=i*t,e},l.transformMat4=function(e,t,r){var n=t[0],i=t[1],a=t[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,e[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,e[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,e[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,e},l.transformMat3=function(e,t,r){var n=t[0],i=t[1],a=t[2];return e[0]=n*r[0]+i*r[3]+a*r[6],e[1]=n*r[1]+i*r[4]+a*r[7],e[2]=n*r[2]+i*r[5]+a*r[8],e},l.transformQuat=function(e,t,r){var n=t[0],i=t[1],a=t[2],o=r[0],s=r[1],l=r[2],u=r[3],h=u*n+s*a-l*i,c=u*i+l*n-o*a,d=u*a+o*i-s*n,f=-o*n-s*i-l*a;return e[0]=h*u+f*-o+c*-l-d*-s,e[1]=c*u+f*-s+d*-o-h*-l,e[2]=d*u+f*-l+h*-s-c*-o,e},l.rotateX=function(e,t,r,n){var i=[],a=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],a[0]=i[0],a[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),a[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e},l.rotateY=function(e,t,r,n){var i=[],a=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],a[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),a[1]=i[1],a[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e},l.rotateZ=function(e,t,r,n){var i=[],a=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],a[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),a[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),a[2]=i[2],e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e},l.forEach=function(){var e=l.create();return function(t,r,n,i,a,o){var s,l;for(r||(r=3),n||(n=0),l=i?Math.min(i*r+n,t.length):t.length,s=n;s1?0:Math.acos(i)},l.str=function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},void 0!==e&&(e.vec3=l);var u={create:function(){var e=new r(4);return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e},clone:function(e){var t=new r(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},fromValues:function(e,t,n,i){var a=new r(4);return a[0]=e,a[1]=t,a[2]=n,a[3]=i,a},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},set:function(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e},add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e},subtract:function(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}};u.sub=u.subtract,u.multiply=function(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e},u.mul=u.multiply,u.divide=function(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e},u.div=u.divide,u.min=function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e},u.max=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e},u.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e},u.scaleAndAdd=function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},u.distance=function(e,t){var r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],a=t[3]-e[3];return Math.sqrt(r*r+n*n+i*i+a*a)},u.dist=u.distance,u.squaredDistance=function(e,t){var r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],a=t[3]-e[3];return r*r+n*n+i*i+a*a},u.sqrDist=u.squaredDistance,u.length=function(e){var t=e[0],r=e[1],n=e[2],i=e[3];return Math.sqrt(t*t+r*r+n*n+i*i)},u.len=u.length,u.squaredLength=function(e){var t=e[0],r=e[1],n=e[2],i=e[3];return t*t+r*r+n*n+i*i},u.sqrLen=u.squaredLength,u.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},u.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},u.normalize=function(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r*r+n*n+i*i+a*a;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e[3]=t[3]*o),e},u.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},u.lerp=function(e,t,r,n){var i=t[0],a=t[1],o=t[2],s=t[3];return e[0]=i+n*(r[0]-i),e[1]=a+n*(r[1]-a),e[2]=o+n*(r[2]-o),e[3]=s+n*(r[3]-s),e},u.random=function(e,t){return t=t||1,e[0]=n(),e[1]=n(),e[2]=n(),e[3]=n(),u.normalize(e,e),u.scale(e,e,t),e},u.transformMat4=function(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,e[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,e[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,e[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,e},u.transformQuat=function(e,t,r){var n=t[0],i=t[1],a=t[2],o=r[0],s=r[1],l=r[2],u=r[3],h=u*n+s*a-l*i,c=u*i+l*n-o*a,d=u*a+o*i-s*n,f=-o*n-s*i-l*a;return e[0]=h*u+f*-o+c*-l-d*-s,e[1]=c*u+f*-s+d*-o-h*-l,e[2]=d*u+f*-l+h*-s-c*-o,e},u.forEach=function(){var e=u.create();return function(t,r,n,i,a,o){var s,l;for(r||(r=4),n||(n=0),l=i?Math.min(i*r+n,t.length):t.length,s=n;s.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):(l.cross(p,t,r),e[0]=p[0],e[1]=p[1],e[2]=p[2],e[3]=1+n,v.normalize(e,e))}),v.setAxes=(_=d.create(),function(e,t,r,n){return _[0]=r[0],_[3]=r[1],_[6]=r[2],_[1]=n[0],_[4]=n[1],_[7]=n[2],_[2]=-t[0],_[5]=-t[1],_[8]=-t[2],v.normalize(e,v.fromMat3(e,_))}),v.clone=u.clone,v.fromValues=u.fromValues,v.copy=u.copy,v.set=u.set,v.identity=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},v.setAxisAngle=function(e,t,r){r*=.5;var n=Math.sin(r);return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=Math.cos(r),e},v.add=u.add,v.multiply=function(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=r[0],l=r[1],u=r[2],h=r[3];return e[0]=n*h+o*s+i*u-a*l,e[1]=i*h+o*l+a*s-n*u,e[2]=a*h+o*u+n*l-i*s,e[3]=o*h-n*s-i*l-a*u,e},v.mul=v.multiply,v.scale=u.scale,v.rotateX=function(e,t,r){r*=.5;var n=t[0],i=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=n*l+o*s,e[1]=i*l+a*s,e[2]=a*l-i*s,e[3]=o*l-n*s,e},v.rotateY=function(e,t,r){r*=.5;var n=t[0],i=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=n*l-a*s,e[1]=i*l+o*s,e[2]=a*l+n*s,e[3]=o*l-i*s,e},v.rotateZ=function(e,t,r){r*=.5;var n=t[0],i=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=n*l+i*s,e[1]=i*l-n*s,e[2]=a*l+o*s,e[3]=o*l-a*s,e},v.calculateW=function(e,t){var r=t[0],n=t[1],i=t[2];return e[0]=r,e[1]=n,e[2]=i,e[3]=Math.sqrt(Math.abs(1-r*r-n*n-i*i)),e},v.dot=u.dot,v.lerp=u.lerp,v.slerp=function(e,t,r,n){var i,a,o,s,l,u=t[0],h=t[1],c=t[2],d=t[3],f=r[0],p=r[1],m=r[2],g=r[3];return(a=u*f+h*p+c*m+d*g)<0&&(a=-a,f=-f,p=-p,m=-m,g=-g),1-a>1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n),e[0]=s*u+l*f,e[1]=s*h+l*p,e[2]=s*c+l*m,e[3]=s*d+l*g,e},v.invert=function(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r*r+n*n+i*i+a*a,s=o?1/o:0;return e[0]=-r*s,e[1]=-n*s,e[2]=-i*s,e[3]=a*s,e},v.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e},v.length=u.length,v.len=v.length,v.squaredLength=u.squaredLength,v.sqrLen=v.squaredLength,v.normalize=u.normalize,v.fromMat3=function(e,t){var r,n=t[0]+t[4]+t[8];if(n>0)r=Math.sqrt(n+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{var i=0;t[4]>t[0]&&(i=1),t[8]>t[3*i+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;r=Math.sqrt(t[3*i+i]-t[3*a+a]-t[3*o+o]+1),e[i]=.5*r,r=.5/r,e[3]=(t[3*a+o]-t[3*o+a])*r,e[a]=(t[3*a+i]+t[3*i+a])*r,e[o]=(t[3*o+i]+t[3*i+o])*r}return e},v.str=function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},void 0!==e&&(e.quat=v)}(r.exports)}()},function(e,t,r){"use strict";var n=r(24),i=r(46),a=r(5),o=r(6),s=r(7),l=r(17),u=r(28),h=r(13),c=r(0),d=r.n(c),f=r(29),p=r(53),m=r.n(p),g=r(54),_=r(106),v=r(107),y=r(113),x=r(114),T=r(3),b=r(68),w=r(37),E=r(69),S=r(116),M=r(70),A=r(71),C=r(72),L=r(36),N=r(30),D=r(23),I=r(4),P=r(117),O=r(50),R=r(118),F=r(119),B=r(120),U=r(9),z=r(67),G=r(49),H=r(15),k=r(52),V=r(121),W=r(126),j=r(63),X=r(127),q=r(128),Z=r(129),Y=r(130),K=r(131),$=r(132);function Q(e){return e instanceof HTMLCanvasElement||e instanceof HTMLImageElement||e instanceof Image}d.a.util.extend(u.a.prototype,V.a),s.a.import(W.a),s.a.import(j.a),s.a.import(X.a),s.a.import(q.a),s.a.import(Z.a),s.a.import(Y.a),s.a.import(K.a),s.a.import($.a);var J=f.a.prototype.addToScene,ee=f.a.prototype.removeFromScene;f.a.prototype.addToScene=function(e){if(J.call(this,e),this.__zr){var t=this.__zr;e.traverse((function(e){e.__zr=t,e.addAnimatorsToZr&&e.addAnimatorsToZr(t)}))}},f.a.prototype.removeFromScene=function(e){ee.call(this,e),e.traverse((function(e){var t=e.__zr;e.__zr=null,t&&e.removeAnimatorsFromZr&&e.removeAnimatorsFromZr(t)}))},l.a.prototype.setTextureImage=function(e,t,r,n){if(this.shader){var i,a,o=r.getZr(),s=this;return s.autoUpdateTextureStatus=!1,s.disableTexture(e),(a=t)&&"none"!==a&&(i=te.loadTexture(t,r,n,(function(t){s.enableTexture(e),o&&o.refresh()})),s.set(e,i)),i}};var te={};te.Renderer=i.a,te.Node=u.a,te.Mesh=n.a,te.Shader=s.a,te.Material=l.a,te.Texture=o.a,te.Texture2D=a.a,te.Geometry=h.a,te.SphereGeometry=b.a,te.PlaneGeometry=w.a,te.CubeGeometry=E.a,te.AmbientLight=S.a,te.DirectionalLight=M.a,te.PointLight=A.a,te.SpotLight=C.a,te.PerspectiveCamera=L.a,te.OrthographicCamera=N.a,te.Vector2=D.a,te.Vector3=I.a,te.Vector4=P.a,te.Quaternion=O.a,te.Matrix2=R.a,te.Matrix2d=F.a,te.Matrix3=B.a,te.Matrix4=U.a,te.Plane=z.a,te.Ray=G.a,te.BoundingBox=H.a,te.Frustum=k.a;var re=g.a.createBlank("rgba(255,255,255,0)").image;function ne(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))}function ie(e){if((e.wrapS===o.a.REPEAT||e.wrapT===o.a.REPEAT)&&e.image){var t=ne(e.width),r=ne(e.height);if(t!==e.width||r!==e.height){var n=document.createElement("canvas");n.width=t,n.height=r,n.getContext("2d").drawImage(e.image,0,0,t,r),e.image=n}}}te.loadTexture=function(e,t,r,n){"function"==typeof r&&(n=r,r={}),r=r||{};for(var i=Object.keys(r).sort(),a="",o=0;o3?t[3]=e[3]:t[3]=1,t):((t=d.a.color.parse(e||"#000",t)||[0,0,0,0])[0]/=255,t[1]/=255,t[2]/=255,t)},te.directionFromAlphaBeta=function(e,t){var r=e/180*Math.PI+Math.PI/2,n=-t/180*Math.PI+Math.PI/2,i=[],a=Math.sin(r);return i[0]=a*Math.cos(n),i[1]=-Math.cos(r),i[2]=a*Math.sin(n),i},te.getShadowResolution=function(e){var t=1024;switch(e){case"low":t=512;break;case"medium":break;case"high":t=2048;break;case"ultra":t=4096}return t},te.COMMON_SHADERS=["lambert","color","realistic","hatching"],te.createShader=function(e){var t=s.a.source(e+".vertex"),r=s.a.source(e+".fragment");t||console.error("Vertex shader of '%s' not exits",e),r||console.error("Fragment shader of '%s' not exits",e);var n=new s.a(t,r);return n.name=e,n},te.createMaterial=function(e,t){t instanceof Array||(t=[t]);var r=te.createShader(e),n=new l.a({shader:r});return t.forEach((function(e){"string"==typeof e&&n.define(e)})),n},te.setMaterialFromModel=function(e,t,r,n){t.autoUpdateTextureStatus=!1;var i=r.getModel(e+"Material"),a=i.get("detailTexture"),o=T.a.firstNotNull(i.get("textureTiling"),1),s=T.a.firstNotNull(i.get("textureOffset"),0);"number"==typeof o&&(o=[o,o]),"number"==typeof s&&(s=[s,s]);var l=o[0]>1||o[1]>1?te.Texture.REPEAT:te.Texture.CLAMP_TO_EDGE,u={anisotropic:8,wrapS:l,wrapT:l};if("realistic"===e){var h=i.get("roughness"),c=i.get("metalness");null!=c?isNaN(c)&&(t.setTextureImage("metalnessMap",c,n,u),c=T.a.firstNotNull(i.get("metalnessAdjust"),.5)):c=0,null!=h?isNaN(h)&&(t.setTextureImage("roughnessMap",h,n,u),h=T.a.firstNotNull(i.get("roughnessAdjust"),.5)):h=.5;var d=i.get("normalTexture");t.setTextureImage("detailMap",a,n,u),t.setTextureImage("normalMap",d,n,u),t.set({roughness:h,metalness:c,detailUvRepeat:o,detailUvOffset:s})}else if("lambert"===e)t.setTextureImage("detailMap",a,n,u),t.set({detailUvRepeat:o,detailUvOffset:s});else if("color"===e)t.setTextureImage("detailMap",a,n,u),t.set({detailUvRepeat:o,detailUvOffset:s});else if("hatching"===e){var f=i.get("hatchingTextures")||[];f.length<6&&console.error("Invalid hatchingTextures.");for(var p=0;p<6;p++)t.setTextureImage("hatch"+(p+1),f[p],n,{anisotropic:8,wrapS:te.Texture.REPEAT,wrapT:te.Texture.REPEAT});t.set({detailUvRepeat:o,detailUvOffset:s})}},te.updateVertexAnimation=function(e,t,r,n){var i=n.get("animation"),a=n.get("animationDurationUpdate"),o=n.get("animationEasingUpdate"),s=r.shadowDepthMaterial;if(i&&t&&a>0&&t.geometry.vertexCount===r.geometry.vertexCount){r.material.define("vertex","VERTEX_ANIMATION"),r.ignorePreZ=!0,s&&s.define("vertex","VERTEX_ANIMATION");for(var l=0;lr?r:e}a.add=function(e,t,r){return i.add(e.array,t.array,r.array),e._dirty=!0,e},a.set=function(e,t,r,n){i.set(e.array,t,r,n),e._dirty=!0},a.copy=function(e,t){return i.copy(e.array,t.array),e._dirty=!0,e},a.cross=function(e,t,r){return i.cross(e.array,t.array,r.array),e._dirty=!0,e},a.distance=a.dist=function(e,t){return i.distance(e.array,t.array)},a.divide=a.div=function(e,t,r){return i.divide(e.array,t.array,r.array),e._dirty=!0,e},a.dot=function(e,t){return i.dot(e.array,t.array)},a.len=function(e){return i.length(e.array)},a.lerp=function(e,t,r,n){return i.lerp(e.array,t.array,r.array,n),e._dirty=!0,e},a.min=function(e,t,r){return i.min(e.array,t.array,r.array),e._dirty=!0,e},a.max=function(e,t,r){return i.max(e.array,t.array,r.array),e._dirty=!0,e},a.multiply=a.mul=function(e,t,r){return i.multiply(e.array,t.array,r.array),e._dirty=!0,e},a.negate=function(e,t){return i.negate(e.array,t.array),e._dirty=!0,e},a.normalize=function(e,t){return i.normalize(e.array,t.array),e._dirty=!0,e},a.random=function(e,t){return i.random(e.array,t),e._dirty=!0,e},a.scale=function(e,t,r){return i.scale(e.array,t.array,r),e._dirty=!0,e},a.scaleAndAdd=function(e,t,r,n){return i.scaleAndAdd(e.array,t.array,r.array,n),e._dirty=!0,e},a.squaredDistance=a.sqrDist=function(e,t){return i.sqrDist(e.array,t.array)},a.squaredLength=a.sqrLen=function(e){return i.sqrLen(e.array)},a.subtract=a.sub=function(e,t,r){return i.subtract(e.array,t.array,r.array),e._dirty=!0,e},a.transformMat3=function(e,t,r){return i.transformMat3(e.array,t.array,r.array),e._dirty=!0,e},a.transformMat4=function(e,t,r){return i.transformMat4(e.array,t.array,r.array),e._dirty=!0,e},a.transformQuat=function(e,t,r){return i.transformQuat(e.array,t.array,r.array),e._dirty=!0,e};var u=Math.atan2,h=Math.asin,c=Math.abs;a.eulerFromQuat=function(e,t,r){e._dirty=!0,t=t.array;var n=e.array,i=t[0],a=t[1],o=t[2],s=t[3],c=i*i,d=a*a,f=o*o,p=s*s;switch(r=(r||"XYZ").toUpperCase()){case"XYZ":n[0]=u(2*(i*s-a*o),p-c-d+f),n[1]=h(l(2*(i*o+a*s),-1,1)),n[2]=u(2*(o*s-i*a),p+c-d-f);break;case"YXZ":n[0]=h(l(2*(i*s-a*o),-1,1)),n[1]=u(2*(i*o+a*s),p-c-d+f),n[2]=u(2*(i*a+o*s),p-c+d-f);break;case"ZXY":n[0]=h(l(2*(i*s+a*o),-1,1)),n[1]=u(2*(a*s-o*i),p-c-d+f),n[2]=u(2*(o*s-i*a),p-c+d-f);break;case"ZYX":n[0]=u(2*(i*s+o*a),p-c-d+f),n[1]=h(l(2*(a*s-i*o),-1,1)),n[2]=u(2*(i*a+o*s),p+c-d-f);break;case"YZX":n[0]=u(2*(i*s-o*a),p-c+d-f),n[1]=u(2*(a*s-i*o),p+c-d-f),n[2]=h(l(2*(i*a+o*s),-1,1));break;case"XZY":n[0]=u(2*(i*s+a*o),p-c+d-f),n[1]=u(2*(i*o+a*s),p+c-d-f),n[2]=h(l(2*(o*s-i*a),-1,1));break;default:console.warn("Unkown order: "+r)}return e},a.eulerFromMat3=function(e,t,r){var n=t.array,i=n[0],a=n[3],o=n[6],s=n[1],d=n[4],f=n[7],p=n[2],m=n[5],g=n[8],_=e.array;switch(r=(r||"XYZ").toUpperCase()){case"XYZ":_[1]=h(l(o,-1,1)),c(o)<.99999?(_[0]=u(-f,g),_[2]=u(-a,i)):(_[0]=u(m,d),_[2]=0);break;case"YXZ":_[0]=h(-l(f,-1,1)),c(f)<.99999?(_[1]=u(o,g),_[2]=u(s,d)):(_[1]=u(-p,i),_[2]=0);break;case"ZXY":_[0]=h(l(m,-1,1)),c(m)<.99999?(_[1]=u(-p,g),_[2]=u(-a,d)):(_[1]=0,_[2]=u(s,i));break;case"ZYX":_[1]=h(-l(p,-1,1)),c(p)<.99999?(_[0]=u(m,g),_[2]=u(s,i)):(_[0]=0,_[2]=u(-a,d));break;case"YZX":_[2]=h(l(s,-1,1)),c(s)<.99999?(_[0]=u(-f,d),_[1]=u(-p,i)):(_[0]=0,_[1]=u(o,g));break;case"XZY":_[2]=h(-l(a,-1,1)),c(a)<.99999?(_[0]=u(m,d),_[1]=u(o,i)):(_[0]=u(-f,g),_[1]=0);break;default:console.warn("Unkown order: "+r)}return e._dirty=!0,e},a.POSITIVE_X=new a(1,0,0),a.NEGATIVE_X=new a(-1,0,0),a.POSITIVE_Y=new a(0,1,0),a.NEGATIVE_Y=new a(0,-1,0),a.POSITIVE_Z=new a(0,0,1),a.NEGATIVE_Z=new a(0,0,-1),a.UP=new a(0,1,0),a.ZERO=new a(0,0,0),t.a=a},function(e,t,r){"use strict";var n=r(6),i=r(11),a=r(66).a.isPowerOfTwo,o=n.a.extend((function(){return{image:null,pixels:null,mipmaps:[]}}),{update:function(e){var t=e.gl;t.bindTexture(t.TEXTURE_2D,this._cache.get("webgl_texture")),this.updateCommon(e);var r=this.format,n=this.type;t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,this.getAvailableWrapS()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,this.getAvailableWrapT()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.getAvailableMagFilter()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.getAvailableMinFilter());var a=e.getGLExtension("EXT_texture_filter_anisotropic");if(a&&this.anisotropic>1&&t.texParameterf(t.TEXTURE_2D,a.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),36193===n&&(e.getGLExtension("OES_texture_half_float")||(n=i.a.FLOAT)),this.mipmaps.length)for(var o=this.width,s=this.height,l=0;l=n.a.COMPRESSED_RGB_S3TC_DXT1_EXT?e.compressedTexImage2D(e.TEXTURE_2D,r,o,i,a,0,t.pixels):e.texImage2D(e.TEXTURE_2D,r,o,i,a,0,o,s,t.pixels)},generateMipmap:function(e){var t=e.gl;this.useMipmap&&!this.NPOT&&(t.bindTexture(t.TEXTURE_2D,this._cache.get("webgl_texture")),t.generateMipmap(t.TEXTURE_2D))},isPowerOfTwo:function(){var e,t;return this.image?(e=this.image.width,t=this.image.height):(e=this.width,t=this.height),a(e)&&a(t)},isRenderable:function(){return this.image?"CANVAS"===this.image.nodeName||"VIDEO"===this.image.nodeName||this.image.complete:!(!this.width||!this.height)},bind:function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,this.getWebGLTexture(e))},unbind:function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,null)},load:function(e,t){var r=new Image;t&&(r.crossOrigin=t);var n=this;return r.onload=function(){n.dirty(),n.trigger("success",n),r.onload=null},r.onerror=function(){n.trigger("error",n),r.onerror=null},r.src=e,this.image=r,this}});Object.defineProperty(o.prototype,"width",{get:function(){return this.image?this.image.width:this._width},set:function(e){this.image?console.warn("Texture from image can't set width"):(this._width!==e&&this.dirty(),this._width=e)}}),Object.defineProperty(o.prototype,"height",{get:function(){return this.image?this.image.height:this._height},set:function(e){this.image?console.warn("Texture from image can't set height"):(this._height!==e&&this.dirty(),this._height=e)}}),t.a=o},function(e,t,r){"use strict";var n=r(8),i=r(11),a=r(48),o=n.a.extend({width:512,height:512,type:i.a.UNSIGNED_BYTE,format:i.a.RGBA,wrapS:i.a.REPEAT,wrapT:i.a.REPEAT,minFilter:i.a.LINEAR_MIPMAP_LINEAR,magFilter:i.a.LINEAR,useMipmap:!0,anisotropic:1,flipY:!0,sRGB:!0,unpackAlignment:4,premultiplyAlpha:!1,dynamic:!1,NPOT:!1},(function(){this._cache=new a.a}),{getWebGLTexture:function(e){var t=e.gl,r=this._cache;return r.use(e.__uid__),r.miss("webgl_texture")&&r.put("webgl_texture",t.createTexture()),this.dynamic?this.update(e):r.isDirty()&&(this.update(e),r.fresh()),r.get("webgl_texture")},bind:function(){},unbind:function(){},dirty:function(){this._cache&&this._cache.dirtyAll()},update:function(e){},updateCommon:function(e){var t=e.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,this.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,this.unpackAlignment),this.format===i.a.DEPTH_COMPONENT&&(this.useMipmap=!1);var r=e.getGLExtension("EXT_sRGB");this.format!==o.SRGB||r||(this.format=o.RGB),this.format!==o.SRGB_ALPHA||r||(this.format=o.RGBA),this.NPOT=!this.isPowerOfTwo()},getAvailableWrapS:function(){return this.NPOT?i.a.CLAMP_TO_EDGE:this.wrapS},getAvailableWrapT:function(){return this.NPOT?i.a.CLAMP_TO_EDGE:this.wrapT},getAvailableMinFilter:function(){var e=this.minFilter;return this.NPOT||!this.useMipmap?e==i.a.NEAREST_MIPMAP_NEAREST||e==i.a.NEAREST_MIPMAP_LINEAR?i.a.NEAREST:e==i.a.LINEAR_MIPMAP_LINEAR||e==i.a.LINEAR_MIPMAP_NEAREST?i.a.LINEAR:e:e},getAvailableMagFilter:function(){return this.magFilter},nextHighestPowerOfTwo:function(e){--e;for(var t=1;t<32;t<<=1)e|=e>>t;return e+1},dispose:function(e){var t=this._cache;t.use(e.__uid__);var r=t.get("webgl_texture");r&&e.gl.deleteTexture(r),t.deleteContext(e.__uid__)},isRenderable:function(){},isPowerOfTwo:function(){}});Object.defineProperty(o.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e}}),Object.defineProperty(o.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e}}),o.BYTE=i.a.BYTE,o.UNSIGNED_BYTE=i.a.UNSIGNED_BYTE,o.SHORT=i.a.SHORT,o.UNSIGNED_SHORT=i.a.UNSIGNED_SHORT,o.INT=i.a.INT,o.UNSIGNED_INT=i.a.UNSIGNED_INT,o.FLOAT=i.a.FLOAT,o.HALF_FLOAT=36193,o.UNSIGNED_INT_24_8_WEBGL=34042,o.DEPTH_COMPONENT=i.a.DEPTH_COMPONENT,o.DEPTH_STENCIL=i.a.DEPTH_STENCIL,o.ALPHA=i.a.ALPHA,o.RGB=i.a.RGB,o.RGBA=i.a.RGBA,o.LUMINANCE=i.a.LUMINANCE,o.LUMINANCE_ALPHA=i.a.LUMINANCE_ALPHA,o.SRGB=35904,o.SRGB_ALPHA=35906,o.COMPRESSED_RGB_S3TC_DXT1_EXT=33776,o.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777,o.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778,o.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779,o.NEAREST=i.a.NEAREST,o.LINEAR=i.a.LINEAR,o.NEAREST_MIPMAP_NEAREST=i.a.NEAREST_MIPMAP_NEAREST,o.LINEAR_MIPMAP_NEAREST=i.a.LINEAR_MIPMAP_NEAREST,o.NEAREST_MIPMAP_LINEAR=i.a.NEAREST_MIPMAP_LINEAR,o.LINEAR_MIPMAP_LINEAR=i.a.LINEAR_MIPMAP_LINEAR,o.REPEAT=i.a.REPEAT,o.CLAMP_TO_EDGE=i.a.CLAMP_TO_EDGE,o.MIRRORED_REPEAT=i.a.MIRRORED_REPEAT,t.a=o},function(e,t,r){"use strict";var n=r(21),i=r(18),a=r(1),o=r.n(a),s=o.a.mat2,l=o.a.mat3,u=o.a.mat4,h=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\w\,]+)?(\[.*?\])?\s*(:\s*([\S\s]+?))?;/g,c=/attribute\s+(float|int|vec2|vec3|vec4)\s+(\w*)\s*(:\s*(\w+))?;/g,d=/#define\s+(\w+)?(\s+[\w-.]+)?\s*;?\s*\n/g,f={bool:"1i",int:"1i",sampler2D:"t",samplerCube:"t",float:"1f",vec2:"2f",vec3:"3f",vec4:"4f",ivec2:"2i",ivec3:"3i",ivec4:"4i",mat2:"m2",mat3:"m3",mat4:"m4"},p={bool:function(){return!0},int:function(){return 0},float:function(){return 0},sampler2D:function(){return null},samplerCube:function(){return null},vec2:function(){return[0,0]},vec3:function(){return[0,0,0]},vec4:function(){return[0,0,0,0]},ivec2:function(){return[0,0]},ivec3:function(){return[0,0,0]},ivec4:function(){return[0,0,0,0]},mat2:function(){return s.create()},mat3:function(){return l.create()},mat4:function(){return u.create()},array:function(){return[]}},m=["POSITION","NORMAL","BINORMAL","TANGENT","TEXCOORD","TEXCOORD_0","TEXCOORD_1","COLOR","JOINT","WEIGHT"],g=["SKIN_MATRIX","VIEWPORT_SIZE","VIEWPORT","DEVICEPIXELRATIO","WINDOW_SIZE","NEAR","FAR","TIME"],_=["WORLD","VIEW","PROJECTION","WORLDVIEW","VIEWPROJECTION","WORLDVIEWPROJECTION","WORLDINVERSE","VIEWINVERSE","PROJECTIONINVERSE","WORLDVIEWINVERSE","VIEWPROJECTIONINVERSE","WORLDVIEWPROJECTIONINVERSE","WORLDTRANSPOSE","VIEWTRANSPOSE","PROJECTIONTRANSPOSE","WORLDVIEWTRANSPOSE","VIEWPROJECTIONTRANSPOSE","WORLDVIEWPROJECTIONTRANSPOSE","WORLDINVERSETRANSPOSE","VIEWINVERSETRANSPOSE","PROJECTIONINVERSETRANSPOSE","WORLDVIEWINVERSETRANSPOSE","VIEWPROJECTIONINVERSETRANSPOSE","WORLDVIEWPROJECTIONINVERSETRANSPOSE"],v={},y={};function x(e,t){"object"==typeof e&&(t=e.fragment,e=e.vertex),this._shaderID=function(e,t){var r="vertex:"+e+"fragment:"+t;if(v[r])return v[r];var i=n.a.genGUID();return v[r]=i,y[i]={vertex:e,fragment:t},i}(e,t),this._vertexCode=x.parseImport(e),this._fragmentCode=x.parseImport(t),this.attributeSemantics={},this.matrixSemantics={},this.uniformSemantics={},this.matrixSemanticKeys=[],this.uniformTemplates={},this.attributes={},this.textures={},this.vertexDefines={},this.fragmentDefines={},this._parseAttributes(),this._parseUniforms(),this._parseDefines()}x.prototype={constructor:x,createUniforms:function(){var e={};for(var t in this.uniformTemplates){var r=this.uniformTemplates[t];e[t]={type:r.type,value:r.value()}}return e},_parseImport:function(){this._vertexCode=x.parseImport(this.vertex),this._fragmentCode=x.parseImport(this.fragment)},_parseUniforms:function(){var e={},t=this;function r(r,n,i,a,o,s){if(n&&i){var l,u=f[n],h=!0;if(u){if(t._uniformList.push(i),"sampler2D"!==n&&"samplerCube"!==n||(t.textures[i]={shaderType:"fragment",type:n}),a&&(u+="v"),s)if(m.indexOf(s)>=0)t.attributeSemantics[s]={symbol:i,type:u},h=!1;else if(_.indexOf(s)>=0){var c=!1,d=s;s.match(/TRANSPOSE$/)&&(c=!0,d=s.slice(0,-9)),t.matrixSemantics[s]={symbol:i,type:u,isTranspose:c,semanticNoTranspose:d},h=!1}else if(g.indexOf(s)>=0)t.uniformSemantics[s]={symbol:i,type:u},h=!1;else if("unconfigurable"===s)h=!1;else{if(!(l=t._parseDefaultValue(n,s)))throw new Error('Unkown semantic "'+s+'"');s=""}h&&(e[i]={type:u,value:a?p.array:l||p[n],semantic:s||null})}return["uniform",n,i,a].join(" ")+";\n"}}this._uniformList=[],this._vertexCode=this._vertexCode.replace(h,r),this._fragmentCode=this._fragmentCode.replace(h,r),t.matrixSemanticKeys=Object.keys(this.matrixSemantics),this.uniformTemplates=e},_parseDefaultValue:function(e,t){if("vec2"!==e&&"vec3"!==e&&"vec4"!==e)return"bool"===e?function(){return"true"===t.toLowerCase()}:"float"===e?function(){return parseFloat(t)}:"int"===e?function(){return parseInt(t)}:void 0;var r=/\[\s*(.*)\s*\]/.exec(t)[1];if(r){var n=r.split(/\s*,\s*/);return function(){return new i.a.Float32Array(n)}}},_parseAttributes:function(){var e={},t=this;this._vertexCode=this._vertexCode.replace(c,(function(r,n,i,a,o){if(n&&i){var s=1;switch(n){case"vec4":s=4;break;case"vec3":s=3;break;case"vec2":s=2;break;case"float":s=1}if(e[i]={type:"float",size:s,semantic:o||null},o){if(m.indexOf(o)<0)throw new Error('Unkown semantic "'+o+'"');t.attributeSemantics[o]={symbol:i,type:n}}}return["attribute",n,i].join(" ")+";\n"})),this.attributes=e},_parseDefines:function(){var e=this;function t(t,r,n){var i=e.fragmentDefines;return i[r]||(i[r]="false"!=n&&("true"==n||(n?isNaN(parseFloat(n))?n.trim():parseFloat(n):null))),""}this._vertexCode=this._vertexCode.replace(d,t),this._fragmentCode=this._fragmentCode.replace(d,t)},clone:function(){var e=y[this._shaderID];return new x(e.vertex,e.fragment)}},Object.defineProperty&&(Object.defineProperty(x.prototype,"shaderID",{get:function(){return this._shaderID}}),Object.defineProperty(x.prototype,"vertex",{get:function(){return this._vertexCode}}),Object.defineProperty(x.prototype,"fragment",{get:function(){return this._fragmentCode}}),Object.defineProperty(x.prototype,"uniforms",{get:function(){return this._uniformList}}));var T=/(@import)\s*([0-9a-zA-Z_\-\.]*)/g;x.parseImport=function(e){return e=e.replace(T,(function(e,t,r){return(e=x.source(r))?x.parseImport(e):(console.error('Shader chunk "'+r+'" not existed in library'),"")}))};var b=/(@export)\s*([0-9a-zA-Z_\-\.]*)\s*\n([\s\S]*?)@end/g;x.import=function(e){e.replace(b,(function(e,t,r,n){if(n=n.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+\x24)/g,"")){for(var i,a=r.split("."),o=x.codes,s=0;sa[0]&&(a[0]=s),l>a[1]&&(a[1]=l),c>a[2]&&(a[2]=c)}r._dirty=!0,n._dirty=!0}},dirty:function(){for(var e=this.getEnabledAttributes(),t=0;t=0){t||(t=d());var r=this.indices;return t[0]=r[3*e],t[1]=r[3*e+1],t[2]=r[3*e+2],t}},setTriangleIndices:function(e,t){var r=this.indices;r[3*e]=t[0],r[3*e+1]=t[1],r[3*e+2]=t[2]},isUseIndices:function(){return!!this.indices},initIndicesFromArray:function(e){var t,r=this.vertexCount>65535?o.a.Uint32Array:o.a.Uint16Array;if(e[0]&&e[0].length){var n=0;t=new r(3*e.length);for(var i=0;i=0&&(t.splice(r,1),delete this.attributes[e],!0)},getAttribute:function(e){return this.attributes[e]},getEnabledAttributes:function(){var e=this._enabledAttributes,t=this._attributeList;if(e)return e;for(var r=[],n=this.vertexCount,i=0;i65535&&(this.indices=new o.a.Uint32Array(this.indices));for(var e=this.attributes,t=this.indices,r=this.getEnabledAttributes(),n={},i=0;i=r.COLOR_ATTACHMENT0&&a<=r.COLOR_ATTACHMENT0+8&&i.push(a);n.drawBuffersEXT(i)}}this.trigger("beforerender",this,e);var o=this.clearDepth?r.DEPTH_BUFFER_BIT:0;if(r.depthMask(!0),this.clearColor){o|=r.COLOR_BUFFER_BIT,r.colorMask(!0,!0,!0,!0);var s=this.clearColor;Array.isArray(s)&&r.clearColor(s[0],s[1],s[2],s[3])}r.clear(o),this.blendWithPrevious?(r.enable(r.BLEND),this.material.transparent=!0):(r.disable(r.BLEND),this.material.transparent=!1),this.renderQuad(e),this.trigger("afterrender",this,e),t&&this.unbind(e,t)},renderQuad:function(e){d.material=this.material,e.renderPass([d],f)},dispose:function(e){}});t.a=p},function(e,t,r){"use strict";var n,i,a,o,s,l,u=r(4),h=r(1),c=r.n(h).a.vec3,d=c.copy,f=c.set,p=function(e,t){this.min=e||new u.a(1/0,1/0,1/0),this.max=t||new u.a(-1/0,-1/0,-1/0)};p.prototype={constructor:p,updateFromVertices:function(e){if(e.length>0){var t=this.min,r=this.max,n=t.array,i=r.array;d(n,e[0]),d(i,e[0]);for(var a=1;ai[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1]),o[2]>i[2]&&(i[2]=o[2])}t._dirty=!0,r._dirty=!0}},union:function(e){var t=this.min,r=this.max;return c.min(t.array,t.array,e.min.array),c.max(r.array,r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},intersection:function(e){var t=this.min,r=this.max;return c.max(t.array,t.array,e.min.array),c.min(r.array,r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},intersectBoundingBox:function(e){var t=this.min.array,r=this.max.array,n=e.min.array,i=e.max.array;return!(t[0]>i[0]||t[1]>i[1]||t[2]>i[2]||r[0]=i[0]&&r[1]>=i[1]&&r[2]>=i[2]},containPoint:function(e){var t=this.min.array,r=this.max.array,n=e.array;return t[0]<=n[0]&&t[1]<=n[1]&&t[2]<=n[2]&&r[0]>=n[0]&&r[1]>=n[1]&&r[2]>=n[2]},isFinite:function(){var e=this.min.array,t=this.max.array;return isFinite(e[0])&&isFinite(e[1])&&isFinite(e[2])&&isFinite(t[0])&&isFinite(t[1])&&isFinite(t[2])},applyTransform:(n=c.create(),i=c.create(),a=c.create(),o=c.create(),s=c.create(),l=c.create(),function(e){var t=this.min.array,r=this.max.array,u=e.array;return n[0]=u[0]*t[0],n[1]=u[1]*t[0],n[2]=u[2]*t[0],i[0]=u[0]*r[0],i[1]=u[1]*r[0],i[2]=u[2]*r[0],a[0]=u[4]*t[1],a[1]=u[5]*t[1],a[2]=u[6]*t[1],o[0]=u[4]*r[1],o[1]=u[5]*r[1],o[2]=u[6]*r[1],s[0]=u[8]*t[2],s[1]=u[9]*t[2],s[2]=u[10]*t[2],l[0]=u[8]*r[2],l[1]=u[9]*r[2],l[2]=u[10]*r[2],t[0]=Math.min(n[0],i[0])+Math.min(a[0],o[0])+Math.min(s[0],l[0])+u[12],t[1]=Math.min(n[1],i[1])+Math.min(a[1],o[1])+Math.min(s[1],l[1])+u[13],t[2]=Math.min(n[2],i[2])+Math.min(a[2],o[2])+Math.min(s[2],l[2])+u[14],r[0]=Math.max(n[0],i[0])+Math.max(a[0],o[0])+Math.max(s[0],l[0])+u[12],r[1]=Math.max(n[1],i[1])+Math.max(a[1],o[1])+Math.max(s[1],l[1])+u[13],r[2]=Math.max(n[2],i[2])+Math.max(a[2],o[2])+Math.max(s[2],l[2])+u[14],this.min._dirty=!0,this.max._dirty=!0,this}),applyProjection:function(e){var t=this.min.array,r=this.max.array,n=e.array,i=t[0],a=t[1],o=t[2],s=r[0],l=r[1],u=t[2],h=r[0],c=r[1],d=r[2];if(1===n[15])t[0]=n[0]*i+n[12],t[1]=n[5]*a+n[13],r[2]=n[10]*o+n[14],r[0]=n[0]*h+n[12],r[1]=n[5]*c+n[13],t[2]=n[10]*d+n[14];else{var f=-1/o;t[0]=n[0]*i*f,t[1]=n[5]*a*f,r[2]=(n[10]*o+n[14])*f,f=-1/u,r[0]=n[0]*s*f,r[1]=n[5]*l*f,f=-1/d,t[2]=(n[10]*d+n[14])*f}return this.min._dirty=!0,this.max._dirty=!0,this},updateVertices:function(){if(!(e=this.vertices)){for(var e=[],t=0;t<8;t++)e[t]=c.fromValues(0,0,0);this.vertices=e}var r=this.min.array,n=this.max.array;return f(e[0],r[0],r[1],r[2]),f(e[1],r[0],n[1],r[2]),f(e[2],n[0],r[1],r[2]),f(e[3],n[0],n[1],r[2]),f(e[4],r[0],r[1],n[2]),f(e[5],r[0],n[1],n[2]),f(e[6],n[0],r[1],n[2]),f(e[7],n[0],n[1],n[2]),this},copy:function(e){var t=this.min,r=this.max;return d(t.array,e.min.array),d(r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},clone:function(){var e=new p;return e.copy(this),e}},t.a=p},function(e,t,r){"use strict";t.a=function(e,t,r){return{seriesType:e,reset:function(e,t){var r=e.getData(),n=e.visualColorAccessPath.split(".");n[n.length-1]="opacity";var i=e.get(n);return r.setVisual("opacity",null==i?1:i),{dataEach:r.hasItemOption?function(e){var t=r.getItemModel(e).get(n);null!=t&&r.setItemVisual(e,"opacity",t)}:null}}}}},function(e,t,r){"use strict";var n=r(8),i=r(6),a=r(21),o=r(93).a.parseToFloat,s={};function l(e,t,r){var n=Object.keys(e);n.sort();for(var i=[],a=0;a=0},getEnabledUniforms:function(){return this._enabledUniforms},getTextureUniforms:function(){return this._textureUniforms},set:function(e,t){if("object"==typeof e)for(var r in e){var n=e[r];this.setUniform(r,n)}else this.setUniform(e,t)},get:function(e){var t=this.uniforms[e];if(t)return t.value},attachShader:function(e,t){var r=this.uniforms;this.uniforms=e.createUniforms(),this.shader=e;var n=this.uniforms;this._enabledUniforms=Object.keys(n),this._enabledUniforms.sort(),this._textureUniforms=this._enabledUniforms.filter((function(e){var t=this.uniforms[e].type;return"t"===t||"tv"===t}),this);var i=this.vertexDefines,o=this.fragmentDefines;if(this.vertexDefines=a.a.clone(e.vertexDefines),this.fragmentDefines=a.a.clone(e.fragmentDefines),t){for(var s in r)n[s]&&(n[s].value=r[s].value);a.a.defaults(this.vertexDefines,i),a.a.defaults(this.fragmentDefines,o)}var l={};for(var u in e.textures)l[u]={shaderType:e.textures[u].shaderType,type:e.textures[u].type,enabled:!(!t||!this._textureStatus[u])&&this._textureStatus[u].enabled};this._textureStatus=l,this._programKey=""},clone:function(){var e=new this.constructor({name:this.name,shader:this.shader});for(var t in this.uniforms)e.uniforms[t].value=this.uniforms[t].value;return e.depthTest=this.depthTest,e.depthMask=this.depthMask,e.transparent=this.transparent,e.blend=this.blend,e.vertexDefines=a.a.clone(this.vertexDefines),e.fragmentDefines=a.a.clone(this.fragmentDefines),e.enableTexture(this.getEnabledTextures()),e.precision=this.precision,e},define:function(e,t,r){var n=this.vertexDefines,i=this.fragmentDefines;"vertex"!==e&&"fragment"!==e&&"both"!==e&&arguments.length<3&&(r=t,t=e,e="both"),r=null!=r?r:null,"vertex"!==e&&"both"!==e||n[t]!==r&&(n[t]=r,this._programKey=""),"fragment"!==e&&"both"!==e||i[t]!==r&&(i[t]=r,"both"!==e&&(this._programKey=""))},undefine:function(e,t){"vertex"!==e&&"fragment"!==e&&"both"!==e&&arguments.length<2&&(t=e,e="both"),"vertex"!==e&&"both"!==e||this.isDefined("vertex",t)&&(delete this.vertexDefines[t],this._programKey=""),"fragment"!==e&&"both"!==e||this.isDefined("fragment",t)&&(delete this.fragmentDefines[t],"both"!==e&&(this._programKey=""))},isDefined:function(e,t){switch(e){case"vertex":return void 0!==this.vertexDefines[t];case"fragment":return void 0!==this.fragmentDefines[t]}},getDefine:function(e,t){switch(e){case"vertex":return this.vertexDefines[t];case"fragment":return this.fragmentDefines[t]}},enableTexture:function(e){if(Array.isArray(e))for(var t=0;t=r.x&&t>=r.y&&e<=r.x+r.width&&t<=r.y+r.height};var _=new c.a;g.prototype.castRay=function(e,t,r){var n=this.layer.renderer,i=n.viewport;return n.viewport=this.viewport,n.screenToNDC(e,t,_),this.camera.castRay(_,r),n.viewport=i,r},g.prototype.prepareRender=function(){this.scene.update(),this.camera.update(),this._needsSortProgressively=!1;for(var e=0;e30},g.prototype._doRender=function(e,t,r){var n,i=this.scene,a=this.camera;r=r||0,this._updateTransparent(e,i,a,r),t||(this._shadowMapPass.kernelPCF=this._pcfKernels[0],this._shadowMapPass.render(e,i,a,!0)),this._updateShadowPCFKernel(r),e.gl.clearColor(0,0,0,0),this._enablePostEffect&&(this.needsTemporalSS()&&this._temporalSS.jitterProjection(e,a),this._compositor.updateNormal(e,i,a,this._temporalSS.getFrame())),this._updateSSAO(e,i,a,this._temporalSS.getFrame()),this._enablePostEffect?((n=this._compositor.getSourceFrameBuffer()).bind(e),e.gl.clear(e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT),e.render(i,a,!0,!0),n.unbind(e),this.needsTemporalSS()&&t?(this._compositor.composite(e,a,this._temporalSS.getSourceFrameBuffer(),this._temporalSS.getFrame()),e.setViewport(this.viewport),this._temporalSS.render(e)):(e.setViewport(this.viewport),this._compositor.composite(e,a,null,0))):this.needsTemporalSS()&&t?((n=this._temporalSS.getSourceFrameBuffer()).bind(e),e.saveClear(),e.clearBit=e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT,e.render(i,a,!0,!0),e.restoreClear(),n.unbind(e),e.setViewport(this.viewport),this._temporalSS.render(e)):(e.setViewport(this.viewport),e.render(i,a,!0,!0))},g.prototype._updateTransparent=function(e,t,r,n){for(var i=new h.a,a=new u.a,o=r.getWorldPosition(),s=0;sthis.camera.far||e65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(e){this.triangleCount!==e&&(this.indices=0===e?null:this.vertexCount>65535?new Uint32Array(3*e):new Uint16Array(3*e))},_getCubicCurveApproxStep:function(e,t,r,n){return 1/(l.dist(e,t)+l.dist(r,t)+l.dist(n,r)+1)*this.segmentScale},getCubicCurveVertexCount:function(e,t,r,n){var i=this._getCubicCurveApproxStep(e,t,r,n),a=Math.ceil(1/i);return this.useNativeLine?2*a:2*a+2},getCubicCurveTriangleCount:function(e,t,r,n){var i=this._getCubicCurveApproxStep(e,t,r,n),a=Math.ceil(1/i);return this.useNativeLine?0:2*a},getLineVertexCount:function(){return this.getPolylineVertexCount(u)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(u)},getPolylineVertexCount:function(e){var t;return t="number"==typeof e?e:"number"!=typeof e[0]?e.length:e.length/3,this.useNativeLine?2*(t-1):2*(t-1)+2},getPolylineTriangleCount:function(e){var t;return t="number"==typeof e?e:"number"!=typeof e[0]?e.length:e.length/3,this.useNativeLine?0:2*Math.max(t-1,0)},addCubicCurve:function(e,t,r,n,i,a){null==a&&(a=1);var o=e[0],s=e[1],l=e[2],u=t[0],h=t[1],c=t[2],d=r[0],f=r[1],p=r[2],m=n[0],g=n[1],_=n[2],v=this._getCubicCurveApproxStep(e,t,r,n),y=v*v,x=y*v,T=3*v,b=3*y,w=6*y,E=6*x,S=o-2*u+d,M=s-2*h+f,A=l-2*c+p,C=3*(u-d)-o+m,L=3*(h-f)-s+g,N=3*(c-p)-l+_,D=o,I=s,P=l,O=(u-o)*T+S*b+C*x,R=(h-s)*T+M*b+L*x,F=(c-l)*T+A*b+N*x,B=S*w+C*E,U=M*w+L*E,z=A*w+N*E,G=C*E,H=L*E,k=N*E,V=0,W=0,j=Math.ceil(1/v),X=new Float32Array(3*(j+1)),q=(X=[],0);for(W=0;W1&&(D=O>0?Math.min(D,m):Math.max(D,m),I=R>0?Math.min(I,g):Math.max(I,g),P=F>0?Math.min(P,_):Math.max(P,_));return this.addPolyline(X,i,a)},addLine:function(e,t,r,n){return this.addPolyline([e,t],r,n)},addPolyline:function(e,t,r,n,i){if(e.length){var a="number"!=typeof e[0];if(null==i&&(i=a?e.length:e.length/3),!(i<2)){null==n&&(n=0),null==r&&(r=1),this._itemVertexOffsets.push(this._vertexOffset);var o,s,l=(a="number"!=typeof e[0])?"number"!=typeof t[0]:t.length/4===i,u=this.attributes.position,h=this.attributes.positionPrev,c=this.attributes.positionNext,d=this.attributes.color,f=this.attributes.offset,p=this.indices,m=this._vertexOffset;r=Math.max(r,.01);for(var g=n;g1&&(u.copy(m,m-1),d.copy(m,m-1),m++):(g0&&(c.set(m-2,o),c.set(m-1,o)),u.set(m,o),u.set(m+1,o),d.set(m,s),d.set(m+1,s),f.set(m,r/2),f.set(m+1,-r/2),m+=2),this.useNativeLine)d.set(m,s),u.set(m,o),m++;else if(g>0){var y=3*this._triangleOffset;(p=this.indices)[y]=m-4,p[y+1]=m-3,p[y+2]=m-2,p[y+3]=m-3,p[y+4]=m-1,p[y+5]=m-2,this._triangleOffset+=2}}if(!this.useNativeLine){var x=this._vertexOffset,T=this._vertexOffset+2*i;h.copy(x,x+2),h.copy(x+1,x+3),c.copy(T-1,T-3),c.copy(T-2,T-4)}return this._vertexOffset=m,this._vertexOffset}}},setItemColor:function(e,t){for(var r=this._itemVertexOffsets[e],n=e0)},render:function(e,t,r){var i=e.gl;if(this.skeleton){this.skeleton.update();var a=this.skeleton.getSubSkinMatrices(this.__uid__,this.joints);r.setUniformOfSemantic(i,"SKIN_MATRIX",a)}return n.a.prototype.render.call(this,e,t,r)},getSkinMatricesTexture:function(){return this._skinMatricesTexture=this._skinMatricesTexture||new a.a({type:i.a.FLOAT,minFilter:i.a.NEAREST,magFilter:i.a.NEAREST,useMipmap:!1,flipY:!1}),this._skinMatricesTexture}});o.POINTS=i.a.POINTS,o.LINES=i.a.LINES,o.LINE_LOOP=i.a.LINE_LOOP,o.LINE_STRIP=i.a.LINE_STRIP,o.TRIANGLES=i.a.TRIANGLES,o.TRIANGLE_STRIP=i.a.TRIANGLE_STRIP,o.TRIANGLE_FAN=i.a.TRIANGLE_FAN,o.BACK=i.a.BACK,o.FRONT=i.a.FRONT,o.FRONT_AND_BACK=i.a.FRONT_AND_BACK,o.CW=i.a.CW,o.CCW=i.a.CCW,t.a=o},function(e,t,r){"use strict";var n=r(6),i=r(11),a=r(21),o=r(66).a.isPowerOfTwo,s=["px","nx","py","ny","pz","nz"],l=n.a.extend((function(){return{image:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},pixels:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},mipmaps:[]}}),{update:function(e){var t=e.gl;t.bindTexture(t.TEXTURE_CUBE_MAP,this._cache.get("webgl_texture")),this.updateCommon(e);var r=this.format,n=this.type;t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_WRAP_S,this.getAvailableWrapS()),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_WRAP_T,this.getAvailableWrapT()),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MAG_FILTER,this.getAvailableMagFilter()),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MIN_FILTER,this.getAvailableMinFilter());var a=e.getGLExtension("EXT_texture_filter_anisotropic");if(a&&this.anisotropic>1&&t.texParameterf(t.TEXTURE_CUBE_MAP,a.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),36193===n&&(e.getGLExtension("OES_texture_half_float")||(n=i.a.FLOAT)),this.mipmaps.length)for(var o=this.width,s=this.height,l=0;l0&&console.warn("Found multiple camera in one scene. Use the fist one."),this._cameraList.push(e)),e.name&&(this._nodeRepository[e.name]=e)},removeFromScene:function(e){if(e instanceof a.a){var t=this._cameraList.indexOf(e);t>=0&&this._cameraList.splice(t,1)}e.name&&delete this._nodeRepository[e.name]},getNode:function(e){return this._nodeRepository[e]},cloneNode:function(e){var t=e.clone(),r={},n=function(i,a){i.skeleton&&(a.skeleton=i.skeleton.clone(e,t),a.joints=i.joints.slice()),i.material&&(r[i.material.__uid__]={oldMat:i.material});for(var o=0;o0&&this._updateRenderList(n)}},_updateLightUniforms:function(){var e=this.lights;e.sort(c);var t=this._lightUniforms;for(var r in t)for(var n in t[r])t[r][n].value.length=0;for(var i=0;i0?e[t].value=new Float32Array(e[t].value):e[t].value=null;this.indices&&this.indices.length>0&&(this.indices=this.vertexCount>65535?new Uint32Array(this.indices):new Uint16Array(this.indices)),this.dirty()}}},function(e,t,r){"use strict";var n=r(2),i=r(57),a=r(56),o=r(0),s=r.n(o);function l(){}l.prototype={constructor:l,setScene:function(e){this._scene=e,this._skybox&&this._skybox.attachScene(this._scene)},initLight:function(e){this._lightRoot=e,this.mainLight=new n.a.DirectionalLight({shadowBias:.005}),this.ambientLight=new n.a.AmbientLight,e.add(this.mainLight),e.add(this.ambientLight)},dispose:function(){this._lightRoot&&(this._lightRoot.remove(this.mainLight),this._lightRoot.remove(this.ambientLight))},updateLight:function(e){var t=this.mainLight,r=this.ambientLight,i=e.getModel("light"),a=i.getModel("main"),o=i.getModel("ambient");t.intensity=a.get("intensity"),r.intensity=o.get("intensity"),t.color=n.a.parseColor(a.get("color")).slice(0,3),r.color=n.a.parseColor(o.get("color")).slice(0,3);var s=a.get("alpha")||0,l=a.get("beta")||0;t.position.setArray(n.a.directionFromAlphaBeta(s,l)),t.lookAt(n.a.Vector3.ZERO),t.castShadow=a.get("shadow"),t.shadowResolution=n.a.getShadowResolution(a.get("shadowQuality"))},updateAmbientCubemap:function(e,t,r){var a=t.getModel("light.ambientCubemap"),o=a.get("texture");if(o){this._cubemapLightsCache=this._cubemapLightsCache||{};var s=this._cubemapLightsCache[o];if(!s){var l=this;s=this._cubemapLightsCache[o]=n.a.createAmbientCubemap(a.option,e,r,(function(){l._skybox instanceof i.a&&l._skybox.setEnvironmentMap(s.specular.cubemap),r.getZr().refresh()}))}this._lightRoot.add(s.diffuse),this._lightRoot.add(s.specular),this._currentCubemapLights=s}else this._currentCubemapLights&&(this._lightRoot.remove(this._currentCubemapLights.diffuse),this._lightRoot.remove(this._currentCubemapLights.specular),this._currentCubemapLights=null)},updateSkybox:function(e,t,r){var o=t.get("environment"),l=this;function u(){return l._skybox instanceof a.a||(l._skybox&&l._skybox.dispose(e),l._skybox=new a.a),l._skybox}if(o&&"none"!==o)if("auto"===o)if(this._currentCubemapLights){var h=(l._skybox instanceof i.a||(l._skybox&&l._skybox.dispose(e),l._skybox=new i.a),l._skybox),c=this._currentCubemapLights.specular.cubemap;h.setEnvironmentMap(c),this._scene&&h.attachScene(this._scene),h.material.set("lod",2)}else this._skybox&&this._skybox.detachScene();else if("object"==typeof o&&o.colorStops||"string"==typeof o&&s.a.color.parse(o)){var d=u(),f=new n.a.Texture2D({anisotropic:8,flipY:!1});d.setEnvironmentMap(f);var p=f.image=document.createElement("canvas");p.width=p.height=16;var m=p.getContext("2d");new s.a.graphic.Rect({shape:{x:0,y:0,width:16,height:16},style:{fill:o}}).brush(m),d.attachScene(this._scene)}else d=u(),f=n.a.loadTexture(o,r,{anisotropic:8,flipY:!1}),d.setEnvironmentMap(f),d.attachScene(this._scene);else this._skybox&&this._skybox.detachScene(this._scene),this._skybox=null;var g=t.coordinateSystem;if(this._skybox)if(!g||!g.viewGL||"auto"===o||o.match&&o.match(/.hdr$/))this._skybox.material.undefine("fragment","SRGB_DECODE");else{var _=g.viewGL.isLinearSpace()?"define":"undefine";this._skybox.material[_]("fragment","SRGB_DECODE")}}},t.a=l},function(e,t,r){"use strict";var n=r(0),i=r.n(n);t.a=function(e,t,r){var n=e.getData(),a=e.getRawValue(t),o=i.a.util.isArray(a)?function(e){var a=[],o=function(e,t){var r=[];return i.a.util.each(e.dimensions,(function(n){var i=e.getDimensionInfo(n),a=i.otherDims[t];null!=a&&!1!==a&&(r[a]=i.name)})),r}(n,"tooltip");function s(e,t){var o=n.getDimensionInfo(t);if(o&&!1!==o.otherDims.tooltip){var s=o.type,l="- "+(o.tooltipName||o.name)+": "+("ordinal"===s?e+"":"time"===s?r?"":i.a.format.formatTime("yyyy/MM/dd hh:mm:ss",e):i.a.format.addCommas(e));l&&a.push(i.a.format.encodeHTML(l))}}return o.length?i.a.util.each(o,(function(e){s(n.get(e,t),e)})):i.a.util.each(e,s),"
"+a.join("
")}(a):i.a.format.encodeHTML(i.a.format.addCommas(a)),s=n.getName(t),l=n.getItemVisual(t,"color");i.a.util.isObject(l)&&l.colorStops&&(l=(l.colorStops[0]||{}).color),l=l||"transparent";var u=i.a.format.getTooltipMarker(l),h=e.name;return"\0-"===h&&(h=""),h=h?i.a.format.encodeHTML(h)+(r?": ":"
"):"",r?u+h+o:h+u+(s?i.a.format.encodeHTML(s)+": "+o:o)}},function(e,t,r){"use strict";var n=r(51),i=n.a.extend({fov:50,aspect:1,near:.1,far:2e3},{updateProjectionMatrix:function(){var e=this.fov/180*Math.PI;this.projectionMatrix.perspective(e,this.aspect,this.near,this.far)},decomposeProjectionMatrix:function(){var e=this.projectionMatrix.array,t=2*Math.atan(1/e[5]);this.fov=t/Math.PI*180,this.aspect=e[5]/e[0],this.near=e[14]/(e[10]-1),this.far=e[14]/(e[10]+1)},clone:function(){var e=n.a.prototype.clone.call(this);return e.fov=this.fov,e.aspect=this.aspect,e.near=this.near,e.far=this.far,e}});t.a=i},function(e,t,r){"use strict";var n=r(13),i=r(15),a=n.a.extend({dynamic:!1,widthSegments:1,heightSegments:1},(function(){this.build()}),{build:function(){for(var e=this.heightSegments,t=this.widthSegments,r=this.attributes,n=[],a=[],o=[],s=[],l=0;l<=e;l++)for(var u=l/e,h=0;h<=t;h++){var c=h/t;if(n.push([2*c-1,2*u-1,0]),a&&a.push([c,u]),o&&o.push([0,0,1]),h0&&this._notFirst?this.animateTo({alpha:h,beta:c,center:d,distance:a,targetOrthographicSize:s,easing:u.animationEasingUpdate,duration:u.animationDurationUpdate}):(this.setDistance(a),this.setAlpha(h),this.setBeta(c),this.setCenter(d),this.setOrthographicSize(s)),this._notFirst=!0,this._validateProperties()},_validateProperties:function(){null==s[this.panMouseButton]&&console.error("Unkown panMouseButton %s. It should be left|middle|right",this.panMouseButton),null==s[this.rotateMouseButton]&&console.error("Unkown rotateMouseButton %s. It should be left|middle|right",this.rotateMouseButton),"cw"!==this.autoRotateDirection&&"ccw"!==this.autoRotateDirection&&console.error("Unkown autoRotateDirection %s. It should be cw|ccw",this.autoRotateDirection)},animateTo:function(e){var t=this.zr,r=this,n={},i={};return null!=e.distance&&(n.distance=this.getDistance(),i.distance=e.distance),null!=e.orthographicSize&&(n.orthographicSize=this.getOrthographicSize(),i.orthographicSize=e.orthographicSize),null!=e.alpha&&(n.alpha=this.getAlpha(),i.alpha=e.alpha),null!=e.beta&&(n.beta=this.getBeta(),i.beta=e.beta),null!=e.center&&(n.center=this.getCenter(),i.center=e.center),this._addAnimator(t.animation.animate(n).when(e.duration||1e3,i).during((function(){null!=n.alpha&&r.setAlpha(n.alpha),null!=n.beta&&r.setBeta(n.beta),null!=n.distance&&r.setDistance(n.distance),null!=n.center&&r.setCenter(n.center),null!=n.orthographicSize&&r.setOrthographicSize(n.orthographicSize),r._needsUpdate=!0}))).start(e.easing||"linear")},stopAllAnimation:function(){for(var e=0;e0},_update:function(e){if(this._rotating){var t=("cw"===this.autoRotateDirection?1:-1)*this.autoRotateSpeed/180*Math.PI;this._phi-=t*e/1e3,this._needsUpdate=!0}else this._rotateVelocity.len()>0&&(this._needsUpdate=!0);(Math.abs(this._zoomSpeed)>.1||this._panVelocity.len()>0)&&(this._needsUpdate=!0),this._needsUpdate&&(e=Math.min(e,50),this._updateDistanceOrSize(e),this._updatePan(e),this._updateRotate(e),this._updateTransform(),this.getCamera().update(),this.zr&&this.zr.refresh(),this.trigger("update"),this._needsUpdate=!1)},_updateRotate:function(e){var t=this._rotateVelocity;this._phi=t.y*e/20+this._phi,this._theta=t.x*e/20+this._theta,this.setAlpha(this.getAlpha()),this.setBeta(this.getBeta()),this._vectorDamping(t,Math.pow(this.damping,e/16))},_updateDistanceOrSize:function(e){"perspective"===this._projection?this._setDistance(this._distance+this._zoomSpeed*e/20):this._setOrthoSize(this._orthoSize+this._zoomSpeed*e/20),this._zoomSpeed*=Math.pow(this.damping,e/16)},_setDistance:function(e){this._distance=Math.max(Math.min(e,this.maxDistance),this.minDistance)},_setOrthoSize:function(e){this._orthoSize=Math.max(Math.min(e,this.maxOrthographicSize),this.minOrthographicSize);var t=this.getCamera(),r=this._orthoSize,n=r/this.viewGL.viewport.height*this.viewGL.viewport.width;t.left=-n/2,t.right=n/2,t.top=r/2,t.bottom=-r/2},_updatePan:function(e){var t=this._panVelocity,r=this._distance,n=this.getCamera(),i=n.worldTransform.y,a=n.worldTransform.x;this._center.scaleAndAdd(a,-t.x*r/200).scaleAndAdd(i,-t.y*r/200),this._vectorDamping(t,0)},_updateTransform:function(){var e=this.getCamera(),t=new a.a,r=this._theta+Math.PI/2,n=this._phi+Math.PI/2,i=Math.sin(r);t.x=i*Math.cos(n),t.y=-Math.cos(r),t.z=i*Math.sin(n),e.position.copy(this._center).scaleAndAdd(t,this._distance),e.rotation.identity().rotateY(-this._phi).rotateX(-this._theta)},_startCountingStill:function(){clearTimeout(this._stillTimeout);var e=this.autoRotateAfterStill,t=this;!isNaN(e)&&e>0&&(this._stillTimeout=setTimeout((function(){t._rotating=!0}),1e3*e))},_vectorDamping:function(e,t){var r=e.len();(r*=t)<1e-4&&(r=0),e.normalize().scale(r)},_decomposeTransform:function(){if(this.getCamera()){this.getCamera().updateWorldTransform();var e=this.getCamera().worldTransform.z,t=Math.asin(e.y),r=Math.atan2(e.x,e.z);this._theta=t,this._phi=-r,this.setBeta(this.getBeta()),this.setAlpha(this.getAlpha()),this.getCamera().aspect?this._setDistance(this.getCamera().position.dist(this._center)):this._setOrthoSize(this.getCamera().top-this.getCamera().bottom)}},_mouseDownHandler:function(e){if(!e.target&&!this._isAnimating()){var t=e.offsetX,r=e.offsetY;this.viewGL&&!this.viewGL.containPoint(t,r)||(this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler),e.event.targetTouches?1===e.event.targetTouches.length&&(this._mode="rotate"):e.event.button===s[this.rotateMouseButton]?this._mode="rotate":e.event.button===s[this.panMouseButton]?this._mode="pan":this._mode="",this._rotateVelocity.set(0,0),this._rotating=!1,this.autoRotate&&this._startCountingStill(),this._mouseX=e.offsetX,this._mouseY=e.offsetY)}},_mouseMoveHandler:function(e){if(!(e.target&&e.target.__isGLToZRProxy||this._isAnimating())){var t=l(this.panSensitivity),r=l(this.rotateSensitivity);"rotate"===this._mode?(this._rotateVelocity.y=(e.offsetX-this._mouseX)/this.zr.getHeight()*2*r[0],this._rotateVelocity.x=(e.offsetY-this._mouseY)/this.zr.getWidth()*2*r[1]):"pan"===this._mode&&(this._panVelocity.x=(e.offsetX-this._mouseX)/this.zr.getWidth()*t[0]*400,this._panVelocity.y=(-e.offsetY+this._mouseY)/this.zr.getHeight()*t[1]*400),this._mouseX=e.offsetX,this._mouseY=e.offsetY,e.event.preventDefault()}},_mouseWheelHandler:function(e){if(!this._isAnimating()){var t=e.event.wheelDelta||-e.event.detail;this._zoomHandler(e,t)}},_pinchHandler:function(e){this._isAnimating()||(this._zoomHandler(e,e.pinchScale>1?1:-1),this._mode="")},_zoomHandler:function(e,t){if(0!==t){var r,n=e.offsetX,i=e.offsetY;this.viewGL&&!this.viewGL.containPoint(n,i)||(r="perspective"===this._projection?Math.max(Math.max(Math.min(this._distance-this.minDistance,this.maxDistance-this._distance))/20,.5):Math.max(Math.max(Math.min(this._orthoSize-this.minOrthographicSize,this.maxOrthographicSize-this._orthoSize))/20,.5),this._zoomSpeed=(t>0?-1:1)*r*this.zoomSensitivity,this._rotating=!1,this.autoRotate&&"rotate"===this._mode&&this._startCountingStill(),e.event.preventDefault())}},_mouseUpHandler:function(){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_isRightMouseButtonUsed:function(){return"right"===this.rotateMouseButton||"right"===this.panMouseButton},_contextMenuHandler:function(e){this._isRightMouseButtonUsed()&&e.preventDefault()},_addAnimator:function(e){var t=this._animators;return t.push(e),e.done((function(){var r=t.indexOf(e);r>=0&&t.splice(r,1)})),e}});Object.defineProperty(u.prototype,"autoRotate",{get:function(e){return this._autoRotate},set:function(e){this._autoRotate=e,this._rotating=e}}),t.a=u},function(e,t,r){"use strict";t.a="@export ecgl.lines3D.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec3 position: POSITION;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(position, 1.0);\n v_Color = a_Color;\n}\n\n@end\n\n@export ecgl.lines3D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n}\n@end\n\n\n\n@export ecgl.lines3D.clipNear\n\nvec4 clipNear(vec4 p1, vec4 p2) {\n float n = (p1.w - near) / (p1.w - p2.w);\n return vec4(mix(p1.xy, p2.xy, n), -near, near);\n}\n\n@end\n\n@export ecgl.lines3D.expandLine\n#ifdef VERTEX_ANIMATION\n vec4 prevProj = worldViewProjection * vec4(mix(prevPositionPrev, positionPrev, percent), 1.0);\n vec4 currProj = worldViewProjection * vec4(mix(prevPosition, position, percent), 1.0);\n vec4 nextProj = worldViewProjection * vec4(mix(prevPositionNext, positionNext, percent), 1.0);\n#else\n vec4 prevProj = worldViewProjection * vec4(positionPrev, 1.0);\n vec4 currProj = worldViewProjection * vec4(position, 1.0);\n vec4 nextProj = worldViewProjection * vec4(positionNext, 1.0);\n#endif\n\n if (currProj.w < 0.0) {\n if (nextProj.w > 0.0) {\n currProj = clipNear(currProj, nextProj);\n }\n else if (prevProj.w > 0.0) {\n currProj = clipNear(currProj, prevProj);\n }\n }\n\n vec2 prevScreen = (prevProj.xy / abs(prevProj.w) + 1.0) * 0.5 * viewport.zw;\n vec2 currScreen = (currProj.xy / abs(currProj.w) + 1.0) * 0.5 * viewport.zw;\n vec2 nextScreen = (nextProj.xy / abs(nextProj.w) + 1.0) * 0.5 * viewport.zw;\n\n vec2 dir;\n float len = offset;\n if (position == positionPrev) {\n dir = normalize(nextScreen - currScreen);\n }\n else if (position == positionNext) {\n dir = normalize(currScreen - prevScreen);\n }\n else {\n vec2 dirA = normalize(currScreen - prevScreen);\n vec2 dirB = normalize(nextScreen - currScreen);\n\n vec2 tanget = normalize(dirA + dirB);\n\n float miter = 1.0 / max(dot(tanget, dirA), 0.5);\n len *= miter;\n dir = tanget;\n }\n\n dir = vec2(-dir.y, dir.x) * len;\n currScreen += dir;\n\n currProj.xy = (currScreen / viewport.zw - 0.5) * 2.0 * abs(currProj.w);\n@end\n\n\n@export ecgl.meshLines3D.vertex\n\nattribute vec3 position: POSITION;\nattribute vec3 positionPrev;\nattribute vec3 positionNext;\nattribute float offset;\nattribute vec4 a_Color : COLOR;\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute vec3 prevPositionPrev;\nattribute vec3 prevPositionNext;\nuniform float percent : 1.0;\n#endif\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\nuniform float near : NEAR;\n\nvarying vec4 v_Color;\n\n@import ecgl.common.wireframe.vertexHeader\n\n@import ecgl.lines3D.clipNear\n\nvoid main()\n{\n @import ecgl.lines3D.expandLine\n\n gl_Position = currProj;\n\n v_Color = a_Color;\n\n @import ecgl.common.wireframe.vertexMain\n}\n@end\n\n\n@export ecgl.meshLines3D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end"},function(e,t,r){var n=r(12),i=r(75),a=r(78).parsePercent,o=r(149),s=n.each,l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function h(e,t,r,n,i){var a=0,o=0;null==n&&(n=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(l,u){var h,c,d=l.position,f=l.getBoundingRect(),p=t.childAt(u+1),m=p&&p.getBoundingRect();if("horizontal"===e){var g=f.width+(m?-m.x+f.x:0);(h=a+g)>n||l.newline?(a=0,h=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var _=f.height+(m?-m.y+f.y:0);(c=o+_)>i||l.newline?(a+=s+r,o=0,c=_,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===e?a=h+r:o=c+r)}))}var c=h,d=n.curry(h,"vertical"),f=n.curry(h,"horizontal");function p(e,t,r){r=o.normalizeCssArray(r||0);var n=t.width,s=t.height,l=a(e.left,n),u=a(e.top,s),h=a(e.right,n),c=a(e.bottom,s),d=a(e.width,n),f=a(e.height,s),p=r[2]+r[0],m=r[1]+r[3],g=e.aspect;switch(isNaN(d)&&(d=n-h-m-l),isNaN(f)&&(f=s-c-p-u),null!=g&&(isNaN(d)&&isNaN(f)&&(g>n/s?d=.8*n:f=.8*s),isNaN(d)&&(d=g*f),isNaN(f)&&(f=d/g)),isNaN(l)&&(l=n-h-d-m),isNaN(u)&&(u=s-c-f-p),e.left||e.right){case"center":l=n/2-d/2-r[3];break;case"right":l=n-d-m}switch(e.top||e.bottom){case"middle":case"center":u=s/2-f/2-r[0];break;case"bottom":u=s-f-p}l=l||0,u=u||0,isNaN(d)&&(d=n-m-l-(h||0)),isNaN(f)&&(f=s-p-u-(c||0));var _=new i(l+r[3],u+r[0],d,f);return _.margin=r,_}function m(e,t){return t&&e&&s(l,(function(r){t.hasOwnProperty(r)&&(e[r]=t[r])})),e}t.LOCATION_PARAMS=l,t.HV_NAMES=u,t.box=c,t.vbox=d,t.hbox=f,t.getAvailableSize=function(e,t,r){var n=t.width,i=t.height,s=a(e.x,n),l=a(e.y,i),u=a(e.x2,n),h=a(e.y2,i);return(isNaN(s)||isNaN(parseFloat(e.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(e.x2)))&&(u=n),(isNaN(l)||isNaN(parseFloat(e.y)))&&(l=0),(isNaN(h)||isNaN(parseFloat(e.y2)))&&(h=i),r=o.normalizeCssArray(r||0),{width:Math.max(u-s-r[1]-r[3],0),height:Math.max(h-l-r[0]-r[2],0)}},t.getLayoutRect=p,t.positionElement=function(e,t,r,a,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],u=o&&o.boundingMode||"all";if(s||l){var h;if("raw"===u)h="group"===e.type?new i(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(h=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();(h=h.clone()).applyTransform(c)}t=p(n.defaults({width:h.width,height:h.height},t),r,a);var d=e.position,f=s?t.x-h.x:0,m=l?t.y-h.y:0;e.attr("position","raw"===u?[f,m]:[d[0]+f,d[1]+m])}},t.sizeCalculable=function(e,t){return null!=e[u[t][0]]||null!=e[u[t][1]]&&null!=e[u[t][2]]},t.mergeLayoutParam=function(e,t,r){!n.isObject(r)&&(r={});var i=r.ignoreSize;!n.isArray(i)&&(i=[i,i]);var a=l(u[0],0),o=l(u[1],1);function l(r,n){var a={},o=0,l={},u=0;if(s(r,(function(t){l[t]=e[t]})),s(r,(function(e){h(t,e)&&(a[e]=l[e]=t[e]),c(a,e)&&o++,c(l,e)&&u++})),i[n])return c(t,r[1])?l[r[2]]=null:c(t,r[2])&&(l[r[1]]=null),l;if(2!==u&&o){if(o>=2)return a;for(var d=0;d0&&(this.outputs[e].keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e]))}});t.a=n},function(e,t,r){"use strict";t.a=function(e,t){for(var r=0,n=1/t,i=e;i>0;)r+=n*(i%t),i=Math.floor(i/t),n/=t;return r}},function(e,t,r){"use strict";var n=r(0),i=r.n(n);t.a=function(e,t,r){r=r||e.getSource();var n=t||i.a.getCoordinateSystemDimensions(e.get("coordinateSystem"))||["x","y","z"],a=i.a.helper.createDimensions(r,{dimensionsDefine:r.dimensionsDefine||e.get("dimensions"),encodeDefine:r.encodeDefine||e.get("encode"),coordDimensions:n.map((function(t){var r=e.getReferringComponents(t+"Axis3D")[0];return{type:r&&"category"===r.get("type")?"ordinal":"float",name:t,stackable:"z"===t}}))});"cartesian3D"===e.get("coordinateSystem")&&a.forEach((function(t){if(n.indexOf(t.coordDim)>=0){var r=e.getReferringComponents(t.coordDim+"Axis3D")[0];r&&"category"===r.get("type")&&(t.ordinalMeta=r.getOrdinalMeta())}}));var o=new i.a.List(a,e);return o.initData(r),o}},function(e,t){e.exports=function(e,t,r){return{seriesType:e,performRawSeries:!0,reset:function(e,n,i){var a=e.getData(),o=e.get("symbol")||t,s=e.get("symbolSize");if(a.setVisual({legendSymbol:r||o,symbol:o,symbolSize:s}),!n.isSeriesFiltered(e)){var l="function"==typeof s;return{dataEach:a.hasItemOption||l?function(t,r){if("function"==typeof s){var n=e.getRawValue(r),i=e.getDataParams(r);t.setItemVisual(r,"symbolSize",s(n,i))}if(t.hasItemOption){var a=t.getItemModel(r),o=a.getShallow("symbol",!0),l=a.getShallow("symbolSize",!0);null!=o&&t.setItemVisual(r,"symbol",o),null!=l&&t.setItemVisual(r,"symbolSize",l)}}:null}}}}}},function(e,t,r){"use strict";var n=r(8),i=r(92),a=r(11),o=(r(18),r(15)),s=r(9),l=r(17),u=r(23),h=r(96),c=r(7),d=r(98),f=r(63),p=r(1),m=r.n(p);c.a.import(d.a),c.a.import(f.a);var g=m.a.mat4,_=m.a.vec3,v=g.create,y={};function x(e){return e.material}function T(){}var b,w,E=n.a.extend((function(){return{canvas:null,_width:100,_height:100,devicePixelRatio:window.devicePixelRatio||1,clearColor:[0,0,0,0],clearBit:17664,alpha:!0,depth:!0,stencil:!1,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!1,throwError:!0,gl:null,viewport:{},__currentFrameBuffer:null,_viewportStack:[],_clearStack:[],_sceneRendering:null}}),(function(){this.canvas||(this.canvas=document.createElement("canvas"));var e=this.canvas;try{var t={alpha:this.alpha,depth:this.depth,stencil:this.stencil,antialias:this.antialias,premultipliedAlpha:this.premultipliedAlpha,preserveDrawingBuffer:this.preserveDrawingBuffer};if(this.gl=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),!this.gl)throw new Error;this._glinfo=new i.a(this.gl),this.gl.targetRenderer&&console.error("Already created a renderer"),this.gl.targetRenderer=this,this.resize()}catch(e){throw"Error creating WebGL Context "+e}this._programMgr=new h.a(this)}),{resize:function(e,t){var r=this.canvas,n=this.devicePixelRatio;null!=e?(r.style.width=e+"px",r.style.height=t+"px",r.width=e*n,r.height=t*n,this._width=e,this._height=t):(this._width=r.width/n,this._height=r.height/n),this.setViewport(0,0,this._width,this._height)},getWidth:function(){return this._width},getHeight:function(){return this._height},getViewportAspect:function(){var e=this.viewport;return e.width/e.height},setDevicePixelRatio:function(e){this.devicePixelRatio=e,this.resize(this._width,this._height)},getDevicePixelRatio:function(){return this.devicePixelRatio},getGLExtension:function(e){return this._glinfo.getExtension(e)},getGLParameter:function(e){return this._glinfo.getParameter(e)},setViewport:function(e,t,r,n,i){if("object"==typeof e){var a=e;e=a.x,t=a.y,r=a.width,n=a.height,i=a.devicePixelRatio}i=i||this.devicePixelRatio,this.gl.viewport(e*i,t*i,r*i,n*i),this.viewport={x:e,y:t,width:r,height:n,devicePixelRatio:i}},saveViewport:function(){this._viewportStack.push(this.viewport)},restoreViewport:function(){this._viewportStack.length>0&&this.setViewport(this._viewportStack.pop())},saveClear:function(){this._clearStack.push({clearBit:this.clearBit,clearColor:this.clearColor})},restoreClear:function(){if(this._clearStack.length>0){var e=this._clearStack.pop();this.clearColor=e.clearColor,this.clearBit=e.clearBit}},bindSceneRendering:function(e){this._sceneRendering=e},render:function(e,t,r,n){var i=this.gl,a=this.clearColor;if(this.clearBit){i.colorMask(!0,!0,!0,!0),i.depthMask(!0);var o=this.viewport,s=!1,l=o.devicePixelRatio;(o.width!==this._width||o.height!==this._height||l&&l!==this.devicePixelRatio||o.x||o.y)&&(s=!0,i.enable(i.SCISSOR_TEST),i.scissor(o.x*l,o.y*l,o.width*l,o.height*l)),i.clearColor(a[0],a[1],a[2],a[3]),i.clear(this.clearBit),s&&i.disable(i.SCISSOR_TEST)}if(r||e.update(!1),t=t||e.getMainCamera()){t.getScene()||t.update(!0),this._sceneRendering=e,e.viewBoundingBoxLastFrame.min.set(1/0,1/0,1/0),e.viewBoundingBoxLastFrame.max.set(-1/0,-1/0,-1/0);var u=this.cullRenderList(e.opaqueList,e,t),h=this.cullRenderList(e.transparentList,e,t),c=e.material;e.trigger("beforerender",this,e,t),n?(this.renderPreZ(u,e,t),i.depthFunc(i.LEQUAL)):i.depthFunc(i.LESS);for(var d=v(),f=_.create(),p=0;p0){var s=e[i-1],l=s.joints?s.joints.length:0;if((a.joints.length?a.joints.length:0)===l&&a.material===s.material&&a.lightGroup===s.lightGroup){a.__program=s.__program;continue}}var u=this._programMgr.getProgram(a,o,t);this.validateProgram(u),a.__program=u}},cullRenderList:function(e,t,r){for(var n=[],i=0;i0&&b.min.array[2]<0&&(b.max.array[2]=-1e-20),b.applyProjection(w);var o=b.min.array,s=b.max.array;if(s[0]<-1||o[0]>1||s[1]<-1||o[1]>1||s[2]<-1||o[2]>1)return!0}return!1}),disposeScene:function(e){this.disposeNode(e,!0,!0),e.dispose()},disposeNode:function(e,t,r){e.getParent()&&e.getParent().remove(e),e.traverse((function(e){e.geometry&&t&&e.geometry.dispose(this),e.dispose&&e.dispose(this)}),this)},disposeGeometry:function(e){e.dispose(this)},disposeTexture:function(e){e.dispose(this)},disposeFrameBuffer:function(e){e.dispose(this)},dispose:function(){},screenToNDC:function(e,t,r){r||(r=new u.a),t=this._height-t;var n=this.viewport,i=r.array;return i[0]=(e-n.x)/n.width,i[0]=2*i[0]-1,i[1]=(t-n.y)/n.height,i[1]=2*i[1]-1,r}});E.opaqueSortCompare=E.prototype.opaqueSortCompare=function(e,t){return e.renderOrder===t.renderOrder?e.__program===t.__program?e.material===t.material?e.geometry.__uid__-t.geometry.__uid__:e.material.__uid__-t.material.__uid__:e.__program&&t.__program?e.__program.__uid__-t.__program.__uid__:0:e.renderOrder-t.renderOrder},E.transparentSortCompare=E.prototype.transparentSortCompare=function(e,t){return e.renderOrder===t.renderOrder?e.__depth===t.__depth?e.__program===t.__program?e.material===t.material?e.geometry.__uid__-t.geometry.__uid__:e.material.__uid__-t.material.__uid__:e.__program&&t.__program?e.__program.__uid__-t.__program.__uid__:0:e.__depth-t.__depth:e.renderOrder-t.renderOrder};var S={IDENTITY:v(),WORLD:v(),VIEW:v(),PROJECTION:v(),WORLDVIEW:v(),VIEWPROJECTION:v(),WORLDVIEWPROJECTION:v(),WORLDINVERSE:v(),VIEWINVERSE:v(),PROJECTIONINVERSE:v(),WORLDVIEWINVERSE:v(),VIEWPROJECTIONINVERSE:v(),WORLDVIEWPROJECTIONINVERSE:v(),WORLDTRANSPOSE:v(),VIEWTRANSPOSE:v(),PROJECTIONTRANSPOSE:v(),WORLDVIEWTRANSPOSE:v(),VIEWPROJECTIONTRANSPOSE:v(),WORLDVIEWPROJECTIONTRANSPOSE:v(),WORLDINVERSETRANSPOSE:v(),VIEWINVERSETRANSPOSE:v(),PROJECTIONINVERSETRANSPOSE:v(),WORLDVIEWINVERSETRANSPOSE:v(),VIEWPROJECTIONINVERSETRANSPOSE:v(),WORLDVIEWPROJECTIONINVERSETRANSPOSE:v()};E.COLOR_BUFFER_BIT=a.a.COLOR_BUFFER_BIT,E.DEPTH_BUFFER_BIT=a.a.DEPTH_BUFFER_BIT,E.STENCIL_BUFFER_BIT=a.a.STENCIL_BUFFER_BIT,t.a=E},function(e,t,r){"use strict";function n(e,t){this.action=e,this.context=t}var i={trigger:function(e){if(this.hasOwnProperty("__handlers__")&&this.__handlers__.hasOwnProperty(e)){var t=this.__handlers__[e],r=t.length,n=-1,i=arguments;switch(i.length){case 1:for(;++nu)){var c=Math.sqrt(u-s),d=o-c,f=o+c;return n||(n=new l.a),d<0?f<0?null:(h.scaleAndAdd(n.array,i,a,f),n):(h.scaleAndAdd(n.array,i,a,d),n)}}}(),intersectBoundingBox:function(e,t){var r,n,i,a,o,s,u=this.direction.array,c=this.origin.array,d=e.min.array,f=e.max.array,p=1/u[0],m=1/u[1],g=1/u[2];if(p>=0?(r=(d[0]-c[0])*p,n=(f[0]-c[0])*p):(n=(d[0]-c[0])*p,r=(f[0]-c[0])*p),m>=0?(i=(d[1]-c[1])*m,a=(f[1]-c[1])*m):(a=(d[1]-c[1])*m,i=(f[1]-c[1])*m),r>a||i>n)return null;if((i>r||r!=r)&&(r=i),(a=0?(o=(d[2]-c[2])*g,s=(f[2]-c[2])*g):(s=(d[2]-c[2])*g,o=(f[2]-c[2])*g),r>s||o>n)return null;if((o>r||r!=r)&&(r=o),(s=0?r:n;return t||(t=new l.a),h.scaleAndAdd(t.array,c,u,_),t},intersectTriangle:(n=h.create(),i=h.create(),a=h.create(),o=h.create(),function(e,t,r,s,u,d){var f=this.direction.array,p=this.origin.array;e=e.array,t=t.array,r=r.array,h.sub(n,t,e),h.sub(i,r,e),h.cross(o,i,f);var m=h.dot(n,o);if(s){if(m>-1e-5)return null}else if(m>-1e-5&&m1)return null;h.cross(o,n,a);var _=h.dot(f,o)/m;if(_<0||_>1||g+_>1)return null;h.cross(o,n,i);var v=-h.dot(a,o)/m;return v<0?null:(u||(u=new l.a),d&&l.a.set(d,1-g-_,g,_),h.scaleAndAdd(u.array,p,f,v),u)}),applyTransform:function(e){l.a.add(this.direction,this.direction,this.origin),l.a.transformMat4(this.origin,this.origin,e),l.a.transformMat4(this.direction,this.direction,e),l.a.sub(this.direction,this.direction,this.origin),l.a.normalize(this.direction,this.direction)},copy:function(e){l.a.copy(this.origin,e.origin),l.a.copy(this.direction,e.direction)},clone:function(){var e=new d;return e.copy(this),e}},t.a=d},function(e,t,r){"use strict";var n,i,a=r(1),o=r.n(a),s=o.a.quat,l=function(e,t,r,n){e=e||0,t=t||0,r=r||0,n=void 0===n?1:n,this.array=s.fromValues(e,t,r,n),this._dirty=!0};l.prototype={constructor:l,add:function(e){return s.add(this.array,this.array,e.array),this._dirty=!0,this},calculateW:function(){return s.calculateW(this.array,this.array),this._dirty=!0,this},set:function(e,t,r,n){return this.array[0]=e,this.array[1]=t,this.array[2]=r,this.array[3]=n,this._dirty=!0,this},setArray:function(e){return this.array[0]=e[0],this.array[1]=e[1],this.array[2]=e[2],this.array[3]=e[3],this._dirty=!0,this},clone:function(){return new l(this.x,this.y,this.z,this.w)},conjugate:function(){return s.conjugate(this.array,this.array),this._dirty=!0,this},copy:function(e){return s.copy(this.array,e.array),this._dirty=!0,this},dot:function(e){return s.dot(this.array,e.array)},fromMat3:function(e){return s.fromMat3(this.array,e.array),this._dirty=!0,this},fromMat4:(n=o.a.mat3,i=n.create(),function(e){return n.fromMat4(i,e.array),n.transpose(i,i),s.fromMat3(this.array,i),this._dirty=!0,this}),identity:function(){return s.identity(this.array),this._dirty=!0,this},invert:function(){return s.invert(this.array,this.array),this._dirty=!0,this},len:function(){return s.len(this.array)},length:function(){return s.length(this.array)},lerp:function(e,t,r){return s.lerp(this.array,e.array,t.array,r),this._dirty=!0,this},mul:function(e){return s.mul(this.array,this.array,e.array),this._dirty=!0,this},mulLeft:function(e){return s.multiply(this.array,e.array,this.array),this._dirty=!0,this},multiply:function(e){return s.multiply(this.array,this.array,e.array),this._dirty=!0,this},multiplyLeft:function(e){return s.multiply(this.array,e.array,this.array),this._dirty=!0,this},normalize:function(){return s.normalize(this.array,this.array),this._dirty=!0,this},rotateX:function(e){return s.rotateX(this.array,this.array,e),this._dirty=!0,this},rotateY:function(e){return s.rotateY(this.array,this.array,e),this._dirty=!0,this},rotateZ:function(e){return s.rotateZ(this.array,this.array,e),this._dirty=!0,this},rotationTo:function(e,t){return s.rotationTo(this.array,e.array,t.array),this._dirty=!0,this},setAxes:function(e,t,r){return s.setAxes(this.array,e.array,t.array,r.array),this._dirty=!0,this},setAxisAngle:function(e,t){return s.setAxisAngle(this.array,e.array,t),this._dirty=!0,this},slerp:function(e,t,r){return s.slerp(this.array,e.array,t.array,r),this._dirty=!0,this},sqrLen:function(){return s.sqrLen(this.array)},squaredLength:function(){return s.squaredLength(this.array)},fromEuler:function(e,t){return l.fromEuler(this,e,t)},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var u=Object.defineProperty;if(u){var h=l.prototype;u(h,"x",{get:function(){return this.array[0]},set:function(e){this.array[0]=e,this._dirty=!0}}),u(h,"y",{get:function(){return this.array[1]},set:function(e){this.array[1]=e,this._dirty=!0}}),u(h,"z",{get:function(){return this.array[2]},set:function(e){this.array[2]=e,this._dirty=!0}}),u(h,"w",{get:function(){return this.array[3]},set:function(e){this.array[3]=e,this._dirty=!0}})}l.add=function(e,t,r){return s.add(e.array,t.array,r.array),e._dirty=!0,e},l.set=function(e,t,r,n,i){s.set(e.array,t,r,n,i),e._dirty=!0},l.copy=function(e,t){return s.copy(e.array,t.array),e._dirty=!0,e},l.calculateW=function(e,t){return s.calculateW(e.array,t.array),e._dirty=!0,e},l.conjugate=function(e,t){return s.conjugate(e.array,t.array),e._dirty=!0,e},l.identity=function(e){return s.identity(e.array),e._dirty=!0,e},l.invert=function(e,t){return s.invert(e.array,t.array),e._dirty=!0,e},l.dot=function(e,t){return s.dot(e.array,t.array)},l.len=function(e){return s.length(e.array)},l.lerp=function(e,t,r,n){return s.lerp(e.array,t.array,r.array,n),e._dirty=!0,e},l.slerp=function(e,t,r,n){return s.slerp(e.array,t.array,r.array,n),e._dirty=!0,e},l.multiply=l.mul=function(e,t,r){return s.multiply(e.array,t.array,r.array),e._dirty=!0,e},l.rotateX=function(e,t,r){return s.rotateX(e.array,t.array,r),e._dirty=!0,e},l.rotateY=function(e,t,r){return s.rotateY(e.array,t.array,r),e._dirty=!0,e},l.rotateZ=function(e,t,r){return s.rotateZ(e.array,t.array,r),e._dirty=!0,e},l.setAxisAngle=function(e,t,r){return s.setAxisAngle(e.array,t.array,r),e._dirty=!0,e},l.normalize=function(e,t){return s.normalize(e.array,t.array),e._dirty=!0,e},l.squaredLength=l.sqrLen=function(e){return s.sqrLen(e.array)},l.fromMat3=function(e,t){return s.fromMat3(e.array,t.array),e._dirty=!0,e},l.setAxes=function(e,t,r,n){return s.setAxes(e.array,t.array,r.array,n.array),e._dirty=!0,e},l.rotationTo=function(e,t,r){return s.rotationTo(e.array,t.array,r.array),e._dirty=!0,e},l.fromEuler=function(e,t,r){e._dirty=!0,t=t.array;var n=e.array,i=Math.cos(t[0]/2),a=Math.cos(t[1]/2),o=Math.cos(t[2]/2),s=Math.sin(t[0]/2),l=Math.sin(t[1]/2),u=Math.sin(t[2]/2);switch(r=(r||"XYZ").toUpperCase()){case"XYZ":n[0]=s*a*o+i*l*u,n[1]=i*l*o-s*a*u,n[2]=i*a*u+s*l*o,n[3]=i*a*o-s*l*u;break;case"YXZ":n[0]=s*a*o+i*l*u,n[1]=i*l*o-s*a*u,n[2]=i*a*u-s*l*o,n[3]=i*a*o+s*l*u;break;case"ZXY":n[0]=s*a*o-i*l*u,n[1]=i*l*o+s*a*u,n[2]=i*a*u+s*l*o,n[3]=i*a*o-s*l*u;break;case"ZYX":n[0]=s*a*o-i*l*u,n[1]=i*l*o+s*a*u,n[2]=i*a*u-s*l*o,n[3]=i*a*o+s*l*u;break;case"YZX":n[0]=s*a*o+i*l*u,n[1]=i*l*o+s*a*u,n[2]=i*a*u-s*l*o,n[3]=i*a*o-s*l*u;break;case"XZY":n[0]=s*a*o-i*l*u,n[1]=i*l*o-s*a*u,n[2]=i*a*u+s*l*o,n[3]=i*a*o+s*l*u}},t.a=l},function(e,t,r){"use strict";var n,i=r(28),a=r(9),o=r(52),s=r(49),l=r(1),u=r.n(l),h=u.a.vec3,c=u.a.vec4,d=i.a.extend((function(){return{projectionMatrix:new a.a,invProjectionMatrix:new a.a,viewMatrix:new a.a,frustum:new o.a}}),(function(){this.update(!0)}),{update:function(e){i.a.prototype.update.call(this,e),a.a.invert(this.viewMatrix,this.worldTransform),this.updateProjectionMatrix(),a.a.invert(this.invProjectionMatrix,this.projectionMatrix),this.frustum.setFromProjection(this.projectionMatrix)},setViewMatrix:function(e){a.a.copy(this.viewMatrix,e),a.a.invert(this.worldTransform,e),this.decomposeWorldTransform()},decomposeProjectionMatrix:function(){},setProjectionMatrix:function(e){a.a.copy(this.projectionMatrix,e),a.a.invert(this.invProjectionMatrix,e),this.decomposeProjectionMatrix()},updateProjectionMatrix:function(){},castRay:(n=c.create(),function(e,t){var r=void 0!==t?t:new s.a,i=e.array[0],a=e.array[1];return c.set(n,i,a,-1,1),c.transformMat4(n,n,this.invProjectionMatrix.array),c.transformMat4(n,n,this.worldTransform.array),h.scale(r.origin.array,n,1/n[3]),c.set(n,i,a,1,1),c.transformMat4(n,n,this.invProjectionMatrix.array),c.transformMat4(n,n,this.worldTransform.array),h.scale(n,n,1/n[3]),h.sub(r.direction.array,n,r.origin.array),h.normalize(r.direction.array,r.direction.array),r.direction._dirty=!0,r.origin._dirty=!0,r})});t.a=d},function(e,t,r){"use strict";r(4);var n,i=r(15),a=r(67),o=r(1),s=r.n(o).a.vec3,l=s.set,u=s.copy,h=s.transformMat4,c=Math.min,d=Math.max,f=function(){this.planes=[];for(var e=0;e<6;e++)this.planes.push(new a.a);for(this.boundingBox=new i.a,this.vertices=[],e=0;e<8;e++)this.vertices[e]=s.fromValues(0,0,0)};f.prototype={setFromProjection:function(e){var t=this.planes,r=e.array,n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5],h=r[6],c=r[7],d=r[8],f=r[9],p=r[10],m=r[11],g=r[12],_=r[13],v=r[14],y=r[15];l(t[0].normal.array,o-n,c-s,m-d),t[0].distance=-(y-g),t[0].normalize(),l(t[1].normal.array,o+n,c+s,m+d),t[1].distance=-(y+g),t[1].normalize(),l(t[2].normal.array,o+i,c+u,m+f),t[2].distance=-(y+_),t[2].normalize(),l(t[3].normal.array,o-i,c-u,m-f),t[3].distance=-(y-_),t[3].normalize(),l(t[4].normal.array,o-a,c-h,m-p),t[4].distance=-(y-v),t[4].normalize(),l(t[5].normal.array,o+a,c+h,m+p),t[5].distance=-(y+v),t[5].normalize();var x=this.boundingBox;if(0===y){var T=u/n,b=-v/(p-1),w=-v/(p+1),E=-w/u,S=-b/u;x.min.set(-E*T,-E,w),x.max.set(E*T,E,b);var M=this.vertices;l(M[0],-E*T,-E,w),l(M[1],-E*T,E,w),l(M[2],E*T,-E,w),l(M[3],E*T,E,w),l(M[4],-S*T,-S,b),l(M[5],-S*T,S,b),l(M[6],S*T,-S,b),l(M[7],S*T,S,b)}else{var A=(-1-g)/n,C=(1-g)/n,L=(1-_)/u,N=(-1-_)/u,D=(-1-v)/p,I=(1-v)/p;x.min.set(Math.min(A,C),Math.min(N,L),Math.min(I,D)),x.max.set(Math.max(C,A),Math.max(L,N),Math.max(D,I));var P=x.min.array,O=x.max.array;M=this.vertices,l(M[0],P[0],P[1],P[2]),l(M[1],P[0],O[1],P[2]),l(M[2],O[0],P[1],P[2]),l(M[3],O[0],O[1],P[2]),l(M[4],P[0],P[1],O[2]),l(M[5],P[0],O[1],O[2]),l(M[6],O[0],P[1],O[2]),l(M[7],O[0],O[1],O[2])}},getTransformedBoundingBox:(n=s.create(),function(e,t){var r=this.vertices,i=t.array,a=e.min,o=e.max,s=a.array,l=o.array,f=r[0];h(n,f,i),u(s,n),u(l,n);for(var p=1;p<8;p++)f=r[p],h(n,f,i),s[0]=c(n[0],s[0]),s[1]=c(n[1],s[1]),s[2]=c(n[2],s[2]),l[0]=d(n[0],l[0]),l[1]=d(n[1],l[1]),l[2]=d(n[2],l[2]);return a._dirty=!0,o._dirty=!0,e})},t.a=f},function(e,t){var r=function(){this.head=null,this.tail=null,this._len=0},n=r.prototype;n.insert=function(e){var t=new i(e);return this.insertEntry(t),t},n.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.len=function(){return this._len},n.clear=function(){this.head=this.tail=null,this._len=0};var i=function(e){this.value=e,this.next,this.prev},a=function(e){this._list=new r,this._map={},this._maxSize=e||10,this._lastRemovedEntry=null},o=a.prototype;o.put=function(e,t){var r=this._list,n=this._map,a=null;if(null==n[e]){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new i(t),s.key=e,r.insertEntry(s),n[e]=s}return a},o.get=function(e){var t=this._map[e],r=this._list;if(null!=t)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},o.clear=function(){this._list.clear(),this._map={}};var s=a;e.exports=s},function(e,t,r){"use strict";var n=r(5),i=r(25),a=r(102),o=r(55),s=r(56),l=r(29),u=r(104),h=r(105),c={loadTexture:function(e,t,r,a){if("function"==typeof t?(a=r=t,t={}):t=t||{},"string"==typeof e){if(e.match(/.hdr$/)||"hdr"===t.fileType)return o=new n.a({width:0,height:0,sRGB:!1}),c._fetchTexture(e,(function(e){h.a.parseRGBE(e,o,t.exposure),o.dirty(),r&&r(o)}),a),o;e.match(/.dds$/)||"dds"===t.fileType?(o=new n.a({width:0,height:0}),c._fetchTexture(e,(function(e){u.a.parse(e,o),o.dirty(),r&&r(o)}),a)):((o=new n.a).load(e),o.success(r),o.error(a))}else if("object"==typeof e&&void 0!==e.px){var o;(o=new i.a).load(e),o.success(r),o.error(a)}return o},loadPanorama:function(e,t,r,n,i,a){var o=this;"function"==typeof n?(a=i=n,n={}):n=n||{},c.loadTexture(t,n,(function(t){t.flipY=n.flipY||!1,o.panoramaToCubeMap(e,t,r,n),t.dispose(e),i&&i(r)}),a)},panoramaToCubeMap:function(e,t,r,n){var i=new o.a,a=new s.a({scene:new l.a});return a.material.set("diffuseMap",t),(n=n||{}).encodeRGBM&&a.material.define("fragment","RGBM_ENCODE"),r.sRGB=t.sRGB,i.texture=r,i.render(e,a.scene),i.texture=null,i.dispose(e),r},heightToNormal:function(e,t){var r=document.createElement("canvas"),n=r.width=e.width,i=r.height=e.height,a=r.getContext("2d");a.drawImage(e,0,0,n,i),t=t||!1;for(var o=a.getImageData(0,0,n,i),s=a.createImageData(n,i),l=0;l20)return console.warn("Given image is not a height map"),e}var d,f,p,m;l%(4*n)==0?(d=o.data[l],p=o.data[l+4]):l%(4*n)==4*(n-1)?(d=o.data[l-4],p=o.data[l]):(d=o.data[l-4],p=o.data[l+4]),l<4*n?(f=o.data[l],m=o.data[l+4*n]):l>n*(i-1)*4?(f=o.data[l-4*n],m=o.data[l]):(f=o.data[l-4*n],m=o.data[l+4*n]),s.data[l]=d-p+127,s.data[l+1]=f-m+127,s.data[l+2]=255,s.data[l+3]=255}return a.putImageData(s,0,0),r},isHeightImage:function(e,t,r){if(!e||!e.width||!e.height)return!1;var n=document.createElement("canvas"),i=n.getContext("2d"),a=t||32;r=r||20,n.width=n.height=a,i.drawImage(e,0,0,a,a);for(var o=i.getImageData(0,0,a,a),s=0;sr)return!1}return!0},_fetchTexture:function(e,t,r){a.a.get({url:e,responseType:"arraybuffer",onload:t,onerror:r})},createChessboard:function(e,t,r,i){e=e||512,t=t||64,r=r||"black",i=i||"white";var a=Math.ceil(e/t),o=document.createElement("canvas");o.width=e,o.height=e;var s=o.getContext("2d");s.fillStyle=i,s.fillRect(0,0,e,e),s.fillStyle=r;for(var l=0;l0?this.material.define("fragment","LOD"):this.material.undefine("fragment","LOD"),e.renderPass([this],t)}});t.a=l},function(e,t,r){"use strict";var n=r(2),i=r(143),a=r(144);n.a.Shader.import(a.a),t.a=n.a.Mesh.extend((function(){return{geometry:new i.a({dynamic:!0}),material:new n.a.Material({shader:n.a.createShader("ecgl.labels"),transparent:!0,depthMask:!1}),culling:!1,castShadow:!1,ignorePicking:!0}}))},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(2),o=r(186),s=r(22),l=r(3),u=r(1),h=r.n(u),c=r(60),d=r(61),f=r(40),p=h.a.vec3;function m(e){this.rootNode=new a.a.Node,this._triangulationResults={},this._shadersMap=a.a.COMMON_SHADERS.reduce((function(e,t){return e[t]=a.a.createShader("ecgl."+t),e}),{}),this._linesShader=a.a.createShader("ecgl.meshLines3D");var t={};a.a.COMMON_SHADERS.forEach((function(e){t[e]=new a.a.Material({shader:a.a.createShader("ecgl."+e)})})),this._groundMaterials=t,this._groundMesh=new a.a.Mesh({geometry:new a.a.PlaneGeometry({dynamic:!0}),castShadow:!1,renderNormal:!0,$ignorePicking:!0}),this._groundMesh.rotation.rotateX(-Math.PI/2),this._labelsBuilder=new d.a(512,512,e),this._labelsBuilder.getMesh().renderOrder=100,this._labelsBuilder.getMesh().material.depthTest=!1,this.rootNode.add(this._labelsBuilder.getMesh()),this._initMeshes(),this._api=e}a.a.Shader.import(f.a),m.prototype={constructor:m,extrudeY:!0,update:function(e,t,r,n,i){var a=e.getData();null==n&&(n=0),null==i&&(i=a.count()),this._startIndex=n,this._endIndex=i-1,this._triangulation(e,n,i);var o=this._getShader(e.get("shading"));this._prepareMesh(e,o,r,n,i),this.rootNode.updateWorldTransform(),this._updateRegionMesh(e,r,n,i);var s=e.coordinateSystem;"geo3D"===s.type&&this._updateGroundPlane(e,s,r);var l=this;this._labelsBuilder.updateData(a,n,i),this._labelsBuilder.getLabelPosition=function(e,t,r){var n=a.getName(e),i=r;if("geo3D"===s.type)return u=s.getRegion(n).center,s.dataToPoint([u[0],u[1],i]);var o=l._triangulationResults[e-l._startIndex],u=l.extrudeY?[(o.max[0]+o.min[0])/2,o.max[1]+i,(o.max[2]+o.min[2])/2]:[(o.max[0]+o.min[0])/2,(o.max[1]+o.min[1])/2,o.max[2]+i]},this._data=a,this._labelsBuilder.updateLabels(),this._updateDebugWireframe(e),this._lastHoverDataIndex=0},_initMeshes:function(){this.rootNode.removeAll();var e,t=this,r=(e=new a.a.Mesh({name:"Polygon",material:new a.a.Material({shader:t._shadersMap.lambert}),culling:!1,geometry:new a.a.Geometry({sortTriangles:!0,dynamic:!0}),ignorePicking:!0,renderNormal:!0}),i.a.util.extend(e.geometry,c.a),e),n=new a.a.Mesh({material:new a.a.Material({shader:this._linesShader}),castShadow:!1,ignorePicking:!0,$ignorePicking:!0,geometry:new s.a({useNativeLine:!1})});this.rootNode.add(r),this.rootNode.add(n),r.material.define("both","VERTEX_COLOR"),r.material.define("fragment","DOUBLE_SIDED"),this._polygonMesh=r,this._linesMesh=n,this.rootNode.add(this._groundMesh)},_getShader:function(e){var t=this._shadersMap[e];return t||(console.warn("Unkown shading "+e),t=this._shadersMap.lambert),t.__shading=e,t},_prepareMesh:function(e,t,r,n,i){for(var o=0,s=0,l=0,u=0,h=n;h65535?new Uint32Array(3*s):new Uint16Array(3*s),f.material.shader!==t&&f.material.attachShader(t,!0),a.a.setMaterialFromModel(t.__shading,f.material,e,r),l>0&&(this._linesMesh.geometry.resetOffset(),this._linesMesh.geometry.setVertexCount(l),this._linesMesh.geometry.setTriangleCount(u)),this._dataIndexOfVertex=new Uint32Array(o),this._vertexRangeOfDataIndex=new Uint32Array(2*(i-n))},_updateRegionMesh:function(e,t,r,n){for(var i=e.getData(),o=0,s=0,u=!1,h=this._polygonMesh,c=this._linesMesh,d=r;d0;E&&(w*=t.getDevicePixelRatio(),this._updateLinesGeometry(c.geometry,e,d,x,w,e.coordinateSystem.transform)),c.invisible=!E,c.material.set({color:v})}(h=this._polygonMesh).material.transparent=u,h.material.depthMask=!u,h.geometry.updateBoundingBox(),h.material.get("normalMap")&&h.geometry.generateTangents(),h.seriesIndex=e.seriesIndex,h.on("mousemove",this._onmousemove,this),h.on("mouseout",this._onmouseout,this)},_updateDebugWireframe:function(e){var t=e.getModel("debug.wireframe");if(t.get("show")){var r=a.a.parseColor(t.get("lineStyle.color")||"rgba(0,0,0,0.5)"),n=l.a.firstNotNull(t.get("lineStyle.width"),1),i=this._polygonMesh;i.geometry.generateBarycentric(),i.material.define("both","WIREFRAME_TRIANGLE"),i.material.set("wireframeLineColor",r),i.material.set("wireframeLineWidth",n)}},_onmousemove:function(e){var t=this._dataIndexOfVertex[e.triangle[0]];null==t&&(t=-1),t!==this._lastHoverDataIndex&&(this.downplay(this._lastHoverDataIndex),this.highlight(t)),this._lastHoverDataIndex=t,this._polygonMesh.dataIndex=t},_onmouseover:function(e){if(e.target){var t=e.target.eventData?this._data.indexOfName(e.target.eventData.name):e.target.dataIndex;null!=t&&(this.highlight(t),this._labelsBuilder.updateLabels([t]))}},_onmouseout:function(e){e.target&&(this.downplay(this._lastHoverDataIndex),this._lastHoverDataIndex=-1,this._polygonMesh.dataIndex=-1)},_updateGroundPlane:function(e,t,r){var n=e.getModel("groundPlane",e);if(this._groundMesh.invisible=!n.get("show",!0),!this._groundMesh.invisible){var i=e.get("shading"),o=this._groundMaterials[i];o||(console.warn("Unkown shading "+i),o=this._groundMaterials.lambert),a.a.setMaterialFromModel(i,o,n,r),o.get("normalMap")&&this._groundMesh.geometry.generateTangents(),this._groundMesh.material=o,this._groundMesh.material.set("color",a.a.parseColor(n.get("color"))),this._groundMesh.scale.set(t.size[0],t.size[2],1)}},_triangulation:function(e,t,r){this._triangulationResults=[];for(var n=[1/0,1/0,1/0],i=[-1/0,-1/0,-1/0],a=e.coordinateSystem,s=t;s1?n:0,D[H][_]=A.points[V+2],l.set(i+H,D[H]),s?(R[0]=(A.points[V]*v[0]-y[0])/T,R[1]=(A.points[V+2]*v[_]-y[_])/T):(R[0]=(k?F:F+G)/T,R[1]=(D[H][g]*v[g]-y[g])/T),h.set(i+H,R)}for(p.sub(I,D[1],D[0]),p.sub(P,D[3],D[0]),p.cross(O,I,P),p.normalize(O,O),H=0;H<4;H++)u.set(i+H,O),f&&c.set(i+H,o);for(H=0;H<6;H++)m[3*a+H]=N[H]+i;i+=4,a+=2,F+=G}}return t.dirty(),{vertexOffset:i,triangleOffset:a}},_getRegionLinesInfo:function(e,t,r){var n=0,i=0;return t.getRegionModel(e).getModel("itemStyle").get("borderWidth")>0&&t.getRegionPolygonCoords(e).forEach((function(e){var t=e.exterior,a=e.interiors;n+=r.getPolylineVertexCount(t),i+=r.getPolylineTriangleCount(t);for(var o=0;othis._endIndex)){t-=this._startIndex;for(var n=this._vertexRangeOfDataIndex[2*t];n=2e4},doSortTriangles:function(e,t){var r=this.indices;if(0===t){var n=this.attributes.position;e=e.array,this._triangleZList&&this._triangleZList.length===this.triangleCount||(this._triangleZList=new Float32Array(this.triangleCount),this._sortedTriangleIndices=new Uint32Array(this.triangleCount),this._indicesTmp=new r.constructor(r.length),this._triangleZListTmp=new Float32Array(this.triangleCount));for(var i,u=0,h=0;h0,r={},n=0;n2?(g=this._updateSymbolSprite(e,p,d,f),u.enableTexture("sprite")):u.disableTexture("sprite"),c.position.init(i-n);var _=[];if(m){u.undefine("VERTEX_SIZE"),u.undefine("VERTEX_COLOR");var v=l.getVisual("color"),y=l.getVisual("opacity");a.a.parseColor(v,_),_[3]*=y,u.set({color:_,u_Size:d.maxSize*this._sizeScale})}else u.set({color:[1,1,1,1]}),u.define("VERTEX_SIZE"),u.define("VERTEX_COLOR"),c.size.init(i-n),c.color.init(i-n),this._originalOpacity=new Float32Array(i-n);for(var x=l.getLayout("points"),T=c.position.value,b=0;b1?(s[0]=r.maxSize,s[1]=r.maxSize/r.aspect):(s[1]=r.maxSize,s[0]=r.maxSize*r.aspect),s[0]=s[0]||1,s[1]=s[1]||1,this._symbolType===r.type&&(i=this._symbolSize,a=s,i&&a&&i[0]===a[0]&&i[1]===a[1])&&this._lineWidth===t.lineWidth||(o.a.createSymbolSprite(r.type,s,{fill:"#fff",lineWidth:t.lineWidth,stroke:"transparent",shadowColor:"transparent",minMargin:Math.min(s[0]/2,10)},this._spriteImageCanvas),o.a.createSDFFromCanvas(this._spriteImageCanvas,Math.min(this._spriteImageCanvas.width,32),20,this._mesh.material.get("sprite").image),this._symbolType=r.type,this._symbolSize=s,this._lineWidth=t.lineWidth),this._spriteImageCanvas.width/r.maxSize*n},_updateMaterial:function(e,t){var r="lighter"===e.get("blendMode")?a.a.additiveBlend:null,n=this._mesh.material;n.blend=r,n.set("lineWidth",t.lineWidth/20);var i=a.a.parseColor(t.stroke);n.set("strokeColor",i),n.transparent=!0,n.depthMask=!1,n.depthTest=!this.is2D,n.sortVertices=!this.is2D},_updateLabelBuilder:function(e,t,r){var n=e.getData(),i=this._mesh.geometry,a=i.attributes.position.value,o=(t=this._startDataIndex,this._mesh.sizeScale);this._labelsBuilder.updateData(n,t,r),this._labelsBuilder.getLabelPosition=function(e,r,n){var i=3*(e-t);return[a[i],a[i+1],a[i+2]]},this._labelsBuilder.getLabelDistance=function(e,r,n){return i.attributes.size.get(e-t)/o/2+n},this._labelsBuilder.updateLabels()},_updateAnimation:function(e){a.a.updateVertexAnimation([["prevPosition","position"],["prevSize","size"]],this._prevMesh,this._mesh,e)},_updateHandler:function(e,t,r){var n,i=e.getData(),a=this._mesh,o=this,s=-1,l=e.coordinateSystem&&"cartesian3D"===e.coordinateSystem.type;l&&(n=e.coordinateSystem.model),a.seriesIndex=e.seriesIndex,a.off("mousemove"),a.off("mouseout"),a.on("mousemove",(function(t){var u=t.vertexIndex+o._startDataIndex;u!==s&&(this.highlightOnMouseover&&(this.downplay(i,s),this.highlight(i,u),this._labelsBuilder.updateLabels([u])),l&&r.dispatchAction({type:"grid3DShowAxisPointer",value:[i.get(e.coordDimToDataDim("x")[0],u),i.get(e.coordDimToDataDim("y")[0],u),i.get(e.coordDimToDataDim("z")[0],u)],grid3DIndex:n.componentIndex})),a.dataIndex=u,s=u}),this),a.on("mouseout",(function(e){var t=e.vertexIndex+o._startDataIndex;this.highlightOnMouseover&&(this.downplay(i,t),this._labelsBuilder.updateLabels()),s=-1,a.dataIndex=-1,l&&r.dispatchAction({type:"grid3DHideAxisPointer",grid3DIndex:n.componentIndex})}),this)},updateLayout:function(e,t,r){var n=e.getData();if(this._mesh){var i=this._mesh.geometry.attributes.position.value,a=n.getLayout("points");if(this.is2D)for(var o=0;othis._endDataIndex||tthis._endDataIndex||t.05&&(a=!0),f!==o&&(s=!0),o=f,n=c}return a&&console.warn("Different symbol width / height ratio will be ignored."),s&&console.warn("Different symbol type will be ignored."),{maxSize:l,type:o,aspect:n}}},t.a=c},function(e,t,r){"use strict";t.a="@export clay.prez.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nattribute vec3 position : POSITION;\n@import clay.chunk.skinning_header\nvoid main()\n{\n vec3 skinnedPosition = position;\n#ifdef SKINNING\n @import clay.chunk.skin_matrix\n skinnedPosition = (skinMatrixWS * vec4(position, 1.0)).xyz;\n#endif\n gl_Position = worldViewProjection * vec4(skinnedPosition, 1.0);\n}\n@end\n@export clay.prez.fragment\nvoid main()\n{\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n}\n@end"},function(e,t,r){"use strict";var n,i=r(28),a=r(11),o=0,s=null,l=!0,u=function(){this.triangleCount=0,this.vertexCount=0,this.drawCallCount=0};function h(e,t,r){this.availableAttributes=e,this.availableAttributeSymbols=t,this.indicesBuffer=r,this.vao=null}var c,d=i.a.extend({material:null,geometry:null,mode:a.a.TRIANGLES,_drawCache:null,_renderInfo:null},(function(){this._drawCache={},this._renderInfo=new u}),{__program:null,lightGroup:0,renderOrder:0,lineWidth:1,culling:!0,cullFace:a.a.BACK,frontFace:a.a.CCW,frustumCulling:!0,receiveShadow:!0,castShadow:!0,ignorePicking:!1,ignorePreZ:!1,ignoreGBuffer:!1,isRenderable:function(){return this.geometry&&this.material&&this.material.shader&&!this.invisible&&this.geometry.vertexCount>0},beforeRender:function(e){},afterRender:function(e,t){},getBoundingBox:function(e,t){return t=i.a.prototype.getBoundingBox.call(this,e,t),this.geometry&&this.geometry.boundingBox&&t.union(this.geometry.boundingBox),t},render:function(e,t,r){var i=e.gl,u=(t=t||this.material).shader,c=this.geometry,d=this.mode,f=c.vertexCount,p=(c.isUseIndices(),e.getGLExtension("OES_element_index_uint")&&f>65535?i.UNSIGNED_INT:i.UNSIGNED_SHORT),m=e.getGLExtension("OES_vertex_array_object"),g=!c.dynamic,_=this._renderInfo;_.vertexCount=f,_.triangleCount=0,_.drawCallCount=0;var v=!1;if(((n=e.__uid__+"-"+c.__uid__+"-"+r.__uid__)!==o||m&&g||c._cache.isDirty("any"))&&(v=!0),o=n,v){var y=this._drawCache[n];if(!y){var x=c.getBufferChunks(e);if(!x)return;y=[];for(var T=0;T>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e},nearestPowerOfTwo:function(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))}};t.a=n},function(e,t,r){"use strict";var n,i,a,o,s=r(4),l=r(1),u=r.n(l),h=u.a.vec3,c=u.a.mat4,d=u.a.vec4,f=function(e,t){this.normal=e||new s.a(0,1,0),this.distance=t||0};f.prototype={constructor:f,distanceToPoint:function(e){return h.dot(e.array,this.normal.array)-this.distance},projectPoint:function(e,t){t||(t=new s.a);var r=this.distanceToPoint(e);return h.scaleAndAdd(t.array,e.array,this.normal.array,-r),t._dirty=!0,t},normalize:function(){var e=1/h.len(this.normal.array);h.scale(this.normal.array,e),this.distance*=e},intersectFrustum:function(e){for(var t=e.vertices,r=this.normal.array,n=h.dot(t[0].array,r)>this.distance,i=1;i<8;i++)if(h.dot(t[i].array,r)>this.distance!=n)return!0},intersectLine:(o=h.create(),function(e,t,r){var n=this.distanceToPoint(e),i=this.distanceToPoint(t);if(n>0&&i>0||n<0&&i<0)return null;var a=this.normal.array,l=this.distance,u=e.array;h.sub(o,t.array,e.array),h.normalize(o,o);var c=h.dot(a,o);if(0===c)return null;r||(r=new s.a);var d=(h.dot(a,u)-l)/c;return h.scaleAndAdd(r.array,u,o,-d),r._dirty=!0,r}),applyTransform:(n=c.create(),i=d.create(),a=d.create(),a[3]=1,function(e){e=e.array,h.scale(a,this.normal.array,this.distance),d.transformMat4(a,a,e),this.distance=h.dot(a,this.normal.array),c.invert(n,e),c.transpose(n,n),i[3]=0,h.copy(i,this.normal.array),d.transformMat4(i,i,n),h.copy(this.normal.array,i)}),copy:function(e){h.copy(this.normal.array,e.normal.array),this.normal._dirty=!0,this.distance=e.distance},clone:function(){var e=new f;return e.copy(this),e}},t.a=f},function(e,t,r){"use strict";var n=r(13),i=r(15),a=n.a.extend({dynamic:!1,widthSegments:40,heightSegments:20,phiStart:0,phiLength:2*Math.PI,thetaStart:0,thetaLength:Math.PI,radius:1},(function(){this.build()}),{build:function(){var e=this.heightSegments,t=this.widthSegments,r=this.attributes.position,n=this.attributes.texcoord0,a=this.attributes.normal,o=(t+1)*(e+1);r.init(o),n.init(o),a.init(o);var s,l,u,h,c,d,f,p,m,g,_,v=o>65535?Uint32Array:Uint16Array,y=this.indices=new v(t*e*6),x=this.radius,T=this.phiStart,b=this.phiLength,w=this.thetaStart,E=this.thetaLength,S=[],M=[],A=0,C=1/(x=this.radius);for(f=0;f<=e;f++)for(d=0;d<=t;d++)h=d/t,c=f/e,s=-x*Math.cos(T+h*b)*Math.sin(w+c*E),l=x*Math.cos(w+c*E),u=x*Math.sin(T+h*b)*Math.sin(w+c*E),S[0]=s,S[1]=l,S[2]=u,M[0]=h,M[1]=c,r.set(A,S),n.set(A,M),S[0]*=C,S[1]*=C,S[2]*=C,a.set(A,S),A++;var L=t+1,N=0;for(f=0;fo&&(i=this._x=0,a+=this._rowHeight+l,this._y=a,this._rowHeight=0),this._x+=t+l,this._rowHeight=Math.max(this._rowHeight,r),a+r+l>s)return null;e.position[0]+=this.offsetX*this.dpr+i,e.position[1]+=this.offsetY*this.dpr+a,this._zr.add(e);var u=[this.offsetX/this.width,this.offsetY/this.height];return[[i/o+u[0],a/s+u[1]],[(i+t)/o+u[0],(a+r)/s+u[1]]]},_fitElement:function(e,t,r){var n=e.getBoundingRect(),i=t/n.width,a=r/n.height;e.position=[-n.x*i,-n.y*a],e.scale=[i,a],e.update()}},s.prototype={clear:function(){for(var e=0;e=e)){var i=(r+this._nodeWidth)*this._dpr,a=(n+this._nodeHeight)*this._dpr;try{this._zr.resize({width:i,height:a})}catch(e){this._canvas.width=i,this._canvas.height=a}var s=new o(this._zr,r,n,this._nodeWidth,this._nodeHeight,this._gap,this._dpr);return this._textureAtlasNodes.push(s),s}console.error("Too much labels. Some will be ignored.")},add:function(e,t,r){if(this._coords[e.id])return console.warn("Element already been add"),this._coords[e.id];var n=this._getCurrentNode().add(e,t,r);if(!n){var i=this._expand();if(!i)return;n=i.add(e,t,r)}return this._coords[e.id]=n,n},getCoordsScale:function(){var e=this._dpr;return[this._nodeWidth/this._canvas.width*e,this._nodeHeight/this._canvas.height*e]},getCoords:function(e){return this._coords[e]}},t.a=s},function(e,t,r){"use strict";t.a=function(e,t,r){var n,i=e.scale;return"ordinal"===i.type&&("function"==typeof r?(n=i.getTicks()[t],!r(n,i.getLabel(n))):t%(r+1))}},function(e,t,r){var n,i,a,o,s=r(76),l=r(77),u=s.applyTransform,h=Math.min,c=Math.max;function d(e,t,r,n){r<0&&(e+=r,r=-r),n<0&&(t+=n,n=-n),this.x=e,this.y=t,this.width=r,this.height=n}d.prototype={constructor:d,union:function(e){var t=h(e.x,this.x),r=h(e.y,this.y);this.width=c(e.x+e.width,this.x+this.width)-t,this.height=c(e.y+e.height,this.y+this.height)-r,this.x=t,this.y=r},applyTransform:(n=[],i=[],a=[],o=[],function(e){if(e){n[0]=a[0]=this.x,n[1]=o[1]=this.y,i[0]=o[0]=this.x+this.width,i[1]=a[1]=this.y+this.height,u(n,n,e),u(i,i,e),u(a,a,e),u(o,o,e),this.x=h(n[0],i[0],a[0],o[0]),this.y=h(n[1],i[1],a[1],o[1]);var t=c(n[0],i[0],a[0],o[0]),r=c(n[1],i[1],a[1],o[1]);this.width=t-this.x,this.height=r-this.y}}),calculateTransform:function(e){var t=this,r=e.width/t.width,n=e.height/t.height,i=l.create();return l.translate(i,i,[-t.x,-t.y]),l.scale(i,i,[r,n]),l.translate(i,i,[e.x,e.y]),i},intersect:function(e){if(!e)return!1;e instanceof d||(e=d.create(e));var t=this,r=t.x,n=t.x+t.width,i=t.y,a=t.y+t.height,o=e.x,s=e.x+e.width,l=e.y,u=e.y+e.height;return!(n=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},clone:function(){return new d(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},d.create=function(e){return new d(e.x,e.y,e.width,e.height)};var f=d;e.exports=f},function(e,t){var r="undefined"==typeof Float32Array?Array:Float32Array;function n(e){return Math.sqrt(a(e))}var i=n;function a(e){return e[0]*e[0]+e[1]*e[1]}var o=a;function s(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var l=s;function u(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var h=u;t.create=function(e,t){var n=new r(2);return null==e&&(e=0),null==t&&(t=0),n[0]=e,n[1]=t,n},t.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e},t.clone=function(e){var t=new r(2);return t[0]=e[0],t[1]=e[1],t},t.set=function(e,t,r){return e[0]=t,e[1]=r,e},t.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e},t.scaleAndAdd=function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e},t.sub=function(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e},t.len=n,t.length=i,t.lenSquare=a,t.lengthSquare=o,t.mul=function(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e},t.div=function(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e},t.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]},t.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e},t.normalize=function(e,t){var r=n(t);return 0===r?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e},t.distance=s,t.dist=l,t.distanceSquare=u,t.distSquare=h,t.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e},t.lerp=function(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e},t.applyTransform=function(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e},t.min=function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e},t.max=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}},function(e,t){var r="undefined"==typeof Float32Array?Array:Float32Array;function n(){var e=new r(6);return i(e),e}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}t.create=n,t.identity=i,t.copy=a,t.mul=function(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e},t.translate=function(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e},t.rotate=function(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),h=Math.cos(r);return e[0]=n*h+o*u,e[1]=-n*u+o*h,e[2]=i*h+s*u,e[3]=-i*u+h*s,e[4]=h*a+u*l,e[5]=h*l-u*a,e},t.scale=function(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e},t.invert=function(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null},t.clone=function(e){var t=n();return a(t,e),t}},function(e,t,r){var n=r(12),i=1e-4,a=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function o(e){return Math.floor(Math.log(e)/Math.LN10)}t.linearMap=function(e,t,r,n){var i=t[1]-t[0],a=r[1]-r[0];if(0===i)return 0===a?r[0]:(r[0]+r[1])/2;if(n)if(i>0){if(e<=t[0])return r[0];if(e>=t[1])return r[1]}else{if(e>=t[0])return r[0];if(e<=t[1])return r[1]}else{if(e===t[0])return r[0];if(e===t[1])return r[1]}return(e-t[0])/i*a+r[0]},t.parsePercent=function(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return"string"==typeof e?(r=e,r.replace(/^\s+/,"").replace(/\s+$/,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var r},t.round=function(e,t,r){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),r?e:+e},t.asc=function(e){return e.sort((function(e,t){return e-t})),e},t.getPrecision=function(e){if(e=+e,isNaN(e))return 0;for(var t=1,r=0;Math.round(e*t)/t!==e;)t*=10,r++;return r},t.getPrecisionSafe=function(e){var t=e.toString(),r=t.indexOf("e");if(r>0){var n=+t.slice(r+1);return n<0?-n:0}var i=t.indexOf(".");return i<0?0:t.length-1-i},t.getPixelPrecision=function(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20},t.getPercentWithPrecision=function(e,t,r){if(!e[t])return 0;var i=n.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===i)return 0;for(var a=Math.pow(10,r),o=n.map(e,(function(e){return(isNaN(e)?0:e)/i*a*100})),s=100*a,l=n.map(o,(function(e){return Math.floor(e)})),u=n.reduce(l,(function(e,t){return e+t}),0),h=n.map(o,(function(e,t){return e-l[t]}));uc&&(c=h[f],d=f);++l[d],h[d]=0,++u}return l[t]/a},t.MAX_SAFE_INTEGER=9007199254740991,t.remRadian=function(e){var t=2*Math.PI;return(e%t+t)%t},t.isRadianAroundZero=function(e){return e>-1e-4&&e=-20?+e.toFixed(r<0?-r:0):e},t.reformIntervals=function(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,r=1,n=0;n=0}},function(e,t,r){"use strict";var n=r(5),i=r(11),a=r(21),o=function(){this._pool={},this._allocatedTextures=[]};o.prototype={constructor:o,get:function(e){var t=u(e);this._pool.hasOwnProperty(t)||(this._pool[t]=[]);var r=this._pool[t];if(!r.length){var i=new n.a(e);return this._allocatedTextures.push(i),i}return r.pop()},put:function(e){var t=u(e);this._pool.hasOwnProperty(t)||(this._pool[t]=[]),this._pool[t].push(e)},clear:function(e){for(var t=0;tc&&u.push({pivot:Math.floor((h+c)/2),left:c,right:h}),c=s[l].pivot+1,(h=s[l].right)>c&&u.push({pivot:Math.floor((h+c)/2),left:c,right:h})}s=this._parts=u}else for(l=0;l65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(e){this.triangleCount!==e&&(this.indices=0===e?null:this.vertexCount>65535?new Uint32Array(3*e):new Uint16Array(3*e))},_getCubicCurveApproxStep:function(e,t,r,n){return 1/(m.dist(e,t)+m.dist(r,t)+m.dist(n,r)+1)*this.segmentScale},getCubicCurveVertexCount:function(e,t,r,n){var i=this._getCubicCurveApproxStep(e,t,r,n),a=Math.ceil(1/i);return this.useNativeLine?2*a:2*a+2},getCubicCurveTriangleCount:function(e,t,r,n){var i=this._getCubicCurveApproxStep(e,t,r,n),a=Math.ceil(1/i);return this.useNativeLine?0:2*a},getLineVertexCount:function(){return this.getPolylineVertexCount(g)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(g)},getPolylineVertexCount:function(e){var t;return t="number"==typeof e?e:"number"!=typeof e[0]?e.length:e.length/2,this.useNativeLine?2*(t-1):2*(t-1)+2},getPolylineTriangleCount:function(e){var t;return t="number"==typeof e?e:"number"!=typeof e[0]?e.length:e.length/2,this.useNativeLine?0:2*(t-1)},addCubicCurve:function(e,t,r,n,i,a){null==a&&(a=1);var o=e[0],s=e[1],l=t[0],u=t[1],h=r[0],c=r[1],d=n[0],f=n[1],p=this._getCubicCurveApproxStep(e,t,r,n),m=p*p,g=m*p,_=3*p,v=3*m,y=6*m,x=6*g,T=o-2*l+h,b=s-2*u+c,w=3*(l-h)-o+d,E=3*(u-c)-s+f,S=o,M=s,A=(l-o)*_+T*v+w*g,C=(u-s)*_+b*v+E*g,L=T*y+w*x,N=b*y+E*x,D=w*x,I=E*x,P=0,O=0,R=Math.ceil(1/p),F=new Float32Array(3*(R+1)),B=(F=[],0);for(O=0;O1&&(S=A>0?Math.min(S,d):Math.max(S,d),M=C>0?Math.min(M,f):Math.max(M,f));this.addPolyline(F,i,a)},addLine:function(e,t,r,n){this.addPolyline([e,t],r,n)},addPolyline:(n=m.create(),i=m.create(),a=m.create(),o=m.create(),s=[],l=[],u=[],function(e,t,r,h,c){if(e.length){var d="number"!=typeof e[0];if(null==c&&(c=d?e.length:e.length/2),!(c<2)){null==h&&(h=0),null==r&&(r=1),this._itemVertexOffsets.push(this._vertexOffset);for(var f,p=d?"number"!=typeof t[0]:t.length/4===c,g=this.attributes.position,_=this.attributes.color,v=this.attributes.offset,y=this.attributes.normal,x=this.indices,T=this._vertexOffset,b=0;b1&&(g.copy(T,T-1),_.copy(T,T-1),T++);else{var S;if(b0){m.sub(n,s,u),m.sub(i,l,s),m.normalize(n,n),m.normalize(i,i),m.add(o,n,i),m.normalize(o,o);var M=r/2*Math.min(1/m.dot(n,o),2);a[0]=-o[1],a[1]=o[0],S=M}else m.sub(n,l,s),m.normalize(n,n),a[0]=-n[1],a[1]=n[0],S=r/2;else m.sub(n,s,u),m.normalize(n,n),a[0]=-n[1],a[1]=n[0],S=r/2;y.set(T,a),y.set(T+1,a),v.set(T,S),v.set(T+1,-S),m.copy(u,s),g.set(T,s),g.set(T+1,s),_.set(T,f),_.set(T+1,f),T+=2}if(this.useNativeLine)_.set(T,f),g.set(T,s),T++;else if(b>0){var A=3*this._faceOffset;(x=this.indices)[A]=T-4,x[A+1]=T-3,x[A+2]=T-2,x[A+3]=T-3,x[A+4]=T-1,x[A+5]=T-2,this._faceOffset+=2}}this._vertexOffset=T}}}),setItemColor:function(e,t){for(var r=this._itemVertexOffsets[e],n=ee&&o=0&&this._viewsToDispose.splice(t,1),this.views.push(e),e.layer=this;var r=this.zr;e.scene.traverse((function(e){e.__zr=r,e.addAnimatorsToZr&&e.addAnimatorsToZr(r)}))}},c.prototype.removeView=function(e){if(e.layer===this){var t=this.views.indexOf(e);t>=0&&(this.views.splice(t,1),e.scene.traverse(d,this),e.layer=null,this._viewsToDispose.push(e))}},c.prototype.removeViewsAll=function(){this.views.forEach((function(e){e.scene.traverse(d,this),e.layer=null,this._viewsToDispose.push(e)}),this),this.views.length=0},c.prototype.resize=function(e,t){this.renderer.resize(e,t)},c.prototype.clear=function(){var e=this.renderer.gl;e.clearColor(0,0,0,0),e.depthMask(!0),e.colorMask(!0,!0,!0,!0),e.clear(e.DEPTH_BUFFER_BIT|e.COLOR_BUFFER_BIT)},c.prototype.clearDepth=function(){var e=this.renderer.gl;e.clear(e.DEPTH_BUFFER_BIT)},c.prototype.clearColor=function(){var e=this.renderer.gl;e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT)},c.prototype.needsRefresh=function(){this.zr.refresh()},c.prototype.refresh=function(){for(var e=0;e20)){e=e.event;var n=this.pickObject(e.offsetX,e.offsetY);n&&(this._dispatchEvent(e.type,e,n),this._dispatchDataEvent(e.type,e,n));var i=this._clickToSetFocusPoint(e);i&&i.view.setDOFFocusOnPoint(i.distance)&&this.zr.refresh()}}},c.prototype._clickToSetFocusPoint=function(e){for(var t=this.renderer,r=t.viewport,n=this.views.length-1;n>=0;n--){var i=this.views[n];if(i.hasDOF()&&i.containPoint(e.offsetX,e.offsetY)){this._picking.scene=i.scene,this._picking.camera=i.camera,t.viewport=i.viewport;var a=this._picking.pick(e.offsetX,e.offsetY,!0);if(a)return a.view=i,a}}t.viewport=r},c.prototype.onglobalout=function(e){var t=this._hovered;t&&this._dispatchEvent("mouseout",e,{target:t.target})},c.prototype.pickObject=function(e,t){for(var r=[],n=this.renderer,i=n.viewport,a=0;a=0&&(l.dataIndex=this._lastDataIndex,l.seriesIndex=this._lastSeriesIndex,this.zr.handler.dispatchToElement(u,"mouseout",t)),s=!0):null!=o&&o!==this._lastEventData&&(null!=this._lastEventData&&(l.eventData=this._lastEventData,this.zr.handler.dispatchToElement(u,"mouseout",t)),s=!0),this._lastEventData=o,this._lastDataIndex=i,this._lastSeriesIndex=a),l.eventData=o,l.dataIndex=i,l.seriesIndex=a,(null!=o||parseInt(i,10)>=0)&&(this.zr.handler.dispatchToElement(u,e,t),s&&this.zr.handler.dispatchToElement(u,"mouseover",t))},c.prototype._dispatchToView=function(e,t){for(var r=0;r255?255:e}function s(e){return e<0?0:e>1?1:e}function l(e){return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function u(e){return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function h(e,t,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?e+(t-e)*r*6:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function c(e,t,r){return e+(t-e)*r}function d(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var p=new n.a(20),m=null;function g(e,t){m&&f(m,t),m=p.put(e,m||t.slice())}function _(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=u(e[1]),i=u(e[2]),a=i<=.5?i*(n+1):i+n-i*n,s=2*i-a;return d(t=t||[],o(255*h(s,a,r+1/3)),o(255*h(s,a,r)),o(255*h(s,a,r-1/3)),1),4===e.length&&(t[3]=e[3]),t}i.parse=function(e,t){if(e){t=t||[];var r=p.get(e);if(r)return f(t,r);var n,i=(e+="").replace(/ /g,"").toLowerCase();if(i in a)return f(t,a[i]),g(e,t),t;if("#"===i.charAt(0))return 4===i.length?(n=parseInt(i.substr(1),16))>=0&&n<=4095?(d(t,(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,1),g(e,t),t):void d(t,0,0,0,1):7===i.length?(n=parseInt(i.substr(1),16))>=0&&n<=16777215?(d(t,(16711680&n)>>16,(65280&n)>>8,255&n,1),g(e,t),t):void d(t,0,0,0,1):void 0;var o=i.indexOf("("),s=i.indexOf(")");if(-1!==o&&s+1===i.length){var h=i.substr(0,o),c=i.substr(o+1,s-(o+1)).split(","),m=1;switch(h){case"rgba":if(4!==c.length)return void d(t,0,0,0,1);m=u(c.pop());case"rgb":return 3!==c.length?void d(t,0,0,0,1):(d(t,l(c[0]),l(c[1]),l(c[2]),m),g(e,t),t);case"hsla":return 4!==c.length?void d(t,0,0,0,1):(c[3]=u(c[3]),_(c,t),g(e,t),t);case"hsl":return 3!==c.length?void d(t,0,0,0,1):(_(c,t),g(e,t),t);default:return}}d(t,0,0,0,1)}},i.parseToFloat=function(e,t){if(t=i.parse(e,t))return t[0]/=255,t[1]/=255,t[2]/=255,t},i.lift=function(e,t){var r=i.parse(e);if(r){for(var n=0;n<3;n++)r[n]=t<0?r[n]*(1-t)|0:(255-r[n])*t+r[n]|0;return i.stringify(r,4===r.length?"rgba":"rgb")}},i.toHex=function(e){var t=i.parse(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)},i.fastLerp=function(e,t,r){if(t&&t.length&&e>=0&&e<=1){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),l=t[i],u=t[a],h=n-i;return r[0]=o(c(l[0],u[0],h)),r[1]=o(c(l[1],u[1],h)),r[2]=o(c(l[2],u[2],h)),r[3]=s(c(l[3],u[3],h)),r}},i.fastMapToColor=i.fastLerp,i.lerp=function(e,t,r){if(t&&t.length&&e>=0&&e<=1){var n=e*(t.length-1),a=Math.floor(n),l=Math.ceil(n),u=i.parse(t[a]),h=i.parse(t[l]),d=n-a,f=i.stringify([o(c(u[0],h[0],d)),o(c(u[1],h[1],d)),o(c(u[2],h[2],d)),s(c(u[3],h[3],d))],"rgba");return r?{color:f,leftIndex:a,rightIndex:l,value:n}:f}},i.mapToColor=i.lerp,i.modifyHSL=function(e,t,r,n){if(e=i.parse(e))return e=function(e){if(e){var t,r,n=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o,u=(s+o)/2;if(0===l)t=0,r=0;else{r=u<.5?l/(s+o):l/(2-s-o);var h=((s-n)/6+l/2)/l,c=((s-i)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?t=d-c:i===s?t=1/3+h-d:a===s&&(t=2/3+c-h),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,r,u];return null!=e[3]&&f.push(e[3]),f}}(e),null!=t&&(e[0]=(a=t,(a=Math.round(a))<0?0:a>360?360:a)),null!=r&&(e[1]=u(r)),null!=n&&(e[2]=u(n)),i.stringify(_(e),"rgba");var a},i.modifyAlpha=function(e,t){if((e=i.parse(e))&&null!=t)return e[3]=s(t),i.stringify(e,"rgba")},i.stringify=function(e,t){if(e&&e.length){var r=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(r+=","+e[3]),t+"("+r+")"}},t.a=i},function(e,t,r){"use strict";var n=r(95),i=function(e){this._list=new n.a,this._map={},this._maxSize=e||10};i.prototype.setMaxSize=function(e){this._maxSize=e},i.prototype.put=function(e,t){if(void 0===this._map[e]){var r=this._list.length();if(r>=this._maxSize&&r>0){var n=this._list.head;this._list.remove(n),delete this._map[n.key]}var i=this._list.insert(t);i.key=e,this._map[e]=i}},i.prototype.get=function(e){var t=this._map[e];if(void 0!==t)return t!==this._list.tail&&(this._list.remove(t),this._list.insertEntry(t)),t.value},i.prototype.remove=function(e){var t=this._map[e];void 0!==t&&(delete this._map[e],this._list.remove(t))},i.prototype.clear=function(){this._list.clear(),this._map={}},t.a=i},function(e,t,r){"use strict";var n=function(){this.head=null,this.tail=null,this._length=0};n.prototype.insert=function(e){var t=new n.Entry(e);return this.insertEntry(t),t},n.prototype.insertAt=function(e,t){if(!(e<0)){for(var r=this.head,i=0;r&&i!=e;)r=r.next,i++;if(r){var a=new n.Entry(t),o=r.prev;o?(o.next=a,a.prev=o):this.head=a,a.next=r,r.prev=a}else this.insert(t)}},n.prototype.insertBeforeEntry=function(e,t){var r=new n.Entry(e),i=t.prev;i?(i.next=r,r.prev=i):this.head=r,r.next=t,t.prev=r,this._length++},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._length++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._length--},n.prototype.removeAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;return t?(this.remove(t),t.value):void 0}},n.prototype.getHead=function(){if(this.head)return this.head.value},n.prototype.getTail=function(){if(this.tail)return this.tail.value},n.prototype.getAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;return t.value}},n.prototype.indexOf=function(e){for(var t=this.head,r=0;t;){if(t.value===e)return r;t=t.next,r++}},n.prototype.length=function(){return this._length},n.prototype.isEmpty=function(){return 0===this._length},n.prototype.forEach=function(e,t){for(var r=this.head,n=0,i=void 0!==t;r;)i?e.call(t,r.value,n):e(r.value,n),r=r.next,n++},n.prototype.clear=function(){this.tail=this.head=null,this._length=0},n.Entry=function(e){this.value=e,this.next=null,this.prev=null},t.a=n},function(e,t,r){"use strict";var n=r(97),i=/for\s*?\(int\s*?_idx_\s*\=\s*([\w-]+)\;\s*_idx_\s*<\s*([\w-]+);\s*_idx_\s*\+\+\s*\)\s*\{\{([\s\S]+?)(?=\}\})\}\}/g;function a(e,t,r){var n={};for(var a in r)n[a+"_COUNT"]=r[a];return e.replace(i,(function(e,r,i,a){var o="";isNaN(r)&&(r=r in t?t[r]:n[r]),isNaN(i)&&(i=i in t?t[i]:n[i]);for(var s=parseInt(r);s0&&n.push("#define "+i.toUpperCase()+"_COUNT "+a)}if(r)for(var o=0;o=0&&S[w]>1e-4&&(g.transformMat4(C,E,T[M[w]]),g.scaleAndAdd(A,A,C,S[w]));L.set(b,A)}}for(b=0;b=0&&(function(e){o(e,"itemStyle"),o(e,"lineStyle"),o(e,"areaStyle"),o(e,"label")}(t),"mapbox"===t.coordinateSystem&&(t.coordinateSystem="mapbox3D",e.mapbox3D=e.mapbox))})),s(e.xAxis3D),s(e.yAxis3D),s(e.zAxis3D),s(e.grid3D),o(e.geo3D)}},function(e,t,r){"use strict";t.a={get:function(e){var t=new XMLHttpRequest;t.open("get",e.url),t.responseType=e.responseType||"text",e.onprogress&&(t.onprogress=function(t){if(t.lengthComputable){var r=t.loaded/t.total;e.onprogress(r,t.loaded,t.total)}else e.onprogress(null)}),t.onload=function(r){t.status>=400?e.onerror&&e.onerror():e.onload&&e.onload(t.response)},e.onerror&&(t.onerror=e.onerror),t.send(null)}}},function(e,t,r){"use strict";t.a="@export clay.basic.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec2 uvRepeat : [1.0, 1.0];\nuniform vec2 uvOffset : [0.0, 0.0];\nattribute vec2 texcoord : TEXCOORD_0;\nattribute vec3 position : POSITION;\nattribute vec3 barycentric;\n@import clay.chunk.skinning_header\nvarying vec2 v_Texcoord;\nvarying vec3 v_Barycentric;\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\nvoid main()\n{\n vec3 skinnedPosition = position;\n#ifdef SKINNING\n @import clay.chunk.skin_matrix\n skinnedPosition = (skinMatrixWS * vec4(position, 1.0)).xyz;\n#endif\n v_Texcoord = texcoord * uvRepeat + uvOffset;\n v_Barycentric = barycentric;\n gl_Position = worldViewProjection * vec4(skinnedPosition, 1.0);\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n}\n@end\n@export clay.basic.fragment\nvarying vec2 v_Texcoord;\nuniform sampler2D diffuseMap;\nuniform vec3 color : [1.0, 1.0, 1.0];\nuniform vec3 emission : [0.0, 0.0, 0.0];\nuniform float alpha : 1.0;\n#ifdef ALPHA_TEST\nuniform float alphaCutoff: 0.9;\n#endif\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\nuniform float lineWidth : 0.0;\nuniform vec4 lineColor : [0.0, 0.0, 0.0, 0.6];\nvarying vec3 v_Barycentric;\n@import clay.util.edge_factor\n@import clay.util.rgbm\n@import clay.util.srgb\n@import clay.util.ACES\nvoid main()\n{\n#ifdef RENDER_TEXCOORD\n gl_FragColor = vec4(v_Texcoord, 1.0, 1.0);\n return;\n#endif\n gl_FragColor = vec4(color, alpha);\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n#endif\n#ifdef DIFFUSEMAP_ENABLED\n vec4 tex = decodeHDR(texture2D(diffuseMap, v_Texcoord));\n#ifdef SRGB_DECODE\n tex = sRGBToLinear(tex);\n#endif\n#if defined(DIFFUSEMAP_ALPHA_ALPHA)\n gl_FragColor.a = tex.a;\n#endif\n gl_FragColor.rgb *= tex.rgb;\n#endif\n gl_FragColor.rgb += emission;\n if( lineWidth > 0.)\n {\n gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor(lineWidth)) * lineColor.a);\n }\n#ifdef ALPHA_TEST\n if (gl_FragColor.a < alphaCutoff) {\n discard;\n }\n#endif\n#ifdef TONEMAPPING\n gl_FragColor.rgb = ACESToneMapping(gl_FragColor.rgb);\n#endif\n#ifdef SRGB_ENCODE\n gl_FragColor = linearTosRGB(gl_FragColor);\n#endif\n gl_FragColor = encodeHDR(gl_FragColor);\n}\n@end"},function(e,t,r){"use strict";var n=r(6),i=r(5);function a(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}r(25);var o=a("DXT1"),s=a("DXT3"),l=a("DXT5"),u={parse:function(e,t){var r=new Int32Array(e,0,31);if(542327876!==r[0])return null;if(4&!r(20))return null;var a,u,h=r(21),c=r[4],d=r[3],f=512&r[28],p=131072&r[2];switch(h){case o:a=8,u=n.a.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case s:a=16,u=n.a.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case l:a=16,u=n.a.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}var m=r[1]+4,g=f?6:1,_=1;p&&(_=Math.max(1,r[7]));for(var v=[],y=0;y0){var i=Math.pow(2,e[3]-128-8+n);t[r+0]=e[0]*i,t[r+1]=e[1]*i,t[r+2]=e[2]*i}else t[r+0]=0,t[r+1]=0,t[r+2]=0;return t[r+3]=1,t}function s(e,t,r,n){for(var i,a,o=0,s=0,l=n;l>0;)if(e[s][0]=t[r++],e[s][1]=t[r++],e[s][2]=t[r++],e[s][3]=t[r++],1===e[s][0]&&1===e[s][1]&&1===e[s][2]){for(var u=e[s][3]<>>0;u>0;u--)i=e[s-1],(a=e[s])[0]=i[0],a[1]=i[1],a[2]=i[2],a[3]=i[3],s++,l--;o+=8}else s++,l--,o=0;return r}function l(e,t,r,n){if(n<8|n>32767)return s(e,t,r,n);if(2!=(i=t[r++]))return s(e,t,r-1,n);if(e[0][1]=t[r++],e[0][2]=t[r++],i=t[r++],(e[0][2]<<8>>>0|i)>>>0!==n)return null;for(var i=0;i<4;i++)for(var a=0;a128){o=(127&o)>>>0;for(var l=t[r++];o--;)e[a++][i]=l}else for(;o--;)e[a++][i]=t[r++]}return r}var u={parseRGBE:function(e,t,r){null==r&&(r=0);var s=new Uint8Array(e),u=s.length;if("#?"===function(e,t,r){for(var n="",i=t;i=u)){h+=2;for(var c="";h=0||(o.forEach((function(t){e.on(t,this[s(t)],this)}),this),this._meshes.push(e))},detachFromMesh:function(e){var t=this._meshes.indexOf(e);t>=0&&this._meshes.splice(t,1),o.forEach((function(t){e.off(t,this[s(t)])}),this)},dispose:function(){this._meshes.forEach((function(e){this.detachFromMesh(e)}),this)}},t.a=g},function(e,t,r){"use strict";var n=r(19),i=r(108),a=n.a.extend({cubemap:null,castShadow:!1,_normalDistribution:null,_brdfLookup:null},{type:"AMBIENT_CUBEMAP_LIGHT",prefilter:function(e,t){this._brdfLookup||(this._normalDistribution=i.a.generateNormalDistribution(),this._brdfLookup=i.a.integrateBRDF(e,this._normalDistribution));var r=this.cubemap;if(!r.__prefiltered){var n=i.a.prefilterEnvironmentMap(e,r,{encodeRGBM:!0,width:t,height:t},this._normalDistribution,this._brdfLookup);this.cubemap=n.environmentMap,this.cubemap.__prefiltered=!0,r.dispose(e)}},uniformTemplates:{ambientCubemapLightColor:{type:"3f",value:function(e){var t=e.color,r=e.intensity;return[t[0]*r,t[1]*r,t[2]*r]}},ambientCubemapLightCubemap:{type:"t",value:function(e){return e.cubemap}},ambientCubemapLightBRDFLookup:{type:"t",value:function(e){return e._brdfLookup}}}});t.a=a},function(e,t,r){"use strict";var n=r(5),i=r(25),a=r(6),o=r(10),s=r(14),l=r(17),u=r(7),h=r(57),c=r(29),d=r(55),f=r(18),p=r(54),m=r(111),g=r(112),_={},v=["px","nx","py","ny","pz","nz"];_.prefilterEnvironmentMap=function(e,t,r,s,m){m&&s||(s=_.generateNormalDistribution(),m=_.integrateBRDF(e,s));var y=(r=r||{}).width||64,x=r.height||64,T=r.type||t.type,b=new i.a({width:y,height:x,type:T,flipY:!1,mipmaps:[]});b.isPowerOfTwo()||console.warn("Width and height must be power of two to enable mipmap.");var w=Math.min(y,x),E=Math.log(w)/Math.log(2)+1,S=new l.a({shader:new u.a({vertex:u.a.source("clay.skybox.vertex"),fragment:g.a})});S.set("normalDistribution",s),r.encodeRGBM&&S.define("fragment","RGBM_ENCODE"),r.decodeRGBM&&S.define("fragment","RGBM_DECODE");var M,A=new c.a;if(t instanceof n.a){var C=new i.a({width:y,height:x,type:T===a.a.FLOAT?a.a.HALF_FLOAT:T});p.a.panoramaToCubeMap(e,t,C,{encodeRGBM:r.decodeRGBM}),t=C}(M=new h.a({scene:A,material:S})).material.set("environmentMap",t);var L=new d.a({texture:b});r.encodeRGBM&&(T=b.type=a.a.UNSIGNED_BYTE);for(var N=new n.a({width:y,height:x,type:T}),D=new o.a({depthBuffer:!1}),I=f.a[T===a.a.UNSIGNED_BYTE?"Uint8Array":"Float32Array"],P=0;P>>16)>>>0;l=(((16711935&(l=((252645135&(l=((858993459&(l=((1431655765&l)<<1|(2863311530&l)>>>1)>>>0))<<2|(3435973836&l)>>>2)>>>0))<<4|(4042322160&l)>>>4)>>>0))<<8|(4278255360&l)>>>8)>>>0)/4294967296;for(var u=0;u=0&&l.splice(e,1)})),l.push(u),this.__zr&&this.__zr.animation.addAnimator(u),u},stopAnimation:function(e){this._animators=this._animators||[];for(var t=this._animators,r=t.length,n=0;n.5?t:e}function c(e,t,r,n,i){var a=e.length;if(1==i)for(var o=0;oi)e.length=i;else for(var a=n;a=0&&!(A[r]<=t);r--);r=Math.min(r,x-2)}else{for(r=G;rt);r++);r=Math.min(r-1,x-2)}G=r,H=t;var n=A[r+1]-A[r];if(0!==n)if(R=(t-A[r])/n,y)if(B=C[r],F=C[0===r?r:r-1],U=C[r>x-2?x-1:r+1],z=C[r>x-3?x-1:r+2],w)p(F,B,U,z,R,R*R,R*R*R,g(e,s),M);else{if(E)i=p(F,B,U,z,R,R*R,R*R*R,k,1),i=_(k);else{if(S)return h(B,U,R);i=m(F,B,U,z,R,R*R,R*R*R)}v(e,s,i)}else if(w)c(C[r],C[r+1],R,g(e,s),M);else{var i;if(E)c(C[r],C[r+1],R,k,1),i=_(k);else{if(S)return h(C[r],C[r+1],R);i=u(C[r],C[r+1],R)}v(e,s,i)}},ondestroy:r});return t&&"spline"!==t&&(V.easing=t),V}}}var y=function(e,t,r,n){this._tracks={},this._target=e,this._loop=t||!1,this._getter=r||s,this._setter=n||l,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};y.prototype={when:function(e,t){var r=this._tracks;for(var n in t)if(t.hasOwnProperty(n)){if(!r[n]){r[n]=[];var i=this._getter(this._target,n);if(null==i)continue;0!==e&&r[n].push({time:0,value:g(i)})}r[n].push({time:e,value:t[n]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;e255?255:e}function o(e){return e<0?0:e>1?1:e}function s(e){return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function l(e){return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100):o(parseFloat(e))}function u(e,t,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?e+(t-e)*r*6:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function h(e,t,r){return e+(t-e)*r}function c(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function d(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var f=new n(20),p=null;function m(e,t){p&&d(p,t),p=f.put(e,p||t.slice())}function g(e,t){if(e){t=t||[];var r=f.get(e);if(r)return d(t,r);var n,a=(e+="").replace(/ /g,"").toLowerCase();if(a in i)return d(t,i[a]),m(e,t),t;if("#"===a.charAt(0))return 4===a.length?(n=parseInt(a.substr(1),16))>=0&&n<=4095?(c(t,(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,1),m(e,t),t):void c(t,0,0,0,1):7===a.length?(n=parseInt(a.substr(1),16))>=0&&n<=16777215?(c(t,(16711680&n)>>16,(65280&n)>>8,255&n,1),m(e,t),t):void c(t,0,0,0,1):void 0;var o=a.indexOf("("),u=a.indexOf(")");if(-1!==o&&u+1===a.length){var h=a.substr(0,o),p=a.substr(o+1,u-(o+1)).split(","),g=1;switch(h){case"rgba":if(4!==p.length)return void c(t,0,0,0,1);g=l(p.pop());case"rgb":return 3!==p.length?void c(t,0,0,0,1):(c(t,s(p[0]),s(p[1]),s(p[2]),g),m(e,t),t);case"hsla":return 4!==p.length?void c(t,0,0,0,1):(p[3]=l(p[3]),_(p,t),m(e,t),t);case"hsl":return 3!==p.length?void c(t,0,0,0,1):(_(p,t),m(e,t),t);default:return}}c(t,0,0,0,1)}}function _(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=l(e[1]),i=l(e[2]),o=i<=.5?i*(n+1):i+n-i*n,s=2*i-o;return c(t=t||[],a(255*u(s,o,r+1/3)),a(255*u(s,o,r)),a(255*u(s,o,r-1/3)),1),4===e.length&&(t[3]=e[3]),t}function v(e,t,r){if(t&&t.length&&e>=0&&e<=1){r=r||[];var n=e*(t.length-1),i=Math.floor(n),s=Math.ceil(n),l=t[i],u=t[s],c=n-i;return r[0]=a(h(l[0],u[0],c)),r[1]=a(h(l[1],u[1],c)),r[2]=a(h(l[2],u[2],c)),r[3]=o(h(l[3],u[3],c)),r}}var y=v;function x(e,t,r){if(t&&t.length&&e>=0&&e<=1){var n=e*(t.length-1),i=Math.floor(n),s=Math.ceil(n),l=g(t[i]),u=g(t[s]),c=n-i,d=b([a(h(l[0],u[0],c)),a(h(l[1],u[1],c)),a(h(l[2],u[2],c)),o(h(l[3],u[3],c))],"rgba");return r?{color:d,leftIndex:i,rightIndex:s,value:n}:d}}var T=x;function b(e,t){if(e&&e.length){var r=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(r+=","+e[3]),t+"("+r+")"}}t.parse=g,t.lift=function(e,t){var r=g(e);if(r){for(var n=0;n<3;n++)r[n]=t<0?r[n]*(1-t)|0:(255-r[n])*t+r[n]|0;return b(r,4===r.length?"rgba":"rgb")}},t.toHex=function(e){var t=g(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)},t.fastLerp=v,t.fastMapToColor=y,t.lerp=x,t.mapToColor=T,t.modifyHSL=function(e,t,r,n){if(e=g(e))return e=function(e){if(e){var t,r,n=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o,u=(s+o)/2;if(0===l)t=0,r=0;else{r=u<.5?l/(s+o):l/(2-s-o);var h=((s-n)/6+l/2)/l,c=((s-i)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?t=d-c:i===s?t=1/3+h-d:a===s&&(t=2/3+c-h),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,r,u];return null!=e[3]&&f.push(e[3]),f}}(e),null!=t&&(e[0]=(i=t,(i=Math.round(i))<0?0:i>360?360:i)),null!=r&&(e[1]=l(r)),null!=n&&(e[2]=l(n)),b(_(e),"rgba");var i},t.modifyAlpha=function(e,t){if((e=g(e))&&null!=t)return e[3]=o(t),b(e,"rgba")},t.stringify=b},function(e,t,r){"use strict";t.a="\n@export clay.util.rand\nhighp float rand(vec2 uv) {\n const highp float a = 12.9898, b = 78.233, c = 43758.5453;\n highp float dt = dot(uv.xy, vec2(a,b)), sn = mod(dt, 3.141592653589793);\n return fract(sin(sn) * c);\n}\n@end\n@export clay.util.calculate_attenuation\nuniform float attenuationFactor : 5.0;\nfloat lightAttenuation(float dist, float range)\n{\n float attenuation = 1.0;\n attenuation = dist*dist/(range*range+1.0);\n float att_s = attenuationFactor;\n attenuation = 1.0/(attenuation*att_s+1.0);\n att_s = 1.0/(att_s+1.0);\n attenuation = attenuation - att_s;\n attenuation /= 1.0 - att_s;\n return clamp(attenuation, 0.0, 1.0);\n}\n@end\n@export clay.util.edge_factor\nfloat edgeFactor(float width)\n{\n vec3 d = fwidth(v_Barycentric);\n vec3 a3 = smoothstep(vec3(0.0), d * width, v_Barycentric);\n return min(min(a3.x, a3.y), a3.z);\n}\n@end\n@export clay.util.encode_float\nvec4 encodeFloat(const in float depth)\n{\n const vec4 bitShifts = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0);\n const vec4 bit_mask = vec4(0.0, 1.0/256.0, 1.0/256.0, 1.0/256.0);\n vec4 res = fract(depth * bitShifts);\n res -= res.xxyz * bit_mask;\n return res;\n}\n@end\n@export clay.util.decode_float\nfloat decodeFloat(const in vec4 color)\n{\n const vec4 bitShifts = vec4(1.0/(256.0*256.0*256.0), 1.0/(256.0*256.0), 1.0/256.0, 1.0);\n return dot(color, bitShifts);\n}\n@end\n@export clay.util.float\n@import clay.util.encode_float\n@import clay.util.decode_float\n@end\n@export clay.util.rgbm_decode\nvec3 RGBMDecode(vec4 rgbm, float range) {\n return range * rgbm.rgb * rgbm.a;\n}\n@end\n@export clay.util.rgbm_encode\nvec4 RGBMEncode(vec3 color, float range) {\n if (dot(color, color) == 0.0) {\n return vec4(0.0);\n }\n vec4 rgbm;\n color /= range;\n rgbm.a = clamp(max(max(color.r, color.g), max(color.b, 1e-6)), 0.0, 1.0);\n rgbm.a = ceil(rgbm.a * 255.0) / 255.0;\n rgbm.rgb = color / rgbm.a;\n return rgbm;\n}\n@end\n@export clay.util.rgbm\n@import clay.util.rgbm_decode\n@import clay.util.rgbm_encode\nvec4 decodeHDR(vec4 color)\n{\n#if defined(RGBM_DECODE) || defined(RGBM)\n return vec4(RGBMDecode(color, 51.5), 1.0);\n#else\n return color;\n#endif\n}\nvec4 encodeHDR(vec4 color)\n{\n#if defined(RGBM_ENCODE) || defined(RGBM)\n return RGBMEncode(color.xyz, 51.5);\n#else\n return color;\n#endif\n}\n@end\n@export clay.util.srgb\nvec4 sRGBToLinear(in vec4 value) {\n return vec4(mix(pow(value.rgb * 0.9478672986 + vec3(0.0521327014), vec3(2.4)), value.rgb * 0.0773993808, vec3(lessThanEqual(value.rgb, vec3(0.04045)))), value.w);\n}\nvec4 linearTosRGB(in vec4 value) {\n return vec4(mix(pow(value.rgb, vec3(0.41666)) * 1.055 - vec3(0.055), value.rgb * 12.92, vec3(lessThanEqual(value.rgb, vec3(0.0031308)))), value.w);\n}\n@end\n@export clay.chunk.skinning_header\n#ifdef SKINNING\nattribute vec3 weight : WEIGHT;\nattribute vec4 joint : JOINT;\nuniform mat4 skinMatrix[JOINT_COUNT] : SKIN_MATRIX;\nmat4 getSkinMatrix(float idx) {\n return skinMatrix[int(idx)];\n}\n#endif\n@end\n@export clay.chunk.skin_matrix\nmat4 skinMatrixWS = getSkinMatrix(joint.x) * weight.x;\nif (weight.y > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.y) * weight.y;\n}\nif (weight.z > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.z) * weight.z;\n}\nfloat weightW = 1.0-weight.x-weight.y-weight.z;\nif (weightW > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.w) * weightW;\n}\n@end\n@export clay.util.parallax_correct\nvec3 parallaxCorrect(in vec3 dir, in vec3 pos, in vec3 boxMin, in vec3 boxMax) {\n vec3 first = (boxMax - pos) / dir;\n vec3 second = (boxMin - pos) / dir;\n vec3 further = max(first, second);\n float dist = min(further.x, min(further.y, further.z));\n vec3 fixedPos = pos + dir * dist;\n vec3 boxCenter = (boxMax + boxMin) * 0.5;\n return normalize(fixedPos - boxCenter);\n}\n@end\n@export clay.util.clamp_sample\nvec4 clampSample(const in sampler2D texture, const in vec2 coord)\n{\n#ifdef STEREO\n float eye = step(0.5, coord.x) * 0.5;\n vec2 coordClamped = clamp(coord, vec2(eye, 0.0), vec2(0.5 + eye, 1.0));\n#else\n vec2 coordClamped = clamp(coord, vec2(0.0), vec2(1.0));\n#endif\n return texture2D(texture, coordClamped);\n}\n@end\n@export clay.util.ACES\nvec3 ACESToneMapping(vec3 color)\n{\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\n@end"},function(e,t,r){"use strict";t.a="\n@export ecgl.common.transformUniforms\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE;\nuniform mat4 world : WORLD;\n@end\n\n@export ecgl.common.attributes\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\nattribute vec3 normal : NORMAL;\n@end\n\n@export ecgl.common.uv.header\nuniform vec2 uvRepeat : [1.0, 1.0];\nuniform vec2 uvOffset : [0.0, 0.0];\nuniform vec2 detailUvRepeat : [1.0, 1.0];\nuniform vec2 detailUvOffset : [0.0, 0.0];\n\nvarying vec2 v_Texcoord;\nvarying vec2 v_DetailTexcoord;\n@end\n\n@export ecgl.common.uv.main\nv_Texcoord = texcoord * uvRepeat + uvOffset;\nv_DetailTexcoord = texcoord * detailUvRepeat + detailUvOffset;\n@end\n\n@export ecgl.common.uv.fragmentHeader\nvarying vec2 v_Texcoord;\nvarying vec2 v_DetailTexcoord;\n@end\n\n\n@export ecgl.common.albedo.main\n\n vec4 albedoTexel = vec4(1.0);\n#ifdef DIFFUSEMAP_ENABLED\n albedoTexel = texture2D(diffuseMap, v_Texcoord);\n #ifdef SRGB_DECODE\n albedoTexel = sRGBToLinear(albedoTexel);\n #endif\n#endif\n\n#ifdef DETAILMAP_ENABLED\n vec4 detailTexel = texture2D(detailMap, v_DetailTexcoord);\n #ifdef SRGB_DECODE\n detailTexel = sRGBToLinear(detailTexel);\n #endif\n albedoTexel.rgb = mix(albedoTexel.rgb, detailTexel.rgb, detailTexel.a);\n albedoTexel.a = detailTexel.a + (1.0 - detailTexel.a) * albedoTexel.a;\n#endif\n\n@end\n\n@export ecgl.common.wireframe.vertexHeader\n\n#ifdef WIREFRAME_QUAD\nattribute vec4 barycentric;\nvarying vec4 v_Barycentric;\n#elif defined(WIREFRAME_TRIANGLE)\nattribute vec3 barycentric;\nvarying vec3 v_Barycentric;\n#endif\n\n@end\n\n@export ecgl.common.wireframe.vertexMain\n\n#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE)\n v_Barycentric = barycentric;\n#endif\n\n@end\n\n\n@export ecgl.common.wireframe.fragmentHeader\n\nuniform float wireframeLineWidth : 1;\nuniform vec4 wireframeLineColor: [0, 0, 0, 0.5];\n\n#ifdef WIREFRAME_QUAD\nvarying vec4 v_Barycentric;\nfloat edgeFactor () {\n vec4 d = fwidth(v_Barycentric);\n vec4 a4 = smoothstep(vec4(0.0), d * wireframeLineWidth, v_Barycentric);\n return min(min(min(a4.x, a4.y), a4.z), a4.w);\n}\n#elif defined(WIREFRAME_TRIANGLE)\nvarying vec3 v_Barycentric;\nfloat edgeFactor () {\n vec3 d = fwidth(v_Barycentric);\n vec3 a3 = smoothstep(vec3(0.0), d * wireframeLineWidth, v_Barycentric);\n return min(min(a3.x, a3.y), a3.z);\n}\n#endif\n\n@end\n\n\n@export ecgl.common.wireframe.fragmentMain\n\n#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE)\n if (wireframeLineWidth > 0.) {\n vec4 lineColor = wireframeLineColor;\n#ifdef SRGB_DECODE\n lineColor = sRGBToLinear(lineColor);\n#endif\n\n gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor()) * lineColor.a);\n }\n#endif\n@end\n\n\n\n\n@export ecgl.common.bumpMap.header\n\n#ifdef BUMPMAP_ENABLED\nuniform sampler2D bumpMap;\nuniform float bumpScale : 1.0;\n\n\nvec3 bumpNormal(vec3 surfPos, vec3 surfNormal, vec3 baseNormal)\n{\n vec2 dSTdx = dFdx(v_Texcoord);\n vec2 dSTdy = dFdy(v_Texcoord);\n\n float Hll = bumpScale * texture2D(bumpMap, v_Texcoord).x;\n float dHx = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdx).x - Hll;\n float dHy = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdy).x - Hll;\n\n vec3 vSigmaX = dFdx(surfPos);\n vec3 vSigmaY = dFdy(surfPos);\n vec3 vN = surfNormal;\n\n vec3 R1 = cross(vSigmaY, vN);\n vec3 R2 = cross(vN, vSigmaX);\n\n float fDet = dot(vSigmaX, R1);\n\n vec3 vGrad = sign(fDet) * (dHx * R1 + dHy * R2);\n return normalize(abs(fDet) * baseNormal - vGrad);\n\n}\n#endif\n\n@end\n\n@export ecgl.common.normalMap.vertexHeader\n\n#ifdef NORMALMAP_ENABLED\nattribute vec4 tangent : TANGENT;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@end\n\n@export ecgl.common.normalMap.vertexMain\n\n#ifdef NORMALMAP_ENABLED\n if (dot(tangent, tangent) > 0.0) {\n v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz);\n v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w);\n }\n#endif\n\n@end\n\n\n@export ecgl.common.normalMap.fragmentHeader\n\n#ifdef NORMALMAP_ENABLED\nuniform sampler2D normalMap;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@end\n\n@export ecgl.common.normalMap.fragmentMain\n#ifdef NORMALMAP_ENABLED\n if (dot(v_Tangent, v_Tangent) > 0.0) {\n vec3 normalTexel = texture2D(normalMap, v_DetailTexcoord).xyz;\n if (dot(normalTexel, normalTexel) > 0.0) { N = normalTexel * 2.0 - 1.0;\n mat3 tbn = mat3(v_Tangent, v_Bitangent, v_Normal);\n N = normalize(tbn * N);\n }\n }\n#endif\n@end\n\n\n\n@export ecgl.common.vertexAnimation.header\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute vec3 prevNormal;\nuniform float percent;\n#endif\n\n@end\n\n@export ecgl.common.vertexAnimation.main\n\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n vec3 norm = mix(prevNormal, normal, percent);\n#else\n vec3 pos = position;\n vec3 norm = normal;\n#endif\n\n@end\n\n\n@export ecgl.common.ssaoMap.header\n#ifdef SSAOMAP_ENABLED\nuniform sampler2D ssaoMap;\nuniform vec4 viewport : VIEWPORT;\n#endif\n@end\n\n@export ecgl.common.ssaoMap.main\n float ao = 1.0;\n#ifdef SSAOMAP_ENABLED\n ao = texture2D(ssaoMap, (gl_FragCoord.xy - viewport.xy) / viewport.zw).r;\n#endif\n@end\n\n\n\n\n@export ecgl.common.diffuseLayer.header\n\n#if (LAYER_DIFFUSEMAP_COUNT > 0)\nuniform float layerDiffuseIntensity[LAYER_DIFFUSEMAP_COUNT];\nuniform sampler2D layerDiffuseMap[LAYER_DIFFUSEMAP_COUNT];\n#endif\n\n@end\n\n@export ecgl.common.emissiveLayer.header\n\n#if (LAYER_EMISSIVEMAP_COUNT > 0)\nuniform float layerEmissionIntensity[LAYER_EMISSIVEMAP_COUNT];\nuniform sampler2D layerEmissiveMap[LAYER_EMISSIVEMAP_COUNT];\n#endif\n\n@end\n\n@export ecgl.common.layers.header\n@import ecgl.common.diffuseLayer.header\n@import ecgl.common.emissiveLayer.header\n@end\n\n@export ecgl.common.diffuseLayer.main\n\n#if (LAYER_DIFFUSEMAP_COUNT > 0)\n for (int _idx_ = 0; _idx_ < LAYER_DIFFUSEMAP_COUNT; _idx_++) {{\n float intensity = layerDiffuseIntensity[_idx_];\n vec4 texel2 = texture2D(layerDiffuseMap[_idx_], v_Texcoord);\n #ifdef SRGB_DECODE\n texel2 = sRGBToLinear(texel2);\n #endif\n albedoTexel.rgb = mix(albedoTexel.rgb, texel2.rgb * intensity, texel2.a);\n albedoTexel.a = texel2.a + (1.0 - texel2.a) * albedoTexel.a;\n }}\n#endif\n\n@end\n\n@export ecgl.common.emissiveLayer.main\n\n#if (LAYER_EMISSIVEMAP_COUNT > 0)\n for (int _idx_ = 0; _idx_ < LAYER_EMISSIVEMAP_COUNT; _idx_++)\n {{\n vec4 texel2 = texture2D(layerEmissiveMap[_idx_], v_Texcoord) * layerEmissionIntensity[_idx_];\n #ifdef SRGB_DECODE\n texel2 = sRGBToLinear(texel2);\n #endif\n float intensity = layerEmissionIntensity[_idx_];\n gl_FragColor.rgb += texel2.rgb * texel2.a * intensity;\n }}\n#endif\n\n@end\n"},function(e,t,r){"use strict";t.a="@export ecgl.color.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\n@import ecgl.common.uv.header\n\nattribute vec2 texcoord : TEXCOORD_0;\nattribute vec3 position: POSITION;\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nuniform float percent : 1.0;\n#endif\n\nvoid main()\n{\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n#else\n vec3 pos = position;\n#endif\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n @import ecgl.common.uv.main\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n\n}\n\n@end\n\n@export ecgl.color.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n\nuniform sampler2D diffuseMap;\nuniform sampler2D detailMap;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n@import ecgl.common.layers.header\n\n@import ecgl.common.uv.fragmentHeader\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color);\n#else\n gl_FragColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n gl_FragColor *= albedoTexel;\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n\n}\n@end"},function(e,t,r){"use strict";t.a="/**\n * http: */\n\n@export ecgl.lambert.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n\n@import ecgl.common.attributes\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.vertexAnimation.header\n\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nvoid main()\n{\n @import ecgl.common.uv.main\n\n @import ecgl.common.vertexAnimation.main\n\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz);\n v_WorldPosition = (world * vec4(pos, 1.0)).xyz;\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n}\n\n@end\n\n\n@export ecgl.lambert.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform sampler2D diffuseMap;\nuniform sampler2D detailMap;\n\n@import ecgl.common.layers.header\n\nuniform float emissionIntensity: 1.0;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color);\n#else\n gl_FragColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n gl_FragColor *= sRGBToLinear(v_Color);\n #else\n gl_FragColor *= v_Color;\n #endif\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n gl_FragColor *= albedoTexel;\n\n vec3 N = v_Normal;\n#ifdef DOUBLE_SIDED\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n vec3 diffuseColor = vec3(0.0, 0.0, 0.0);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++)\n {\n diffuseColor += ambientLightColor[i] * ambientFactor * ao;\n }\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n diffuseColor += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao;\n }}\n#endif\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++)\n {\n vec3 lightDirection = -directionalLightDirection[i];\n vec3 lightColor = directionalLightColor[i];\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[i];\n }\n#endif\n\n float ndl = dot(N, normalize(lightDirection)) * shadowContrib;\n\n diffuseColor += lightColor * clamp(ndl, 0.0, 1.0);\n }\n#endif\n\n gl_FragColor.rgb *= diffuseColor;\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end"},function(e,t,r){"use strict";t.a="@export ecgl.realistic.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n@import ecgl.common.attributes\n\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef NORMALMAP_ENABLED\nattribute vec4 tangent : TANGENT;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@import ecgl.common.vertexAnimation.header\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nvoid main()\n{\n\n @import ecgl.common.uv.main\n\n @import ecgl.common.vertexAnimation.main\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz);\n v_WorldPosition = (world * vec4(pos, 1.0)).xyz;\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n#ifdef NORMALMAP_ENABLED\n v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz);\n v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w);\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n\n}\n\n@end\n\n\n\n@export ecgl.realistic.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n#define PI 3.14159265358979\n#define ROUGHNESS_CHANEL 0\n#define METALNESS_CHANEL 1\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform sampler2D diffuseMap;\n\nuniform sampler2D detailMap;\nuniform sampler2D metalnessMap;\nuniform sampler2D roughnessMap;\n\n@import ecgl.common.layers.header\n\nuniform float emissionIntensity: 1.0;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nuniform float metalness : 0.0;\nuniform float roughness : 0.5;\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT\n@import clay.header.ambient_cubemap_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n@import ecgl.common.normalMap.fragmentHeader\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import clay.util.rgbm\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nvec3 F_Schlick(float ndv, vec3 spec) {\n return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0);\n}\n\nfloat D_Phong(float g, float ndh) {\n float a = pow(8192.0, g);\n return (a + 2.0) / 8.0 * pow(ndh, a);\n}\n\nvoid main()\n{\n vec4 albedoColor = color;\n\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n albedoColor *= sRGBToLinear(v_Color);\n #else\n albedoColor *= v_Color;\n #endif\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n albedoColor *= albedoTexel;\n\n float m = metalness;\n\n#ifdef METALNESSMAP_ENABLED\n float m2 = texture2D(metalnessMap, v_DetailTexcoord)[METALNESS_CHANEL];\n m = clamp(m2 + (m - 0.5) * 2.0, 0.0, 1.0);\n#endif\n\n vec3 baseColor = albedoColor.rgb;\n albedoColor.rgb = baseColor * (1.0 - m);\n vec3 specFactor = mix(vec3(0.04), baseColor, m);\n\n float g = 1.0 - roughness;\n\n#ifdef ROUGHNESSMAP_ENABLED\n float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL];\n g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0);\n#endif\n\n vec3 N = v_Normal;\n\n#ifdef DOUBLE_SIDED\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n@import ecgl.common.normalMap.fragmentMain\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n vec3 diffuseTerm = vec3(0.0);\n vec3 specularTerm = vec3(0.0);\n\n float ndv = clamp(dot(N, V), 0.0, 1.0);\n vec3 fresnelTerm = F_Schlick(ndv, specFactor);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_LIGHT_COUNT; _idx_++)\n {{\n diffuseTerm += ambientLightColor[_idx_] * ambientFactor * ao;\n }}\n#endif\n\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n diffuseTerm += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao;\n }}\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++)\n {{\n vec3 L = -directionalLightDirection[_idx_];\n vec3 lc = directionalLightColor[_idx_];\n\n vec3 H = normalize(L + V);\n float ndl = clamp(dot(N, normalize(L)), 0.0, 1.0);\n float ndh = clamp(dot(N, H), 0.0, 1.0);\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[_idx_];\n }\n#endif\n\n vec3 li = lc * ndl * shadowContrib;\n\n diffuseTerm += li;\n specularTerm += li * fresnelTerm * D_Phong(g, ndh);\n }}\n#endif\n\n\n#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT\n vec3 L = reflect(-V, N);\n L = vec3(L.x, L[NORMAL_UP_AXIS], L[NORMAL_FRONT_AXIS]);\n float rough2 = clamp(1.0 - g, 0.0, 1.0);\n float bias2 = rough2 * 5.0;\n vec2 brdfParam2 = texture2D(ambientCubemapLightBRDFLookup[0], vec2(rough2, ndv)).xy;\n vec3 envWeight2 = specFactor * brdfParam2.x + brdfParam2.y;\n vec3 envTexel2;\n for(int _idx_ = 0; _idx_ < AMBIENT_CUBEMAP_LIGHT_COUNT; _idx_++)\n {{\n envTexel2 = RGBMDecode(textureCubeLodEXT(ambientCubemapLightCubemap[_idx_], L, bias2), 51.5);\n specularTerm += ambientCubemapLightColor[_idx_] * envTexel2 * envWeight2 * ao;\n }}\n#endif\n\n gl_FragColor.rgb = albedoColor.rgb * diffuseTerm + specularTerm;\n gl_FragColor.a = albedoColor.a;\n\n#ifdef SRGB_ENCODE\n gl_FragColor = linearTosRGB(gl_FragColor);\n#endif\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end"},function(e,t,r){"use strict";t.a="@export ecgl.hatching.vertex\n\n@import ecgl.realistic.vertex\n\n@end\n\n\n@export ecgl.hatching.fragment\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform vec4 color : [0.0, 0.0, 0.0, 1.0];\nuniform vec4 paperColor : [1.0, 1.0, 1.0, 1.0];\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nuniform sampler2D hatch1;\nuniform sampler2D hatch2;\nuniform sampler2D hatch3;\nuniform sampler2D hatch4;\nuniform sampler2D hatch5;\nuniform sampler2D hatch6;\n\nfloat shade(in float tone) {\n vec4 c = vec4(1. ,1., 1., 1.);\n float step = 1. / 6.;\n vec2 uv = v_DetailTexcoord;\n if (tone <= step / 2.0) {\n c = mix(vec4(0.), texture2D(hatch6, uv), 12. * tone);\n }\n else if (tone <= step) {\n c = mix(texture2D(hatch6, uv), texture2D(hatch5, uv), 6. * tone);\n }\n if(tone > step && tone <= 2. * step){\n c = mix(texture2D(hatch5, uv), texture2D(hatch4, uv) , 6. * (tone - step));\n }\n if(tone > 2. * step && tone <= 3. * step){\n c = mix(texture2D(hatch4, uv), texture2D(hatch3, uv), 6. * (tone - 2. * step));\n }\n if(tone > 3. * step && tone <= 4. * step){\n c = mix(texture2D(hatch3, uv), texture2D(hatch2, uv), 6. * (tone - 3. * step));\n }\n if(tone > 4. * step && tone <= 5. * step){\n c = mix(texture2D(hatch2, uv), texture2D(hatch1, uv), 6. * (tone - 4. * step));\n }\n if(tone > 5. * step){\n c = mix(texture2D(hatch1, uv), vec4(1.), 6. * (tone - 5. * step));\n }\n\n return c.r;\n}\n\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n vec4 inkColor = sRGBToLinear(color);\n#else\n vec4 inkColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n inkColor *= sRGBToLinear(v_Color);\n #else\n inkColor *= v_Color;\n #endif\n#endif\n\n vec3 N = v_Normal;\n#ifdef DOUBLE_SIDED\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float tone = 0.0;\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++)\n {\n tone += dot(ambientLightColor[i], w) * ambientFactor * ao;\n }\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n tone += dot(calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_], w) * ao;\n }}\n#endif\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++)\n {\n vec3 lightDirection = -directionalLightDirection[i];\n float lightTone = dot(directionalLightColor[i], w);\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[i];\n }\n#endif\n\n float ndl = dot(N, normalize(lightDirection)) * shadowContrib;\n\n tone += lightTone * clamp(ndl, 0.0, 1.0);\n }\n#endif\n\n gl_FragColor = mix(inkColor, paperColor, shade(clamp(tone, 0.0, 1.0)));\n }\n@end\n"},function(e,t,r){"use strict";t.a="@export ecgl.sm.depth.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec3 position : POSITION;\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nuniform float percent : 1.0;\n#endif\n\nvarying vec4 v_ViewPosition;\n\nvoid main(){\n\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n#else\n vec3 pos = position;\n#endif\n\n v_ViewPosition = worldViewProjection * vec4(pos, 1.0);\n gl_Position = v_ViewPosition;\n\n}\n@end\n\n\n\n@export ecgl.sm.depth.fragment\n\n@import clay.sm.depth.fragment\n\n@end"},function(e,t,r){"use strict";r(134),r(138),r(139),r(145);var n=r(0),i=r.n(n);i.a.registerAction({type:"grid3DChangeCamera",event:"grid3dcamerachanged",update:"series:updateCamera"},(function(e,t){t.eachComponent({mainType:"grid3D",query:e},(function(t){t.setView(e)}))})),i.a.registerAction({type:"grid3DShowAxisPointer",event:"grid3dshowaxispointer",update:"grid3D:showAxisPointer"},(function(e,t){})),i.a.registerAction({type:"grid3DHideAxisPointer",event:"grid3dhideaxispointer",update:"grid3D:hideAxisPointer"},(function(e,t){}))},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(135),o=i.a.extendComponentModel({type:"cartesian3DAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid3D",index:this.option.gridIndex,id:this.option.gridId})[0]}});function s(e,t){return t.type||(t.data?"category":"value")}i.a.helper.mixinAxisModelCommonMethods(o),Object(a.a)("x",o,s,{name:"X"}),Object(a.a)("y",o,s,{name:"Y"}),Object(a.a)("z",o,s,{name:"Z"})},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(136),o=r(137),s=r.n(o),l=["value","category","time","log"];t.a=function(e,t,r,n){i.a.util.each(l,(function(o){t.extend({type:e+"Axis3D."+o,__ordinalMeta:null,mergeDefaultAndTheme:function(t,n){var a=n.getTheme();i.a.util.merge(t,a.get(o+"Axis3D")),i.a.util.merge(t,this.getDefaultOption()),t.type=r(e,t)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=s.a.createByAxisModel(this))},getCategories:function(){if("category"===this.option.type)return this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:i.a.util.merge(i.a.util.clone(a.a[o+"Axis3D"]),n||{},!0)})})),t.superClass.registerSubTypeDefaulter(e+"Axis3D",i.a.util.curry(r,e))}},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a={show:!0,grid3DIndex:0,inverse:!1,name:"",nameLocation:"middle",nameTextStyle:{fontSize:16},nameGap:20,axisPointer:{},axisLine:{},axisTick:{},axisLabel:{},splitArea:{}},o=i.a.util.merge({boundaryGap:!0,axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"},axisPointer:{label:{show:!1}}},a),s=i.a.util.merge({boundaryGap:[0,0],splitNumber:5,axisPointer:{label:{}}},a),l=i.a.util.defaults({scale:!0,min:"dataMin",max:"dataMax"},s),u=i.a.util.defaults({logBase:10},s);u.scale=!0,t.a={categoryAxis3D:o,valueAxis3D:s,timeAxis3D:l,logAxis3D:u}},function(e,t,r){var n=r(12),i=n.createHashMap,a=n.isObject,o=n.map;function s(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this._map}s.createByAxisModel=function(e){var t=e.option,r=t.data,n=r&&o(r,h);return new s({categories:n,needCollect:!n,deduplication:!1!==t.dedplication})};var l=s.prototype;function u(e){return e._map||(e._map=i(e.categories))}function h(e){return a(e)&&null!=e.value?e.value:e+""}l.getOrdinal=function(e){return u(this).get(e)},l.parseAndCollect=function(e){var t,r=this._needCollect;if("string"!=typeof e&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=u(this);return null==(t=n.get(e))&&(r?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t};var c=s;e.exports=c},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(38),o=r(31),s=r(32),l=i.a.extendComponentModel({type:"grid3D",dependencies:["xAxis3D","yAxis3D","zAxis3D"],defaultOption:{show:!0,zlevel:-10,left:0,top:0,width:"100%",height:"100%",environment:"auto",boxWidth:100,boxHeight:100,boxDepth:100,axisPointer:{show:!0,lineStyle:{color:"rgba(0, 0, 0, 0.8)",width:1},label:{show:!0,formatter:null,margin:8,textStyle:{fontSize:14,color:"#fff",backgroundColor:"rgba(0,0,0,0.5)",padding:3,borderRadius:3}}},axisLine:{show:!0,lineStyle:{color:"#333",width:2,type:"solid"}},axisTick:{show:!0,inside:!1,length:3,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}},light:{main:{alpha:30,beta:40},ambient:{intensity:.4}},viewControl:{alpha:20,beta:40,autoRotate:!1,distance:200,minDistance:40,maxDistance:400}}});i.a.util.merge(l.prototype,a.a),i.a.util.merge(l.prototype,o.a),i.a.util.merge(l.prototype,s.a)},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(2),o=r(39),s=r(22),l=r(3),u=r(73),h=r(34),c=r(140),d=r(142),f=r(58),p=r(40),m=l.a.firstNotNull;a.a.Shader.import(p.a),["x","y","z"].forEach((function(e){i.a.extendComponentView({type:e+"Axis3D"})}));var g={x:0,y:2,z:1};i.a.extendComponentView({type:"grid3D",__ecgl__:!0,init:function(e,t){var r=new a.a.Material({shader:a.a.createShader("ecgl.color"),depthMask:!1,transparent:!0}),n=new a.a.Material({shader:a.a.createShader("ecgl.meshLines3D"),depthMask:!1,transparent:!0});r.define("fragment","DOUBLE_SIDED"),r.define("both","VERTEX_COLOR"),this.groupGL=new a.a.Node,this._control=new o.a({zr:t.getZr()}),this._control.init(),this._faces=[["y","z","x",-1,"left"],["y","z","x",1,"right"],["x","y","z",-1,"bottom"],["x","y","z",1,"top"],["x","z","y",-1,"far"],["x","z","y",1,"near"]].map((function(e){var t=new c.a(e,n,r);return this.groupGL.add(t.rootNode),t}),this),this._axes=["x","y","z"].map((function(e){var t=new d.a(e,n);return this.groupGL.add(t.rootNode),t}),this);var i=t.getDevicePixelRatio();this._axisLabelSurface=new u.a({width:256,height:256,devicePixelRatio:i}),this._axisLabelSurface.onupdate=function(){t.getZr().refresh()},this._axisPointerLineMesh=new a.a.Mesh({geometry:new s.a({useNativeLine:!1}),material:n,castShadow:!1,ignorePicking:!0,renderOrder:3}),this.groupGL.add(this._axisPointerLineMesh),this._axisPointerLabelsSurface=new u.a({width:128,height:128,devicePixelRatio:i}),this._axisPointerLabelsMesh=new f.a({ignorePicking:!0,renderOrder:4,castShadow:!1}),this._axisPointerLabelsMesh.material.set("textureAtlas",this._axisPointerLabelsSurface.getTexture()),this.groupGL.add(this._axisPointerLabelsMesh),this._lightRoot=new a.a.Node,this._sceneHelper=new h.a,this._sceneHelper.initLight(this._lightRoot)},render:function(e,t,r){this._model=e,this._api=r;var n=e.coordinateSystem;n.viewGL.add(this._lightRoot),e.get("show")?n.viewGL.add(this.groupGL):n.viewGL.remove(this.groupGL);var i=this._control;i.setViewGL(n.viewGL);var a=e.getModel("viewControl");i.setFromViewControlModel(a,0),this._axisLabelSurface.clear();var o=["x","y","z"].reduce((function(t,r){var i=n.getAxis(r),a=i.model;return t[r]=m(a.get("axisLabel.interval"),e.get("axisLabel.interval")),"ordinal"===i.scale.type&&(null!=t[r]&&"auto"!=t[r]||(t[r]=Math.floor(i.scale.getTicks().length/8))),t}),{});i.off("update"),e.get("show")&&(this._faces.forEach((function(n){n.update(o,e,t,r)}),this),this._axes.forEach((function(t){t.update(e,o,this._axisLabelSurface,r)}),this)),i.on("update",this._onCameraChange.bind(this,e,r),this),this._sceneHelper.setScene(n.viewGL.scene),this._sceneHelper.updateLight(e),n.viewGL.setPostEffect(e.getModel("postEffect"),r),n.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling")),this._initMouseHandler(e)},afterRender:function(e,t,r,n){var i=n.renderer;this._sceneHelper.updateAmbientCubemap(i,e,r),this._sceneHelper.updateSkybox(i,e,r)},showAxisPointer:function(e,t,r,n){this._doShowAxisPointer(),this._updateAxisPointer(n.value)},hideAxisPointer:function(e,t,r,n){this._doHideAxisPointer()},_initMouseHandler:function(e){var t=e.coordinateSystem.viewGL;e.get("show")&&e.get("axisPointer.show")?t.on("mousemove",this._updateAxisPointerOnMousePosition,this):t.off("mousemove",this._updateAxisPointerOnMousePosition)},_updateAxisPointerOnMousePosition:function(e){if(!e.target){for(var t,r=this._model.coordinateSystem,n=r.viewGL,i=n.castRay(e.offsetX,e.offsetY,new a.a.Ray),o=0;on[1]?0:1,s=this._faces[2*r+o],l=this._faces[2*r+1-o];s.rootNode.invisible=!0,l.rootNode.invisible=!1}},_updateAxisLinePosition:function(){var e=this._model.coordinateSystem,t=e.getAxis("x"),r=e.getAxis("y"),n=e.getAxis("z"),i=n.getExtentMax(),a=n.getExtentMin(),o=t.getExtentMin(),s=t.getExtentMax(),l=r.getExtentMax(),u=r.getExtentMin(),h=this._axes[0].rootNode,c=this._axes[1].rootNode,d=this._axes[2].rootNode,f=this._faces,p=f[4].rootNode.invisible?u:l,m=f[2].rootNode.invisible?i:a,g=f[0].rootNode.invisible?o:s,_=f[2].rootNode.invisible?i:a,v=f[0].rootNode.invisible?s:o,y=f[4].rootNode.invisible?u:l;h.rotation.identity(),c.rotation.identity(),d.rotation.identity(),f[4].rootNode.invisible&&(this._axes[0].flipped=!0,h.rotation.rotateX(Math.PI)),f[0].rootNode.invisible&&(this._axes[1].flipped=!0,c.rotation.rotateZ(Math.PI)),f[4].rootNode.invisible&&(this._axes[2].flipped=!0,d.rotation.rotateY(Math.PI)),h.position.set(0,m,p),c.position.set(g,_,0),d.position.set(v,0,y),h.update(),c.update(),d.update(),this._updateAxisLabelAlign()},_updateAxisLabelAlign:function(){var e=this._control.getCamera(),t=[new a.a.Vector4,new a.a.Vector4],r=new a.a.Vector4;this.groupGL.getWorldPosition(r),r.w=1,r.transformMat4(e.viewMatrix).transformMat4(e.projectionMatrix),r.x/=r.w,r.y/=r.w,this._axes.forEach((function(n){for(var i=n.axisLineCoords,a=(n.labelsMesh.geometry,0);ar.y?"bottom":"top"):(s="middle",o=h>r.x?"left":"right"),n.setSpriteAlign(o,s,this._api)}),this)},_doShowAxisPointer:function(){this._axisPointerLineMesh.invisible&&(this._axisPointerLineMesh.invisible=!1,this._axisPointerLabelsMesh.invisible=!1,this._api.getZr().refresh())},_doHideAxisPointer:function(){this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!0,this._axisPointerLabelsMesh.invisible=!0,this._api.getZr().refresh())},_updateAxisPointer:function(e){var t=this._model.coordinateSystem,r=t.dataToPoint(e),n=this._axisPointerLineMesh.geometry,i=this._model.getModel("axisPointer"),o=this._api.getDevicePixelRatio();function s(e){return l.a.firstNotNull(e.model.get("axisPointer.show"),i.get("show"))}function u(e){var t=e.model.getModel("axisPointer",i).getModel("lineStyle"),r=a.a.parseColor(t.get("color")),n=m(t.get("width"),1),o=m(t.get("opacity"),1);return r[3]*=o,{color:r,lineWidth:n}}n.convertToDynamicArray(!0);for(var h=0;h0&&e.rotation.rotateY(Math.PI),t.normal.z=-n)}(this.rootNode,this.plane,l,this.faceInfo[3])},d.prototype._updateSplitLines=function(e,t,r,n,o){var s=o.getDevicePixelRatio();t.forEach((function(o,l){var c=o.model,d=t[1-l].getExtent();if(!o.scale.isBlank()){var f=c.getModel("splitLine",r.getModel("splitLine"));if(f.get("show")){var p=f.getModel("lineStyle"),m=p.get("color"),g=h(p.get("opacity"),1),_=h(p.get("width"),1),v=f.get("interval");null!=v&&"auto"!==v||(v=n[o.dim]),m=i.a.util.isArray(m)?m:[m];for(var y=o.getTicksCoords(),x=0,T=0;T65535?new Uint32Array(3*n):new Uint16Array(3*n))},getQuadVertexCount:function(){return 4},getQuadTriangleCount:function(){return 2},addQuad:(n=d.create(),i=d.create(),a=d.create(),o=[0,3,1,3,2,1],function(e,t){var r=this.attributes.position,s=this.attributes.normal,l=this.attributes.color;d.sub(n,e[1],e[0]),d.sub(i,e[2],e[1]),d.cross(a,n,i),d.normalize(a,a);for(var u=0;u<4;u++)r.set(this._vertexOffset+u,e[u]),l.set(this._vertexOffset+u,t),s.set(this._vertexOffset+u,a);var h=3*this._faceOffset;for(u=0;u<6;u++)this.indices[h+u]=o[u]+this._vertexOffset;this._vertexOffset+=4,this._faceOffset+=2})});u.a.util.defaults(f.prototype,h.a),t.a=f},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(2),o=r(22),s=r(3),l=r(58),u=r(74),h=s.a.firstNotNull,c={x:0,y:2,z:1};function d(e,t){var r=new a.a.Mesh({geometry:new o.a({useNativeLine:!1}),material:t,castShadow:!1,ignorePicking:!0,renderOrder:2}),n=new l.a;n.material.depthMask=!1;var i=new a.a.Node;i.add(r),i.add(n),this.rootNode=i,this.dim=e,this.linesMesh=r,this.labelsMesh=n,this.axisLineCoords=null,this.labelElements=[]}var f={x:"y",y:"x",z:"y"};d.prototype.update=function(e,t,r,n){var o=e.coordinateSystem.getAxis(this.dim),s=t[this.dim],l=this.linesMesh.geometry,d=this.labelsMesh.geometry;l.convertToDynamicArray(!0),d.convertToDynamicArray(!0);var p=o.model,m=o.getExtent(),g=n.getDevicePixelRatio(),_=p.getModel("axisLine",e.getModel("axisLine")),v=p.getModel("axisTick",e.getModel("axisTick")),y=p.getModel("axisLabel",e.getModel("axisLabel")),x=_.get("lineStyle.color");if(_.get("show")){var T=_.getModel("lineStyle"),b=[0,0,0];(I=[0,0,0])[P=c[o.dim]]=m[0],b[P]=m[1],this.axisLineCoords=[I,b];var w=a.a.parseColor(x),E=h(T.get("width"),1),S=h(T.get("opacity"),1);w[3]*=S,l.addLine(I,b,w,E*g)}if(v.get("show")){var M=v.getModel("lineStyle"),A=a.a.parseColor(h(M.get("color"),x));E=h(M.get("width"),1),A[3]*=h(M.get("opacity"),1);var C=o.getTicksCoords();null!=(B=v.get("interval"))&&"auto"!==B||(B=s);for(var L=v.get("length"),N=0;N65535?new Uint32Array(3*r):new Uint16Array(3*r))},setSpriteAlign:function(e,t,r,n,i){var a,o,s,l;switch(null==r&&(r="left"),null==n&&(n="top"),i=i||0,r){case"left":a=i,s=t[0]+i;break;case"center":case"middle":a=-t[0]/2,s=t[0]/2;break;case"right":a=-t[0]-i,s=-i}switch(n){case"bottom":o=i,l=t[1]+i;break;case"middle":o=-t[1]/2,l=t[1]/2;break;case"top":o=-t[1]-i,l=-i}var u=4*e,h=this.attributes.offset;h.set(u,[a,l]),h.set(u+1,[s,l]),h.set(u+2,[s,o]),h.set(u+3,[a,o])},addSprite:function(e,t,r,n,i,a){var o=this._vertexOffset;this.setSprite(this._vertexOffset/4,e,t,r,n,i,a);for(var l=0;l/g,">").replace(/"/g,""").replace(/'/g,"'")}var l=["a","b","c","d","e","f","g"],u=function(e,t){return"{"+e+(null==t?"":t)+"}"},h=function(e){return e<10?"0"+e:e},c=i.truncateText,d=i.getBoundingRect;t.addCommas=function(e){return isNaN(e)?"-":(e=(e+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")},t.toCamelCase=function(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e},t.normalizeCssArray=o,t.encodeHTML=s,t.formatTpl=function(e,t,r){n.isArray(t)||(t=[t]);var i=t.length;if(!i)return"";for(var a=t[0].$vars||[],o=0;o':'':""},t.formatTime=function(e,t,r){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var n=a.parseDate(t),i=r?"UTC":"",o=n["get"+i+"FullYear"](),s=n["get"+i+"Month"]()+1,l=n["get"+i+"Date"](),u=n["get"+i+"Hours"](),c=n["get"+i+"Minutes"](),d=n["get"+i+"Seconds"]();return e=e.replace("MM",h(s)).replace("M",s).replace("yyyy",o).replace("yy",o%100).replace("dd",h(l)).replace("d",l).replace("hh",h(u)).replace("h",u).replace("mm",h(c)).replace("m",c).replace("ss",h(d)).replace("s",d)},t.capitalFirst=function(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e},t.truncateText=c,t.getTextRect=d},function(e,t,r){var n=r(75),i=r(151),a=r(12),o=a.getContext,s=a.extend,l=a.retrieve2,u=a.retrieve3,h={},c=0,d=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,f="12px sans-serif",p={};function m(e,t){var r=e+":"+(t=t||f);if(h[r])return h[r];for(var n=(e+"").split("\n"),i=0,a=0,o=n.length;a5e3&&(c=0,h={}),c++,h[r]=i,i}function g(e,t,r){return"right"===r?e-=t:"center"===r&&(e-=t/2),e}function _(e,t,r){return"middle"===r?e-=t/2:"bottom"===r&&(e-=t),e}function v(e,t,r,n,i){if(!t)return"";var a=(e+"").split("\n");i=y(t,r,n,i);for(var o=0,s=a.length;o=a;u++)o-=a;var h=m(r);return h>o&&(r="",h=0),o=e-h,n.ellipsis=r,n.ellipsisWidth=h,n.contentWidth=o,n.containerWidth=e,n}function x(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=m(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=0===o?T(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;a=m(e=e.substr(0,s),n)}return""===e&&(e=t.placeholder),e}function T(e,t,r,n){for(var i=0,a=0,o=e.length;al)e="",a=[];else if(null!=u)for(var h=y(u-(r?r[1]+r[3]:0),t,n.ellipsis,{minChar:n.minChar,placeholder:n.placeholder}),c=0,d=a.length;ca&&M(r,e.substring(a,o)),M(r,n[2],n[1]),a=d.lastIndex}ay)return{lines:[],width:0,height:0};B.textWidth=m(B.text,L);var D=A.textWidth,I=null==D||"auto"===D;if("string"==typeof D&&"%"===D.charAt(D.length-1))B.percentWidth=D,f.push(B),D=0;else{if(I){D=B.textWidth;var P=A.textBackgroundColor,O=P&&P.image;O&&(O=i.findExistImage(O),i.isImageReady(O)&&(D=Math.max(D,O.width*N/O.height)))}var R=C?C[1]+C[3]:0;D+=R;var F=null!=_?_-E:null;null!=F&&F4){console.warn("Support at most 4 cascade");continue}_.shadowCascade>1&&(o=_.shadowCascade),this.renderDirectionalLightShadow(e,t,r,_,this._opaqueCasters,p,h,u)}else _ instanceof c.a?this.renderSpotLightShadow(e,t,_,this._opaqueCasters,l,s):_ instanceof f.a&&this.renderPointLightShadow(e,t,_,this._opaqueCasters,m);this._shadowMapNumber[_.type]++}for(var v in this._shadowMapNumber){var y=this._shadowMapNumber[v],x=v+"_SHADOWMAP_COUNT";for(g=0;g0?T.define("fragment",x,y):T.isDefined("fragment",x)&&T.undefine("fragment",x))}for(g=0;g0){var w=u.map(A);if(b.directionalLightShadowMaps={value:u,type:"tv"},b.directionalLightMatrices={value:h,type:"m4v"},b.directionalLightShadowMapSizes={value:w,type:"1fv"},o){var E=p.slice(),S=p.slice();E.pop(),S.shift(),E.reverse(),S.reverse(),h.reverse(),b.shadowCascadeClipsNear={value:E,type:"1fv"},b.shadowCascadeClipsFar={value:S,type:"1fv"}}}if(s.length>0){var M=s.map(A);(b=t.shadowUniforms).spotLightShadowMaps={value:s,type:"tv"},b.spotLightMatrices={value:l,type:"m4v"},b.spotLightShadowMapSizes={value:M,type:"1fv"}}m.length>0&&(b.pointLightShadowMaps={value:m,type:"tv"})}function A(e){return e.height}},renderDirectionalLightShadow:(C=new s.a,L=new l.a,N=new o.a,D=new l.a,I=new l.a,P=new l.a,O=new l.a,function(e,t,r,n,i,a,o,s){var h=this._getDepthMaterial(n),c={getMaterial:function(e){return e.shadowDepthMaterial||h},sortCompare:u.a.opaqueSortCompare};if(!t.viewBoundingBoxLastFrame.isFinite()){var d=t.getBoundingBox();t.viewBoundingBoxLastFrame.copy(d).applyTransform(r.viewMatrix)}var f=Math.min(-t.viewBoundingBoxLastFrame.min.z,r.far),p=Math.max(-t.viewBoundingBoxLastFrame.max.z,r.near),m=this._getDirectionalLightCamera(n,t,r),g=P.array;O.copy(m.projectionMatrix),M.invert(I.array,m.worldTransform.array),M.multiply(I.array,I.array,r.worldTransform.array),M.multiply(g,O.array,I.array);for(var _=[],v=r instanceof y.a,x=(r.near+r.far)/(r.near-r.far),T=2*r.near*r.far/(r.near-r.far),b=0;b<=n.shadowCascade;b++){var w=p*Math.pow(f/p,b/n.shadowCascade),E=p+(f-p)*b/n.shadowCascade,S=w*n.cascadeSplitLogFactor+E*(1-n.cascadeSplitLogFactor);_.push(S),a.push(-(-S*x+T)/-S)}var A=this._getTexture(n,n.shadowCascade);s.push(A);var F=e.viewport,B=e.gl;for(this._frameBuffer.attach(A),this._frameBuffer.bind(e),B.clear(B.COLOR_BUFFER_BIT|B.DEPTH_BUFFER_BIT),b=0;b=0||(this.nodes.push(e),this._dirty=!0)},removeNode:function(e){"string"==typeof e&&(e=this.getNodeByName(e));var t=this.nodes.indexOf(e);t>=0&&(this.nodes.splice(t,1),this._dirty=!0)},getNodeByName:function(e){for(var t=0;t=r.COLOR_ATTACHMENT0&&c<=r.COLOR_ATTACHMENT0+8&&h.push(c);u.drawBuffersEXT(h)}e.saveClear(),e.clearBit=i.a.DEPTH_BUFFER_BIT|i.a.COLOR_BUFFER_BIT,t=e.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ),e.restoreClear(),n.unbind(e)}else t=e.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ);this.trigger("afterrender",t),this._rendering=!1,this._rendered=!0}});t.a=o},function(e,t,r){"use strict";var n=r(42).a.extend((function(){return{texture:null,outputs:{color:{}}}}),(function(){}),{getOutput:function(e,t){return this.texture},beforeFrame:function(){},afterFrame:function(){}});t.a=n},function(e,t,r){"use strict";var n=r(14),i=r(42),a=i.a.extend((function(){return{name:"",inputs:{},outputs:null,shader:"",inputLinks:{},outputLinks:{},pass:null,_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}}),(function(){var e=new n.a({fragment:this.shader});this.pass=e}),{render:function(e,t){this.trigger("beforerender",e),this._rendering=!0;var r=e.gl;for(var n in this.inputLinks){var i=(c=this.inputLinks[n]).node.getOutput(e,c.pin);this.pass.setUniform(n,i)}if(this.outputs){this.pass.outputs={};var a={};for(var o in this.outputs){var s=this.updateParameter(o,e);isNaN(s.width)&&this.updateParameter(o,e);var l=this.outputs[o],u=this._compositor.allocateTexture(s);this._outputTextures[o]=u,"string"==typeof(h=l.attachment||r.COLOR_ATTACHMENT0)&&(h=r[h]),a[h]=u}for(var h in this._compositor.getFrameBuffer().bind(e),a)this._compositor.getFrameBuffer().attach(a[h],h);this.pass.render(e),this._compositor.getFrameBuffer().updateMipmap(e.gl)}else this.pass.outputs=null,this._compositor.getFrameBuffer().unbind(e),this.pass.render(e,t);for(var n in this.inputLinks){var c;(c=this.inputLinks[n]).node.removeReference(c.pin)}this._rendering=!1,this._rendered=!0,this.trigger("afterrender",e)},updateParameter:function(e,t){var r,n,i=this.outputs[e],a=i.parameters,o=i._parametersCopy;if(o||(o=i._parametersCopy={}),a)for(var s in a)"width"!==s&&"height"!==s&&(o[s]=a[s]);return r=a.width instanceof Function?a.width.call(this,t):a.width,n=a.height instanceof Function?a.height.call(this,t):a.height,o.width===r&&o.height===n||this._outputTextures[e]&&this._outputTextures[e].dispose(t),o.width=r,o.height=n,o},setParameter:function(e,t){this.pass.setUniform(e,t)},getParameter:function(e){return this.pass.getUniform(e)},setParameters:function(e){for(var t in e)this.setParameter(t,e[t])},define:function(e,t){this.pass.material.define("fragment",e,t)},undefine:function(e){this.pass.material.undefine("fragment",e)},removeReference:function(e){this._outputReferences[e]--,0===this._outputReferences[e]&&(this.outputs[e].keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e]))},clear:function(){i.a.prototype.clear.call(this),this.pass.material.disableTexturesAll()}});t.a=a},function(e,t,r){"use strict";var n=r(9),i=r(4),a=r(5),o=r(6),s=r(14),l=r(7),u=r(10),h=r(43),c=r(163);function d(e){for(var t=new Uint8Array(e*e*4),r=0,n=new i.a,a=0;a=this._haltonSequence.length},render:function(e,t,r){var n=this._blendPass;0===this._frame?(n.setUniform("weight1",0),n.setUniform("weight2",1)):(n.setUniform("weight1",.9),n.setUniform("weight2",.1)),n.setUniform("texture1",this._prevFrameTex),n.setUniform("texture2",t||this._sourceTex),this._blendFb.attach(this._outputTex),this._blendFb.bind(e),n.render(e),this._blendFb.unbind(e),r||(this._outputPass.setUniform("texture",this._outputTex),this._outputPass.render(e));var i=this._prevFrameTex;this._prevFrameTex=this._outputTex,this._outputTex=i,this._frame++},dispose:function(e){this._sourceFb.dispose(e),this._blendFb.dispose(e),this._prevFrameTex.dispose(e),this._outputTex.dispose(e),this._sourceTex.dispose(e),this._outputPass.dispose(e),this._blendPass.dispose(e)}},t.a=u},function(e,t,r){"use strict";var n=r(0),i=r.n(n);r(184),r(185),r(82),i.a.registerAction({type:"geo3DChangeCamera",event:"geo3dcamerachanged",update:"series:updateCamera"},(function(e,t){t.eachComponent({mainType:"geo3D",query:e},(function(t){t.setView(e)}))}))},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(38),o=r(31),s=r(32),l=r(26),u=r(80),h=i.a.extendComponentModel({type:"geo3D",layoutMode:"box",coordinateSystem:null,optionUpdated:function(){var e=this.option;e.regions=this.getFilledRegions(e.regions,e.map);var t=i.a.helper.completeDimensions(["value"],e.data,{encodeDef:this.get("encode"),dimsDef:this.get("dimensions")}),r=new i.a.List(t,this);r.initData(e.regions);var n={};r.each((function(e){var t=r.getName(e),i=r.getItemModel(e);n[t]=i})),this._regionModelMap=n,this._data=r},getData:function(){return this._data},getRegionModel:function(e){var t=this.getData().getName(e);return this._regionModelMap[t]||new i.a.Model(null,this)},getRegionPolygonCoords:function(e){var t=this.getData().getName(e),r=this.coordinateSystem.getRegion(t);return r?r.geometries:[]},getFormattedLabel:function(e,t){var r=this._data.getName(e),n=this.getRegionModel(r),i=n.get("normal"===t?["label","formatter"]:["emphasis","label","formatter"]);null==i&&(i=n.get(["label","formatter"]));var a={name:r};if("function"==typeof i)return a.status=t,i(a);if("string"==typeof i){var o=a.seriesName;return i.replace("{a}",null!=o?o:"")}return r},defaultOption:{regions:[]}});i.a.util.merge(h.prototype,u.a),i.a.util.merge(h.prototype,a.a),i.a.util.merge(h.prototype,o.a),i.a.util.merge(h.prototype,s.a),i.a.util.merge(h.prototype,l.a)},function(e,t,r){"use strict";var n=r(59),i=r(0),a=r.n(i),o=r(2),s=r(39),l=r(34);a.a.extendComponentView({type:"geo3D",__ecgl__:!0,init:function(e,t){this._geo3DBuilder=new n.a(t),this.groupGL=new o.a.Node,this._lightRoot=new o.a.Node,this._sceneHelper=new l.a(this._lightRoot),this._sceneHelper.initLight(this._lightRoot),this._control=new s.a({zr:t.getZr()}),this._control.init()},render:function(e,t,r){this.groupGL.add(this._geo3DBuilder.rootNode);var n=e.coordinateSystem;if(n&&n.viewGL){n.viewGL.add(this._lightRoot),e.get("show")?n.viewGL.add(this.groupGL):n.viewGL.remove(this.groupGL);var i=this._control;i.setViewGL(n.viewGL);var a=e.getModel("viewControl");i.setFromViewControlModel(a,0),this._sceneHelper.setScene(n.viewGL.scene),this._sceneHelper.updateLight(e),n.viewGL.setPostEffect(e.getModel("postEffect"),r),n.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling")),this._geo3DBuilder.update(e,t,r,0,e.getData().count());var o=n.viewGL.isLinearSpace()?"define":"undefine";this._geo3DBuilder.rootNode.traverse((function(e){e.material&&e.material[o]("fragment","SRGB_DECODE")})),i.off("update"),i.on("update",(function(){r.dispatchAction({type:"geo3DChangeCamera",alpha:i.getAlpha(),beta:i.getBeta(),distance:i.getDistance(),center:i.getCenter(),from:this.uid,geo3DId:e.id})}))}},afterRender:function(e,t,r,n){var i=n.renderer;this._sceneHelper.updateAmbientCubemap(i,e,r),this._sceneHelper.updateSkybox(i,e,r)},dispose:function(){this._control.dispose()}})},function(e,t,r){"use strict";function n(e,t,r){r=r||2;var n,s,l,u,h,f,m,g=t&&t.length,_=g?t[0]*r:e.length,v=i(e,0,_,r,!0),y=[];if(!v)return y;if(g&&(v=function(e,t,r,n){var o,s,l,u=[];for(o=0,s=t.length;o80*r){n=l=e[0],s=u=e[1];for(var x=r;x<_;x+=r)(h=e[x])l&&(l=h),f>u&&(u=f);m=Math.max(l-n,u-s)}return o(v,y,r,n,s,m),y}function i(e,t,r,n,i){var a,o;if(i===S(e,t,r,n)>0)for(a=t;a=t;a-=n)o=b(a,e[a],e[a+1],o);return o&&v(o,o.next)&&(w(o),o=o.next),o}function a(e,t){if(!e)return e;t||(t=e);var r,n=e;do{if(r=!1,n.steiner||!v(n,n.next)&&0!==_(n.prev,n,n.next))n=n.next;else{if(w(n),(n=t=n.prev)===n.next)return null;r=!0}}while(r||n!==t);return t}function o(e,t,r,n,i,c,d){if(e){!d&&c&&function(e,t,r,n){var i=e;do{null===i.z&&(i.z=f(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,r,n,i,a,o,s,l,u=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||l>0&&n;)0!==s&&(0===l||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,u*=2}while(o>1)}(i)}(e,n,i,c);for(var p,m,g=e;e.prev!==e.next;)if(p=e.prev,m=e.next,c?l(e,n,i,c):s(e))t.push(p.i/r),t.push(e.i/r),t.push(m.i/r),w(e),e=m.next,g=m.next;else if((e=m)===g){d?1===d?o(e=u(e,t,r),t,r,n,i,c,2):2===d&&h(e,t,r,n,i,c):o(a(e),t,r,n,i,c,1);break}}}function s(e){var t=e.prev,r=e,n=e.next;if(_(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(m(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&_(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function l(e,t,r,n){var i=e.prev,a=e,o=e.next;if(_(i,a,o)>=0)return!1;for(var s=i.xa.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,h=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,c=f(s,l,t,r,n),d=f(u,h,t,r,n),p=e.nextZ;p&&p.z<=d;){if(p!==e.prev&&p!==e.next&&m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&_(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(p=e.prevZ;p&&p.z>=c;){if(p!==e.prev&&p!==e.next&&m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&_(p.prev,p,p.next)>=0)return!1;p=p.prevZ}return!0}function u(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!v(i,a)&&y(i,n,n.next,a)&&x(i,a)&&x(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),w(n),w(n.next),n=e=a),n=n.next}while(n!==e);return n}function h(e,t,r,n,i,s){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&g(l,u)){var h=T(l,u);return l=a(l,l.next),h=a(h,h.next),o(l,t,r,n,i,s),void o(h,t,r,n,i,s)}u=u.next}l=l.next}while(l!==e)}function c(e,t){return e.x-t.x}function d(e,t){if(t=function(e,t){var r,n=t,i=e.x,a=e.y,o=-1/0;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x=n.x&&n.x>=h&&i!==n.x&&m(ar.x)&&x(n,e)&&(r=n,d=l),n=n.next;return r}(e,t),t){var r=T(t,e);a(r,r.next)}}function f(e,t,r,n,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)/i)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)/i)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function p(e){var t=e,r=e;do{t.x=0&&(e-o)*(n-s)-(r-o)*(t-s)>=0&&(r-o)*(a-s)-(i-o)*(n-s)>=0}function g(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&y(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}(e,t)&&x(e,t)&&x(t,e)&&function(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do{r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==e);return n}(e,t)}function _(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function v(e,t){return e.x===t.x&&e.y===t.y}function y(e,t,r,n){return!!(v(e,t)&&v(r,n)||v(e,n)&&v(r,t))||_(e,t,r)>0!=_(e,t,n)>0&&_(r,n,e)>0!=_(r,n,t)>0}function x(e,t){return _(e.prev,e,e.next)<0?_(e,t,e.next)>=0&&_(e,e.prev,t)>=0:_(e,t,e.prev)<0||_(e,e.next,t)<0}function T(e,t){var r=new E(e.i,e.x,e.y),n=new E(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function b(e,t,r,n){var i=new E(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function w(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function E(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function S(e,t,r,n){for(var i=0,a=t,o=r-n;a0},_displacementChanged:!0,_displacementScale:0,updateDisplacementHash:function(){var e=this.getDisplacementTexture(),t=this.getDisplacemenScale();this._displacementChanged=this._displacementTexture!==e||this._displacementScale!==t,this._displacementTexture=e,this._displacementScale=t},isDisplacementChanged:function(){return this._displacementChanged}});i.a.util.merge(h.prototype,a.a),i.a.util.merge(h.prototype,o.a),i.a.util.merge(h.prototype,s.a),i.a.util.merge(h.prototype,l.a)},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(2),o=r(39),s=r(34),l=r(192),u=r(3);i.a.extendComponentView({type:"globe",__ecgl__:!0,_displacementScale:0,init:function(e,t){this.groupGL=new a.a.Node,this._sphereGeometry=new a.a.SphereGeometry({widthSegments:200,heightSegments:100,dynamic:!0}),this._overlayGeometry=new a.a.SphereGeometry({widthSegments:80,heightSegments:40}),this._planeGeometry=new a.a.PlaneGeometry,this._earthMesh=new a.a.Mesh({renderNormal:!0}),this._lightRoot=new a.a.Node,this._sceneHelper=new s.a,this._sceneHelper.initLight(this._lightRoot),this.groupGL.add(this._earthMesh),this._control=new o.a({zr:t.getZr()}),this._control.init(),this._layerMeshes={}},render:function(e,t,r){var n=e.coordinateSystem,i=e.get("shading");n.viewGL.add(this._lightRoot),e.get("show")?n.viewGL.add(this.groupGL):n.viewGL.remove(this.groupGL),this._sceneHelper.setScene(n.viewGL.scene),n.viewGL.setPostEffect(e.getModel("postEffect"),r),n.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling"));var o=this._earthMesh;o.geometry=this._sphereGeometry;var s="ecgl."+i;o.material&&o.material.shader.name===s||(o.material=a.a.createMaterial(s)),a.a.setMaterialFromModel(i,o.material,e,r),["roughnessMap","metalnessMap","detailMap","normalMap"].forEach((function(e){var t=o.material.get(e);t&&(t.flipY=!1)})),o.material.set("color",a.a.parseColor(e.get("baseColor")));var l=.99*n.radius;o.scale.set(l,l,l);var u=o.material.setTextureImage("diffuseMap",e.get("baseTexture"),r,{flipY:!1,anisotropic:8});u&&u.surface&&u.surface.attachToMesh(o);var h=o.material.setTextureImage("bumpMap",e.get("heightTexture"),r,{flipY:!1,anisotropic:8});h&&h.surface&&h.surface.attachToMesh(o),o.material[e.get("postEffect.enable")?"define":"undefine"]("fragment","SRGB_DECODE"),this._updateLight(e,r),this._displaceVertices(e,r),this._updateViewControl(e,r),this._updateLayers(e,r)},afterRender:function(e,t,r,n){var i=n.renderer;this._sceneHelper.updateAmbientCubemap(i,e,r),this._sceneHelper.updateSkybox(i,e,r)},_updateLayers:function(e,t){var r=e.coordinateSystem,n=e.get("layers"),o=r.radius,s=[],l=[],h=[],c=[];i.a.util.each(n,(function(e){var n=new i.a.Model(e),d=n.get("type"),f=a.a.loadTexture(n.get("texture"),t,{flipY:!1,anisotropic:8});if(f.surface&&f.surface.attachToMesh(this._earthMesh),"blend"===d){var p=n.get("blendTo"),m=u.a.firstNotNull(n.get("intensity"),1);"emission"===p?(h.push(f),c.push(m)):(s.push(f),l.push(m))}else{var g=n.get("id"),_=this._layerMeshes[g];_||(_=this._layerMeshes[g]=new a.a.Mesh({geometry:this._overlayGeometry,castShadow:!1,ignorePicking:!0})),"lambert"===n.get("shading")?(_.material=_.__lambertMaterial||new a.a.Material({autoUpdateTextureStatus:!1,shader:a.a.createShader("ecgl.lambert"),transparent:!0,depthMask:!1}),_.__lambertMaterial=_.material):(_.material=_.__colorMaterial||new a.a.Material({autoUpdateTextureStatus:!1,shader:a.a.createShader("ecgl.color"),transparent:!0,depthMask:!1}),_.__colorMaterial=_.material),_.material.enableTexture("diffuseMap");var v=n.get("distance"),y=o+(null==v?r.radius/100:v);_.scale.set(y,y,y),o=y;var x=this._blankTexture||(this._blankTexture=a.a.createBlankTexture("rgba(255, 255, 255, 0)"));_.material.set("diffuseMap",x),a.a.loadTexture(n.get("texture"),t,{flipY:!1,anisotropic:8},(function(e){e.surface&&e.surface.attachToMesh(_),_.material.set("diffuseMap",e),t.getZr().refresh()})),n.get("show")?this.groupGL.add(_):this.groupGL.remove(_)}}),this);var d=this._earthMesh.material;d.define("fragment","LAYER_DIFFUSEMAP_COUNT",s.length),d.define("fragment","LAYER_EMISSIVEMAP_COUNT",h.length),d.set("layerDiffuseMap",s),d.set("layerDiffuseIntensity",l),d.set("layerEmissiveMap",h),d.set("layerEmissionIntensity",c);var f=e.getModel("debug.wireframe");if(f.get("show")){d.define("both","WIREFRAME_TRIANGLE");var p=a.a.parseColor(f.get("lineStyle.color")||"rgba(0,0,0,0.5)"),m=u.a.firstNotNull(f.get("lineStyle.width"),1);d.set("wireframeLineWidth",m),d.set("wireframeLineColor",p)}else d.undefine("both","WIREFRAME_TRIANGLE")},_updateViewControl:function(e,t){var r=e.coordinateSystem,n=e.getModel("viewControl"),i=(r.viewGL.camera,this),a=this._control;a.setViewGL(r.viewGL);var o,s,l=n.get("targetCoord");null!=l&&(s=l[0]+90,o=l[1]),a.setFromViewControlModel(n,{baseDistance:r.radius,alpha:o,beta:s}),a.off("update"),a.on("update",(function(){t.dispatchAction({type:"globeChangeCamera",alpha:a.getAlpha(),beta:a.getBeta(),distance:a.getDistance()-r.radius,center:a.getCenter(),from:i.uid,globeId:e.id})}))},_displaceVertices:function(e,t){var r=e.get("displacementQuality"),n=e.get("debug.wireframe.show"),i=e.coordinateSystem;if(e.isDisplacementChanged()||r!==this._displacementQuality||n!==this._showDebugWireframe){this._displacementQuality=r,this._showDebugWireframe=n;var a=this._sphereGeometry,o={low:100,medium:200,high:400,ultra:800}[r]||200,s=o/2;(a.widthSegments!==o||n)&&(a.widthSegments=o,a.heightSegments=s,a.build()),this._doDisplaceVertices(a,i),n&&a.generateBarycentric()}},_doDisplaceVertices:function(e,t){var r=e.attributes.position.value,n=e.attributes.texcoord0.value,i=e.__originalPosition;i&&i.length===r.length||((i=new Float32Array(r.length)).set(r),e.__originalPosition=i);for(var a=t.displacementWidth,o=t.displacementHeight,s=t.displacementData,l=0;l0&&f>0||d<0&&f<0)),g=["x","y","z"].map((function(t){return e.coordDimToDataDim(t)[0]}));r.each(g,(function(e,i,a,s){var l=r.get(g[2],s,!0),u=r.stackedOn?l-a:m?0:p[0],h=t.dataToPoint([e,i,u]),c=t.dataToPoint([e,i,l]),d=o.dist(h,c),f=[0,c[1]0&&(p++,c[3]<.99&&(m=!0))}})),s.geometry.setBarCount(p);var g=r.getLayout("orient"),_=this._barIndexOfData=new Int32Array(r.count());p=0,r.each((function(e){if(r.hasValue(e)){var t=r.getItemLayout(e),n=t[0],i=t[1],a=t[2],s=4*e;c[0]=d[s++],c[1]=d[s++],c[2]=d[s++],c[3]=d[s++],c[3]>0&&(o._barMesh.geometry.addBar(n,i,g,a,c,e),_[e]=p++)}else _[e]=-1})),s.geometry.dirty(),s.geometry.updateBoundingBox();var v=s.material;v.transparent=m,v.depthMask=!m,s.geometry.sortTriangles=m,this._initHandler(e,t)},_initHandler:function(e,t){var r=e.getData(),n=this._barMesh,i="cartesian3D"===e.coordinateSystem.type;n.seriesIndex=e.seriesIndex;var a=-1;n.off("mousemove"),n.off("mouseout"),n.on("mousemove",(function(e){var o=n.geometry.getDataIndexOfVertex(e.triangle[0]);o!==a&&(this._downplay(a),this._highlight(o),this._labelsBuilder.updateLabels([o]),i&&t.dispatchAction({type:"grid3DShowAxisPointer",value:[r.get("x",o),r.get("y",o),r.get("z",o,!0)]})),a=o,n.dataIndex=o}),this),n.on("mouseout",(function(e){this._downplay(a),this._labelsBuilder.updateLabels(),a=-1,n.dataIndex=-1,i&&t.dispatchAction({type:"grid3DHideAxisPointer"})}),this)},_highlight:function(e){var t=this._data;if(t){var r=this._barIndexOfData[e];if(!(r<0)){var n=t.getItemModel(e).getModel("emphasis.itemStyle"),o=n.get("color"),s=n.get("opacity");if(null==o){var l=t.getItemVisual(e,"color");o=i.a.color.lift(l,-.4)}null==s&&(s=t.getItemVisual(e,"opacity"));var u=a.a.parseColor(o);u[3]*=s,this._barMesh.geometry.setColor(r,u),this._api.getZr().refresh()}}},_downplay:function(e){var t=this._data;if(t){var r=this._barIndexOfData[e];if(!(r<0)){var n=t.getItemVisual(e,"color"),i=t.getItemVisual(e,"opacity"),o=a.a.parseColor(n);o[3]*=i,this._barMesh.geometry.setColor(r,o),this._api.getZr().refresh()}}},highlight:function(e,t,r,n){this._toggleStatus("highlight",e,t,r,n)},downplay:function(e,t,r,n){this._toggleStatus("downplay",e,t,r,n)},_toggleStatus:function(e,t,r,n,a){var l=t.getData(),u=o.a.queryDataIndex(l,a),h=this;null!=u?i.a.util.each(s.a.normalizeToArray(u),(function(t){"highlight"===e?this._highlight(t):this._downplay(t)}),this):l.each((function(t){"highlight"===e?h._highlight(t):h._downplay(t)}))},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}})},function(e,t,r){"use strict";var n,i,a,o,s,l,u,h,c=r(0),d=r.n(c),f=r(33),p=r(60),m=r(13),g=r(1),_=r.n(g),v=_.a.vec3,y=_.a.mat3,x=m.a.extend((function(){return{attributes:{position:new m.a.Attribute("position","float",3,"POSITION"),normal:new m.a.Attribute("normal","float",3,"NORMAL"),color:new m.a.Attribute("color","float",4,"COLOR"),prevPosition:new m.a.Attribute("prevPosition","float",3),prevNormal:new m.a.Attribute("prevNormal","float",3)},dynamic:!0,enableNormal:!1,bevelSize:1,bevelSegments:0,_dataIndices:null,_vertexOffset:0,_triangleOffset:0}}),{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0},setBarCount:function(e){var t=this.enableNormal,r=this.getBarVertexCount()*e,n=this.getBarTriangleCount()*e;this.vertexCount!==r&&(this.attributes.position.init(r),t?this.attributes.normal.init(r):this.attributes.normal.value=null,this.attributes.color.init(r)),this.triangleCount!==n&&(this.indices=r>65535?new Uint32Array(3*n):new Uint16Array(3*n),this._dataIndices=new Uint32Array(r))},getBarVertexCount:function(){var e=this.bevelSize>0?this.bevelSegments:0;return e>0?this._getBevelBarVertexCount(e):this.enableNormal?24:8},getBarTriangleCount:function(){var e=this.bevelSize>0?this.bevelSegments:0;return e>0?this._getBevelBarTriangleCount(e):12},_getBevelBarVertexCount:function(e){return 4*(e+1)*(e+1)*2},_getBevelBarTriangleCount:function(e){return(4*e+3+1)*(2*e+1)*2+4},setColor:function(e,t){for(var r=this.getBarVertexCount(),n=r*(e+1),i=r*e;i0&&this.bevelSegments>0)this._addBevelBar(e,c,m,g,this.bevelSize,this.bevelSegments,_);else{v.copy(i,c),v.normalize(i,i),v.cross(a,m,i),v.normalize(a,a),v.cross(n,i,a),v.normalize(a,a),v.negate(o,n),v.negate(s,i),v.negate(l,a),t(u[0],e,n,g[0]/2),t(u[0],u[0],a,g[2]/2),t(u[1],e,n,g[0]/2),t(u[1],u[1],l,g[2]/2),t(u[2],e,o,g[0]/2),t(u[2],u[2],l,g[2]/2),t(u[3],e,o,g[0]/2),t(u[3],u[3],a,g[2]/2),t(r,e,i,g[1]),t(u[4],r,n,g[0]/2),t(u[4],u[4],a,g[2]/2),t(u[5],r,n,g[0]/2),t(u[5],u[5],l,g[2]/2),t(u[6],r,o,g[0]/2),t(u[6],u[6],l,g[2]/2),t(u[7],r,o,g[0]/2),t(u[7],u[7],a,g[2]/2);var T=this.attributes;if(this.enableNormal){h[0]=n,h[1]=o,h[2]=i,h[3]=s,h[4]=a,h[5]=l;for(var b=this._vertexOffset,w=0;w=0){var v=3*l,y=new u.a(this._points[v],this._points[v+1],this._points[v+2]);a.push({dataIndex:l,point:y,pointWorld:y.clone(),target:this._line3DMesh,distance:this._camera.getWorldPosition().dist(y)})}},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}})},function(e,t){t.containStroke=function(e,t,r,n,i,a,o){if(0===i)return!1;var s=i,l=0;if(o>t+s&&o>n+s||oe+s&&a>r+s||al?u.position[1]+=(h-l)/2:u.position[0]+=(h-s)/2;var c=u.getBoundingRect();return u.position[0]-=c.x,u.position[1]-=c.y,u.setStyle(r),u.update(),u.__size=h,u}(e,t,r),l=o.getMarginByStyle(r);return{image:a(s.__size,n,(function(e){s.brush(e)})),margin:l}},createSDFFromCanvas:function(e,t,r,n){return a(t,n,(function(t){var n=e.getContext("2d").getImageData(0,0,e.width,e.height);t.putImageData(function(e,t,r){var n=t.width,i=t.height,a=e.canvas.width,o=e.canvas.height,s=n/a,l=i/o;function u(e){return e<128?1:-1}function h(e,a){var o=1/0;e=Math.floor(e*s);for(var h=(a=Math.floor(a*l))*n+e,c=u(t.data[4*h]),d=Math.max(a-r,0);d=0;c--){var d,f=s[2*(d=this.geometry.indices?this.geometry.indices[c]:c)],p=s[2*d+1],m=this.geometry.attributes.size.get(d)/this.sizeScale/2;if(e>f-m*u&&ep-m*h&&t=2e4},doSortVertices:function(e,t){var r=this.indices,n=a.create();if(!r){r=this.indices=this.vertexCount>65535?new Uint32Array(this.vertexCount):new Uint16Array(this.vertexCount);for(var i=0;i.05);else for(i=0;i<3;i++)this._progressiveQuickSort(3*t+i);this.dirtyIndices()},_simpleSort:function(e){var t=this._zList,r=this.indices;function i(e,r){return t[r]-t[e]}e?Array.prototype.sort.call(r,i):n.a.sort(r,i,0,r.length-1)},_progressiveQuickSort:function(e){var t=this._zList,r=this.indices;this._quickSort=this._quickSort||new n.a,this._quickSort.step(r,(function(e,r){return t[r]-t[e]}),e)}}},function(e,t,r){"use strict";t.a="@export ecgl.sdfSprite.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform float elapsedTime : 0;\n\nattribute vec3 position : POSITION;\n\n#ifdef VERTEX_SIZE\nattribute float size;\n#else\nuniform float u_Size;\n#endif\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_FillColor: COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute float prevSize;\nuniform float percent : 1.0;\n#endif\n\n\n#ifdef POSITIONTEXTURE_ENABLED\nuniform sampler2D positionTexture;\n#endif\n\nvarying float v_Size;\n\nvoid main()\n{\n\n#ifdef POSITIONTEXTURE_ENABLED\n gl_Position = worldViewProjection * vec4(texture2D(positionTexture, position.xy).xy, -10.0, 1.0);\n#else\n\n #ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n #else\n vec3 pos = position;\n #endif\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n#endif\n\n#ifdef VERTEX_SIZE\n#ifdef VERTEX_ANIMATION\n v_Size = mix(prevSize, size, percent);\n#else\n v_Size = size;\n#endif\n#else\n v_Size = u_Size;\n#endif\n\n#ifdef VERTEX_COLOR\n v_Color = a_FillColor;\n #endif\n\n gl_PointSize = v_Size;\n}\n\n@end\n\n@export ecgl.sdfSprite.fragment\n\nuniform vec4 color: [1, 1, 1, 1];\nuniform vec4 strokeColor: [1, 1, 1, 1];\nuniform float smoothing: 0.07;\n\nuniform float lineWidth: 0.0;\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\nvarying float v_Size;\n\nuniform sampler2D sprite;\n\n@import clay.util.srgb\n\nvoid main()\n{\n gl_FragColor = color;\n\n vec4 _strokeColor = strokeColor;\n\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n #endif\n\n#ifdef SPRITE_ENABLED\n float d = texture2D(sprite, gl_PointCoord).r;\n gl_FragColor.a *= smoothstep(0.5 - smoothing, 0.5 + smoothing, d);\n\n if (lineWidth > 0.0) {\n float sLineWidth = lineWidth / 2.0;\n\n float outlineMaxValue0 = 0.5 + sLineWidth;\n float outlineMaxValue1 = 0.5 + sLineWidth + smoothing;\n float outlineMinValue0 = 0.5 - sLineWidth - smoothing;\n float outlineMinValue1 = 0.5 - sLineWidth;\n\n if (d <= outlineMaxValue1 && d >= outlineMinValue0) {\n float a = _strokeColor.a;\n if (d <= outlineMinValue1) {\n a = a * smoothstep(outlineMinValue0, outlineMinValue1, d);\n }\n else {\n a = a * smoothstep(outlineMaxValue1, outlineMaxValue0, d);\n }\n gl_FragColor.rgb = mix(gl_FragColor.rgb * gl_FragColor.a, _strokeColor.rgb, a);\n gl_FragColor.a = gl_FragColor.a * (1.0 - a) + a;\n }\n }\n#endif\n\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(gl_FragColor);\n#endif\n}\n@end"},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=(r(221),r(222),r(225),r(16));i.a.registerVisual(Object(a.a)("lines3D")),i.a.registerAction({type:"lines3DPauseEffect",event:"lines3deffectpaused",update:"series.lines3D:pauseEffect"},(function(){})),i.a.registerAction({type:"lines3DResumeEffect",event:"lines3deffectresumed",update:"series.lines3D:resumeEffect"},(function(){})),i.a.registerAction({type:"lines3DToggleEffect",event:"lines3deffectchanged",update:"series.lines3D:toggleEffect"},(function(){}))},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(1),o=r.n(a),s=o.a.vec3,l=o.a.vec2,u=s.normalize,h=s.cross,c=s.sub,d=s.add,f=s.create,p=f(),m=f(),g=f(),_=f(),v=[],y=[];function x(e,t){l.copy(v,e[0]),l.copy(y,e[1]);var r=[],n=r[0]=f(),i=r[1]=f(),a=r[2]=f(),o=r[3]=f();t.dataToPoint(v,n),t.dataToPoint(y,o),u(p,n),c(m,o,n),u(m,m),h(g,m,p),u(g,g),h(m,p,g),d(i,p,m),u(i,i),u(p,o),c(m,n,o),u(m,m),h(g,m,p),u(g,g),h(m,p,g),d(a,p,m),u(a,a),d(_,n,o),u(_,_);var x=s.dot(n,_),T=s.dot(_,i),b=(Math.max(s.len(n),s.len(o))-x)/T*2;return s.scaleAndAdd(i,n,i,b),s.scaleAndAdd(a,o,a,b),r}function T(e,t){for(var r=new Float32Array(3*e.length),n=0,i=[],a=0;a0&&i[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(i)+". Lines must have 2d coords array in data item.");t.push(i)})),{coordsList:t}}function w(e,t,r){var n=e.getData(),i=e.get("polyline"),a=b(n);n.setLayout("lineType",i?"polyline":"cubicBezier"),n.each((function(e){var o=a.coordsList[e],l=i?T(o,t):function(e,t,r){var n=[],i=n[0]=s.create(),a=n[1]=s.create(),o=n[2]=s.create(),l=n[3]=s.create();t.dataToPoint(e[0],i),t.dataToPoint(e[1],l);var u=s.dist(i,l);return s.lerp(a,i,l,.3),s.lerp(o,i,l,.3),s.scaleAndAdd(a,a,r,Math.min(.1*u,10)),s.scaleAndAdd(o,o,r,Math.min(.1*u,10)),n}(o,t,r);n.setItemLayout(e,l)}))}i.a.registerLayout((function(e,t){e.eachSeriesByType("lines3D",(function(e){var t=e.coordinateSystem;"globe"===t.type?function(e,t){var r=e.getData(),n=e.get("polyline");r.setLayout("lineType",n?"polyline":"cubicBezier");var i=b(r);r.each((function(e){var a=i.coordsList[e],o=n?T:x;r.setItemLayout(e,o(a,t))}))}(e,t):"geo3D"===t.type?w(e,t,[0,1,0]):"mapbox3D"===t.type&&w(e,t,[0,0,1])}))}))},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(2),o=r(22),s=r(223),l=r(40);a.a.Shader.import(l.a),i.a.extendChartView({type:"lines3D",__ecgl__:!0,init:function(e,t){this.groupGL=new a.a.Node,this._meshLinesMaterial=new a.a.Material({shader:a.a.createShader("ecgl.meshLines3D"),transparent:!0,depthMask:!1}),this._linesMesh=new a.a.Mesh({geometry:new o.a,material:this._meshLinesMaterial,$ignorePicking:!0}),this._trailMesh=new s.a},render:function(e,t,r){this.groupGL.add(this._linesMesh);var n=e.coordinateSystem,i=e.getData();if(n&&n.viewGL){n.viewGL.add(this.groupGL),this._updateLines(e,t,r);var o=n.viewGL.isLinearSpace()?"define":"undefine";this._linesMesh.material[o]("fragment","SRGB_DECODE"),this._trailMesh.material[o]("fragment","SRGB_DECODE")}var s=this._trailMesh;if(s.stopAnimation(),e.get("effect.show")){this.groupGL.add(s),s.updateData(i,r,this._linesMesh.geometry),s.__time=s.__time||0;var l=36e5;this._curveEffectsAnimator=s.animate("",{loop:!0}).when(l,{__time:l}).during((function(){s.setAnimationTime(s.__time)})).start()}else this.groupGL.remove(s),this._curveEffectsAnimator=null;this._linesMesh.material.blend=this._trailMesh.material.blend="lighter"===e.get("blendMode")?a.a.additiveBlend:null},pauseEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.pause()},resumeEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.resume()},toggleEffect:function(){var e=this._curveEffectsAnimator;e&&(e.isPaused()?e.resume():e.pause())},_updateLines:function(e,t,r){var n=e.getData(),i=e.coordinateSystem,o=this._linesMesh.geometry,s=e.get("polyline");o.expandLine=!0;var l=function(e){return null!=e.radius?e.radius:null!=e.size?Math.max(e.size[0],e.size[1],e.size[2]):100}(i);o.segmentScale=l/20;var u="lineStyle.width".split("."),h=r.getDevicePixelRatio(),c=0;n.each((function(e){var t=n.getItemModel(e).get(u);null==t&&(t=1),n.setItemVisual(e,"lineWidth",t),c=Math.max(t,c)})),o.useNativeLine=!1;var d=0,f=0;n.each((function(e){var t=n.getItemLayout(e);s?(d+=o.getPolylineVertexCount(t),f+=o.getPolylineTriangleCount(t)):(d+=o.getCubicCurveVertexCount(t[0],t[1],t[2],t[3]),f+=o.getCubicCurveTriangleCount(t[0],t[1],t[2],t[3]))})),o.setVertexCount(d),o.setTriangleCount(f),o.resetOffset();var p=[];n.each((function(e){var t=n.getItemLayout(e),r=n.getItemVisual(e,"color"),i=n.getItemVisual(e,"opacity"),l=n.getItemVisual(e,"lineWidth")*h;null==i&&(i=1),(p=a.a.parseColor(r,p))[3]*=i,s?o.addPolyline(t,p,l):o.addCubicCurve(t[0],t[1],t[2],t[3],p,l)})),o.dirty()},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}})},function(e,t,r){"use strict";var n=r(0),i=(r.n(n),r(2)),a=r(1),o=r.n(a),s=r(22),l=r(224),u=o.a.vec3;i.a.Shader.import(l.a),t.a=i.a.Mesh.extend((function(){var e=new i.a.Material({shader:new i.a.Shader(i.a.Shader.source("ecgl.trail2.vertex"),i.a.Shader.source("ecgl.trail2.fragment")),transparent:!0,depthMask:!1}),t=new s.a({dynamic:!0});return t.createAttribute("dist","float",1),t.createAttribute("distAll","float",1),t.createAttribute("start","float",1),{geometry:t,material:e,culling:!1,$ignorePicking:!0}}),{updateData:function(e,t,r){var n=e.hostModel,a=this.geometry,o=n.getModel("effect"),s=o.get("trailWidth")*t.getDevicePixelRatio(),l=o.get("trailLength"),h=n.get("effect.constantSpeed"),c=1e3*n.get("effect.period"),d=null!=h;this.getScene()||console.error("TrailMesh must been add to scene before updateData"),d?this.material.set("speed",h/1e3):this.material.set("period",c),this.material[d?"define":"undefine"]("vertex","CONSTANT_SPEED");var f=n.get("polyline");a.trailLength=l,this.material.set("trailLength",l),a.resetOffset(),["position","positionPrev","positionNext"].forEach((function(e){a.attributes[e].value=r.attributes[e].value})),["dist","distAll","start","offset","color"].forEach((function(e){a.attributes[e].init(a.vertexCount)})),a.indices=r.indices;var p=[],m=o.get("trailColor"),g=o.get("trailOpacity"),_=null!=m,v=null!=g;this.updateWorldTransform();var y=this.worldTransform.x.len(),x=this.worldTransform.y.len(),T=this.worldTransform.z.len(),b=0,w=0;e.each((function(t){var n=e.getItemLayout(t),o=v?g:e.getItemVisual(t,"opacity"),l=e.getItemVisual(t,"color");null==o&&(o=1),(p=i.a.parseColor(_?m:l,p))[3]*=o;for(var h=f?r.getPolylineVertexCount(n):r.getCubicCurveVertexCount(n[0],n[1],n[2],n[3]),E=0,S=[],M=[],A=b;Ab&&(E+=u.dist(S,M)),a.attributes.dist.set(A,E),u.copy(M,S);w=Math.max(w,E);var C=Math.random()*(d?E:c);for(A=b;A0?1:-1)*s/2),a.attributes.color.set(A,p);b+=h})),this.material.set("spotSize",.1*w*l),this.material.set("spotIntensity",o.get("spotIntensity")),a.dirty()},setAnimationTime:function(e){this.material.set("time",e)}})},function(e,t,r){"use strict";t.a="@export ecgl.trail2.vertex\nattribute vec3 position: POSITION;\nattribute vec3 positionPrev;\nattribute vec3 positionNext;\nattribute float offset;\nattribute float dist;\nattribute float distAll;\nattribute float start;\n\nattribute vec4 a_Color : COLOR;\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\nuniform float near : NEAR;\n\nuniform float speed : 0;\nuniform float trailLength: 0.3;\nuniform float time;\nuniform float period: 1000;\n\nuniform float spotSize: 1;\n\nvarying vec4 v_Color;\nvarying float v_Percent;\nvarying float v_SpotPercent;\n\n@import ecgl.common.wireframe.vertexHeader\n\n@import ecgl.lines3D.clipNear\n\nvoid main()\n{\n @import ecgl.lines3D.expandLine\n\n gl_Position = currProj;\n\n v_Color = a_Color;\n\n @import ecgl.common.wireframe.vertexMain\n\n#ifdef CONSTANT_SPEED\n float t = mod((speed * time + start) / distAll, 1. + trailLength) - trailLength;\n#else\n float t = mod((time + start) / period, 1. + trailLength) - trailLength;\n#endif\n\n float trailLen = distAll * trailLength;\n\n v_Percent = (dist - t * distAll) / trailLen;\n\n v_SpotPercent = spotSize / distAll;\n\n }\n@end\n\n\n@export ecgl.trail2.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform float spotIntensity: 5;\n\nvarying vec4 v_Color;\nvarying float v_Percent;\nvarying float v_SpotPercent;\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n if (v_Percent > 1.0 || v_Percent < 0.0) {\n discard;\n }\n\n float fade = v_Percent;\n\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n\n @import ecgl.common.wireframe.fragmentMain\n\n if (v_Percent > (1.0 - v_SpotPercent)) {\n gl_FragColor.rgb *= spotIntensity;\n }\n\n gl_FragColor.a *= fade;\n}\n\n@end"},function(e,t,r){"use strict";var n=r(0),i=r.n(n);i.a.extendSeriesModel({type:"series.lines3D",dependencies:["globe"],visualColorAccessPath:"lineStyle.color",getInitialData:function(e,t){var r=new i.a.List(["value"],this);return r.hasItemOption=!1,r.initData(e.data,[],(function(e,t,n,i){if(e instanceof Array)return NaN;r.hasItemOption=!0;var a=e.value;return null!=a?a instanceof Array?a[i]:a:void 0})),r},defaultOption:{coordinateSystem:"globe",globeIndex:0,geo3DIndex:0,zlevel:-10,polyline:!1,effect:{show:!1,period:4,trailWidth:4,trailLength:.2,spotIntensity:6},silent:!0,blendMode:"source-over",lineStyle:{width:1,opacity:.5}}})},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=(r(227),r(228),r(16));i.a.registerVisual(Object(a.a)("polygons3D"))},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(26);function o(e,t){for(var r=[],n=0;n0;this._updateSurfaceMesh(this._surfaceMesh,e,c,p);var m=this._surfaceMesh.material;p?(m.define("WIREFRAME_QUAD"),m.set("wireframeLineWidth",f),m.set("wireframeLineColor",a.a.parseColor(d.get("lineStyle.color")))):m.undefine("WIREFRAME_QUAD"),this._initHandler(e,r),this._updateAnimation(e)},_updateAnimation:function(e){a.a.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevSurfaceMesh,this._surfaceMesh,e)},_createSurfaceMesh:function(){var e=new a.a.Mesh({geometry:new a.a.Geometry({dynamic:!0,sortTriangles:!0}),shadowDepthMaterial:new a.a.Material({shader:new a.a.Shader(a.a.Shader.source("ecgl.sm.depth.vertex"),a.a.Shader.source("ecgl.sm.depth.fragment"))}),culling:!1,renderOrder:10,renderNormal:!0});return e.geometry.createAttribute("barycentric","float",4),e.geometry.createAttribute("prevPosition","float",3),e.geometry.createAttribute("prevNormal","float",3),i.a.util.extend(e.geometry,l.a),e},_initHandler:function(e,t){var r=e.getData(),n=this._surfaceMesh,i=e.coordinateSystem;n.seriesIndex=e.seriesIndex;var a=-1;n.off("mousemove"),n.off("mouseout"),n.on("mousemove",(function(e){var o=function(e,t){for(var r=1/0,i=-1,a=[],o=0;o=0){var s=[];n.geometry.attributes.position.get(o,s);for(var l=i.pointToData(s),h=1/0,c=-1,d=[],f=0;f65535?Uint32Array:Uint16Array)((g-1)*(_-1)*6),E=function(e,t,r){r[1]=e*_+t,r[0]=e*_+t+1,r[3]=(e+1)*_+t+1,r[2]=(e+1)*_+t},S=!1;if(h){var M=[],A=[],C=0;v?d.init(i.vertexCount):d.value=null;for(var L=[[],[],[]],N=[],D=[],I=u.create(),P=function(e,t,r){var n=3*t;return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r},O=new Float32Array(s.length),R=new Float32Array(s.length/3*4),F=0;F ")),a.value&&(h+=" : "+i.a.format.encodeHTML(a.value)),h}return s.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=(this.option.categories||[]).map((function(e){return null!=e.value?e:i.a.util.extend({value:0},e)})),t=new i.a.List(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e,!0)}))},setView:function(e){null!=e.zoom&&(this.option.zoom=e.zoom),null!=e.offset&&(this.option.offset=e.offset)},setNodePosition:function(e){for(var t=0;t "+_)),p++)}var v=i.a.helper.completeDimensions(["value"],e);(c=new i.a.List(v,r)).initData(e);var y=new i.a.List(["value"],r);return y.initData(f,d),a&&a(c,y),l()({mainData:c,struct:s,structAttr:"graph",datas:{node:c,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),s.update(),s}},function(e,t,r){r(85).__DEV__;var n=r(12),i=r(244).enableClassCheck;function a(e){return"_EC_"+e}var o=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},s=o.prototype;function l(e,t){this.id=null==e?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==t?-1:t}function u(e,t,r){this.node1=e,this.node2=t,this.dataIndex=null==r?-1:r}s.type="graph",s.isDirected=function(){return this._directed},s.addNode=function(e,t){e=e||""+t;var r=this._nodesMap;if(!r[a(e)]){var n=new l(e,t);return n.hostGraph=this,this.nodes.push(n),r[a(e)]=n,n}},s.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},s.getNodeById=function(e){return this._nodesMap[a(e)]},s.addEdge=function(e,t,r){var n=this._nodesMap,i=this._edgesMap;if("number"==typeof e&&(e=this.nodes[e]),"number"==typeof t&&(t=this.nodes[t]),l.isInstance(e)||(e=n[a(e)]),l.isInstance(t)||(t=n[a(t)]),e&&t){var o=e.id+"-"+t.id;if(!i[o]){var s=new u(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}}},s.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},s.getEdge=function(e,t){l.isInstance(e)&&(e=e.id),l.isInstance(t)&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},s.eachNode=function(e,t){for(var r=this.nodes,n=r.length,i=0;i=0&&e.call(t,r[i],i)},s.eachEdge=function(e,t){for(var r=this.edges,n=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},s.breadthFirstTraverse=function(e,t,r,n){if(l.isInstance(t)||(t=this._nodesMap[a(t)]),t){for(var i="out"===r?"outEdges":"in"===r?"inEdges":"edges",o=0;o=0&&r.node2.dataIndex>=0})),i=0,a=n.length;i=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r,n){return this[e][t].getItemVisual(this.dataIndex,r,n)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}};n.mixin(l,h("hostGraph","data")),n.mixin(u,h("hostGraph","edgeData")),o.Node=l,o.Edge=u,i(l),i(u);var c=o;e.exports=c},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){r(85).__DEV__;var n=r(12),i="___EC__COMPONENT__CONTAINER___";function a(e){var t={main:"",sub:""};return e&&(e=e.split("."),t.main=e[0]||"",t.sub=e[1]||""),t}var o=0;function s(e,t){var r=n.slice(arguments,2);return this.superClass.prototype[t].apply(e,r)}function l(e,t,r){return this.superClass.prototype[t].apply(e,r)}t.parseClassType=a,t.enableClassExtend=function(e,t){e.$constructor=e,e.extend=function(e){var t=this,r=function(){e.$constructor?e.$constructor.apply(this,arguments):t.apply(this,arguments)};return n.extend(r.prototype,e),r.extend=this.extend,r.superCall=s,r.superApply=l,n.inherits(r,this),r.superClass=t,r}},t.enableClassCheck=function(e){var t=["__\0is_clz",o++,Math.random().toFixed(3)].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}},t.enableClassManagement=function(e,t){t=t||{};var r={};if(e.registerClass=function(e,t){if(t)if(function(e){n.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}(t),(t=a(t)).sub){if(t.sub!==i){var o=function(e){var t=r[e.main];return t&&t[i]||((t=r[e.main]={})[i]=!0),t}(t);o[t.sub]=e}}else r[t.main]=e;return e},e.getClass=function(e,t,n){var a=r[e];if(a&&a[i]&&(a=t?a[t]:null),n&&!a)throw new Error(t?"Component "+e+"."+(t||"")+" not exists. Load it first.":e+".type should be specified.");return a},e.getClassesByMainType=function(e){e=a(e);var t=[],o=r[e.main];return o&&o[i]?n.each(o,(function(e,r){r!==i&&t.push(e)})):t.push(o),t},e.hasClass=function(e){return e=a(e),!!r[e.main]},e.getAllClassMainTypes=function(){var e=[];return n.each(r,(function(t,r){e.push(r)})),e},e.hasSubTypes=function(e){e=a(e);var t=r[e.main];return t&&t[i]},e.parseClassType=a,t.registerWhenExtend){var o=e.extend;o&&(e.extend=function(t){var r=o.call(this,t);return e.registerClass(r,t.type)})}return e},t.setReadOnly=function(e,t){}},function(e,t,r){var n=r(12),i=n.each,a="\0__link_datas",o="\0__link_mainData";function s(e,t){if((i=this)[o]===i){var r=n.extend({},this[a]);r[this.dataType]=t,c(t,r,e)}else d(t,this.dataType,this[o],e);var i;return t}function l(e,t){return e.struct&&e.struct.update(this),t}function u(e,t){return i(t[a],(function(r,n){r!==t&&d(r.cloneShallow(),n,t,e)})),t}function h(e){var t=this[o];return null==e||null==t?t:t[a][e]}function c(e,t,r){e[a]={},i(t,(function(t,n){d(t,n,e,r)}))}function d(e,t,r,n){r[a][t]=e,e[o]=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=h}var f=function(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,c(t,r,e),i(r,(function(r){i(t.TRANSFERABLE_METHODS,(function(t){r.wrapMethod(t,n.curry(s,e))}))})),t.wrapMethod("cloneShallow",n.curry(u,e)),i(t.CHANGABLE_METHODS,(function(r){t.wrapMethod(r,n.curry(l,e))})),n.assert(r[t.dataType]===t)};e.exports=f},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(41),o=r.n(a),s=r(2),l=r(20),u=r(86),h=r(3),c=r(247),d=r(249),f=r(65),p=r.n(f),m=r(1),g=r.n(m),_=r(251),v=r(62),y=r(252),x=g.a.vec2;s.a.Shader.import(y.a);var T,b=1;i.a.extendChartView({type:"graphGL",__ecgl__:!0,init:function(e,t){this.groupGL=new s.a.Node,this.viewGL=new l.a("orthographic"),this.viewGL.camera.left=this.viewGL.camera.right=0,this.viewGL.add(this.groupGL),this._pointsBuilder=new v.a(!0,t),this._forceEdgesMesh=new s.a.Mesh({material:new s.a.Material({shader:s.a.createShader("ecgl.forceAtlas2.edges"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new s.a.Geometry({attributes:{node:new s.a.Geometry.Attribute("node","float",2),color:new s.a.Geometry.Attribute("color","float",4,"COLOR")},dynamic:!0,mainAttribute:"node"}),renderOrder:-1,mode:s.a.Mesh.LINES}),this._edgesMesh=new s.a.Mesh({material:new s.a.Material({shader:s.a.createShader("ecgl.meshLines2D"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new u.a({useNativeLine:!1,dynamic:!0}),renderOrder:-1,culling:!1}),this._layoutId=0,this._control=new _.a({zr:t.getZr(),viewGL:this.viewGL}),this._control.setTarget(this.groupGL),this._control.init(),this._clickHandler=this._clickHandler.bind(this)},render:function(e,t,r){this.groupGL.add(this._pointsBuilder.rootNode),this._model=e,this._api=r,this._initLayout(e,t,r),this._pointsBuilder.update(e,t,r),this._forceLayoutInstance instanceof c.a||this.groupGL.remove(this._forceEdgesMesh),this._updateCamera(e,r),this._control.off("update"),this._control.on("update",(function(){r.dispatchAction({type:"graphGLRoam",seriesId:e.id,zoom:this._control.getZoom(),offset:this._control.getOffset()}),this._pointsBuilder.updateView(this.viewGL.camera)}),this),this._control.setZoom(h.a.firstNotNull(e.get("zoom"),1)),this._control.setOffset(e.get("offset")||[0,0]);var n=this._pointsBuilder.getPointsMesh();if(n.off("mousemove",this._mousemoveHandler),n.off("mouseout",this._mouseOutHandler,this),r.getZr().off("click",this._clickHandler),this._pointsBuilder.highlightOnMouseover=!0,e.get("focusNodeAdjacency")){var i=e.get("focusNodeAdjacencyOn");"click"===i?r.getZr().on("click",this._clickHandler):"mouseover"===i?(n.on("mousemove",this._mousemoveHandler,this),n.on("mouseout",this._mouseOutHandler,this),this._pointsBuilder.highlightOnMouseover=!1):console.warn("Unkown focusNodeAdjacencyOn value s"+i)}this._lastMouseOverDataIndex=-1},_clickHandler:function(e){if(!this._layouting){var t=this._pointsBuilder.getPointsMesh().dataIndex;t>=0?this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:t}):this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id})}},_mousemoveHandler:function(e){if(!this._layouting){var t=this._pointsBuilder.getPointsMesh().dataIndex;t>=0?t!==this._lastMouseOverDataIndex&&this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:t}):this._mouseOutHandler(e),this._lastMouseOverDataIndex=t}},_mouseOutHandler:function(e){this._layouting||(this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id}),this._lastMouseOverDataIndex=-1)},_updateForceEdgesGeometry:function(e,t){var r=this._forceEdgesMesh.geometry,n=t.getEdgeData(),i=0,a=this._forceLayoutInstance,o=2*n.count();r.attributes.node.init(o),r.attributes.color.init(o),n.each((function(t){var o=e[t];r.attributes.node.set(i,a.getNodeUV(o.node1)),r.attributes.node.set(i+1,a.getNodeUV(o.node2));var l=n.getItemVisual(o.dataIndex,"color"),u=s.a.parseColor(l);u[3]*=h.a.firstNotNull(n.getItemVisual(o.dataIndex,"opacity"),1),r.attributes.color.set(i,u),r.attributes.color.set(i+1,u),i+=2})),r.dirty()},_updateMeshLinesGeometry:function(){var e=this._model.getEdgeData(),t=this._edgesMesh.geometry,r=(e=this._model.getEdgeData(),this._model.getData().getLayout("points"));t.resetOffset(),t.setVertexCount(e.count()*t.getLineVertexCount()),t.setTriangleCount(e.count()*t.getLineTriangleCount());var n=[],i=[],a=["lineStyle","width"];this._originalEdgeColors=new Float32Array(4*e.count()),this._edgeIndicesMap=new Float32Array(e.count()),e.each((function(o){var l=e.graph.getEdgeByIndex(o),u=2*l.node1.dataIndex,c=2*l.node2.dataIndex;n[0]=r[u],n[1]=r[u+1],i[0]=r[c],i[1]=r[c+1];var d=e.getItemVisual(l.dataIndex,"color"),f=s.a.parseColor(d);f[3]*=h.a.firstNotNull(e.getItemVisual(l.dataIndex,"opacity"),1);var p=e.getItemModel(l.dataIndex),m=h.a.firstNotNull(p.get(a),1)*this._api.getDevicePixelRatio();t.addLine(n,i,f,m);for(var g=0;g<4;g++)this._originalEdgeColors[4*l.dataIndex+g]=f[g];this._edgeIndicesMap[l.dataIndex]=o}),!1,this),t.dirty()},_updateForceNodesGeometry:function(e){for(var t=this._pointsBuilder.getPointsMesh(),r=[],n=0;n=f&&(l._syncNodePosition(e),d=0),r.getZr().refresh(),p()((function(){m(t)}))}))};p()((function(){l._forceLayoutInstanceToDispose&&(l._forceLayoutInstanceToDispose.dispose(i.layer.renderer),l._forceLayoutInstanceToDispose=null),m(u)})),this._layouting=!0}}else console.error("None layout don't have startLayout action")}},stopLayout:function(e,t,r,n){n&&null!=n.from&&n.from!==this.uid||(this._layoutId=0,this.groupGL.remove(this._forceEdgesMesh),this.groupGL.add(this._edgesMesh),this._forceLayoutInstance&&this.viewGL.layer&&(n&&n.beforeLayout||(this._syncNodePosition(e),this._updateAfterLayout(e,t,r)),this._api.getZr().refresh(),this._layouting=!1))},_syncNodePosition:function(e){var t=this._forceLayoutInstance.getNodePosition(this.viewGL.layer.renderer);e.getData().setLayout("points",t),e.setNodePosition(t)},_updateAfterLayout:function(e,t,r){this._updateMeshLinesGeometry(),this._pointsBuilder.removePositionTexture(),this._pointsBuilder.updateLayout(e,t,r),this._pointsBuilder.updateView(this.viewGL.camera),this._pointsBuilder.updateLabels(),this._pointsBuilder.showLabels()},focusNodeAdjacency:function(e,t,r,n){var i=this._model.getData();this._downplayAll();var a=n.dataIndex,o=i.graph,s=[],l=o.getNodeByIndex(a);s.push(l),l.edges.forEach((function(e){e.dataIndex<0||(e.node1!==l&&s.push(e.node1),e.node2!==l&&s.push(e.node2))}),this),this._pointsBuilder.fadeOutAll(.05),this._fadeOutEdgesAll(.05),s.forEach((function(e){this._pointsBuilder.highlight(i,e.dataIndex)}),this),this._pointsBuilder.updateLabels(s.map((function(e){return e.dataIndex})));var u=[];l.edges.forEach((function(e){e.dataIndex>=0&&(this._highlightEdge(e.dataIndex),u.push(e))}),this),this._focusNodes=s,this._focusEdges=u},unfocusNodeAdjacency:function(e,t,r,n){this._downplayAll(),this._pointsBuilder.fadeInAll(),this._fadeInEdgesAll(),this._pointsBuilder.updateLabels()},_highlightEdge:function(e){var t=this._model.getEdgeData().getItemModel(e),r=s.a.parseColor(t.get("emphasis.lineStyle.color")||t.get("lineStyle.color")),n=h.a.firstNotNull(t.get("emphasis.lineStyle.opacity"),t.get("lineStyle.opacity"),1);r[3]*=n,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[e],r)},_downplayAll:function(){this._focusNodes&&this._focusNodes.forEach((function(e){this._pointsBuilder.downplay(this._model.getData(),e.dataIndex)}),this),this._focusEdges&&this._focusEdges.forEach((function(e){this._downplayEdge(e.dataIndex)}),this)},_downplayEdge:function(e){var t=this._getColor(e,[]);this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[e],t)},_setEdgeFade:(T=[],function(e,t){this._getColor(e,T),T[3]*=t,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[e],T)}),_getColor:function(e,t){for(var r=0;r<4;r++)t[r]=this._originalEdgeColors[4*e+r];return t},_fadeOutEdgesAll:function(e){this._model.getData().graph.eachEdge((function(t){this._setEdgeFade(t.dataIndex,e)}),this)},_fadeInEdgesAll:function(){this._fadeOutEdgesAll(1)},_updateCamera:function(e,t){this.viewGL.setViewport(0,0,t.getWidth(),t.getHeight(),t.getDevicePixelRatio());for(var r=this.viewGL.camera,n=e.getData().getLayout("points"),i=x.create(1/0,1/0),a=x.create(-1/0,-1/0),o=[],s=0;sr.left&&ur.top)){var h=Math.max(a[0]-i[0],10),c=h/t.getWidth()*t.getHeight();h*=1.4,c*=1.4,i[0]-=.2*h,r.left=i[0],r.top=l-c/2,r.bottom=l+c/2,r.right=h+i[0],r.near=0,r.far=100}},dispose:function(){var e=this.viewGL.layer.renderer;this._forceLayoutInstance&&this._forceLayoutInstance.dispose(e),this.groupGL.removeAll(),this._layoutId=-1},remove:function(){this.groupGL.removeAll(),this._control.dispose()}})},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(2),o=r(14),s=r(10),l=r(248);a.a.Shader.import(l.a);var u={repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null};function h(e){var t={type:a.a.Texture.FLOAT,minFilter:a.a.Texture.NEAREST,magFilter:a.a.Texture.NEAREST};this._positionSourceTex=new a.a.Texture2D(t),this._positionSourceTex.flipY=!1,this._positionTex=new a.a.Texture2D(t),this._positionPrevTex=new a.a.Texture2D(t),this._forceTex=new a.a.Texture2D(t),this._forcePrevTex=new a.a.Texture2D(t),this._weightedSumTex=new a.a.Texture2D(t),this._weightedSumTex.width=this._weightedSumTex.height=1,this._globalSpeedTex=new a.a.Texture2D(t),this._globalSpeedPrevTex=new a.a.Texture2D(t),this._globalSpeedTex.width=this._globalSpeedTex.height=1,this._globalSpeedPrevTex.width=this._globalSpeedPrevTex.height=1,this._nodeRepulsionPass=new o.a({fragment:a.a.Shader.source("ecgl.forceAtlas2.updateNodeRepulsion")}),this._positionPass=new o.a({fragment:a.a.Shader.source("ecgl.forceAtlas2.updatePosition")}),this._globalSpeedPass=new o.a({fragment:a.a.Shader.source("ecgl.forceAtlas2.calcGlobalSpeed")}),this._copyPass=new o.a({fragment:a.a.Shader.source("clay.compositor.output")});var r=function(e){e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ONE)};this._edgeForceMesh=new a.a.Mesh({geometry:new a.a.Geometry({attributes:{node1:new a.a.Geometry.Attribute("node1","float",2),node2:new a.a.Geometry.Attribute("node2","float",2),weight:new a.a.Geometry.Attribute("weight","float",1)},dynamic:!0,mainAttribute:"node1"}),material:new a.a.Material({transparent:!0,shader:a.a.createShader("ecgl.forceAtlas2.updateEdgeAttraction"),blend:r,depthMask:!1,depthText:!1}),mode:a.a.Mesh.POINTS}),this._weightedSumMesh=new a.a.Mesh({geometry:new a.a.Geometry({attributes:{node:new a.a.Geometry.Attribute("node","float",2)},dynamic:!0,mainAttribute:"node"}),material:new a.a.Material({transparent:!0,shader:a.a.createShader("ecgl.forceAtlas2.calcWeightedSum"),blend:r,depthMask:!1,depthText:!1}),mode:a.a.Mesh.POINTS}),this._framebuffer=new s.a({depthBuffer:!1}),this._dummyCamera=new a.a.OrthographicCamera({left:-1,right:1,top:1,bottom:-1,near:0,far:100}),this._globalSpeed=0}h.prototype.updateOption=function(e){for(var t in u)this[t]=u[t];var r=this._nodes.length;if(this.jitterTolerence=r>5e4?10:r>5e3?1:.1,this.scaling=r>100?2:10,e)for(var t in u)null!=e[t]&&(this[t]=e[t]);if(this.repulsionByDegree)for(var n=this._positionSourceTex.pixels,i=0;ie},h.prototype._swapTexture=function(){var e=this._positionPrevTex;this._positionPrevTex=this._positionTex,this._positionTex=e,e=this._forcePrevTex,this._forcePrevTex=this._forceTex,this._forceTex=e,e=this._globalSpeedPrevTex,this._globalSpeedPrevTex=this._globalSpeedTex,this._globalSpeedTex=e},h.prototype._initFromSource=function(e){this._framebuffer.attach(this._positionPrevTex),this._framebuffer.bind(e),this._copyPass.setUniform("texture",this._positionSourceTex),this._copyPass.render(e),e.gl.clearColor(0,0,0,0),this._framebuffer.attach(this._forcePrevTex),e.gl.clear(e.gl.COLOR_BUFFER_BIT),this._framebuffer.attach(this._globalSpeedPrevTex),e.gl.clear(e.gl.COLOR_BUFFER_BIT),this._framebuffer.unbind(e)},h.prototype._resize=function(e,t){["_positionSourceTex","_positionTex","_positionPrevTex","_forceTex","_forcePrevTex"].forEach((function(r){this[r].width=e,this[r].height=t,this[r].dirty()}),this)},h.prototype.dispose=function(e){this._framebuffer.dispose(e),this._copyPass.dispose(e),this._nodeRepulsionPass.dispose(e),this._positionPass.dispose(e),this._globalSpeedPass.dispose(e),this._edgeForceMesh.geometry.dispose(e),this._weightedSumMesh.geometry.dispose(e),this._positionSourceTex.dispose(e),this._positionTex.dispose(e),this._positionPrevTex.dispose(e),this._forceTex.dispose(e),this._forcePrevTex.dispose(e),this._weightedSumTex.dispose(e),this._globalSpeedTex.dispose(e),this._globalSpeedPrevTex.dispose(e)},i.a.ForceAtlas2GPU=h,t.a=h},function(e,t,r){"use strict";t.a="@export ecgl.forceAtlas2.updateNodeRepulsion\n\n#define NODE_COUNT 0\n\nuniform sampler2D positionTex;\n\nuniform vec2 textureSize;\nuniform float gravity;\nuniform float scaling;\nuniform vec2 gravityCenter;\n\nuniform bool strongGravityMode;\nuniform bool preventOverlap;\n\nvarying vec2 v_Texcoord;\n\nvoid main() {\n\n vec4 n0 = texture2D(positionTex, v_Texcoord);\n\n vec2 force = vec2(0.0);\n for (int i = 0; i < NODE_COUNT; i++) {\n vec2 uv = vec2(\n mod(float(i), textureSize.x) / (textureSize.x - 1.0),\n floor(float(i) / textureSize.x) / (textureSize.y - 1.0)\n );\n vec4 n1 = texture2D(positionTex, uv);\n\n vec2 dir = n0.xy - n1.xy;\n float d2 = dot(dir, dir);\n\n if (d2 > 0.0) {\n float factor = 0.0;\n if (preventOverlap) {\n float d = sqrt(d2);\n d = d - n0.w - n1.w;\n if (d > 0.0) {\n factor = scaling * n0.z * n1.z / (d * d);\n }\n else if (d < 0.0) {\n factor = scaling * 100.0 * n0.z * n1.z;\n }\n }\n else {\n factor = scaling * n0.z * n1.z / d2;\n }\n force += dir * factor;\n }\n }\n\n vec2 dir = gravityCenter - n0.xy;\n float d = 1.0;\n if (!strongGravityMode) {\n d = length(dir);\n }\n\n force += dir * n0.z * gravity / (d + 1.0);\n\n gl_FragColor = vec4(force, 0.0, 1.0);\n}\n@end\n\n@export ecgl.forceAtlas2.updateEdgeAttraction.vertex\n\nattribute vec2 node1;\nattribute vec2 node2;\nattribute float weight;\n\nuniform sampler2D positionTex;\nuniform float edgeWeightInfluence;\nuniform bool preventOverlap;\nuniform bool linLogMode;\n\nuniform vec2 windowSize: WINDOW_SIZE;\n\nvarying vec2 v_Force;\n\nvoid main() {\n\n vec4 n0 = texture2D(positionTex, node1);\n vec4 n1 = texture2D(positionTex, node2);\n\n vec2 dir = n1.xy - n0.xy;\n float d = length(dir);\n float w;\n if (edgeWeightInfluence == 0.0) {\n w = 1.0;\n }\n else if (edgeWeightInfluence == 1.0) {\n w = weight;\n }\n else {\n w = pow(weight, edgeWeightInfluence);\n }\n vec2 offset = vec2(1.0 / windowSize.x, 1.0 / windowSize.y);\n vec2 scale = vec2((windowSize.x - 1.0) / windowSize.x, (windowSize.y - 1.0) / windowSize.y);\n vec2 pos = node1 * scale * 2.0 - 1.0;\n gl_Position = vec4(pos + offset, 0.0, 1.0);\n gl_PointSize = 1.0;\n\n float factor;\n if (preventOverlap) {\n d = d - n1.w - n0.w;\n }\n if (d <= 0.0) {\n v_Force = vec2(0.0);\n return;\n }\n\n if (linLogMode) {\n factor = w * log(d) / d;\n }\n else {\n factor = w;\n }\n v_Force = dir * factor;\n}\n@end\n\n@export ecgl.forceAtlas2.updateEdgeAttraction.fragment\n\nvarying vec2 v_Force;\n\nvoid main() {\n gl_FragColor = vec4(v_Force, 0.0, 0.0);\n}\n@end\n\n@export ecgl.forceAtlas2.calcWeightedSum.vertex\n\nattribute vec2 node;\n\nvarying vec2 v_NodeUv;\n\nvoid main() {\n\n v_NodeUv = node;\n gl_Position = vec4(0.0, 0.0, 0.0, 1.0);\n gl_PointSize = 1.0;\n}\n@end\n\n@export ecgl.forceAtlas2.calcWeightedSum.fragment\n\nvarying vec2 v_NodeUv;\n\nuniform sampler2D positionTex;\nuniform sampler2D forceTex;\nuniform sampler2D forcePrevTex;\n\nvoid main() {\n vec2 force = texture2D(forceTex, v_NodeUv).rg;\n vec2 forcePrev = texture2D(forcePrevTex, v_NodeUv).rg;\n\n float mass = texture2D(positionTex, v_NodeUv).z;\n float swing = length(force - forcePrev) * mass;\n float traction = length(force + forcePrev) * 0.5 * mass;\n\n gl_FragColor = vec4(swing, traction, 0.0, 0.0);\n}\n@end\n\n@export ecgl.forceAtlas2.calcGlobalSpeed\n\nuniform sampler2D globalSpeedPrevTex;\nuniform sampler2D weightedSumTex;\nuniform float jitterTolerence;\n\nvoid main() {\n vec2 weightedSum = texture2D(weightedSumTex, vec2(0.5)).xy;\n float prevGlobalSpeed = texture2D(globalSpeedPrevTex, vec2(0.5)).x;\n float globalSpeed = jitterTolerence * jitterTolerence\n * weightedSum.y / weightedSum.x;\n if (prevGlobalSpeed > 0.0) {\n globalSpeed = min(globalSpeed / prevGlobalSpeed, 1.5) * prevGlobalSpeed;\n }\n gl_FragColor = vec4(globalSpeed, 0.0, 0.0, 1.0);\n}\n@end\n\n@export ecgl.forceAtlas2.updatePosition\n\nuniform sampler2D forceTex;\nuniform sampler2D forcePrevTex;\nuniform sampler2D positionTex;\nuniform sampler2D globalSpeedTex;\n\nvarying vec2 v_Texcoord;\n\nvoid main() {\n vec2 force = texture2D(forceTex, v_Texcoord).xy;\n vec2 forcePrev = texture2D(forcePrevTex, v_Texcoord).xy;\n vec4 node = texture2D(positionTex, v_Texcoord);\n\n float globalSpeed = texture2D(globalSpeedTex, vec2(0.5)).r;\n float swing = length(force - forcePrev);\n float speed = 0.1 * globalSpeed / (0.1 + globalSpeed * sqrt(swing));\n\n float df = length(force);\n if (df > 0.0) {\n speed = min(df * speed, 10.0) / df;\n\n gl_FragColor = vec4(node.xy + speed * force, node.zw);\n }\n else {\n gl_FragColor = node;\n }\n}\n@end\n\n@export ecgl.forceAtlas2.edges.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec2 node;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\nuniform sampler2D positionTex;\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(\n texture2D(positionTex, node).xy, -10.0, 1.0\n );\n v_Color = a_Color;\n}\n@end\n\n@export ecgl.forceAtlas2.edges.fragment\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nvarying vec4 v_Color;\nvoid main() {\n gl_FragColor = color * v_Color;\n}\n@end"},function(e,t,r){"use strict";var n=r(5),i=r(6),a=r(250).a.toString();a=a.slice(a.indexOf("{")+1,a.lastIndexOf("}"));var o={barnesHutOptimize:!0,barnesHutTheta:1.5,repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null},s=function(e){for(var t in o)this[t]=o[t];if(e)for(var t in e)this[t]=e[t];this._nodes=[],this._edges=[],this._disposed=!1,this._positionTex=new n.a({type:i.a.FLOAT,flipY:!1,minFilter:i.a.NEAREST,magFilter:i.a.NEAREST})};s.prototype.initData=function(e,t){var r=new Blob([a]),n=window.URL.createObjectURL(r);this._worker=new Worker(n),this._worker.onmessage=this._$onupdate.bind(this),this._nodes=e,this._edges=t,this._frame=0;for(var i=e.length,o=t.length,s=new Float32Array(2*i),l=new Float32Array(i),u=new Float32Array(i),h=new Float32Array(2*o),c=new Float32Array(o),d=0;d5e4?10:a>5e3?1:.1,t.scaling=a>100?2:10,t.barnesHutOptimize=a>1e3,e)for(var r in o)null!=e[r]&&(t[r]=e[r]);if(!t.gravityCenter){for(var s=[1/0,1/0],l=[-1/0,-1/0],u=0;ue},s.prototype.getNodePosition=function(e,t){if(t||(t=new Float32Array(2*this._nodes.length)),this._positionArr)for(var r=0;r=e&&this.bbox[1]<=t&&this.bbox[3]>=t},u.setBBox=function(e,t,r,n){this.bbox[0]=e,this.bbox[1]=t,this.bbox[2]=r,this.bbox[3]=n,this.size=(r-e+n-t)/2},u._newSubRegion=function(){var e=this.subRegions[this.nSubRegions];return e||(e=new l,this.subRegions[this.nSubRegions]=e),this.nSubRegions++,e},u._addNodeToSubRegion=function(e){var t=this.findSubRegion(e.position[0],e.position[1]),r=this.bbox;if(!t){var n=(r[0]+r[2])/2,i=(r[1]+r[3])/2,a=(r[2]-r[0])/2,o=(r[3]-r[1])/2,s=e.position[0]>=n?1:0,l=e.position[1]>=i?1:0;(t=this._newSubRegion()).setBBox(s*a+r[0],l*o+r[1],(s+1)*a+r[0],(l+1)*o+r[1])}t.addNode(e)},u._updateCenterOfMass=function(e){null==this.centerOfMass&&(this.centerOfMass=new Float32Array(2));var t=this.centerOfMass[0]*this.mass,r=this.centerOfMass[1]*this.mass;t+=e.position[0]*e.mass,r+=e.position[1]*e.mass,this.mass+=e.mass,this.centerOfMass[0]=t/this.mass,this.centerOfMass[1]=r/this.mass};var f,p=d.prototype;p.initNodes=function(e,t,r){var n=t.length;this.nodes.length=0;for(var i=void 0!==r,a=0;a0&&(this.strongGravityMode?this.applyNodeStrongGravity(h):this.applyNodeGravity(h))}for(l=0;l0&&(g=Math.min(g/this._globalSpeed,1.5)*this._globalSpeed),this._globalSpeed=g,l=0;l0&&(v=Math.min(y*v,10)/y,n(u.position,u.position,u.force,v))}},p.applyRegionToNodeRepulsion=(f=e(),function(e,t){if(e.node)this.applyNodeToNodeRepulsion(e.node,t,!0);else{a(f,t.position,e.centerOfMass);var r=f[0]*f[0]+f[1]*f[1];if(r>this.barnesHutTheta*e.size*e.size){var i=this.scaling*t.mass*e.mass/r;n(t.force,t.force,f,i)}else for(var o=0;o0)s=this.scaling*e.mass*r.mass/(l*l);else{if(!(l<0))return;s=100*this.scaling*e.mass*r.mass}}else s=this.scaling*e.mass*r.mass/o;n(e.force,e.force,t,s),n(r.force,r.force,t,-s)}}}}(),p.applyEdgeAttraction=function(){var t=e();return function(e){var i=e.source,o=e.target;a(t,i.position,o.position);var s,l,u=r(t);s=0===this.edgeWeightInfluence?1:1===this.edgeWeightInfluence?e.weight:Math.pow(e.weight,this.edgeWeightInfluence),this.preventOverlap&&(u=u-i.size-o.size)<=0||(l=this.linLogMode?-s*Math.log(u+1)/(u+1):-s,n(i.force,i.force,t,l),n(o.force,o.force,t,-l))}}(),p.applyNodeGravity=function(){var t=e();return function(e){a(t,this.gravityCenter,e.position);var i=r(t);n(e.force,e.force,t,this.gravity*e.mass/(i+1))}}(),p.applyNodeStrongGravity=function(){var t=e();return function(e){a(t,this.gravityCenter,e.position),n(e.force,e.force,t,this.gravity*e.mass)}}(),p.updateBBox=function(){for(var e=1/0,t=1/0,r=-1/0,n=-1/0,i=0;i0?1.1:.9,a=Math.max(Math.min(this._zoom*i,this.maxZoom),this.minZoom);i=a/this._zoom;var o=this._convertPos(r,n),s=(o.x-this._dx)*(i-1),l=(o.y-this._dy)*(i-1);this._dx-=s,this._dy-=l,this._zoom=a,this._needsUpdate=!0}}},dispose:function(){var e=this.zr;e.off("mousedown",this._mouseDownHandler),e.off("mousemove",this._mouseMoveHandler),e.off("mouseup",this._mouseUpHandler),e.off("mousewheel",this._mouseWheelHandler),e.off("globalout",this._mouseUpHandler),e.animation.off("frame",this._update)}}));t.a=i},function(e,t,r){"use strict";t.a="@export ecgl.lines2D.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec2 position: POSITION;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\n#ifdef POSITIONTEXTURE_ENABLED\nuniform sampler2D positionTexture;\n#endif\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(position, -10.0, 1.0);\n\n v_Color = a_Color;\n}\n\n@end\n\n@export ecgl.lines2D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\nvoid main()\n{\n gl_FragColor = color * v_Color;\n}\n@end\n\n\n@export ecgl.meshLines2D.vertex\n\nattribute vec2 position: POSITION;\nattribute vec2 normal;\nattribute float offset;\nattribute vec4 a_Color : COLOR;\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\n\nvarying vec4 v_Color;\nvarying float v_Miter;\n\nvoid main()\n{\n vec4 p2 = worldViewProjection * vec4(position + normal, -10.0, 1.0);\n gl_Position = worldViewProjection * vec4(position, -10.0, 1.0);\n\n p2.xy /= p2.w;\n gl_Position.xy /= gl_Position.w;\n\n vec2 N = normalize(p2.xy - gl_Position.xy);\n gl_Position.xy += N * offset / viewport.zw * 2.0;\n\n gl_Position.xy *= gl_Position.w;\n\n v_Color = a_Color;\n}\n@end\n\n\n@export ecgl.meshLines2D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\nvarying float v_Miter;\n\nvoid main()\n{\n gl_FragColor = color * v_Color;\n}\n\n@end"},function(e,t,r){"use strict";var n=r(0);r.n(n),r(254),r(258)},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(2),o=r(3),s=r(20),l=r(255);i.a.extendChartView({type:"flowGL",__ecgl__:!0,init:function(e,t){this.viewGL=new s.a("orthographic"),this.groupGL=new a.a.Node,this.viewGL.add(this.groupGL),this._particleSurface=new l.a;var r=new a.a.Mesh({geometry:new a.a.PlaneGeometry,material:new a.a.Material({shader:new a.a.Shader({vertex:a.a.Shader.source("ecgl.color.vertex"),fragment:a.a.Shader.source("ecgl.color.fragment")}),transparent:!0})});r.material.enableTexture("diffuseMap"),this.groupGL.add(r),this._planeMesh=r},render:function(e,t,r){var n=this._particleSurface;n.setParticleType(e.get("particleType")),n.setSupersampling(e.get("supersampling")),this._updateData(e,r),this._updateCamera(r.getWidth(),r.getHeight(),r.getDevicePixelRatio());var i=o.a.firstNotNull(e.get("particleDensity"),128);n.setParticleDensity(i,i);var s=this._planeMesh,l=+new Date,u=this,h=!0;s.__percent=0,s.stopAnimation(),s.animate("",{loop:!0}).when(1e5,{__percent:1}).during((function(){var e=+new Date,t=Math.min(e-l,20);l+=t,u._renderer&&(n.update(u._renderer,r,t/1e3,h),s.material.set("diffuseMap",n.getSurfaceTexture())),h=!1})).start();var c=e.getModel("itemStyle"),d=a.a.parseColor(c.get("color"));d[3]*=o.a.firstNotNull(c.get("opacity"),1),s.material.set("color",d),n.setColorTextureImage(e.get("colorTexture"),r),n.setParticleSize(e.get("particleSize")),n.particleSpeedScaling=e.get("particleSpeed"),n.motionBlurFactor=1-Math.pow(.1,e.get("particleTrail"))},updateTransform:function(e,t,r){this._updateData(e,r)},afterRender:function(e,t,r,n){var i=n.renderer;this._renderer=i},_updateData:function(e,t){var r=e.coordinateSystem,n=r.dimensions.map((function(t){return e.coordDimToDataDim(t)[0]})),i=e.getData(),a=i.getDataExtent(n[0]),o=i.getDataExtent(n[1]),s=e.get("gridWidth"),l=e.get("gridHeight");if(null==s||"auto"===s){var u=(a[1]-a[0])/(o[1]-o[0]);s=Math.round(Math.sqrt(u*i.count()))}null!=l&&"auto"!==l||(l=Math.ceil(i.count()/s));var h=this._particleSurface.vectorFieldTexture,c=h.pixels;if(c&&c.length===l*s*4)for(var d=0;d=359&&(i[0]>0&&(i[0]=0),a[0]0?e[e.length-1]:this._lastFrameTexture},setRegion:function(e){this._particlePass.setUniform("region",e)},resize:function(e,t){this._lastFrameTexture.width=e*this._supersampling,this._lastFrameTexture.height=t*this._supersampling,this._thisFrameTexture.width=e*this._supersampling,this._thisFrameTexture.height=t*this._supersampling,this._width=e,this._height=t},setParticleSize:function(e){var t=this._getParticleMesh();if(e<=2)return t.material.disableTexture("spriteTexture"),void(t.material.transparent=!1);this._spriteTexture||(this._spriteTexture=new l.a),this._spriteTexture.image&&this._spriteTexture.image.width===e||(this._spriteTexture.image=function(e){var t=document.createElement("canvas");t.width=t.height=e;var r=t.getContext("2d");return r.fillStyle="#fff",r.arc(e/2,e/2,e/2,0,2*Math.PI),r.fill(),t}(e),this._spriteTexture.dirty()),t.material.transparent=!0,t.material.enableTexture("spriteTexture"),t.material.set("spriteTexture",this._spriteTexture),this._particleSize=e},setGradientTexture:function(e){var t=this._getParticleMesh().material;t[e?"enableTexture":"disableTexture"]("gradientTexture"),t.setUniform("gradientTexture",e)},setColorTextureImage:function(e,t){this._getParticleMesh().material.setTextureImage("colorTexture",e,t,{flipY:!0})},setParticleType:function(e){this._particleType=e},clearFrame:function(e){var t=this._frameBuffer;t.attach(this._lastFrameTexture),t.bind(e),e.gl.clear(e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT),t.unbind(e)},setSupersampling:function(e){this._supersampling=e,this.resize(this._width,this._height)},_updateDownsampleTextures:function(e,t){for(var r=this._downsampleTextures,n=Math.max(Math.floor(Math.log(this._supersampling/t.getDevicePixelRatio())/Math.log(2)),0),i=2,a=this._width*this._supersampling,o=this._height*this._supersampling,s=0;s65535?new Uint32Array(3*n):new Uint16Array(3*n))},addLine:function(e){var t=this._vertexOffset;this.attributes.position.set(t,[e[0],e[1],1]),this.attributes.position.set(t+1,[e[0],e[1],-1]),this.attributes.position.set(t+2,[e[0],e[1],2]),this.attributes.position.set(t+3,[e[0],e[1],-2]),this.setTriangleIndices(this._faceOffset++,[t,t+1,t+2]),this.setTriangleIndices(this._faceOffset++,[t+1,t+2,t+3]),this._vertexOffset+=4}}));t.a=a},function(e,t,r){"use strict";t.a="@export ecgl.vfParticle.particle.fragment\n\nuniform sampler2D particleTexture;\nuniform sampler2D spawnTexture;\nuniform sampler2D velocityTexture;\n\nuniform float deltaTime;\nuniform float elapsedTime;\n\nuniform float speedScaling : 1.0;\n\nuniform vec2 textureSize;\nuniform vec4 region : [0, 0, 1, 1];\nuniform float firstFrameTime;\n\nvarying vec2 v_Texcoord;\n\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, v_Texcoord);\n bool spawn = false;\n if (p.w <= 0.0) {\n p = texture2D(spawnTexture, fract(v_Texcoord + elapsedTime / 10.0));\n p.w -= firstFrameTime;\n spawn = true;\n }\n vec2 v = texture2D(velocityTexture, fract(p.xy * region.zw + region.xy)).xy;\n v = (v - 0.5) * 2.0;\n p.z = length(v);\n p.xy += v * deltaTime / 10.0 * speedScaling;\n p.w -= deltaTime;\n\n if (spawn || p.xy != fract(p.xy)) {\n p.z = 0.0;\n }\n p.xy = fract(p.xy);\n\n gl_FragColor = p;\n}\n@end\n\n@export ecgl.vfParticle.renderPoints.vertex\n\n#define PI 3.1415926\n\nattribute vec2 texcoord : TEXCOORD_0;\n\nuniform sampler2D particleTexture;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nuniform float size : 1.0;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, texcoord);\n\n if (p.w > 0.0 && p.z > 1e-5) {\n gl_Position = worldViewProjection * vec4(p.xy * 2.0 - 1.0, 0.0, 1.0);\n }\n else {\n gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0);\n }\n\n v_Mag = p.z;\n v_Uv = p.xy;\n\n gl_PointSize = size;\n}\n\n@end\n\n@export ecgl.vfParticle.renderPoints.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform sampler2D gradientTexture;\nuniform sampler2D colorTexture;\nuniform sampler2D spriteTexture;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n gl_FragColor = color;\n#ifdef SPRITETEXTURE_ENABLED\n gl_FragColor *= texture2D(spriteTexture, gl_PointCoord);\n if (color.a == 0.0) {\n discard;\n }\n#endif\n#ifdef GRADIENTTEXTURE_ENABLED\n gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5));\n#endif\n#ifdef COLORTEXTURE_ENABLED\n gl_FragColor *= texture2D(colorTexture, v_Uv);\n#endif\n}\n\n@end\n\n@export ecgl.vfParticle.renderLines.vertex\n\n#define PI 3.1415926\n\nattribute vec3 position : POSITION;\n\nuniform sampler2D particleTexture;\nuniform sampler2D prevParticleTexture;\n\nuniform float size : 1.0;\nuniform vec4 vp: VIEWPORT;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\n@import clay.util.rand\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, position.xy);\n vec4 p2 = texture2D(prevParticleTexture, position.xy);\n\n p.xy = p.xy * 2.0 - 1.0;\n p2.xy = p2.xy * 2.0 - 1.0;\n\n if (p.w > 0.0 && p.z > 1e-5) {\n vec2 dir = normalize(p.xy - p2.xy);\n vec2 norm = vec2(dir.y / vp.z, -dir.x / vp.w) * sign(position.z) * size;\n if (abs(position.z) == 2.0) {\n gl_Position = vec4(p.xy + norm, 0.0, 1.0);\n v_Uv = p.xy;\n v_Mag = p.z;\n }\n else {\n gl_Position = vec4(p2.xy + norm, 0.0, 1.0);\n v_Mag = p2.z;\n v_Uv = p2.xy;\n }\n gl_Position = worldViewProjection * gl_Position;\n }\n else {\n gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0);\n }\n}\n\n@end\n\n@export ecgl.vfParticle.renderLines.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform sampler2D gradientTexture;\nuniform sampler2D colorTexture;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n gl_FragColor = color;\n #ifdef GRADIENTTEXTURE_ENABLED\n gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5));\n#endif\n#ifdef COLORTEXTURE_ENABLED\n gl_FragColor *= texture2D(colorTexture, v_Uv);\n#endif\n}\n\n@end\n"},function(e,t,r){"use strict";var n=r(0),i=r.n(n);i.a.extendSeriesModel({type:"series.flowGL",dependencies:["geo","grid","bmap"],visualColorAccessPath:"itemStyle.color",getInitialData:function(e,t){var r=i.a.getCoordinateSystemDimensions(this.get("coordinateSystem"))||["x","y"];if(r.length>2)throw new Error("flowGL can only be used on 2d coordinate systems.");r.push("vx","vy");var n=i.a.helper.completeDimensions(r,this.getSource(),{encodeDef:this.get("encode"),dimsDef:this.get("dimensions")}),a=new i.a.List(n,this);return a.initData(this.getSource()),a},defaultOption:{coordinateSystem:"cartesian2d",zlevel:10,supersampling:1,particleType:"point",particleDensity:128,particleSize:1,particleSpeed:1,particleTrail:2,colorTexture:null,gridWidth:"auto",gridHeight:"auto",itemStyle:{color:"#fff",opacity:.8}}})},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=(r(260),r(261),r(16));i.a.registerVisual(Object(a.a)("linesGL"))},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(12),o=(r.n(a),i.a.extendSeriesModel({type:"series.linesGL",dependencies:["grid","geo"],visualColorAccessPath:"lineStyle.color",streamEnabled:!0,init:function(e){var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),o.superApply(this,"init",arguments)},mergeOption:function(e){var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),o.superApply(this,"mergeOption",arguments)},appendData:function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(a.concatArray)(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(a.concatArray)(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},_getCoordsFromItemModel:function(e){var t=this.getData().getItemModel(e),r=t.option instanceof Array?t.option:t.getShallow("coords");if(!(r instanceof Array&&r.length>0&&r[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(r)+". Lines must have 2d coords array in data item.");return r},getLineCoordsCount:function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},getLineCoords:function(e,t){if(this._flatCoordsOffset){for(var r=this._flatCoordsOffset[2*e],n=this._flatCoordsOffset[2*e+1],i=0;ir)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,o),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},getInitialData:function(e,t){var r=new i.a.List(["value"],this);return r.hasItemOption=!1,r.initData(e.data,[],(function(e,t,n,i){if(e instanceof Array)return NaN;r.hasItemOption=!0;var a=e.value;return null!=a?a instanceof Array?a[i]:a:void 0})),r},defaultOption:{coordinateSystem:"geo",zlevel:10,progressive:1e4,progressiveThreshold:5e4,blendMode:"source-over",lineStyle:{opacity:.8},postEffect:{enable:!1,colorCorrection:{exposure:0,brightness:0,contrast:1,saturation:1,enable:!0}}}}))},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(2),o=r(20),s=r(86),l=r(84),u=r(3);i.a.extendChartView({type:"linesGL",__ecgl__:!0,init:function(e,t){this.groupGL=new a.a.Node,this.viewGL=new o.a("orthographic"),this.viewGL.add(this.groupGL),this._glViewHelper=new l.a(this.viewGL),this._nativeLinesShader=a.a.createShader("ecgl.lines3D"),this._meshLinesShader=a.a.createShader("ecgl.meshLines3D"),this._linesMeshes=[],this._currentStep=0},render:function(e,t,r){this.groupGL.removeAll(),this._glViewHelper.reset(e,r);var n=this._linesMeshes[0];n||(n=this._linesMeshes[0]=this._createLinesMesh(e)),this._linesMeshes.length=1,this.groupGL.add(n),this._updateLinesMesh(e,n,0,e.getData().count()),this.viewGL.setPostEffect(e.getModel("postEffect"),r)},incrementalPrepareRender:function(e,t,r){this.groupGL.removeAll(),this._glViewHelper.reset(e,r),this._currentStep=0,this.viewGL.setPostEffect(e.getModel("postEffect"),r)},incrementalRender:function(e,t,r,n){var i=this._linesMeshes[this._currentStep];i||(i=this._createLinesMesh(t),this._linesMeshes[this._currentStep]=i),this._updateLinesMesh(t,i,e.start,e.end),this.groupGL.add(i),n.getZr().refresh(),this._currentStep++},updateTransform:function(e,t,r){e.coordinateSystem.getRoamTransform&&this._glViewHelper.updateTransform(e,r)},_createLinesMesh:function(e){return new a.a.Mesh({$ignorePicking:!0,material:new a.a.Material({shader:a.a.createShader("ecgl.lines3D"),transparent:!0,depthMask:!1,depthTest:!1}),geometry:new s.a({segmentScale:10,useNativeLine:!0,dynamic:!1}),mode:a.a.Mesh.LINES,culling:!1})},_updateLinesMesh:function(e,t,r,n){var i=e.getData();t.material.blend="lighter"===e.get("blendMode")?a.a.additiveBlend:null;var o=e.get("lineStyle.curveness")||0,s=e.get("polyline"),l=t.geometry,h=e.coordinateSystem,c=u.a.firstNotNull(e.get("lineStyle.width"),1);c>1?(t.material.shader!==this._meshLinesShader&&t.material.attachShader(this._meshLinesShader),t.mode=a.a.Mesh.TRIANGLES):(t.material.shader!==this._nativeLinesShader&&t.material.attachShader(this._nativeLinesShader),t.mode=a.a.Mesh.LINES),r=r||0,n=n||i.count(),l.resetOffset();var d=0,f=0,p=[],m=[],g=[],_=[],v=[],y=.3,x=.7;function T(){m[0]=p[0]*x+_[0]*y-(p[1]-_[1])*o,m[1]=p[1]*x+_[1]*y-(_[0]-p[0])*o,g[0]=p[0]*y+_[0]*x-(p[1]-_[1])*o,g[1]=p[1]*y+_[1]*x-(_[0]-p[0])*o}if(s||0!==o)for(var b=r;b=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));u.ref=function(t){e.scrollComponent=t,l&&l(t)};var h=[r];return i&&(s?o?h.unshift(s):h.push(s):this.defaultLoader&&(o?h.unshift(this.defaultLoader):h.push(this.defaultLoader))),a.default.createElement(n,u,h)}}]),t}(i.Component);l.propTypes={children:o.default.node.isRequired,element:o.default.node,hasMore:o.default.bool,initialLoad:o.default.bool,isReverse:o.default.bool,loader:o.default.node,loadMore:o.default.func.isRequired,pageStart:o.default.number,ref:o.default.func,getScrollParent:o.default.func,threshold:o.default.number,useCapture:o.default.bool,useWindow:o.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},26724:function(e,t,r){e.exports=r(51581)},27774:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeSensorId=t.SensorTabIndex=t.SensorClassName=void 0;t.SizeSensorId="size-sensor-id";t.SensorClassName="size-sensor-object";t.SensorTabIndex="-1"},79301:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,r=null;return function(){for(var n=this,i=arguments.length,a=new Array(i),o=0;oe+1),0);return e}},8628:function(e,t,n){var i=n(59301),o=n(19171),r=n(56762),a=n(69507);t.Z=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,i.useRef)({}),n=(0,r.Z)(),l=(0,a.ZP)();return(0,o.Z)((()=>{const i=l.subscribe((i=>{t.current=i,e&&n()}));return()=>l.unsubscribe(i)}),[]),t.current}},27092:function(e,t,n){n.d(t,{Z:function(){return ee}});var i=n(5891),o=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},a=n(22589),l=function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))};var s=o.forwardRef(l),c=n(4048),u=n(53084),p=n(14988),m=n(92310),d=n.n(m),g=n(80962),h=n(57259),b=n(79545),v=n(68550),f=n(17928),C=n(7711),x=n(47413),S={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},$=n(91735),y=function(e){(0,f.Z)(n,e);var t=(0,C.Z)(n);function n(){var e;(0,b.Z)(this,n);for(var i=arguments.length,o=new Array(i),r=0;r=0||t.relatedTarget.className.indexOf("".concat(r,"-item"))>=0)||o(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==S.ENTER&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,v.Z)(n,[{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,i=t.locale,r=t.rootPrefixCls,a=t.changeSize,l=t.quickGo,s=t.goButton,c=t.selectComponentClass,u=t.buildOptionText,p=t.selectPrefixCls,m=t.disabled,d=this.state.goInputText,g="".concat(r,"-options"),h=c,b=null,v=null,f=null;if(!a&&!l)return null;var C=this.getPageSizeOptions();if(a&&h){var x=C.map((function(t,n){return o.createElement(h.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))}));b=o.createElement(h,{disabled:m,prefixCls:p,showSearch:!1,className:"".concat(g,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(n||C[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":i.page_size,defaultOpen:!1},x)}return l&&(s&&(f="boolean"==typeof s?o.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:m,className:"".concat(g,"-quick-jumper-button")},i.jump_to_confirm):o.createElement("span",{onClick:this.go,onKeyUp:this.go},s)),v=o.createElement("div",{className:"".concat(g,"-quick-jumper")},i.jump_to,o.createElement("input",{disabled:m,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":i.page}),i.page,f)),o.createElement("li",{className:"".concat(g)},b,v)}}]),n}(o.Component);y.defaultProps={pageSizeOptions:["10","20","50","100"]};var k=y,I=function(e){var t,n=e.rootPrefixCls,i=e.page,r=e.active,a=e.className,l=e.showTitle,s=e.onClick,c=e.onKeyPress,u=e.itemRender,p="".concat(n,"-item"),m=d()(p,"".concat(p,"-").concat(i),(t={},(0,g.Z)(t,"".concat(p,"-active"),r),(0,g.Z)(t,"".concat(p,"-disabled"),!i),(0,g.Z)(t,e.className,a),t)),h=u(i,"page",o.createElement("a",{rel:"nofollow"},i));return h?o.createElement("li",{title:l?i.toString():null,className:m,onClick:function(){s(i)},onKeyPress:function(e){c(e,s,i)},tabIndex:0},h):null};function N(){}function E(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function P(e,t,n){var i=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/i)+1}var O=function(e){(0,f.Z)(n,e);var t=(0,C.Z)(n);function n(e){var i;(0,b.Z)(this,n),(i=t.call(this,e)).paginationNode=o.createRef(),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(P(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(e,t){var n=i.props.prefixCls,r=e||o.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(r=o.createElement(e,(0,h.Z)({},i.props))),r},i.isValid=function(e){var t=i.props.total;return E(e)&&e!==i.state.current&&E(t)&&t>0},i.shouldDisplayQuickJumper=function(){var e=i.props,t=e.showQuickJumper;return!(e.total<=i.state.pageSize)&&t},i.handleKeyDown=function(e){e.keyCode!==S.ARROW_UP&&e.keyCode!==S.ARROW_DOWN||e.preventDefault()},i.handleKeyUp=function(e){var t=i.getValidValue(e);t!==i.state.currentInputValue&&i.setState({currentInputValue:t}),e.keyCode===S.ENTER?i.handleChange(t):e.keyCode===S.ARROW_UP?i.handleChange(t-1):e.keyCode===S.ARROW_DOWN&&i.handleChange(t+1)},i.handleBlur=function(e){var t=i.getValidValue(e);i.handleChange(t)},i.changePageSize=function(e){var t=i.state.current,n=P(e,i.state,i.props);t=t>n?n:t,0===n&&(t=i.state.current),"number"==typeof e&&("pageSize"in i.props||i.setState({pageSize:e}),"current"in i.props||i.setState({current:t,currentInputValue:t})),i.props.onShowSizeChange(t,e),"onChange"in i.props&&i.props.onChange&&i.props.onChange(t,e)},i.handleChange=function(e){var t=i.props,n=t.disabled,o=t.onChange,r=i.state,a=r.pageSize,l=r.current,s=r.currentInputValue;if(i.isValid(e)&&!n){var c=P(void 0,i.state,i.props),u=e;return e>c?u=c:e<1&&(u=1),"current"in i.props||i.setState({current:u}),u!==s&&i.setState({currentInputValue:u}),o(u,a),u}return l},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current2?n-2:0),o=2;o=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,i=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>i}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,r=e.style,a=e.disabled,l=e.hideOnSinglePage,s=e.total,c=e.locale,u=e.showQuickJumper,p=e.showLessItems,m=e.showTitle,h=e.showTotal,b=e.simple,v=e.itemRender,f=e.showPrevNextJumpers,C=e.jumpPrevIcon,S=e.jumpNextIcon,$=e.selectComponentClass,y=e.selectPrefixCls,N=e.pageSizeOptions,E=this.state,O=E.current,z=E.pageSize,w=E.currentInputValue;if(!0===l&&s<=z)return null;var j=P(void 0,this.state,this.props),T=[],M=null,B=null,Z=null,D=null,A=null,R=u&&u.goButton,H=p?1:2,_=O-1>0?O-1:0,W=O+1s?s:O*z]));if(b){R&&(A="boolean"==typeof R?o.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},c.jump_to_confirm):o.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},R),A=o.createElement("li",{title:m?"".concat(c.jump_to).concat(O,"/").concat(j):null,className:"".concat(t,"-simple-pager")},A));var L=this.renderPrev(_);return o.createElement("ul",(0,i.Z)({className:d()(t,"".concat(t,"-simple"),(0,g.Z)({},"".concat(t,"-disabled"),a),n),style:r,ref:this.paginationNode},V),K,L?o.createElement("li",{title:m?c.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:d()("".concat(t,"-prev"),(0,g.Z)({},"".concat(t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},L):null,o.createElement("li",{title:m?"".concat(O,"/").concat(j):null,className:"".concat(t,"-simple-pager")},o.createElement("input",{type:"text",value:w,disabled:a,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),o.createElement("span",{className:"".concat(t,"-slash")},"/"),j),o.createElement("li",{title:m?c.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:d()("".concat(t,"-next"),(0,g.Z)({},"".concat(t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(W)),A)}if(j<=3+2*H){var J={locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:m,itemRender:v};j||T.push(o.createElement(I,(0,i.Z)({},J,{key:"noPager",page:1,className:"".concat(t,"-item-disabled")})));for(var X=1;X<=j;X+=1){var U=O===X;T.push(o.createElement(I,(0,i.Z)({},J,{key:X,page:X,active:U})))}}else{var F=p?c.prev_3:c.prev_5,G=p?c.next_3:c.next_5,q=v(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(C,"prev page")),Q=v(this.getJumpNextPage(),"jump-next",this.getItemIcon(S,"next page"));f&&(M=q?o.createElement("li",{title:m?F:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:d()("".concat(t,"-jump-prev"),(0,g.Z)({},"".concat(t,"-jump-prev-custom-icon"),!!C))},q):null,B=Q?o.createElement("li",{title:m?G:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:d()("".concat(t,"-jump-next"),(0,g.Z)({},"".concat(t,"-jump-next-custom-icon"),!!S))},Q):null),D=o.createElement(I,{locale:c,last:!0,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:j,page:j,active:!1,showTitle:m,itemRender:v}),Z=o.createElement(I,{locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:m,itemRender:v});var Y=Math.max(1,O-H),ee=Math.min(O+H,j);O-1<=H&&(ee=1+2*H),j-O<=H&&(Y=j-2*H);for(var te=Y;te<=ee;te+=1){var ne=O===te;T.push(o.createElement(I,{locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:te,page:te,active:ne,showTitle:m,itemRender:v}))}O-1>=2*H&&3!==O&&(T[0]=(0,o.cloneElement)(T[0],{className:"".concat(t,"-item-after-jump-prev")}),T.unshift(M)),j-O>=2*H&&O!==j-2&&(T[T.length-1]=(0,o.cloneElement)(T[T.length-1],{className:"".concat(t,"-item-before-jump-next")}),T.push(B)),1!==Y&&T.unshift(Z),ee!==j&&T.push(D)}var ie=!this.hasPrev()||!j,oe=!this.hasNext()||!j,re=this.renderPrev(_),ae=this.renderNext(W);return o.createElement("ul",(0,i.Z)({className:d()(t,n,(0,g.Z)({},"".concat(t,"-disabled"),a)),style:r,ref:this.paginationNode},V),K,re?o.createElement("li",{title:m?c.prev_page:null,onClick:this.prev,tabIndex:ie?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(t,"-prev"),(0,g.Z)({},"".concat(t,"-disabled"),ie)),"aria-disabled":ie},re):null,T,ae?o.createElement("li",{title:m?c.next_page:null,onClick:this.next,tabIndex:oe?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(t,"-next"),(0,g.Z)({},"".concat(t,"-disabled"),oe)),"aria-disabled":oe},ae):null,o.createElement(k,{disabled:a,locale:c,rootPrefixCls:t,selectComponentClass:$,selectPrefixCls:y,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:O,pageSize:z,pageSizeOptions:N,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:R}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var i=t.current,o=P(e.pageSize,t,e);i=i>o?o:i,"current"in e||(n.current=i,n.currentInputValue=i),n.pageSize=e.pageSize}return n}}]),n}(o.Component);O.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:N,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:N,locale:$.Z,style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var z=O,w=n(22075),j=n(36355),T=n(19716),M=n(8628),B=n(9763),Z=n(57809);const D=e=>o.createElement(Z.default,Object.assign({},e,{showSearch:!0,size:"small"})),A=e=>o.createElement(Z.default,Object.assign({},e,{showSearch:!0,size:"middle"}));D.Option=Z.default.Option,A.Option=Z.default.Option;var R=n(9937),H=n(17313),_=n(83116),W=n(37613);const V=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},K=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:e.itemSizeSM-2+"px"},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,R.x0)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},L=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},J=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,R.ik)(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},X=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:e.itemSize-2+"px",textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},U=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,H.Wf)(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:e.itemSize-2+"px",verticalAlign:"middle"}}),X(e)),J(e)),L(e)),K(e)),V(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},F=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},G=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,H.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,H.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,H.oN)(e))}}}};var q=(0,_.Z)("Pagination",(e=>{const t=(0,W.TS)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,R.e5)(e),(0,R.TM)(e));return[U(t),G(t),e.wireframe&&F(t)]}),(e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0}))),Q=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,selectPrefixCls:n,className:i,rootClassName:r,style:a,size:l,locale:m,selectComponentClass:g,responsive:h,showSizeChanger:b}=e,v=Q(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=(0,M.Z)(h),{getPrefixCls:C,direction:x,pagination:S={}}=o.useContext(j.E_),$=C("pagination",t),[y,k]=q($),I=null!=b?b:S.showSizeChanger,N=o.useMemo((()=>{const e=o.createElement("span",{className:`${$}-item-ellipsis`},"•••");return{prevIcon:o.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},"rtl"===x?o.createElement(p.Z,null):o.createElement(u.Z,null)),nextIcon:o.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},"rtl"===x?o.createElement(u.Z,null):o.createElement(p.Z,null)),jumpPrevIcon:o.createElement("a",{className:`${$}-item-link`},o.createElement("div",{className:`${$}-item-container`},"rtl"===x?o.createElement(c.Z,{className:`${$}-item-link-icon`}):o.createElement(s,{className:`${$}-item-link-icon`}),e)),jumpNextIcon:o.createElement("a",{className:`${$}-item-link`},o.createElement("div",{className:`${$}-item-container`},"rtl"===x?o.createElement(s,{className:`${$}-item-link-icon`}):o.createElement(c.Z,{className:`${$}-item-link-icon`}),e))}}),[x,$]),[E]=(0,B.Z)("Pagination",w.Z),P=Object.assign(Object.assign({},E),m),O=(0,T.Z)(l),Z="small"===O||!(!f||O||!h),R=C("select",n),H=d()({[`${$}-mini`]:Z,[`${$}-rtl`]:"rtl"===x},null==S?void 0:S.className,i,r,k),_=Object.assign(Object.assign({},null==S?void 0:S.style),a);return y(o.createElement(z,Object.assign({},N,v,{style:_,prefixCls:$,selectPrefixCls:R,className:H,selectComponentClass:g||(Z?D:A),locale:P,showSizeChanger:I})))},ee=Y},57809:function(e,t,n){var i=n(92310),o=n.n(i),r=n(77861),a=n(55405),l=n(59301),s=n(53487),c=n(62892),u=n(19080),p=n(36355),m=n(1684),d=n(93891),g=n(19716),h=n(32441),b=n(33234),v=n(14154),f=n(58582),C=n(84443),x=n(66339),S=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{var n,{prefixCls:i,bordered:s=!0,className:y,rootClassName:k,getPopupContainer:I,popupClassName:N,dropdownClassName:E,listHeight:P=256,placement:O,listItemHeight:z=24,size:w,disabled:j,notFoundContent:T,status:M,builtinPlacements:B,dropdownMatchSelectWidth:Z,popupMatchSelectWidth:D,direction:A,style:R,allowClear:H}=e,_=S(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:W,getPrefixCls:V,renderEmpty:K,direction:L,virtual:J,popupMatchSelectWidth:X,popupOverflow:U,select:F}=l.useContext(p.E_),G=V("select",i),q=V(),Q=null!=A?A:L,{compactSize:Y,compactItemClassnames:ee}=(0,b.ri)(G,Q),[te,ne]=(0,v.Z)(G),ie=l.useMemo((()=>{const{mode:e}=_;if("combobox"!==e)return e===$?"combobox":e}),[_.mode]),oe="multiple"===ie||"tags"===ie,re=(0,C.Z)(_.suffixIcon,_.showArrow),ae=null!==(n=null!=D?D:Z)&&void 0!==n?n:X,{status:le,hasFeedback:se,isFormItemInput:ce,feedbackIcon:ue}=l.useContext(h.aM),pe=(0,u.F)(le,M);let me;me=void 0!==T?T:"combobox"===ie?null:(null==K?void 0:K("Select"))||l.createElement(d.Z,{componentName:"Select"});const{suffixIcon:de,itemIcon:ge,removeIcon:he,clearIcon:be}=(0,x.Z)(Object.assign(Object.assign({},_),{multiple:oe,hasFeedback:se,feedbackIcon:ue,showSuffixIcon:re,prefixCls:G,showArrow:_.showArrow,componentName:"Select"})),ve=!0===H?{clearIcon:be}:H,fe=(0,a.Z)(_,["suffixIcon","itemIcon"]),Ce=o()(N||E,{[`${G}-dropdown-${Q}`]:"rtl"===Q},k,ne),xe=(0,g.Z)((e=>{var t;return null!==(t=null!=w?w:Y)&&void 0!==t?t:e})),Se=l.useContext(m.Z),$e=null!=j?j:Se,ye=o()({[`${G}-lg`]:"large"===xe,[`${G}-sm`]:"small"===xe,[`${G}-rtl`]:"rtl"===Q,[`${G}-borderless`]:!s,[`${G}-in-form-item`]:ce},(0,u.Z)(G,pe,se),ee,null==F?void 0:F.className,y,k,ne),ke=l.useMemo((()=>void 0!==O?O:"rtl"===Q?"bottomRight":"bottomLeft"),[O,Q]),Ie=(0,f.Z)(B,U);return te(l.createElement(r.ZP,Object.assign({ref:t,virtual:J,showSearch:null==F?void 0:F.showSearch},fe,{style:Object.assign(Object.assign({},null==F?void 0:F.style),R),dropdownMatchSelectWidth:ae,builtinPlacements:Ie,transitionName:(0,c.m)(q,"slide-up",_.transitionName),listHeight:P,listItemHeight:z,mode:ie,prefixCls:G,placement:ke,direction:Q,suffixIcon:de,menuItemSelectedIcon:ge,removeIcon:he,allowClear:ve,notFoundContent:me,className:ye,getPopupContainer:I||W,dropdownClassName:Ce,disabled:$e})))};const k=l.forwardRef(y),I=(0,s.Z)(k);k.SECRET_COMBOBOX_MODE_DO_NOT_USE=$,k.Option=r.Wx,k.OptGroup=r.Xo,k._InternalPanelDoNotUseOrYouWillBeFired=I,t.default=k}}]); \ No newline at end of file diff --git a/27092.6a71d170.async.js b/27092.6a71d170.async.js deleted file mode 100644 index 62e5989bc1..0000000000 --- a/27092.6a71d170.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[27092],{4048:function(e,t,n){n.d(t,{Z:function(){return s}});var i=n(5891),o=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},a=n(22589),l=function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))};var s=o.forwardRef(l)},56762:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(59301);function o(){const[,e]=i.useReducer((e=>e+1),0);return e}},8628:function(e,t,n){var i=n(59301),o=n(19171),r=n(56762),a=n(69507);t.Z=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,i.useRef)({}),n=(0,r.Z)(),l=(0,a.ZP)();return(0,o.Z)((()=>{const i=l.subscribe((i=>{t.current=i,e&&n()}));return()=>l.unsubscribe(i)}),[]),t.current}},27092:function(e,t,n){n.d(t,{Z:function(){return ee}});var i=n(5891),o=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},a=n(22589),l=function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))};var s=o.forwardRef(l),c=n(4048),u=n(53084),p=n(14988),m=n(92310),d=n.n(m),g=n(80962),h=n(57259),b=n(79545),v=n(68550),f=n(17928),C=n(99487),x=n(47413),S={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},$=n(91735),y=function(e){(0,f.Z)(n,e);var t=(0,C.Z)(n);function n(){var e;(0,b.Z)(this,n);for(var i=arguments.length,o=new Array(i),r=0;r=0||t.relatedTarget.className.indexOf("".concat(r,"-item"))>=0)||o(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==S.ENTER&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,v.Z)(n,[{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,i=t.locale,r=t.rootPrefixCls,a=t.changeSize,l=t.quickGo,s=t.goButton,c=t.selectComponentClass,u=t.buildOptionText,p=t.selectPrefixCls,m=t.disabled,d=this.state.goInputText,g="".concat(r,"-options"),h=c,b=null,v=null,f=null;if(!a&&!l)return null;var C=this.getPageSizeOptions();if(a&&h){var x=C.map((function(t,n){return o.createElement(h.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))}));b=o.createElement(h,{disabled:m,prefixCls:p,showSearch:!1,className:"".concat(g,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(n||C[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":i.page_size,defaultOpen:!1},x)}return l&&(s&&(f="boolean"==typeof s?o.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:m,className:"".concat(g,"-quick-jumper-button")},i.jump_to_confirm):o.createElement("span",{onClick:this.go,onKeyUp:this.go},s)),v=o.createElement("div",{className:"".concat(g,"-quick-jumper")},i.jump_to,o.createElement("input",{disabled:m,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":i.page}),i.page,f)),o.createElement("li",{className:"".concat(g)},b,v)}}]),n}(o.Component);y.defaultProps={pageSizeOptions:["10","20","50","100"]};var k=y,I=function(e){var t,n=e.rootPrefixCls,i=e.page,r=e.active,a=e.className,l=e.showTitle,s=e.onClick,c=e.onKeyPress,u=e.itemRender,p="".concat(n,"-item"),m=d()(p,"".concat(p,"-").concat(i),(t={},(0,g.Z)(t,"".concat(p,"-active"),r),(0,g.Z)(t,"".concat(p,"-disabled"),!i),(0,g.Z)(t,e.className,a),t)),h=u(i,"page",o.createElement("a",{rel:"nofollow"},i));return h?o.createElement("li",{title:l?i.toString():null,className:m,onClick:function(){s(i)},onKeyPress:function(e){c(e,s,i)},tabIndex:0},h):null};function N(){}function E(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function P(e,t,n){var i=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/i)+1}var O=function(e){(0,f.Z)(n,e);var t=(0,C.Z)(n);function n(e){var i;(0,b.Z)(this,n),(i=t.call(this,e)).paginationNode=o.createRef(),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(P(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(e,t){var n=i.props.prefixCls,r=e||o.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(r=o.createElement(e,(0,h.Z)({},i.props))),r},i.isValid=function(e){var t=i.props.total;return E(e)&&e!==i.state.current&&E(t)&&t>0},i.shouldDisplayQuickJumper=function(){var e=i.props,t=e.showQuickJumper;return!(e.total<=i.state.pageSize)&&t},i.handleKeyDown=function(e){e.keyCode!==S.ARROW_UP&&e.keyCode!==S.ARROW_DOWN||e.preventDefault()},i.handleKeyUp=function(e){var t=i.getValidValue(e);t!==i.state.currentInputValue&&i.setState({currentInputValue:t}),e.keyCode===S.ENTER?i.handleChange(t):e.keyCode===S.ARROW_UP?i.handleChange(t-1):e.keyCode===S.ARROW_DOWN&&i.handleChange(t+1)},i.handleBlur=function(e){var t=i.getValidValue(e);i.handleChange(t)},i.changePageSize=function(e){var t=i.state.current,n=P(e,i.state,i.props);t=t>n?n:t,0===n&&(t=i.state.current),"number"==typeof e&&("pageSize"in i.props||i.setState({pageSize:e}),"current"in i.props||i.setState({current:t,currentInputValue:t})),i.props.onShowSizeChange(t,e),"onChange"in i.props&&i.props.onChange&&i.props.onChange(t,e)},i.handleChange=function(e){var t=i.props,n=t.disabled,o=t.onChange,r=i.state,a=r.pageSize,l=r.current,s=r.currentInputValue;if(i.isValid(e)&&!n){var c=P(void 0,i.state,i.props),u=e;return e>c?u=c:e<1&&(u=1),"current"in i.props||i.setState({current:u}),u!==s&&i.setState({currentInputValue:u}),o(u,a),u}return l},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current2?n-2:0),o=2;o=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,i=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>i}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,r=e.style,a=e.disabled,l=e.hideOnSinglePage,s=e.total,c=e.locale,u=e.showQuickJumper,p=e.showLessItems,m=e.showTitle,h=e.showTotal,b=e.simple,v=e.itemRender,f=e.showPrevNextJumpers,C=e.jumpPrevIcon,S=e.jumpNextIcon,$=e.selectComponentClass,y=e.selectPrefixCls,N=e.pageSizeOptions,E=this.state,O=E.current,z=E.pageSize,w=E.currentInputValue;if(!0===l&&s<=z)return null;var j=P(void 0,this.state,this.props),T=[],M=null,B=null,Z=null,D=null,A=null,R=u&&u.goButton,H=p?1:2,_=O-1>0?O-1:0,W=O+1s?s:O*z]));if(b){R&&(A="boolean"==typeof R?o.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},c.jump_to_confirm):o.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},R),A=o.createElement("li",{title:m?"".concat(c.jump_to).concat(O,"/").concat(j):null,className:"".concat(t,"-simple-pager")},A));var L=this.renderPrev(_);return o.createElement("ul",(0,i.Z)({className:d()(t,"".concat(t,"-simple"),(0,g.Z)({},"".concat(t,"-disabled"),a),n),style:r,ref:this.paginationNode},V),K,L?o.createElement("li",{title:m?c.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:d()("".concat(t,"-prev"),(0,g.Z)({},"".concat(t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},L):null,o.createElement("li",{title:m?"".concat(O,"/").concat(j):null,className:"".concat(t,"-simple-pager")},o.createElement("input",{type:"text",value:w,disabled:a,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),o.createElement("span",{className:"".concat(t,"-slash")},"/"),j),o.createElement("li",{title:m?c.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:d()("".concat(t,"-next"),(0,g.Z)({},"".concat(t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(W)),A)}if(j<=3+2*H){var J={locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:m,itemRender:v};j||T.push(o.createElement(I,(0,i.Z)({},J,{key:"noPager",page:1,className:"".concat(t,"-item-disabled")})));for(var X=1;X<=j;X+=1){var U=O===X;T.push(o.createElement(I,(0,i.Z)({},J,{key:X,page:X,active:U})))}}else{var F=p?c.prev_3:c.prev_5,G=p?c.next_3:c.next_5,q=v(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(C,"prev page")),Q=v(this.getJumpNextPage(),"jump-next",this.getItemIcon(S,"next page"));f&&(M=q?o.createElement("li",{title:m?F:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:d()("".concat(t,"-jump-prev"),(0,g.Z)({},"".concat(t,"-jump-prev-custom-icon"),!!C))},q):null,B=Q?o.createElement("li",{title:m?G:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:d()("".concat(t,"-jump-next"),(0,g.Z)({},"".concat(t,"-jump-next-custom-icon"),!!S))},Q):null),D=o.createElement(I,{locale:c,last:!0,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:j,page:j,active:!1,showTitle:m,itemRender:v}),Z=o.createElement(I,{locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:m,itemRender:v});var Y=Math.max(1,O-H),ee=Math.min(O+H,j);O-1<=H&&(ee=1+2*H),j-O<=H&&(Y=j-2*H);for(var te=Y;te<=ee;te+=1){var ne=O===te;T.push(o.createElement(I,{locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:te,page:te,active:ne,showTitle:m,itemRender:v}))}O-1>=2*H&&3!==O&&(T[0]=(0,o.cloneElement)(T[0],{className:"".concat(t,"-item-after-jump-prev")}),T.unshift(M)),j-O>=2*H&&O!==j-2&&(T[T.length-1]=(0,o.cloneElement)(T[T.length-1],{className:"".concat(t,"-item-before-jump-next")}),T.push(B)),1!==Y&&T.unshift(Z),ee!==j&&T.push(D)}var ie=!this.hasPrev()||!j,oe=!this.hasNext()||!j,re=this.renderPrev(_),ae=this.renderNext(W);return o.createElement("ul",(0,i.Z)({className:d()(t,n,(0,g.Z)({},"".concat(t,"-disabled"),a)),style:r,ref:this.paginationNode},V),K,re?o.createElement("li",{title:m?c.prev_page:null,onClick:this.prev,tabIndex:ie?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(t,"-prev"),(0,g.Z)({},"".concat(t,"-disabled"),ie)),"aria-disabled":ie},re):null,T,ae?o.createElement("li",{title:m?c.next_page:null,onClick:this.next,tabIndex:oe?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(t,"-next"),(0,g.Z)({},"".concat(t,"-disabled"),oe)),"aria-disabled":oe},ae):null,o.createElement(k,{disabled:a,locale:c,rootPrefixCls:t,selectComponentClass:$,selectPrefixCls:y,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:O,pageSize:z,pageSizeOptions:N,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:R}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var i=t.current,o=P(e.pageSize,t,e);i=i>o?o:i,"current"in e||(n.current=i,n.currentInputValue=i),n.pageSize=e.pageSize}return n}}]),n}(o.Component);O.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:N,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:N,locale:$.Z,style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var z=O,w=n(22075),j=n(36355),T=n(19716),M=n(8628),B=n(9763),Z=n(57809);const D=e=>o.createElement(Z.default,Object.assign({},e,{showSearch:!0,size:"small"})),A=e=>o.createElement(Z.default,Object.assign({},e,{showSearch:!0,size:"middle"}));D.Option=Z.default.Option,A.Option=Z.default.Option;var R=n(9937),H=n(17313),_=n(83116),W=n(37613);const V=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},K=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:e.itemSizeSM-2+"px"},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,R.x0)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},L=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},J=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,R.ik)(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},X=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:e.itemSize-2+"px",textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},U=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,H.Wf)(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:e.itemSize-2+"px",verticalAlign:"middle"}}),X(e)),J(e)),L(e)),K(e)),V(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},F=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},G=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,H.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,H.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,H.oN)(e))}}}};var q=(0,_.Z)("Pagination",(e=>{const t=(0,W.TS)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,R.e5)(e),(0,R.TM)(e));return[U(t),G(t),e.wireframe&&F(t)]}),(e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0}))),Q=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,selectPrefixCls:n,className:i,rootClassName:r,style:a,size:l,locale:m,selectComponentClass:g,responsive:h,showSizeChanger:b}=e,v=Q(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=(0,M.Z)(h),{getPrefixCls:C,direction:x,pagination:S={}}=o.useContext(j.E_),$=C("pagination",t),[y,k]=q($),I=null!=b?b:S.showSizeChanger,N=o.useMemo((()=>{const e=o.createElement("span",{className:`${$}-item-ellipsis`},"•••");return{prevIcon:o.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},"rtl"===x?o.createElement(p.Z,null):o.createElement(u.Z,null)),nextIcon:o.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},"rtl"===x?o.createElement(u.Z,null):o.createElement(p.Z,null)),jumpPrevIcon:o.createElement("a",{className:`${$}-item-link`},o.createElement("div",{className:`${$}-item-container`},"rtl"===x?o.createElement(c.Z,{className:`${$}-item-link-icon`}):o.createElement(s,{className:`${$}-item-link-icon`}),e)),jumpNextIcon:o.createElement("a",{className:`${$}-item-link`},o.createElement("div",{className:`${$}-item-container`},"rtl"===x?o.createElement(s,{className:`${$}-item-link-icon`}):o.createElement(c.Z,{className:`${$}-item-link-icon`}),e))}}),[x,$]),[E]=(0,B.Z)("Pagination",w.Z),P=Object.assign(Object.assign({},E),m),O=(0,T.Z)(l),Z="small"===O||!(!f||O||!h),R=C("select",n),H=d()({[`${$}-mini`]:Z,[`${$}-rtl`]:"rtl"===x},null==S?void 0:S.className,i,r,k),_=Object.assign(Object.assign({},null==S?void 0:S.style),a);return y(o.createElement(z,Object.assign({},N,v,{style:_,prefixCls:$,selectPrefixCls:R,className:H,selectComponentClass:g||(Z?D:A),locale:P,showSizeChanger:I})))},ee=Y},57809:function(e,t,n){var i=n(92310),o=n.n(i),r=n(77861),a=n(55405),l=n(59301),s=n(53487),c=n(62892),u=n(19080),p=n(36355),m=n(1684),d=n(93891),g=n(19716),h=n(32441),b=n(33234),v=n(14154),f=n(58582),C=n(84443),x=n(66339),S=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{var n,{prefixCls:i,bordered:s=!0,className:y,rootClassName:k,getPopupContainer:I,popupClassName:N,dropdownClassName:E,listHeight:P=256,placement:O,listItemHeight:z=24,size:w,disabled:j,notFoundContent:T,status:M,builtinPlacements:B,dropdownMatchSelectWidth:Z,popupMatchSelectWidth:D,direction:A,style:R,allowClear:H}=e,_=S(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:W,getPrefixCls:V,renderEmpty:K,direction:L,virtual:J,popupMatchSelectWidth:X,popupOverflow:U,select:F}=l.useContext(p.E_),G=V("select",i),q=V(),Q=null!=A?A:L,{compactSize:Y,compactItemClassnames:ee}=(0,b.ri)(G,Q),[te,ne]=(0,v.Z)(G),ie=l.useMemo((()=>{const{mode:e}=_;if("combobox"!==e)return e===$?"combobox":e}),[_.mode]),oe="multiple"===ie||"tags"===ie,re=(0,C.Z)(_.suffixIcon,_.showArrow),ae=null!==(n=null!=D?D:Z)&&void 0!==n?n:X,{status:le,hasFeedback:se,isFormItemInput:ce,feedbackIcon:ue}=l.useContext(h.aM),pe=(0,u.F)(le,M);let me;me=void 0!==T?T:"combobox"===ie?null:(null==K?void 0:K("Select"))||l.createElement(d.Z,{componentName:"Select"});const{suffixIcon:de,itemIcon:ge,removeIcon:he,clearIcon:be}=(0,x.Z)(Object.assign(Object.assign({},_),{multiple:oe,hasFeedback:se,feedbackIcon:ue,showSuffixIcon:re,prefixCls:G,showArrow:_.showArrow,componentName:"Select"})),ve=!0===H?{clearIcon:be}:H,fe=(0,a.Z)(_,["suffixIcon","itemIcon"]),Ce=o()(N||E,{[`${G}-dropdown-${Q}`]:"rtl"===Q},k,ne),xe=(0,g.Z)((e=>{var t;return null!==(t=null!=w?w:Y)&&void 0!==t?t:e})),Se=l.useContext(m.Z),$e=null!=j?j:Se,ye=o()({[`${G}-lg`]:"large"===xe,[`${G}-sm`]:"small"===xe,[`${G}-rtl`]:"rtl"===Q,[`${G}-borderless`]:!s,[`${G}-in-form-item`]:ce},(0,u.Z)(G,pe,se),ee,null==F?void 0:F.className,y,k,ne),ke=l.useMemo((()=>void 0!==O?O:"rtl"===Q?"bottomRight":"bottomLeft"),[O,Q]),Ie=(0,f.Z)(B,U);return te(l.createElement(r.ZP,Object.assign({ref:t,virtual:J,showSearch:null==F?void 0:F.showSearch},fe,{style:Object.assign(Object.assign({},null==F?void 0:F.style),R),dropdownMatchSelectWidth:ae,builtinPlacements:Ie,transitionName:(0,c.m)(q,"slide-up",_.transitionName),listHeight:P,listItemHeight:z,mode:ie,prefixCls:G,placement:ke,direction:Q,suffixIcon:de,menuItemSelectedIcon:ge,removeIcon:he,allowClear:ve,notFoundContent:me,className:ye,getPopupContainer:I||W,dropdownClassName:Ce,disabled:$e})))};const k=l.forwardRef(y),I=(0,s.Z)(k);k.SECRET_COMBOBOX_MODE_DO_NOT_USE=$,k.Option=r.Wx,k.OptGroup=r.Xo,k._InternalPanelDoNotUseOrYouWillBeFired=I,t.default=k}}]); \ No newline at end of file diff --git a/28647.f9e747fb.async.js b/28647.f9e747fb.async.js new file mode 100644 index 0000000000..bcb853cf2a --- /dev/null +++ b/28647.f9e747fb.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[28647],{28647:function(t,e,n){n.d(e,{Z:function(){return O}});var r=n(5891),i=n(59301),o=n(75440),s=(n(85870),n(57259)),c=n(80665),u=n(10748),a=n(25629),h=i.createContext(null);var f=n(76374),d=new Map;var l=new f.Z((function(t){t.forEach((function(t){var e,n=t.target;null===(e=d.get(n))||void 0===e||e.forEach((function(t){return t(n)}))}))}));var v=n(79545),p=n(68550),_=n(17928),b=n(7711),m=function(t){(0,_.Z)(n,t);var e=(0,b.Z)(n);function n(){return(0,v.Z)(this,n),e.apply(this,arguments)}return(0,p.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component);function g(t,e){var n=t.children,r=t.disabled,o=i.useRef(null),f=i.useRef(null),v=i.useContext(h),p="function"==typeof n,_=p?n(o):n,b=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),g=!p&&i.isValidElement(_)&&(0,a.Yr)(_),y=g?_.ref:null,w=(0,a.x1)(y,o),E=function(){var t;return(0,u.ZP)(o.current)||(o.current&&"object"===(0,c.Z)(o.current)?(0,u.ZP)(null===(t=o.current)||void 0===t?void 0:t.nativeElement):null)||(0,u.ZP)(f.current)};i.useImperativeHandle(e,(function(){return E()}));var O=i.useRef(t);O.current=t;var M=i.useCallback((function(t){var e=O.current,n=e.onResize,r=e.data,i=t.getBoundingClientRect(),o=i.width,c=i.height,u=t.offsetWidth,a=t.offsetHeight,h=Math.floor(o),f=Math.floor(c);if(b.current.width!==h||b.current.height!==f||b.current.offsetWidth!==u||b.current.offsetHeight!==a){var d={width:h,height:f,offsetWidth:u,offsetHeight:a};b.current=d;var l=u===Math.round(o)?o:u,p=a===Math.round(c)?c:a,_=(0,s.Z)((0,s.Z)({},d),{},{offsetWidth:l,offsetHeight:p});null==v||v(_,t,r),n&&Promise.resolve().then((function(){n(_,t)}))}}),[]);return i.useEffect((function(){var t,e,n=E();return n&&!r&&(t=n,e=M,d.has(t)||(d.set(t,new Set),l.observe(t)),d.get(t).add(e)),function(){return function(t,e){d.has(t)&&(d.get(t).delete(e),d.get(t).size||(l.unobserve(t),d.delete(t)))}(n,M)}}),[o.current,r]),i.createElement(m,{ref:f},g?i.cloneElement(_,{ref:w}):_)}var y=i.forwardRef(g);function w(t,e){var n=t.children;return("function"==typeof n?[n]:(0,o.Z)(n)).map((function(n,o){var s=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return i.createElement(y,(0,r.Z)({},t,{key:s,ref:0===o?e:void 0}),n)}))}var E=i.forwardRef(w);E.Collection=function(t){var e=t.children,n=t.onBatchResize,r=i.useRef(0),o=i.useRef([]),s=i.useContext(h),c=i.useCallback((function(t,e,i){r.current+=1;var c=r.current;o.current.push({size:t,element:e,data:i}),Promise.resolve().then((function(){c===r.current&&(null==n||n(o.current),o.current=[])})),null==s||s(t,e,i)}),[n,s]);return i.createElement(h.Provider,{value:c},e)};var O=E},76374:function(t,e,n){var r=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n0},t.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;c.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),h=function(t,e){for(var n=0,r=Object.keys(e);n0},t}(),E="undefined"!=typeof WeakMap?new WeakMap:new r,O=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=a.getInstance(),r=new w(e,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){O.prototype[t]=function(){var e;return(e=E.get(this))[t].apply(e,arguments)}}));var M=void 0!==o.ResizeObserver?o.ResizeObserver:O;e.Z=M}}]); \ No newline at end of file diff --git a/28647.ffd62e4e.async.js b/28647.ffd62e4e.async.js deleted file mode 100644 index 6013e03ab9..0000000000 --- a/28647.ffd62e4e.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[28647],{28647:function(t,e,n){n.d(e,{Z:function(){return O}});var r=n(5891),i=n(59301),o=n(75440),s=(n(85870),n(57259)),c=n(80665),u=n(10748),a=n(25629),h=i.createContext(null);var f=n(76374),d=new Map;var l=new f.Z((function(t){t.forEach((function(t){var e,n=t.target;null===(e=d.get(n))||void 0===e||e.forEach((function(t){return t(n)}))}))}));var v=n(79545),p=n(68550),_=n(17928),b=n(99487),m=function(t){(0,_.Z)(n,t);var e=(0,b.Z)(n);function n(){return(0,v.Z)(this,n),e.apply(this,arguments)}return(0,p.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component);function g(t,e){var n=t.children,r=t.disabled,o=i.useRef(null),f=i.useRef(null),v=i.useContext(h),p="function"==typeof n,_=p?n(o):n,b=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),g=!p&&i.isValidElement(_)&&(0,a.Yr)(_),y=g?_.ref:null,w=(0,a.x1)(y,o),E=function(){var t;return(0,u.ZP)(o.current)||(o.current&&"object"===(0,c.Z)(o.current)?(0,u.ZP)(null===(t=o.current)||void 0===t?void 0:t.nativeElement):null)||(0,u.ZP)(f.current)};i.useImperativeHandle(e,(function(){return E()}));var O=i.useRef(t);O.current=t;var M=i.useCallback((function(t){var e=O.current,n=e.onResize,r=e.data,i=t.getBoundingClientRect(),o=i.width,c=i.height,u=t.offsetWidth,a=t.offsetHeight,h=Math.floor(o),f=Math.floor(c);if(b.current.width!==h||b.current.height!==f||b.current.offsetWidth!==u||b.current.offsetHeight!==a){var d={width:h,height:f,offsetWidth:u,offsetHeight:a};b.current=d;var l=u===Math.round(o)?o:u,p=a===Math.round(c)?c:a,_=(0,s.Z)((0,s.Z)({},d),{},{offsetWidth:l,offsetHeight:p});null==v||v(_,t,r),n&&Promise.resolve().then((function(){n(_,t)}))}}),[]);return i.useEffect((function(){var t,e,n=E();return n&&!r&&(t=n,e=M,d.has(t)||(d.set(t,new Set),l.observe(t)),d.get(t).add(e)),function(){return function(t,e){d.has(t)&&(d.get(t).delete(e),d.get(t).size||(l.unobserve(t),d.delete(t)))}(n,M)}}),[o.current,r]),i.createElement(m,{ref:f},g?i.cloneElement(_,{ref:w}):_)}var y=i.forwardRef(g);function w(t,e){var n=t.children;return("function"==typeof n?[n]:(0,o.Z)(n)).map((function(n,o){var s=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return i.createElement(y,(0,r.Z)({},t,{key:s,ref:0===o?e:void 0}),n)}))}var E=i.forwardRef(w);E.Collection=function(t){var e=t.children,n=t.onBatchResize,r=i.useRef(0),o=i.useRef([]),s=i.useContext(h),c=i.useCallback((function(t,e,i){r.current+=1;var c=r.current;o.current.push({size:t,element:e,data:i}),Promise.resolve().then((function(){c===r.current&&(null==n||n(o.current),o.current=[])})),null==s||s(t,e,i)}),[n,s]);return i.createElement(h.Provider,{value:c},e)};var O=E},76374:function(t,e,n){var r=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n0},t.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;c.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),h=function(t,e){for(var n=0,r=Object.keys(e);n0},t}(),E="undefined"!=typeof WeakMap?new WeakMap:new r,O=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=a.getInstance(),r=new w(e,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){O.prototype[t]=function(){var e;return(e=E.get(this))[t].apply(e,arguments)}}));var M=void 0!==o.ResizeObserver?o.ResizeObserver:O;e.Z=M}}]); \ No newline at end of file diff --git a/39433.64c8fbe3.async.js b/39433.64c8fbe3.async.js deleted file mode 100644 index 82a64c6f2e..0000000000 --- a/39433.64c8fbe3.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[39433,4977,1806,97120],{25855:function(A,t,r){r.d(t,{B:function(){return B},F:function(){return E}});var e=r(7557),n=r.n(e),s=r(41498),o=r.n(s),u=r(65022),c=r.n(u),a=r(86129),C=r.n(a),g=function(){document.body.scrollIntoView()},i=function(){document.querySelectorAll("canvas").forEach((function(A){(!A.clientWidth||!A.clientHeight)&&A.remove()}))},E=function(){var A=o()(n()().mark((function A(t,r){var e,s,u,a,E;return n()().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:g(),i(),e={margin:[0,1,0,0],image:{type:"png",quality:.95},html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1,width:810},jsPDF:{unit:"in",format:"letter",orientation:"portrait"}},s=c()(),u=n()().mark((function A(r){return n()().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,s.set(e).from(t[r]).toContainer().toCanvas().toPdf().get("pdf").then(function(){var A=o()(n()().mark((function A(e){return n()().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(!(r-1,u.createElement(y,(0,l.Z)({},$,{prefixCls:t,key:x,panelKey:x,isActive:I,accordion:r,openMotion:s,expandIcon:d,header:m,collapsible:S,onItemClick:function(e){"disabled"!==S&&(i(e),null==h||h(e))},destroyInactivePanel:k}),p)}))}(e,t):(0,m.Z)(n).map((function(e,n){return function(e,n,t){if(!e)return null;var r=t.prefixCls,o=t.accordion,a=t.collapsible,l=t.destroyInactivePanel,i=t.onItemClick,c=t.activeKey,s=t.openMotion,d=t.expandIcon,p=e.key||String(n),g=e.props,m=g.header,f=g.headerClass,b=g.destroyInactivePanel,h=g.collapsible,v=g.onItemClick,$=!1;$=o?c[0]===p:c.indexOf(p)>-1;var x=null!=h?h:a,y={key:p,panelKey:p,header:m,headerClass:f,isActive:$,prefixCls:r,destroyInactivePanel:null!=b?b:l,openMotion:s,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(i(e),null==v||v(e))},expandIcon:d,collapsible:x};return"string"==typeof e.type?e:(Object.keys(y).forEach((function(e){void 0===y[e]&&delete y[e]})),u.cloneElement(e,y))}(e,n,t)}))},k=t(47413);function I(e){var n=e;if(!Array.isArray(n)){var t=(0,s.Z)(n);n="number"===t||"string"===t?[n]:[]}return n.map((function(e){return String(e)}))}var E=u.forwardRef((function(e,n){var t=e.prefixCls,r=void 0===t?"rc-collapse":t,o=e.destroyInactivePanel,s=void 0!==o&&o,g=e.style,m=e.accordion,f=e.className,b=e.children,h=e.collapsible,v=e.openMotion,$=e.expandIcon,x=e.activeKey,y=e.defaultActiveKey,C=e.onChange,E=e.items,w=a()(r,f),O=(0,d.Z)([],{value:x,onChange:function(e){return null==C?void 0:C(e)},defaultValue:y,postState:I}),N=(0,c.Z)(O,2),P=N[0],j=N[1];(0,p.ZP)(!b,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var z=S(E,b,{prefixCls:r,accordion:m,openMotion:v,expandIcon:$,collapsible:h,destroyInactivePanel:s,onItemClick:function(e){return j((function(){return m?P[0]===e?[]:[e]:P.indexOf(e)>-1?P.filter((function(n){return n!==e})):[].concat((0,i.Z)(P),[e])}))},activeKey:P});return u.createElement("div",(0,l.Z)({ref:n,className:w,style:g,role:m?"tablist":void 0},(0,k.Z)(e,{aria:!0,data:!0})),z)})),w=Object.assign(E,{Panel:y}),O=w,N=(w.Panel,t(55405)),P=t(62892),j=t(92343),z=t(36355),Z=t(19716);var M=u.forwardRef(((e,n)=>{const{getPrefixCls:t}=u.useContext(z.E_),{prefixCls:r,className:o,showArrow:l=!0}=e,i=t("collapse",r),c=a()({[`${i}-no-arrow`]:!l},o);return u.createElement(O.Panel,Object.assign({ref:n},e,{prefixCls:i,className:c}))})),T=t(17313),B=t(8378),R=t(83116),H=t(37613);const A=e=>{const{componentCls:n,contentBg:t,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:l,collapseHeaderPaddingLG:i,collapsePanelBorderRadius:c,lineWidth:s,lineType:d,colorBorder:p,colorText:u,colorTextHeading:g,colorTextDisabled:m,fontSize:f,fontSizeLG:b,lineHeight:h,marginSM:v,paddingSM:$,paddingLG:x,paddingXS:y,motionDurationSlow:C,fontSizeIcon:S,contentPadding:k}=e,I=`${s}px ${d} ${p}`;return{[n]:Object.assign(Object.assign({},(0,T.Wf)(e)),{backgroundColor:o,border:I,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${n}-item`]:{borderBottom:I,"&:last-child":{[`\n &,\n & > ${n}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${n}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:g,lineHeight:h,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${n}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${n}-expand-icon`]:{height:f*h,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${n}-arrow`]:Object.assign(Object.assign({},(0,T.Ro)()),{fontSize:S,svg:{transition:`transform ${C}`}}),[`${n}-header-text`]:{marginInlineEnd:"auto"}},[`${n}-header-collapsible-only`]:{cursor:"default",[`${n}-header-text`]:{flex:"none",cursor:"pointer"}},[`${n}-icon-collapsible-only`]:{cursor:"default",[`${n}-expand-icon`]:{cursor:"pointer"}}},[`${n}-content`]:{color:u,backgroundColor:t,borderTop:I,[`& > ${n}-content-box`]:{padding:k},"&-hidden":{display:"none"}},"&-small":{[`> ${n}-item`]:{[`> ${n}-header`]:{padding:l,paddingInlineStart:y,[`> ${n}-expand-icon`]:{marginInlineStart:$-y}},[`> ${n}-content > ${n}-content-box`]:{padding:$}}},"&-large":{[`> ${n}-item`]:{fontSize:b,[`> ${n}-header`]:{padding:i,paddingInlineStart:r,[`> ${n}-expand-icon`]:{height:b*h,marginInlineStart:x-r}},[`> ${n}-content > ${n}-content-box`]:{padding:x}}},[`${n}-item:last-child`]:{[`> ${n}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${n}-item-disabled > ${n}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${n}-icon-position-end`]:{[`& > ${n}-item`]:{[`> ${n}-header`]:{[`${n}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},W=e=>{const{componentCls:n}=e;return{[`${n}-rtl`]:{[`> ${n}-item > ${n}-header ${n}-arrow svg`]:{transform:"rotate(180deg)"}}}},L=e=>{const{componentCls:n,headerBg:t,paddingXXS:r,colorBorder:o}=e;return{[`${n}-borderless`]:{backgroundColor:t,border:0,[`> ${n}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${n}-item:last-child,\n > ${n}-item:last-child ${n}-header\n `]:{borderRadius:0},[`> ${n}-item:last-child`]:{borderBottom:0},[`> ${n}-item > ${n}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${n}-item > ${n}-content > ${n}-content-box`]:{paddingTop:r}}}},D=e=>{const{componentCls:n,paddingSM:t}=e;return{[`${n}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${n}-item`]:{borderBottom:0,[`> ${n}-content`]:{backgroundColor:"transparent",border:0,[`> ${n}-content-box`]:{paddingBlock:t}}}}}};var F=(0,R.Z)("Collapse",(e=>{const n=(0,H.TS)(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[A(n),L(n),D(n),W(n),(0,B.Z)(n)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const G=u.forwardRef(((e,n)=>{const{getPrefixCls:t,direction:o,collapse:l}=u.useContext(z.E_),{prefixCls:i,className:c,rootClassName:s,style:d,bordered:p=!0,ghost:g,size:f,expandIconPosition:b="start",children:h,expandIcon:v}=e,$=(0,Z.Z)((e=>{var n;return null!==(n=null!=f?f:e)&&void 0!==n?n:"middle"})),x=t("collapse",i),y=t(),[C,S]=F(x),k=u.useMemo((()=>"left"===b?"start":"right"===b?"end":b),[b]),I=a()(`${x}-icon-position-${k}`,{[`${x}-borderless`]:!p,[`${x}-rtl`]:"rtl"===o,[`${x}-ghost`]:!!g,[`${x}-${$}`]:"middle"!==$},null==l?void 0:l.className,c,s,S),E=Object.assign(Object.assign({},(0,P.Z)(y)),{motionAppear:!1,leavedClassName:`${x}-content-hidden`}),w=u.useMemo((()=>h?(0,m.Z)(h).map(((e,n)=>{var t,r;if(null===(t=e.props)||void 0===t?void 0:t.disabled){const t=null!==(r=e.key)&&void 0!==r?r:String(n),{disabled:o,collapsible:a}=e.props,l=Object.assign(Object.assign({},(0,N.Z)(e.props,["disabled"])),{key:t,collapsible:null!=a?a:o?"disabled":void 0});return(0,j.Tm)(e,l)}return e})):null),[h]);return C(u.createElement(O,Object.assign({ref:n,openMotion:E},(0,N.Z)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=v?v(e):u.createElement(r.Z,{rotate:e.isActive?90:void 0});return(0,j.Tm)(n,(()=>({className:a()(n.props.className,`${x}-arrow`)})))},prefixCls:x,className:I,style:Object.assign(Object.assign({},null==l?void 0:l.style),d)}),w))}));var K=Object.assign(G,{Panel:M})},28103:function(e,n,t){t.d(n,{Z:function(){return g}});var r=t(92310),o=t.n(r),a=t(59301),l=t(36355),i=t(17313),c=t(83116),s=t(37613);const d=e=>{const{componentCls:n,sizePaddingEdgeHorizontal:t,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:l,verticalMarginInline:c}=e;return{[n]:Object.assign(Object.assign({},(0,i.Wf)(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:c,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${n}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${n}-with-text-left`]:{"&::before":{width:100*l+"%"},"&::after":{width:100-100*l+"%"}},[`&-horizontal${n}-with-text-right`]:{"&::before":{width:100-100*l+"%"},"&::after":{width:100*l+"%"}},[`${n}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${n}-with-text${n}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${n}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${n}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${n}-with-text-left${n}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${n}-inner-text`]:{paddingInlineStart:t}},[`&-horizontal${n}-with-text-right${n}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${n}-inner-text`]:{paddingInlineEnd:t}}})}};var p=(0,c.Z)("Divider",(e=>{const n=(0,s.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(n)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),u=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:t,divider:r}=a.useContext(l.E_),{prefixCls:i,type:c="horizontal",orientation:s="center",orientationMargin:d,className:g,rootClassName:m,children:f,dashed:b,plain:h,style:v}=e,$=u(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=n("divider",i),[y,C]=p(x),S=s.length>0?`-${s}`:s,k=!!f,I="left"===s&&null!=d,E="right"===s&&null!=d,w=o()(x,null==r?void 0:r.className,C,`${x}-${c}`,{[`${x}-with-text`]:k,[`${x}-with-text${S}`]:k,[`${x}-dashed`]:!!b,[`${x}-plain`]:!!h,[`${x}-rtl`]:"rtl"===t,[`${x}-no-default-orientation-margin-left`]:I,[`${x}-no-default-orientation-margin-right`]:E},g,m),O=a.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),N=Object.assign(Object.assign({},I&&{marginLeft:O}),E&&{marginRight:O});return y(a.createElement("div",Object.assign({className:w,style:Object.assign(Object.assign({},null==r?void 0:r.style),v)},$,{role:"separator"}),f&&"vertical"!==c&&a.createElement("span",{className:`${x}-inner-text`,style:N},f)))}},31797:function(e,n,t){t.d(n,{Z:function(){return y}});var r=t(59301),o=t(56762),a=t(92343),l=t(92310),i=t.n(l),c=t(36355),s=t(96865);var d=e=>{const{value:n,formatter:t,precision:o,decimalSeparator:a,groupSeparator:l="",prefixCls:i}=e;let c;if("function"==typeof t)c=t(n);else{const e=String(n),t=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(t&&"-"!==e){const e=t[1];let n=t[2]||"0",s=t[4]||"";n=n.replace(/\B(?=(\d{3})+(?!\d))/g,l),"number"==typeof o&&(s=s.padEnd(o,"0").slice(0,o>0?o:0)),s&&(s=`${a}${s}`),c=[r.createElement("span",{key:"int",className:`${i}-content-value-int`},e,n),s&&r.createElement("span",{key:"decimal",className:`${i}-content-value-decimal`},s)]}else c=e}return r.createElement("span",{className:`${i}-content-value`},c)},p=t(17313),u=t(83116),g=t(37613);const m=e=>{const{componentCls:n,marginXXS:t,padding:r,colorTextDescription:o,titleFontSize:a,colorTextHeading:l,contentFontSize:i,fontFamily:c}=e;return{[`${n}`]:Object.assign(Object.assign({},(0,p.Wf)(e)),{[`${n}-title`]:{marginBottom:t,color:o,fontSize:a},[`${n}-skeleton`]:{paddingTop:r},[`${n}-content`]:{color:l,fontSize:i,fontFamily:c,[`${n}-content-value`]:{display:"inline-block",direction:"ltr"},[`${n}-content-prefix, ${n}-content-suffix`]:{display:"inline-block"},[`${n}-content-prefix`]:{marginInlineEnd:t},[`${n}-content-suffix`]:{marginInlineStart:t}}})}};var f=(0,u.Z)("Statistic",(e=>{const n=(0,g.TS)(e,{});return[m(n)]}),(e=>{const{fontSizeHeading3:n,fontSize:t}=e;return{titleFontSize:t,contentFontSize:n}}));var b=e=>{const{prefixCls:n,className:t,rootClassName:o,style:a,valueStyle:l,value:p=0,title:u,valueRender:g,prefix:m,suffix:b,loading:h=!1,onMouseEnter:v,onMouseLeave:$,decimalSeparator:x=".",groupSeparator:y=","}=e,{getPrefixCls:C,direction:S,statistic:k}=r.useContext(c.E_),I=C("statistic",n),[E,w]=f(I),O=r.createElement(d,Object.assign({decimalSeparator:x,groupSeparator:y,prefixCls:I},e,{value:p})),N=i()(I,{[`${I}-rtl`]:"rtl"===S},null==k?void 0:k.className,t,o,w);return E(r.createElement("div",{className:N,style:Object.assign(Object.assign({},null==k?void 0:k.style),a),onMouseEnter:v,onMouseLeave:$},u&&r.createElement("div",{className:`${I}-title`},u),r.createElement(s.Z,{paragraph:!1,loading:h,className:`${I}-skeleton`},r.createElement("div",{style:l,className:`${I}-content`},m&&r.createElement("span",{className:`${I}-content-prefix`},m),g?g(O):O,b&&r.createElement("span",{className:`${I}-content-suffix`},b)))))};const h=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function v(e,n){const{format:t=""}=n,r=new Date(e).getTime(),o=Date.now();return function(e,n){let t=e;const r=/\[[^\]]*]/g,o=(n.match(r)||[]).map((e=>e.slice(1,-1))),a=n.replace(r,"[]"),l=h.reduce(((e,n)=>{let[r,o]=n;if(e.includes(r)){const n=Math.floor(t/o);return t-=n*o,e.replace(new RegExp(`${r}+`,"g"),(e=>{const t=e.length;return n.toString().padStart(t,"0")}))}return e}),a);let i=0;return l.replace(r,(()=>{const e=o[i];return i+=1,e}))}(Math.max(r-o,0),t)}const $=e=>{const{value:n,format:t="HH:mm:ss",onChange:l,onFinish:i}=e,c=(0,o.Z)(),s=r.useRef(null),d=()=>{const e=function(e){return new Date(e).getTime()}(n);e>=Date.now()&&(s.current=setInterval((()=>{c(),null==l||l(e-Date.now()),e(d(),()=>{s.current&&(clearInterval(s.current),s.current=null)})),[n]);return r.createElement(b,Object.assign({},e,{valueRender:e=>(0,a.Tm)(e,{title:void 0}),formatter:(e,n)=>v(e,Object.assign(Object.assign({},n),{format:t}))}))};var x=r.memo($);b.Countdown=x;var y=b},12563:function(e,n,t){t.d(n,{Z:function(){return E}});var r=t(59301),o=t(51638),a=t(92310),l=t.n(a),i=t(36785),c=t(47729),s=t(14088),d=t(36355),p=t(17313),u=t(37613),g=t(83116);const m=e=>{const{lineWidth:n,fontSizeIcon:t}=e,r=e.fontSizeSM,o=e.lineHeightSM*r+"px";return(0,u.TS)(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:t-2*n,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},f=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var b=(0,g.Z)("Tag",(e=>(e=>{const{paddingXXS:n,lineWidth:t,tagPaddingHorizontal:r,componentCls:o}=e,a=r-t,l=n-t;return{[o]:Object.assign(Object.assign({},(0,p.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(m(e))),f),h=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,style:t,className:o,checked:a,onChange:i,onClick:c}=e,s=h(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:p,tag:u}=r.useContext(d.E_),g=p("tag",n),[m,f]=b(g),v=l()(g,`${g}-checkable`,{[`${g}-checkable-checked`]:a},null==u?void 0:u.className,o,f);return m(r.createElement("span",Object.assign({},s,{style:Object.assign(Object.assign({},t),null==u?void 0:u.style),className:v,onClick:e=>{null==i||i(!a),null==c||c(e)}})))},$=t(45157);var x=(0,g.b)(["Tag","preset"],(e=>(e=>(0,$.Z)(e,((n,t)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:l}=t;return{[`${e.componentCls}-${n}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(m(e))),f);const y=(e,n,t)=>{const r="string"!=typeof(o=t)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${n}`]:{color:e[`color${t}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var C=(0,g.b)(["Tag","status"],(e=>{const n=m(e);return[y(n,"success","Success"),y(n,"processing","Info"),y(n,"error","Error"),y(n,"warning","Warning")]}),f),S=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:a,rootClassName:p,style:u,children:g,icon:m,color:f,onClose:h,closeIcon:v,closable:$,bordered:y=!0}=e,k=S(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:I,direction:E,tag:w}=r.useContext(d.E_),[O,N]=r.useState(!0);r.useEffect((()=>{"visible"in k&&N(k.visible)}),[k.visible]);const P=(0,i.o2)(f),j=(0,i.yT)(f),z=P||j,Z=Object.assign(Object.assign({backgroundColor:f&&!z?f:void 0},null==w?void 0:w.style),u),M=I("tag",t),[T,B]=b(M),R=l()(M,null==w?void 0:w.className,{[`${M}-${f}`]:z,[`${M}-has-color`]:f&&!z,[`${M}-hidden`]:!O,[`${M}-rtl`]:"rtl"===E,[`${M}-borderless`]:!y},a,p,B),H=e=>{e.stopPropagation(),null==h||h(e),e.defaultPrevented||N(!1)},[,A]=(0,c.Z)($,v,(e=>null===e?r.createElement(o.Z,{className:`${M}-close-icon`,onClick:H}):r.createElement("span",{className:`${M}-close-icon`,onClick:H},e)),null,!1),W="function"==typeof k.onClick||g&&"a"===g.type,L=m||null,D=L?r.createElement(r.Fragment,null,L,g&&r.createElement("span",null,g)):g,F=r.createElement("span",Object.assign({},k,{ref:n,className:R,style:Z}),D,A,P&&r.createElement(x,{key:"preset",prefixCls:M}),j&&r.createElement(C,{key:"status",prefixCls:M}));return T(W?r.createElement(s.Z,{component:"Tag"},F):F)},I=r.forwardRef(k);I.CheckableTag=v;var E=I}}]); \ No newline at end of file diff --git a/41228.08eac97c.async.js b/41228.08eac97c.async.js new file mode 100644 index 0000000000..0138e29cf7 --- /dev/null +++ b/41228.08eac97c.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[41228],{94172:function(e,n,t){t.d(n,{Z:function(){return a}});var r=t(5891),o=t(59301),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"},l=t(22589),u=function(e,n){return o.createElement(l.Z,(0,r.Z)({},e,{ref:n,icon:i}))};var a=o.forwardRef(u)},65742:function(e,n,t){t.d(n,{iz:function(){return We},ck:function(){return Ze},BW:function(){return Be},sN:function(){return Ze},Wd:function(){return _e},ZP:function(){return Qe},Xl:function(){return x}});var r=t(5891),o=t(80962),i=t(57259),l=t(26390),u=t(29043),a=t(19149),c=t(92310),s=t.n(c),f=t(1439),d=t(71366),v=t(20176),p=t(85870),m=t(59301),y=t(4676),b=m.createContext(null);function h(e,n){return void 0===e?null:"".concat(e,"-").concat(n)}function Z(e){return h(m.useContext(b),e)}var g=t(19544),C=["children","locked"],E=m.createContext(null);function k(e){var n=e.children,t=e.locked,r=(0,a.Z)(e,C),o=m.useContext(E),l=(0,g.Z)((function(){return e=o,n=r,t=(0,i.Z)({},e),Object.keys(n).forEach((function(e){var r=n[e];void 0!==r&&(t[e]=r)})),t;var e,n,t}),[o,r],(function(e,n){return!(t||e[0]===n[0]&&(0,v.Z)(e[1],n[1],!0))}));return m.createElement(E.Provider,{value:l},n)}var M=[],w=m.createContext(null);function I(){return m.useContext(w)}var S=m.createContext(M);function x(e){var n=m.useContext(S);return m.useMemo((function(){return void 0!==e?[].concat((0,l.Z)(n),[e]):n}),[n,e])}var K=m.createContext(null),P=m.createContext({}),N=t(57840);function R(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,N.Z)(e)){var t=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(t)||e.isContentEditable||"a"===t&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),l=null;return o&&!Number.isNaN(i)?l=i:r&&null===l&&(l=0),r&&e.disabled&&(l=null),null!==l&&(l>=0||n&&l<0)}return!1}function A(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=(0,l.Z)(e.querySelectorAll("*")).filter((function(e){return R(e,n)}));return R(e,n)&&t.unshift(e),t}var O=t(20287),D=t(71783),T=O.Z.LEFT,L=O.Z.RIGHT,_=O.Z.UP,z=O.Z.DOWN,V=O.Z.ENTER,F=O.Z.ESC,j=O.Z.HOME,B=O.Z.END,W=[_,z,T,L];function H(e,n){return A(e,!0).filter((function(e){return n.has(e)}))}function q(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=H(e,n),i=o.length,l=o.findIndex((function(e){return t===e}));return r<0?-1===l?l=i-1:l-=1:r>0&&(l+=1),o[l=(l+i)%i]}var G=function(e,n){var t=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(h(n,e),"']"));i&&(t.add(i),o.set(i,e),r.set(e,i))})),{elements:t,key2element:r,element2key:o}};function U(e,n,t,r,i,l,u,a,c,s){var f=m.useRef(),d=m.useRef();d.current=n;var v=function(){D.Z.cancel(f.current)};return m.useEffect((function(){return function(){v()}}),[]),function(p){var m=p.which;if([].concat(W,[V,F,j,B]).includes(m)){var y=l(),b=G(y,r),h=b,Z=h.elements,g=h.key2element,C=h.element2key,E=function(e,n){for(var t=e||document.activeElement;t;){if(n.has(t))return t;t=t.parentElement}return null}(g.get(n),Z),k=C.get(E),M=function(e,n,t,r){var i,l,u,a,c="prev",s="next",f="children",d="parent";if("inline"===e&&r===V)return{inlineTrigger:!0};var v=(i={},(0,o.Z)(i,_,c),(0,o.Z)(i,z,s),i),p=(l={},(0,o.Z)(l,T,t?s:c),(0,o.Z)(l,L,t?c:s),(0,o.Z)(l,z,f),(0,o.Z)(l,V,f),l),m=(u={},(0,o.Z)(u,_,c),(0,o.Z)(u,z,s),(0,o.Z)(u,V,f),(0,o.Z)(u,F,d),(0,o.Z)(u,T,t?f:d),(0,o.Z)(u,L,t?d:f),u);switch(null===(a={inline:v,horizontal:p,vertical:m,inlineSub:v,horizontalSub:m,verticalSub:m}["".concat(e).concat(n?"":"Sub")])||void 0===a?void 0:a[r]){case c:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}(e,1===u(k,!0).length,t,m);if(!M&&m!==j&&m!==B)return;(W.includes(m)||[j,B].includes(m))&&p.preventDefault();var w=function(e){if(e){var n=e,t=e.querySelector("a");null!=t&&t.getAttribute("href")&&(n=t);var r=C.get(e);a(r),v(),f.current=(0,D.Z)((function(){d.current===r&&n.focus()}))}};if([j,B].includes(m)||M.sibling||!E){var I,S,x=H(I=E&&"inline"!==e?function(e){for(var n=e;n;){if(n.getAttribute("data-menu-list"))return n;n=n.parentElement}return null}(E):i.current,Z);S=m===j?x[0]:m===B?x[x.length-1]:q(I,Z,E,M.offset),w(S)}else if(M.inlineTrigger)c(k);else if(M.offset>0)c(k,!0),v(),f.current=(0,D.Z)((function(){b=G(y,r);var e=E.getAttribute("aria-controls"),n=q(document.getElementById(e),b.elements);w(n)}),5);else if(M.offset<0){var K=u(k,!0),P=K[K.length-2],N=g.get(P);c(P,!1),w(N)}}null==s||s(p)}}var X="__RC_UTIL_PATH_SPLIT__",Y=function(e){return e.join(X)},J="rc-menu-more";function Q(){var e=m.useState({}),n=(0,u.Z)(e,2)[1],t=(0,m.useRef)(new Map),r=(0,m.useRef)(new Map),o=m.useState([]),i=(0,u.Z)(o,2),a=i[0],c=i[1],s=(0,m.useRef)(0),f=(0,m.useRef)(!1),d=(0,m.useCallback)((function(e,o){var i=Y(o);r.current.set(i,e),t.current.set(e,i),s.current+=1;var l,u=s.current;l=function(){u===s.current&&(f.current||n({}))},Promise.resolve().then(l)}),[]),v=(0,m.useCallback)((function(e,n){var o=Y(n);r.current.delete(o),t.current.delete(e)}),[]),p=(0,m.useCallback)((function(e){c(e)}),[]),y=(0,m.useCallback)((function(e,n){var r=t.current.get(e)||"",o=r.split(X);return n&&a.includes(o[0])&&o.unshift(J),o}),[a]),b=(0,m.useCallback)((function(e,n){return e.some((function(e){return y(e,!0).includes(n)}))}),[y]),h=(0,m.useCallback)((function(e){var n="".concat(t.current.get(e)).concat(X),o=new Set;return(0,l.Z)(r.current.keys()).forEach((function(e){e.startsWith(n)&&o.add(r.current.get(e))})),o}),[]);return m.useEffect((function(){return function(){f.current=!0}}),[]),{registerPath:d,unregisterPath:v,refreshOverflowKeys:p,isSubPathKey:b,getKeyPath:y,getKeys:function(){var e=(0,l.Z)(t.current.keys());return a.length&&e.push(J),e},getSubPathKeys:h}}function $(e){var n=m.useRef(e);n.current=e;var t=m.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o1&&(M.motionAppear=!1);var w=M.onVisibleChanged;return M.onVisibleChanged=function(e){return y.current||e||g(!0),null==w?void 0:w(e)},Z?null:m.createElement(k,{mode:a,locked:!y.current},m.createElement(Ae.default,(0,r.Z)({visible:C},M,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(e){var t=e.className,r=e.style;return m.createElement(ke,{id:n,className:t,style:r},l)})))}var De=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Te=["active"],Le=function(e){var n,t=e.style,l=e.className,c=e.title,d=e.eventKey,v=(e.warnKey,e.disabled),p=e.internalPopupClose,y=e.children,b=e.itemIcon,h=e.expandIcon,g=e.popupClassName,C=e.popupOffset,M=e.popupStyle,w=e.onClick,I=e.onMouseEnter,S=e.onMouseLeave,N=e.onTitleClick,R=e.onTitleMouseEnter,A=e.onTitleMouseLeave,O=(0,a.Z)(e,De),D=Z(d),T=m.useContext(E),L=T.prefixCls,_=T.mode,z=T.openKeys,V=T.disabled,F=T.overflowDisabled,j=T.activeKey,B=T.selectedKeys,W=T.itemIcon,H=T.expandIcon,q=T.onItemClick,G=T.onOpenChange,U=T.onActive,X=m.useContext(P)._internalRenderSubMenuItem,Y=m.useContext(K).isSubPathKey,J=x(),Q="".concat(L,"-submenu"),ee=V||v,ne=m.useRef(),te=m.useRef();var re=null!=b?b:W,oe=null!=h?h:H,ie=z.includes(d),le=!F&&ie,ue=Y(B,d),fe=ae(d,ee,R,A),ve=fe.active,pe=(0,a.Z)(fe,Te),me=m.useState(!1),ye=(0,u.Z)(me,2),be=ye[0],he=ye[1],Ze=function(e){ee||he(e)},ge=m.useMemo((function(){return ve||"inline"!==_&&(be||Y([j],d))}),[_,ve,j,be,d,Y]),Ce=ce(J.length),Ee=$((function(e){null==w||w(de(e)),q(e)})),Me=D&&"".concat(D,"-popup"),we=m.createElement("div",(0,r.Z)({role:"menuitem",style:Ce,className:"".concat(Q,"-title"),tabIndex:ee?null:-1,ref:ne,title:"string"==typeof c?c:null,"data-menu-id":F&&D?null:D,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":Me,"aria-disabled":ee,onClick:function(e){ee||(null==N||N({key:d,domEvent:e}),"inline"===_&&G(d,!ie))},onFocus:function(){U(d)}},pe),c,m.createElement(se,{icon:"horizontal"!==_?oe:void 0,props:(0,i.Z)((0,i.Z)({},e),{},{isOpen:le,isSubMenu:!0})},m.createElement("i",{className:"".concat(Q,"-arrow")}))),Ie=m.useRef(_);if("inline"!==_&&J.length>1?Ie.current="vertical":Ie.current=_,!F){var Se=Ie.current;we=m.createElement(Re,{mode:Se,prefixCls:Q,visible:!p&&le&&"inline"!==_,popupClassName:g,popupOffset:C,popupStyle:M,popup:m.createElement(k,{mode:"horizontal"===Se?"vertical":Se},m.createElement(ke,{id:Me,ref:te},y)),disabled:ee,onVisibleChange:function(e){"inline"!==_&&G(d,e)}},we)}var xe=m.createElement(f.Z.Item,(0,r.Z)({role:"none"},O,{component:"li",style:t,className:s()(Q,"".concat(Q,"-").concat(_),l,(n={},(0,o.Z)(n,"".concat(Q,"-open"),le),(0,o.Z)(n,"".concat(Q,"-active"),ge),(0,o.Z)(n,"".concat(Q,"-selected"),ue),(0,o.Z)(n,"".concat(Q,"-disabled"),ee),n)),onMouseEnter:function(e){Ze(!0),null==I||I({key:d,domEvent:e})},onMouseLeave:function(e){Ze(!1),null==S||S({key:d,domEvent:e})}}),we,!F&&m.createElement(Oe,{id:Me,open:le,keyPath:J},y));return X&&(xe=X(xe,e,{selected:ue,active:ge,open:le,disabled:ee})),m.createElement(k,{onItemClick:Ee,mode:"horizontal"===_?"vertical":_,itemIcon:re,expandIcon:oe},xe)};function _e(e){var n,t=e.eventKey,r=e.children,o=x(t),i=we(r,o),l=I();return m.useEffect((function(){if(l)return l.registerPath(t,o),function(){l.unregisterPath(t,o)}}),[o]),n=l?i:m.createElement(Le,e,i),m.createElement(S.Provider,{value:o},n)}var ze=t(80665),Ve=["className","title","eventKey","children"],Fe=["children"],je=function(e){var n=e.className,t=e.title,o=(e.eventKey,e.children),i=(0,a.Z)(e,Ve),l=m.useContext(E).prefixCls,u="".concat(l,"-item-group");return m.createElement("li",(0,r.Z)({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:s()(u,n)}),m.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:"string"==typeof t?t:void 0},t),m.createElement("ul",{role:"group",className:"".concat(u,"-list")},o))};function Be(e){var n=e.children,t=(0,a.Z)(e,Fe),r=we(n,x(t.eventKey));return I()?r:m.createElement(je,(0,le.Z)(t,["warnKey"]),r)}function We(e){var n=e.className,t=e.style,r=m.useContext(E).prefixCls;return I()?null:m.createElement("li",{role:"separator",className:s()("".concat(r,"-item-divider"),n),style:t})}var He=["label","children","key","type"];function qe(e){return(e||[]).map((function(e,n){if(e&&"object"===(0,ze.Z)(e)){var t=e,o=t.label,i=t.children,l=t.key,u=t.type,c=(0,a.Z)(t,He),s=null!=l?l:"tmp-".concat(n);return i||"group"===u?"group"===u?m.createElement(Be,(0,r.Z)({key:s},c,{title:o}),qe(i)):m.createElement(_e,(0,r.Z)({key:s},c,{title:o}),qe(i)):"divider"===u?m.createElement(We,(0,r.Z)({key:s},c)):m.createElement(Ze,(0,r.Z)({key:s},c),o)}return null})).filter((function(e){return e}))}function Ge(e,n,t){var r=e;return n&&(r=qe(n)),we(r,t)}var Ue=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Xe=[],Ye=m.forwardRef((function(e,n){var t,c,p=e,h=p.prefixCls,Z=void 0===h?"rc-menu":h,g=p.rootClassName,C=p.style,E=p.className,M=p.tabIndex,I=void 0===M?0:M,S=p.items,x=p.children,N=p.direction,R=p.id,A=p.mode,O=void 0===A?"vertical":A,D=p.inlineCollapsed,T=p.disabled,L=p.disabledOverflow,_=p.subMenuOpenDelay,z=void 0===_?.1:_,V=p.subMenuCloseDelay,F=void 0===V?.1:V,j=p.forceSubMenuRender,B=p.defaultOpenKeys,W=p.openKeys,q=p.activeKey,X=p.defaultActiveFirst,Y=p.selectable,te=void 0===Y||Y,re=p.multiple,oe=void 0!==re&&re,ie=p.defaultSelectedKeys,le=p.selectedKeys,ue=p.onSelect,ae=p.onDeselect,ce=p.inlineIndent,se=void 0===ce?24:ce,fe=p.motion,ve=p.defaultMotions,pe=p.triggerSubMenuAction,me=void 0===pe?"hover":pe,ye=p.builtinPlacements,be=p.itemIcon,he=p.expandIcon,ge=p.overflowedIndicator,Ce=void 0===ge?"...":ge,Ee=p.overflowedIndicatorPopupClassName,ke=p.getPopupContainer,Me=p.onClick,we=p.onOpenChange,Ie=p.onKeyDown,Se=(p.openAnimation,p.openTransitionName,p._internalRenderMenuItem),xe=p._internalRenderSubMenuItem,Ke=(0,a.Z)(p,Ue),Pe=m.useMemo((function(){return Ge(x,S,Xe)}),[x,S]),Ne=m.useState(!1),Re=(0,u.Z)(Ne,2),Ae=Re[0],Oe=Re[1],De=m.useRef(),Te=function(e){var n=(0,d.Z)(e,{value:e}),t=(0,u.Z)(n,2),r=t[0],o=t[1];return m.useEffect((function(){ne+=1;var e="".concat(ee,"-").concat(ne);o("rc-menu-uuid-".concat(e))}),[]),r}(R),Le="rtl"===N;var ze=(0,d.Z)(B,{value:W,postState:function(e){return e||Xe}}),Ve=(0,u.Z)(ze,2),Fe=Ve[0],je=Ve[1],Be=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function t(){je(e),null==we||we(e)}n?(0,y.flushSync)(t):t()},We=m.useState(Fe),He=(0,u.Z)(We,2),qe=He[0],Ye=He[1],Je=m.useRef(!1),Qe=m.useMemo((function(){return"inline"!==O&&"vertical"!==O||!D?[O,!1]:["vertical",D]}),[O,D]),$e=(0,u.Z)(Qe,2),en=$e[0],nn=$e[1],tn="inline"===en,rn=m.useState(en),on=(0,u.Z)(rn,2),ln=on[0],un=on[1],an=m.useState(nn),cn=(0,u.Z)(an,2),sn=cn[0],fn=cn[1];m.useEffect((function(){un(en),fn(nn),Je.current&&(tn?je(qe):Be(Xe))}),[en,nn]);var dn=m.useState(0),vn=(0,u.Z)(dn,2),pn=vn[0],mn=vn[1],yn=pn>=Pe.length-1||"horizontal"!==ln||L;m.useEffect((function(){tn&&Ye(Fe)}),[Fe]),m.useEffect((function(){return Je.current=!0,function(){Je.current=!1}}),[]);var bn=Q(),hn=bn.registerPath,Zn=bn.unregisterPath,gn=bn.refreshOverflowKeys,Cn=bn.isSubPathKey,En=bn.getKeyPath,kn=bn.getKeys,Mn=bn.getSubPathKeys,wn=m.useMemo((function(){return{registerPath:hn,unregisterPath:Zn}}),[hn,Zn]),In=m.useMemo((function(){return{isSubPathKey:Cn}}),[Cn]);m.useEffect((function(){gn(yn?Xe:Pe.slice(pn+1).map((function(e){return e.key})))}),[pn,yn]);var Sn=(0,d.Z)(q||X&&(null===(t=Pe[0])||void 0===t?void 0:t.key),{value:q}),xn=(0,u.Z)(Sn,2),Kn=xn[0],Pn=xn[1],Nn=$((function(e){Pn(e)})),Rn=$((function(){Pn(void 0)}));(0,m.useImperativeHandle)(n,(function(){return{list:De.current,focus:function(e){var n,t,r=kn(),o=G(r,Te),i=o.elements,l=o.key2element,u=o.element2key,a=H(De.current,i),c=null!=Kn?Kn:a[0]?u.get(a[0]):null===(n=Pe.find((function(e){return!e.props.disabled})))||void 0===n?void 0:n.key,s=l.get(c);c&&s&&(null==s||null===(t=s.focus)||void 0===t||t.call(s,e))}}}));var An=(0,d.Z)(ie||[],{value:le,postState:function(e){return Array.isArray(e)?e:null==e?Xe:[e]}}),On=(0,u.Z)(An,2),Dn=On[0],Tn=On[1],Ln=$((function(e){null==Me||Me(de(e)),function(e){if(te){var n,t=e.key,r=Dn.includes(t);n=oe?r?Dn.filter((function(e){return e!==t})):[].concat((0,l.Z)(Dn),[t]):[t],Tn(n);var o=(0,i.Z)((0,i.Z)({},e),{},{selectedKeys:n});r?null==ae||ae(o):null==ue||ue(o)}!oe&&Fe.length&&"inline"!==ln&&Be(Xe)}(e)})),_n=$((function(e,n){var t=Fe.filter((function(n){return n!==e}));if(n)t.push(e);else if("inline"!==ln){var r=Mn(e);t=t.filter((function(e){return!r.has(e)}))}(0,v.Z)(Fe,t,!0)||Be(t,!0)})),zn=U(ln,Kn,Le,Te,De,kn,En,Pn,(function(e,n){var t=null!=n?n:!Fe.includes(e);_n(e,t)}),Ie);m.useEffect((function(){Oe(!0)}),[]);var Vn=m.useMemo((function(){return{_internalRenderMenuItem:Se,_internalRenderSubMenuItem:xe}}),[Se,xe]),Fn="horizontal"!==ln||L?Pe:Pe.map((function(e,n){return m.createElement(k,{key:e.key,overflowDisabled:n>pn},e)})),jn=m.createElement(f.Z,(0,r.Z)({id:R,ref:De,prefixCls:"".concat(Z,"-overflow"),component:"ul",itemComponent:Ze,className:s()(Z,"".concat(Z,"-root"),"".concat(Z,"-").concat(ln),E,(c={},(0,o.Z)(c,"".concat(Z,"-inline-collapsed"),sn),(0,o.Z)(c,"".concat(Z,"-rtl"),Le),c),g),dir:N,style:C,role:"menu",tabIndex:I,data:Fn,renderRawItem:function(e){return e},renderRawRest:function(e){var n=e.length,t=n?Pe.slice(-n):null;return m.createElement(_e,{eventKey:J,title:Ce,disabled:yn,internalPopupClose:0===n,popupClassName:Ee},t)},maxCount:"horizontal"!==ln||L?f.Z.INVALIDATE:f.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){mn(e)},onKeyDown:zn},Ke));return m.createElement(P.Provider,{value:Vn},m.createElement(b.Provider,{value:Te},m.createElement(k,{prefixCls:Z,rootClassName:g,mode:ln,openKeys:Fe,rtl:Le,disabled:T,motion:Ae?fe:null,defaultMotions:Ae?ve:null,activeKey:Kn,onActive:Nn,onInactive:Rn,selectedKeys:Dn,inlineIndent:se,subMenuOpenDelay:z,subMenuCloseDelay:F,forceSubMenuRender:j,builtinPlacements:ye,triggerSubMenuAction:me,getPopupContainer:ke,itemIcon:be,expandIcon:he,onItemClick:Ln,onOpenChange:_n},m.createElement(K.Provider,{value:In},jn),m.createElement("div",{style:{display:"none"},"aria-hidden":!0},m.createElement(w.Provider,{value:wn},Pe)))))})),Je=Ye;Je.Item=Ze,Je.SubMenu=_e,Je.ItemGroup=Be,Je.Divider=We;var Qe=Je}}]); \ No newline at end of file diff --git a/41228.588f480d.async.js b/41228.588f480d.async.js deleted file mode 100644 index ab4f0eb98d..0000000000 --- a/41228.588f480d.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[41228],{94172:function(e,n,t){t.d(n,{Z:function(){return a}});var r=t(5891),o=t(59301),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"},l=t(22589),u=function(e,n){return o.createElement(l.Z,(0,r.Z)({},e,{ref:n,icon:i}))};var a=o.forwardRef(u)},65742:function(e,n,t){t.d(n,{iz:function(){return We},ck:function(){return Ze},BW:function(){return Be},sN:function(){return Ze},Wd:function(){return _e},ZP:function(){return Qe},Xl:function(){return x}});var r=t(5891),o=t(80962),i=t(57259),l=t(26390),u=t(29043),a=t(19149),c=t(92310),s=t.n(c),f=t(1439),d=t(71366),v=t(20176),p=t(85870),m=t(59301),y=t(4676),b=m.createContext(null);function h(e,n){return void 0===e?null:"".concat(e,"-").concat(n)}function Z(e){return h(m.useContext(b),e)}var g=t(19544),C=["children","locked"],E=m.createContext(null);function k(e){var n=e.children,t=e.locked,r=(0,a.Z)(e,C),o=m.useContext(E),l=(0,g.Z)((function(){return e=o,n=r,t=(0,i.Z)({},e),Object.keys(n).forEach((function(e){var r=n[e];void 0!==r&&(t[e]=r)})),t;var e,n,t}),[o,r],(function(e,n){return!(t||e[0]===n[0]&&(0,v.Z)(e[1],n[1],!0))}));return m.createElement(E.Provider,{value:l},n)}var M=[],w=m.createContext(null);function I(){return m.useContext(w)}var S=m.createContext(M);function x(e){var n=m.useContext(S);return m.useMemo((function(){return void 0!==e?[].concat((0,l.Z)(n),[e]):n}),[n,e])}var K=m.createContext(null),P=m.createContext({}),N=t(57840);function R(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,N.Z)(e)){var t=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(t)||e.isContentEditable||"a"===t&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),l=null;return o&&!Number.isNaN(i)?l=i:r&&null===l&&(l=0),r&&e.disabled&&(l=null),null!==l&&(l>=0||n&&l<0)}return!1}function A(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=(0,l.Z)(e.querySelectorAll("*")).filter((function(e){return R(e,n)}));return R(e,n)&&t.unshift(e),t}var O=t(20287),D=t(71783),T=O.Z.LEFT,L=O.Z.RIGHT,_=O.Z.UP,z=O.Z.DOWN,V=O.Z.ENTER,F=O.Z.ESC,j=O.Z.HOME,B=O.Z.END,W=[_,z,T,L];function H(e,n){return A(e,!0).filter((function(e){return n.has(e)}))}function q(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=H(e,n),i=o.length,l=o.findIndex((function(e){return t===e}));return r<0?-1===l?l=i-1:l-=1:r>0&&(l+=1),o[l=(l+i)%i]}var G=function(e,n){var t=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(h(n,e),"']"));i&&(t.add(i),o.set(i,e),r.set(e,i))})),{elements:t,key2element:r,element2key:o}};function U(e,n,t,r,i,l,u,a,c,s){var f=m.useRef(),d=m.useRef();d.current=n;var v=function(){D.Z.cancel(f.current)};return m.useEffect((function(){return function(){v()}}),[]),function(p){var m=p.which;if([].concat(W,[V,F,j,B]).includes(m)){var y=l(),b=G(y,r),h=b,Z=h.elements,g=h.key2element,C=h.element2key,E=function(e,n){for(var t=e||document.activeElement;t;){if(n.has(t))return t;t=t.parentElement}return null}(g.get(n),Z),k=C.get(E),M=function(e,n,t,r){var i,l,u,a,c="prev",s="next",f="children",d="parent";if("inline"===e&&r===V)return{inlineTrigger:!0};var v=(i={},(0,o.Z)(i,_,c),(0,o.Z)(i,z,s),i),p=(l={},(0,o.Z)(l,T,t?s:c),(0,o.Z)(l,L,t?c:s),(0,o.Z)(l,z,f),(0,o.Z)(l,V,f),l),m=(u={},(0,o.Z)(u,_,c),(0,o.Z)(u,z,s),(0,o.Z)(u,V,f),(0,o.Z)(u,F,d),(0,o.Z)(u,T,t?f:d),(0,o.Z)(u,L,t?d:f),u);switch(null===(a={inline:v,horizontal:p,vertical:m,inlineSub:v,horizontalSub:m,verticalSub:m}["".concat(e).concat(n?"":"Sub")])||void 0===a?void 0:a[r]){case c:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}(e,1===u(k,!0).length,t,m);if(!M&&m!==j&&m!==B)return;(W.includes(m)||[j,B].includes(m))&&p.preventDefault();var w=function(e){if(e){var n=e,t=e.querySelector("a");null!=t&&t.getAttribute("href")&&(n=t);var r=C.get(e);a(r),v(),f.current=(0,D.Z)((function(){d.current===r&&n.focus()}))}};if([j,B].includes(m)||M.sibling||!E){var I,S,x=H(I=E&&"inline"!==e?function(e){for(var n=e;n;){if(n.getAttribute("data-menu-list"))return n;n=n.parentElement}return null}(E):i.current,Z);S=m===j?x[0]:m===B?x[x.length-1]:q(I,Z,E,M.offset),w(S)}else if(M.inlineTrigger)c(k);else if(M.offset>0)c(k,!0),v(),f.current=(0,D.Z)((function(){b=G(y,r);var e=E.getAttribute("aria-controls"),n=q(document.getElementById(e),b.elements);w(n)}),5);else if(M.offset<0){var K=u(k,!0),P=K[K.length-2],N=g.get(P);c(P,!1),w(N)}}null==s||s(p)}}var X="__RC_UTIL_PATH_SPLIT__",Y=function(e){return e.join(X)},J="rc-menu-more";function Q(){var e=m.useState({}),n=(0,u.Z)(e,2)[1],t=(0,m.useRef)(new Map),r=(0,m.useRef)(new Map),o=m.useState([]),i=(0,u.Z)(o,2),a=i[0],c=i[1],s=(0,m.useRef)(0),f=(0,m.useRef)(!1),d=(0,m.useCallback)((function(e,o){var i=Y(o);r.current.set(i,e),t.current.set(e,i),s.current+=1;var l,u=s.current;l=function(){u===s.current&&(f.current||n({}))},Promise.resolve().then(l)}),[]),v=(0,m.useCallback)((function(e,n){var o=Y(n);r.current.delete(o),t.current.delete(e)}),[]),p=(0,m.useCallback)((function(e){c(e)}),[]),y=(0,m.useCallback)((function(e,n){var r=t.current.get(e)||"",o=r.split(X);return n&&a.includes(o[0])&&o.unshift(J),o}),[a]),b=(0,m.useCallback)((function(e,n){return e.some((function(e){return y(e,!0).includes(n)}))}),[y]),h=(0,m.useCallback)((function(e){var n="".concat(t.current.get(e)).concat(X),o=new Set;return(0,l.Z)(r.current.keys()).forEach((function(e){e.startsWith(n)&&o.add(r.current.get(e))})),o}),[]);return m.useEffect((function(){return function(){f.current=!0}}),[]),{registerPath:d,unregisterPath:v,refreshOverflowKeys:p,isSubPathKey:b,getKeyPath:y,getKeys:function(){var e=(0,l.Z)(t.current.keys());return a.length&&e.push(J),e},getSubPathKeys:h}}function $(e){var n=m.useRef(e);n.current=e;var t=m.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o1&&(M.motionAppear=!1);var w=M.onVisibleChanged;return M.onVisibleChanged=function(e){return y.current||e||g(!0),null==w?void 0:w(e)},Z?null:m.createElement(k,{mode:a,locked:!y.current},m.createElement(Ae.default,(0,r.Z)({visible:C},M,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(e){var t=e.className,r=e.style;return m.createElement(ke,{id:n,className:t,style:r},l)})))}var De=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Te=["active"],Le=function(e){var n,t=e.style,l=e.className,c=e.title,d=e.eventKey,v=(e.warnKey,e.disabled),p=e.internalPopupClose,y=e.children,b=e.itemIcon,h=e.expandIcon,g=e.popupClassName,C=e.popupOffset,M=e.popupStyle,w=e.onClick,I=e.onMouseEnter,S=e.onMouseLeave,N=e.onTitleClick,R=e.onTitleMouseEnter,A=e.onTitleMouseLeave,O=(0,a.Z)(e,De),D=Z(d),T=m.useContext(E),L=T.prefixCls,_=T.mode,z=T.openKeys,V=T.disabled,F=T.overflowDisabled,j=T.activeKey,B=T.selectedKeys,W=T.itemIcon,H=T.expandIcon,q=T.onItemClick,G=T.onOpenChange,U=T.onActive,X=m.useContext(P)._internalRenderSubMenuItem,Y=m.useContext(K).isSubPathKey,J=x(),Q="".concat(L,"-submenu"),ee=V||v,ne=m.useRef(),te=m.useRef();var re=null!=b?b:W,oe=null!=h?h:H,ie=z.includes(d),le=!F&&ie,ue=Y(B,d),fe=ae(d,ee,R,A),ve=fe.active,pe=(0,a.Z)(fe,Te),me=m.useState(!1),ye=(0,u.Z)(me,2),be=ye[0],he=ye[1],Ze=function(e){ee||he(e)},ge=m.useMemo((function(){return ve||"inline"!==_&&(be||Y([j],d))}),[_,ve,j,be,d,Y]),Ce=ce(J.length),Ee=$((function(e){null==w||w(de(e)),q(e)})),Me=D&&"".concat(D,"-popup"),we=m.createElement("div",(0,r.Z)({role:"menuitem",style:Ce,className:"".concat(Q,"-title"),tabIndex:ee?null:-1,ref:ne,title:"string"==typeof c?c:null,"data-menu-id":F&&D?null:D,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":Me,"aria-disabled":ee,onClick:function(e){ee||(null==N||N({key:d,domEvent:e}),"inline"===_&&G(d,!ie))},onFocus:function(){U(d)}},pe),c,m.createElement(se,{icon:"horizontal"!==_?oe:void 0,props:(0,i.Z)((0,i.Z)({},e),{},{isOpen:le,isSubMenu:!0})},m.createElement("i",{className:"".concat(Q,"-arrow")}))),Ie=m.useRef(_);if("inline"!==_&&J.length>1?Ie.current="vertical":Ie.current=_,!F){var Se=Ie.current;we=m.createElement(Re,{mode:Se,prefixCls:Q,visible:!p&&le&&"inline"!==_,popupClassName:g,popupOffset:C,popupStyle:M,popup:m.createElement(k,{mode:"horizontal"===Se?"vertical":Se},m.createElement(ke,{id:Me,ref:te},y)),disabled:ee,onVisibleChange:function(e){"inline"!==_&&G(d,e)}},we)}var xe=m.createElement(f.Z.Item,(0,r.Z)({role:"none"},O,{component:"li",style:t,className:s()(Q,"".concat(Q,"-").concat(_),l,(n={},(0,o.Z)(n,"".concat(Q,"-open"),le),(0,o.Z)(n,"".concat(Q,"-active"),ge),(0,o.Z)(n,"".concat(Q,"-selected"),ue),(0,o.Z)(n,"".concat(Q,"-disabled"),ee),n)),onMouseEnter:function(e){Ze(!0),null==I||I({key:d,domEvent:e})},onMouseLeave:function(e){Ze(!1),null==S||S({key:d,domEvent:e})}}),we,!F&&m.createElement(Oe,{id:Me,open:le,keyPath:J},y));return X&&(xe=X(xe,e,{selected:ue,active:ge,open:le,disabled:ee})),m.createElement(k,{onItemClick:Ee,mode:"horizontal"===_?"vertical":_,itemIcon:re,expandIcon:oe},xe)};function _e(e){var n,t=e.eventKey,r=e.children,o=x(t),i=we(r,o),l=I();return m.useEffect((function(){if(l)return l.registerPath(t,o),function(){l.unregisterPath(t,o)}}),[o]),n=l?i:m.createElement(Le,e,i),m.createElement(S.Provider,{value:o},n)}var ze=t(80665),Ve=["className","title","eventKey","children"],Fe=["children"],je=function(e){var n=e.className,t=e.title,o=(e.eventKey,e.children),i=(0,a.Z)(e,Ve),l=m.useContext(E).prefixCls,u="".concat(l,"-item-group");return m.createElement("li",(0,r.Z)({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:s()(u,n)}),m.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:"string"==typeof t?t:void 0},t),m.createElement("ul",{role:"group",className:"".concat(u,"-list")},o))};function Be(e){var n=e.children,t=(0,a.Z)(e,Fe),r=we(n,x(t.eventKey));return I()?r:m.createElement(je,(0,le.Z)(t,["warnKey"]),r)}function We(e){var n=e.className,t=e.style,r=m.useContext(E).prefixCls;return I()?null:m.createElement("li",{role:"separator",className:s()("".concat(r,"-item-divider"),n),style:t})}var He=["label","children","key","type"];function qe(e){return(e||[]).map((function(e,n){if(e&&"object"===(0,ze.Z)(e)){var t=e,o=t.label,i=t.children,l=t.key,u=t.type,c=(0,a.Z)(t,He),s=null!=l?l:"tmp-".concat(n);return i||"group"===u?"group"===u?m.createElement(Be,(0,r.Z)({key:s},c,{title:o}),qe(i)):m.createElement(_e,(0,r.Z)({key:s},c,{title:o}),qe(i)):"divider"===u?m.createElement(We,(0,r.Z)({key:s},c)):m.createElement(Ze,(0,r.Z)({key:s},c),o)}return null})).filter((function(e){return e}))}function Ge(e,n,t){var r=e;return n&&(r=qe(n)),we(r,t)}var Ue=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Xe=[],Ye=m.forwardRef((function(e,n){var t,c,p=e,h=p.prefixCls,Z=void 0===h?"rc-menu":h,g=p.rootClassName,C=p.style,E=p.className,M=p.tabIndex,I=void 0===M?0:M,S=p.items,x=p.children,N=p.direction,R=p.id,A=p.mode,O=void 0===A?"vertical":A,D=p.inlineCollapsed,T=p.disabled,L=p.disabledOverflow,_=p.subMenuOpenDelay,z=void 0===_?.1:_,V=p.subMenuCloseDelay,F=void 0===V?.1:V,j=p.forceSubMenuRender,B=p.defaultOpenKeys,W=p.openKeys,q=p.activeKey,X=p.defaultActiveFirst,Y=p.selectable,te=void 0===Y||Y,re=p.multiple,oe=void 0!==re&&re,ie=p.defaultSelectedKeys,le=p.selectedKeys,ue=p.onSelect,ae=p.onDeselect,ce=p.inlineIndent,se=void 0===ce?24:ce,fe=p.motion,ve=p.defaultMotions,pe=p.triggerSubMenuAction,me=void 0===pe?"hover":pe,ye=p.builtinPlacements,be=p.itemIcon,he=p.expandIcon,ge=p.overflowedIndicator,Ce=void 0===ge?"...":ge,Ee=p.overflowedIndicatorPopupClassName,ke=p.getPopupContainer,Me=p.onClick,we=p.onOpenChange,Ie=p.onKeyDown,Se=(p.openAnimation,p.openTransitionName,p._internalRenderMenuItem),xe=p._internalRenderSubMenuItem,Ke=(0,a.Z)(p,Ue),Pe=m.useMemo((function(){return Ge(x,S,Xe)}),[x,S]),Ne=m.useState(!1),Re=(0,u.Z)(Ne,2),Ae=Re[0],Oe=Re[1],De=m.useRef(),Te=function(e){var n=(0,d.Z)(e,{value:e}),t=(0,u.Z)(n,2),r=t[0],o=t[1];return m.useEffect((function(){ne+=1;var e="".concat(ee,"-").concat(ne);o("rc-menu-uuid-".concat(e))}),[]),r}(R),Le="rtl"===N;var ze=(0,d.Z)(B,{value:W,postState:function(e){return e||Xe}}),Ve=(0,u.Z)(ze,2),Fe=Ve[0],je=Ve[1],Be=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function t(){je(e),null==we||we(e)}n?(0,y.flushSync)(t):t()},We=m.useState(Fe),He=(0,u.Z)(We,2),qe=He[0],Ye=He[1],Je=m.useRef(!1),Qe=m.useMemo((function(){return"inline"!==O&&"vertical"!==O||!D?[O,!1]:["vertical",D]}),[O,D]),$e=(0,u.Z)(Qe,2),en=$e[0],nn=$e[1],tn="inline"===en,rn=m.useState(en),on=(0,u.Z)(rn,2),ln=on[0],un=on[1],an=m.useState(nn),cn=(0,u.Z)(an,2),sn=cn[0],fn=cn[1];m.useEffect((function(){un(en),fn(nn),Je.current&&(tn?je(qe):Be(Xe))}),[en,nn]);var dn=m.useState(0),vn=(0,u.Z)(dn,2),pn=vn[0],mn=vn[1],yn=pn>=Pe.length-1||"horizontal"!==ln||L;m.useEffect((function(){tn&&Ye(Fe)}),[Fe]),m.useEffect((function(){return Je.current=!0,function(){Je.current=!1}}),[]);var bn=Q(),hn=bn.registerPath,Zn=bn.unregisterPath,gn=bn.refreshOverflowKeys,Cn=bn.isSubPathKey,En=bn.getKeyPath,kn=bn.getKeys,Mn=bn.getSubPathKeys,wn=m.useMemo((function(){return{registerPath:hn,unregisterPath:Zn}}),[hn,Zn]),In=m.useMemo((function(){return{isSubPathKey:Cn}}),[Cn]);m.useEffect((function(){gn(yn?Xe:Pe.slice(pn+1).map((function(e){return e.key})))}),[pn,yn]);var Sn=(0,d.Z)(q||X&&(null===(t=Pe[0])||void 0===t?void 0:t.key),{value:q}),xn=(0,u.Z)(Sn,2),Kn=xn[0],Pn=xn[1],Nn=$((function(e){Pn(e)})),Rn=$((function(){Pn(void 0)}));(0,m.useImperativeHandle)(n,(function(){return{list:De.current,focus:function(e){var n,t,r=kn(),o=G(r,Te),i=o.elements,l=o.key2element,u=o.element2key,a=H(De.current,i),c=null!=Kn?Kn:a[0]?u.get(a[0]):null===(n=Pe.find((function(e){return!e.props.disabled})))||void 0===n?void 0:n.key,s=l.get(c);c&&s&&(null==s||null===(t=s.focus)||void 0===t||t.call(s,e))}}}));var An=(0,d.Z)(ie||[],{value:le,postState:function(e){return Array.isArray(e)?e:null==e?Xe:[e]}}),On=(0,u.Z)(An,2),Dn=On[0],Tn=On[1],Ln=$((function(e){null==Me||Me(de(e)),function(e){if(te){var n,t=e.key,r=Dn.includes(t);n=oe?r?Dn.filter((function(e){return e!==t})):[].concat((0,l.Z)(Dn),[t]):[t],Tn(n);var o=(0,i.Z)((0,i.Z)({},e),{},{selectedKeys:n});r?null==ae||ae(o):null==ue||ue(o)}!oe&&Fe.length&&"inline"!==ln&&Be(Xe)}(e)})),_n=$((function(e,n){var t=Fe.filter((function(n){return n!==e}));if(n)t.push(e);else if("inline"!==ln){var r=Mn(e);t=t.filter((function(e){return!r.has(e)}))}(0,v.Z)(Fe,t,!0)||Be(t,!0)})),zn=U(ln,Kn,Le,Te,De,kn,En,Pn,(function(e,n){var t=null!=n?n:!Fe.includes(e);_n(e,t)}),Ie);m.useEffect((function(){Oe(!0)}),[]);var Vn=m.useMemo((function(){return{_internalRenderMenuItem:Se,_internalRenderSubMenuItem:xe}}),[Se,xe]),Fn="horizontal"!==ln||L?Pe:Pe.map((function(e,n){return m.createElement(k,{key:e.key,overflowDisabled:n>pn},e)})),jn=m.createElement(f.Z,(0,r.Z)({id:R,ref:De,prefixCls:"".concat(Z,"-overflow"),component:"ul",itemComponent:Ze,className:s()(Z,"".concat(Z,"-root"),"".concat(Z,"-").concat(ln),E,(c={},(0,o.Z)(c,"".concat(Z,"-inline-collapsed"),sn),(0,o.Z)(c,"".concat(Z,"-rtl"),Le),c),g),dir:N,style:C,role:"menu",tabIndex:I,data:Fn,renderRawItem:function(e){return e},renderRawRest:function(e){var n=e.length,t=n?Pe.slice(-n):null;return m.createElement(_e,{eventKey:J,title:Ce,disabled:yn,internalPopupClose:0===n,popupClassName:Ee},t)},maxCount:"horizontal"!==ln||L?f.Z.INVALIDATE:f.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){mn(e)},onKeyDown:zn},Ke));return m.createElement(P.Provider,{value:Vn},m.createElement(b.Provider,{value:Te},m.createElement(k,{prefixCls:Z,rootClassName:g,mode:ln,openKeys:Fe,rtl:Le,disabled:T,motion:Ae?fe:null,defaultMotions:Ae?ve:null,activeKey:Kn,onActive:Nn,onInactive:Rn,selectedKeys:Dn,inlineIndent:se,subMenuOpenDelay:z,subMenuCloseDelay:F,forceSubMenuRender:j,builtinPlacements:ye,triggerSubMenuAction:me,getPopupContainer:ke,itemIcon:be,expandIcon:he,onItemClick:Ln,onOpenChange:_n},m.createElement(K.Provider,{value:In},jn),m.createElement("div",{style:{display:"none"},"aria-hidden":!0},m.createElement(w.Provider,{value:wn},Pe)))))})),Je=Ye;Je.Item=Ze,Je.SubMenu=_e,Je.ItemGroup=Be,Je.Divider=We;var Qe=Je}}]); \ No newline at end of file diff --git a/41910.3ccb486b.async.js b/41910.3ccb486b.async.js new file mode 100644 index 0000000000..36f8d85184 --- /dev/null +++ b/41910.3ccb486b.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[41910,13488,49166,63527],{20538:function(e,t,o){"use strict";o.d(t,{Z:function(){return a}});var n=o(5891),r=o(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},s=o(22589),l=function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:i}))};var a=r.forwardRef(l)},77578:function(e,t,o){"use strict";o.d(t,{Z:function(){return n}});const n=e=>e?"function"==typeof e?e():e:null},27666:function(e,t,o){"use strict";var n=o(26390),r=o(71783);t.Z=function(e){let t;const o=o=>()=>{t=null,e.apply(void 0,(0,n.Z)(o))},i=function(){if(null==t){for(var e=arguments.length,n=new Array(e),i=0;i{r.Z.cancel(t),t=null},i}},81228:function(e,t,o){"use strict";o.d(t,{Z:function(){return E}});var n=o(79545),r=o(68550),i=o(17928),s=o(7711),l=o(59301),a=o(92310),c=o.n(a),p=o(28647),u=o(55405),f=o(27666),d=o(36355),h=o(83116),m=o(37613);const v=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var g=(0,h.Z)("Affix",(e=>{const t=(0,m.TS)(e,{zIndexPopup:e.zIndexBase+10});return[v(t)]}));function y(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function b(e,t,o){if(void 0!==o&&t.top>e.top-o)return o+t.top}function x(e,t,o){if(void 0!==o&&t.bottom{const t=e.getTargetFunc(),o=null==t?void 0:t(),{prevTarget:n}=e.state;n!==o&&(C.forEach((t=>{null==n||n.removeEventListener(t,e.lazyUpdatePosition),null==o||o.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:o}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,o=e.getTargetFunc(),n=null==o?void 0:o();C.forEach((o=>{null==n||n.removeEventListener(o,e.lazyUpdatePosition),null==t||t.removeEventListener(o,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:o}=e.props;return void 0===t&&void 0===o?0:o},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:o}=e.state,{onChange:n}=e.props,r=e.getTargetFunc();if(t!==P.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!r)return;const i=e.getOffsetTop(),s=e.getOffsetBottom(),l=r();if(l){const t={status:P.None},r=y(e.placeholderNodeRef.current);if(0===r.top&&0===r.left&&0===r.width&&0===r.height)return;const a=y(l),c=b(r,a,i),p=x(r,a,s);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}):void 0!==p&&(t.affixStyle={position:"fixed",bottom:p,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}),t.lastAffix=!!t.affixStyle,n&&o!==t.lastAffix&&n(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:P.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,f.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,f.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:o}=e.state;if(t&&o){const n=e.getOffsetTop(),r=e.getOffsetBottom(),i=t();if(i&&e.placeholderNodeRef.current){const t=y(i),s=y(e.placeholderNodeRef.current),l=b(s,t,n),a=x(s,t,r);if(void 0!==l&&o.top===l||void 0!==a&&o.bottom===a)return}}e.prepareMeasure()})),e}return(0,r.Z)(o,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:w}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:o,rootClassName:n,children:r}=this.props,i=c()(e&&n,{[o]:!!e});let s=(0,u.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return l.createElement(p.Z,{onResize:this.updatePosition},l.createElement("div",Object.assign({},s,{ref:this.placeholderNodeRef}),e&&l.createElement("div",{style:t,"aria-hidden":"true"}),l.createElement("div",{className:i,ref:this.fixedNodeRef,style:e},l.createElement(p.Z,{onResize:this.updatePosition},r))))}}]),o}(l.Component);O.contextType=d.E_;var E=(0,l.forwardRef)(((e,t)=>{const{prefixCls:o,rootClassName:n}=e,{getPrefixCls:r}=(0,l.useContext)(d.E_),i=r("affix",o),[s,a]=g(i),p=Object.assign(Object.assign({},e),{affixPrefixCls:i,rootClassName:c()(n,a)});return s(l.createElement(O,Object.assign({},p,{ref:t})))}))},14478:function(e,t,o){"use strict";o.d(t,{Z:function(){return L}});var n=o(54745),r=o(92310),i=o.n(r),s=o(20287),l=o(71366),a=o(55405),c=o(59301),p=o(92343),u=o(36355),f=o(60324),d=o(92806),h=o(77578),m=o(3113),v=o(67797),g=o(9763),y=o(31724),b=o(39722),x=o(83116);var C=(0,x.Z)("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:o,antCls:n,zIndexPopup:r,colorText:i,colorWarning:s,marginXXS:l,marginXS:a,fontSize:c,fontWeightStrong:p,colorTextHeading:u}=e;return{[t]:{zIndex:r,[`&${n}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:a,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${o}`]:{color:s,fontSize:c,lineHeight:1,marginInlineEnd:a},[`${t}-title`]:{fontWeight:p,color:u,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:a}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}),{resetStyle:!1}),w=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,okButtonProps:o,cancelButtonProps:r,title:s,description:l,cancelText:a,okText:p,okType:f="primary",icon:b=c.createElement(n.Z,null),showCancel:x=!0,close:C,onConfirm:w,onCancel:P,onPopupClick:O}=e,{getPrefixCls:E}=c.useContext(u.E_),[S]=(0,g.Z)("Popconfirm",y.Z.Popconfirm),L=(0,h.Z)(s),T=(0,h.Z)(l);return c.createElement("div",{className:`${t}-inner-content`,onClick:O},c.createElement("div",{className:`${t}-message`},b&&c.createElement("span",{className:`${t}-message-icon`},b),c.createElement("div",{className:`${t}-message-text`},L&&c.createElement("div",{className:i()(`${t}-title`)},L),T&&c.createElement("div",{className:`${t}-description`},T))),c.createElement("div",{className:`${t}-buttons`},x&&c.createElement(m.ZP,Object.assign({onClick:P,size:"small"},r),null!=a?a:null==S?void 0:S.cancelText),c.createElement(d.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,v.n)(f)),o),actionFn:w,close:C,prefixCls:E("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},null!=p?p:null==S?void 0:S.okText)))};var O=e=>{const{prefixCls:t,placement:o,className:n,style:r}=e,s=w(e,["prefixCls","placement","className","style"]),{getPrefixCls:l}=c.useContext(u.E_),a=l("popconfirm",t),[p]=C(a);return p(c.createElement(b.ZP,{placement:o,className:i()(a,n),style:r,content:c.createElement(P,Object.assign({prefixCls:a},s))}))},E=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:o,placement:r="top",trigger:d="click",okType:h="primary",icon:m=c.createElement(n.Z,null),children:v,overlayClassName:g,onOpenChange:y,onVisibleChange:b}=e,x=E(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:w}=c.useContext(u.E_),[O,S]=(0,l.Z)(!1,{value:e.open,defaultValue:e.defaultOpen}),L=(e,t)=>{S(e,!0),null==b||b(e),null==y||y(e,t)},T=w("popconfirm",o),N=i()(T,g),[k]=C(T);return k(c.createElement(f.Z,Object.assign({},(0,a.Z)(x,["title"]),{trigger:d,placement:r,onOpenChange:t=>{const{disabled:o=!1}=e;o||L(t)},open:O,ref:t,overlayClassName:N,content:c.createElement(P,Object.assign({okType:h,icon:m},e,{prefixCls:T,close:e=>{L(!1,e)},onConfirm:t=>{var o;return null===(o=e.onConfirm)||void 0===o?void 0:o.call(void 0,t)},onCancel:t=>{var o;L(!1,t),null===(o=e.onCancel)||void 0===o||o.call(void 0,t)}})),"data-popover-inject":!0}),(0,p.Tm)(v,{onKeyDown:e=>{var t,o;c.isValidElement(v)&&(null===(o=null==v?void 0:(t=v.props).onKeyDown)||void 0===o||o.call(t,e)),(e=>{e.keyCode===s.Z.ESC&&O&&L(!1,e)})(e)}})))}));S._InternalPanelDoNotUseOrYouWillBeFired=O;var L=S},39722:function(e,t,o){"use strict";o.d(t,{t5:function(){return u}});var n=o(92310),r=o.n(n),i=o(55477),s=o(59301),l=o(36355),a=o(77578),c=o(17356),p=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{hashId:t,prefixCls:o,className:n,style:l,placement:c="top",title:p,content:u,children:f}=e;return s.createElement("div",{className:r()(t,o,`${o}-pure`,`${o}-placement-${c}`,n),style:l},s.createElement("div",{className:`${o}-arrow`}),s.createElement(i.G,Object.assign({},e,{className:t,prefixCls:o}),f||((e,t,o)=>{if(t||o)return s.createElement(s.Fragment,null,t&&s.createElement("div",{className:`${e}-title`},(0,a.Z)(t)),s.createElement("div",{className:`${e}-inner-content`},(0,a.Z)(o)))})(o,p,u)))};t.ZP=e=>{const{prefixCls:t}=e,o=p(e,["prefixCls"]),{getPrefixCls:n}=s.useContext(l.E_),r=n("popover",t),[i,a]=(0,c.Z)(r);return i(s.createElement(u,Object.assign({},o,{prefixCls:r,hashId:a})))}},60324:function(e,t,o){"use strict";var n=o(92310),r=o.n(n),i=o(59301),s=o(77578),l=o(62892),a=o(36355),c=o(6848),p=o(39722),u=o(17356),f=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{let{title:t,content:o,prefixCls:n}=e;return i.createElement(i.Fragment,null,t&&i.createElement("div",{className:`${n}-title`},(0,s.Z)(t)),i.createElement("div",{className:`${n}-inner-content`},(0,s.Z)(o)))},h=i.forwardRef(((e,t)=>{const{prefixCls:o,title:n,content:s,overlayClassName:p,placement:h="top",trigger:m="hover",mouseEnterDelay:v=.1,mouseLeaveDelay:g=.1,overlayStyle:y={}}=e,b=f(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:x}=i.useContext(a.E_),C=x("popover",o),[w,P]=(0,u.Z)(C),O=x(),E=r()(p,P);return w(i.createElement(c.Z,Object.assign({placement:h,trigger:m,mouseEnterDelay:v,mouseLeaveDelay:g,overlayStyle:y},b,{prefixCls:C,overlayClassName:E,ref:t,overlay:n||s?i.createElement(d,{prefixCls:C,title:n,content:s}):null,transitionName:(0,l.m)(O,"zoom-big",b.transitionName),"data-popover-inject":!0})))}));h._InternalPanelDoNotUseOrYouWillBeFired=p.ZP,t.Z=h},17356:function(e,t,o){"use strict";var n=o(17313),r=o(29878),i=o(19447),s=o(33166),l=o(83116),a=o(37613);const c=e=>{const{componentCls:t,popoverColor:o,minWidth:r,fontWeightStrong:s,popoverPadding:l,boxShadowSecondary:a,colorTextHeading:c,borderRadiusLG:p,zIndexPopup:u,marginXS:f,colorBgElevated:d,popoverBg:h}=e;return[{[t]:Object.assign(Object.assign({},(0,n.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:p,boxShadow:a,padding:l},[`${t}-title`]:{minWidth:r,marginBottom:f,color:c,fontWeight:s},[`${t}-inner-content`]:{color:o}})},(0,i.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},p=e=>{const{componentCls:t}=e;return{[t]:s.i.map((o=>{const n=e[`${o}6`];return{[`&${t}-${o}`]:{"--antd-arrow-background-color":n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}}))}},u=e=>{const{componentCls:t,lineWidth:o,lineType:n,colorSplit:r,paddingSM:i,controlHeight:s,fontSize:l,lineHeight:a,padding:c}=e,p=s-Math.round(l*a);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${p/2}px ${c}px ${p/2-o}px`,borderBottom:`${o}px ${n} ${r}`},[`${t}-inner-content`]:{padding:`${i}px ${c}px`}}}};t.Z=(0,l.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:o,wireframe:n}=e,i=(0,a.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:o});return[c(i),p(i),n&&u(i),(0,r._y)(i,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},51581:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,a&&a(t)};var p=[o];return r&&(l?s?p.unshift(l):p.push(l):this.defaultLoader&&(s?p.unshift(this.defaultLoader):p.push(this.defaultLoader))),i.default.createElement(n,c,p)}}]),t}(r.Component);a.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},a.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=a,e.exports=t.default},26724:function(e,t,o){e.exports=o(51581)}}]); \ No newline at end of file diff --git a/41910.fcb790b0.async.js b/41910.fcb790b0.async.js deleted file mode 100644 index a8dca62f28..0000000000 --- a/41910.fcb790b0.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[41910,13488,49166,63527],{20538:function(e,t,o){"use strict";o.d(t,{Z:function(){return a}});var n=o(5891),r=o(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},s=o(22589),l=function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:i}))};var a=r.forwardRef(l)},77578:function(e,t,o){"use strict";o.d(t,{Z:function(){return n}});const n=e=>e?"function"==typeof e?e():e:null},27666:function(e,t,o){"use strict";var n=o(26390),r=o(71783);t.Z=function(e){let t;const o=o=>()=>{t=null,e.apply(void 0,(0,n.Z)(o))},i=function(){if(null==t){for(var e=arguments.length,n=new Array(e),i=0;i{r.Z.cancel(t),t=null},i}},81228:function(e,t,o){"use strict";o.d(t,{Z:function(){return E}});var n=o(79545),r=o(68550),i=o(17928),s=o(99487),l=o(59301),a=o(92310),c=o.n(a),p=o(28647),u=o(55405),f=o(27666),d=o(36355),h=o(83116),m=o(37613);const v=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var g=(0,h.Z)("Affix",(e=>{const t=(0,m.TS)(e,{zIndexPopup:e.zIndexBase+10});return[v(t)]}));function y(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function b(e,t,o){if(void 0!==o&&t.top>e.top-o)return o+t.top}function x(e,t,o){if(void 0!==o&&t.bottom{const t=e.getTargetFunc(),o=null==t?void 0:t(),{prevTarget:n}=e.state;n!==o&&(C.forEach((t=>{null==n||n.removeEventListener(t,e.lazyUpdatePosition),null==o||o.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:o}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,o=e.getTargetFunc(),n=null==o?void 0:o();C.forEach((o=>{null==n||n.removeEventListener(o,e.lazyUpdatePosition),null==t||t.removeEventListener(o,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:o}=e.props;return void 0===t&&void 0===o?0:o},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:o}=e.state,{onChange:n}=e.props,r=e.getTargetFunc();if(t!==P.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!r)return;const i=e.getOffsetTop(),s=e.getOffsetBottom(),l=r();if(l){const t={status:P.None},r=y(e.placeholderNodeRef.current);if(0===r.top&&0===r.left&&0===r.width&&0===r.height)return;const a=y(l),c=b(r,a,i),p=x(r,a,s);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}):void 0!==p&&(t.affixStyle={position:"fixed",bottom:p,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}),t.lastAffix=!!t.affixStyle,n&&o!==t.lastAffix&&n(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:P.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,f.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,f.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:o}=e.state;if(t&&o){const n=e.getOffsetTop(),r=e.getOffsetBottom(),i=t();if(i&&e.placeholderNodeRef.current){const t=y(i),s=y(e.placeholderNodeRef.current),l=b(s,t,n),a=x(s,t,r);if(void 0!==l&&o.top===l||void 0!==a&&o.bottom===a)return}}e.prepareMeasure()})),e}return(0,r.Z)(o,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:w}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:o,rootClassName:n,children:r}=this.props,i=c()(e&&n,{[o]:!!e});let s=(0,u.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return l.createElement(p.Z,{onResize:this.updatePosition},l.createElement("div",Object.assign({},s,{ref:this.placeholderNodeRef}),e&&l.createElement("div",{style:t,"aria-hidden":"true"}),l.createElement("div",{className:i,ref:this.fixedNodeRef,style:e},l.createElement(p.Z,{onResize:this.updatePosition},r))))}}]),o}(l.Component);O.contextType=d.E_;var E=(0,l.forwardRef)(((e,t)=>{const{prefixCls:o,rootClassName:n}=e,{getPrefixCls:r}=(0,l.useContext)(d.E_),i=r("affix",o),[s,a]=g(i),p=Object.assign(Object.assign({},e),{affixPrefixCls:i,rootClassName:c()(n,a)});return s(l.createElement(O,Object.assign({},p,{ref:t})))}))},14478:function(e,t,o){"use strict";o.d(t,{Z:function(){return L}});var n=o(54745),r=o(92310),i=o.n(r),s=o(20287),l=o(71366),a=o(55405),c=o(59301),p=o(92343),u=o(36355),f=o(60324),d=o(92806),h=o(77578),m=o(3113),v=o(67797),g=o(9763),y=o(31724),b=o(39722),x=o(83116);var C=(0,x.Z)("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:o,antCls:n,zIndexPopup:r,colorText:i,colorWarning:s,marginXXS:l,marginXS:a,fontSize:c,fontWeightStrong:p,colorTextHeading:u}=e;return{[t]:{zIndex:r,[`&${n}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:a,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${o}`]:{color:s,fontSize:c,lineHeight:1,marginInlineEnd:a},[`${t}-title`]:{fontWeight:p,color:u,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:a}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}),{resetStyle:!1}),w=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,okButtonProps:o,cancelButtonProps:r,title:s,description:l,cancelText:a,okText:p,okType:f="primary",icon:b=c.createElement(n.Z,null),showCancel:x=!0,close:C,onConfirm:w,onCancel:P,onPopupClick:O}=e,{getPrefixCls:E}=c.useContext(u.E_),[S]=(0,g.Z)("Popconfirm",y.Z.Popconfirm),L=(0,h.Z)(s),T=(0,h.Z)(l);return c.createElement("div",{className:`${t}-inner-content`,onClick:O},c.createElement("div",{className:`${t}-message`},b&&c.createElement("span",{className:`${t}-message-icon`},b),c.createElement("div",{className:`${t}-message-text`},L&&c.createElement("div",{className:i()(`${t}-title`)},L),T&&c.createElement("div",{className:`${t}-description`},T))),c.createElement("div",{className:`${t}-buttons`},x&&c.createElement(m.ZP,Object.assign({onClick:P,size:"small"},r),null!=a?a:null==S?void 0:S.cancelText),c.createElement(d.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,v.n)(f)),o),actionFn:w,close:C,prefixCls:E("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},null!=p?p:null==S?void 0:S.okText)))};var O=e=>{const{prefixCls:t,placement:o,className:n,style:r}=e,s=w(e,["prefixCls","placement","className","style"]),{getPrefixCls:l}=c.useContext(u.E_),a=l("popconfirm",t),[p]=C(a);return p(c.createElement(b.ZP,{placement:o,className:i()(a,n),style:r,content:c.createElement(P,Object.assign({prefixCls:a},s))}))},E=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:o,placement:r="top",trigger:d="click",okType:h="primary",icon:m=c.createElement(n.Z,null),children:v,overlayClassName:g,onOpenChange:y,onVisibleChange:b}=e,x=E(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:w}=c.useContext(u.E_),[O,S]=(0,l.Z)(!1,{value:e.open,defaultValue:e.defaultOpen}),L=(e,t)=>{S(e,!0),null==b||b(e),null==y||y(e,t)},T=w("popconfirm",o),N=i()(T,g),[k]=C(T);return k(c.createElement(f.Z,Object.assign({},(0,a.Z)(x,["title"]),{trigger:d,placement:r,onOpenChange:t=>{const{disabled:o=!1}=e;o||L(t)},open:O,ref:t,overlayClassName:N,content:c.createElement(P,Object.assign({okType:h,icon:m},e,{prefixCls:T,close:e=>{L(!1,e)},onConfirm:t=>{var o;return null===(o=e.onConfirm)||void 0===o?void 0:o.call(void 0,t)},onCancel:t=>{var o;L(!1,t),null===(o=e.onCancel)||void 0===o||o.call(void 0,t)}})),"data-popover-inject":!0}),(0,p.Tm)(v,{onKeyDown:e=>{var t,o;c.isValidElement(v)&&(null===(o=null==v?void 0:(t=v.props).onKeyDown)||void 0===o||o.call(t,e)),(e=>{e.keyCode===s.Z.ESC&&O&&L(!1,e)})(e)}})))}));S._InternalPanelDoNotUseOrYouWillBeFired=O;var L=S},39722:function(e,t,o){"use strict";o.d(t,{t5:function(){return u}});var n=o(92310),r=o.n(n),i=o(55477),s=o(59301),l=o(36355),a=o(77578),c=o(17356),p=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{hashId:t,prefixCls:o,className:n,style:l,placement:c="top",title:p,content:u,children:f}=e;return s.createElement("div",{className:r()(t,o,`${o}-pure`,`${o}-placement-${c}`,n),style:l},s.createElement("div",{className:`${o}-arrow`}),s.createElement(i.G,Object.assign({},e,{className:t,prefixCls:o}),f||((e,t,o)=>{if(t||o)return s.createElement(s.Fragment,null,t&&s.createElement("div",{className:`${e}-title`},(0,a.Z)(t)),s.createElement("div",{className:`${e}-inner-content`},(0,a.Z)(o)))})(o,p,u)))};t.ZP=e=>{const{prefixCls:t}=e,o=p(e,["prefixCls"]),{getPrefixCls:n}=s.useContext(l.E_),r=n("popover",t),[i,a]=(0,c.Z)(r);return i(s.createElement(u,Object.assign({},o,{prefixCls:r,hashId:a})))}},60324:function(e,t,o){"use strict";var n=o(92310),r=o.n(n),i=o(59301),s=o(77578),l=o(62892),a=o(36355),c=o(6848),p=o(39722),u=o(17356),f=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{let{title:t,content:o,prefixCls:n}=e;return i.createElement(i.Fragment,null,t&&i.createElement("div",{className:`${n}-title`},(0,s.Z)(t)),i.createElement("div",{className:`${n}-inner-content`},(0,s.Z)(o)))},h=i.forwardRef(((e,t)=>{const{prefixCls:o,title:n,content:s,overlayClassName:p,placement:h="top",trigger:m="hover",mouseEnterDelay:v=.1,mouseLeaveDelay:g=.1,overlayStyle:y={}}=e,b=f(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:x}=i.useContext(a.E_),C=x("popover",o),[w,P]=(0,u.Z)(C),O=x(),E=r()(p,P);return w(i.createElement(c.Z,Object.assign({placement:h,trigger:m,mouseEnterDelay:v,mouseLeaveDelay:g,overlayStyle:y},b,{prefixCls:C,overlayClassName:E,ref:t,overlay:n||s?i.createElement(d,{prefixCls:C,title:n,content:s}):null,transitionName:(0,l.m)(O,"zoom-big",b.transitionName),"data-popover-inject":!0})))}));h._InternalPanelDoNotUseOrYouWillBeFired=p.ZP,t.Z=h},17356:function(e,t,o){"use strict";var n=o(17313),r=o(29878),i=o(19447),s=o(33166),l=o(83116),a=o(37613);const c=e=>{const{componentCls:t,popoverColor:o,minWidth:r,fontWeightStrong:s,popoverPadding:l,boxShadowSecondary:a,colorTextHeading:c,borderRadiusLG:p,zIndexPopup:u,marginXS:f,colorBgElevated:d,popoverBg:h}=e;return[{[t]:Object.assign(Object.assign({},(0,n.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:p,boxShadow:a,padding:l},[`${t}-title`]:{minWidth:r,marginBottom:f,color:c,fontWeight:s},[`${t}-inner-content`]:{color:o}})},(0,i.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},p=e=>{const{componentCls:t}=e;return{[t]:s.i.map((o=>{const n=e[`${o}6`];return{[`&${t}-${o}`]:{"--antd-arrow-background-color":n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}}))}},u=e=>{const{componentCls:t,lineWidth:o,lineType:n,colorSplit:r,paddingSM:i,controlHeight:s,fontSize:l,lineHeight:a,padding:c}=e,p=s-Math.round(l*a);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${p/2}px ${c}px ${p/2-o}px`,borderBottom:`${o}px ${n} ${r}`},[`${t}-inner-content`]:{padding:`${i}px ${c}px`}}}};t.Z=(0,l.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:o,wireframe:n}=e,i=(0,a.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:o});return[c(i),p(i),n&&u(i),(0,r._y)(i,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},51581:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,a&&a(t)};var p=[o];return r&&(l?s?p.unshift(l):p.push(l):this.defaultLoader&&(s?p.unshift(this.defaultLoader):p.push(this.defaultLoader))),i.default.createElement(n,c,p)}}]),t}(r.Component);a.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},a.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=a,e.exports=t.default},26724:function(e,t,o){e.exports=o(51581)}}]); \ No newline at end of file diff --git a/45840.cb5d5fd7.async.js b/45840.cb5d5fd7.async.js deleted file mode 100644 index 3cf5cab707..0000000000 --- a/45840.cb5d5fd7.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[45840,87308,13488,80699,63527],{73374:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(5891),r=n(59301),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"},l=n(22589),a=function(e,t){return r.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(a)},680:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(5891),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},l=n(22589),a=function(e,t){return r.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(a)},60186:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(5891),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},l=n(22589),a=function(e,t){return r.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(a)},77578:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});const o=e=>e?"function"==typeof e?e():e:null},27666:function(e,t,n){"use strict";var o=n(26390),r=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},i=function(){if(null==t){for(var e=arguments.length,o=new Array(e),i=0;i{r.Z.cancel(t),t=null},i}},81228:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var o=n(79545),r=n(68550),i=n(17928),l=n(99487),a=n(59301),s=n(92310),c=n.n(s),d=n(28647),u=n(55405),p=n(27666),f=n(36355),h=n(83116),m=n(37613);const g=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var v=(0,h.Z)("Affix",(e=>{const t=(0,m.TS)(e,{zIndexPopup:e.zIndexBase+10});return[g(t)]}));function b(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function y(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function x(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(w.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();w.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,r=e.getTargetFunc();if(t!==S.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!r)return;const i=e.getOffsetTop(),l=e.getOffsetBottom(),a=r();if(a){const t={status:S.None},r=b(e.placeholderNodeRef.current);if(0===r.top&&0===r.left&&0===r.width&&0===r.height)return;const s=b(a),c=y(r,s,i),d=x(r,s,l);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}):void 0!==d&&(t.affixStyle={position:"fixed",bottom:d,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:S.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),r=e.getOffsetBottom(),i=t();if(i&&e.placeholderNodeRef.current){const t=b(i),l=b(e.placeholderNodeRef.current),a=y(l,t,o),s=x(l,t,r);if(void 0!==a&&n.top===a||void 0!==s&&n.bottom===s)return}}e.prepareMeasure()})),e}return(0,r.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:O}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:r}=this.props,i=c()(e&&o,{[n]:!!e});let l=(0,u.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return a.createElement(d.Z,{onResize:this.updatePosition},a.createElement("div",Object.assign({},l,{ref:this.placeholderNodeRef}),e&&a.createElement("div",{style:t,"aria-hidden":"true"}),a.createElement("div",{className:i,ref:this.fixedNodeRef,style:e},a.createElement(d.Z,{onResize:this.updatePosition},r))))}}]),n}(a.Component);E.contextType=f.E_;var C=(0,a.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:r}=(0,a.useContext)(f.E_),i=r("affix",n),[l,s]=v(i),d=Object.assign(Object.assign({},e),{affixPrefixCls:i,rootClassName:c()(o,s)});return l(a.createElement(E,Object.assign({},d,{ref:t})))}))},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var o=n(92310),r=n.n(o),i=n(59301),l=n(36355),a=n(17313),s=n(83116),c=n(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r,textPaddingInline:i,orientationMargin:l,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,a.Wf)(e)),{borderBlockStart:`${r}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*l+"%"},"&::after":{width:100-100*l+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*l+"%"},"&::after":{width:100*l+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n,divider:o}=i.useContext(l.E_),{prefixCls:a,type:s="horizontal",orientation:c="center",orientationMargin:d,className:f,rootClassName:h,children:m,dashed:g,plain:v,style:b}=e,y=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",a),[w,O]=u(x),S=c.length>0?`-${c}`:c,E=!!m,C="left"===c&&null!=d,k="right"===c&&null!=d,$=r()(x,null==o?void 0:o.className,O,`${x}-${s}`,{[`${x}-with-text`]:E,[`${x}-with-text${S}`]:E,[`${x}-dashed`]:!!g,[`${x}-plain`]:!!v,[`${x}-rtl`]:"rtl"===n,[`${x}-no-default-orientation-margin-left`]:C,[`${x}-no-default-orientation-margin-right`]:k},f,h),P=i.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),j=Object.assign(Object.assign({},C&&{marginLeft:P}),k&&{marginRight:P});return w(i.createElement("div",Object.assign({className:$,style:Object.assign(Object.assign({},null==o?void 0:o.style),b)},y,{role:"separator"}),m&&"vertical"!==s&&i.createElement("span",{className:`${x}-inner-text`,style:j},m)))}},39722:function(e,t,n){"use strict";n.d(t,{t5:function(){return u}});var o=n(92310),r=n.n(o),i=n(55477),l=n(59301),a=n(36355),s=n(77578),c=n(17356),d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{hashId:t,prefixCls:n,className:o,style:a,placement:c="top",title:d,content:u,children:p}=e;return l.createElement("div",{className:r()(t,n,`${n}-pure`,`${n}-placement-${c}`,o),style:a},l.createElement("div",{className:`${n}-arrow`}),l.createElement(i.G,Object.assign({},e,{className:t,prefixCls:n}),p||((e,t,n)=>{if(t||n)return l.createElement(l.Fragment,null,t&&l.createElement("div",{className:`${e}-title`},(0,s.Z)(t)),l.createElement("div",{className:`${e}-inner-content`},(0,s.Z)(n)))})(n,d,u)))};t.ZP=e=>{const{prefixCls:t}=e,n=d(e,["prefixCls"]),{getPrefixCls:o}=l.useContext(a.E_),r=o("popover",t),[i,s]=(0,c.Z)(r);return i(l.createElement(u,Object.assign({},n,{prefixCls:r,hashId:s})))}},60324:function(e,t,n){"use strict";var o=n(92310),r=n.n(o),i=n(59301),l=n(77578),a=n(62892),s=n(36355),c=n(6848),d=n(39722),u=n(17356),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let{title:t,content:n,prefixCls:o}=e;return i.createElement(i.Fragment,null,t&&i.createElement("div",{className:`${o}-title`},(0,l.Z)(t)),i.createElement("div",{className:`${o}-inner-content`},(0,l.Z)(n)))},h=i.forwardRef(((e,t)=>{const{prefixCls:n,title:o,content:l,overlayClassName:d,placement:h="top",trigger:m="hover",mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,overlayStyle:b={}}=e,y=p(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:x}=i.useContext(s.E_),w=x("popover",n),[O,S]=(0,u.Z)(w),E=x(),C=r()(d,S);return O(i.createElement(c.Z,Object.assign({placement:h,trigger:m,mouseEnterDelay:g,mouseLeaveDelay:v,overlayStyle:b},y,{prefixCls:w,overlayClassName:C,ref:t,overlay:o||l?i.createElement(f,{prefixCls:w,title:o,content:l}):null,transitionName:(0,a.m)(E,"zoom-big",y.transitionName),"data-popover-inject":!0})))}));h._InternalPanelDoNotUseOrYouWillBeFired=d.ZP,t.Z=h},17356:function(e,t,n){"use strict";var o=n(17313),r=n(29878),i=n(19447),l=n(33166),a=n(83116),s=n(37613);const c=e=>{const{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:l,popoverPadding:a,boxShadowSecondary:s,colorTextHeading:c,borderRadiusLG:d,zIndexPopup:u,marginXS:p,colorBgElevated:f,popoverBg:h}=e;return[{[t]:Object.assign(Object.assign({},(0,o.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:d,boxShadow:s,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:p,color:c,fontWeight:l},[`${t}-inner-content`]:{color:n}})},(0,i.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},d=e=>{const{componentCls:t}=e;return{[t]:l.i.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},u=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r,paddingSM:i,controlHeight:l,fontSize:a,lineHeight:s,padding:c}=e,d=l-Math.round(a*s);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d/2}px ${c}px ${d/2-n}px`,borderBottom:`${n}px ${o} ${r}`},[`${t}-inner-content`]:{padding:`${i}px ${c}px`}}}};t.Z=(0,a.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,i=(0,s.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[c(i),d(i),o&&u(i),(0,r._y)(i,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},87308:function(e,t,n){"use strict";n.d(t,{Z:function(){return he}});var o=n(59301),r=n(27385),i=n(73374),l=n(5891),a={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"},s=n(22589),c=function(e,t){return o.createElement(s.Z,(0,l.Z)({},e,{ref:t,icon:a}))};var d=o.forwardRef(c),u=n(92310),p=n.n(u),f=n(25769),h=n.n(f),m=n(28647),g=n(75440),v=n(19171),b=n(71366),y=n(55405),x=n(25629),w=n(28254),O=n(20287),S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{style:n,noStyle:r,disabled:i}=e,l=S(e,["style","noStyle","disabled"]);let a={};return r||(a=Object.assign({},E)),i&&(a.pointerEvents="none"),a=Object.assign(Object.assign({},a),n),o.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},l,{onKeyDown:e=>{const{keyCode:t}=e;t===O.Z.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:o}=e;n===O.Z.ENTER&&o&&o()},style:a}))})),k=n(36355),$=n(9763),P=n(6848),j={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"},z=function(e,t){return o.createElement(s.Z,(0,l.Z)({},e,{ref:t,icon:j}))};var L=o.forwardRef(z),T=n(92343),Z=n(1643),M=n(15969),N=n(83116),R=n(88453);const I=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,o)=>{const{titleMarginBottom:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},B=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},(0,M.N)(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},H=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:R.gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),W=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-o,marginBottom:`calc(1em - ${o}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},D=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),_=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},I(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),H(e)),B(e)),{[`\n ${t}-expand,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},(0,M.N)(e)),{marginInlineStart:e.marginXXS})}),W(e)),D(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}};var A=(0,N.Z)("Typography",(e=>[_(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));var F=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:l,maxLength:a,autoSize:s=!0,value:c,onSave:d,onCancel:u,onEnd:f,component:h,enterIcon:m=o.createElement(L,null)}=e,g=o.useRef(null),v=o.useRef(!1),b=o.useRef(),[y,x]=o.useState(c);o.useEffect((()=>{x(c)}),[c]),o.useEffect((()=>{if(g.current&&g.current.resizableTextArea){const{textArea:e}=g.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const w=()=>{d(y.trim())},S=h?`${t}-${h}`:"",[E,C]=A(t),k=p()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===l},r,S,C);return E(o.createElement("div",{className:k,style:i},o.createElement(Z.Z,{ref:g,maxLength:a,value:y,onChange:e=>{let{target:t}=e;x(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;v.current||(b.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;b.current!==t||v.current||n||o||r||i||(t===O.Z.ENTER?(w(),null==f||f()):t===O.Z.ESC&&u())},onCompositionStart:()=>{v.current=!0},onCompositionEnd:()=>{v.current=!1},onBlur:()=>{w()},"aria-label":n,rows:1,autoSize:s}),null!==m?(0,T.Tm)(m,{className:`${t}-edit-content-confirm`}):null))},U=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,component:r="article",className:i,rootClassName:l,setContentRef:a,children:s,direction:c,style:d}=e,u=U(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:h,typography:m}=o.useContext(k.E_),g=null!=c?c:h;let v=t;a&&(v=(0,x.sQ)(t,a));const b=f("typography",n),[y,w]=A(b),O=p()(b,null==m?void 0:m.className,{[`${b}-rtl`]:"rtl"===g},i,l,w),S=Object.assign(Object.assign({},null==m?void 0:m.style),d);return y(o.createElement(r,Object.assign({className:O,style:S,ref:v},u),s))}));var G=V;function K(e,t){return o.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]}),[e])}var X=(e,t)=>{const n=o.useRef(!1);o.useEffect((()=>{n.current?e():n.current=!0}),t)};function Y(e){const t=typeof e;return"string"===t||"number"===t}function q(e,t){let n=0;const o=[];for(let r=0;rt){const e=t-n;return o.push(String(i).slice(0,e)),o}o.push(i),n=l}return e}var Q=e=>{let{enabledMeasure:t,children:n,text:r,width:i,fontSize:l,rows:a,onEllipsis:s}=e;const[[c,d,u],p]=o.useState([0,0,0]),[f,h]=o.useState(0),[m,b]=o.useState(0),[y,x]=o.useState(0),w=o.useRef(null),O=o.useRef(null),S=o.useMemo((()=>(0,g.Z)(r)),[r]),E=o.useMemo((()=>function(e){let t=0;return e.forEach((e=>{Y(e)?t+=String(e).length:t+=1})),t}(S)),[S]),C=o.useMemo((()=>t&&3===m?n(q(S,d),d{t&&i&&l&&E&&(b(1),p([0,Math.ceil(E/2),E]))}),[t,i,l,r,E,a]),(0,v.Z)((()=>{var e;1===m&&x((null===(e=w.current)||void 0===e?void 0:e.offsetHeight)||0)}),[m]),(0,v.Z)((()=>{var e,t;if(y)if(1===m){((null===(e=O.current)||void 0===e?void 0:e.offsetHeight)||0)<=a*y?(b(4),s(!1)):b(2)}else if(2===m)if(c!==u){const e=(null===(t=O.current)||void 0===t?void 0:t.offsetHeight)||0;let n=c,o=u;c===u-1?o=c:e<=a*y?n=d:o=d;const r=Math.ceil((n+o)/2);p([n,r,o])}else b(3),h(d),s(!0)}),[m,c,u,a,y]);const k={width:i,whiteSpace:"normal",margin:0,padding:0},$=(e,t,n)=>o.createElement("span",{"aria-hidden":!0,ref:t,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:2*Math.floor(l/2)},n)},e);return o.createElement(o.Fragment,null,C,t&&3!==m&&4!==m&&o.createElement(o.Fragment,null,$("lg",w,{wordBreak:"keep-all",whiteSpace:"nowrap"}),1===m?$(n(S,!1),O,k):((e,t)=>{const o=q(S,e);return $(n(o,!0),t,k)})(d,O)))};var J=e=>{let{enabledEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return(null==i?void 0:i.title)&&t?o.createElement(P.Z,Object.assign({open:!!n&&void 0},i),r):r},ee=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n,l,a;const{prefixCls:s,className:c,style:u,type:f,disabled:O,children:S,ellipsis:E,editable:j,copyable:z,component:L,title:T}=e,Z=ee(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:M,direction:N}=o.useContext(k.E_),[R]=(0,$.Z)("Text"),I=o.useRef(null),B=o.useRef(null),H=M("typography",s),W=(0,y.Z)(Z,["mark","code","delete","underline","strong","keyboard","italic"]),[D,_]=K(j),[A,U]=(0,b.Z)(!1,{value:_.editing}),{triggerType:V=["icon"]}=_,Y=e=>{var t;e&&(null===(t=_.onStart)||void 0===t||t.call(_)),U(e)};X((()=>{var e;A||null===(e=B.current)||void 0===e||e.focus()}),[A]);const q=e=>{null==e||e.preventDefault(),Y(!0)},oe=e=>{var t;null===(t=_.onChange)||void 0===t||t.call(_,e),Y(!1)},re=()=>{var e;null===(e=_.onCancel)||void 0===e||e.call(_),Y(!1)},[ie,le]=K(z),[ae,se]=o.useState(!1),ce=o.useRef(null),de={};le.format&&(de.format=le.format);const ue=()=>{ce.current&&clearTimeout(ce.current)},pe=e=>{var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),h()(le.text||String(S)||"",de),se(!0),ue(),ce.current=setTimeout((()=>{se(!1)}),3e3),null===(t=le.onCopy)||void 0===t||t.call(le,e)};o.useEffect((()=>ue),[]);const[fe,he]=o.useState(!1),[me,ge]=o.useState(!1),[ve,be]=o.useState(!1),[ye,xe]=o.useState(!1),[we,Oe]=o.useState(!1),[Se,Ee]=o.useState(!0),[Ce,ke]=K(E,{expandable:!1}),$e=Ce&&!ve,{rows:Pe=1}=ke,je=o.useMemo((()=>!$e||void 0!==ke.suffix||ke.onEllipsis||ke.expandable||D||ie),[$e,ke,D,ie]);(0,v.Z)((()=>{Ce&&!je&&(he((0,w.G)("webkitLineClamp")),ge((0,w.G)("textOverflow")))}),[je,Ce]);const ze=o.useMemo((()=>!je&&(1===Pe?me:fe)),[je,me,fe]),Le=$e&&(ze?we:ye),Te=$e&&1===Pe&&ze,Ze=$e&&Pe>1&&ze,Me=e=>{var t;be(!0),null===(t=ke.onExpand)||void 0===t||t.call(ke,e)},[Ne,Re]=o.useState(0),[Ie,Be]=o.useState(0),He=e=>{var t;xe(e),ye!==e&&(null===(t=ke.onEllipsis)||void 0===t||t.call(ke,e))};o.useEffect((()=>{const e=I.current;if(Ce&&ze&&e){const t=Ze?e.offsetHeight{const e=I.current;if("undefined"==typeof IntersectionObserver||!e||!ze||!$e)return;const t=new IntersectionObserver((()=>{Ee(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[ze,$e]);let We={};We=!0===ke.tooltip?{title:null!==(n=_.text)&&void 0!==n?n:S}:o.isValidElement(ke.tooltip)?{title:ke.tooltip}:"object"==typeof ke.tooltip?Object.assign({title:null!==(l=_.text)&&void 0!==l?l:S},ke.tooltip):{title:ke.tooltip};const De=o.useMemo((()=>{const e=e=>["string","number"].includes(typeof e);if(Ce&&!ze)return e(_.text)?_.text:e(S)?S:e(T)?T:e(We.title)?We.title:void 0}),[Ce,ze,T,We.title,Le]);if(A)return o.createElement(F,{value:null!==(a=_.text)&&void 0!==a?a:"string"==typeof S?S:"",onSave:oe,onCancel:re,onEnd:_.onEnd,prefixCls:H,className:c,style:u,direction:N,component:L,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});const _e=()=>{const{expandable:e,symbol:t}=ke;if(!e)return null;let n;return n=t||(null==R?void 0:R.expand),o.createElement("a",{key:"expand",className:`${H}-expand`,onClick:Me,"aria-label":null==R?void 0:R.expand},n)},Ae=()=>{if(!D)return;const{icon:e,tooltip:t}=_,n=(0,g.Z)(t)[0]||(null==R?void 0:R.edit),r="string"==typeof n?n:"";return V.includes("icon")?o.createElement(P.Z,{key:"edit",title:!1===t?"":n},o.createElement(C,{ref:B,className:`${H}-edit`,onClick:q,"aria-label":r},e||o.createElement(d,{role:"button"}))):null},Fe=()=>{if(!ie)return;const{tooltips:e,icon:t}=le,n=ne(e),l=ne(t),a=ae?te(n[1],null==R?void 0:R.copied):te(n[0],null==R?void 0:R.copy),s=ae?null==R?void 0:R.copied:null==R?void 0:R.copy,c="string"==typeof a?a:s;return o.createElement(P.Z,{key:"copy",title:a},o.createElement(C,{className:p()(`${H}-copy`,ae&&`${H}-copy-success`),onClick:pe,"aria-label":c},ae?te(l[1],o.createElement(r.Z,null),!0):te(l[0],o.createElement(i.Z,null),!0)))};return o.createElement(m.Z,{onResize:(e,t)=>{let{offsetWidth:n}=e;var o;Re(n),Be(parseInt(null===(o=window.getComputedStyle)||void 0===o?void 0:o.call(window,t).fontSize,10)||0)},disabled:!$e||ze},(n=>o.createElement(J,{tooltipProps:We,enabledEllipsis:$e,isEllipsis:Le},o.createElement(G,Object.assign({className:p()({[`${H}-${f}`]:f,[`${H}-disabled`]:O,[`${H}-ellipsis`]:Ce,[`${H}-single-line`]:$e&&1===Pe,[`${H}-ellipsis-single-line`]:Te,[`${H}-ellipsis-multiple-line`]:Ze},c),prefixCls:s,style:Object.assign(Object.assign({},u),{WebkitLineClamp:Ze?Pe:void 0}),component:L,ref:(0,x.sQ)(n,I,t),direction:N,onClick:V.includes("text")?q:void 0,"aria-label":null==De?void 0:De.toString(),title:T},W),o.createElement(Q,{enabledMeasure:$e&&!ze,text:S,rows:Pe,width:Ne,fontSize:Ie,onEllipsis:He},((t,n)=>{let r=t;t.length&&n&&De&&(r=o.createElement("span",{key:"show-content","aria-hidden":!0},r));const i=function(e,t){let{mark:n,code:r,underline:i,delete:l,strong:a,keyboard:s,italic:c}=e,d=t;function u(e,t){t&&(d=o.createElement(e,{},d))}return u("strong",a),u("u",i),u("del",l),u("code",r),u("mark",n),u("kbd",s),u("i",c),d}(e,o.createElement(o.Fragment,null,r,(e=>{return[e&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),ke.suffix,(t=e,[t&&_e(),Ae(),Fe()])];var t})(n)));return i}))))))})),re=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var{ellipsis:n,rel:r}=e,i=re(e,["ellipsis","rel"]);const l=Object.assign(Object.assign({},i),{rel:void 0===r&&"_blank"===i.target?"noopener noreferrer":r});return delete l.navigate,o.createElement(oe,Object.assign({},l,{ref:t,ellipsis:!!n,component:"a"}))}));var le=o.forwardRef(((e,t)=>o.createElement(oe,Object.assign({ref:t},e,{component:"div"})))),ae=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var{ellipsis:n}=e,r=ae(e,["ellipsis"]);const i=o.useMemo((()=>n&&"object"==typeof n?(0,y.Z)(n,["expandable","rows"]):n),[n]);return o.createElement(oe,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))};var ce=o.forwardRef(se),de=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{level:n=1}=e,r=de(e,["level"]);let i;return i=ue.includes(n)?`h${n}`:"h1",o.createElement(oe,Object.assign({ref:t},r,{component:i}))}));const fe=G;fe.Text=ce,fe.Link=ie,fe.Title=pe,fe.Paragraph=le;var he=fe},51581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,s&&s(t)};var d=[n];return r&&(a?l?d.unshift(a):d.push(a):this.defaultLoader&&(l?d.unshift(this.defaultLoader):d.push(this.defaultLoader))),i.default.createElement(o,c,d)}}]),t}(r.Component);s.propTypes={children:l.default.node.isRequired,element:l.default.node,hasMore:l.default.bool,initialLoad:l.default.bool,isReverse:l.default.bool,loader:l.default.node,loadMore:l.default.func.isRequired,pageStart:l.default.number,ref:l.default.func,getScrollParent:l.default.func,threshold:l.default.number,useCapture:l.default.bool,useWindow:l.default.bool},s.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=s,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)}}]); \ No newline at end of file diff --git a/45840.d393aea4.async.js b/45840.d393aea4.async.js new file mode 100644 index 0000000000..bd9f3a5dcf --- /dev/null +++ b/45840.d393aea4.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[45840,87308,13488,80699,63527],{73374:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(5891),r=n(59301),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"},l=n(22589),a=function(e,t){return r.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(a)},680:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(5891),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},l=n(22589),a=function(e,t){return r.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(a)},60186:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(5891),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},l=n(22589),a=function(e,t){return r.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(a)},77578:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});const o=e=>e?"function"==typeof e?e():e:null},27666:function(e,t,n){"use strict";var o=n(26390),r=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},i=function(){if(null==t){for(var e=arguments.length,o=new Array(e),i=0;i{r.Z.cancel(t),t=null},i}},81228:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var o=n(79545),r=n(68550),i=n(17928),l=n(7711),a=n(59301),s=n(92310),c=n.n(s),d=n(28647),u=n(55405),p=n(27666),f=n(36355),h=n(83116),m=n(37613);const g=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var v=(0,h.Z)("Affix",(e=>{const t=(0,m.TS)(e,{zIndexPopup:e.zIndexBase+10});return[g(t)]}));function b(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function y(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function x(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(w.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();w.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,r=e.getTargetFunc();if(t!==S.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!r)return;const i=e.getOffsetTop(),l=e.getOffsetBottom(),a=r();if(a){const t={status:S.None},r=b(e.placeholderNodeRef.current);if(0===r.top&&0===r.left&&0===r.width&&0===r.height)return;const s=b(a),c=y(r,s,i),d=x(r,s,l);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}):void 0!==d&&(t.affixStyle={position:"fixed",bottom:d,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:S.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),r=e.getOffsetBottom(),i=t();if(i&&e.placeholderNodeRef.current){const t=b(i),l=b(e.placeholderNodeRef.current),a=y(l,t,o),s=x(l,t,r);if(void 0!==a&&n.top===a||void 0!==s&&n.bottom===s)return}}e.prepareMeasure()})),e}return(0,r.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:O}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:r}=this.props,i=c()(e&&o,{[n]:!!e});let l=(0,u.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return a.createElement(d.Z,{onResize:this.updatePosition},a.createElement("div",Object.assign({},l,{ref:this.placeholderNodeRef}),e&&a.createElement("div",{style:t,"aria-hidden":"true"}),a.createElement("div",{className:i,ref:this.fixedNodeRef,style:e},a.createElement(d.Z,{onResize:this.updatePosition},r))))}}]),n}(a.Component);E.contextType=f.E_;var C=(0,a.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:r}=(0,a.useContext)(f.E_),i=r("affix",n),[l,s]=v(i),d=Object.assign(Object.assign({},e),{affixPrefixCls:i,rootClassName:c()(o,s)});return l(a.createElement(E,Object.assign({},d,{ref:t})))}))},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var o=n(92310),r=n.n(o),i=n(59301),l=n(36355),a=n(17313),s=n(83116),c=n(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r,textPaddingInline:i,orientationMargin:l,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,a.Wf)(e)),{borderBlockStart:`${r}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*l+"%"},"&::after":{width:100-100*l+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*l+"%"},"&::after":{width:100*l+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n,divider:o}=i.useContext(l.E_),{prefixCls:a,type:s="horizontal",orientation:c="center",orientationMargin:d,className:f,rootClassName:h,children:m,dashed:g,plain:v,style:b}=e,y=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",a),[w,O]=u(x),S=c.length>0?`-${c}`:c,E=!!m,C="left"===c&&null!=d,k="right"===c&&null!=d,$=r()(x,null==o?void 0:o.className,O,`${x}-${s}`,{[`${x}-with-text`]:E,[`${x}-with-text${S}`]:E,[`${x}-dashed`]:!!g,[`${x}-plain`]:!!v,[`${x}-rtl`]:"rtl"===n,[`${x}-no-default-orientation-margin-left`]:C,[`${x}-no-default-orientation-margin-right`]:k},f,h),P=i.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),j=Object.assign(Object.assign({},C&&{marginLeft:P}),k&&{marginRight:P});return w(i.createElement("div",Object.assign({className:$,style:Object.assign(Object.assign({},null==o?void 0:o.style),b)},y,{role:"separator"}),m&&"vertical"!==s&&i.createElement("span",{className:`${x}-inner-text`,style:j},m)))}},39722:function(e,t,n){"use strict";n.d(t,{t5:function(){return u}});var o=n(92310),r=n.n(o),i=n(55477),l=n(59301),a=n(36355),s=n(77578),c=n(17356),d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{hashId:t,prefixCls:n,className:o,style:a,placement:c="top",title:d,content:u,children:p}=e;return l.createElement("div",{className:r()(t,n,`${n}-pure`,`${n}-placement-${c}`,o),style:a},l.createElement("div",{className:`${n}-arrow`}),l.createElement(i.G,Object.assign({},e,{className:t,prefixCls:n}),p||((e,t,n)=>{if(t||n)return l.createElement(l.Fragment,null,t&&l.createElement("div",{className:`${e}-title`},(0,s.Z)(t)),l.createElement("div",{className:`${e}-inner-content`},(0,s.Z)(n)))})(n,d,u)))};t.ZP=e=>{const{prefixCls:t}=e,n=d(e,["prefixCls"]),{getPrefixCls:o}=l.useContext(a.E_),r=o("popover",t),[i,s]=(0,c.Z)(r);return i(l.createElement(u,Object.assign({},n,{prefixCls:r,hashId:s})))}},60324:function(e,t,n){"use strict";var o=n(92310),r=n.n(o),i=n(59301),l=n(77578),a=n(62892),s=n(36355),c=n(6848),d=n(39722),u=n(17356),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let{title:t,content:n,prefixCls:o}=e;return i.createElement(i.Fragment,null,t&&i.createElement("div",{className:`${o}-title`},(0,l.Z)(t)),i.createElement("div",{className:`${o}-inner-content`},(0,l.Z)(n)))},h=i.forwardRef(((e,t)=>{const{prefixCls:n,title:o,content:l,overlayClassName:d,placement:h="top",trigger:m="hover",mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,overlayStyle:b={}}=e,y=p(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:x}=i.useContext(s.E_),w=x("popover",n),[O,S]=(0,u.Z)(w),E=x(),C=r()(d,S);return O(i.createElement(c.Z,Object.assign({placement:h,trigger:m,mouseEnterDelay:g,mouseLeaveDelay:v,overlayStyle:b},y,{prefixCls:w,overlayClassName:C,ref:t,overlay:o||l?i.createElement(f,{prefixCls:w,title:o,content:l}):null,transitionName:(0,a.m)(E,"zoom-big",y.transitionName),"data-popover-inject":!0})))}));h._InternalPanelDoNotUseOrYouWillBeFired=d.ZP,t.Z=h},17356:function(e,t,n){"use strict";var o=n(17313),r=n(29878),i=n(19447),l=n(33166),a=n(83116),s=n(37613);const c=e=>{const{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:l,popoverPadding:a,boxShadowSecondary:s,colorTextHeading:c,borderRadiusLG:d,zIndexPopup:u,marginXS:p,colorBgElevated:f,popoverBg:h}=e;return[{[t]:Object.assign(Object.assign({},(0,o.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:d,boxShadow:s,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:p,color:c,fontWeight:l},[`${t}-inner-content`]:{color:n}})},(0,i.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},d=e=>{const{componentCls:t}=e;return{[t]:l.i.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},u=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r,paddingSM:i,controlHeight:l,fontSize:a,lineHeight:s,padding:c}=e,d=l-Math.round(a*s);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d/2}px ${c}px ${d/2-n}px`,borderBottom:`${n}px ${o} ${r}`},[`${t}-inner-content`]:{padding:`${i}px ${c}px`}}}};t.Z=(0,a.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,i=(0,s.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[c(i),d(i),o&&u(i),(0,r._y)(i,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},87308:function(e,t,n){"use strict";n.d(t,{Z:function(){return he}});var o=n(59301),r=n(27385),i=n(73374),l=n(5891),a={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"},s=n(22589),c=function(e,t){return o.createElement(s.Z,(0,l.Z)({},e,{ref:t,icon:a}))};var d=o.forwardRef(c),u=n(92310),p=n.n(u),f=n(25769),h=n.n(f),m=n(28647),g=n(75440),v=n(19171),b=n(71366),y=n(55405),x=n(25629),w=n(28254),O=n(20287),S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{style:n,noStyle:r,disabled:i}=e,l=S(e,["style","noStyle","disabled"]);let a={};return r||(a=Object.assign({},E)),i&&(a.pointerEvents="none"),a=Object.assign(Object.assign({},a),n),o.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},l,{onKeyDown:e=>{const{keyCode:t}=e;t===O.Z.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:o}=e;n===O.Z.ENTER&&o&&o()},style:a}))})),k=n(36355),$=n(9763),P=n(6848),j={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"},z=function(e,t){return o.createElement(s.Z,(0,l.Z)({},e,{ref:t,icon:j}))};var L=o.forwardRef(z),T=n(92343),Z=n(1643),M=n(15969),N=n(83116),R=n(88453);const I=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,o)=>{const{titleMarginBottom:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},B=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},(0,M.N)(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},H=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:R.gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),W=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-o,marginBottom:`calc(1em - ${o}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},D=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),_=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},I(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),H(e)),B(e)),{[`\n ${t}-expand,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},(0,M.N)(e)),{marginInlineStart:e.marginXXS})}),W(e)),D(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}};var A=(0,N.Z)("Typography",(e=>[_(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));var F=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:l,maxLength:a,autoSize:s=!0,value:c,onSave:d,onCancel:u,onEnd:f,component:h,enterIcon:m=o.createElement(L,null)}=e,g=o.useRef(null),v=o.useRef(!1),b=o.useRef(),[y,x]=o.useState(c);o.useEffect((()=>{x(c)}),[c]),o.useEffect((()=>{if(g.current&&g.current.resizableTextArea){const{textArea:e}=g.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const w=()=>{d(y.trim())},S=h?`${t}-${h}`:"",[E,C]=A(t),k=p()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===l},r,S,C);return E(o.createElement("div",{className:k,style:i},o.createElement(Z.Z,{ref:g,maxLength:a,value:y,onChange:e=>{let{target:t}=e;x(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;v.current||(b.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;b.current!==t||v.current||n||o||r||i||(t===O.Z.ENTER?(w(),null==f||f()):t===O.Z.ESC&&u())},onCompositionStart:()=>{v.current=!0},onCompositionEnd:()=>{v.current=!1},onBlur:()=>{w()},"aria-label":n,rows:1,autoSize:s}),null!==m?(0,T.Tm)(m,{className:`${t}-edit-content-confirm`}):null))},U=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,component:r="article",className:i,rootClassName:l,setContentRef:a,children:s,direction:c,style:d}=e,u=U(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:h,typography:m}=o.useContext(k.E_),g=null!=c?c:h;let v=t;a&&(v=(0,x.sQ)(t,a));const b=f("typography",n),[y,w]=A(b),O=p()(b,null==m?void 0:m.className,{[`${b}-rtl`]:"rtl"===g},i,l,w),S=Object.assign(Object.assign({},null==m?void 0:m.style),d);return y(o.createElement(r,Object.assign({className:O,style:S,ref:v},u),s))}));var G=V;function K(e,t){return o.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]}),[e])}var X=(e,t)=>{const n=o.useRef(!1);o.useEffect((()=>{n.current?e():n.current=!0}),t)};function Y(e){const t=typeof e;return"string"===t||"number"===t}function q(e,t){let n=0;const o=[];for(let r=0;rt){const e=t-n;return o.push(String(i).slice(0,e)),o}o.push(i),n=l}return e}var Q=e=>{let{enabledMeasure:t,children:n,text:r,width:i,fontSize:l,rows:a,onEllipsis:s}=e;const[[c,d,u],p]=o.useState([0,0,0]),[f,h]=o.useState(0),[m,b]=o.useState(0),[y,x]=o.useState(0),w=o.useRef(null),O=o.useRef(null),S=o.useMemo((()=>(0,g.Z)(r)),[r]),E=o.useMemo((()=>function(e){let t=0;return e.forEach((e=>{Y(e)?t+=String(e).length:t+=1})),t}(S)),[S]),C=o.useMemo((()=>t&&3===m?n(q(S,d),d{t&&i&&l&&E&&(b(1),p([0,Math.ceil(E/2),E]))}),[t,i,l,r,E,a]),(0,v.Z)((()=>{var e;1===m&&x((null===(e=w.current)||void 0===e?void 0:e.offsetHeight)||0)}),[m]),(0,v.Z)((()=>{var e,t;if(y)if(1===m){((null===(e=O.current)||void 0===e?void 0:e.offsetHeight)||0)<=a*y?(b(4),s(!1)):b(2)}else if(2===m)if(c!==u){const e=(null===(t=O.current)||void 0===t?void 0:t.offsetHeight)||0;let n=c,o=u;c===u-1?o=c:e<=a*y?n=d:o=d;const r=Math.ceil((n+o)/2);p([n,r,o])}else b(3),h(d),s(!0)}),[m,c,u,a,y]);const k={width:i,whiteSpace:"normal",margin:0,padding:0},$=(e,t,n)=>o.createElement("span",{"aria-hidden":!0,ref:t,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:2*Math.floor(l/2)},n)},e);return o.createElement(o.Fragment,null,C,t&&3!==m&&4!==m&&o.createElement(o.Fragment,null,$("lg",w,{wordBreak:"keep-all",whiteSpace:"nowrap"}),1===m?$(n(S,!1),O,k):((e,t)=>{const o=q(S,e);return $(n(o,!0),t,k)})(d,O)))};var J=e=>{let{enabledEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return(null==i?void 0:i.title)&&t?o.createElement(P.Z,Object.assign({open:!!n&&void 0},i),r):r},ee=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n,l,a;const{prefixCls:s,className:c,style:u,type:f,disabled:O,children:S,ellipsis:E,editable:j,copyable:z,component:L,title:T}=e,Z=ee(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:M,direction:N}=o.useContext(k.E_),[R]=(0,$.Z)("Text"),I=o.useRef(null),B=o.useRef(null),H=M("typography",s),W=(0,y.Z)(Z,["mark","code","delete","underline","strong","keyboard","italic"]),[D,_]=K(j),[A,U]=(0,b.Z)(!1,{value:_.editing}),{triggerType:V=["icon"]}=_,Y=e=>{var t;e&&(null===(t=_.onStart)||void 0===t||t.call(_)),U(e)};X((()=>{var e;A||null===(e=B.current)||void 0===e||e.focus()}),[A]);const q=e=>{null==e||e.preventDefault(),Y(!0)},oe=e=>{var t;null===(t=_.onChange)||void 0===t||t.call(_,e),Y(!1)},re=()=>{var e;null===(e=_.onCancel)||void 0===e||e.call(_),Y(!1)},[ie,le]=K(z),[ae,se]=o.useState(!1),ce=o.useRef(null),de={};le.format&&(de.format=le.format);const ue=()=>{ce.current&&clearTimeout(ce.current)},pe=e=>{var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),h()(le.text||String(S)||"",de),se(!0),ue(),ce.current=setTimeout((()=>{se(!1)}),3e3),null===(t=le.onCopy)||void 0===t||t.call(le,e)};o.useEffect((()=>ue),[]);const[fe,he]=o.useState(!1),[me,ge]=o.useState(!1),[ve,be]=o.useState(!1),[ye,xe]=o.useState(!1),[we,Oe]=o.useState(!1),[Se,Ee]=o.useState(!0),[Ce,ke]=K(E,{expandable:!1}),$e=Ce&&!ve,{rows:Pe=1}=ke,je=o.useMemo((()=>!$e||void 0!==ke.suffix||ke.onEllipsis||ke.expandable||D||ie),[$e,ke,D,ie]);(0,v.Z)((()=>{Ce&&!je&&(he((0,w.G)("webkitLineClamp")),ge((0,w.G)("textOverflow")))}),[je,Ce]);const ze=o.useMemo((()=>!je&&(1===Pe?me:fe)),[je,me,fe]),Le=$e&&(ze?we:ye),Te=$e&&1===Pe&&ze,Ze=$e&&Pe>1&&ze,Me=e=>{var t;be(!0),null===(t=ke.onExpand)||void 0===t||t.call(ke,e)},[Ne,Re]=o.useState(0),[Ie,Be]=o.useState(0),He=e=>{var t;xe(e),ye!==e&&(null===(t=ke.onEllipsis)||void 0===t||t.call(ke,e))};o.useEffect((()=>{const e=I.current;if(Ce&&ze&&e){const t=Ze?e.offsetHeight{const e=I.current;if("undefined"==typeof IntersectionObserver||!e||!ze||!$e)return;const t=new IntersectionObserver((()=>{Ee(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[ze,$e]);let We={};We=!0===ke.tooltip?{title:null!==(n=_.text)&&void 0!==n?n:S}:o.isValidElement(ke.tooltip)?{title:ke.tooltip}:"object"==typeof ke.tooltip?Object.assign({title:null!==(l=_.text)&&void 0!==l?l:S},ke.tooltip):{title:ke.tooltip};const De=o.useMemo((()=>{const e=e=>["string","number"].includes(typeof e);if(Ce&&!ze)return e(_.text)?_.text:e(S)?S:e(T)?T:e(We.title)?We.title:void 0}),[Ce,ze,T,We.title,Le]);if(A)return o.createElement(F,{value:null!==(a=_.text)&&void 0!==a?a:"string"==typeof S?S:"",onSave:oe,onCancel:re,onEnd:_.onEnd,prefixCls:H,className:c,style:u,direction:N,component:L,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});const _e=()=>{const{expandable:e,symbol:t}=ke;if(!e)return null;let n;return n=t||(null==R?void 0:R.expand),o.createElement("a",{key:"expand",className:`${H}-expand`,onClick:Me,"aria-label":null==R?void 0:R.expand},n)},Ae=()=>{if(!D)return;const{icon:e,tooltip:t}=_,n=(0,g.Z)(t)[0]||(null==R?void 0:R.edit),r="string"==typeof n?n:"";return V.includes("icon")?o.createElement(P.Z,{key:"edit",title:!1===t?"":n},o.createElement(C,{ref:B,className:`${H}-edit`,onClick:q,"aria-label":r},e||o.createElement(d,{role:"button"}))):null},Fe=()=>{if(!ie)return;const{tooltips:e,icon:t}=le,n=ne(e),l=ne(t),a=ae?te(n[1],null==R?void 0:R.copied):te(n[0],null==R?void 0:R.copy),s=ae?null==R?void 0:R.copied:null==R?void 0:R.copy,c="string"==typeof a?a:s;return o.createElement(P.Z,{key:"copy",title:a},o.createElement(C,{className:p()(`${H}-copy`,ae&&`${H}-copy-success`),onClick:pe,"aria-label":c},ae?te(l[1],o.createElement(r.Z,null),!0):te(l[0],o.createElement(i.Z,null),!0)))};return o.createElement(m.Z,{onResize:(e,t)=>{let{offsetWidth:n}=e;var o;Re(n),Be(parseInt(null===(o=window.getComputedStyle)||void 0===o?void 0:o.call(window,t).fontSize,10)||0)},disabled:!$e||ze},(n=>o.createElement(J,{tooltipProps:We,enabledEllipsis:$e,isEllipsis:Le},o.createElement(G,Object.assign({className:p()({[`${H}-${f}`]:f,[`${H}-disabled`]:O,[`${H}-ellipsis`]:Ce,[`${H}-single-line`]:$e&&1===Pe,[`${H}-ellipsis-single-line`]:Te,[`${H}-ellipsis-multiple-line`]:Ze},c),prefixCls:s,style:Object.assign(Object.assign({},u),{WebkitLineClamp:Ze?Pe:void 0}),component:L,ref:(0,x.sQ)(n,I,t),direction:N,onClick:V.includes("text")?q:void 0,"aria-label":null==De?void 0:De.toString(),title:T},W),o.createElement(Q,{enabledMeasure:$e&&!ze,text:S,rows:Pe,width:Ne,fontSize:Ie,onEllipsis:He},((t,n)=>{let r=t;t.length&&n&&De&&(r=o.createElement("span",{key:"show-content","aria-hidden":!0},r));const i=function(e,t){let{mark:n,code:r,underline:i,delete:l,strong:a,keyboard:s,italic:c}=e,d=t;function u(e,t){t&&(d=o.createElement(e,{},d))}return u("strong",a),u("u",i),u("del",l),u("code",r),u("mark",n),u("kbd",s),u("i",c),d}(e,o.createElement(o.Fragment,null,r,(e=>{return[e&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),ke.suffix,(t=e,[t&&_e(),Ae(),Fe()])];var t})(n)));return i}))))))})),re=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var{ellipsis:n,rel:r}=e,i=re(e,["ellipsis","rel"]);const l=Object.assign(Object.assign({},i),{rel:void 0===r&&"_blank"===i.target?"noopener noreferrer":r});return delete l.navigate,o.createElement(oe,Object.assign({},l,{ref:t,ellipsis:!!n,component:"a"}))}));var le=o.forwardRef(((e,t)=>o.createElement(oe,Object.assign({ref:t},e,{component:"div"})))),ae=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var{ellipsis:n}=e,r=ae(e,["ellipsis"]);const i=o.useMemo((()=>n&&"object"==typeof n?(0,y.Z)(n,["expandable","rows"]):n),[n]);return o.createElement(oe,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))};var ce=o.forwardRef(se),de=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{level:n=1}=e,r=de(e,["level"]);let i;return i=ue.includes(n)?`h${n}`:"h1",o.createElement(oe,Object.assign({ref:t},r,{component:i}))}));const fe=G;fe.Text=ce,fe.Link=ie,fe.Title=pe,fe.Paragraph=le;var he=fe},51581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,s&&s(t)};var d=[n];return r&&(a?l?d.unshift(a):d.push(a):this.defaultLoader&&(l?d.unshift(this.defaultLoader):d.push(this.defaultLoader))),i.default.createElement(o,c,d)}}]),t}(r.Component);s.propTypes={children:l.default.node.isRequired,element:l.default.node,hasMore:l.default.bool,initialLoad:l.default.bool,isReverse:l.default.bool,loader:l.default.node,loadMore:l.default.func.isRequired,pageStart:l.default.number,ref:l.default.func,getScrollParent:l.default.func,threshold:l.default.number,useCapture:l.default.bool,useWindow:l.default.bool},s.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=s,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)}}]); \ No newline at end of file diff --git a/46122.0b35ed46.async.js b/46122.0b35ed46.async.js new file mode 100644 index 0000000000..bc729f6d2b --- /dev/null +++ b/46122.0b35ed46.async.js @@ -0,0 +1 @@ +!function(){var t,n,r={94218:function(t,n,r){"use strict";var e=r(80813),o=r(56354);const i=Symbol("Comlink.proxy"),u=Symbol("Comlink.endpoint"),a=Symbol("Comlink.releaseProxy"),c=Symbol("Comlink.finalizer"),f=Symbol("Comlink.thrown"),s=t=>"object"==typeof t&&null!==t||"function"==typeof t,l={canHandle:t=>s(t)&&t[i],serialize(t){const{port1:n,port2:r}=new MessageChannel;return h(t,n),[r,[r]]},deserialize(t){return t.start(),function(t,n){const r=new Map;return t.addEventListener("message",(function(t){const{data:n}=t;if(!n||!n.id)return;const e=r.get(n.id);if(e)try{e(n)}finally{r.delete(n.id)}})),_(t,r,[],n)}(t)}},p=new Map([["proxy",l],["throw",{canHandle:t=>s(t)&&f in t,serialize({value:t}){let n;return n=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[n,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function h(t,n=globalThis,r=["*"]){n.addEventListener("message",(function e(o){if(!o||!o.data)return;if(!function(t,n){for(const r of t){if(n===r||"*"===r)return!0;if(r instanceof RegExp&&r.test(n))return!0}return!1}(r,o.origin))return void console.warn(`Invalid origin '${o.origin}' for comlink proxy`);const{id:u,type:a,path:s}=Object.assign({path:[]},o.data),l=(o.data.argumentList||[]).map(j);let p;try{const n=s.slice(0,-1).reduce(((t,n)=>t[n]),t),r=s.reduce(((t,n)=>t[n]),t);switch(a){case"GET":p=r;break;case"SET":n[s.slice(-1)[0]]=j(o.data.value),p=!0;break;case"APPLY":p=r.apply(n,l);break;case"CONSTRUCT":p=function(t){return Object.assign(t,{[i]:!0})}(new r(...l));break;case"ENDPOINT":{const{port1:n,port2:r}=new MessageChannel;h(t,r),p=function(t,n){return m.set(t,n),t}(n,[n])}break;case"RELEASE":p=void 0;break;default:return}}catch(t){p={value:t,[f]:0}}Promise.resolve(p).catch((t=>({value:t,[f]:0}))).then((r=>{const[o,i]=w(r);n.postMessage(Object.assign(Object.assign({},o),{id:u}),i),"RELEASE"===a&&(n.removeEventListener("message",e),v(n),c in t&&"function"==typeof t[c]&&t[c]())})).catch((t=>{const[r,e]=w({value:new TypeError("Unserializable return value"),[f]:0});n.postMessage(Object.assign(Object.assign({},r),{id:u}),e)}))})),n.start&&n.start()}function v(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function y(t){if(t)throw new Error("Proxy has been released and is not useable")}function d(t){return O(t,new Map,{type:"RELEASE"}).then((()=>{v(t)}))}const x=new WeakMap,g="FinalizationRegistry"in globalThis&&new FinalizationRegistry((t=>{const n=(x.get(t)||0)-1;x.set(t,n),0===n&&d(t)}));function _(t,n,r=[],e=function(){}){let o=!1;const i=new Proxy(e,{get(e,u){if(y(o),u===a)return()=>{!function(t){g&&g.unregister(t)}(i),d(t),n.clear(),o=!0};if("then"===u){if(0===r.length)return{then:()=>i};const e=O(t,n,{type:"GET",path:r.map((t=>t.toString()))}).then(j);return e.then.bind(e)}return _(t,n,[...r,u])},set(e,i,u){y(o);const[a,c]=w(u);return O(t,n,{type:"SET",path:[...r,i].map((t=>t.toString())),value:a},c).then(j)},apply(e,i,a){y(o);const c=r[r.length-1];if(c===u)return O(t,n,{type:"ENDPOINT"}).then(j);if("bind"===c)return _(t,n,r.slice(0,-1));const[f,s]=b(a);return O(t,n,{type:"APPLY",path:r.map((t=>t.toString())),argumentList:f},s).then(j)},construct(e,i){y(o);const[u,a]=b(i);return O(t,n,{type:"CONSTRUCT",path:r.map((t=>t.toString())),argumentList:u},a).then(j)}});return function(t,n){const r=(x.get(n)||0)+1;x.set(n,r),g&&g.register(t,n,t)}(i,t),i}function b(t){const n=t.map(w);return[n.map((t=>t[0])),(r=n.map((t=>t[1])),Array.prototype.concat.apply([],r))];var r}const m=new WeakMap;function w(t){for(const[n,r]of p)if(r.canHandle(t)){const[e,o]=r.serialize(t);return[{type:"HANDLER",name:n,value:e},o]}return[{type:"RAW",value:t},m.get(t)||[]]}function j(t){switch(t.type){case"HANDLER":return p.get(t.name).deserialize(t.value);case"RAW":return t.value}}function O(t,n,r,e){return new Promise((o=>{const i=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");n.set(i,o),t.start&&t.start(),t.postMessage(Object.assign({id:i},r),e)}))}var M=r(7499),z=r(64589),A=r(70709),E=r(73510),S=r(31392);function N(t){return function(){return t}}function P(t){return 1e-6*(t()-.5)}function k(t){return t.index}function L(t,n){var r=t.get(n);if(!r)throw new Error("node not found: "+n);return r}function T(t){var n,r,e,o,i,u,a,c=k,f=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},s=N(30),l=1;function p(e){for(var i=0,c=t.length;i1&&(x=p.y+p.vy-s.y-s.vy||P(a)),o>2&&(g=p.z+p.vz-s.z-s.vz||P(a)),d*=h=((h=Math.sqrt(d*d+x*x+g*g))-r[y])/h*e*n[y],x*=h,g*=h,p.vx-=d*(v=u[y]),o>1&&(p.vy-=x*v),o>2&&(p.vz-=g*v),s.vx+=d*(v=1-v),o>1&&(s.vy+=x*v),o>2&&(s.vz+=g*v)}function h(){if(e){var o,a,f=e.length,s=t.length,l=new Map(e.map(((t,n)=>[c(t,n,e),t])));for(o=0,i=new Array(f);o"function"==typeof t))||Math.random,o=n.find((t=>[1,2,3].includes(t)))||2,h()},p.links=function(n){return arguments.length?(t=n,h(),p):t},p.id=function(t){return arguments.length?(c=t,p):c},p.iterations=function(t){return arguments.length?(l=+t,p):l},p.strength=function(t){return arguments.length?(f="function"==typeof t?t:N(+t),v(),p):f},p.distance=function(t){return arguments.length?(s="function"==typeof t?t:N(+t),y(),p):s},p}function R(t,n,r){if(isNaN(n))return t;var e,o,i,u,a,c,f=t._root,s={data:r},l=t._x0,p=t._x1;if(!f)return t._root=s,t;for(;f.length;)if((u=n>=(o=(l+p)/2))?l=o:p=o,e=f,!(f=f[a=+u]))return e[a]=s,t;if(n===(i=+t._x.call(null,f.data)))return s.next=f,e?e[a]=s:t._root=s,t;do{e=e?e[a]=new Array(2):t._root=new Array(2),(u=n>=(o=(l+p)/2))?l=o:p=o}while((a=+u)==(c=+(i>=o)));return e[c]=f,e[a]=s,t}function F(t,n,r){this.node=t,this.x0=n,this.x1=r}function I(t){return t[0]}function C(t,n){var r=new D(null==n?I:n,NaN,NaN);return null==t?r:r.addAll(t)}function D(t,n,r){this._x=t,this._x0=n,this._x1=r,this._root=void 0}function q(t){for(var n={data:t.data},r=n;t=t.next;)r=r.next={data:t.data};return n}var G=C.prototype=D.prototype;G.copy=function(){var t,n,r=new D(this._x,this._x0,this._x1),e=this._root;if(!e)return r;if(!e.length)return r._root=q(e),r;for(t=[{source:e,target:r._root=new Array(2)}];e=t.pop();)for(var o=0;o<2;++o)(n=e.source[o])&&(n.length?t.push({source:n,target:e.target[o]=new Array(2)}):e.target[o]=q(n));return r},G.add=function(t){const n=+this._x.call(null,t);return R(this.cover(n),n,t)},G.addAll=function(t){Array.isArray(t)||(t=Array.from(t));const n=t.length,r=new Float64Array(n);let e=1/0,o=-1/0;for(let i,u=0;uo&&(o=i));if(e>o)return this;this.cover(e).cover(o);for(let e=0;et||t>=r;)switch(o=+(tc||(o=i.x1)=l))&&(i=f[f.length-1],f[f.length-1]=f[f.length-1-u],f[f.length-1-u]=i)}else{var p=Math.abs(t-+this._x.call(null,s.data));p=(u=(l+p)/2))?l=u:p=u,n=s,!(s=s[c=+a]))return this;if(!s.length)break;n[c+1&1]&&(r=n,f=c)}for(;s.data!==t;)if(e=s,!(s=s.next))return this;return(o=s.next)&&delete s.next,e?(o?e.next=o:delete e.next,this):n?(o?n[c]=o:delete n[c],(s=n[0]||n[1])&&s===(n[1]||n[0])&&!s.length&&(r?r[f]=s:this._root=s),this):(this._root=o,this)},G.removeAll=function(t){for(var n=0,r=t.length;n(t=(1664525*t+1013904223)%W)/W}();function h(){v(),l.call("tick",r),o1&&(null==s.fy?s.y+=s.vy*=c:(s.y=s.fy,s.vy=0)),e>2&&(null==s.fz?s.z+=s.vz*=c:(s.z=s.fz,s.vz=0));return r}function y(){for(var n,r=0,o=t.length;r1&&isNaN(n.y)||e>2&&isNaN(n.z)){var i=10*(e>2?Math.cbrt(.5+r):e>1?Math.sqrt(.5+r):r),u=r*X,a=r*J;1===e?n.x=i:2===e?(n.x=i*Math.cos(u),n.y=i*Math.sin(u)):(n.x=i*Math.sin(u)*Math.cos(a),n.y=i*Math.cos(u),n.z=i*Math.sin(u)*Math.sin(a))}(isNaN(n.vx)||e>1&&isNaN(n.vy)||e>2&&isNaN(n.vz))&&(n.vx=0,e>1&&(n.vy=0),e>2&&(n.vz=0))}}function d(n){return n.initialize&&n.initialize(t,p,e),n}return null==t&&(t=[]),y(),r={tick:v,restart:function(){return s.restart(h),r},stop:function(){return s.stop(),r},numDimensions:function(t){return arguments.length?(e=Math.min(3,Math.max(1,Math.round(t))),f.forEach(d),r):e},nodes:function(n){return arguments.length?(t=n,y(),f.forEach(d),r):t},alpha:function(t){return arguments.length?(o=+t,r):o},alphaMin:function(t){return arguments.length?(i=+t,r):i},alphaDecay:function(t){return arguments.length?(u=+t,r):+u},alphaTarget:function(t){return arguments.length?(a=+t,r):a},velocityDecay:function(t){return arguments.length?(c=1-t,r):1-c},randomSource:function(t){return arguments.length?(p=t,f.forEach(d),r):p},force:function(t,n){return arguments.length>1?(null==n?f.delete(t):f.set(t,d(n)),r):f.get(t)},find:function(){var n,r,o,i,u,a,c=Array.prototype.slice.call(arguments),f=c.shift()||0,s=(e>1?c.shift():null)||0,l=(e>2?c.shift():null)||0,p=c.shift()||1/0,h=0,v=t.length;for(p*=p,h=0;h1?(l.on(t,n),r):l.on(t)}}}function Q(){var t,n,r,e,o,i,u=N(-30),a=1,c=1/0,f=.81;function s(e){var i,u=t.length,a=(1===n?C(t,Z):2===n?(0,U.Z)(t,Z,Y):3===n?(0,$.Z)(t,Z,Y,V):null).visitAfter(p);for(o=e,i=0;i1&&(t.y=u/s),n>2&&(t.z=a/s)}else{(r=t).x=r.data.x,n>1&&(r.y=r.data.y),n>2&&(r.z=r.data.z);do{f+=i[r.data.index]}while(r=r.next)}t.value=f}function h(t,u,s,l,p){if(!t.value)return!0;var h=[s,l,p][n-1],v=t.x-r.x,y=n>1?t.y-r.y:0,d=n>2?t.z-r.z:0,x=h-u,g=v*v+y*y+d*d;if(x*x/f1&&0===y&&(g+=(y=P(e))*y),n>2&&0===d&&(g+=(d=P(e))*d),g1&&(r.vy+=y*t.value*o/g),n>2&&(r.vz+=d*t.value*o/g)),!0;if(!(t.length||g>=c)){(t.data!==r||t.next)&&(0===v&&(g+=(v=P(e))*v),n>1&&0===y&&(g+=(y=P(e))*y),n>2&&0===d&&(g+=(d=P(e))*d),g1&&(r.vy+=y*x),n>2&&(r.vz+=d*x))}while(t=t.next)}}return s.initialize=function(r,...o){t=r,e=o.find((t=>"function"==typeof t))||Math.random,n=o.find((t=>[1,2,3].includes(t)))||2,l()},s.strength=function(t){return arguments.length?(u="function"==typeof t?t:N(+t),l(),s):u},s.distanceMin=function(t){return arguments.length?(a=t*t,s):Math.sqrt(a)},s.distanceMax=function(t){return arguments.length?(c=t*t,s):Math.sqrt(c)},s.theta=function(t){return arguments.length?(f=t*t,s):Math.sqrt(f)},s}function tt(t,n,r){var e,o=1;function i(){var i,u,a=e.length,c=0,f=0,s=0;for(i=0;i1&&(l=f.y+f.vy),r>2&&(p=f.z+f.vz),a.visit(x);function x(t,n,e,u,a,c,y){var d=[n,e,u,a,c,y],x=d[0],g=d[1],_=d[2],b=d[r],m=d[r+1],w=d[r+2],j=t.data,O=t.r,M=h+O;if(!j)return x>s+M||b1&&(g>l+M||m2&&(_>p+M||wf.index){var z=s-j.x-j.vx,A=r>1?l-j.y-j.vy:0,E=r>2?p-j.z-j.vz:0,S=z*z+A*A+E*E;S1&&0===A&&(S+=(A=P(o))*A),r>2&&0===E&&(S+=(E=P(o))*E),S=(M-(S=Math.sqrt(S)))/S*i,f.vx+=(z*=S)*(M=(O*=O)/(v+O)),r>1&&(f.vy+=(A*=S)*M),r>2&&(f.vz+=(E*=S)*M),j.vx-=z*(M=1-M),r>1&&(j.vy-=A*M),r>2&&(j.vz-=E*M))}}}function c(t){if(t.data)return t.r=e[t.data.index];for(var n=t.r=0;nt.r&&(t.r=t[n].r)}function f(){if(n){var r,o,i=n.length;for(e=new Array(i),r=0;r"function"==typeof t))||Math.random,r=e.find((t=>[1,2,3].includes(t)))||2,f()},a.iterations=function(t){return arguments.length?(u=+t,a):u},a.strength=function(t){return arguments.length?(i=+t,a):i},a.radius=function(n){return arguments.length?(t="function"==typeof n?n:N(+n),f(),a):t},a}function it(t,n,r,e){var o,i,u,a,c=N(.1);function f(t){for(var c=0,f=o.length;c1&&(s.vy+=p*y),i>2&&(s.vz+=h*y)}}function s(){if(o){var n,r=o.length;for(u=new Array(r),a=new Array(r),n=0;n[1,2,3].includes(t)))||2,s()},f.strength=function(t){return arguments.length?(c="function"==typeof t?t:N(+t),s(),f):c},f.radius=function(n){return arguments.length?(t="function"==typeof n?n:N(+n),s(),f):t},f.x=function(t){return arguments.length?(n=+t,f):n},f.y=function(t){return arguments.length?(r=+t,f):r},f.z=function(t){return arguments.length?(e=+t,f):e},f}function ut(t){var n,r,e,o=N(.1);function i(t){for(var o,i=0,u=n.length;it.id},manyBody:{},center:{x:0,y:0,z:0}}}initSimulation(){return K()}}var st=r(14742),lt=r(93712),pt=r(71636),ht=r(79189),vt=r(93786),yt=r(8421),dt=r(16589),xt=r(61649);const gt={circular:z.S,concentric:E.W,mds:yt.A,random:xt._,grid:vt.M,radial:dt.D,force:lt.y,d3force:S.j,"d3-force-3d":ft,fruchterman:ht.O,forceAtlas2:pt.E,dagre:st.V,antvDagre:M.b,comboCombined:A.u};var _t=r(31350);let bt;h({stopLayout(){(null==bt?void 0:bt.stop)&&bt.stop()},calculateLayout(t,n){return(0,e.mG)(this,void 0,void 0,(function*(){const{layout:{id:r,options:e,iterations:i},nodes:u,edges:a}=t,c=new o.k({nodes:u,edges:a}),f=gt[r];if(!f)throw new Error(`Unknown layout id: ${r}`);bt=new f(e);let s=yield bt.execute(c);return(0,_t.h)(bt)&&(bt.stop(),s=bt.tick(i)),[s,n]}))}})},76414:function(t,n,r){var e=r(64696),o=r(16824),i=r(23476),u=r(63122),a=r(37279);function c(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(u=t.length>3&&"function"==typeof u?(i--,u):void 0,a&&o(r[0],r[1],a)&&(u=i<3?void 0:u,i=1),n=Object(n);++e-1&&t%1==0&&t-1}},54238:function(t,n,r){var e=r(67971);t.exports=function(t,n){var r=this.__data__,o=e(r,t);return o<0?(++this.size,r.push([t,n])):r[o][1]=n,this}},35365:function(t,n,r){var e=r(76414),o=r(99746),i=r(40164);t.exports=function(){this.size=0,this.__data__={hash:new e,map:new(i||o),string:new e}}},63765:function(t,n,r){var e=r(89819);t.exports=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}},12608:function(t,n,r){var e=r(89819);t.exports=function(t){return e(this,t).get(t)}},10203:function(t,n,r){var e=r(89819);t.exports=function(t){return e(this,t).has(t)}},11298:function(t,n,r){var e=r(89819);t.exports=function(t,n){var r=e(this,t),o=r.size;return r.set(t,n),this.size+=r.size==o?0:1,this}},65294:function(t,n,r){var e=r(73893)(Object,"create");t.exports=e},97817:function(t){t.exports=function(t){var n=[];if(null!=t)for(var r in Object(t))n.push(r);return n}},52495:function(t,n,r){t=r.nmd(t);var e=r(37675),o=n&&!n.nodeType&&n,i=o&&t&&!t.nodeType&&t,u=i&&i.exports===o&&e.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=a},74702:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},31030:function(t){t.exports=function(t,n){return function(r){return t(n(r))}}},19652:function(t,n,r){var e=r(79628),o=Math.max;t.exports=function(t,n,r){return n=o(void 0===n?t.length-1:n,0),function(){for(var i=arguments,u=-1,a=o(i.length-n,0),c=Array(a);++u0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},31119:function(t,n,r){var e=r(99746);t.exports=function(){this.__data__=new e,this.size=0}},64399:function(t){t.exports=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}},81897:function(t){t.exports=function(t){return this.__data__.get(t)}},90558:function(t){t.exports=function(t){return this.__data__.has(t)}},64841:function(t,n,r){var e=r(99746),o=r(40164),i=r(52166);t.exports=function(t,n){var r=this.__data__;if(r instanceof e){var u=r.__data__;if(!o||u.length<199)return u.push([t,n]),this.size=++r.size,this;r=this.__data__=new i(u)}return r.set(t,n),this.size=r.size,this}},63256:function(t){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},13503:function(t){t.exports=function(t){return function(){return t}}},43607:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},46962:function(t){t.exports=function(t){return t}},13053:function(t,n,r){var e=r(4977),o=r(93913),i=Object.prototype,u=i.hasOwnProperty,a=i.propertyIsEnumerable,c=e(function(){return arguments}())?e:function(t){return o(t)&&u.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},80744:function(t){var n=Array.isArray;t.exports=n},24665:function(t,n,r){var e=r(9363),o=r(11156);t.exports=function(t){return null!=t&&o(t.length)&&!e(t)}},41590:function(t,n,r){var e=r(24665),o=r(93913);t.exports=function(t){return o(t)&&e(t)}},57835:function(t,n,r){t=r.nmd(t);var e=r(33152),o=r(55950),i=n&&!n.nodeType&&n,u=i&&t&&!t.nodeType&&t,a=u&&u.exports===i?e.Buffer:void 0,c=(a?a.isBuffer:void 0)||o;t.exports=c},9363:function(t,n,r){var e=r(86756),o=r(20816);t.exports=function(t){if(!o(t))return!1;var n=e(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},11156:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},20816:function(t){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},93913:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},19308:function(t,n,r){var e=r(86756),o=r(49217),i=r(93913),u=Function.prototype,a=Object.prototype,c=u.toString,f=a.hasOwnProperty,s=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=e(t))return!1;var n=o(t);if(null===n)return!0;var r=f.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==s}},18397:function(t,n,r){var e=r(10766),o=r(38342),i=r(52495),u=i&&i.isTypedArray,a=u?o(u):e;t.exports=a},56730:function(t,n,r){var e=r(63333),o=r(33988),i=r(24665);t.exports=function(t){return i(t)?e(t,!0):o(t)}},28440:function(t,n,r){var e=r(50097),o=r(63323)((function(t,n,r){e(t,n,r)}));t.exports=o},55950:function(t){t.exports=function(){return!1}},20480:function(t,n,r){var e=r(95378),o=r(56730);t.exports=function(t){return e(t,o(t))}},39572:function(t){t.exports=function(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}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 u,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,u=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw u}}}},t.exports.__esModule=!0,t.exports.default=t.exports},47074:function(t,n,r){var e=r(34577),o=r(74716),i=r(34456);t.exports=function(t){var n=o();return function(){var r,o=e(t);if(n){var u=e(this).constructor;r=Reflect.construct(o,arguments,u)}else r=o.apply(this,arguments);return i(this,r)}},t.exports.__esModule=!0,t.exports.default=t.exports},85573:function(t,n,r){var e=r(83411);t.exports=function(t,n,r){return(n=e(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},4811:function(t,n,r){var e=r(22652);function o(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=o=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=o=function(t,n,r){var o=e(t,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?t:r):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports),o.apply(this,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},34577:function(t){function n(r){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},80619:function(t,n,r){var e=r(35745);t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports},74716:function(t){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.__esModule=!0,t.exports.default=t.exports},70849:function(t){t.exports=function(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var e,o,i,u,a=[],c=!0,f=!1;try{if(i=(r=r.call(t)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(e=i.call(r)).done)&&(a.push(e.value),a.length!==n);c=!0);}catch(t){f=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(f)throw o}}return a}},t.exports.__esModule=!0,t.exports.default=t.exports},35599:function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},34456:function(t,n,r){var e=r(31468).default,o=r(13720);t.exports=function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},7557:function(t,n,r){var e=r(31468).default;function o(){"use strict";t.exports=o=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var n,r={},i=Object.prototype,u=i.hasOwnProperty,a=Object.defineProperty||function(t,n,r){t[n]=r.value},c="function"==typeof Symbol?Symbol:{},f=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function p(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{p({},"")}catch(n){p=function(t,n,r){return t[n]=r}}function h(t,n,r,e){var o=n&&n.prototype instanceof _?n:_,i=Object.create(o.prototype),u=new k(e||[]);return a(i,"_invoke",{value:E(t,r,u)}),i}function v(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var y="suspendedStart",d="executing",x="completed",g={};function _(){}function b(){}function m(){}var w={};p(w,f,(function(){return this}));var j=Object.getPrototypeOf,O=j&&j(j(L([])));O&&O!==i&&u.call(O,f)&&(w=O);var M=m.prototype=_.prototype=Object.create(w);function z(t){["next","throw","return"].forEach((function(n){p(t,n,(function(t){return this._invoke(n,t)}))}))}function A(t,n){function r(o,i,a,c){var f=v(t[o],t,i);if("throw"!==f.type){var s=f.arg,l=s.value;return l&&"object"==e(l)&&u.call(l,"__await")?n.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):n.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(f.arg)}var o;a(this,"_invoke",{value:function(t,e){function i(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(i,i):i()}})}function E(t,r,e){var o=y;return function(i,u){if(o===d)throw new Error("Generator is already running");if(o===x){if("throw"===i)throw u;return{value:n,done:!0}}for(e.method=i,e.arg=u;;){var a=e.delegate;if(a){var c=S(a,e);if(c){if(c===g)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(o===y)throw o=x,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);o=d;var f=v(t,r,e);if("normal"===f.type){if(o=e.done?x:"suspendedYield",f.arg===g)continue;return{value:f.arg,done:e.done}}"throw"===f.type&&(o=x,e.method="throw",e.arg=f.arg)}}}function S(t,r){var e=r.method,o=t.iterator[e];if(o===n)return r.delegate=null,"throw"===e&&t.iterator.return&&(r.method="return",r.arg=n,S(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),g;var i=v(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var u=i.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=n),r.delegate=null,g):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function P(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function L(t){if(t||""===t){var r=t[f];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;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var c=u.call(i,"catchLoc"),f=u.call(i,"finallyLoc");if(c&&f){if(this.prev=0;--r){var e=this.tryEntries[r];if(e.tryLoc<=this.prev&&u.call(e,"finallyLoc")&&this.prev=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),g}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var o=e.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:L(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=n),g}},r}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},35745:function(t){function n(r,e){return t.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},t.exports.__esModule=!0,t.exports.default=t.exports,n(r,e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},79800:function(t,n,r){var e=r(27027),o=r(70849),i=r(66109),u=r(35599);t.exports=function(t,n){return e(t)||o(t,n)||i(t,n)||u()},t.exports.__esModule=!0,t.exports.default=t.exports},22652:function(t,n,r){var e=r(34577);t.exports=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports},41819:function(t,n,r){var e=r(31468).default;t.exports=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},83411:function(t,n,r){var e=r(31468).default,o=r(41819);t.exports=function(t){var n=o(t,"string");return"symbol"==e(n)?n:String(n)},t.exports.__esModule=!0,t.exports.default=t.exports},31468:function(t){function n(r){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},66109:function(t,n,r){var e=r(39572);t.exports=function(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},80813:function(t,n,r){"use strict";r.d(n,{_T:function(){return e},mG:function(){return o}});function e(t,n){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(r[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o=i)&&Object.keys(o.O).every((function(t){return o.O[t](r[c])}))?r.splice(c--,1):(a=!1,i0&&t[s-1][2]>i;s--)t[s]=t[s-1];t[s]=[r,e,i]},o.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(n,{a:n}),n},o.d=function(t,n){for(var r in n)o.o(n,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o.f={},o.e=function(t){return Promise.all(Object.keys(o.f).reduce((function(n,r){return o.f[r](t,n),n}),[]))},o.u=function(t){return t+".c893e1e3.async.js"},o.miniCssF=function(t){},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},o.p="https://www-cdn.educoder.net/",function(){var t={46122:1};o.f.i=function(n,r){t[n]||importScripts(o.p+o.u(n))};var n=self.webpackChunk=self.webpackChunk||[],r=n.push.bind(n);n.push=function(n){var e=n[0],i=n[1],u=n[2];for(var a in i)o.o(i,a)&&(o.m[a]=i[a]);for(u&&u(o);e.length;)t[e.pop()]=1;r(n)}}(),n=o.x,o.x=function(){return o.e(79266).then(n)};o.x()}(); \ No newline at end of file diff --git a/46949.52f63b52.async.js b/46949.52f63b52.async.js deleted file mode 100644 index 4e40d06ad5..0000000000 --- a/46949.52f63b52.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[46949],{94907:function(t,e,r){var i=r(97671);(function(){var e,r,n,s,a,o;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=i&&i.hrtime?(t.exports=function(){return(e()-a)/1e6},r=i.hrtime,s=(e=function(){var t;return 1e9*(t=r())[0]+t[1]})(),o=1e9*i.uptime(),a=s-o):Date.now?(t.exports=function(){return Date.now()-n},n=Date.now()):(t.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},32772:function(t,e,r){for(var i=r(94907),n="undefined"==typeof window?r.g:window,s=["moz","webkit"],a="AnimationFrame",o=n["request"+a],u=n["cancel"+a]||n["cancelRequest"+a],c=0;!o&&c3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,i=0;i "+c.toRGB()+" -> "+c.toHex());u.appendChild(h),u.appendChild(l),o.appendChild(u)}catch(t){}return o}}},72015:function(t,e,r){"use strict";var i=r(66638),n=r(86853),s=TypeError;t.exports=function(t){if(i(t))return t;throw new s(n(t)+" is not a function")}},69846:function(t,e,r){"use strict";var i=r(31998),n=r(86853),s=TypeError;t.exports=function(t){if(i(t))return t;throw new s(n(t)+" is not a constructor")}},73236:function(t,e,r){"use strict";var i=r(21432),n=String,s=TypeError;t.exports=function(t){if(i(t))return t;throw new s("Can't set "+n(t)+" as a prototype")}},72099:function(t,e,r){"use strict";var i=r(69393),n=r(7558),s=r(28603).f,a=i("unscopables"),o=Array.prototype;void 0===o[a]&&s(o,a,{configurable:!0,value:n(null)}),t.exports=function(t){o[a][t]=!0}},24235:function(t,e,r){"use strict";var i=r(85254).charAt;t.exports=function(t,e,r){return e+(r?i(t,e).length:1)}},95800:function(t,e,r){"use strict";var i=r(98327),n=TypeError;t.exports=function(t,e){if(i(e,t))return t;throw new n("Incorrect invocation")}},99016:function(t,e,r){"use strict";var i=r(64480),n=String,s=TypeError;t.exports=function(t){if(i(t))return t;throw new s(n(t)+" is not an object")}},60237:function(t,e,r){"use strict";var i=r(60326),n=r(68780),s=r(47554),a=function(t){return function(e,r,a){var o=i(e),u=s(o);if(0===u)return!t&&-1;var c,h=n(a,u);if(t&&r!=r){for(;u>h;)if((c=o[h++])!=c)return!0}else for(;u>h;h++)if((t||h in o)&&o[h]===r)return t||h||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},13030:function(t,e,r){"use strict";var i=r(92485);t.exports=function(t,e){var r=[][t];return!!r&&i((function(){r.call(null,e||function(){return 1},1)}))}},86669:function(t,e,r){"use strict";var i=r(72015),n=r(99197),s=r(98858),a=r(47554),o=TypeError,u="Reduce of empty array with no initial value",c=function(t){return function(e,r,c,h){var l=n(e),f=s(l),g=a(l);if(i(r),0===g&&c<2)throw new o(u);var p=t?g-1:0,d=t?-1:1;if(c<2)for(;;){if(p in f){h=f[p],p+=d;break}if(p+=d,t?p<0:g<=p)throw new o(u)}for(;t?p>=0:g>p;p+=d)p in f&&(h=r(h,f[p],p,l));return h}};t.exports={left:c(!1),right:c(!0)}},11712:function(t,e,r){"use strict";var i=r(51215);t.exports=i([].slice)},73872:function(t,e,r){"use strict";var i=r(69393)("iterator"),n=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){n=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!n)return!1}catch(t){return!1}var r=!1;try{var s={};s[i]=function(){return{next:function(){return{done:r=!0}}}},t(s)}catch(t){}return r}},81220:function(t,e,r){"use strict";var i=r(51215),n=i({}.toString),s=i("".slice);t.exports=function(t){return s(n(t),8,-1)}},36420:function(t,e,r){"use strict";var i=r(62233),n=r(66638),s=r(81220),a=r(69393)("toStringTag"),o=Object,u="Arguments"===s(function(){return arguments}());t.exports=i?s:function(t){var e,r,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=o(t),a))?r:u?s(e):"Object"===(i=s(e))&&n(e.callee)?"Arguments":i}},74193:function(t,e,r){"use strict";var i=r(65714),n=r(3905),s=r(89310),a=r(28603);t.exports=function(t,e,r){for(var o=n(e),u=a.f,c=s.f,h=0;h0&&i[0]<4?1:+(i[0]+i[1])),!n&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(n=+i[1]),t.exports=n},28367:function(t,e,r){"use strict";var i=r(55201),n=r(31948),s=r(81220),a=function(t){return n.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===s(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"},74717:function(t,e,r){"use strict";var i=r(55201),n=r(89310).f,s=r(78842),a=r(36520),o=r(61971),u=r(74193),c=r(36610);t.exports=function(t,e){var r,h,l,f,g,p=t.target,d=t.global,v=t.stat;if(r=d?i:v?i[p]||o(p,{}):i[p]&&i[p].prototype)for(h in e){if(f=e[h],l=t.dontCallGetSet?(g=n(r,h))&&g.value:r[h],!c(d?h:p+(v?".":"#")+h,t.forced)&&void 0!==l){if(typeof f==typeof l)continue;u(f,l)}(t.sham||l&&l.sham)&&s(f,"sham",!0),a(r,h,f,t)}}},92485:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},63248:function(t,e,r){"use strict";r(17733);var i=r(83187),n=r(36520),s=r(68658),a=r(92485),o=r(69393),u=r(78842),c=o("species"),h=RegExp.prototype;t.exports=function(t,e,r,l){var f=o(t),g=!a((function(){var e={};return e[f]=function(){return 7},7!==""[t](e)})),p=g&&!a((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return e=!0,null},r[f](""),!e}));if(!g||!p||r){var d=/./[f],v=e(f,""[t],(function(t,e,r,n,a){var o=e.exec;return o===s||o===h.exec?g&&!a?{done:!0,value:i(d,e,r,n)}:{done:!0,value:i(t,r,e,n)}:{done:!1}}));n(String.prototype,t,v[0]),n(h,f,v[1])}l&&u(h[f],"sham",!0)}},42838:function(t,e,r){"use strict";var i=r(60338),n=Function.prototype,s=n.apply,a=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(s):function(){return a.apply(s,arguments)})},86143:function(t,e,r){"use strict";var i=r(48327),n=r(72015),s=r(60338),a=i(i.bind);t.exports=function(t,e){return n(t),void 0===e?t:s?a(t,e):function(){return t.apply(e,arguments)}}},60338:function(t,e,r){"use strict";var i=r(92485);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},83187:function(t,e,r){"use strict";var i=r(60338),n=Function.prototype.call;t.exports=i?n.bind(n):function(){return n.apply(n,arguments)}},70492:function(t,e,r){"use strict";var i=r(95743),n=r(65714),s=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,o=n(s,"name"),u=o&&"something"===function(){}.name,c=o&&(!i||i&&a(s,"name").configurable);t.exports={EXISTS:o,PROPER:u,CONFIGURABLE:c}},45071:function(t,e,r){"use strict";var i=r(51215),n=r(72015);t.exports=function(t,e,r){try{return i(n(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},48327:function(t,e,r){"use strict";var i=r(81220),n=r(51215);t.exports=function(t){if("Function"===i(t))return n(t)}},51215:function(t,e,r){"use strict";var i=r(60338),n=Function.prototype,s=n.call,a=i&&n.bind.bind(s,s);t.exports=i?a:function(t){return function(){return s.apply(t,arguments)}}},3571:function(t,e,r){"use strict";var i=r(55201),n=r(66638),s=function(t){return n(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?s(i[t]):i[t]&&i[t][e]}},63624:function(t,e,r){"use strict";var i=r(36420),n=r(2847),s=r(75305),a=r(4639),o=r(69393)("iterator");t.exports=function(t){if(!s(t))return n(t,o)||n(t,"@@iterator")||a[i(t)]}},94535:function(t,e,r){"use strict";var i=r(83187),n=r(72015),s=r(99016),a=r(86853),o=r(63624),u=TypeError;t.exports=function(t,e){var r=arguments.length<2?o(t):e;if(n(r))return s(i(r,t));throw new u(a(t)+" is not iterable")}},2847:function(t,e,r){"use strict";var i=r(72015),n=r(75305);t.exports=function(t,e){var r=t[e];return n(r)?void 0:i(r)}},83647:function(t,e,r){"use strict";var i=r(51215),n=r(99197),s=Math.floor,a=i("".charAt),o=i("".replace),u=i("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,h=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,i,l,f){var g=r+t.length,p=i.length,d=h;return void 0!==l&&(l=n(l),d=c),o(f,d,(function(n,o){var c;switch(a(o,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,r);case"'":return u(e,g);case"<":c=l[u(o,1,-1)];break;default:var h=+o;if(0===h)return n;if(h>p){var f=s(h/10);return 0===f?n:f<=p?void 0===i[f-1]?a(o,1):i[f-1]+a(o,1):n}c=i[h-1]}return void 0===c?"":c}))}},55201:function(t,e,r){"use strict";var i=function(t){return t&&t.Math===Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r.g&&r.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},65714:function(t,e,r){"use strict";var i=r(51215),n=r(99197),s=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return s(n(t),e)}},43906:function(t){"use strict";t.exports={}},30673:function(t){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},97442:function(t,e,r){"use strict";var i=r(3571);t.exports=i("document","documentElement")},46906:function(t,e,r){"use strict";var i=r(95743),n=r(92485),s=r(43449);t.exports=!i&&!n((function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},98858:function(t,e,r){"use strict";var i=r(51215),n=r(92485),s=r(81220),a=Object,o=i("".split);t.exports=n((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===s(t)?o(t,""):a(t)}:a},60776:function(t,e,r){"use strict";var i=r(51215),n=r(66638),s=r(8605),a=i(Function.toString);n(s.inspectSource)||(s.inspectSource=function(t){return a(t)}),t.exports=s.inspectSource},38029:function(t,e,r){"use strict";var i,n,s,a=r(29176),o=r(55201),u=r(64480),c=r(78842),h=r(65714),l=r(8605),f=r(75541),g=r(43906),p="Object already initialized",d=o.TypeError,v=o.WeakMap;if(a||l.state){var y=l.state||(l.state=new v);y.get=y.get,y.has=y.has,y.set=y.set,i=function(t,e){if(y.has(t))throw new d(p);return e.facade=t,y.set(t,e),e},n=function(t){return y.get(t)||{}},s=function(t){return y.has(t)}}else{var m=f("state");g[m]=!0,i=function(t,e){if(h(t,m))throw new d(p);return e.facade=t,c(t,m,e),e},n=function(t){return h(t,m)?t[m]:{}},s=function(t){return h(t,m)}}t.exports={set:i,get:n,has:s,enforce:function(t){return s(t)?n(t):i(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=n(e)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}},33706:function(t,e,r){"use strict";var i=r(69393),n=r(4639),s=i("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||a[s]===t)}},88794:function(t,e,r){"use strict";var i=r(81220);t.exports=Array.isArray||function(t){return"Array"===i(t)}},66638:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},31998:function(t,e,r){"use strict";var i=r(51215),n=r(92485),s=r(66638),a=r(36420),o=r(3571),u=r(60776),c=function(){},h=o("Reflect","construct"),l=/^\s*(?:class|function)\b/,f=i(l.exec),g=!l.test(c),p=function(t){if(!s(t))return!1;try{return h(c,[],t),!0}catch(t){return!1}},d=function(t){if(!s(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g||!!f(l,u(t))}catch(t){return!0}};d.sham=!0,t.exports=!h||n((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?d:p},36610:function(t,e,r){"use strict";var i=r(92485),n=r(66638),s=/#|\.prototype\./,a=function(t,e){var r=u[o(t)];return r===h||r!==c&&(n(e)?i(e):!!e)},o=a.normalize=function(t){return String(t).replace(s,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",h=a.POLYFILL="P";t.exports=a},75305:function(t){"use strict";t.exports=function(t){return null==t}},64480:function(t,e,r){"use strict";var i=r(66638);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},21432:function(t,e,r){"use strict";var i=r(64480);t.exports=function(t){return i(t)||null===t}},24478:function(t){"use strict";t.exports=!1},16779:function(t,e,r){"use strict";var i=r(64480),n=r(81220),s=r(69393)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[s])?!!e:"RegExp"===n(t))}},65017:function(t,e,r){"use strict";var i=r(3571),n=r(66638),s=r(98327),a=r(87563),o=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return n(e)&&s(e.prototype,o(t))}},47589:function(t,e,r){"use strict";var i=r(86143),n=r(83187),s=r(99016),a=r(86853),o=r(33706),u=r(47554),c=r(98327),h=r(94535),l=r(63624),f=r(44991),g=TypeError,p=function(t,e){this.stopped=t,this.result=e},d=p.prototype;t.exports=function(t,e,r){var v,y,m,x,b,S,w,T=r&&r.that,O=!(!r||!r.AS_ENTRIES),A=!(!r||!r.IS_RECORD),C=!(!r||!r.IS_ITERATOR),E=!(!r||!r.INTERRUPTED),P=i(e,T),N=function(t){return v&&f(v,"normal",t),new p(!0,t)},M=function(t){return O?(s(t),E?P(t[0],t[1],N):P(t[0],t[1])):E?P(t,N):P(t)};if(A)v=t.iterator;else if(C)v=t;else{if(!(y=l(t)))throw new g(a(t)+" is not iterable");if(o(y)){for(m=0,x=u(t);x>m;m++)if((b=M(t[m]))&&c(d,b))return b;return new p(!1)}v=h(t,y)}for(S=A?t.next:v.next;!(w=n(S,v)).done;){try{b=M(w.value)}catch(t){f(v,"throw",t)}if("object"==typeof b&&b&&c(d,b))return b}return new p(!1)}},44991:function(t,e,r){"use strict";var i=r(83187),n=r(99016),s=r(2847);t.exports=function(t,e,r){var a,o;n(t);try{if(!(a=s(t,"return"))){if("throw"===e)throw r;return r}a=i(a,t)}catch(t){o=!0,a=t}if("throw"===e)throw r;if(o)throw a;return n(a),r}},65078:function(t,e,r){"use strict";var i=r(40033).IteratorPrototype,n=r(7558),s=r(24894),a=r(3879),o=r(4639),u=function(){return this};t.exports=function(t,e,r,c){var h=e+" Iterator";return t.prototype=n(i,{next:s(+!c,r)}),a(t,h,!1,!0),o[h]=u,t}},5718:function(t,e,r){"use strict";var i=r(74717),n=r(83187),s=r(24478),a=r(70492),o=r(66638),u=r(65078),c=r(73298),h=r(60933),l=r(3879),f=r(78842),g=r(36520),p=r(69393),d=r(4639),v=r(40033),y=a.PROPER,m=a.CONFIGURABLE,x=v.IteratorPrototype,b=v.BUGGY_SAFARI_ITERATORS,S=p("iterator"),w="keys",T="values",O="entries",A=function(){return this};t.exports=function(t,e,r,a,p,v,C){u(r,e,a);var E,P,N,M=function(t){if(t===p&&I)return I;if(!b&&t&&t in V)return V[t];switch(t){case w:case T:case O:return function(){return new r(this,t)}}return function(){return new r(this)}},R=e+" Iterator",_=!1,V=t.prototype,k=V[S]||V["@@iterator"]||p&&V[p],I=!b&&k||M(p),L="Array"===e&&V.entries||k;if(L&&(E=c(L.call(new t)))!==Object.prototype&&E.next&&(s||c(E)===x||(h?h(E,x):o(E[S])||g(E,S,A)),l(E,R,!0,!0),s&&(d[R]=A)),y&&p===T&&k&&k.name!==T&&(!s&&m?f(V,"name",T):(_=!0,I=function(){return n(k,this)})),p)if(P={values:M(T),keys:v?I:M(w),entries:M(O)},C)for(N in P)(b||_||!(N in V))&&g(V,N,P[N]);else i({target:e,proto:!0,forced:b||_},P);return s&&!C||V[S]===I||g(V,S,I,{name:p}),d[e]=I,P}},40033:function(t,e,r){"use strict";var i,n,s,a=r(92485),o=r(66638),u=r(64480),c=r(7558),h=r(73298),l=r(36520),f=r(69393),g=r(24478),p=f("iterator"),d=!1;[].keys&&("next"in(s=[].keys())?(n=h(h(s)))!==Object.prototype&&(i=n):d=!0),!u(i)||a((function(){var t={};return i[p].call(t)!==t}))?i={}:g&&(i=c(i)),o(i[p])||l(i,p,(function(){return this})),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:d}},4639:function(t){"use strict";t.exports={}},47554:function(t,e,r){"use strict";var i=r(80654);t.exports=function(t){return i(t.length)}},28364:function(t,e,r){"use strict";var i=r(51215),n=r(92485),s=r(66638),a=r(65714),o=r(95743),u=r(70492).CONFIGURABLE,c=r(60776),h=r(38029),l=h.enforce,f=h.get,g=String,p=Object.defineProperty,d=i("".slice),v=i("".replace),y=i([].join),m=o&&!n((function(){return 8!==p((function(){}),"length",{value:8}).length})),x=String(String).split("String"),b=t.exports=function(t,e,r){"Symbol("===d(g(e),0,7)&&(e="["+v(g(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(o?p(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&a(r,"arity")&&t.length!==r.arity&&p(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?o&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=l(t);return a(i,"source")||(i.source=y(x,"string"==typeof e?e:"")),t};Function.prototype.toString=b((function(){return s(this)&&f(this).source||c(this)}),"toString")},9079:function(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?r:e)(i)}},56135:function(t,e,r){"use strict";var i,n,s,a,o,u=r(55201),c=r(65653),h=r(86143),l=r(62050).set,f=r(86513),g=r(46428),p=r(90489),d=r(39252),v=r(66569),y=u.MutationObserver||u.WebKitMutationObserver,m=u.document,x=u.process,b=u.Promise,S=c("queueMicrotask");if(!S){var w=new f,T=function(){var t,e;for(v&&(t=x.domain)&&t.exit();e=w.get();)try{e()}catch(t){throw w.head&&i(),t}t&&t.enter()};g||v||d||!y||!m?!p&&b&&b.resolve?((a=b.resolve(void 0)).constructor=b,o=h(a.then,a),i=function(){o(T)}):v?i=function(){x.nextTick(T)}:(l=h(l,u),i=function(){l(T)}):(n=!0,s=m.createTextNode(""),new y(T).observe(s,{characterData:!0}),i=function(){s.data=n=!n}),S=function(t){w.head||i(),w.add(t)}}t.exports=S},48455:function(t,e,r){"use strict";var i=r(72015),n=TypeError,s=function(t){var e,r;this.promise=new t((function(t,i){if(void 0!==e||void 0!==r)throw new n("Bad Promise constructor");e=t,r=i})),this.resolve=i(e),this.reject=i(r)};t.exports.f=function(t){return new s(t)}},65893:function(t,e,r){"use strict";var i=r(16779),n=TypeError;t.exports=function(t){if(i(t))throw new n("The method doesn't accept regular expressions");return t}},7558:function(t,e,r){"use strict";var i,n=r(99016),s=r(6701),a=r(54630),o=r(43906),u=r(97442),c=r(43449),h=r(75541),l="prototype",f="script",g=h("IE_PROTO"),p=function(){},d=function(t){return"<"+f+">"+t+""},v=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;y="undefined"!=typeof document?document.domain&&i?v(i):(e=c("iframe"),r="java"+f+":",e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):v(i);for(var n=a.length;n--;)delete y[l][a[n]];return y()};o[g]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(p[l]=n(t),r=new p,p[l]=null,r[g]=t):r=y(),void 0===e?r:s.f(r,e)}},6701:function(t,e,r){"use strict";var i=r(95743),n=r(46654),s=r(28603),a=r(99016),o=r(60326),u=r(45791);e.f=i&&!n?Object.defineProperties:function(t,e){a(t);for(var r,i=o(e),n=u(e),c=n.length,h=0;c>h;)s.f(t,r=n[h++],i[r]);return t}},28603:function(t,e,r){"use strict";var i=r(95743),n=r(46906),s=r(46654),a=r(99016),o=r(15446),u=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,l="enumerable",f="configurable",g="writable";e.f=i?s?function(t,e,r){if(a(t),e=o(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&g in r&&!r[g]){var i=h(t,e);i&&i[g]&&(t[e]=r.value,r={configurable:f in r?r[f]:i[f],enumerable:l in r?r[l]:i[l],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(a(t),e=o(e),a(r),n)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},89310:function(t,e,r){"use strict";var i=r(95743),n=r(83187),s=r(36441),a=r(24894),o=r(60326),u=r(15446),c=r(65714),h=r(46906),l=Object.getOwnPropertyDescriptor;e.f=i?l:function(t,e){if(t=o(t),e=u(e),h)try{return l(t,e)}catch(t){}if(c(t,e))return a(!n(s.f,t,e),t[e])}},41983:function(t,e,r){"use strict";var i=r(73880),n=r(54630).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,n)}},30023:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},73298:function(t,e,r){"use strict";var i=r(65714),n=r(66638),s=r(99197),a=r(75541),o=r(4983),u=a("IE_PROTO"),c=Object,h=c.prototype;t.exports=o?c.getPrototypeOf:function(t){var e=s(t);if(i(e,u))return e[u];var r=e.constructor;return n(r)&&e instanceof r?r.prototype:e instanceof c?h:null}},98327:function(t,e,r){"use strict";var i=r(51215);t.exports=i({}.isPrototypeOf)},73880:function(t,e,r){"use strict";var i=r(51215),n=r(65714),s=r(60326),a=r(60237).indexOf,o=r(43906),u=i([].push);t.exports=function(t,e){var r,i=s(t),c=0,h=[];for(r in i)!n(o,r)&&n(i,r)&&u(h,r);for(;e.length>c;)n(i,r=e[c++])&&(~a(h,r)||u(h,r));return h}},45791:function(t,e,r){"use strict";var i=r(73880),n=r(54630);t.exports=Object.keys||function(t){return i(t,n)}},36441:function(t,e){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,n=i&&!r.call({1:2},1);e.f=n?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},60933:function(t,e,r){"use strict";var i=r(45071),n=r(64480),s=r(22341),a=r(73236);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=i(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return s(r),a(i),n(r)?(e?t(r,i):r.__proto__=i,r):r}}():void 0)},18228:function(t,e,r){"use strict";var i=r(83187),n=r(66638),s=r(64480),a=TypeError;t.exports=function(t,e){var r,o;if("string"===e&&n(r=t.toString)&&!s(o=i(r,t)))return o;if(n(r=t.valueOf)&&!s(o=i(r,t)))return o;if("string"!==e&&n(r=t.toString)&&!s(o=i(r,t)))return o;throw new a("Can't convert object to primitive value")}},3905:function(t,e,r){"use strict";var i=r(3571),n=r(51215),s=r(41983),a=r(30023),o=r(99016),u=n([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=s.f(o(t)),r=a.f;return r?u(e,r(t)):e}},99082:function(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},51378:function(t,e,r){"use strict";var i=r(55201),n=r(85676),s=r(66638),a=r(36610),o=r(60776),u=r(69393),c=r(28367),h=r(24478),l=r(53368),f=n&&n.prototype,g=u("species"),p=!1,d=s(i.PromiseRejectionEvent),v=a("Promise",(function(){var t=o(n),e=t!==String(n);if(!e&&66===l)return!0;if(h&&(!f.catch||!f.finally))return!0;if(!l||l<51||!/native code/.test(t)){var r=new n((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))};if((r.constructor={})[g]=i,!(p=r.then((function(){}))instanceof i))return!0}return!(e||"BROWSER"!==c&&"DENO"!==c||d)}));t.exports={CONSTRUCTOR:v,REJECTION_EVENT:d,SUBCLASSING:p}},85676:function(t,e,r){"use strict";var i=r(55201);t.exports=i.Promise},91272:function(t,e,r){"use strict";var i=r(99016),n=r(64480),s=r(48455);t.exports=function(t,e){if(i(t),n(e)&&e.constructor===t)return e;var r=s.f(t);return(0,r.resolve)(e),r.promise}},85969:function(t,e,r){"use strict";var i=r(85676),n=r(73872),s=r(51378).CONSTRUCTOR;t.exports=s||!n((function(t){i.all(t).then(void 0,(function(){}))}))},86513:function(t){"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},44960:function(t,e,r){"use strict";var i=r(83187),n=r(99016),s=r(66638),a=r(81220),o=r(68658),u=TypeError;t.exports=function(t,e){var r=t.exec;if(s(r)){var c=i(r,t,e);return null!==c&&n(c),c}if("RegExp"===a(t))return i(o,t,e);throw new u("RegExp#exec called on incompatible receiver")}},68658:function(t,e,r){"use strict";var i,n,s=r(83187),a=r(51215),o=r(26092),u=r(29954),c=r(67247),h=r(28765),l=r(7558),f=r(38029).get,g=r(77968),p=r(31313),d=h("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,m=a("".charAt),x=a("".indexOf),b=a("".replace),S=a("".slice),w=(n=/b*/g,s(v,i=/a/,"a"),s(v,n,"a"),0!==i.lastIndex||0!==n.lastIndex),T=c.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];(w||O||T||g||p)&&(y=function(t){var e,r,i,n,a,c,h,g=this,p=f(g),A=o(t),C=p.raw;if(C)return C.lastIndex=g.lastIndex,e=s(y,C,A),g.lastIndex=C.lastIndex,e;var E=p.groups,P=T&&g.sticky,N=s(u,g),M=g.source,R=0,_=A;if(P&&(N=b(N,"y",""),-1===x(N,"g")&&(N+="g"),_=S(A,g.lastIndex),g.lastIndex>0&&(!g.multiline||g.multiline&&"\n"!==m(A,g.lastIndex-1))&&(M="(?: "+M+")",_=" "+_,R++),r=new RegExp("^(?:"+M+")",N)),O&&(r=new RegExp("^"+M+"$(?!\\s)",N)),w&&(i=g.lastIndex),n=s(v,P?r:g,_),P?n?(n.input=S(n.input,R),n[0]=S(n[0],R),n.index=g.lastIndex,g.lastIndex+=n[0].length):g.lastIndex=0:w&&n&&(g.lastIndex=g.global?n.index+n[0].length:i),O&&n&&n.length>1&&s(d,n[0],r,(function(){for(a=1;ab)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},22341:function(t,e,r){"use strict";var i=r(75305),n=TypeError;t.exports=function(t){if(i(t))throw new n("Can't call method on "+t);return t}},65653:function(t,e,r){"use strict";var i=r(55201),n=r(95743),s=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!n)return i[t];var e=s(i,t);return e&&e.value}},42449:function(t,e,r){"use strict";var i=r(3571),n=r(20313),s=r(69393),a=r(95743),o=s("species");t.exports=function(t){var e=i(t);a&&e&&!e[o]&&n(e,o,{configurable:!0,get:function(){return this}})}},3879:function(t,e,r){"use strict";var i=r(28603).f,n=r(65714),s=r(69393)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!n(t,s)&&i(t,s,{configurable:!0,value:e})}},75541:function(t,e,r){"use strict";var i=r(28765),n=r(56688),s=i("keys");t.exports=function(t){return s[t]||(s[t]=n(t))}},8605:function(t,e,r){"use strict";var i=r(24478),n=r(55201),s=r(61971),a="__core-js_shared__",o=t.exports=n[a]||s(a,{});(o.versions||(o.versions=[])).push({version:"3.39.0",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},28765:function(t,e,r){"use strict";var i=r(8605);t.exports=function(t,e){return i[t]||(i[t]=e||{})}},29242:function(t,e,r){"use strict";var i=r(99016),n=r(69846),s=r(75305),a=r(69393)("species");t.exports=function(t,e){var r,o=i(t).constructor;return void 0===o||s(r=i(o)[a])?e:n(r)}},85254:function(t,e,r){"use strict";var i=r(51215),n=r(90190),s=r(26092),a=r(22341),o=i("".charAt),u=i("".charCodeAt),c=i("".slice),h=function(t){return function(e,r){var i,h,l=s(a(e)),f=n(r),g=l.length;return f<0||f>=g?t?"":void 0:(i=u(l,f))<55296||i>56319||f+1===g||(h=u(l,f+1))<56320||h>57343?t?o(l,f):i:t?c(l,f,f+2):h-56320+(i-55296<<10)+65536}};t.exports={codeAt:h(!1),charAt:h(!0)}},30377:function(t,e,r){"use strict";var i=r(70492).PROPER,n=r(92485),s=r(21181);t.exports=function(t){return n((function(){return!!s[t]()||"​…᠎"!=="​…᠎"[t]()||i&&s[t].name!==t}))}},29835:function(t,e,r){"use strict";var i=r(51215),n=r(22341),s=r(26092),a=r(21181),o=i("".replace),u=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),h=function(t){return function(e){var r=s(n(e));return 1&t&&(r=o(r,u,"")),2&t&&(r=o(r,c,"$1")),r}};t.exports={start:h(1),end:h(2),trim:h(3)}},84405:function(t,e,r){"use strict";var i=r(53368),n=r(92485),s=r(55201).String;t.exports=!!Object.getOwnPropertySymbols&&!n((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},62050:function(t,e,r){"use strict";var i,n,s,a,o=r(55201),u=r(42838),c=r(86143),h=r(66638),l=r(65714),f=r(92485),g=r(97442),p=r(11712),d=r(43449),v=r(24001),y=r(46428),m=r(66569),x=o.setImmediate,b=o.clearImmediate,S=o.process,w=o.Dispatch,T=o.Function,O=o.MessageChannel,A=o.String,C=0,E={},P="onreadystatechange";f((function(){i=o.location}));var N=function(t){if(l(E,t)){var e=E[t];delete E[t],e()}},M=function(t){return function(){N(t)}},R=function(t){N(t.data)},_=function(t){o.postMessage(A(t),i.protocol+"//"+i.host)};x&&b||(x=function(t){v(arguments.length,1);var e=h(t)?t:T(t),r=p(arguments,1);return E[++C]=function(){u(e,void 0,r)},n(C),C},b=function(t){delete E[t]},m?n=function(t){S.nextTick(M(t))}:w&&w.now?n=function(t){w.now(M(t))}:O&&!y?(a=(s=new O).port2,s.port1.onmessage=R,n=c(a.postMessage,a)):o.addEventListener&&h(o.postMessage)&&!o.importScripts&&i&&"file:"!==i.protocol&&!f(_)?(n=_,o.addEventListener("message",R,!1)):n=P in d("script")?function(t){g.appendChild(d("script"))[P]=function(){g.removeChild(this),N(t)}}:function(t){setTimeout(M(t),0)}),t.exports={set:x,clear:b}},68780:function(t,e,r){"use strict";var i=r(90190),n=Math.max,s=Math.min;t.exports=function(t,e){var r=i(t);return r<0?n(r+e,0):s(r,e)}},60326:function(t,e,r){"use strict";var i=r(98858),n=r(22341);t.exports=function(t){return i(n(t))}},90190:function(t,e,r){"use strict";var i=r(9079);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},80654:function(t,e,r){"use strict";var i=r(90190),n=Math.min;t.exports=function(t){var e=i(t);return e>0?n(e,9007199254740991):0}},99197:function(t,e,r){"use strict";var i=r(22341),n=Object;t.exports=function(t){return n(i(t))}},87403:function(t,e,r){"use strict";var i=r(83187),n=r(64480),s=r(65017),a=r(2847),o=r(18228),u=r(69393),c=TypeError,h=u("toPrimitive");t.exports=function(t,e){if(!n(t)||s(t))return t;var r,u=a(t,h);if(u){if(void 0===e&&(e="default"),r=i(u,t,e),!n(r)||s(r))return r;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),o(t,e)}},15446:function(t,e,r){"use strict";var i=r(87403),n=r(65017);t.exports=function(t){var e=i(t,"string");return n(e)?e:e+""}},62233:function(t,e,r){"use strict";var i={};i[r(69393)("toStringTag")]="z",t.exports="[object z]"===String(i)},26092:function(t,e,r){"use strict";var i=r(36420),n=String;t.exports=function(t){if("Symbol"===i(t))throw new TypeError("Cannot convert a Symbol value to a string");return n(t)}},86853:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},56688:function(t,e,r){"use strict";var i=r(51215),n=0,s=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++n+s,36)}},87563:function(t,e,r){"use strict";var i=r(84405);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},46654:function(t,e,r){"use strict";var i=r(95743),n=r(92485);t.exports=i&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},24001:function(t){"use strict";var e=TypeError;t.exports=function(t,r){if(t1?arguments[1]:void 0;return u?o(this,t,e)||0:s(this,t,e)}})},1702:function(t,e,r){"use strict";var i=r(60326),n=r(72099),s=r(4639),a=r(38029),o=r(28603).f,u=r(5718),c=r(51061),h=r(24478),l=r(95743),f="Array Iterator",g=a.set,p=a.getterFor(f);t.exports=u(Array,"Array",(function(t,e){g(this,{type:f,target:i(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(r,!1);case"values":return c(e[r],!1)}return c([r,e[r]],!1)}),"values");var d=s.Arguments=s.Array;if(n("keys"),n("values"),n("entries"),!h&&l&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}},93307:function(t,e,r){"use strict";var i=r(74717),n=r(86669).left,s=r(13030),a=r(53368);i({target:"Array",proto:!0,forced:!r(66569)&&a>79&&a<83||!s("reduce")},{reduce:function(t){var e=arguments.length;return n(this,t,e,e>1?arguments[1]:void 0)}})},2663:function(t,e,r){"use strict";var i=r(74717),n=r(51215),s=r(88794),a=n([].reverse),o=[1,2];i({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return s(this)&&(this.length=this.length),a(this)}})},67240:function(t,e,r){"use strict";var i=r(74717),n=r(83187),s=r(72015),a=r(48455),o=r(99082),u=r(47589);i({target:"Promise",stat:!0,forced:r(85969)},{all:function(t){var e=this,r=a.f(e),i=r.resolve,c=r.reject,h=o((function(){var r=s(e.resolve),a=[],o=0,h=1;u(t,(function(t){var s=o++,u=!1;h++,n(r,e,t).then((function(t){u||(u=!0,a[s]=t,--h||i(a))}),c)})),--h||i(a)}));return h.error&&c(h.value),r.promise}})},36018:function(t,e,r){"use strict";var i=r(74717),n=r(24478),s=r(51378).CONSTRUCTOR,a=r(85676),o=r(3571),u=r(66638),c=r(36520),h=a&&a.prototype;if(i({target:"Promise",proto:!0,forced:s,real:!0},{catch:function(t){return this.then(void 0,t)}}),!n&&u(a)){var l=o("Promise").prototype.catch;h.catch!==l&&c(h,"catch",l,{unsafe:!0})}},32232:function(t,e,r){"use strict";var i,n,s,a=r(74717),o=r(24478),u=r(66569),c=r(55201),h=r(83187),l=r(36520),f=r(60933),g=r(3879),p=r(42449),d=r(72015),v=r(66638),y=r(64480),m=r(95800),x=r(29242),b=r(62050).set,S=r(56135),w=r(30673),T=r(99082),O=r(86513),A=r(38029),C=r(85676),E=r(51378),P=r(48455),N="Promise",M=E.CONSTRUCTOR,R=E.REJECTION_EVENT,_=E.SUBCLASSING,V=A.getterFor(N),k=A.set,I=C&&C.prototype,L=C,D=I,B=c.TypeError,j=c.document,F=c.process,z=P.f,U=z,H=!!(j&&j.createEvent&&c.dispatchEvent),X="unhandledrejection",Y=function(t){var e;return!(!y(t)||!v(e=t.then))&&e},W=function(t,e){var r,i,n,s=e.value,a=1===e.state,o=a?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{o?(a||(2===e.rejection&&Z(e),e.rejection=1),!0===o?r=s:(l&&l.enter(),r=o(s),l&&(l.exit(),n=!0)),r===t.promise?c(new B("Promise-chain cycle")):(i=Y(r))?h(i,r,u,c):u(r)):c(s)}catch(t){l&&!n&&l.exit(),c(t)}},q=function(t,e){t.notified||(t.notified=!0,S((function(){for(var r,i=t.reactions;r=i.get();)W(r,t);t.notified=!1,e&&!t.rejection&&Q(t)})))},G=function(t,e,r){var i,n;H?((i=j.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),c.dispatchEvent(i)):i={promise:e,reason:r},!R&&(n=c["on"+t])?n(i):t===X&&w("Unhandled promise rejection",r)},Q=function(t){h(b,c,(function(){var e,r=t.facade,i=t.value;if($(t)&&(e=T((function(){u?F.emit("unhandledRejection",i,r):G(X,r,i)})),t.rejection=u||$(t)?2:1,e.error))throw e.value}))},$=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){h(b,c,(function(){var e=t.facade;u?F.emit("rejectionHandled",e):G("rejectionhandled",e,t.value)}))},K=function(t,e,r){return function(i){t(e,i,r)}},J=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,q(t,!0))},tt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new B("Promise can't be resolved itself");var i=Y(e);i?S((function(){var r={done:!1};try{h(i,e,K(tt,r,t),K(J,r,t))}catch(e){J(r,e,t)}})):(t.value=e,t.state=1,q(t,!1))}catch(e){J({done:!1},e,t)}}};if(M&&(D=(L=function(t){m(this,D),d(t),h(i,this);var e=V(this);try{t(K(tt,e),K(J,e))}catch(t){J(e,t)}}).prototype,(i=function(t){k(this,{type:N,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:null})}).prototype=l(D,"then",(function(t,e){var r=V(this),i=z(x(this,L));return r.parent=!0,i.ok=!v(t)||t,i.fail=v(e)&&e,i.domain=u?F.domain:void 0,0===r.state?r.reactions.add(i):S((function(){W(i,r)})),i.promise})),n=function(){var t=new i,e=V(t);this.promise=t,this.resolve=K(tt,e),this.reject=K(J,e)},P.f=z=function(t){return t===L||undefined===t?new n(t):U(t)},!o&&v(C)&&I!==Object.prototype)){s=I.then,_||l(I,"then",(function(t,e){var r=this;return new L((function(t,e){h(s,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete I.constructor}catch(t){}f&&f(I,D)}a({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:L}),g(L,N,!1,!0),p(N)},48072:function(t,e,r){"use strict";r(32232),r(67240),r(36018),r(33870),r(74039),r(92836)},33870:function(t,e,r){"use strict";var i=r(74717),n=r(83187),s=r(72015),a=r(48455),o=r(99082),u=r(47589);i({target:"Promise",stat:!0,forced:r(85969)},{race:function(t){var e=this,r=a.f(e),i=r.reject,c=o((function(){var a=s(e.resolve);u(t,(function(t){n(a,e,t).then(r.resolve,i)}))}));return c.error&&i(c.value),r.promise}})},74039:function(t,e,r){"use strict";var i=r(74717),n=r(48455);i({target:"Promise",stat:!0,forced:r(51378).CONSTRUCTOR},{reject:function(t){var e=n.f(this);return(0,e.reject)(t),e.promise}})},92836:function(t,e,r){"use strict";var i=r(74717),n=r(3571),s=r(24478),a=r(85676),o=r(51378).CONSTRUCTOR,u=r(91272),c=n("Promise"),h=s&&!o;i({target:"Promise",stat:!0,forced:s||o},{resolve:function(t){return u(h&&this===c?a:this,t)}})},17733:function(t,e,r){"use strict";var i=r(74717),n=r(68658);i({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},88222:function(t,e,r){"use strict";var i=r(70492).PROPER,n=r(36520),s=r(99016),a=r(26092),o=r(92485),u=r(60866),c="toString",h=RegExp.prototype,l=h[c],f=o((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),g=i&&l.name!==c;(f||g)&&n(h,c,(function(){var t=s(this);return"/"+a(t.source)+"/"+a(u(t))}),{unsafe:!0})},21271:function(t,e,r){"use strict";var i,n=r(74717),s=r(48327),a=r(89310).f,o=r(80654),u=r(26092),c=r(65893),h=r(22341),l=r(58031),f=r(24478),g=s("".slice),p=Math.min,d=l("endsWith");n({target:"String",proto:!0,forced:!!(f||d||(i=a(String.prototype,"endsWith"),!i||i.writable))&&!d},{endsWith:function(t){var e=u(h(this));c(t);var r=arguments.length>1?arguments[1]:void 0,i=e.length,n=void 0===r?i:p(o(r),i),s=u(t);return g(e,n-s.length,n)===s}})},75589:function(t,e,r){"use strict";var i=r(74717),n=r(51215),s=r(65893),a=r(22341),o=r(26092),u=r(58031),c=n("".indexOf);i({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(o(a(this)),o(s(t)),arguments.length>1?arguments[1]:void 0)}})},53071:function(t,e,r){"use strict";var i=r(83187),n=r(63248),s=r(99016),a=r(75305),o=r(80654),u=r(26092),c=r(22341),h=r(2847),l=r(24235),f=r(44960);n("match",(function(t,e,r){return[function(e){var r=c(this),n=a(e)?void 0:h(e,t);return n?i(n,e,r):new RegExp(e)[t](u(r))},function(t){var i=s(this),n=u(t),a=r(e,i,n);if(a.done)return a.value;if(!i.global)return f(i,n);var c=i.unicode;i.lastIndex=0;for(var h,g=[],p=0;null!==(h=f(i,n));){var d=u(h[0]);g[p]=d,""===d&&(i.lastIndex=l(n,o(i.lastIndex),c)),p++}return 0===p?null:g}]}))},32531:function(t,e,r){"use strict";var i=r(42838),n=r(83187),s=r(51215),a=r(63248),o=r(92485),u=r(99016),c=r(66638),h=r(75305),l=r(90190),f=r(80654),g=r(26092),p=r(22341),d=r(24235),v=r(2847),y=r(83647),m=r(44960),x=r(69393)("replace"),b=Math.max,S=Math.min,w=s([].concat),T=s([].push),O=s("".indexOf),A=s("".slice),C="$0"==="a".replace(/./,"$0"),E=!!/./[x]&&""===/./[x]("a","$0");a("replace",(function(t,e,r){var s=E?"$":"$0";return[function(t,r){var i=p(this),s=h(t)?void 0:v(t,x);return s?n(s,t,i,r):n(e,g(i),t,r)},function(t,n){var a=u(this),o=g(t);if("string"==typeof n&&-1===O(n,s)&&-1===O(n,"$<")){var h=r(e,a,o,n);if(h.done)return h.value}var p=c(n);p||(n=g(n));var v,x=a.global;x&&(v=a.unicode,a.lastIndex=0);for(var C,E=[];null!==(C=m(a,o))&&(T(E,C),x);){""===g(C[0])&&(a.lastIndex=d(o,f(a.lastIndex),v))}for(var P,N="",M=0,R=0;R=M&&(N+=A(o,M,k)+_,M=k+V.length)}return N+A(o,M)}]}),!!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!C||E)},65320:function(t,e,r){"use strict";var i=r(83187),n=r(51215),s=r(63248),a=r(99016),o=r(75305),u=r(22341),c=r(29242),h=r(24235),l=r(80654),f=r(26092),g=r(2847),p=r(44960),d=r(67247),v=r(92485),y=d.UNSUPPORTED_Y,m=Math.min,x=n([].push),b=n("".slice),S=!v((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),w="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;s("split",(function(t,e,r){var n="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:i(e,this,t,r)}:e;return[function(e,r){var s=u(this),a=o(e)?void 0:g(e,t);return a?i(a,e,s,r):i(n,f(s),e,r)},function(t,i){var s=a(this),o=f(t);if(!w){var u=r(n,s,o,i,n!==e);if(u.done)return u.value}var g=c(s,RegExp),d=s.unicode,v=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(y?"g":"y"),S=new g(y?"^(?:"+s.source+")":s,v),T=void 0===i?4294967295:i>>>0;if(0===T)return[];if(0===o.length)return null===p(S,o)?[o]:[];for(var O=0,A=0,C=[];A1?arguments[1]:void 0,e.length)),i=u(t);return g(e,r,r+i.length)===i}})},34403:function(t,e,r){"use strict";var i=r(74717),n=r(29835).trim;i({target:"String",proto:!0,forced:r(30377)("trim")},{trim:function(){return n(this)}})},40588:function(t,e,r){"use strict";var i=r(55201),n=r(3417),s=r(30835),a=r(1702),o=r(78842),u=r(3879),c=r(69393)("iterator"),h=a.values,l=function(t,e){if(t){if(t[c]!==h)try{o(t,c,h)}catch(e){t[c]=h}if(u(t,e,!0),n[e])for(var r in a)if(t[r]!==a[r])try{o(t,r,a[r])}catch(e){t[r]=a[r]}}};for(var f in n)l(i[f]&&i[f].prototype,f);l(s,"DOMTokenList")},46949:function(t,e,r){"use strict";r.r(e),r.d(e,{AElement:function(){return ce},AnimateColorElement:function(){return ie},AnimateElement:function(){return re},AnimateTransformElement:function(){return ne},BoundingBox:function(){return Vt},CB1:function(){return rt},CB2:function(){return it},CB3:function(){return nt},CB4:function(){return st},Canvg:function(){return Fe},CircleElement:function(){return Ht},ClipPathElement:function(){return Ce},DefsElement:function(){return $t},DescElement:function(){return Ve},Document:function(){return De},Element:function(){return Et},EllipseElement:function(){return Xt},FeColorMatrixElement:function(){return Te},FeCompositeElement:function(){return Me},FeDropShadowElement:function(){return Pe},FeGaussianBlurElement:function(){return Re},FeMorphologyElement:function(){return Ne},FilterElement:function(){return Ee},Font:function(){return _t},FontElement:function(){return se},FontFaceElement:function(){return ae},GElement:function(){return Zt},GlyphElement:function(){return Dt},GradientElement:function(){return Kt},ImageElement:function(){return pe},LineElement:function(){return Yt},LinearGradientElement:function(){return Jt},MarkerElement:function(){return Qt},MaskElement:function(){return Oe},Matrix:function(){return wt},MissingGlyphElement:function(){return oe},Mouse:function(){return ft},PSEUDO_ZERO:function(){return K},Parser:function(){return mt},PathElement:function(){return Lt},PathParser:function(){return kt},PatternElement:function(){return Gt},Point:function(){return lt},PolygonElement:function(){return qt},PolylineElement:function(){return Wt},Property:function(){return ct},QB1:function(){return at},QB2:function(){return ot},QB3:function(){return ut},RadialGradientElement:function(){return te},RectElement:function(){return Ut},RenderedElement:function(){return It},Rotate:function(){return bt},SVGElement:function(){return zt},SVGFontLoader:function(){return ve},Scale:function(){return St},Screen:function(){return dt},Skew:function(){return Tt},SkewX:function(){return Ot},SkewY:function(){return At},StopElement:function(){return ee},StyleElement:function(){return ye},SymbolElement:function(){return de},TRefElement:function(){return ue},TSpanElement:function(){return jt},TextElement:function(){return Bt},TextPathElement:function(){return fe},TitleElement:function(){return _e},Transform:function(){return Ct},Translate:function(){return xt},UnknownElement:function(){return Pt},UseElement:function(){return me},ViewPort:function(){return ht},compressSpaces:function(){return I},default:function(){return Fe},getSelectorSpecificity:function(){return Z},normalizeAttributeName:function(){return F},normalizeColor:function(){return U},parseExternalUrl:function(){return z},presets:function(){return k},toNumbers:function(){return B},trimLeft:function(){return L},trimRight:function(){return D},vectorMagnitude:function(){return J},vectorsAngle:function(){return et},vectorsRatio:function(){return tt}});r(48072);var i=r(20959),n=(r(53071),r(32531),r(56090),r(1702),r(40588),r(80962)),s=(r(93307),r(21271),r(65320),r(32772)),a=(r(34403),r(45810)),o=(r(63469),r(75589),r(2663),function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)});function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function c(t,e){var r=t[0],i=t[1];return[r*Math.cos(e)-i*Math.sin(e),r*Math.sin(e)+i*Math.cos(e)]}function h(){for(var t=[],e=0;et.phi1&&(t.phi2-=2*l),1===t.sweepFlag&&t.phi2i)return[];if(0===i)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var n=Math.sqrt(i);return[[(t*r+e*n)/(t*t+e*e),(e*r-t*n)/(t*t+e*e)],[(t*r-e*n)/(t*t+e*e),(e*r+t*n)/(t*t+e*e)]]}var p,d=Math.PI/180;function v(t,e,r){return(1-r)*t+r*e}function y(t,e,r,i){return t+Math.cos(i/180*l)*e+Math.sin(i/180*l)*r}function m(t,e,r,i){var n=1e-6,s=e-t,a=r-e,o=3*s+3*(i-r)-6*a,u=6*(a-s),c=3*s;return Math.abs(o)v&&(n.sweepFlag=+!n.sweepFlag),n}))}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),h(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return n((function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),n((function(i,n,s,a,o){if(isNaN(a)&&!(i.type&A.MOVE_TO))throw new Error("path must start with moveto");return e&&i.type&A.HORIZ_LINE_TO&&(i.type=A.LINE_TO,i.y=i.relative?0:s),r&&i.type&A.VERT_LINE_TO&&(i.type=A.LINE_TO,i.x=i.relative?0:n),t&&i.type&A.CLOSE_PATH&&(i.type=A.LINE_TO,i.x=i.relative?a-n:a,i.y=i.relative?o-s:o),i.type&A.ARC&&(0===i.rX||0===i.rY)&&(i.type=A.LINE_TO,delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag),i}))},t.NORMALIZE_ST=r,t.QT_TO_C=i,t.INFO=n,t.SANITIZE=function(t){void 0===t&&(t=0),h(t);var e=NaN,r=NaN,i=NaN,s=NaN;return n((function(n,a,o,u,c){var h=Math.abs,l=!1,f=0,g=0;if(n.type&A.SMOOTH_CURVE_TO&&(f=isNaN(e)?0:a-e,g=isNaN(r)?0:o-r),n.type&(A.CURVE_TO|A.SMOOTH_CURVE_TO)?(e=n.relative?a+n.x2:n.x2,r=n.relative?o+n.y2:n.y2):(e=NaN,r=NaN),n.type&A.SMOOTH_QUAD_TO?(i=isNaN(i)?a:2*a-i,s=isNaN(s)?o:2*o-s):n.type&A.QUAD_TO?(i=n.relative?a+n.x1:n.x1,s=n.relative?o+n.y1:n.y2):(i=NaN,s=NaN),n.type&A.LINE_COMMANDS||n.type&A.ARC&&(0===n.rX||0===n.rY||!n.lArcFlag)||n.type&A.CURVE_TO||n.type&A.SMOOTH_CURVE_TO||n.type&A.QUAD_TO||n.type&A.SMOOTH_QUAD_TO){var p=void 0===n.x?0:n.relative?n.x:n.x-a,d=void 0===n.y?0:n.relative?n.y:n.y-o;f=isNaN(i)?void 0===n.x1?f:n.relative?n.x:n.x1-a:i-a,g=isNaN(s)?void 0===n.y1?g:n.relative?n.y:n.y1-o:s-o;var v=void 0===n.x2?0:n.relative?n.x:n.x2-a,y=void 0===n.y2?0:n.relative?n.y:n.y2-o;h(p)<=t&&h(d)<=t&&h(f)<=t&&h(g)<=t&&h(v)<=t&&h(y)<=t&&(l=!0)}return n.type&A.CLOSE_PATH&&h(a-u)<=t&&h(o-c)<=t&&(l=!0),l?[]:n}))},t.MATRIX=s,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),h(t,e,r);var i=Math.sin(t),n=Math.cos(t);return s(n,i,-i,n,e-e*n+r*i,r-e*i-r*n)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),h(t,e),s(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),h(t,e),s(t,0,0,e,0,0)},t.SKEW_X=function(t){return h(t),s(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return h(t),s(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),h(t),s(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),h(t),s(1,0,0,-1,0,t)},t.A_TO_C=function(){return n((function(t,e,r){return A.ARC===t.type?function(t,e,r){var i,n,s,a;t.cX||f(t,e,r);for(var o=Math.min(t.phi1,t.phi2),u=Math.max(t.phi1,t.phi2)-o,h=Math.ceil(u/90),l=new Array(h),g=e,p=r,y=0;yo.maxX&&(o.maxX=t),to.maxY&&(o.maxY=t),tV&&u(x(r,n.x1,n.x2,n.x,V));for(var p=0,d=m(i,n.y1,n.y2,n.y);pV&&c(x(i,n.y1,n.y2,n.y,V))}if(n.type&A.ARC){u(n.x),c(n.y),f(n,r,i);for(var v=n.xRot/180*Math.PI,b=Math.cos(v)*n.rX,S=Math.sin(v)*n.rX,w=-Math.sin(v)*n.rY,T=Math.cos(v)*n.rY,O=n.phi1n.phi2?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],C=O[0],E=O[1],P=function(t){var e=t[0],r=t[1],i=180*Math.atan2(r,e)/Math.PI;return iC&&VC&&Vu)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+n+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+n+'"');this.curArgs.push(u),this.curArgs.length===C[this.curCommandType]&&(A.HORIZ_LINE_TO===this.curCommandType?i({type:A.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):A.VERT_LINE_TO===this.curCommandType?i({type:A.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===A.MOVE_TO||this.curCommandType===A.LINE_TO||this.curCommandType===A.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),A.MOVE_TO===this.curCommandType&&(this.curCommandType=A.LINE_TO)):this.curCommandType===A.CURVE_TO?i({type:A.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===A.SMOOTH_CURVE_TO?i({type:A.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===A.QUAD_TO?i({type:A.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===A.ARC&&i({type:A.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!w(s))if(","===s&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==s&&"-"!==s&&"."!==s)if(o)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+n+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+n+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==s&&"Z"!==s)if("h"===s||"H"===s)this.curCommandType=A.HORIZ_LINE_TO,this.curCommandRelative="h"===s;else if("v"===s||"V"===s)this.curCommandType=A.VERT_LINE_TO,this.curCommandRelative="v"===s;else if("m"===s||"M"===s)this.curCommandType=A.MOVE_TO,this.curCommandRelative="m"===s;else if("l"===s||"L"===s)this.curCommandType=A.LINE_TO,this.curCommandRelative="l"===s;else if("c"===s||"C"===s)this.curCommandType=A.CURVE_TO,this.curCommandRelative="c"===s;else if("s"===s||"S"===s)this.curCommandType=A.SMOOTH_CURVE_TO,this.curCommandRelative="s"===s;else if("q"===s||"Q"===s)this.curCommandType=A.QUAD_TO,this.curCommandRelative="q"===s;else if("t"===s||"T"===s)this.curCommandType=A.SMOOTH_QUAD_TO,this.curCommandRelative="t"===s;else{if("a"!==s&&"A"!==s)throw new SyntaxError('Unexpected character "'+s+'" at index '+n+".");this.curCommandType=A.ARC,this.curCommandRelative="a"===s}else e.push({type:A.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal="."===s}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,r){void 0===r&&(r=[]);for(var i=0,n=Object.getPrototypeOf(this).parse.call(this,e);i>>S;if(o[x+3]=Z,0!==Z){var K=255/Z;o[x]=(j*b>>>S)*K,o[x+1]=(F*b>>>S)*K,o[x+2]=(z*b>>>S)*K}else o[x]=o[x+1]=o[x+2]=0;j-=I,F-=L,z-=D,U-=B,I-=v.r,L-=v.g,D-=v.b,B-=v.a;var J=$+s+1;J=m+(J>>S,ct>0?(ct=255/ct,o[Et]=(pt*b>>>S)*ct,o[Et+1]=(dt*b>>>S)*ct,o[Et+2]=(vt*b>>>S)*ct):o[Et]=o[Et+1]=o[Et+2]=0,pt-=ht,dt-=lt,vt-=ft,yt-=gt,ht-=v.r,lt-=v.g,ft-=v.b,gt-=v.a,Et=st+((Et=Ct+l)0&&void 0!==arguments[0]?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas(t,e){return new OffscreenCanvas(t,e)},createImage(t){return(0,i.Z)((function*(){var e=yield fetch(t),r=yield e.blob();return yield createImageBitmap(r)}))()}};return"undefined"==typeof DOMParser&&void 0!==t||Reflect.deleteProperty(e,"DOMParser"),e},node:function(t){var{DOMParser:e,canvas:r,fetch:i}=t;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:i,createCanvas:r.createCanvas,createImage:r.loadImage}}});function I(t){return t.replace(/(?!\u3000)\s+/gm," ")}function L(t){return t.replace(/^[\n \t]+/,"")}function D(t){return t.replace(/[\n \t]+$/,"")}function B(t){return((t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var j=/^[A-Z-]+$/;function F(t){return j.test(t)?t.toLowerCase():t}function z(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}function U(t){if(!t.startsWith("rgb"))return t;var e=3;return t.replace(/\d+(\.\d+)?/g,((t,r)=>e--&&r?String(Math.round(parseFloat(t))):t))}var H=/(\[[^\]]+\])/g,X=/(#[^\s+>~.[:]+)/g,Y=/(\.[^\s+>~.[:]+)/g,W=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,q=/(:[\w-]+\([^)]*\))/gi,G=/(:[^\s+>~.[:]+)/g,Q=/([^\s+>~.[:]+)/g;function $(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}function Z(t){var e=[0,0,0],r=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),i=0;return[r,i]=$(r,H),e[1]+=i,[r,i]=$(r,X),e[0]+=i,[r,i]=$(r,Y),e[1]+=i,[r,i]=$(r,W),e[2]+=i,[r,i]=$(r,q),e[1]+=i,[r,i]=$(r,G),e[1]+=i,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[r,i]=$(r,Q),e[2]+=i,e.join("")}var K=1e-8;function J(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function tt(t,e){return(t[0]*e[0]+t[1]*e[1])/(J(t)*J(e))}function et(t,e){return(t[0]*e[1]0&&void 0!==arguments[0]?arguments[0]:" ",{document:e,name:r}=this;return I(this.getString()).trim().split(t).map((t=>new ct(e,r,t)))}hasValue(t){var{value:e}=this;return null!==e&&""!==e&&(t||0!==e)&&void 0!==e}isString(t){var{value:e}=this,r="string"==typeof e;return r&&t?t.test(e):r}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}setValue(t){return this.value=t,this}getValue(t){return void 0===t||this.hasValue()?this.value:t}getNumber(t){if(!this.hasValue())return void 0===t?0:parseFloat(t);var{value:e}=this,r=parseFloat(e);return this.isString(/%$/)&&(r/=100),r}getString(t){return void 0===t||this.hasValue()?void 0===this.value?"":String(this.value):String(t)}getColor(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=U(e),this.value=e),e}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[r,i]="boolean"==typeof t?[void 0,t]:[t],{viewPort:n}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&i:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(r);default:var s=this.getNumber();return e&&s<1?s*n.computeSize(r):s}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var t=this.getString(),e=/#([^)'"]+)/.exec(t);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}getFillStyleDefinition(t,e){var r=this.getDefinition();if(!r)return null;if("function"==typeof r.createGradient)return r.createGradient(this.document.ctx,t,e);if("function"==typeof r.createPattern){if(r.getHrefAttribute().hasValue()){var i=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&r.getAttribute("patternTransform",!0).setValue(i.value)}return r.createPattern(this.document.ctx,t,e)}return null}getTextBaseline(){return this.hasValue()?ct.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var e=this.getColor(),r=e.length,i=0,n=0;n1&&void 0!==arguments[1]?arguments[1]:0,[r=e,i=e]=B(t);return new lt(r,i)}static parseScale(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[r=e,i=r]=B(t);return new lt(r,i)}static parsePath(t){for(var e=B(t),r=e.length,i=[],n=0;n0}runEvents(){if(this.working){var{screen:t,events:e,eventElements:r}=this,{style:i}=t.ctx.canvas;i&&(i.cursor=""),e.forEach(((t,e)=>{for(var{run:i}=t,n=r[e];n;)i(n),n=n.parent})),this.events=[],this.eventElements=[]}}checkPath(t,e){if(this.working&&e){var{events:r,eventElements:i}=this;r.forEach(((r,n)=>{var{x:s,y:a}=r;!i[n]&&e.isPointInPath&&e.isPointInPath(s,a)&&(i[n]=t)}))}}checkBoundingBox(t,e){if(this.working&&e){var{events:r,eventElements:i}=this;r.forEach(((r,n)=>{var{x:s,y:a}=r;!i[n]&&e.isPointInBox(s,a)&&(i[n]=t)}))}}mapXY(t,e){for(var{window:r,ctx:i}=this.screen,n=new lt(t,e),s=i.canvas;s;)n.x-=s.offsetLeft,n.y-=s.offsetTop,s=s.offsetParent;return r.scrollX&&(n.x+=r.scrollX),r.scrollY&&(n.y+=r.scrollY),n}onClick(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:e,y:r,run(t){t.onClick&&t.onClick()}})}onMouseMove(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:e,y:r,run(t){t.onMouseMove&&t.onMouseMove()}})}}var gt="undefined"!=typeof window?window:null,pt="undefined"!=typeof fetch?fetch.bind(void 0):null;class dt{constructor(t){var{fetch:e=pt,window:r=gt}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new ht,this.mouse=new ft(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=e}wait(t){this.waits.push(t)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var t=this.waits.every((t=>t()));return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}setDefaults(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}setViewBox(t){var{document:e,ctx:r,aspectRatio:i,width:n,desiredWidth:s,height:a,desiredHeight:o,minX:u=0,minY:c=0,refX:h,refY:l,clip:f=!1,clipX:g=0,clipY:p=0}=t,d=I(i).replace(/^defer\s/,""),[v,y]=d.split(" "),m=v||"xMidYMid",x=y||"meet",b=n/s,S=a/o,w=Math.min(b,S),T=Math.max(b,S),O=s,A=o;"meet"===x&&(O*=w,A*=w),"slice"===x&&(O*=T,A*=T);var C=new ct(e,"refX",h),E=new ct(e,"refY",l),P=C.hasValue()&&E.hasValue();if(P&&r.translate(-w*C.getPixels("x"),-w*E.getPixels("y")),f){var N=w*g,M=w*p;r.beginPath(),r.moveTo(N,M),r.lineTo(n,M),r.lineTo(n,a),r.lineTo(N,a),r.closePath(),r.clip()}if(!P){var R="meet"===x&&w===S,_="slice"===x&&T===S,V="meet"===x&&w===b,k="slice"===x&&T===b;m.startsWith("xMid")&&(R||_)&&r.translate(n/2-O/2,0),m.endsWith("YMid")&&(V||k)&&r.translate(0,a/2-A/2),m.startsWith("xMax")&&(R||_)&&r.translate(n-O,0),m.endsWith("YMax")&&(V||k)&&r.translate(0,a-A)}switch(!0){case"none"===m:r.scale(b,S);break;case"meet"===x:r.scale(w,w);break;case"slice"===x:r.scale(T,T)}r.translate(-u,-c)}start(t){var{enableRedraw:e=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:n=!1,ignoreClear:a=!1,forceRedraw:o,scaleWidth:u,scaleHeight:c,offsetX:h,offsetY:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:f,mouse:g}=this,p=1e3/f;if(this.frameDuration=p,this.readyPromise=new Promise((t=>{this.resolveReady=t})),this.isReady()&&this.render(t,n,a,u,c,h,l),e){var d=Date.now(),v=d,y=0,m=()=>{d=Date.now(),(y=d-v)>=p&&(v=d-y%p,this.shouldUpdate(i,o)&&(this.render(t,n,a,u,c,h,l),g.runEvents())),this.intervalId=s(m)};r||g.start(),this.intervalId=s(m)}}stop(){this.intervalId&&(s.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(t,e){if(!t){var{frameDuration:r}=this;if(this.animations.reduce(((t,e)=>e.update(r)||t),!1))return!0}return!("function"!=typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}render(t,e,r,i,n,s,a){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:u,viewPort:c,ctx:h,isFirstRender:l}=this,f=h.canvas;c.clear(),f.width&&f.height?c.setCurrent(f.width,f.height):c.setCurrent(o,u);var g=t.getStyle("width"),p=t.getStyle("height");!e&&(l||"number"!=typeof i&&"number"!=typeof n)&&(g.hasValue()&&(f.width=g.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),p.hasValue()&&(f.height=p.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var d=f.clientWidth||f.width,v=f.clientHeight||f.height;if(e&&g.hasValue()&&p.hasValue()&&(d=g.getPixels("x"),v=p.getPixels("y")),c.setCurrent(d,v),"number"==typeof s&&t.getAttribute("x",!0).setValue(s),"number"==typeof a&&t.getAttribute("y",!0).setValue(a),"number"==typeof i||"number"==typeof n){var y=B(t.getAttribute("viewBox").getString()),m=0,x=0;if("number"==typeof i){var b=t.getStyle("width");b.hasValue()?m=b.getPixels("x")/i:isNaN(y[2])||(m=y[2]/i)}if("number"==typeof n){var S=t.getStyle("height");S.hasValue()?x=S.getPixels("y")/n:isNaN(y[3])||(x=y[3]/n)}m||(m=x),x||(x=m),t.getAttribute("width",!0).setValue(i),t.getAttribute("height",!0).setValue(n);var w=t.getStyle("transform",!0,!0);w.setValue("".concat(w.getString()," scale(").concat(1/m,", ").concat(1/x,")"))}r||h.clearRect(0,0,d,v),t.render(h),l&&(this.isFirstRender=!1)}}dt.defaultWindow=gt,dt.defaultFetch=pt;var{defaultFetch:vt}=dt,yt="undefined"!=typeof DOMParser?DOMParser:null;class mt{constructor(){var{fetch:t=vt,DOMParser:e=yt}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return(0,i.Z)((function*(){return t.startsWith("<")?e.parseFromString(t):e.load(t)}))()}parseFromString(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,"image/svg+xml"))}catch(r){return this.checkDocument(e.parseFromString(t,"text/xml"))}}checkDocument(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}load(t){var e=this;return(0,i.Z)((function*(){var r=yield e.fetch(t),i=yield r.text();return e.parseFromString(i)}))()}}class xt{constructor(t,e){this.type="translate",this.point=null,this.point=lt.parse(e)}apply(t){var{x:e,y:r}=this.point;t.translate(e||0,r||0)}unapply(t){var{x:e,y:r}=this.point;t.translate(-1*e||0,-1*r||0)}applyToPoint(t){var{x:e,y:r}=this.point;t.applyTransform([1,0,0,1,e||0,r||0])}}class bt{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=B(e);this.angle=new ct(t,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(t){var{cx:e,cy:r,originX:i,originY:n,angle:s}=this,a=e+i.getPixels("x"),o=r+n.getPixels("y");t.translate(a,o),t.rotate(s.getRadians()),t.translate(-a,-o)}unapply(t){var{cx:e,cy:r,originX:i,originY:n,angle:s}=this,a=e+i.getPixels("x"),o=r+n.getPixels("y");t.translate(a,o),t.rotate(-1*s.getRadians()),t.translate(-a,-o)}applyToPoint(t){var{cx:e,cy:r,angle:i}=this,n=i.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}class St{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=lt.parseScale(e);0!==i.x&&0!==i.y||(i.x=K,i.y=K),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:e,y:r},originX:i,originY:n}=this,s=i.getPixels("x"),a=n.getPixels("y");t.translate(s,a),t.scale(e,r||e),t.translate(-s,-a)}unapply(t){var{scale:{x:e,y:r},originX:i,originY:n}=this,s=i.getPixels("x"),a=n.getPixels("y");t.translate(s,a),t.scale(1/e,1/r||e),t.translate(-s,-a)}applyToPoint(t){var{x:e,y:r}=this.scale;t.applyTransform([e||0,0,0,r||0,0,0])}}class wt{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=B(e),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:e,originY:r,matrix:i}=this,n=e.getPixels("x"),s=r.getPixels("y");t.translate(n,s),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),t.translate(-n,-s)}unapply(t){var{originX:e,originY:r,matrix:i}=this,n=i[0],s=i[2],a=i[4],o=i[1],u=i[3],c=i[5],h=1/(n*(1*u-0*c)-s*(1*o-0*c)+a*(0*o-0*u)),l=e.getPixels("x"),f=r.getPixels("y");t.translate(l,f),t.transform(h*(1*u-0*c),h*(0*c-1*o),h*(0*a-1*s),h*(1*n-0*a),h*(s*c-a*u),h*(a*o-n*c)),t.translate(-l,-f)}applyToPoint(t){t.applyTransform(this.matrix)}}class Tt extends wt{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new ct(t,"angle",e)}}class Ot extends Tt{constructor(t,e,r){super(t,e,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class At extends Tt{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}class Ct{constructor(t,e,r){this.document=t,this.transforms=[];var i=function(t){return I(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(e);i.forEach((t=>{if("none"!==t){var[e,i]=function(t){var[e,r]=t.split("(");return[e.trim(),r.trim().replace(")","")]}(t),n=Ct.transformTypes[e];void 0!==n&&this.transforms.push(new n(this.document,i,r))}}))}static fromElement(t,e){var r=e.getStyle("transform",!1,!0),[i,n=i]=e.getStyle("transform-origin",!1,!0).split(),s=[i,n];return r.hasValue()?new Ct(t,r.getString(),s):null}apply(t){for(var{transforms:e}=this,r=e.length,i=0;i=0;r--)e[r].unapply(t)}applyToPoint(t){for(var{transforms:e}=this,r=e.length,i=0;i2&&void 0!==arguments[2]&&arguments[2];if(this.document=t,this.node=e,this.captureTextNodes=r,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],e&&1===e.nodeType){if(Array.from(e.attributes).forEach((e=>{var r=F(e.nodeName);this.attributes[r]=new ct(t,r,e.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map((t=>t.trim()));i.forEach((e=>{if(e){var[r,i]=e.split(":").map((t=>t.trim()));this.styles[r]=new ct(t,r,i)}}))}var{definitions:n}=t,s=this.getAttribute("id");s.hasValue()&&(n[s.getString()]||(n[s.getString()]=this)),Array.from(e.childNodes).forEach((e=>{if(1===e.nodeType)this.addChild(e);else if(r&&(3===e.nodeType||4===e.nodeType)){var i=t.createTextNode(e);i.getText().length>0&&this.addChild(i)}}))}}getAttribute(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.attributes[t];if(!r&&e){var i=new ct(this.document,t,"");return this.attributes[t]=i,i}return r||ct.empty(this.document)}getHrefAttribute(){for(var t in this.attributes)if("href"===t||t.endsWith(":href"))return this.attributes[t];return ct.empty(this.document)}getStyle(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.styles[t];if(i)return i;var n=this.getAttribute(t);if(null!=n&&n.hasValue())return this.styles[t]=n,n;if(!r){var{parent:s}=this;if(s){var a=s.getStyle(t);if(null!=a&&a.hasValue())return a}}if(e){var o=new ct(this.document,t,"");return this.styles[t]=o,o}return i||ct.empty(this.document)}render(t){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(t.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&(this.applyEffects(t),e.apply(t,this))}else if("none"!==this.getStyle("filter").getValue("none")){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}setContext(t){}applyEffects(t){var e=Ct.fromElement(this.document,this);e&&e.apply(t);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(t)}}clearContext(t){}renderChildren(t){this.children.forEach((e=>{e.render(t)}))}addChild(t){var e=t instanceof Et?t:this.document.createElement(t);e.parent=this,Et.ignoreChildTypes.includes(e.type)||this.children.push(e)}matchesSelector(t){var e,{node:r}=this;if("function"==typeof r.matches)return r.matches(t);var i=null===(e=r.getAttribute)||void 0===e?void 0:e.call(r,"class");return!(!i||""===i)&&i.split(" ").some((e=>".".concat(e)===t))}addStylesFromStyleDefinition(){var{styles:t,stylesSpecificity:e}=this.document;for(var r in t)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=t[r],n=e[r];if(i)for(var s in i){var a=this.stylesSpecificity[s];void 0===a&&(a="000"),n>=a&&(this.styles[s]=i[s],this.stylesSpecificity[s]=n)}}}removeStyles(t,e){return e.reduce(((e,r)=>{var i=t.getStyle(r);if(!i.hasValue())return e;var n=i.getString();return i.setValue(""),[...e,[r,n]]}),[])}restoreStyles(t,e){e.forEach((e=>{var[r,i]=e;t.getStyle(r,!0).setValue(i)}))}isFirstChild(){var t;return 0===(null===(t=this.parent)||void 0===t?void 0:t.children.indexOf(this))}}Et.ignoreChildTypes=["title"];class Pt extends Et{constructor(t,e,r){super(t,e,r)}}function Nt(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function Mt(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function Rt(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class _t{constructor(t,e,r,i,n,s){var a=s?"string"==typeof s?_t.parse(s):s:{};this.fontFamily=n||a.fontFamily,this.fontSize=i||a.fontSize,this.fontStyle=t||a.fontStyle,this.fontWeight=r||a.fontWeight,this.fontVariant=e||a.fontVariant}static parse(){var t=arguments.length>1?arguments[1]:void 0,e="",r="",i="",n="",s="",a=I(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),o={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return a.forEach((t=>{switch(!0){case!o.fontStyle&&_t.styles.includes(t):"inherit"!==t&&(e=t),o.fontStyle=!0;break;case!o.fontVariant&&_t.variants.includes(t):"inherit"!==t&&(r=t),o.fontStyle=!0,o.fontVariant=!0;break;case!o.fontWeight&&_t.weights.includes(t):"inherit"!==t&&(i=t),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0;break;case!o.fontSize:"inherit"!==t&&([n]=t.split("/")),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0,o.fontSize=!0;break;default:"inherit"!==t&&(s+=t)}})),new _t(e,r,i,n,s,t)}toString(){return[Mt(this.fontStyle),this.fontVariant,Rt(this.fontWeight),this.fontSize,(t=this.fontFamily,void 0===V?t:t.trim().split(",").map(Nt).join(","))].join(" ").trim();var t}}_t.styles="normal|italic|oblique|inherit",_t.variants="normal|small-caps|inherit",_t.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class Vt{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=r,this.y2=i,this.addPoint(t,e),this.addPoint(r,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,e){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),tthis.x2&&(this.x2=t)),void 0!==e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),ethis.y2&&(this.y2=e))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){if(t){var{x1:e,y1:r,x2:i,y2:n}=t;this.addPoint(e,r),this.addPoint(i,n)}}sumCubic(t,e,r,i,n){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*i+Math.pow(t,3)*n}bezierCurveAdd(t,e,r,i,n){var s=6*e-12*r+6*i,a=-3*e+9*r-9*i+3*n,o=3*r-3*e;if(0!==a){var u=Math.pow(s,2)-4*o*a;if(!(u<0)){var c=(-s+Math.sqrt(u))/(2*a);0=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",r=new lt(this.command[t],this.command[e]);return this.makeAbsolute(r)}getAsControlPoint(t,e){var r=this.getPoint(t,e);return this.control=r,r}getAsCurrentPoint(t,e){var r=this.getPoint(t,e);return this.current=r,r}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==A.CURVE_TO&&t!==A.SMOOTH_CURVE_TO&&t!==A.QUAD_TO&&t!==A.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:i,y:n}}=this;return new lt(2*e-i,2*r-n)}makeAbsolute(t){if(this.command.relative){var{x:e,y:r}=this.current;t.x+=e,t.y+=r}return t}addMarker(t,e,r){var{points:i,angles:n}=this;r&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}addMarkerAngle(t,e){this.points.push(t),this.angles.push(e)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:t}=this,e=t.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];if(!e){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),s=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var a=r.getFillStyleDefinition(this,i);a&&(t.fillStyle=a)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var o=r.getColor();"inherit"!==o&&(t.fillStyle="none"===o?"rgba(0,0,0,0)":o)}if(i.hasValue()){var u=new ct(this.document,"fill",t.fillStyle).addOpacity(i).getColor();t.fillStyle=u}if(n.isUrlDefinition()){var c=n.getFillStyleDefinition(this,s);c&&(t.strokeStyle=c)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var h=n.getString();"inherit"!==h&&(t.strokeStyle="none"===h?"rgba(0,0,0,0)":h)}if(s.hasValue()){var l=new ct(this.document,"stroke",t.strokeStyle).addOpacity(s).getString();t.strokeStyle=l}var f=this.getStyle("stroke-width");if(f.hasValue()){var g=f.getPixels();t.lineWidth=g||K}var p=this.getStyle("stroke-linecap"),d=this.getStyle("stroke-linejoin"),v=this.getStyle("stroke-miterlimit"),y=this.getStyle("stroke-dasharray"),m=this.getStyle("stroke-dashoffset");if(p.hasValue()&&(t.lineCap=p.getString()),d.hasValue()&&(t.lineJoin=d.getString()),v.hasValue()&&(t.miterLimit=v.getNumber()),y.hasValue()&&"none"!==y.getString()){var x=B(y.getString());void 0!==t.setLineDash?t.setLineDash(x):void 0!==t.webkitLineDash?t.webkitLineDash=x:void 0===t.mozDash||1===x.length&&0===x[0]||(t.mozDash=x);var b=m.getPixels();void 0!==t.lineDashOffset?t.lineDashOffset=b:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=b:void 0!==t.mozDashOffset&&(t.mozDashOffset=b)}}if(this.modifiedEmSizeStack=!1,void 0!==t.font){var S=this.getStyle("font"),w=this.getStyle("font-style"),T=this.getStyle("font-variant"),O=this.getStyle("font-weight"),A=this.getStyle("font-size"),C=this.getStyle("font-family"),E=new _t(w.getString(),T.getString(),O.getString(),A.hasValue()?"".concat(A.getPixels(!0),"px"):"",C.getString(),_t.parse(S.getString(),t.font));w.setValue(E.fontStyle),T.setValue(E.fontVariant),O.setValue(E.fontWeight),A.setValue(E.fontSize),C.setValue(E.fontFamily),t.font=E.toString(),A.isPixels()&&(this.document.emSize=A.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class Lt extends It{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new kt(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new Vt;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case kt.MOVE_TO:this.pathM(t,r);break;case kt.LINE_TO:this.pathL(t,r);break;case kt.HORIZ_LINE_TO:this.pathH(t,r);break;case kt.VERT_LINE_TO:this.pathV(t,r);break;case kt.CURVE_TO:this.pathC(t,r);break;case kt.SMOOTH_CURVE_TO:this.pathS(t,r);break;case kt.QUAD_TO:this.pathQ(t,r);break;case kt.SMOOTH_QUAD_TO:this.pathT(t,r);break;case kt.ARC:this.pathA(t,r);break;case kt.CLOSE_PATH:this.pathZ(t,r)}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),r=t.getMarkerAngles(),i=e.map(((t,e)=>[t,r[e]]));return i}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var i=r.length-1,n=this.getStyle("marker-start"),s=this.getStyle("marker-mid"),a=this.getStyle("marker-end");if(n.isUrlDefinition()){var o=n.getDefinition(),[u,c]=r[0];o.render(t,u,c)}if(s.isUrlDefinition())for(var h=s.getDefinition(),l=1;l1&&(i*=Math.sqrt(l),n*=Math.sqrt(l));var f=(a===o?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(n,2)-Math.pow(i,2)*Math.pow(h.y,2)-Math.pow(n,2)*Math.pow(h.x,2))/(Math.pow(i,2)*Math.pow(h.y,2)+Math.pow(n,2)*Math.pow(h.x,2)));isNaN(f)&&(f=0);var g=new lt(f*i*h.y/n,f*-n*h.x/i),p=new lt((e.x+c.x)/2+Math.cos(u)*g.x-Math.sin(u)*g.y,(e.y+c.y)/2+Math.sin(u)*g.x+Math.cos(u)*g.y),d=et([1,0],[(h.x-g.x)/i,(h.y-g.y)/n]),v=[(h.x-g.x)/i,(h.y-g.y)/n],y=[(-h.x-g.x)/i,(-h.y-g.y)/n],m=et(v,y);return tt(v,y)<=-1&&(m=Math.PI),tt(v,y)>=1&&(m=0),{currentPoint:c,rX:i,rY:n,sweepFlag:o,xAxisRotation:u,centp:p,a1:d,ad:m}}pathA(t,e){var{pathParser:r}=this,{currentPoint:i,rX:n,rY:s,sweepFlag:a,xAxisRotation:o,centp:u,a1:c,ad:h}=Lt.pathA(r),l=1-a?1:-1,f=c+l*(h/2),g=new lt(u.x+n*Math.cos(f),u.y+s*Math.sin(f));if(r.addMarkerAngle(g,f-l*Math.PI/2),r.addMarkerAngle(i,f-l*Math.PI),e.addPoint(i.x,i.y),t&&!isNaN(c)&&!isNaN(h)){var p=n>s?n:s,d=n>s?1:n/s,v=n>s?s/n:1;t.translate(u.x,u.y),t.rotate(o),t.scale(d,v),t.arc(0,0,p,c,c+h,Boolean(1-a)),t.scale(1/d,1/v),t.rotate(-o),t.translate(-u.x,-u.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){Lt.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class Dt extends Lt{constructor(t,e,r){super(t,e,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class Bt extends It{constructor(t,e,r){super(t,e,new.target===Bt||r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(t,e);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(t){if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var e=null;return this.children.forEach(((r,i)=>{var n=this.getChildBoundingBox(t,this,this,i);e?e.addBoundingBox(n):e=n})),e}getFontSize(){var{document:t,parent:e}=this,r=_t.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(r)}getTElementBoundingBox(t){var e=this.getFontSize();return new Vt(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,r){var i=e[r],n=null;if(t.isArabic){var s=e.length,a=e[r-1],o=e[r+1],u="isolated";if((0===r||" "===a)&&r0&&" "!==a&&r0&&" "!==a&&(r===s-1||" "===o)&&(u="initial"),void 0!==t.glyphs[i]){var c=t.glyphs[i];n=c instanceof Dt?c:c[u]}}else n=t.glyphs[i];return n||(n=t.missingGlyph),n}getText(){return""}getTextFromNode(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),i=r.indexOf(e),n=r.length-1,s=I(e.textContent||"");return 0===i&&(s=L(s)),i===n&&(s=D(s)),s}renderChildren(t){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach(((e,r)=>{this.renderChild(t,this,this,r)}));var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}renderTElementChildren(t){var{document:e,parent:r}=this,i=this.getText(),n=r.getStyle("font-family").getDefinition();if(n)for(var{unitsPerEm:s}=n.fontFace,a=_t.parse(e.ctx.font),o=r.getStyle("font-size").getNumber(a.fontSize),u=r.getStyle("font-style").getString(a.fontStyle),c=o/s,h=n.isRTL?i.split("").reverse().join(""):i,l=B(r.getAttribute("dx").getString()),f=h.length,g=0;g=this.leafTexts.length)){var t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start"),r=0;r="start"===e?t.x-this.minX:"end"===e?t.x-this.maxX:t.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i{this.adjustChildCoordinatesRecursiveCore(t,this,this,r)})),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(t,e,r,i){var n=r.children[i];n.children.length>0?n.children.forEach(((r,i)=>{e.adjustChildCoordinatesRecursiveCore(t,e,n,i)})):this.adjustChildCoordinates(t,e,r,i)}adjustChildCoordinates(t,e,r,i){var n=r.children[i];if("function"!=typeof n.measureText)return n;t.save(),n.setContext(t,!0);var s=n.getAttribute("x"),a=n.getAttribute("y"),o=n.getAttribute("dx"),u=n.getAttribute("dy"),c=n.getStyle("font-family").getDefinition(),h=Boolean(c)&&c.isRTL;0===i&&(s.hasValue()||s.setValue(n.getInheritedAttribute("x")),a.hasValue()||a.setValue(n.getInheritedAttribute("y")),o.hasValue()||o.setValue(n.getInheritedAttribute("dx")),u.hasValue()||u.setValue(n.getInheritedAttribute("dy")));var l=n.measureText(t);return h&&(e.x-=l),s.hasValue()?(e.applyAnchoring(),n.x=s.getPixels("x"),o.hasValue()&&(n.x+=o.getPixels("x"))):(o.hasValue()&&(e.x+=o.getPixels("x")),n.x=e.x),e.x=n.x,h||(e.x+=l),a.hasValue()?(n.y=a.getPixels("y"),u.hasValue()&&(n.y+=u.getPixels("y"))):(u.hasValue()&&(e.y+=u.getPixels("y")),n.y=e.y),e.y=n.y,e.leafTexts.push(n),e.minX=Math.min(e.minX,n.x,n.x+l),e.maxX=Math.max(e.maxX,n.x,n.x+l),n.clearContext(t),t.restore(),n}getChildBoundingBox(t,e,r,i){var n=r.children[i];if("function"!=typeof n.getBoundingBox)return null;var s=n.getBoundingBox(t);return s?(n.children.forEach(((r,i)=>{var a=e.getChildBoundingBox(t,e,n,i);s.addBoundingBox(a)})),s):null}renderChild(t,e,r,i){var n=r.children[i];n.render(t),n.children.forEach(((r,i)=>{e.renderChild(t,e,n,i)}))}measureText(t){var{measureCache:e}=this;if(~e)return e;var r=this.getText(),i=this.measureTargetText(t,r);return this.measureCache=i,i}measureTargetText(t,e){if(!e.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var n=this.getFontSize(),s=i.isRTL?e.split("").reverse().join(""):e,a=B(r.getAttribute("dx").getString()),o=s.length,u=0,c=0;c0?"":this.getTextFromNode()}getText(){return this.text}}class Ft extends jt{constructor(){super(...arguments),this.type="textNode"}}class zt extends It{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,{document:r}=this,{screen:i,window:n}=r,s=t.canvas;if(i.setDefaults(t),s.style&&void 0!==t.font&&n&&void 0!==n.getComputedStyle){t.font=n.getComputedStyle(s).getPropertyValue("font");var a=new ct(r,"fontSize",_t.parse(t.font).fontSize);a.hasValue()&&(r.rootEmSize=a.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:u}=i.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var c=this.getAttribute("refX"),h=this.getAttribute("refY"),l=this.getAttribute("viewBox"),f=l.hasValue()?B(l.getString()):null,g=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),p=0,d=0,v=0,y=0;f&&(p=f[0],d=f[1]),this.root||(o=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y"),"marker"===this.type&&(v=p,y=d,p=0,d=0)),i.viewPort.setCurrent(o,u),!this.node||this.parent&&"foreignObject"!==(null===(e=this.node.parentNode)||void 0===e?void 0:e.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),f&&(o=f[2],u=f[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:o,height:i.viewPort.height,desiredHeight:u,minX:p,minY:d,refX:c.getValue(),refY:h.getValue(),clip:g,clipX:v,clipY:y}),f&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(o,u))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.getAttribute("width",!0),n=this.getAttribute("height",!0),s=this.getAttribute("viewBox"),a=this.getAttribute("style"),o=i.getNumber(0),u=n.getNumber(0);if(r)if("string"==typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var c=this.getAttribute("preserveAspectRatio");c.hasValue()&&c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(t),n.setValue(e),s.hasValue()||s.setValue("0 0 ".concat(o||t," ").concat(u||e)),a.hasValue()){var h=this.getStyle("width"),l=this.getStyle("height");h.hasValue()&&h.setValue("".concat(t,"px")),l.hasValue()&&l.setValue("".concat(e,"px"))}}}class Ut extends Lt{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),s=this.getAttribute("rx"),a=this.getAttribute("ry"),o=s.getPixels("x"),u=a.getPixels("y");if(s.hasValue()&&!a.hasValue()&&(u=o),a.hasValue()&&!s.hasValue()&&(o=u),o=Math.min(o,i/2),u=Math.min(u,n/2),t){var c=(Math.sqrt(2)-1)/3*4;t.beginPath(),n>0&&i>0&&(t.moveTo(e+o,r),t.lineTo(e+i-o,r),t.bezierCurveTo(e+i-o+c*o,r,e+i,r+u-c*u,e+i,r+u),t.lineTo(e+i,r+n-u),t.bezierCurveTo(e+i,r+n-u+c*u,e+i-o+c*o,r+n,e+i-o,r+n),t.lineTo(e+o,r+n),t.bezierCurveTo(e+o-c*o,r+n,e,r+n-u+c*u,e,r+n-u),t.lineTo(e,r+u),t.bezierCurveTo(e,r+u-c*u,e+o-c*o,r,e+o,r),t.closePath())}return new Vt(e,r,e+i,r+n)}getMarkers(){return null}}class Ht extends Lt{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return t&&i>0&&(t.beginPath(),t.arc(e,r,i,0,2*Math.PI,!1),t.closePath()),new Vt(e-i,r-i,e+i,r+i)}getMarkers(){return null}}class Xt extends Lt{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),s=this.getAttribute("cy").getPixels("y");return t&&r>0&&i>0&&(t.beginPath(),t.moveTo(n+r,s),t.bezierCurveTo(n+r,s+e*i,n+e*r,s+i,n,s+i),t.bezierCurveTo(n-e*r,s+i,n-r,s+e*i,n-r,s),t.bezierCurveTo(n-r,s-e*i,n-e*r,s-i,n,s-i),t.bezierCurveTo(n+e*r,s-i,n+r,s-e*i,n+r,s),t.closePath()),new Vt(n-r,s-i,n+r,s+i)}getMarkers(){return null}}class Yt extends Lt{constructor(){super(...arguments),this.type="line"}getPoints(){return[new lt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new lt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:r},{x:i,y:n}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,r),t.lineTo(i,n)),new Vt(e,r,i,n)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class Wt extends Lt{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=lt.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:i}]=e,n=new Vt(r,i);return t&&(t.beginPath(),t.moveTo(r,i)),e.forEach((e=>{var{x:r,y:i}=e;n.addPoint(r,i),t&&t.lineTo(r,i)})),n}getMarkers(){var{points:t}=this,e=t.length-1,r=[];return t.forEach(((i,n)=>{n!==e&&r.push([i,i.angleTo(t[n+1])])})),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}class qt extends Wt{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:r,y:i}]=this.points;return t&&(t.lineTo(r,i),t.closePath()),e}}class Gt extends Et{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,r){var i=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),s=new zt(this.document,null);s.attributes.viewBox=new ct(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.width=new ct(this.document,"width","".concat(i,"px")),s.attributes.height=new ct(this.document,"height","".concat(n,"px")),s.attributes.transform=new ct(this.document,"transform",this.getAttribute("patternTransform").getValue()),s.children=this.children;var a=this.document.createCanvas(i,n),o=a.getContext("2d"),u=this.getAttribute("x"),c=this.getAttribute("y");u.hasValue()&&c.hasValue()&&o.translate(u.getPixels("x",!0),c.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var h=-1;h<=1;h++)for(var l=-1;l<=1;l++)o.save(),s.attributes.x=new ct(this.document,"x",h*a.width),s.attributes.y=new ct(this.document,"y",l*a.height),s.render(o),o.restore();return t.createPattern(a,"repeat")}}class Qt extends Et{constructor(){super(...arguments),this.type="marker"}render(t,e,r){if(e){var{x:i,y:n}=e,s=this.getAttribute("orient").getString("auto"),a=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(i,n),"auto"===s&&t.rotate(r),"strokeWidth"===a&&t.scale(t.lineWidth,t.lineWidth),t.save();var o=new zt(this.document,null);o.type=this.type,o.attributes.viewBox=new ct(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new ct(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new ct(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new ct(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new ct(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new ct(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new ct(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new ct(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(t),t.restore(),"strokeWidth"===a&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===s&&t.rotate(-r),t.translate(-i,-n)}}}class $t extends Et{constructor(){super(...arguments),this.type="defs"}render(){}}class Zt extends It{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new Vt;return this.children.forEach((r=>{e.addBoundingBox(r.getBoundingBox(t))})),e}}class Kt extends Et{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:n}=this;n.forEach((t=>{"stop"===t.type&&i.push(t)}))}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:n}=i,s=this.getGradient(t,e);if(!s)return this.addParentOpacity(r,n[n.length-1].color);if(n.forEach((t=>{s.addColorStop(t.offset,this.addParentOpacity(r,t.color))})),this.getAttribute("gradientTransform").hasValue()){var{document:a}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:u}=a.screen,[c]=u.viewPorts,h=new Ut(a,null);h.attributes.x=new ct(a,"x",-o/3),h.attributes.y=new ct(a,"y",-o/3),h.attributes.width=new ct(a,"width",o),h.attributes.height=new ct(a,"height",o);var l=new Zt(a,null);l.attributes.transform=new ct(a,"transform",this.getAttribute("gradientTransform").getValue()),l.children=[h];var f=new zt(a,null);f.attributes.x=new ct(a,"x",0),f.attributes.y=new ct(a,"y",0),f.attributes.width=new ct(a,"width",c.width),f.attributes.height=new ct(a,"height",c.height),f.children=[l];var g=a.createCanvas(c.width,c.height),p=g.getContext("2d");return p.fillStyle=s,f.render(p),p.createPattern(g,"no-repeat")}return s}inheritStopContainer(t){this.attributesToInherit.forEach((e=>{!this.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&this.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())}))}addParentOpacity(t,e){return t.hasValue()?new ct(this.document,"color",e).addOpacity(t).getColor():e}}class Jt extends Kt{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),i=r?e.getBoundingBox(t):null;if(r&&!i)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),s=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),a=r?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=r?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===a&&s===o?null:t.createLinearGradient(n,s,a,o)}}class te extends Kt{constructor(t,e,r){super(t,e,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),i=e.getBoundingBox(t);if(r&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),s=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=n,o=s;this.getAttribute("fx").hasValue()&&(a=r?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=r?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var u=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),c=this.getAttribute("fr").getPixels();return t.createRadialGradient(a,o,c,n,s,u)}}class ee extends Et{constructor(t,e,r){super(t,e,r),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),s=this.getStyle("stop-color",!0);""===s.getString()&&s.setValue("#000"),n.hasValue()&&(s=s.addOpacity(n)),this.offset=i,this.color=s.getColor()}}class re extends Et{constructor(t,e,r){super(t,e,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new ct(t,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:r,to:i}=this.getProgress(),n=r.getNumber()+(i.getNumber()-r.getNumber())*e;return"%"===t&&(n*=100),"".concat(n).concat(t)}update(t){var{parent:e}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==i||this.frozen){if("remove"===i&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;var n=!1;if(this.begine+(n[r]-e)*t)).join(" ");return s}}class se extends Et{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=t,{children:n}=this;for(var s of n)switch(s.type){case"font-face":this.fontFace=s;var a=s.getStyle("font-family");a.hasValue()&&(i[a.getString()]=this);break;case"missing-glyph":this.missingGlyph=s;break;case"glyph":var o=s;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[o.unicode]&&(this.glyphs[o.unicode]={}),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o}}render(){}}class ae extends Et{constructor(t,e,r){super(t,e,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class oe extends Lt{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class ue extends Bt{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}class ce extends Bt{constructor(t,e,r){super(t,e,r),this.type="a";var{childNodes:i}=e,n=i[0],s=i.length>0&&Array.from(i).every((t=>3===t.nodeType));this.hasText=s,this.text=s?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:r,y:i}=this,{mouse:n}=e.screen,s=new ct(e,"fontSize",_t.parse(e.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new Vt(r,i-s.getPixels("y"),r+this.measureText(t),i))}else if(this.children.length>0){var a=new Zt(this.document,null);a.children=this.children,a.parent=this,a.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}function he(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function le(t){for(var e=1;e{var{type:r,points:i}=e;switch(r){case kt.LINE_TO:t&&t.lineTo(i[0],i[1]);break;case kt.MOVE_TO:t&&t.moveTo(i[0],i[1]);break;case kt.CURVE_TO:t&&t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case kt.QUAD_TO:t&&t.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case kt.ARC:var[n,s,a,o,u,c,h,l]=i,f=a>o?a:o,g=a>o?1:a/o,p=a>o?o/a:1;t&&(t.translate(n,s),t.rotate(h),t.scale(g,p),t.arc(0,0,f,u,u+c,Boolean(1-l)),t.scale(1/g,1/p),t.rotate(-h),t.translate(-n,-s));break;case kt.CLOSE_PATH:t&&t.closePath()}}))}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,n=t.fillStyle;"underline"===e&&t.beginPath(),i.forEach(((i,n)=>{var{p0:s,p1:a,rotation:o,text:u}=i;t.save(),t.translate(s.x,s.y),t.rotate(o),t.fillStyle&&t.fillText(u,0,0),t.strokeStyle&&t.strokeText(u,0,0),t.restore(),"underline"===e&&(0===n&&t.moveTo(s.x,s.y+r/8),t.lineTo(a.x,a.y+r/5))})),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=n,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[t]||0}findSegmentToFitChar(t,e,r,i,n,s,a,o,u){var c=s,h=this.measureText(t,o);" "===o&&"justify"===e&&r-1&&(c+=this.getLetterSpacingAt(u));var l=this.textHeight/20,f=this.getEquidistantPointOnPath(c,l,0),g=this.getEquidistantPointOnPath(c+h,l,0),p={p0:f,p1:g},d=f&&g?Math.atan2(g.y-f.y,g.x-f.x):0;if(a){var v=Math.cos(Math.PI/2+d)*a,y=Math.cos(-d)*a;p.p0=le(le({},f),{},{x:f.x+v,y:f.y+y}),p.p1=le(le({},g),{},{x:g.x+v,y:g.y+y})}return{offset:c+=h,segment:p,rotation:d}}measureText(t,e){var{measuresCache:r}=this,i=e||this.getText();if(r.has(i))return r.get(i);var n=this.measureTargetText(t,i);return r.set(i,n),n}setTextData(t){if(!this.glyphInfo){var e=this.getText(),r=e.split(""),i=e.split(" ").length-1,n=this.parent.getAttribute("dx").split().map((t=>t.getPixels("x"))),s=this.parent.getAttribute("dy").getPixels("y"),a=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),u=this.parent.getStyle("letter-spacing"),c=0;o.hasValue()&&"inherit"!==o.getValue()?o.hasValue()&&"initial"!==o.getValue()&&"unset"!==o.getValue()&&(c=o.getPixels()):c=u.getPixels();var h=[],l=e.length;this.letterSpacingCache=h;for(var f=0;f0===r?0:t+e||0),0),p=this.measureText(t),d=Math.max(p+g,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var v=this.getPathLength(),y=this.getStyle("startOffset").getNumber(0)*v,m=0;"middle"!==a&&"center"!==a||(m=-d/2),"end"!==a&&"right"!==a||(m=-d),m+=y,r.forEach(((e,n)=>{var{offset:o,segment:u,rotation:c}=this.findSegmentToFitChar(t,a,d,v,i,m,s,e,n);m=o,u.p0&&u.p1&&this.glyphInfo.push({text:r[n],p0:u.p0,p1:u.p1,rotation:c})}))}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:r}=t;for(r.reset();!r.isEnd();){var{current:i}=r,n=i?i.x:0,s=i?i.y:0,a=r.next(),o=a.type,u=[];switch(a.type){case kt.MOVE_TO:this.pathM(r,u);break;case kt.LINE_TO:o=this.pathL(r,u);break;case kt.HORIZ_LINE_TO:o=this.pathH(r,u);break;case kt.VERT_LINE_TO:o=this.pathV(r,u);break;case kt.CURVE_TO:this.pathC(r,u);break;case kt.SMOOTH_CURVE_TO:o=this.pathS(r,u);break;case kt.QUAD_TO:this.pathQ(r,u);break;case kt.SMOOTH_QUAD_TO:o=this.pathT(r,u);break;case kt.ARC:u=this.pathA(r);break;case kt.CLOSE_PATH:Lt.pathZ(r)}a.type!==kt.CLOSE_PATH?e.push({type:o,points:u,start:{x:n,y:s},pathLength:this.calcLength(n,s,o,u)}):e.push({type:kt.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:i}=Lt.pathM(t).point;e.push(r,i)}pathL(t,e){var{x:r,y:i}=Lt.pathL(t).point;return e.push(r,i),kt.LINE_TO}pathH(t,e){var{x:r,y:i}=Lt.pathH(t).point;return e.push(r,i),kt.LINE_TO}pathV(t,e){var{x:r,y:i}=Lt.pathV(t).point;return e.push(r,i),kt.LINE_TO}pathC(t,e){var{point:r,controlPoint:i,currentPoint:n}=Lt.pathC(t);e.push(r.x,r.y,i.x,i.y,n.x,n.y)}pathS(t,e){var{point:r,controlPoint:i,currentPoint:n}=Lt.pathS(t);return e.push(r.x,r.y,i.x,i.y,n.x,n.y),kt.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:i}=Lt.pathQ(t);e.push(r.x,r.y,i.x,i.y)}pathT(t,e){var{controlPoint:r,currentPoint:i}=Lt.pathT(t);return e.push(r.x,r.y,i.x,i.y),kt.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:i,xAxisRotation:n,centp:s,a1:a,ad:o}=Lt.pathA(t);return 0===i&&o>0&&(o-=2*Math.PI),1===i&&o<0&&(o+=2*Math.PI),[s.x,s.y,e,r,a,o,n,i]}calcLength(t,e,r,i){var n=0,s=null,a=null,o=0;switch(r){case kt.LINE_TO:return this.getLineLength(t,e,i[0],i[1]);case kt.CURVE_TO:for(n=0,s=this.getPointOnCubicBezier(0,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),o=.01;o<=1;o+=.01)a=this.getPointOnCubicBezier(o,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),n+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return n;case kt.QUAD_TO:for(n=0,s=this.getPointOnQuadraticBezier(0,t,e,i[0],i[1],i[2],i[3]),o=.01;o<=1;o+=.01)a=this.getPointOnQuadraticBezier(o,t,e,i[0],i[1],i[2],i[3]),n+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return n;case kt.ARC:n=0;var u=i[4],c=i[5],h=i[4]+c,l=Math.PI/180;if(Math.abs(u-h)h;o-=l)a=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],o,0),n+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;else for(o=u+l;o5&&void 0!==arguments[5]?arguments[5]:e,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,o=(n-r)/(i-e+K),u=Math.sqrt(t*t/(1+o*o));ie)return null;var{dataArray:n}=this;for(var s of n){if(!s||!(s.pathLength<5e-5||r+s.pathLength+5e-5=0&&o>h)break;i=this.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],o,s.points[6]);break;case kt.CURVE_TO:(o=a/s.pathLength)>1&&(o=1),i=this.getPointOnCubicBezier(o,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3],s.points[4],s.points[5]);break;case kt.QUAD_TO:(o=a/s.pathLength)>1&&(o=1),i=this.getPointOnQuadraticBezier(o,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3])}if(i)return i;break}r+=s.pathLength}return null}getLineLength(t,e,r,i){return Math.sqrt((r-t)*(r-t)+(i-e)*(i-e))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(((t,e)=>e.pathLength>0?t+e.pathLength:t),0)),this.pathLength}getPointOnCubicBezier(t,e,r,i,n,s,a,o,u){return{x:o*rt(t)+s*it(t)+i*nt(t)+e*st(t),y:u*rt(t)+a*it(t)+n*nt(t)+r*st(t)}}getPointOnQuadraticBezier(t,e,r,i,n,s,a){return{x:s*at(t)+i*ot(t)+e*ut(t),y:a*at(t)+n*ot(t)+r*ut(t)}}getPointOnEllipticalArc(t,e,r,i,n,s){var a=Math.cos(s),o=Math.sin(s),u=r*Math.cos(n),c=i*Math.sin(n);return{x:t+(u*a-c*o),y:e+(u*o+c*a)}}buildEquidistantCache(t,e){var r=this.getPathLength(),i=e||.25,n=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==i){this.equidistantCache={step:n,precision:i,points:[]};for(var s=0,a=0;a<=r;a+=i){var o=this.getPointOnPath(a),u=this.getPointOnPath(a+i);o&&u&&((s+=this.getLineLength(o.x,o.y,u.x,u.y))>=n&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:a}),s-=n))}}}getEquidistantPointOnPath(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var i=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}var ge=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class pe extends It{constructor(t,e,r){super(t,e,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var n=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);t.images.push(this),n?this.loadSvg(i):this.loadImage(i),this.isSvg=n}}loadImage(t){var e=this;return(0,i.Z)((function*(){try{var r=yield e.document.createImage(t);e.image=r}catch(e){console.error('Error while loading image "'.concat(t,'":'),e)}e.loaded=!0}))()}loadSvg(t){var e=this;return(0,i.Z)((function*(){var r=ge.exec(t);if(r){var i=r[5];"base64"===r[4]?e.image=atob(i):e.image=decodeURIComponent(i)}else try{var n=yield e.document.fetch(t),s=yield n.text();e.image=s}catch(e){console.error('Error while loading image "'.concat(t,'":'),e)}e.loaded=!0}))()}renderChildren(t){var{document:e,image:r,loaded:i}=this,n=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(i&&r&&a&&o){if(t.save(),t.translate(n,s),this.isSvg){var u=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:a,scaleHeight:o});u.document.documentElement.parent=this,u.render()}else{var c=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:c.width,height:o,desiredHeight:c.height}),this.loaded&&(void 0===c.complete||c.complete)&&t.drawImage(c,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new Vt(t,e,t+r,e+i)}}class de extends It{constructor(){super(...arguments),this.type="symbol"}render(t){}}class ve{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var r=this;return(0,i.Z)((function*(){try{var{document:i}=r,n=(yield i.canvg.parser.load(e)).getElementsByTagName("font");Array.from(n).forEach((e=>{var r=i.createElement(e);i.definitions[t]=r}))}catch(t){console.error('Error while loading font "'.concat(e,'":'),t)}r.loaded=!0}))()}}class ye extends Et{constructor(t,e,r){super(t,e,r),this.type="style";var i=I(Array.from(e.childNodes).map((t=>t.textContent)).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,""));i.split("}").forEach((e=>{var r=e.trim();if(r){var i=r.split("{"),n=i[0].split(","),s=i[1].split(";");n.forEach((e=>{var r=e.trim();if(r){var i=t.styles[r]||{};if(s.forEach((e=>{var r=e.indexOf(":"),n=e.substr(0,r).trim(),s=e.substr(r+1,e.length-r).trim();n&&s&&(i[n]=new ct(t,n,s))})),t.styles[r]=i,t.stylesSpecificity[r]=Z(r),"@font-face"===r){var n=i["font-family"].getString().replace(/"|'/g,"");i.src.getString().split(",").forEach((e=>{if(e.indexOf('format("svg")')>0){var r=z(e);r&&new ve(t).load(n,r)}}))}}}))}}))}}ye.parseExternalUrl=z;class me extends It{constructor(){super(...arguments),this.type="use"}setContext(t){super.setContext(t);var e=this.getAttribute("x"),r=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}path(t){var{element:e}=this;e&&e.path(t)}renderChildren(t){var{document:e,element:r}=this;if(r){var i=r;if("symbol"===r.type&&((i=new zt(e,null)).attributes.viewBox=new ct(e,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new ct(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new ct(e,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new ct(e,"opacity",this.calculateOpacity())),"svg"===i.type){var n=this.getStyle("width",!1,!0),s=this.getStyle("height",!1,!0);n.hasValue()&&(i.attributes.width=new ct(e,"width",n.getString())),s.hasValue()&&(i.attributes.height=new ct(e,"height",s.getString()))}var a=i.parent;i.parent=this,i.render(t),i.parent=a}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return Ct.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function xe(t,e,r,i,n,s){return t[r*i*4+4*e+s]}function be(t,e,r,i,n,s,a){t[r*i*4+4*e+s]=a}function Se(t,e,r){return t[e]*r}function we(t,e,r,i){return e+Math.cos(t)*r+Math.sin(t)*i}class Te extends Et{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var i=B(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var n=i[0];i=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var s=i[0]*Math.PI/180;i=[we(s,.213,.787,-.213),we(s,.715,-.715,-.715),we(s,.072,-.072,.928),0,0,we(s,.213,-.213,.143),we(s,.715,.285,.14),we(s,.072,-.072,-.283),0,0,we(s,.213,-.213,-.787),we(s,.715,-.715,.715),we(s,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,r,i,n){for(var{includeOpacity:s,matrix:a}=this,o=t.getImageData(0,0,i,n),u=0;u{o.addBoundingBox(e.getBoundingBox(t))})),i=Math.floor(o.x1),n=Math.floor(o.y1),s=Math.floor(o.width),a=Math.floor(o.height)}var u=this.removeStyles(e,Oe.ignoreStyles),c=r.createCanvas(i+s,n+a),h=c.getContext("2d");r.screen.setDefaults(h),this.renderChildren(h),new Te(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(h,0,0,i+s,n+a);var l=r.createCanvas(i+s,n+a),f=l.getContext("2d");r.screen.setDefaults(f),e.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=h.createPattern(c,"no-repeat"),f.fillRect(0,0,i+s,n+a),t.fillStyle=f.createPattern(l,"no-repeat"),t.fillRect(0,0,i+s,n+a),this.restoreStyles(e,u)}render(t){}}Oe.ignoreStyles=["mask","transform","clip-path"];var Ae=()=>{};class Ce extends Et{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,r=Reflect.getPrototypeOf(t),{beginPath:i,closePath:n}=t;r&&(r.beginPath=Ae,r.closePath=Ae),Reflect.apply(i,t,[]),this.children.forEach((i=>{if(void 0!==i.path){var s=void 0!==i.elementTransform?i.elementTransform():null;s||(s=Ct.fromElement(e,i)),s&&s.apply(t),i.path(t),r&&(r.closePath=n),s&&s.unapply(t)}})),Reflect.apply(n,t,[]),t.clip(),r&&(r.beginPath=i,r.closePath=n)}render(t){}}class Ee extends Et{constructor(){super(...arguments),this.type="filter"}apply(t,e){var{document:r,children:i}=this,n=e.getBoundingBox(t);if(n){var s=0,a=0;i.forEach((t=>{var e=t.extraFilterDistance||0;s=Math.max(s,e),a=Math.max(a,e)}));var o=Math.floor(n.width),u=Math.floor(n.height),c=o+2*s,h=u+2*a;if(!(c<1||h<1)){var l=Math.floor(n.x),f=Math.floor(n.y),g=this.removeStyles(e,Ee.ignoreStyles),p=r.createCanvas(c,h),d=p.getContext("2d");r.screen.setDefaults(d),d.translate(-l+s,-f+a),e.render(d),i.forEach((t=>{"function"==typeof t.apply&&t.apply(d,0,0,c,h)})),t.drawImage(p,0,0,c,h,l-s,f-a,c,h),this.restoreStyles(e,g)}}}render(t){}}Ee.ignoreStyles=["filter","transform","clip-path"];class Pe extends Et{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,i,n){}}class Ne extends Et{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,i,n){}}class Me extends Et{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,i,n){}}class Re extends Et{constructor(t,e,r){super(t,e,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,e,r,i,n){var{document:s,blurRadius:a}=this,o=s.window?s.window.document.body:null,u=t.canvas;u.id=s.getUniqueId(),o&&(u.style.display="none",o.appendChild(u)),R(u,e,r,i,n,a),o&&o.removeChild(u)}}class _e extends Et{constructor(){super(...arguments),this.type="title"}}class Ve extends Et{constructor(){super(...arguments),this.type="desc"}}var ke={svg:zt,rect:Ut,circle:Ht,ellipse:Xt,line:Yt,polyline:Wt,polygon:qt,path:Lt,pattern:Gt,marker:Qt,defs:$t,linearGradient:Jt,radialGradient:te,stop:ee,animate:re,animateColor:ie,animateTransform:ne,font:se,"font-face":ae,"missing-glyph":oe,glyph:Dt,text:Bt,tspan:jt,tref:ue,a:ce,textPath:fe,image:pe,g:Zt,symbol:de,style:ye,use:me,mask:Oe,clipPath:Ce,filter:Ee,feDropShadow:Pe,feMorphology:Ne,feComposite:Me,feColorMatrix:Te,feGaussianBlur:Re,title:_e,desc:Ve};function Ie(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function Le(){return Le=(0,i.Z)((function*(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.createElement("img");return e&&(r.crossOrigin="Anonymous"),new Promise(((e,i)=>{r.onload=()=>{e(r)},r.onerror=(t,e,r,n,s)=>{i(s)},r.src=t}))})),Le.apply(this,arguments)}class De{constructor(t){var{rootEmSize:e=12,emSize:r=12,createCanvas:i=De.createCanvas,createImage:n=De.createImage,anonymousCrossOrigin:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=e,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(n,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(t,e){return"boolean"==typeof e?(r,i)=>t(r,"boolean"==typeof i?i:e):t}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:t}=this;return t[t.length-1]}set emSize(t){var{emSizeStack:e}=this;e.push(t)}popEmSize(){var{emSizeStack:t}=this;t.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every((t=>t.loaded))}isFontsLoaded(){return this.fonts.every((t=>t.loaded))}createDocumentElement(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}createElement(t){var e=t.nodeName.replace(/^[^:]+:/,""),r=De.elementTypes[e];return void 0!==r?new r(this,t):new Pt(this,t)}createTextNode(t){return new Ft(this,t)}setViewBox(t){this.screen.setViewBox(function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new mt(r),this.screen=new dt(t,r),this.options=r;var i=new De(this,r),n=i.createDocumentElement(e);this.document=i,this.documentElement=n}static from(t,e){var r=arguments;return(0,i.Z)((function*(){var i=r.length>2&&void 0!==r[2]?r[2]:{},n=new mt(i),s=yield n.parse(e);return new Fe(t,s,i)}))()}static fromString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new mt(r).parseFromString(e);return new Fe(t,i,r)}fork(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Fe.from(t,e,je(je({},this.options),r))}forkString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Fe.fromString(t,e,je(je({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return(0,i.Z)((function*(){var r=t.length>0&&void 0!==t[0]?t[0]:{};e.start(je({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield e.ready(),e.stop()}))()}start(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:e,screen:r,options:i}=this;r.start(e,je(je({enableRedraw:!0},i),t))}stop(){this.screen.stop()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(t,e,r)}}}}]); \ No newline at end of file diff --git a/46949.57350e6a.async.js b/46949.57350e6a.async.js new file mode 100644 index 0000000000..f2b3cb546c --- /dev/null +++ b/46949.57350e6a.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[46949],{94907:function(t,e,r){var i=r(97671);(function(){var e,r,n,s,a,o;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=i&&i.hrtime?(t.exports=function(){return(e()-a)/1e6},r=i.hrtime,s=(e=function(){var t;return 1e9*(t=r())[0]+t[1]})(),o=1e9*i.uptime(),a=s-o):Date.now?(t.exports=function(){return Date.now()-n},n=Date.now()):(t.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},32772:function(t,e,r){for(var i=r(94907),n="undefined"==typeof window?r.g:window,s=["moz","webkit"],a="AnimationFrame",o=n["request"+a],u=n["cancel"+a]||n["cancelRequest"+a],c=0;!o&&c3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,i=0;i "+c.toRGB()+" -> "+c.toHex());u.appendChild(h),u.appendChild(l),o.appendChild(u)}catch(t){}return o}}},72015:function(t,e,r){"use strict";var i=r(66638),n=r(86853),s=TypeError;t.exports=function(t){if(i(t))return t;throw new s(n(t)+" is not a function")}},69846:function(t,e,r){"use strict";var i=r(31998),n=r(86853),s=TypeError;t.exports=function(t){if(i(t))return t;throw new s(n(t)+" is not a constructor")}},73236:function(t,e,r){"use strict";var i=r(21432),n=String,s=TypeError;t.exports=function(t){if(i(t))return t;throw new s("Can't set "+n(t)+" as a prototype")}},72099:function(t,e,r){"use strict";var i=r(69393),n=r(7558),s=r(28603).f,a=i("unscopables"),o=Array.prototype;void 0===o[a]&&s(o,a,{configurable:!0,value:n(null)}),t.exports=function(t){o[a][t]=!0}},24235:function(t,e,r){"use strict";var i=r(85254).charAt;t.exports=function(t,e,r){return e+(r?i(t,e).length:1)}},95800:function(t,e,r){"use strict";var i=r(98327),n=TypeError;t.exports=function(t,e){if(i(e,t))return t;throw new n("Incorrect invocation")}},99016:function(t,e,r){"use strict";var i=r(64480),n=String,s=TypeError;t.exports=function(t){if(i(t))return t;throw new s(n(t)+" is not an object")}},60237:function(t,e,r){"use strict";var i=r(60326),n=r(68780),s=r(47554),a=function(t){return function(e,r,a){var o=i(e),u=s(o);if(0===u)return!t&&-1;var c,h=n(a,u);if(t&&r!=r){for(;u>h;)if((c=o[h++])!=c)return!0}else for(;u>h;h++)if((t||h in o)&&o[h]===r)return t||h||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},13030:function(t,e,r){"use strict";var i=r(92485);t.exports=function(t,e){var r=[][t];return!!r&&i((function(){r.call(null,e||function(){return 1},1)}))}},86669:function(t,e,r){"use strict";var i=r(72015),n=r(99197),s=r(98858),a=r(47554),o=TypeError,u="Reduce of empty array with no initial value",c=function(t){return function(e,r,c,h){var l=n(e),f=s(l),g=a(l);if(i(r),0===g&&c<2)throw new o(u);var p=t?g-1:0,d=t?-1:1;if(c<2)for(;;){if(p in f){h=f[p],p+=d;break}if(p+=d,t?p<0:g<=p)throw new o(u)}for(;t?p>=0:g>p;p+=d)p in f&&(h=r(h,f[p],p,l));return h}};t.exports={left:c(!1),right:c(!0)}},11712:function(t,e,r){"use strict";var i=r(51215);t.exports=i([].slice)},73872:function(t,e,r){"use strict";var i=r(69393)("iterator"),n=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){n=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!n)return!1}catch(t){return!1}var r=!1;try{var s={};s[i]=function(){return{next:function(){return{done:r=!0}}}},t(s)}catch(t){}return r}},81220:function(t,e,r){"use strict";var i=r(51215),n=i({}.toString),s=i("".slice);t.exports=function(t){return s(n(t),8,-1)}},36420:function(t,e,r){"use strict";var i=r(62233),n=r(66638),s=r(81220),a=r(69393)("toStringTag"),o=Object,u="Arguments"===s(function(){return arguments}());t.exports=i?s:function(t){var e,r,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=o(t),a))?r:u?s(e):"Object"===(i=s(e))&&n(e.callee)?"Arguments":i}},74193:function(t,e,r){"use strict";var i=r(65714),n=r(3905),s=r(89310),a=r(28603);t.exports=function(t,e,r){for(var o=n(e),u=a.f,c=s.f,h=0;h0&&i[0]<4?1:+(i[0]+i[1])),!n&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(n=+i[1]),t.exports=n},28367:function(t,e,r){"use strict";var i=r(55201),n=r(31948),s=r(81220),a=function(t){return n.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===s(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"},74717:function(t,e,r){"use strict";var i=r(55201),n=r(89310).f,s=r(78842),a=r(36520),o=r(61971),u=r(74193),c=r(36610);t.exports=function(t,e){var r,h,l,f,g,p=t.target,d=t.global,v=t.stat;if(r=d?i:v?i[p]||o(p,{}):i[p]&&i[p].prototype)for(h in e){if(f=e[h],l=t.dontCallGetSet?(g=n(r,h))&&g.value:r[h],!c(d?h:p+(v?".":"#")+h,t.forced)&&void 0!==l){if(typeof f==typeof l)continue;u(f,l)}(t.sham||l&&l.sham)&&s(f,"sham",!0),a(r,h,f,t)}}},92485:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},63248:function(t,e,r){"use strict";r(17733);var i=r(83187),n=r(36520),s=r(68658),a=r(92485),o=r(69393),u=r(78842),c=o("species"),h=RegExp.prototype;t.exports=function(t,e,r,l){var f=o(t),g=!a((function(){var e={};return e[f]=function(){return 7},7!==""[t](e)})),p=g&&!a((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return e=!0,null},r[f](""),!e}));if(!g||!p||r){var d=/./[f],v=e(f,""[t],(function(t,e,r,n,a){var o=e.exec;return o===s||o===h.exec?g&&!a?{done:!0,value:i(d,e,r,n)}:{done:!0,value:i(t,r,e,n)}:{done:!1}}));n(String.prototype,t,v[0]),n(h,f,v[1])}l&&u(h[f],"sham",!0)}},42838:function(t,e,r){"use strict";var i=r(60338),n=Function.prototype,s=n.apply,a=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(s):function(){return a.apply(s,arguments)})},86143:function(t,e,r){"use strict";var i=r(48327),n=r(72015),s=r(60338),a=i(i.bind);t.exports=function(t,e){return n(t),void 0===e?t:s?a(t,e):function(){return t.apply(e,arguments)}}},60338:function(t,e,r){"use strict";var i=r(92485);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},83187:function(t,e,r){"use strict";var i=r(60338),n=Function.prototype.call;t.exports=i?n.bind(n):function(){return n.apply(n,arguments)}},70492:function(t,e,r){"use strict";var i=r(95743),n=r(65714),s=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,o=n(s,"name"),u=o&&"something"===function(){}.name,c=o&&(!i||i&&a(s,"name").configurable);t.exports={EXISTS:o,PROPER:u,CONFIGURABLE:c}},45071:function(t,e,r){"use strict";var i=r(51215),n=r(72015);t.exports=function(t,e,r){try{return i(n(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},48327:function(t,e,r){"use strict";var i=r(81220),n=r(51215);t.exports=function(t){if("Function"===i(t))return n(t)}},51215:function(t,e,r){"use strict";var i=r(60338),n=Function.prototype,s=n.call,a=i&&n.bind.bind(s,s);t.exports=i?a:function(t){return function(){return s.apply(t,arguments)}}},3571:function(t,e,r){"use strict";var i=r(55201),n=r(66638),s=function(t){return n(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?s(i[t]):i[t]&&i[t][e]}},63624:function(t,e,r){"use strict";var i=r(36420),n=r(2847),s=r(75305),a=r(4639),o=r(69393)("iterator");t.exports=function(t){if(!s(t))return n(t,o)||n(t,"@@iterator")||a[i(t)]}},94535:function(t,e,r){"use strict";var i=r(83187),n=r(72015),s=r(99016),a=r(86853),o=r(63624),u=TypeError;t.exports=function(t,e){var r=arguments.length<2?o(t):e;if(n(r))return s(i(r,t));throw new u(a(t)+" is not iterable")}},2847:function(t,e,r){"use strict";var i=r(72015),n=r(75305);t.exports=function(t,e){var r=t[e];return n(r)?void 0:i(r)}},83647:function(t,e,r){"use strict";var i=r(51215),n=r(99197),s=Math.floor,a=i("".charAt),o=i("".replace),u=i("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,h=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,i,l,f){var g=r+t.length,p=i.length,d=h;return void 0!==l&&(l=n(l),d=c),o(f,d,(function(n,o){var c;switch(a(o,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,r);case"'":return u(e,g);case"<":c=l[u(o,1,-1)];break;default:var h=+o;if(0===h)return n;if(h>p){var f=s(h/10);return 0===f?n:f<=p?void 0===i[f-1]?a(o,1):i[f-1]+a(o,1):n}c=i[h-1]}return void 0===c?"":c}))}},55201:function(t,e,r){"use strict";var i=function(t){return t&&t.Math===Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r.g&&r.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},65714:function(t,e,r){"use strict";var i=r(51215),n=r(99197),s=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return s(n(t),e)}},43906:function(t){"use strict";t.exports={}},30673:function(t){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},97442:function(t,e,r){"use strict";var i=r(3571);t.exports=i("document","documentElement")},46906:function(t,e,r){"use strict";var i=r(95743),n=r(92485),s=r(43449);t.exports=!i&&!n((function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},98858:function(t,e,r){"use strict";var i=r(51215),n=r(92485),s=r(81220),a=Object,o=i("".split);t.exports=n((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===s(t)?o(t,""):a(t)}:a},60776:function(t,e,r){"use strict";var i=r(51215),n=r(66638),s=r(8605),a=i(Function.toString);n(s.inspectSource)||(s.inspectSource=function(t){return a(t)}),t.exports=s.inspectSource},38029:function(t,e,r){"use strict";var i,n,s,a=r(29176),o=r(55201),u=r(64480),c=r(78842),h=r(65714),l=r(8605),f=r(75541),g=r(43906),p="Object already initialized",d=o.TypeError,v=o.WeakMap;if(a||l.state){var y=l.state||(l.state=new v);y.get=y.get,y.has=y.has,y.set=y.set,i=function(t,e){if(y.has(t))throw new d(p);return e.facade=t,y.set(t,e),e},n=function(t){return y.get(t)||{}},s=function(t){return y.has(t)}}else{var m=f("state");g[m]=!0,i=function(t,e){if(h(t,m))throw new d(p);return e.facade=t,c(t,m,e),e},n=function(t){return h(t,m)?t[m]:{}},s=function(t){return h(t,m)}}t.exports={set:i,get:n,has:s,enforce:function(t){return s(t)?n(t):i(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=n(e)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}},33706:function(t,e,r){"use strict";var i=r(69393),n=r(4639),s=i("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||a[s]===t)}},88794:function(t,e,r){"use strict";var i=r(81220);t.exports=Array.isArray||function(t){return"Array"===i(t)}},66638:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},31998:function(t,e,r){"use strict";var i=r(51215),n=r(92485),s=r(66638),a=r(36420),o=r(3571),u=r(60776),c=function(){},h=o("Reflect","construct"),l=/^\s*(?:class|function)\b/,f=i(l.exec),g=!l.test(c),p=function(t){if(!s(t))return!1;try{return h(c,[],t),!0}catch(t){return!1}},d=function(t){if(!s(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g||!!f(l,u(t))}catch(t){return!0}};d.sham=!0,t.exports=!h||n((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?d:p},36610:function(t,e,r){"use strict";var i=r(92485),n=r(66638),s=/#|\.prototype\./,a=function(t,e){var r=u[o(t)];return r===h||r!==c&&(n(e)?i(e):!!e)},o=a.normalize=function(t){return String(t).replace(s,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",h=a.POLYFILL="P";t.exports=a},75305:function(t){"use strict";t.exports=function(t){return null==t}},64480:function(t,e,r){"use strict";var i=r(66638);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},21432:function(t,e,r){"use strict";var i=r(64480);t.exports=function(t){return i(t)||null===t}},24478:function(t){"use strict";t.exports=!1},16779:function(t,e,r){"use strict";var i=r(64480),n=r(81220),s=r(69393)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[s])?!!e:"RegExp"===n(t))}},65017:function(t,e,r){"use strict";var i=r(3571),n=r(66638),s=r(98327),a=r(87563),o=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return n(e)&&s(e.prototype,o(t))}},47589:function(t,e,r){"use strict";var i=r(86143),n=r(83187),s=r(99016),a=r(86853),o=r(33706),u=r(47554),c=r(98327),h=r(94535),l=r(63624),f=r(44991),g=TypeError,p=function(t,e){this.stopped=t,this.result=e},d=p.prototype;t.exports=function(t,e,r){var v,y,m,x,b,S,w,T=r&&r.that,O=!(!r||!r.AS_ENTRIES),A=!(!r||!r.IS_RECORD),C=!(!r||!r.IS_ITERATOR),E=!(!r||!r.INTERRUPTED),P=i(e,T),N=function(t){return v&&f(v,"normal",t),new p(!0,t)},M=function(t){return O?(s(t),E?P(t[0],t[1],N):P(t[0],t[1])):E?P(t,N):P(t)};if(A)v=t.iterator;else if(C)v=t;else{if(!(y=l(t)))throw new g(a(t)+" is not iterable");if(o(y)){for(m=0,x=u(t);x>m;m++)if((b=M(t[m]))&&c(d,b))return b;return new p(!1)}v=h(t,y)}for(S=A?t.next:v.next;!(w=n(S,v)).done;){try{b=M(w.value)}catch(t){f(v,"throw",t)}if("object"==typeof b&&b&&c(d,b))return b}return new p(!1)}},44991:function(t,e,r){"use strict";var i=r(83187),n=r(99016),s=r(2847);t.exports=function(t,e,r){var a,o;n(t);try{if(!(a=s(t,"return"))){if("throw"===e)throw r;return r}a=i(a,t)}catch(t){o=!0,a=t}if("throw"===e)throw r;if(o)throw a;return n(a),r}},65078:function(t,e,r){"use strict";var i=r(40033).IteratorPrototype,n=r(7558),s=r(24894),a=r(3879),o=r(4639),u=function(){return this};t.exports=function(t,e,r,c){var h=e+" Iterator";return t.prototype=n(i,{next:s(+!c,r)}),a(t,h,!1,!0),o[h]=u,t}},5718:function(t,e,r){"use strict";var i=r(74717),n=r(83187),s=r(24478),a=r(70492),o=r(66638),u=r(65078),c=r(73298),h=r(60933),l=r(3879),f=r(78842),g=r(36520),p=r(69393),d=r(4639),v=r(40033),y=a.PROPER,m=a.CONFIGURABLE,x=v.IteratorPrototype,b=v.BUGGY_SAFARI_ITERATORS,S=p("iterator"),w="keys",T="values",O="entries",A=function(){return this};t.exports=function(t,e,r,a,p,v,C){u(r,e,a);var E,P,N,M=function(t){if(t===p&&I)return I;if(!b&&t&&t in V)return V[t];switch(t){case w:case T:case O:return function(){return new r(this,t)}}return function(){return new r(this)}},R=e+" Iterator",_=!1,V=t.prototype,k=V[S]||V["@@iterator"]||p&&V[p],I=!b&&k||M(p),L="Array"===e&&V.entries||k;if(L&&(E=c(L.call(new t)))!==Object.prototype&&E.next&&(s||c(E)===x||(h?h(E,x):o(E[S])||g(E,S,A)),l(E,R,!0,!0),s&&(d[R]=A)),y&&p===T&&k&&k.name!==T&&(!s&&m?f(V,"name",T):(_=!0,I=function(){return n(k,this)})),p)if(P={values:M(T),keys:v?I:M(w),entries:M(O)},C)for(N in P)(b||_||!(N in V))&&g(V,N,P[N]);else i({target:e,proto:!0,forced:b||_},P);return s&&!C||V[S]===I||g(V,S,I,{name:p}),d[e]=I,P}},40033:function(t,e,r){"use strict";var i,n,s,a=r(92485),o=r(66638),u=r(64480),c=r(7558),h=r(73298),l=r(36520),f=r(69393),g=r(24478),p=f("iterator"),d=!1;[].keys&&("next"in(s=[].keys())?(n=h(h(s)))!==Object.prototype&&(i=n):d=!0),!u(i)||a((function(){var t={};return i[p].call(t)!==t}))?i={}:g&&(i=c(i)),o(i[p])||l(i,p,(function(){return this})),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:d}},4639:function(t){"use strict";t.exports={}},47554:function(t,e,r){"use strict";var i=r(80654);t.exports=function(t){return i(t.length)}},28364:function(t,e,r){"use strict";var i=r(51215),n=r(92485),s=r(66638),a=r(65714),o=r(95743),u=r(70492).CONFIGURABLE,c=r(60776),h=r(38029),l=h.enforce,f=h.get,g=String,p=Object.defineProperty,d=i("".slice),v=i("".replace),y=i([].join),m=o&&!n((function(){return 8!==p((function(){}),"length",{value:8}).length})),x=String(String).split("String"),b=t.exports=function(t,e,r){"Symbol("===d(g(e),0,7)&&(e="["+v(g(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(o?p(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&a(r,"arity")&&t.length!==r.arity&&p(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?o&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=l(t);return a(i,"source")||(i.source=y(x,"string"==typeof e?e:"")),t};Function.prototype.toString=b((function(){return s(this)&&f(this).source||c(this)}),"toString")},9079:function(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?r:e)(i)}},56135:function(t,e,r){"use strict";var i,n,s,a,o,u=r(55201),c=r(65653),h=r(86143),l=r(62050).set,f=r(86513),g=r(46428),p=r(90489),d=r(39252),v=r(66569),y=u.MutationObserver||u.WebKitMutationObserver,m=u.document,x=u.process,b=u.Promise,S=c("queueMicrotask");if(!S){var w=new f,T=function(){var t,e;for(v&&(t=x.domain)&&t.exit();e=w.get();)try{e()}catch(t){throw w.head&&i(),t}t&&t.enter()};g||v||d||!y||!m?!p&&b&&b.resolve?((a=b.resolve(void 0)).constructor=b,o=h(a.then,a),i=function(){o(T)}):v?i=function(){x.nextTick(T)}:(l=h(l,u),i=function(){l(T)}):(n=!0,s=m.createTextNode(""),new y(T).observe(s,{characterData:!0}),i=function(){s.data=n=!n}),S=function(t){w.head||i(),w.add(t)}}t.exports=S},48455:function(t,e,r){"use strict";var i=r(72015),n=TypeError,s=function(t){var e,r;this.promise=new t((function(t,i){if(void 0!==e||void 0!==r)throw new n("Bad Promise constructor");e=t,r=i})),this.resolve=i(e),this.reject=i(r)};t.exports.f=function(t){return new s(t)}},65893:function(t,e,r){"use strict";var i=r(16779),n=TypeError;t.exports=function(t){if(i(t))throw new n("The method doesn't accept regular expressions");return t}},7558:function(t,e,r){"use strict";var i,n=r(99016),s=r(6701),a=r(54630),o=r(43906),u=r(97442),c=r(43449),h=r(75541),l="prototype",f="script",g=h("IE_PROTO"),p=function(){},d=function(t){return"<"+f+">"+t+""},v=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;y="undefined"!=typeof document?document.domain&&i?v(i):(e=c("iframe"),r="java"+f+":",e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):v(i);for(var n=a.length;n--;)delete y[l][a[n]];return y()};o[g]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(p[l]=n(t),r=new p,p[l]=null,r[g]=t):r=y(),void 0===e?r:s.f(r,e)}},6701:function(t,e,r){"use strict";var i=r(95743),n=r(46654),s=r(28603),a=r(99016),o=r(60326),u=r(45791);e.f=i&&!n?Object.defineProperties:function(t,e){a(t);for(var r,i=o(e),n=u(e),c=n.length,h=0;c>h;)s.f(t,r=n[h++],i[r]);return t}},28603:function(t,e,r){"use strict";var i=r(95743),n=r(46906),s=r(46654),a=r(99016),o=r(15446),u=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,l="enumerable",f="configurable",g="writable";e.f=i?s?function(t,e,r){if(a(t),e=o(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&g in r&&!r[g]){var i=h(t,e);i&&i[g]&&(t[e]=r.value,r={configurable:f in r?r[f]:i[f],enumerable:l in r?r[l]:i[l],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(a(t),e=o(e),a(r),n)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},89310:function(t,e,r){"use strict";var i=r(95743),n=r(83187),s=r(36441),a=r(24894),o=r(60326),u=r(15446),c=r(65714),h=r(46906),l=Object.getOwnPropertyDescriptor;e.f=i?l:function(t,e){if(t=o(t),e=u(e),h)try{return l(t,e)}catch(t){}if(c(t,e))return a(!n(s.f,t,e),t[e])}},41983:function(t,e,r){"use strict";var i=r(73880),n=r(54630).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,n)}},30023:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},73298:function(t,e,r){"use strict";var i=r(65714),n=r(66638),s=r(99197),a=r(75541),o=r(62437),u=a("IE_PROTO"),c=Object,h=c.prototype;t.exports=o?c.getPrototypeOf:function(t){var e=s(t);if(i(e,u))return e[u];var r=e.constructor;return n(r)&&e instanceof r?r.prototype:e instanceof c?h:null}},98327:function(t,e,r){"use strict";var i=r(51215);t.exports=i({}.isPrototypeOf)},73880:function(t,e,r){"use strict";var i=r(51215),n=r(65714),s=r(60326),a=r(60237).indexOf,o=r(43906),u=i([].push);t.exports=function(t,e){var r,i=s(t),c=0,h=[];for(r in i)!n(o,r)&&n(i,r)&&u(h,r);for(;e.length>c;)n(i,r=e[c++])&&(~a(h,r)||u(h,r));return h}},45791:function(t,e,r){"use strict";var i=r(73880),n=r(54630);t.exports=Object.keys||function(t){return i(t,n)}},36441:function(t,e){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,n=i&&!r.call({1:2},1);e.f=n?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},60933:function(t,e,r){"use strict";var i=r(45071),n=r(64480),s=r(22341),a=r(73236);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=i(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return s(r),a(i),n(r)?(e?t(r,i):r.__proto__=i,r):r}}():void 0)},18228:function(t,e,r){"use strict";var i=r(83187),n=r(66638),s=r(64480),a=TypeError;t.exports=function(t,e){var r,o;if("string"===e&&n(r=t.toString)&&!s(o=i(r,t)))return o;if(n(r=t.valueOf)&&!s(o=i(r,t)))return o;if("string"!==e&&n(r=t.toString)&&!s(o=i(r,t)))return o;throw new a("Can't convert object to primitive value")}},3905:function(t,e,r){"use strict";var i=r(3571),n=r(51215),s=r(41983),a=r(30023),o=r(99016),u=n([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=s.f(o(t)),r=a.f;return r?u(e,r(t)):e}},99082:function(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},51378:function(t,e,r){"use strict";var i=r(55201),n=r(85676),s=r(66638),a=r(36610),o=r(60776),u=r(69393),c=r(28367),h=r(24478),l=r(53368),f=n&&n.prototype,g=u("species"),p=!1,d=s(i.PromiseRejectionEvent),v=a("Promise",(function(){var t=o(n),e=t!==String(n);if(!e&&66===l)return!0;if(h&&(!f.catch||!f.finally))return!0;if(!l||l<51||!/native code/.test(t)){var r=new n((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))};if((r.constructor={})[g]=i,!(p=r.then((function(){}))instanceof i))return!0}return!(e||"BROWSER"!==c&&"DENO"!==c||d)}));t.exports={CONSTRUCTOR:v,REJECTION_EVENT:d,SUBCLASSING:p}},85676:function(t,e,r){"use strict";var i=r(55201);t.exports=i.Promise},91272:function(t,e,r){"use strict";var i=r(99016),n=r(64480),s=r(48455);t.exports=function(t,e){if(i(t),n(e)&&e.constructor===t)return e;var r=s.f(t);return(0,r.resolve)(e),r.promise}},85969:function(t,e,r){"use strict";var i=r(85676),n=r(73872),s=r(51378).CONSTRUCTOR;t.exports=s||!n((function(t){i.all(t).then(void 0,(function(){}))}))},86513:function(t){"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},44960:function(t,e,r){"use strict";var i=r(83187),n=r(99016),s=r(66638),a=r(81220),o=r(68658),u=TypeError;t.exports=function(t,e){var r=t.exec;if(s(r)){var c=i(r,t,e);return null!==c&&n(c),c}if("RegExp"===a(t))return i(o,t,e);throw new u("RegExp#exec called on incompatible receiver")}},68658:function(t,e,r){"use strict";var i,n,s=r(83187),a=r(51215),o=r(26092),u=r(29954),c=r(67247),h=r(28765),l=r(7558),f=r(38029).get,g=r(77968),p=r(31313),d=h("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,m=a("".charAt),x=a("".indexOf),b=a("".replace),S=a("".slice),w=(n=/b*/g,s(v,i=/a/,"a"),s(v,n,"a"),0!==i.lastIndex||0!==n.lastIndex),T=c.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];(w||O||T||g||p)&&(y=function(t){var e,r,i,n,a,c,h,g=this,p=f(g),A=o(t),C=p.raw;if(C)return C.lastIndex=g.lastIndex,e=s(y,C,A),g.lastIndex=C.lastIndex,e;var E=p.groups,P=T&&g.sticky,N=s(u,g),M=g.source,R=0,_=A;if(P&&(N=b(N,"y",""),-1===x(N,"g")&&(N+="g"),_=S(A,g.lastIndex),g.lastIndex>0&&(!g.multiline||g.multiline&&"\n"!==m(A,g.lastIndex-1))&&(M="(?: "+M+")",_=" "+_,R++),r=new RegExp("^(?:"+M+")",N)),O&&(r=new RegExp("^"+M+"$(?!\\s)",N)),w&&(i=g.lastIndex),n=s(v,P?r:g,_),P?n?(n.input=S(n.input,R),n[0]=S(n[0],R),n.index=g.lastIndex,g.lastIndex+=n[0].length):g.lastIndex=0:w&&n&&(g.lastIndex=g.global?n.index+n[0].length:i),O&&n&&n.length>1&&s(d,n[0],r,(function(){for(a=1;ab)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},22341:function(t,e,r){"use strict";var i=r(75305),n=TypeError;t.exports=function(t){if(i(t))throw new n("Can't call method on "+t);return t}},65653:function(t,e,r){"use strict";var i=r(55201),n=r(95743),s=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!n)return i[t];var e=s(i,t);return e&&e.value}},42449:function(t,e,r){"use strict";var i=r(3571),n=r(20313),s=r(69393),a=r(95743),o=s("species");t.exports=function(t){var e=i(t);a&&e&&!e[o]&&n(e,o,{configurable:!0,get:function(){return this}})}},3879:function(t,e,r){"use strict";var i=r(28603).f,n=r(65714),s=r(69393)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!n(t,s)&&i(t,s,{configurable:!0,value:e})}},75541:function(t,e,r){"use strict";var i=r(28765),n=r(56688),s=i("keys");t.exports=function(t){return s[t]||(s[t]=n(t))}},8605:function(t,e,r){"use strict";var i=r(24478),n=r(55201),s=r(61971),a="__core-js_shared__",o=t.exports=n[a]||s(a,{});(o.versions||(o.versions=[])).push({version:"3.39.0",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},28765:function(t,e,r){"use strict";var i=r(8605);t.exports=function(t,e){return i[t]||(i[t]=e||{})}},29242:function(t,e,r){"use strict";var i=r(99016),n=r(69846),s=r(75305),a=r(69393)("species");t.exports=function(t,e){var r,o=i(t).constructor;return void 0===o||s(r=i(o)[a])?e:n(r)}},85254:function(t,e,r){"use strict";var i=r(51215),n=r(90190),s=r(26092),a=r(22341),o=i("".charAt),u=i("".charCodeAt),c=i("".slice),h=function(t){return function(e,r){var i,h,l=s(a(e)),f=n(r),g=l.length;return f<0||f>=g?t?"":void 0:(i=u(l,f))<55296||i>56319||f+1===g||(h=u(l,f+1))<56320||h>57343?t?o(l,f):i:t?c(l,f,f+2):h-56320+(i-55296<<10)+65536}};t.exports={codeAt:h(!1),charAt:h(!0)}},30377:function(t,e,r){"use strict";var i=r(70492).PROPER,n=r(92485),s=r(21181);t.exports=function(t){return n((function(){return!!s[t]()||"​…᠎"!=="​…᠎"[t]()||i&&s[t].name!==t}))}},29835:function(t,e,r){"use strict";var i=r(51215),n=r(22341),s=r(26092),a=r(21181),o=i("".replace),u=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),h=function(t){return function(e){var r=s(n(e));return 1&t&&(r=o(r,u,"")),2&t&&(r=o(r,c,"$1")),r}};t.exports={start:h(1),end:h(2),trim:h(3)}},84405:function(t,e,r){"use strict";var i=r(53368),n=r(92485),s=r(55201).String;t.exports=!!Object.getOwnPropertySymbols&&!n((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},62050:function(t,e,r){"use strict";var i,n,s,a,o=r(55201),u=r(42838),c=r(86143),h=r(66638),l=r(65714),f=r(92485),g=r(97442),p=r(11712),d=r(43449),v=r(24001),y=r(46428),m=r(66569),x=o.setImmediate,b=o.clearImmediate,S=o.process,w=o.Dispatch,T=o.Function,O=o.MessageChannel,A=o.String,C=0,E={},P="onreadystatechange";f((function(){i=o.location}));var N=function(t){if(l(E,t)){var e=E[t];delete E[t],e()}},M=function(t){return function(){N(t)}},R=function(t){N(t.data)},_=function(t){o.postMessage(A(t),i.protocol+"//"+i.host)};x&&b||(x=function(t){v(arguments.length,1);var e=h(t)?t:T(t),r=p(arguments,1);return E[++C]=function(){u(e,void 0,r)},n(C),C},b=function(t){delete E[t]},m?n=function(t){S.nextTick(M(t))}:w&&w.now?n=function(t){w.now(M(t))}:O&&!y?(a=(s=new O).port2,s.port1.onmessage=R,n=c(a.postMessage,a)):o.addEventListener&&h(o.postMessage)&&!o.importScripts&&i&&"file:"!==i.protocol&&!f(_)?(n=_,o.addEventListener("message",R,!1)):n=P in d("script")?function(t){g.appendChild(d("script"))[P]=function(){g.removeChild(this),N(t)}}:function(t){setTimeout(M(t),0)}),t.exports={set:x,clear:b}},68780:function(t,e,r){"use strict";var i=r(90190),n=Math.max,s=Math.min;t.exports=function(t,e){var r=i(t);return r<0?n(r+e,0):s(r,e)}},60326:function(t,e,r){"use strict";var i=r(98858),n=r(22341);t.exports=function(t){return i(n(t))}},90190:function(t,e,r){"use strict";var i=r(9079);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},80654:function(t,e,r){"use strict";var i=r(90190),n=Math.min;t.exports=function(t){var e=i(t);return e>0?n(e,9007199254740991):0}},99197:function(t,e,r){"use strict";var i=r(22341),n=Object;t.exports=function(t){return n(i(t))}},87403:function(t,e,r){"use strict";var i=r(83187),n=r(64480),s=r(65017),a=r(2847),o=r(18228),u=r(69393),c=TypeError,h=u("toPrimitive");t.exports=function(t,e){if(!n(t)||s(t))return t;var r,u=a(t,h);if(u){if(void 0===e&&(e="default"),r=i(u,t,e),!n(r)||s(r))return r;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),o(t,e)}},15446:function(t,e,r){"use strict";var i=r(87403),n=r(65017);t.exports=function(t){var e=i(t,"string");return n(e)?e:e+""}},62233:function(t,e,r){"use strict";var i={};i[r(69393)("toStringTag")]="z",t.exports="[object z]"===String(i)},26092:function(t,e,r){"use strict";var i=r(36420),n=String;t.exports=function(t){if("Symbol"===i(t))throw new TypeError("Cannot convert a Symbol value to a string");return n(t)}},86853:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},56688:function(t,e,r){"use strict";var i=r(51215),n=0,s=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++n+s,36)}},87563:function(t,e,r){"use strict";var i=r(84405);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},46654:function(t,e,r){"use strict";var i=r(95743),n=r(92485);t.exports=i&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},24001:function(t){"use strict";var e=TypeError;t.exports=function(t,r){if(t1?arguments[1]:void 0;return u?o(this,t,e)||0:s(this,t,e)}})},1702:function(t,e,r){"use strict";var i=r(60326),n=r(72099),s=r(4639),a=r(38029),o=r(28603).f,u=r(5718),c=r(51061),h=r(24478),l=r(95743),f="Array Iterator",g=a.set,p=a.getterFor(f);t.exports=u(Array,"Array",(function(t,e){g(this,{type:f,target:i(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(r,!1);case"values":return c(e[r],!1)}return c([r,e[r]],!1)}),"values");var d=s.Arguments=s.Array;if(n("keys"),n("values"),n("entries"),!h&&l&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}},93307:function(t,e,r){"use strict";var i=r(74717),n=r(86669).left,s=r(13030),a=r(53368);i({target:"Array",proto:!0,forced:!r(66569)&&a>79&&a<83||!s("reduce")},{reduce:function(t){var e=arguments.length;return n(this,t,e,e>1?arguments[1]:void 0)}})},2663:function(t,e,r){"use strict";var i=r(74717),n=r(51215),s=r(88794),a=n([].reverse),o=[1,2];i({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return s(this)&&(this.length=this.length),a(this)}})},67240:function(t,e,r){"use strict";var i=r(74717),n=r(83187),s=r(72015),a=r(48455),o=r(99082),u=r(47589);i({target:"Promise",stat:!0,forced:r(85969)},{all:function(t){var e=this,r=a.f(e),i=r.resolve,c=r.reject,h=o((function(){var r=s(e.resolve),a=[],o=0,h=1;u(t,(function(t){var s=o++,u=!1;h++,n(r,e,t).then((function(t){u||(u=!0,a[s]=t,--h||i(a))}),c)})),--h||i(a)}));return h.error&&c(h.value),r.promise}})},36018:function(t,e,r){"use strict";var i=r(74717),n=r(24478),s=r(51378).CONSTRUCTOR,a=r(85676),o=r(3571),u=r(66638),c=r(36520),h=a&&a.prototype;if(i({target:"Promise",proto:!0,forced:s,real:!0},{catch:function(t){return this.then(void 0,t)}}),!n&&u(a)){var l=o("Promise").prototype.catch;h.catch!==l&&c(h,"catch",l,{unsafe:!0})}},32232:function(t,e,r){"use strict";var i,n,s,a=r(74717),o=r(24478),u=r(66569),c=r(55201),h=r(83187),l=r(36520),f=r(60933),g=r(3879),p=r(42449),d=r(72015),v=r(66638),y=r(64480),m=r(95800),x=r(29242),b=r(62050).set,S=r(56135),w=r(30673),T=r(99082),O=r(86513),A=r(38029),C=r(85676),E=r(51378),P=r(48455),N="Promise",M=E.CONSTRUCTOR,R=E.REJECTION_EVENT,_=E.SUBCLASSING,V=A.getterFor(N),k=A.set,I=C&&C.prototype,L=C,D=I,B=c.TypeError,j=c.document,F=c.process,z=P.f,U=z,H=!!(j&&j.createEvent&&c.dispatchEvent),X="unhandledrejection",Y=function(t){var e;return!(!y(t)||!v(e=t.then))&&e},W=function(t,e){var r,i,n,s=e.value,a=1===e.state,o=a?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{o?(a||(2===e.rejection&&Z(e),e.rejection=1),!0===o?r=s:(l&&l.enter(),r=o(s),l&&(l.exit(),n=!0)),r===t.promise?c(new B("Promise-chain cycle")):(i=Y(r))?h(i,r,u,c):u(r)):c(s)}catch(t){l&&!n&&l.exit(),c(t)}},q=function(t,e){t.notified||(t.notified=!0,S((function(){for(var r,i=t.reactions;r=i.get();)W(r,t);t.notified=!1,e&&!t.rejection&&Q(t)})))},G=function(t,e,r){var i,n;H?((i=j.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),c.dispatchEvent(i)):i={promise:e,reason:r},!R&&(n=c["on"+t])?n(i):t===X&&w("Unhandled promise rejection",r)},Q=function(t){h(b,c,(function(){var e,r=t.facade,i=t.value;if($(t)&&(e=T((function(){u?F.emit("unhandledRejection",i,r):G(X,r,i)})),t.rejection=u||$(t)?2:1,e.error))throw e.value}))},$=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){h(b,c,(function(){var e=t.facade;u?F.emit("rejectionHandled",e):G("rejectionhandled",e,t.value)}))},K=function(t,e,r){return function(i){t(e,i,r)}},J=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,q(t,!0))},tt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new B("Promise can't be resolved itself");var i=Y(e);i?S((function(){var r={done:!1};try{h(i,e,K(tt,r,t),K(J,r,t))}catch(e){J(r,e,t)}})):(t.value=e,t.state=1,q(t,!1))}catch(e){J({done:!1},e,t)}}};if(M&&(D=(L=function(t){m(this,D),d(t),h(i,this);var e=V(this);try{t(K(tt,e),K(J,e))}catch(t){J(e,t)}}).prototype,(i=function(t){k(this,{type:N,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:null})}).prototype=l(D,"then",(function(t,e){var r=V(this),i=z(x(this,L));return r.parent=!0,i.ok=!v(t)||t,i.fail=v(e)&&e,i.domain=u?F.domain:void 0,0===r.state?r.reactions.add(i):S((function(){W(i,r)})),i.promise})),n=function(){var t=new i,e=V(t);this.promise=t,this.resolve=K(tt,e),this.reject=K(J,e)},P.f=z=function(t){return t===L||undefined===t?new n(t):U(t)},!o&&v(C)&&I!==Object.prototype)){s=I.then,_||l(I,"then",(function(t,e){var r=this;return new L((function(t,e){h(s,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete I.constructor}catch(t){}f&&f(I,D)}a({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:L}),g(L,N,!1,!0),p(N)},48072:function(t,e,r){"use strict";r(32232),r(67240),r(36018),r(33870),r(74039),r(92836)},33870:function(t,e,r){"use strict";var i=r(74717),n=r(83187),s=r(72015),a=r(48455),o=r(99082),u=r(47589);i({target:"Promise",stat:!0,forced:r(85969)},{race:function(t){var e=this,r=a.f(e),i=r.reject,c=o((function(){var a=s(e.resolve);u(t,(function(t){n(a,e,t).then(r.resolve,i)}))}));return c.error&&i(c.value),r.promise}})},74039:function(t,e,r){"use strict";var i=r(74717),n=r(48455);i({target:"Promise",stat:!0,forced:r(51378).CONSTRUCTOR},{reject:function(t){var e=n.f(this);return(0,e.reject)(t),e.promise}})},92836:function(t,e,r){"use strict";var i=r(74717),n=r(3571),s=r(24478),a=r(85676),o=r(51378).CONSTRUCTOR,u=r(91272),c=n("Promise"),h=s&&!o;i({target:"Promise",stat:!0,forced:s||o},{resolve:function(t){return u(h&&this===c?a:this,t)}})},17733:function(t,e,r){"use strict";var i=r(74717),n=r(68658);i({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},88222:function(t,e,r){"use strict";var i=r(70492).PROPER,n=r(36520),s=r(99016),a=r(26092),o=r(92485),u=r(60866),c="toString",h=RegExp.prototype,l=h[c],f=o((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),g=i&&l.name!==c;(f||g)&&n(h,c,(function(){var t=s(this);return"/"+a(t.source)+"/"+a(u(t))}),{unsafe:!0})},21271:function(t,e,r){"use strict";var i,n=r(74717),s=r(48327),a=r(89310).f,o=r(80654),u=r(26092),c=r(65893),h=r(22341),l=r(58031),f=r(24478),g=s("".slice),p=Math.min,d=l("endsWith");n({target:"String",proto:!0,forced:!!(f||d||(i=a(String.prototype,"endsWith"),!i||i.writable))&&!d},{endsWith:function(t){var e=u(h(this));c(t);var r=arguments.length>1?arguments[1]:void 0,i=e.length,n=void 0===r?i:p(o(r),i),s=u(t);return g(e,n-s.length,n)===s}})},75589:function(t,e,r){"use strict";var i=r(74717),n=r(51215),s=r(65893),a=r(22341),o=r(26092),u=r(58031),c=n("".indexOf);i({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(o(a(this)),o(s(t)),arguments.length>1?arguments[1]:void 0)}})},53071:function(t,e,r){"use strict";var i=r(83187),n=r(63248),s=r(99016),a=r(75305),o=r(80654),u=r(26092),c=r(22341),h=r(2847),l=r(24235),f=r(44960);n("match",(function(t,e,r){return[function(e){var r=c(this),n=a(e)?void 0:h(e,t);return n?i(n,e,r):new RegExp(e)[t](u(r))},function(t){var i=s(this),n=u(t),a=r(e,i,n);if(a.done)return a.value;if(!i.global)return f(i,n);var c=i.unicode;i.lastIndex=0;for(var h,g=[],p=0;null!==(h=f(i,n));){var d=u(h[0]);g[p]=d,""===d&&(i.lastIndex=l(n,o(i.lastIndex),c)),p++}return 0===p?null:g}]}))},32531:function(t,e,r){"use strict";var i=r(42838),n=r(83187),s=r(51215),a=r(63248),o=r(92485),u=r(99016),c=r(66638),h=r(75305),l=r(90190),f=r(80654),g=r(26092),p=r(22341),d=r(24235),v=r(2847),y=r(83647),m=r(44960),x=r(69393)("replace"),b=Math.max,S=Math.min,w=s([].concat),T=s([].push),O=s("".indexOf),A=s("".slice),C="$0"==="a".replace(/./,"$0"),E=!!/./[x]&&""===/./[x]("a","$0");a("replace",(function(t,e,r){var s=E?"$":"$0";return[function(t,r){var i=p(this),s=h(t)?void 0:v(t,x);return s?n(s,t,i,r):n(e,g(i),t,r)},function(t,n){var a=u(this),o=g(t);if("string"==typeof n&&-1===O(n,s)&&-1===O(n,"$<")){var h=r(e,a,o,n);if(h.done)return h.value}var p=c(n);p||(n=g(n));var v,x=a.global;x&&(v=a.unicode,a.lastIndex=0);for(var C,E=[];null!==(C=m(a,o))&&(T(E,C),x);){""===g(C[0])&&(a.lastIndex=d(o,f(a.lastIndex),v))}for(var P,N="",M=0,R=0;R=M&&(N+=A(o,M,k)+_,M=k+V.length)}return N+A(o,M)}]}),!!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!C||E)},65320:function(t,e,r){"use strict";var i=r(83187),n=r(51215),s=r(63248),a=r(99016),o=r(75305),u=r(22341),c=r(29242),h=r(24235),l=r(80654),f=r(26092),g=r(2847),p=r(44960),d=r(67247),v=r(92485),y=d.UNSUPPORTED_Y,m=Math.min,x=n([].push),b=n("".slice),S=!v((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),w="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;s("split",(function(t,e,r){var n="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:i(e,this,t,r)}:e;return[function(e,r){var s=u(this),a=o(e)?void 0:g(e,t);return a?i(a,e,s,r):i(n,f(s),e,r)},function(t,i){var s=a(this),o=f(t);if(!w){var u=r(n,s,o,i,n!==e);if(u.done)return u.value}var g=c(s,RegExp),d=s.unicode,v=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(y?"g":"y"),S=new g(y?"^(?:"+s.source+")":s,v),T=void 0===i?4294967295:i>>>0;if(0===T)return[];if(0===o.length)return null===p(S,o)?[o]:[];for(var O=0,A=0,C=[];A1?arguments[1]:void 0,e.length)),i=u(t);return g(e,r,r+i.length)===i}})},34403:function(t,e,r){"use strict";var i=r(74717),n=r(29835).trim;i({target:"String",proto:!0,forced:r(30377)("trim")},{trim:function(){return n(this)}})},40588:function(t,e,r){"use strict";var i=r(55201),n=r(3417),s=r(30835),a=r(1702),o=r(78842),u=r(3879),c=r(69393)("iterator"),h=a.values,l=function(t,e){if(t){if(t[c]!==h)try{o(t,c,h)}catch(e){t[c]=h}if(u(t,e,!0),n[e])for(var r in a)if(t[r]!==a[r])try{o(t,r,a[r])}catch(e){t[r]=a[r]}}};for(var f in n)l(i[f]&&i[f].prototype,f);l(s,"DOMTokenList")},46949:function(t,e,r){"use strict";r.r(e),r.d(e,{AElement:function(){return ce},AnimateColorElement:function(){return ie},AnimateElement:function(){return re},AnimateTransformElement:function(){return ne},BoundingBox:function(){return Vt},CB1:function(){return rt},CB2:function(){return it},CB3:function(){return nt},CB4:function(){return st},Canvg:function(){return Fe},CircleElement:function(){return Ht},ClipPathElement:function(){return Ce},DefsElement:function(){return $t},DescElement:function(){return Ve},Document:function(){return De},Element:function(){return Et},EllipseElement:function(){return Xt},FeColorMatrixElement:function(){return Te},FeCompositeElement:function(){return Me},FeDropShadowElement:function(){return Pe},FeGaussianBlurElement:function(){return Re},FeMorphologyElement:function(){return Ne},FilterElement:function(){return Ee},Font:function(){return _t},FontElement:function(){return se},FontFaceElement:function(){return ae},GElement:function(){return Zt},GlyphElement:function(){return Dt},GradientElement:function(){return Kt},ImageElement:function(){return pe},LineElement:function(){return Yt},LinearGradientElement:function(){return Jt},MarkerElement:function(){return Qt},MaskElement:function(){return Oe},Matrix:function(){return wt},MissingGlyphElement:function(){return oe},Mouse:function(){return ft},PSEUDO_ZERO:function(){return K},Parser:function(){return mt},PathElement:function(){return Lt},PathParser:function(){return kt},PatternElement:function(){return Gt},Point:function(){return lt},PolygonElement:function(){return qt},PolylineElement:function(){return Wt},Property:function(){return ct},QB1:function(){return at},QB2:function(){return ot},QB3:function(){return ut},RadialGradientElement:function(){return te},RectElement:function(){return Ut},RenderedElement:function(){return It},Rotate:function(){return bt},SVGElement:function(){return zt},SVGFontLoader:function(){return ve},Scale:function(){return St},Screen:function(){return dt},Skew:function(){return Tt},SkewX:function(){return Ot},SkewY:function(){return At},StopElement:function(){return ee},StyleElement:function(){return ye},SymbolElement:function(){return de},TRefElement:function(){return ue},TSpanElement:function(){return jt},TextElement:function(){return Bt},TextPathElement:function(){return fe},TitleElement:function(){return _e},Transform:function(){return Ct},Translate:function(){return xt},UnknownElement:function(){return Pt},UseElement:function(){return me},ViewPort:function(){return ht},compressSpaces:function(){return I},default:function(){return Fe},getSelectorSpecificity:function(){return Z},normalizeAttributeName:function(){return F},normalizeColor:function(){return U},parseExternalUrl:function(){return z},presets:function(){return k},toNumbers:function(){return B},trimLeft:function(){return L},trimRight:function(){return D},vectorMagnitude:function(){return J},vectorsAngle:function(){return et},vectorsRatio:function(){return tt}});r(48072);var i=r(20959),n=(r(53071),r(32531),r(56090),r(1702),r(40588),r(80962)),s=(r(93307),r(21271),r(65320),r(32772)),a=(r(34403),r(45810)),o=(r(63469),r(75589),r(2663),function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)});function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function c(t,e){var r=t[0],i=t[1];return[r*Math.cos(e)-i*Math.sin(e),r*Math.sin(e)+i*Math.cos(e)]}function h(){for(var t=[],e=0;et.phi1&&(t.phi2-=2*l),1===t.sweepFlag&&t.phi2i)return[];if(0===i)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var n=Math.sqrt(i);return[[(t*r+e*n)/(t*t+e*e),(e*r-t*n)/(t*t+e*e)],[(t*r-e*n)/(t*t+e*e),(e*r+t*n)/(t*t+e*e)]]}var p,d=Math.PI/180;function v(t,e,r){return(1-r)*t+r*e}function y(t,e,r,i){return t+Math.cos(i/180*l)*e+Math.sin(i/180*l)*r}function m(t,e,r,i){var n=1e-6,s=e-t,a=r-e,o=3*s+3*(i-r)-6*a,u=6*(a-s),c=3*s;return Math.abs(o)v&&(n.sweepFlag=+!n.sweepFlag),n}))}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),h(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return n((function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),n((function(i,n,s,a,o){if(isNaN(a)&&!(i.type&A.MOVE_TO))throw new Error("path must start with moveto");return e&&i.type&A.HORIZ_LINE_TO&&(i.type=A.LINE_TO,i.y=i.relative?0:s),r&&i.type&A.VERT_LINE_TO&&(i.type=A.LINE_TO,i.x=i.relative?0:n),t&&i.type&A.CLOSE_PATH&&(i.type=A.LINE_TO,i.x=i.relative?a-n:a,i.y=i.relative?o-s:o),i.type&A.ARC&&(0===i.rX||0===i.rY)&&(i.type=A.LINE_TO,delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag),i}))},t.NORMALIZE_ST=r,t.QT_TO_C=i,t.INFO=n,t.SANITIZE=function(t){void 0===t&&(t=0),h(t);var e=NaN,r=NaN,i=NaN,s=NaN;return n((function(n,a,o,u,c){var h=Math.abs,l=!1,f=0,g=0;if(n.type&A.SMOOTH_CURVE_TO&&(f=isNaN(e)?0:a-e,g=isNaN(r)?0:o-r),n.type&(A.CURVE_TO|A.SMOOTH_CURVE_TO)?(e=n.relative?a+n.x2:n.x2,r=n.relative?o+n.y2:n.y2):(e=NaN,r=NaN),n.type&A.SMOOTH_QUAD_TO?(i=isNaN(i)?a:2*a-i,s=isNaN(s)?o:2*o-s):n.type&A.QUAD_TO?(i=n.relative?a+n.x1:n.x1,s=n.relative?o+n.y1:n.y2):(i=NaN,s=NaN),n.type&A.LINE_COMMANDS||n.type&A.ARC&&(0===n.rX||0===n.rY||!n.lArcFlag)||n.type&A.CURVE_TO||n.type&A.SMOOTH_CURVE_TO||n.type&A.QUAD_TO||n.type&A.SMOOTH_QUAD_TO){var p=void 0===n.x?0:n.relative?n.x:n.x-a,d=void 0===n.y?0:n.relative?n.y:n.y-o;f=isNaN(i)?void 0===n.x1?f:n.relative?n.x:n.x1-a:i-a,g=isNaN(s)?void 0===n.y1?g:n.relative?n.y:n.y1-o:s-o;var v=void 0===n.x2?0:n.relative?n.x:n.x2-a,y=void 0===n.y2?0:n.relative?n.y:n.y2-o;h(p)<=t&&h(d)<=t&&h(f)<=t&&h(g)<=t&&h(v)<=t&&h(y)<=t&&(l=!0)}return n.type&A.CLOSE_PATH&&h(a-u)<=t&&h(o-c)<=t&&(l=!0),l?[]:n}))},t.MATRIX=s,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),h(t,e,r);var i=Math.sin(t),n=Math.cos(t);return s(n,i,-i,n,e-e*n+r*i,r-e*i-r*n)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),h(t,e),s(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),h(t,e),s(t,0,0,e,0,0)},t.SKEW_X=function(t){return h(t),s(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return h(t),s(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),h(t),s(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),h(t),s(1,0,0,-1,0,t)},t.A_TO_C=function(){return n((function(t,e,r){return A.ARC===t.type?function(t,e,r){var i,n,s,a;t.cX||f(t,e,r);for(var o=Math.min(t.phi1,t.phi2),u=Math.max(t.phi1,t.phi2)-o,h=Math.ceil(u/90),l=new Array(h),g=e,p=r,y=0;yo.maxX&&(o.maxX=t),to.maxY&&(o.maxY=t),tV&&u(x(r,n.x1,n.x2,n.x,V));for(var p=0,d=m(i,n.y1,n.y2,n.y);pV&&c(x(i,n.y1,n.y2,n.y,V))}if(n.type&A.ARC){u(n.x),c(n.y),f(n,r,i);for(var v=n.xRot/180*Math.PI,b=Math.cos(v)*n.rX,S=Math.sin(v)*n.rX,w=-Math.sin(v)*n.rY,T=Math.cos(v)*n.rY,O=n.phi1n.phi2?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],C=O[0],E=O[1],P=function(t){var e=t[0],r=t[1],i=180*Math.atan2(r,e)/Math.PI;return iC&&VC&&Vu)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+n+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+n+'"');this.curArgs.push(u),this.curArgs.length===C[this.curCommandType]&&(A.HORIZ_LINE_TO===this.curCommandType?i({type:A.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):A.VERT_LINE_TO===this.curCommandType?i({type:A.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===A.MOVE_TO||this.curCommandType===A.LINE_TO||this.curCommandType===A.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),A.MOVE_TO===this.curCommandType&&(this.curCommandType=A.LINE_TO)):this.curCommandType===A.CURVE_TO?i({type:A.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===A.SMOOTH_CURVE_TO?i({type:A.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===A.QUAD_TO?i({type:A.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===A.ARC&&i({type:A.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!w(s))if(","===s&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==s&&"-"!==s&&"."!==s)if(o)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+n+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+n+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==s&&"Z"!==s)if("h"===s||"H"===s)this.curCommandType=A.HORIZ_LINE_TO,this.curCommandRelative="h"===s;else if("v"===s||"V"===s)this.curCommandType=A.VERT_LINE_TO,this.curCommandRelative="v"===s;else if("m"===s||"M"===s)this.curCommandType=A.MOVE_TO,this.curCommandRelative="m"===s;else if("l"===s||"L"===s)this.curCommandType=A.LINE_TO,this.curCommandRelative="l"===s;else if("c"===s||"C"===s)this.curCommandType=A.CURVE_TO,this.curCommandRelative="c"===s;else if("s"===s||"S"===s)this.curCommandType=A.SMOOTH_CURVE_TO,this.curCommandRelative="s"===s;else if("q"===s||"Q"===s)this.curCommandType=A.QUAD_TO,this.curCommandRelative="q"===s;else if("t"===s||"T"===s)this.curCommandType=A.SMOOTH_QUAD_TO,this.curCommandRelative="t"===s;else{if("a"!==s&&"A"!==s)throw new SyntaxError('Unexpected character "'+s+'" at index '+n+".");this.curCommandType=A.ARC,this.curCommandRelative="a"===s}else e.push({type:A.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal="."===s}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,r){void 0===r&&(r=[]);for(var i=0,n=Object.getPrototypeOf(this).parse.call(this,e);i>>S;if(o[x+3]=Z,0!==Z){var K=255/Z;o[x]=(j*b>>>S)*K,o[x+1]=(F*b>>>S)*K,o[x+2]=(z*b>>>S)*K}else o[x]=o[x+1]=o[x+2]=0;j-=I,F-=L,z-=D,U-=B,I-=v.r,L-=v.g,D-=v.b,B-=v.a;var J=$+s+1;J=m+(J>>S,ct>0?(ct=255/ct,o[Et]=(pt*b>>>S)*ct,o[Et+1]=(dt*b>>>S)*ct,o[Et+2]=(vt*b>>>S)*ct):o[Et]=o[Et+1]=o[Et+2]=0,pt-=ht,dt-=lt,vt-=ft,yt-=gt,ht-=v.r,lt-=v.g,ft-=v.b,gt-=v.a,Et=st+((Et=Ct+l)0&&void 0!==arguments[0]?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas(t,e){return new OffscreenCanvas(t,e)},createImage(t){return(0,i.Z)((function*(){var e=yield fetch(t),r=yield e.blob();return yield createImageBitmap(r)}))()}};return"undefined"==typeof DOMParser&&void 0!==t||Reflect.deleteProperty(e,"DOMParser"),e},node:function(t){var{DOMParser:e,canvas:r,fetch:i}=t;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:i,createCanvas:r.createCanvas,createImage:r.loadImage}}});function I(t){return t.replace(/(?!\u3000)\s+/gm," ")}function L(t){return t.replace(/^[\n \t]+/,"")}function D(t){return t.replace(/[\n \t]+$/,"")}function B(t){return((t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var j=/^[A-Z-]+$/;function F(t){return j.test(t)?t.toLowerCase():t}function z(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}function U(t){if(!t.startsWith("rgb"))return t;var e=3;return t.replace(/\d+(\.\d+)?/g,((t,r)=>e--&&r?String(Math.round(parseFloat(t))):t))}var H=/(\[[^\]]+\])/g,X=/(#[^\s+>~.[:]+)/g,Y=/(\.[^\s+>~.[:]+)/g,W=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,q=/(:[\w-]+\([^)]*\))/gi,G=/(:[^\s+>~.[:]+)/g,Q=/([^\s+>~.[:]+)/g;function $(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}function Z(t){var e=[0,0,0],r=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),i=0;return[r,i]=$(r,H),e[1]+=i,[r,i]=$(r,X),e[0]+=i,[r,i]=$(r,Y),e[1]+=i,[r,i]=$(r,W),e[2]+=i,[r,i]=$(r,q),e[1]+=i,[r,i]=$(r,G),e[1]+=i,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[r,i]=$(r,Q),e[2]+=i,e.join("")}var K=1e-8;function J(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function tt(t,e){return(t[0]*e[0]+t[1]*e[1])/(J(t)*J(e))}function et(t,e){return(t[0]*e[1]0&&void 0!==arguments[0]?arguments[0]:" ",{document:e,name:r}=this;return I(this.getString()).trim().split(t).map((t=>new ct(e,r,t)))}hasValue(t){var{value:e}=this;return null!==e&&""!==e&&(t||0!==e)&&void 0!==e}isString(t){var{value:e}=this,r="string"==typeof e;return r&&t?t.test(e):r}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}setValue(t){return this.value=t,this}getValue(t){return void 0===t||this.hasValue()?this.value:t}getNumber(t){if(!this.hasValue())return void 0===t?0:parseFloat(t);var{value:e}=this,r=parseFloat(e);return this.isString(/%$/)&&(r/=100),r}getString(t){return void 0===t||this.hasValue()?void 0===this.value?"":String(this.value):String(t)}getColor(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=U(e),this.value=e),e}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[r,i]="boolean"==typeof t?[void 0,t]:[t],{viewPort:n}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&i:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(r);default:var s=this.getNumber();return e&&s<1?s*n.computeSize(r):s}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var t=this.getString(),e=/#([^)'"]+)/.exec(t);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}getFillStyleDefinition(t,e){var r=this.getDefinition();if(!r)return null;if("function"==typeof r.createGradient)return r.createGradient(this.document.ctx,t,e);if("function"==typeof r.createPattern){if(r.getHrefAttribute().hasValue()){var i=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&r.getAttribute("patternTransform",!0).setValue(i.value)}return r.createPattern(this.document.ctx,t,e)}return null}getTextBaseline(){return this.hasValue()?ct.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var e=this.getColor(),r=e.length,i=0,n=0;n1&&void 0!==arguments[1]?arguments[1]:0,[r=e,i=e]=B(t);return new lt(r,i)}static parseScale(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[r=e,i=r]=B(t);return new lt(r,i)}static parsePath(t){for(var e=B(t),r=e.length,i=[],n=0;n0}runEvents(){if(this.working){var{screen:t,events:e,eventElements:r}=this,{style:i}=t.ctx.canvas;i&&(i.cursor=""),e.forEach(((t,e)=>{for(var{run:i}=t,n=r[e];n;)i(n),n=n.parent})),this.events=[],this.eventElements=[]}}checkPath(t,e){if(this.working&&e){var{events:r,eventElements:i}=this;r.forEach(((r,n)=>{var{x:s,y:a}=r;!i[n]&&e.isPointInPath&&e.isPointInPath(s,a)&&(i[n]=t)}))}}checkBoundingBox(t,e){if(this.working&&e){var{events:r,eventElements:i}=this;r.forEach(((r,n)=>{var{x:s,y:a}=r;!i[n]&&e.isPointInBox(s,a)&&(i[n]=t)}))}}mapXY(t,e){for(var{window:r,ctx:i}=this.screen,n=new lt(t,e),s=i.canvas;s;)n.x-=s.offsetLeft,n.y-=s.offsetTop,s=s.offsetParent;return r.scrollX&&(n.x+=r.scrollX),r.scrollY&&(n.y+=r.scrollY),n}onClick(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:e,y:r,run(t){t.onClick&&t.onClick()}})}onMouseMove(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:e,y:r,run(t){t.onMouseMove&&t.onMouseMove()}})}}var gt="undefined"!=typeof window?window:null,pt="undefined"!=typeof fetch?fetch.bind(void 0):null;class dt{constructor(t){var{fetch:e=pt,window:r=gt}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new ht,this.mouse=new ft(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=e}wait(t){this.waits.push(t)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var t=this.waits.every((t=>t()));return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}setDefaults(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}setViewBox(t){var{document:e,ctx:r,aspectRatio:i,width:n,desiredWidth:s,height:a,desiredHeight:o,minX:u=0,minY:c=0,refX:h,refY:l,clip:f=!1,clipX:g=0,clipY:p=0}=t,d=I(i).replace(/^defer\s/,""),[v,y]=d.split(" "),m=v||"xMidYMid",x=y||"meet",b=n/s,S=a/o,w=Math.min(b,S),T=Math.max(b,S),O=s,A=o;"meet"===x&&(O*=w,A*=w),"slice"===x&&(O*=T,A*=T);var C=new ct(e,"refX",h),E=new ct(e,"refY",l),P=C.hasValue()&&E.hasValue();if(P&&r.translate(-w*C.getPixels("x"),-w*E.getPixels("y")),f){var N=w*g,M=w*p;r.beginPath(),r.moveTo(N,M),r.lineTo(n,M),r.lineTo(n,a),r.lineTo(N,a),r.closePath(),r.clip()}if(!P){var R="meet"===x&&w===S,_="slice"===x&&T===S,V="meet"===x&&w===b,k="slice"===x&&T===b;m.startsWith("xMid")&&(R||_)&&r.translate(n/2-O/2,0),m.endsWith("YMid")&&(V||k)&&r.translate(0,a/2-A/2),m.startsWith("xMax")&&(R||_)&&r.translate(n-O,0),m.endsWith("YMax")&&(V||k)&&r.translate(0,a-A)}switch(!0){case"none"===m:r.scale(b,S);break;case"meet"===x:r.scale(w,w);break;case"slice"===x:r.scale(T,T)}r.translate(-u,-c)}start(t){var{enableRedraw:e=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:n=!1,ignoreClear:a=!1,forceRedraw:o,scaleWidth:u,scaleHeight:c,offsetX:h,offsetY:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:f,mouse:g}=this,p=1e3/f;if(this.frameDuration=p,this.readyPromise=new Promise((t=>{this.resolveReady=t})),this.isReady()&&this.render(t,n,a,u,c,h,l),e){var d=Date.now(),v=d,y=0,m=()=>{d=Date.now(),(y=d-v)>=p&&(v=d-y%p,this.shouldUpdate(i,o)&&(this.render(t,n,a,u,c,h,l),g.runEvents())),this.intervalId=s(m)};r||g.start(),this.intervalId=s(m)}}stop(){this.intervalId&&(s.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(t,e){if(!t){var{frameDuration:r}=this;if(this.animations.reduce(((t,e)=>e.update(r)||t),!1))return!0}return!("function"!=typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}render(t,e,r,i,n,s,a){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:u,viewPort:c,ctx:h,isFirstRender:l}=this,f=h.canvas;c.clear(),f.width&&f.height?c.setCurrent(f.width,f.height):c.setCurrent(o,u);var g=t.getStyle("width"),p=t.getStyle("height");!e&&(l||"number"!=typeof i&&"number"!=typeof n)&&(g.hasValue()&&(f.width=g.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),p.hasValue()&&(f.height=p.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var d=f.clientWidth||f.width,v=f.clientHeight||f.height;if(e&&g.hasValue()&&p.hasValue()&&(d=g.getPixels("x"),v=p.getPixels("y")),c.setCurrent(d,v),"number"==typeof s&&t.getAttribute("x",!0).setValue(s),"number"==typeof a&&t.getAttribute("y",!0).setValue(a),"number"==typeof i||"number"==typeof n){var y=B(t.getAttribute("viewBox").getString()),m=0,x=0;if("number"==typeof i){var b=t.getStyle("width");b.hasValue()?m=b.getPixels("x")/i:isNaN(y[2])||(m=y[2]/i)}if("number"==typeof n){var S=t.getStyle("height");S.hasValue()?x=S.getPixels("y")/n:isNaN(y[3])||(x=y[3]/n)}m||(m=x),x||(x=m),t.getAttribute("width",!0).setValue(i),t.getAttribute("height",!0).setValue(n);var w=t.getStyle("transform",!0,!0);w.setValue("".concat(w.getString()," scale(").concat(1/m,", ").concat(1/x,")"))}r||h.clearRect(0,0,d,v),t.render(h),l&&(this.isFirstRender=!1)}}dt.defaultWindow=gt,dt.defaultFetch=pt;var{defaultFetch:vt}=dt,yt="undefined"!=typeof DOMParser?DOMParser:null;class mt{constructor(){var{fetch:t=vt,DOMParser:e=yt}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return(0,i.Z)((function*(){return t.startsWith("<")?e.parseFromString(t):e.load(t)}))()}parseFromString(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,"image/svg+xml"))}catch(r){return this.checkDocument(e.parseFromString(t,"text/xml"))}}checkDocument(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}load(t){var e=this;return(0,i.Z)((function*(){var r=yield e.fetch(t),i=yield r.text();return e.parseFromString(i)}))()}}class xt{constructor(t,e){this.type="translate",this.point=null,this.point=lt.parse(e)}apply(t){var{x:e,y:r}=this.point;t.translate(e||0,r||0)}unapply(t){var{x:e,y:r}=this.point;t.translate(-1*e||0,-1*r||0)}applyToPoint(t){var{x:e,y:r}=this.point;t.applyTransform([1,0,0,1,e||0,r||0])}}class bt{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=B(e);this.angle=new ct(t,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(t){var{cx:e,cy:r,originX:i,originY:n,angle:s}=this,a=e+i.getPixels("x"),o=r+n.getPixels("y");t.translate(a,o),t.rotate(s.getRadians()),t.translate(-a,-o)}unapply(t){var{cx:e,cy:r,originX:i,originY:n,angle:s}=this,a=e+i.getPixels("x"),o=r+n.getPixels("y");t.translate(a,o),t.rotate(-1*s.getRadians()),t.translate(-a,-o)}applyToPoint(t){var{cx:e,cy:r,angle:i}=this,n=i.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}class St{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=lt.parseScale(e);0!==i.x&&0!==i.y||(i.x=K,i.y=K),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:e,y:r},originX:i,originY:n}=this,s=i.getPixels("x"),a=n.getPixels("y");t.translate(s,a),t.scale(e,r||e),t.translate(-s,-a)}unapply(t){var{scale:{x:e,y:r},originX:i,originY:n}=this,s=i.getPixels("x"),a=n.getPixels("y");t.translate(s,a),t.scale(1/e,1/r||e),t.translate(-s,-a)}applyToPoint(t){var{x:e,y:r}=this.scale;t.applyTransform([e||0,0,0,r||0,0,0])}}class wt{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=B(e),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:e,originY:r,matrix:i}=this,n=e.getPixels("x"),s=r.getPixels("y");t.translate(n,s),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),t.translate(-n,-s)}unapply(t){var{originX:e,originY:r,matrix:i}=this,n=i[0],s=i[2],a=i[4],o=i[1],u=i[3],c=i[5],h=1/(n*(1*u-0*c)-s*(1*o-0*c)+a*(0*o-0*u)),l=e.getPixels("x"),f=r.getPixels("y");t.translate(l,f),t.transform(h*(1*u-0*c),h*(0*c-1*o),h*(0*a-1*s),h*(1*n-0*a),h*(s*c-a*u),h*(a*o-n*c)),t.translate(-l,-f)}applyToPoint(t){t.applyTransform(this.matrix)}}class Tt extends wt{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new ct(t,"angle",e)}}class Ot extends Tt{constructor(t,e,r){super(t,e,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class At extends Tt{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}class Ct{constructor(t,e,r){this.document=t,this.transforms=[];var i=function(t){return I(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(e);i.forEach((t=>{if("none"!==t){var[e,i]=function(t){var[e,r]=t.split("(");return[e.trim(),r.trim().replace(")","")]}(t),n=Ct.transformTypes[e];void 0!==n&&this.transforms.push(new n(this.document,i,r))}}))}static fromElement(t,e){var r=e.getStyle("transform",!1,!0),[i,n=i]=e.getStyle("transform-origin",!1,!0).split(),s=[i,n];return r.hasValue()?new Ct(t,r.getString(),s):null}apply(t){for(var{transforms:e}=this,r=e.length,i=0;i=0;r--)e[r].unapply(t)}applyToPoint(t){for(var{transforms:e}=this,r=e.length,i=0;i2&&void 0!==arguments[2]&&arguments[2];if(this.document=t,this.node=e,this.captureTextNodes=r,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],e&&1===e.nodeType){if(Array.from(e.attributes).forEach((e=>{var r=F(e.nodeName);this.attributes[r]=new ct(t,r,e.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map((t=>t.trim()));i.forEach((e=>{if(e){var[r,i]=e.split(":").map((t=>t.trim()));this.styles[r]=new ct(t,r,i)}}))}var{definitions:n}=t,s=this.getAttribute("id");s.hasValue()&&(n[s.getString()]||(n[s.getString()]=this)),Array.from(e.childNodes).forEach((e=>{if(1===e.nodeType)this.addChild(e);else if(r&&(3===e.nodeType||4===e.nodeType)){var i=t.createTextNode(e);i.getText().length>0&&this.addChild(i)}}))}}getAttribute(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.attributes[t];if(!r&&e){var i=new ct(this.document,t,"");return this.attributes[t]=i,i}return r||ct.empty(this.document)}getHrefAttribute(){for(var t in this.attributes)if("href"===t||t.endsWith(":href"))return this.attributes[t];return ct.empty(this.document)}getStyle(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.styles[t];if(i)return i;var n=this.getAttribute(t);if(null!=n&&n.hasValue())return this.styles[t]=n,n;if(!r){var{parent:s}=this;if(s){var a=s.getStyle(t);if(null!=a&&a.hasValue())return a}}if(e){var o=new ct(this.document,t,"");return this.styles[t]=o,o}return i||ct.empty(this.document)}render(t){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(t.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&(this.applyEffects(t),e.apply(t,this))}else if("none"!==this.getStyle("filter").getValue("none")){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}setContext(t){}applyEffects(t){var e=Ct.fromElement(this.document,this);e&&e.apply(t);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(t)}}clearContext(t){}renderChildren(t){this.children.forEach((e=>{e.render(t)}))}addChild(t){var e=t instanceof Et?t:this.document.createElement(t);e.parent=this,Et.ignoreChildTypes.includes(e.type)||this.children.push(e)}matchesSelector(t){var e,{node:r}=this;if("function"==typeof r.matches)return r.matches(t);var i=null===(e=r.getAttribute)||void 0===e?void 0:e.call(r,"class");return!(!i||""===i)&&i.split(" ").some((e=>".".concat(e)===t))}addStylesFromStyleDefinition(){var{styles:t,stylesSpecificity:e}=this.document;for(var r in t)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=t[r],n=e[r];if(i)for(var s in i){var a=this.stylesSpecificity[s];void 0===a&&(a="000"),n>=a&&(this.styles[s]=i[s],this.stylesSpecificity[s]=n)}}}removeStyles(t,e){return e.reduce(((e,r)=>{var i=t.getStyle(r);if(!i.hasValue())return e;var n=i.getString();return i.setValue(""),[...e,[r,n]]}),[])}restoreStyles(t,e){e.forEach((e=>{var[r,i]=e;t.getStyle(r,!0).setValue(i)}))}isFirstChild(){var t;return 0===(null===(t=this.parent)||void 0===t?void 0:t.children.indexOf(this))}}Et.ignoreChildTypes=["title"];class Pt extends Et{constructor(t,e,r){super(t,e,r)}}function Nt(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function Mt(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function Rt(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class _t{constructor(t,e,r,i,n,s){var a=s?"string"==typeof s?_t.parse(s):s:{};this.fontFamily=n||a.fontFamily,this.fontSize=i||a.fontSize,this.fontStyle=t||a.fontStyle,this.fontWeight=r||a.fontWeight,this.fontVariant=e||a.fontVariant}static parse(){var t=arguments.length>1?arguments[1]:void 0,e="",r="",i="",n="",s="",a=I(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),o={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return a.forEach((t=>{switch(!0){case!o.fontStyle&&_t.styles.includes(t):"inherit"!==t&&(e=t),o.fontStyle=!0;break;case!o.fontVariant&&_t.variants.includes(t):"inherit"!==t&&(r=t),o.fontStyle=!0,o.fontVariant=!0;break;case!o.fontWeight&&_t.weights.includes(t):"inherit"!==t&&(i=t),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0;break;case!o.fontSize:"inherit"!==t&&([n]=t.split("/")),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0,o.fontSize=!0;break;default:"inherit"!==t&&(s+=t)}})),new _t(e,r,i,n,s,t)}toString(){return[Mt(this.fontStyle),this.fontVariant,Rt(this.fontWeight),this.fontSize,(t=this.fontFamily,void 0===V?t:t.trim().split(",").map(Nt).join(","))].join(" ").trim();var t}}_t.styles="normal|italic|oblique|inherit",_t.variants="normal|small-caps|inherit",_t.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class Vt{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=r,this.y2=i,this.addPoint(t,e),this.addPoint(r,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,e){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),tthis.x2&&(this.x2=t)),void 0!==e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),ethis.y2&&(this.y2=e))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){if(t){var{x1:e,y1:r,x2:i,y2:n}=t;this.addPoint(e,r),this.addPoint(i,n)}}sumCubic(t,e,r,i,n){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*i+Math.pow(t,3)*n}bezierCurveAdd(t,e,r,i,n){var s=6*e-12*r+6*i,a=-3*e+9*r-9*i+3*n,o=3*r-3*e;if(0!==a){var u=Math.pow(s,2)-4*o*a;if(!(u<0)){var c=(-s+Math.sqrt(u))/(2*a);0=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",r=new lt(this.command[t],this.command[e]);return this.makeAbsolute(r)}getAsControlPoint(t,e){var r=this.getPoint(t,e);return this.control=r,r}getAsCurrentPoint(t,e){var r=this.getPoint(t,e);return this.current=r,r}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==A.CURVE_TO&&t!==A.SMOOTH_CURVE_TO&&t!==A.QUAD_TO&&t!==A.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:i,y:n}}=this;return new lt(2*e-i,2*r-n)}makeAbsolute(t){if(this.command.relative){var{x:e,y:r}=this.current;t.x+=e,t.y+=r}return t}addMarker(t,e,r){var{points:i,angles:n}=this;r&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}addMarkerAngle(t,e){this.points.push(t),this.angles.push(e)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:t}=this,e=t.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];if(!e){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),s=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var a=r.getFillStyleDefinition(this,i);a&&(t.fillStyle=a)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var o=r.getColor();"inherit"!==o&&(t.fillStyle="none"===o?"rgba(0,0,0,0)":o)}if(i.hasValue()){var u=new ct(this.document,"fill",t.fillStyle).addOpacity(i).getColor();t.fillStyle=u}if(n.isUrlDefinition()){var c=n.getFillStyleDefinition(this,s);c&&(t.strokeStyle=c)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var h=n.getString();"inherit"!==h&&(t.strokeStyle="none"===h?"rgba(0,0,0,0)":h)}if(s.hasValue()){var l=new ct(this.document,"stroke",t.strokeStyle).addOpacity(s).getString();t.strokeStyle=l}var f=this.getStyle("stroke-width");if(f.hasValue()){var g=f.getPixels();t.lineWidth=g||K}var p=this.getStyle("stroke-linecap"),d=this.getStyle("stroke-linejoin"),v=this.getStyle("stroke-miterlimit"),y=this.getStyle("stroke-dasharray"),m=this.getStyle("stroke-dashoffset");if(p.hasValue()&&(t.lineCap=p.getString()),d.hasValue()&&(t.lineJoin=d.getString()),v.hasValue()&&(t.miterLimit=v.getNumber()),y.hasValue()&&"none"!==y.getString()){var x=B(y.getString());void 0!==t.setLineDash?t.setLineDash(x):void 0!==t.webkitLineDash?t.webkitLineDash=x:void 0===t.mozDash||1===x.length&&0===x[0]||(t.mozDash=x);var b=m.getPixels();void 0!==t.lineDashOffset?t.lineDashOffset=b:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=b:void 0!==t.mozDashOffset&&(t.mozDashOffset=b)}}if(this.modifiedEmSizeStack=!1,void 0!==t.font){var S=this.getStyle("font"),w=this.getStyle("font-style"),T=this.getStyle("font-variant"),O=this.getStyle("font-weight"),A=this.getStyle("font-size"),C=this.getStyle("font-family"),E=new _t(w.getString(),T.getString(),O.getString(),A.hasValue()?"".concat(A.getPixels(!0),"px"):"",C.getString(),_t.parse(S.getString(),t.font));w.setValue(E.fontStyle),T.setValue(E.fontVariant),O.setValue(E.fontWeight),A.setValue(E.fontSize),C.setValue(E.fontFamily),t.font=E.toString(),A.isPixels()&&(this.document.emSize=A.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class Lt extends It{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new kt(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new Vt;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case kt.MOVE_TO:this.pathM(t,r);break;case kt.LINE_TO:this.pathL(t,r);break;case kt.HORIZ_LINE_TO:this.pathH(t,r);break;case kt.VERT_LINE_TO:this.pathV(t,r);break;case kt.CURVE_TO:this.pathC(t,r);break;case kt.SMOOTH_CURVE_TO:this.pathS(t,r);break;case kt.QUAD_TO:this.pathQ(t,r);break;case kt.SMOOTH_QUAD_TO:this.pathT(t,r);break;case kt.ARC:this.pathA(t,r);break;case kt.CLOSE_PATH:this.pathZ(t,r)}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),r=t.getMarkerAngles(),i=e.map(((t,e)=>[t,r[e]]));return i}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var i=r.length-1,n=this.getStyle("marker-start"),s=this.getStyle("marker-mid"),a=this.getStyle("marker-end");if(n.isUrlDefinition()){var o=n.getDefinition(),[u,c]=r[0];o.render(t,u,c)}if(s.isUrlDefinition())for(var h=s.getDefinition(),l=1;l1&&(i*=Math.sqrt(l),n*=Math.sqrt(l));var f=(a===o?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(n,2)-Math.pow(i,2)*Math.pow(h.y,2)-Math.pow(n,2)*Math.pow(h.x,2))/(Math.pow(i,2)*Math.pow(h.y,2)+Math.pow(n,2)*Math.pow(h.x,2)));isNaN(f)&&(f=0);var g=new lt(f*i*h.y/n,f*-n*h.x/i),p=new lt((e.x+c.x)/2+Math.cos(u)*g.x-Math.sin(u)*g.y,(e.y+c.y)/2+Math.sin(u)*g.x+Math.cos(u)*g.y),d=et([1,0],[(h.x-g.x)/i,(h.y-g.y)/n]),v=[(h.x-g.x)/i,(h.y-g.y)/n],y=[(-h.x-g.x)/i,(-h.y-g.y)/n],m=et(v,y);return tt(v,y)<=-1&&(m=Math.PI),tt(v,y)>=1&&(m=0),{currentPoint:c,rX:i,rY:n,sweepFlag:o,xAxisRotation:u,centp:p,a1:d,ad:m}}pathA(t,e){var{pathParser:r}=this,{currentPoint:i,rX:n,rY:s,sweepFlag:a,xAxisRotation:o,centp:u,a1:c,ad:h}=Lt.pathA(r),l=1-a?1:-1,f=c+l*(h/2),g=new lt(u.x+n*Math.cos(f),u.y+s*Math.sin(f));if(r.addMarkerAngle(g,f-l*Math.PI/2),r.addMarkerAngle(i,f-l*Math.PI),e.addPoint(i.x,i.y),t&&!isNaN(c)&&!isNaN(h)){var p=n>s?n:s,d=n>s?1:n/s,v=n>s?s/n:1;t.translate(u.x,u.y),t.rotate(o),t.scale(d,v),t.arc(0,0,p,c,c+h,Boolean(1-a)),t.scale(1/d,1/v),t.rotate(-o),t.translate(-u.x,-u.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){Lt.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class Dt extends Lt{constructor(t,e,r){super(t,e,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class Bt extends It{constructor(t,e,r){super(t,e,new.target===Bt||r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(t,e);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(t){if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var e=null;return this.children.forEach(((r,i)=>{var n=this.getChildBoundingBox(t,this,this,i);e?e.addBoundingBox(n):e=n})),e}getFontSize(){var{document:t,parent:e}=this,r=_t.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(r)}getTElementBoundingBox(t){var e=this.getFontSize();return new Vt(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,r){var i=e[r],n=null;if(t.isArabic){var s=e.length,a=e[r-1],o=e[r+1],u="isolated";if((0===r||" "===a)&&r0&&" "!==a&&r0&&" "!==a&&(r===s-1||" "===o)&&(u="initial"),void 0!==t.glyphs[i]){var c=t.glyphs[i];n=c instanceof Dt?c:c[u]}}else n=t.glyphs[i];return n||(n=t.missingGlyph),n}getText(){return""}getTextFromNode(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),i=r.indexOf(e),n=r.length-1,s=I(e.textContent||"");return 0===i&&(s=L(s)),i===n&&(s=D(s)),s}renderChildren(t){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach(((e,r)=>{this.renderChild(t,this,this,r)}));var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}renderTElementChildren(t){var{document:e,parent:r}=this,i=this.getText(),n=r.getStyle("font-family").getDefinition();if(n)for(var{unitsPerEm:s}=n.fontFace,a=_t.parse(e.ctx.font),o=r.getStyle("font-size").getNumber(a.fontSize),u=r.getStyle("font-style").getString(a.fontStyle),c=o/s,h=n.isRTL?i.split("").reverse().join(""):i,l=B(r.getAttribute("dx").getString()),f=h.length,g=0;g=this.leafTexts.length)){var t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start"),r=0;r="start"===e?t.x-this.minX:"end"===e?t.x-this.maxX:t.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i{this.adjustChildCoordinatesRecursiveCore(t,this,this,r)})),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(t,e,r,i){var n=r.children[i];n.children.length>0?n.children.forEach(((r,i)=>{e.adjustChildCoordinatesRecursiveCore(t,e,n,i)})):this.adjustChildCoordinates(t,e,r,i)}adjustChildCoordinates(t,e,r,i){var n=r.children[i];if("function"!=typeof n.measureText)return n;t.save(),n.setContext(t,!0);var s=n.getAttribute("x"),a=n.getAttribute("y"),o=n.getAttribute("dx"),u=n.getAttribute("dy"),c=n.getStyle("font-family").getDefinition(),h=Boolean(c)&&c.isRTL;0===i&&(s.hasValue()||s.setValue(n.getInheritedAttribute("x")),a.hasValue()||a.setValue(n.getInheritedAttribute("y")),o.hasValue()||o.setValue(n.getInheritedAttribute("dx")),u.hasValue()||u.setValue(n.getInheritedAttribute("dy")));var l=n.measureText(t);return h&&(e.x-=l),s.hasValue()?(e.applyAnchoring(),n.x=s.getPixels("x"),o.hasValue()&&(n.x+=o.getPixels("x"))):(o.hasValue()&&(e.x+=o.getPixels("x")),n.x=e.x),e.x=n.x,h||(e.x+=l),a.hasValue()?(n.y=a.getPixels("y"),u.hasValue()&&(n.y+=u.getPixels("y"))):(u.hasValue()&&(e.y+=u.getPixels("y")),n.y=e.y),e.y=n.y,e.leafTexts.push(n),e.minX=Math.min(e.minX,n.x,n.x+l),e.maxX=Math.max(e.maxX,n.x,n.x+l),n.clearContext(t),t.restore(),n}getChildBoundingBox(t,e,r,i){var n=r.children[i];if("function"!=typeof n.getBoundingBox)return null;var s=n.getBoundingBox(t);return s?(n.children.forEach(((r,i)=>{var a=e.getChildBoundingBox(t,e,n,i);s.addBoundingBox(a)})),s):null}renderChild(t,e,r,i){var n=r.children[i];n.render(t),n.children.forEach(((r,i)=>{e.renderChild(t,e,n,i)}))}measureText(t){var{measureCache:e}=this;if(~e)return e;var r=this.getText(),i=this.measureTargetText(t,r);return this.measureCache=i,i}measureTargetText(t,e){if(!e.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var n=this.getFontSize(),s=i.isRTL?e.split("").reverse().join(""):e,a=B(r.getAttribute("dx").getString()),o=s.length,u=0,c=0;c0?"":this.getTextFromNode()}getText(){return this.text}}class Ft extends jt{constructor(){super(...arguments),this.type="textNode"}}class zt extends It{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,{document:r}=this,{screen:i,window:n}=r,s=t.canvas;if(i.setDefaults(t),s.style&&void 0!==t.font&&n&&void 0!==n.getComputedStyle){t.font=n.getComputedStyle(s).getPropertyValue("font");var a=new ct(r,"fontSize",_t.parse(t.font).fontSize);a.hasValue()&&(r.rootEmSize=a.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:u}=i.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var c=this.getAttribute("refX"),h=this.getAttribute("refY"),l=this.getAttribute("viewBox"),f=l.hasValue()?B(l.getString()):null,g=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),p=0,d=0,v=0,y=0;f&&(p=f[0],d=f[1]),this.root||(o=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y"),"marker"===this.type&&(v=p,y=d,p=0,d=0)),i.viewPort.setCurrent(o,u),!this.node||this.parent&&"foreignObject"!==(null===(e=this.node.parentNode)||void 0===e?void 0:e.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),f&&(o=f[2],u=f[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:o,height:i.viewPort.height,desiredHeight:u,minX:p,minY:d,refX:c.getValue(),refY:h.getValue(),clip:g,clipX:v,clipY:y}),f&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(o,u))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.getAttribute("width",!0),n=this.getAttribute("height",!0),s=this.getAttribute("viewBox"),a=this.getAttribute("style"),o=i.getNumber(0),u=n.getNumber(0);if(r)if("string"==typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var c=this.getAttribute("preserveAspectRatio");c.hasValue()&&c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(t),n.setValue(e),s.hasValue()||s.setValue("0 0 ".concat(o||t," ").concat(u||e)),a.hasValue()){var h=this.getStyle("width"),l=this.getStyle("height");h.hasValue()&&h.setValue("".concat(t,"px")),l.hasValue()&&l.setValue("".concat(e,"px"))}}}class Ut extends Lt{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),s=this.getAttribute("rx"),a=this.getAttribute("ry"),o=s.getPixels("x"),u=a.getPixels("y");if(s.hasValue()&&!a.hasValue()&&(u=o),a.hasValue()&&!s.hasValue()&&(o=u),o=Math.min(o,i/2),u=Math.min(u,n/2),t){var c=(Math.sqrt(2)-1)/3*4;t.beginPath(),n>0&&i>0&&(t.moveTo(e+o,r),t.lineTo(e+i-o,r),t.bezierCurveTo(e+i-o+c*o,r,e+i,r+u-c*u,e+i,r+u),t.lineTo(e+i,r+n-u),t.bezierCurveTo(e+i,r+n-u+c*u,e+i-o+c*o,r+n,e+i-o,r+n),t.lineTo(e+o,r+n),t.bezierCurveTo(e+o-c*o,r+n,e,r+n-u+c*u,e,r+n-u),t.lineTo(e,r+u),t.bezierCurveTo(e,r+u-c*u,e+o-c*o,r,e+o,r),t.closePath())}return new Vt(e,r,e+i,r+n)}getMarkers(){return null}}class Ht extends Lt{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return t&&i>0&&(t.beginPath(),t.arc(e,r,i,0,2*Math.PI,!1),t.closePath()),new Vt(e-i,r-i,e+i,r+i)}getMarkers(){return null}}class Xt extends Lt{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),s=this.getAttribute("cy").getPixels("y");return t&&r>0&&i>0&&(t.beginPath(),t.moveTo(n+r,s),t.bezierCurveTo(n+r,s+e*i,n+e*r,s+i,n,s+i),t.bezierCurveTo(n-e*r,s+i,n-r,s+e*i,n-r,s),t.bezierCurveTo(n-r,s-e*i,n-e*r,s-i,n,s-i),t.bezierCurveTo(n+e*r,s-i,n+r,s-e*i,n+r,s),t.closePath()),new Vt(n-r,s-i,n+r,s+i)}getMarkers(){return null}}class Yt extends Lt{constructor(){super(...arguments),this.type="line"}getPoints(){return[new lt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new lt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:r},{x:i,y:n}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,r),t.lineTo(i,n)),new Vt(e,r,i,n)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class Wt extends Lt{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=lt.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:i}]=e,n=new Vt(r,i);return t&&(t.beginPath(),t.moveTo(r,i)),e.forEach((e=>{var{x:r,y:i}=e;n.addPoint(r,i),t&&t.lineTo(r,i)})),n}getMarkers(){var{points:t}=this,e=t.length-1,r=[];return t.forEach(((i,n)=>{n!==e&&r.push([i,i.angleTo(t[n+1])])})),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}class qt extends Wt{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:r,y:i}]=this.points;return t&&(t.lineTo(r,i),t.closePath()),e}}class Gt extends Et{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,r){var i=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),s=new zt(this.document,null);s.attributes.viewBox=new ct(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.width=new ct(this.document,"width","".concat(i,"px")),s.attributes.height=new ct(this.document,"height","".concat(n,"px")),s.attributes.transform=new ct(this.document,"transform",this.getAttribute("patternTransform").getValue()),s.children=this.children;var a=this.document.createCanvas(i,n),o=a.getContext("2d"),u=this.getAttribute("x"),c=this.getAttribute("y");u.hasValue()&&c.hasValue()&&o.translate(u.getPixels("x",!0),c.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var h=-1;h<=1;h++)for(var l=-1;l<=1;l++)o.save(),s.attributes.x=new ct(this.document,"x",h*a.width),s.attributes.y=new ct(this.document,"y",l*a.height),s.render(o),o.restore();return t.createPattern(a,"repeat")}}class Qt extends Et{constructor(){super(...arguments),this.type="marker"}render(t,e,r){if(e){var{x:i,y:n}=e,s=this.getAttribute("orient").getString("auto"),a=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(i,n),"auto"===s&&t.rotate(r),"strokeWidth"===a&&t.scale(t.lineWidth,t.lineWidth),t.save();var o=new zt(this.document,null);o.type=this.type,o.attributes.viewBox=new ct(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new ct(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new ct(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new ct(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new ct(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new ct(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new ct(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new ct(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(t),t.restore(),"strokeWidth"===a&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===s&&t.rotate(-r),t.translate(-i,-n)}}}class $t extends Et{constructor(){super(...arguments),this.type="defs"}render(){}}class Zt extends It{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new Vt;return this.children.forEach((r=>{e.addBoundingBox(r.getBoundingBox(t))})),e}}class Kt extends Et{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:n}=this;n.forEach((t=>{"stop"===t.type&&i.push(t)}))}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:n}=i,s=this.getGradient(t,e);if(!s)return this.addParentOpacity(r,n[n.length-1].color);if(n.forEach((t=>{s.addColorStop(t.offset,this.addParentOpacity(r,t.color))})),this.getAttribute("gradientTransform").hasValue()){var{document:a}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:u}=a.screen,[c]=u.viewPorts,h=new Ut(a,null);h.attributes.x=new ct(a,"x",-o/3),h.attributes.y=new ct(a,"y",-o/3),h.attributes.width=new ct(a,"width",o),h.attributes.height=new ct(a,"height",o);var l=new Zt(a,null);l.attributes.transform=new ct(a,"transform",this.getAttribute("gradientTransform").getValue()),l.children=[h];var f=new zt(a,null);f.attributes.x=new ct(a,"x",0),f.attributes.y=new ct(a,"y",0),f.attributes.width=new ct(a,"width",c.width),f.attributes.height=new ct(a,"height",c.height),f.children=[l];var g=a.createCanvas(c.width,c.height),p=g.getContext("2d");return p.fillStyle=s,f.render(p),p.createPattern(g,"no-repeat")}return s}inheritStopContainer(t){this.attributesToInherit.forEach((e=>{!this.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&this.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())}))}addParentOpacity(t,e){return t.hasValue()?new ct(this.document,"color",e).addOpacity(t).getColor():e}}class Jt extends Kt{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),i=r?e.getBoundingBox(t):null;if(r&&!i)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),s=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),a=r?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=r?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===a&&s===o?null:t.createLinearGradient(n,s,a,o)}}class te extends Kt{constructor(t,e,r){super(t,e,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),i=e.getBoundingBox(t);if(r&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),s=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=n,o=s;this.getAttribute("fx").hasValue()&&(a=r?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=r?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var u=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),c=this.getAttribute("fr").getPixels();return t.createRadialGradient(a,o,c,n,s,u)}}class ee extends Et{constructor(t,e,r){super(t,e,r),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),s=this.getStyle("stop-color",!0);""===s.getString()&&s.setValue("#000"),n.hasValue()&&(s=s.addOpacity(n)),this.offset=i,this.color=s.getColor()}}class re extends Et{constructor(t,e,r){super(t,e,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new ct(t,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:r,to:i}=this.getProgress(),n=r.getNumber()+(i.getNumber()-r.getNumber())*e;return"%"===t&&(n*=100),"".concat(n).concat(t)}update(t){var{parent:e}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==i||this.frozen){if("remove"===i&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;var n=!1;if(this.begine+(n[r]-e)*t)).join(" ");return s}}class se extends Et{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=t,{children:n}=this;for(var s of n)switch(s.type){case"font-face":this.fontFace=s;var a=s.getStyle("font-family");a.hasValue()&&(i[a.getString()]=this);break;case"missing-glyph":this.missingGlyph=s;break;case"glyph":var o=s;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[o.unicode]&&(this.glyphs[o.unicode]={}),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o}}render(){}}class ae extends Et{constructor(t,e,r){super(t,e,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class oe extends Lt{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class ue extends Bt{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}class ce extends Bt{constructor(t,e,r){super(t,e,r),this.type="a";var{childNodes:i}=e,n=i[0],s=i.length>0&&Array.from(i).every((t=>3===t.nodeType));this.hasText=s,this.text=s?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:r,y:i}=this,{mouse:n}=e.screen,s=new ct(e,"fontSize",_t.parse(e.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new Vt(r,i-s.getPixels("y"),r+this.measureText(t),i))}else if(this.children.length>0){var a=new Zt(this.document,null);a.children=this.children,a.parent=this,a.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}function he(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function le(t){for(var e=1;e{var{type:r,points:i}=e;switch(r){case kt.LINE_TO:t&&t.lineTo(i[0],i[1]);break;case kt.MOVE_TO:t&&t.moveTo(i[0],i[1]);break;case kt.CURVE_TO:t&&t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case kt.QUAD_TO:t&&t.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case kt.ARC:var[n,s,a,o,u,c,h,l]=i,f=a>o?a:o,g=a>o?1:a/o,p=a>o?o/a:1;t&&(t.translate(n,s),t.rotate(h),t.scale(g,p),t.arc(0,0,f,u,u+c,Boolean(1-l)),t.scale(1/g,1/p),t.rotate(-h),t.translate(-n,-s));break;case kt.CLOSE_PATH:t&&t.closePath()}}))}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,n=t.fillStyle;"underline"===e&&t.beginPath(),i.forEach(((i,n)=>{var{p0:s,p1:a,rotation:o,text:u}=i;t.save(),t.translate(s.x,s.y),t.rotate(o),t.fillStyle&&t.fillText(u,0,0),t.strokeStyle&&t.strokeText(u,0,0),t.restore(),"underline"===e&&(0===n&&t.moveTo(s.x,s.y+r/8),t.lineTo(a.x,a.y+r/5))})),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=n,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[t]||0}findSegmentToFitChar(t,e,r,i,n,s,a,o,u){var c=s,h=this.measureText(t,o);" "===o&&"justify"===e&&r-1&&(c+=this.getLetterSpacingAt(u));var l=this.textHeight/20,f=this.getEquidistantPointOnPath(c,l,0),g=this.getEquidistantPointOnPath(c+h,l,0),p={p0:f,p1:g},d=f&&g?Math.atan2(g.y-f.y,g.x-f.x):0;if(a){var v=Math.cos(Math.PI/2+d)*a,y=Math.cos(-d)*a;p.p0=le(le({},f),{},{x:f.x+v,y:f.y+y}),p.p1=le(le({},g),{},{x:g.x+v,y:g.y+y})}return{offset:c+=h,segment:p,rotation:d}}measureText(t,e){var{measuresCache:r}=this,i=e||this.getText();if(r.has(i))return r.get(i);var n=this.measureTargetText(t,i);return r.set(i,n),n}setTextData(t){if(!this.glyphInfo){var e=this.getText(),r=e.split(""),i=e.split(" ").length-1,n=this.parent.getAttribute("dx").split().map((t=>t.getPixels("x"))),s=this.parent.getAttribute("dy").getPixels("y"),a=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),u=this.parent.getStyle("letter-spacing"),c=0;o.hasValue()&&"inherit"!==o.getValue()?o.hasValue()&&"initial"!==o.getValue()&&"unset"!==o.getValue()&&(c=o.getPixels()):c=u.getPixels();var h=[],l=e.length;this.letterSpacingCache=h;for(var f=0;f0===r?0:t+e||0),0),p=this.measureText(t),d=Math.max(p+g,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var v=this.getPathLength(),y=this.getStyle("startOffset").getNumber(0)*v,m=0;"middle"!==a&&"center"!==a||(m=-d/2),"end"!==a&&"right"!==a||(m=-d),m+=y,r.forEach(((e,n)=>{var{offset:o,segment:u,rotation:c}=this.findSegmentToFitChar(t,a,d,v,i,m,s,e,n);m=o,u.p0&&u.p1&&this.glyphInfo.push({text:r[n],p0:u.p0,p1:u.p1,rotation:c})}))}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:r}=t;for(r.reset();!r.isEnd();){var{current:i}=r,n=i?i.x:0,s=i?i.y:0,a=r.next(),o=a.type,u=[];switch(a.type){case kt.MOVE_TO:this.pathM(r,u);break;case kt.LINE_TO:o=this.pathL(r,u);break;case kt.HORIZ_LINE_TO:o=this.pathH(r,u);break;case kt.VERT_LINE_TO:o=this.pathV(r,u);break;case kt.CURVE_TO:this.pathC(r,u);break;case kt.SMOOTH_CURVE_TO:o=this.pathS(r,u);break;case kt.QUAD_TO:this.pathQ(r,u);break;case kt.SMOOTH_QUAD_TO:o=this.pathT(r,u);break;case kt.ARC:u=this.pathA(r);break;case kt.CLOSE_PATH:Lt.pathZ(r)}a.type!==kt.CLOSE_PATH?e.push({type:o,points:u,start:{x:n,y:s},pathLength:this.calcLength(n,s,o,u)}):e.push({type:kt.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:i}=Lt.pathM(t).point;e.push(r,i)}pathL(t,e){var{x:r,y:i}=Lt.pathL(t).point;return e.push(r,i),kt.LINE_TO}pathH(t,e){var{x:r,y:i}=Lt.pathH(t).point;return e.push(r,i),kt.LINE_TO}pathV(t,e){var{x:r,y:i}=Lt.pathV(t).point;return e.push(r,i),kt.LINE_TO}pathC(t,e){var{point:r,controlPoint:i,currentPoint:n}=Lt.pathC(t);e.push(r.x,r.y,i.x,i.y,n.x,n.y)}pathS(t,e){var{point:r,controlPoint:i,currentPoint:n}=Lt.pathS(t);return e.push(r.x,r.y,i.x,i.y,n.x,n.y),kt.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:i}=Lt.pathQ(t);e.push(r.x,r.y,i.x,i.y)}pathT(t,e){var{controlPoint:r,currentPoint:i}=Lt.pathT(t);return e.push(r.x,r.y,i.x,i.y),kt.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:i,xAxisRotation:n,centp:s,a1:a,ad:o}=Lt.pathA(t);return 0===i&&o>0&&(o-=2*Math.PI),1===i&&o<0&&(o+=2*Math.PI),[s.x,s.y,e,r,a,o,n,i]}calcLength(t,e,r,i){var n=0,s=null,a=null,o=0;switch(r){case kt.LINE_TO:return this.getLineLength(t,e,i[0],i[1]);case kt.CURVE_TO:for(n=0,s=this.getPointOnCubicBezier(0,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),o=.01;o<=1;o+=.01)a=this.getPointOnCubicBezier(o,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),n+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return n;case kt.QUAD_TO:for(n=0,s=this.getPointOnQuadraticBezier(0,t,e,i[0],i[1],i[2],i[3]),o=.01;o<=1;o+=.01)a=this.getPointOnQuadraticBezier(o,t,e,i[0],i[1],i[2],i[3]),n+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return n;case kt.ARC:n=0;var u=i[4],c=i[5],h=i[4]+c,l=Math.PI/180;if(Math.abs(u-h)h;o-=l)a=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],o,0),n+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;else for(o=u+l;o5&&void 0!==arguments[5]?arguments[5]:e,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,o=(n-r)/(i-e+K),u=Math.sqrt(t*t/(1+o*o));ie)return null;var{dataArray:n}=this;for(var s of n){if(!s||!(s.pathLength<5e-5||r+s.pathLength+5e-5=0&&o>h)break;i=this.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],o,s.points[6]);break;case kt.CURVE_TO:(o=a/s.pathLength)>1&&(o=1),i=this.getPointOnCubicBezier(o,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3],s.points[4],s.points[5]);break;case kt.QUAD_TO:(o=a/s.pathLength)>1&&(o=1),i=this.getPointOnQuadraticBezier(o,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3])}if(i)return i;break}r+=s.pathLength}return null}getLineLength(t,e,r,i){return Math.sqrt((r-t)*(r-t)+(i-e)*(i-e))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(((t,e)=>e.pathLength>0?t+e.pathLength:t),0)),this.pathLength}getPointOnCubicBezier(t,e,r,i,n,s,a,o,u){return{x:o*rt(t)+s*it(t)+i*nt(t)+e*st(t),y:u*rt(t)+a*it(t)+n*nt(t)+r*st(t)}}getPointOnQuadraticBezier(t,e,r,i,n,s,a){return{x:s*at(t)+i*ot(t)+e*ut(t),y:a*at(t)+n*ot(t)+r*ut(t)}}getPointOnEllipticalArc(t,e,r,i,n,s){var a=Math.cos(s),o=Math.sin(s),u=r*Math.cos(n),c=i*Math.sin(n);return{x:t+(u*a-c*o),y:e+(u*o+c*a)}}buildEquidistantCache(t,e){var r=this.getPathLength(),i=e||.25,n=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==i){this.equidistantCache={step:n,precision:i,points:[]};for(var s=0,a=0;a<=r;a+=i){var o=this.getPointOnPath(a),u=this.getPointOnPath(a+i);o&&u&&((s+=this.getLineLength(o.x,o.y,u.x,u.y))>=n&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:a}),s-=n))}}}getEquidistantPointOnPath(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var i=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}var ge=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class pe extends It{constructor(t,e,r){super(t,e,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var n=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);t.images.push(this),n?this.loadSvg(i):this.loadImage(i),this.isSvg=n}}loadImage(t){var e=this;return(0,i.Z)((function*(){try{var r=yield e.document.createImage(t);e.image=r}catch(e){console.error('Error while loading image "'.concat(t,'":'),e)}e.loaded=!0}))()}loadSvg(t){var e=this;return(0,i.Z)((function*(){var r=ge.exec(t);if(r){var i=r[5];"base64"===r[4]?e.image=atob(i):e.image=decodeURIComponent(i)}else try{var n=yield e.document.fetch(t),s=yield n.text();e.image=s}catch(e){console.error('Error while loading image "'.concat(t,'":'),e)}e.loaded=!0}))()}renderChildren(t){var{document:e,image:r,loaded:i}=this,n=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(i&&r&&a&&o){if(t.save(),t.translate(n,s),this.isSvg){var u=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:a,scaleHeight:o});u.document.documentElement.parent=this,u.render()}else{var c=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:c.width,height:o,desiredHeight:c.height}),this.loaded&&(void 0===c.complete||c.complete)&&t.drawImage(c,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new Vt(t,e,t+r,e+i)}}class de extends It{constructor(){super(...arguments),this.type="symbol"}render(t){}}class ve{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var r=this;return(0,i.Z)((function*(){try{var{document:i}=r,n=(yield i.canvg.parser.load(e)).getElementsByTagName("font");Array.from(n).forEach((e=>{var r=i.createElement(e);i.definitions[t]=r}))}catch(t){console.error('Error while loading font "'.concat(e,'":'),t)}r.loaded=!0}))()}}class ye extends Et{constructor(t,e,r){super(t,e,r),this.type="style";var i=I(Array.from(e.childNodes).map((t=>t.textContent)).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,""));i.split("}").forEach((e=>{var r=e.trim();if(r){var i=r.split("{"),n=i[0].split(","),s=i[1].split(";");n.forEach((e=>{var r=e.trim();if(r){var i=t.styles[r]||{};if(s.forEach((e=>{var r=e.indexOf(":"),n=e.substr(0,r).trim(),s=e.substr(r+1,e.length-r).trim();n&&s&&(i[n]=new ct(t,n,s))})),t.styles[r]=i,t.stylesSpecificity[r]=Z(r),"@font-face"===r){var n=i["font-family"].getString().replace(/"|'/g,"");i.src.getString().split(",").forEach((e=>{if(e.indexOf('format("svg")')>0){var r=z(e);r&&new ve(t).load(n,r)}}))}}}))}}))}}ye.parseExternalUrl=z;class me extends It{constructor(){super(...arguments),this.type="use"}setContext(t){super.setContext(t);var e=this.getAttribute("x"),r=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}path(t){var{element:e}=this;e&&e.path(t)}renderChildren(t){var{document:e,element:r}=this;if(r){var i=r;if("symbol"===r.type&&((i=new zt(e,null)).attributes.viewBox=new ct(e,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new ct(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new ct(e,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new ct(e,"opacity",this.calculateOpacity())),"svg"===i.type){var n=this.getStyle("width",!1,!0),s=this.getStyle("height",!1,!0);n.hasValue()&&(i.attributes.width=new ct(e,"width",n.getString())),s.hasValue()&&(i.attributes.height=new ct(e,"height",s.getString()))}var a=i.parent;i.parent=this,i.render(t),i.parent=a}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return Ct.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function xe(t,e,r,i,n,s){return t[r*i*4+4*e+s]}function be(t,e,r,i,n,s,a){t[r*i*4+4*e+s]=a}function Se(t,e,r){return t[e]*r}function we(t,e,r,i){return e+Math.cos(t)*r+Math.sin(t)*i}class Te extends Et{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var i=B(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var n=i[0];i=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var s=i[0]*Math.PI/180;i=[we(s,.213,.787,-.213),we(s,.715,-.715,-.715),we(s,.072,-.072,.928),0,0,we(s,.213,-.213,.143),we(s,.715,.285,.14),we(s,.072,-.072,-.283),0,0,we(s,.213,-.213,-.787),we(s,.715,-.715,.715),we(s,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,r,i,n){for(var{includeOpacity:s,matrix:a}=this,o=t.getImageData(0,0,i,n),u=0;u{o.addBoundingBox(e.getBoundingBox(t))})),i=Math.floor(o.x1),n=Math.floor(o.y1),s=Math.floor(o.width),a=Math.floor(o.height)}var u=this.removeStyles(e,Oe.ignoreStyles),c=r.createCanvas(i+s,n+a),h=c.getContext("2d");r.screen.setDefaults(h),this.renderChildren(h),new Te(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(h,0,0,i+s,n+a);var l=r.createCanvas(i+s,n+a),f=l.getContext("2d");r.screen.setDefaults(f),e.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=h.createPattern(c,"no-repeat"),f.fillRect(0,0,i+s,n+a),t.fillStyle=f.createPattern(l,"no-repeat"),t.fillRect(0,0,i+s,n+a),this.restoreStyles(e,u)}render(t){}}Oe.ignoreStyles=["mask","transform","clip-path"];var Ae=()=>{};class Ce extends Et{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,r=Reflect.getPrototypeOf(t),{beginPath:i,closePath:n}=t;r&&(r.beginPath=Ae,r.closePath=Ae),Reflect.apply(i,t,[]),this.children.forEach((i=>{if(void 0!==i.path){var s=void 0!==i.elementTransform?i.elementTransform():null;s||(s=Ct.fromElement(e,i)),s&&s.apply(t),i.path(t),r&&(r.closePath=n),s&&s.unapply(t)}})),Reflect.apply(n,t,[]),t.clip(),r&&(r.beginPath=i,r.closePath=n)}render(t){}}class Ee extends Et{constructor(){super(...arguments),this.type="filter"}apply(t,e){var{document:r,children:i}=this,n=e.getBoundingBox(t);if(n){var s=0,a=0;i.forEach((t=>{var e=t.extraFilterDistance||0;s=Math.max(s,e),a=Math.max(a,e)}));var o=Math.floor(n.width),u=Math.floor(n.height),c=o+2*s,h=u+2*a;if(!(c<1||h<1)){var l=Math.floor(n.x),f=Math.floor(n.y),g=this.removeStyles(e,Ee.ignoreStyles),p=r.createCanvas(c,h),d=p.getContext("2d");r.screen.setDefaults(d),d.translate(-l+s,-f+a),e.render(d),i.forEach((t=>{"function"==typeof t.apply&&t.apply(d,0,0,c,h)})),t.drawImage(p,0,0,c,h,l-s,f-a,c,h),this.restoreStyles(e,g)}}}render(t){}}Ee.ignoreStyles=["filter","transform","clip-path"];class Pe extends Et{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,i,n){}}class Ne extends Et{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,i,n){}}class Me extends Et{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,i,n){}}class Re extends Et{constructor(t,e,r){super(t,e,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,e,r,i,n){var{document:s,blurRadius:a}=this,o=s.window?s.window.document.body:null,u=t.canvas;u.id=s.getUniqueId(),o&&(u.style.display="none",o.appendChild(u)),R(u,e,r,i,n,a),o&&o.removeChild(u)}}class _e extends Et{constructor(){super(...arguments),this.type="title"}}class Ve extends Et{constructor(){super(...arguments),this.type="desc"}}var ke={svg:zt,rect:Ut,circle:Ht,ellipse:Xt,line:Yt,polyline:Wt,polygon:qt,path:Lt,pattern:Gt,marker:Qt,defs:$t,linearGradient:Jt,radialGradient:te,stop:ee,animate:re,animateColor:ie,animateTransform:ne,font:se,"font-face":ae,"missing-glyph":oe,glyph:Dt,text:Bt,tspan:jt,tref:ue,a:ce,textPath:fe,image:pe,g:Zt,symbol:de,style:ye,use:me,mask:Oe,clipPath:Ce,filter:Ee,feDropShadow:Pe,feMorphology:Ne,feComposite:Me,feColorMatrix:Te,feGaussianBlur:Re,title:_e,desc:Ve};function Ie(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function Le(){return Le=(0,i.Z)((function*(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.createElement("img");return e&&(r.crossOrigin="Anonymous"),new Promise(((e,i)=>{r.onload=()=>{e(r)},r.onerror=(t,e,r,n,s)=>{i(s)},r.src=t}))})),Le.apply(this,arguments)}class De{constructor(t){var{rootEmSize:e=12,emSize:r=12,createCanvas:i=De.createCanvas,createImage:n=De.createImage,anonymousCrossOrigin:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=e,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(n,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(t,e){return"boolean"==typeof e?(r,i)=>t(r,"boolean"==typeof i?i:e):t}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:t}=this;return t[t.length-1]}set emSize(t){var{emSizeStack:e}=this;e.push(t)}popEmSize(){var{emSizeStack:t}=this;t.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every((t=>t.loaded))}isFontsLoaded(){return this.fonts.every((t=>t.loaded))}createDocumentElement(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}createElement(t){var e=t.nodeName.replace(/^[^:]+:/,""),r=De.elementTypes[e];return void 0!==r?new r(this,t):new Pt(this,t)}createTextNode(t){return new Ft(this,t)}setViewBox(t){this.screen.setViewBox(function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new mt(r),this.screen=new dt(t,r),this.options=r;var i=new De(this,r),n=i.createDocumentElement(e);this.document=i,this.documentElement=n}static from(t,e){var r=arguments;return(0,i.Z)((function*(){var i=r.length>2&&void 0!==r[2]?r[2]:{},n=new mt(i),s=yield n.parse(e);return new Fe(t,s,i)}))()}static fromString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new mt(r).parseFromString(e);return new Fe(t,i,r)}fork(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Fe.from(t,e,je(je({},this.options),r))}forkString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Fe.fromString(t,e,je(je({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return(0,i.Z)((function*(){var r=t.length>0&&void 0!==t[0]?t[0]:{};e.start(je({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield e.ready(),e.stop()}))()}start(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:e,screen:r,options:i}=this;r.start(e,je(je({enableRedraw:!0},i),t))}stop(){this.screen.stop()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(t,e,r)}}}}]); \ No newline at end of file diff --git a/49969.4cea7ee0.async.js b/49969.4cea7ee0.async.js deleted file mode 100644 index 46be2f7eda..0000000000 --- a/49969.4cea7ee0.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[49969,79817],{680:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(5891),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(22589),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},27666:function(e,t,n){var o=n(26390),r=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},i=function(){if(null==t){for(var e=arguments.length,o=new Array(e),i=0;i{r.Z.cancel(t),t=null},i}},81228:function(e,t,n){n.d(t,{Z:function(){return E}});var o=n(79545),r=n(68550),i=n(17928),a=n(99487),l=n(59301),c=n(92310),s=n.n(c),d=n(28647),p=n(55405),u=n(27666),f=n(36355),g=n(83116),h=n(37613);const m=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var v=(0,g.Z)("Affix",(e=>{const t=(0,h.TS)(e,{zIndexPopup:e.zIndexBase+10});return[m(t)]}));function b(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function x(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function C(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(y.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();y.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,r=e.getTargetFunc();if(t!==k.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!r)return;const i=e.getOffsetTop(),a=e.getOffsetBottom(),l=r();if(l){const t={status:k.None},r=b(e.placeholderNodeRef.current);if(0===r.top&&0===r.left&&0===r.width&&0===r.height)return;const c=b(l),s=x(r,c,i),d=C(r,c,a);void 0!==s?(t.affixStyle={position:"fixed",top:s,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}):void 0!==d&&(t.affixStyle={position:"fixed",bottom:d,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:k.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,u.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,u.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),r=e.getOffsetBottom(),i=t();if(i&&e.placeholderNodeRef.current){const t=b(i),a=b(e.placeholderNodeRef.current),l=x(a,t,o),c=C(a,t,r);if(void 0!==l&&n.top===l||void 0!==c&&n.bottom===c)return}}e.prepareMeasure()})),e}return(0,r.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:$}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:r}=this.props,i=s()(e&&o,{[n]:!!e});let a=(0,p.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return l.createElement(d.Z,{onResize:this.updatePosition},l.createElement("div",Object.assign({},a,{ref:this.placeholderNodeRef}),e&&l.createElement("div",{style:t,"aria-hidden":"true"}),l.createElement("div",{className:i,ref:this.fixedNodeRef,style:e},l.createElement(d.Z,{onResize:this.updatePosition},r))))}}]),n}(l.Component);S.contextType=f.E_;var E=(0,l.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:r}=(0,l.useContext)(f.E_),i=r("affix",n),[a,c]=v(i),d=Object.assign(Object.assign({},e),{affixPrefixCls:i,rootClassName:s()(o,c)});return a(l.createElement(S,Object.assign({},d,{ref:t})))}))},79817:function(e,t,n){n.d(t,{Z:function(){return P}});var o=n(26390),r=n(92310),i=n.n(r),a=n(83794),l=n(59301),c=n(6774),s=n(13845),d=n(68031),p=n(81228),u=n(36355);var f=l.createContext(void 0);var g=e=>{const{href:t,title:n,prefixCls:o,children:r,className:a,target:c,replace:s}=e,d=l.useContext(f),{registerLink:p,unregisterLink:g,scrollTo:h,onClick:m,activeLink:v,direction:b}=d||{};l.useEffect((()=>(null==p||p(t),()=>{null==g||g(t)})),[t]);const{getPrefixCls:x}=l.useContext(u.E_),C=x("anchor",o),y=v===t,$=i()(`${C}-link`,a,{[`${C}-link-active`]:y}),k=i()(`${C}-link-title`,{[`${C}-link-title-active`]:y});return l.createElement("div",{className:$},l.createElement("a",{className:k,href:t,title:"string"==typeof n?n:"",target:c,onClick:e=>{s&&(e.preventDefault(),window.location.replace(t)),null==m||m(e,{title:n,href:t}),null==h||h(t)}},n),"horizontal"!==b?r:null)},h=n(17313),m=n(83116),v=n(37613);const b=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:r,colorPrimary:i,lineType:a,colorSplit:l}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,[t]:Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"relative",paddingInlineStart:r,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${e.linkPaddingInlineStart}px 0`,"&-title":Object.assign(Object.assign({},h.vS),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${r}px ${a} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:r,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},x=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:r}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:r}}}}};var C=(0,m.Z)("Anchor",(e=>{const{fontSize:t,fontSizeLG:n,paddingXXS:o}=e,r=(0,v.TS)(e,{holderOffsetBlock:o,anchorPaddingBlockSecondary:o/2,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[b(r),x(r)]}),(e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding})));function y(){return window}function $(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const k=/#([\S ]+)$/,S=e=>{var t;const{rootClassName:n,anchorPrefixCls:r,className:h,style:m,offsetTop:v,affix:b=!0,showInkInFixed:x=!1,children:C,items:S,direction:E="vertical",bounds:P,targetOffset:w,onClick:I,onChange:N,getContainer:O,getCurrentAnchor:Z,replace:T}=e;const[B,R]=l.useState([]),[j,z]=l.useState(null),L=l.useRef(j),A=l.useRef(null),M=l.useRef(null),H=l.useRef(!1),{direction:_,getTargetContainer:W,anchor:D}=l.useContext(u.E_),F=null!==(t=null!=O?O:W)&&void 0!==t?t:y,X=JSON.stringify(B),K=(0,a.useEvent)((e=>{B.includes(e)||R((t=>[].concat((0,o.Z)(t),[e])))})),U=(0,a.useEvent)((e=>{B.includes(e)&&R((t=>t.filter((t=>t!==e))))})),G=(0,a.useEvent)((e=>{if(L.current===e)return;const t="function"==typeof Z?Z(e):e;z(t),L.current=t,null==N||N(e)})),V=l.useCallback((()=>{if(H.current)return;const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const o=[],r=F();if(e.forEach((e=>{const i=k.exec(null==e?void 0:e.toString());if(!i)return;const a=document.getElementById(i[1]);if(a){const i=$(a,r);it.top>e.top?t:e)).link;return""}(B,void 0!==w?w:v||0,P);G(e)}),[X,w,v]),q=l.useCallback((e=>{G(e);const t=k.exec(e);if(!t)return;const n=document.getElementById(t[1]);if(!n)return;const o=F();let r=(0,s.Z)(o,!0)+$(n,o);r-=void 0!==w?w:v||0,H.current=!0,(0,d.Z)(r,{getContainer:F,callback(){H.current=!1}})}),[w,v]),J=i()(n,`${r}-wrapper`,{[`${r}-wrapper-horizontal`]:"horizontal"===E,[`${r}-rtl`]:"rtl"===_},h,null==D?void 0:D.className),Q=i()(r,{[`${r}-fixed`]:!b&&!x}),Y=i()(`${r}-ink`,{[`${r}-ink-visible`]:j}),ee=Object.assign(Object.assign({maxHeight:v?`calc(100vh - ${v}px)`:"100vh"},null==D?void 0:D.style),m),te=e=>Array.isArray(e)?e.map((e=>l.createElement(g,Object.assign({replace:T},e,{key:e.key}),"vertical"===E&&te(e.children)))):null,ne=l.createElement("div",{ref:A,className:J,style:ee},l.createElement("div",{className:Q},l.createElement("span",{className:Y,ref:M}),"items"in e?te(S):C));l.useEffect((()=>{const e=F();return V(),null==e||e.addEventListener("scroll",V),()=>{null==e||e.removeEventListener("scroll",V)}}),[X]),l.useEffect((()=>{"function"==typeof Z&&G(Z(L.current||""))}),[Z]),l.useEffect((()=>{(()=>{var e;const t=null===(e=A.current)||void 0===e?void 0:e.querySelector(`.${r}-link-title-active`);if(t&&M.current){const{style:e}=M.current,n="horizontal"===E;e.top=n?"":`${t.offsetTop+t.clientHeight/2}px`,e.height=n?"":`${t.clientHeight}px`,e.left=n?`${t.offsetLeft}px`:"",e.width=n?`${t.clientWidth}px`:"",n&&(0,c.Z)(t,{scrollMode:"if-needed",block:"nearest"})}})()}),[E,Z,X,j]);const oe=l.useMemo((()=>({registerLink:K,unregisterLink:U,scrollTo:q,activeLink:j,onClick:I,direction:E})),[j,I,q,E]);return l.createElement(f.Provider,{value:oe},b?l.createElement(p.Z,{offsetTop:v,target:F},ne):ne)};const E=e=>{const{prefixCls:t,rootClassName:n}=e,{getPrefixCls:o}=l.useContext(u.E_),r=o("anchor",t),[a,c]=C(r);return a(l.createElement(S,Object.assign({},e,{rootClassName:i()(c,n),anchorPrefixCls:r})))};E.Link=g;var P=E},36381:function(e,t,n){n.d(t,{Z:function(){return X}});var o=n(14988),r=n(92310),i=n.n(r),a=n(5891),l=n(26390),c=n(29043),s=n(80665),d=n(71366),p=n(85870),u=n(59301),f=n(19149),g=n(75440),h=n(80962),m=n(43167),v=n(20287),b=u.forwardRef((function(e,t){var n=e.prefixCls,o=e.forceRender,r=e.className,a=e.style,l=e.children,s=e.isActive,d=e.role,p=u.useState(s||o),f=(0,c.Z)(p,2),g=f[0],m=f[1];return u.useEffect((function(){(o||s)&&m(!0)}),[o,s]),g?u.createElement("div",{ref:t,className:i()("".concat(n,"-content"),(0,h.Z)((0,h.Z)({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),r),style:a,role:d},u.createElement("div",{className:"".concat(n,"-content-box")},l)):null}));b.displayName="PanelContent";var x=b,C=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],y=u.forwardRef((function(e,t){var n=e.showArrow,o=void 0===n||n,r=e.headerClass,l=e.isActive,c=e.onItemClick,s=e.forceRender,d=e.className,p=e.prefixCls,g=e.collapsible,b=e.accordion,y=e.panelKey,$=e.extra,k=e.header,S=e.expandIcon,E=e.openMotion,P=e.destroyInactivePanel,w=e.children,I=(0,f.Z)(e,C),N="disabled"===g,O="header"===g,Z="icon"===g,T=null!=$&&"boolean"!=typeof $,B=function(){null==c||c(y)},R="function"==typeof S?S(e):u.createElement("i",{className:"arrow"});R&&(R=u.createElement("div",{className:"".concat(p,"-expand-icon"),onClick:["header","icon"].includes(g)?B:void 0},R));var j=i()((0,h.Z)((0,h.Z)((0,h.Z)({},"".concat(p,"-item"),!0),"".concat(p,"-item-active"),l),"".concat(p,"-item-disabled"),N),d),z={className:i()(r,(0,h.Z)((0,h.Z)((0,h.Z)({},"".concat(p,"-header"),!0),"".concat(p,"-header-collapsible-only"),O),"".concat(p,"-icon-collapsible-only"),Z)),"aria-expanded":l,"aria-disabled":N,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==v.Z.ENTER&&e.which!==v.Z.ENTER||B()}};return O||Z||(z.onClick=B,z.role=b?"tab":"button",z.tabIndex=N?-1:0),u.createElement("div",(0,a.Z)({},I,{ref:t,className:j}),u.createElement("div",z,o&&R,u.createElement("span",{className:"".concat(p,"-header-text"),onClick:"header"===g?B:void 0},k),T&&u.createElement("div",{className:"".concat(p,"-extra")},$)),u.createElement(m.default,(0,a.Z)({visible:l,leavedClassName:"".concat(p,"-content-hidden")},E,{forceRender:s,removeOnLeave:P}),(function(e,t){var n=e.className,o=e.style;return u.createElement(x,{ref:t,prefixCls:p,className:n,style:o,isActive:l,forceRender:s,role:b?"tabpanel":void 0},w)})))})),$=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var k=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,o=t.accordion,r=t.collapsible,i=t.destroyInactivePanel,l=t.onItemClick,c=t.activeKey,s=t.openMotion,d=t.expandIcon;return e.map((function(e,t){var p=e.children,g=e.label,h=e.key,m=e.collapsible,v=e.onItemClick,b=e.destroyInactivePanel,x=(0,f.Z)(e,$),C=String(null!=h?h:t),k=null!=m?m:r,S=null!=b?b:i,E=!1;return E=o?c[0]===C:c.indexOf(C)>-1,u.createElement(y,(0,a.Z)({},x,{prefixCls:n,key:C,panelKey:C,isActive:E,accordion:o,openMotion:s,expandIcon:d,header:g,collapsible:k,onItemClick:function(e){"disabled"!==k&&(l(e),null==v||v(e))},destroyInactivePanel:S}),p)}))}(e,n):(0,g.Z)(t).map((function(e,t){return function(e,t,n){if(!e)return null;var o=n.prefixCls,r=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,c=n.activeKey,s=n.openMotion,d=n.expandIcon,p=e.key||String(t),f=e.props,g=f.header,h=f.headerClass,m=f.destroyInactivePanel,v=f.collapsible,b=f.onItemClick,x=!1;x=r?c[0]===p:c.indexOf(p)>-1;var C=null!=v?v:i,y={key:p,panelKey:p,header:g,headerClass:h,isActive:x,prefixCls:o,destroyInactivePanel:null!=m?m:a,openMotion:s,accordion:r,children:e.props.children,onItemClick:function(e){"disabled"!==C&&(l(e),null==b||b(e))},expandIcon:d,collapsible:C};return"string"==typeof e.type?e:(Object.keys(y).forEach((function(e){void 0===y[e]&&delete y[e]})),u.cloneElement(e,y))}(e,t,n)}))},S=n(47413);function E(e){var t=e;if(!Array.isArray(t)){var n=(0,s.Z)(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var P=u.forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-collapse":n,r=e.destroyInactivePanel,s=void 0!==r&&r,f=e.style,g=e.accordion,h=e.className,m=e.children,v=e.collapsible,b=e.openMotion,x=e.expandIcon,C=e.activeKey,y=e.defaultActiveKey,$=e.onChange,P=e.items,w=i()(o,h),I=(0,d.Z)([],{value:C,onChange:function(e){return null==$?void 0:$(e)},defaultValue:y,postState:E}),N=(0,c.Z)(I,2),O=N[0],Z=N[1];(0,p.ZP)(!m,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var T=k(P,m,{prefixCls:o,accordion:g,openMotion:b,expandIcon:x,collapsible:v,destroyInactivePanel:s,onItemClick:function(e){return Z((function(){return g?O[0]===e?[]:[e]:O.indexOf(e)>-1?O.filter((function(t){return t!==e})):[].concat((0,l.Z)(O),[e])}))},activeKey:O});return u.createElement("div",(0,a.Z)({ref:t,className:w,style:f,role:g?"tablist":void 0},(0,S.Z)(e,{aria:!0,data:!0})),T)})),w=Object.assign(P,{Panel:y}),I=w,N=(w.Panel,n(55405)),O=n(62892),Z=n(92343),T=n(36355),B=n(19716);var R=u.forwardRef(((e,t)=>{const{getPrefixCls:n}=u.useContext(T.E_),{prefixCls:o,className:r,showArrow:a=!0}=e,l=n("collapse",o),c=i()({[`${l}-no-arrow`]:!a},r);return u.createElement(I.Panel,Object.assign({ref:t},e,{prefixCls:l,className:c}))})),j=n(17313),z=n(8378),L=n(83116),A=n(37613);const M=e=>{const{componentCls:t,contentBg:n,padding:o,headerBg:r,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:s,lineType:d,colorBorder:p,colorText:u,colorTextHeading:f,colorTextDisabled:g,fontSize:h,fontSizeLG:m,lineHeight:v,marginSM:b,paddingSM:x,paddingLG:C,paddingXS:y,motionDurationSlow:$,fontSizeIcon:k,contentPadding:S}=e,E=`${s}px ${d} ${p}`;return{[t]:Object.assign(Object.assign({},(0,j.Wf)(e)),{backgroundColor:r,border:E,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:E,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:v,cursor:"pointer",transition:`all ${$}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:h*v,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},(0,j.Ro)()),{fontSize:k,svg:{transition:`transform ${$}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:u,backgroundColor:n,borderTop:E,[`& > ${t}-content-box`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:y,[`> ${t}-expand-icon`]:{marginInlineStart:x-y}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},"&-large":{[`> ${t}-item`]:{fontSize:m,[`> ${t}-header`]:{padding:l,paddingInlineStart:o,[`> ${t}-expand-icon`]:{height:m*v,marginInlineStart:C-o}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},H=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},_=e=>{const{componentCls:t,headerBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},W=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var D=(0,L.Z)("Collapse",(e=>{const t=(0,A.TS)(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[M(t),_(t),W(t),H(t),(0,z.Z)(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const F=u.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:a}=u.useContext(T.E_),{prefixCls:l,className:c,rootClassName:s,style:d,bordered:p=!0,ghost:f,size:h,expandIconPosition:m="start",children:v,expandIcon:b}=e,x=(0,B.Z)((e=>{var t;return null!==(t=null!=h?h:e)&&void 0!==t?t:"middle"})),C=n("collapse",l),y=n(),[$,k]=D(C),S=u.useMemo((()=>"left"===m?"start":"right"===m?"end":m),[m]),E=i()(`${C}-icon-position-${S}`,{[`${C}-borderless`]:!p,[`${C}-rtl`]:"rtl"===r,[`${C}-ghost`]:!!f,[`${C}-${x}`]:"middle"!==x},null==a?void 0:a.className,c,s,k),P=Object.assign(Object.assign({},(0,O.Z)(y)),{motionAppear:!1,leavedClassName:`${C}-content-hidden`}),w=u.useMemo((()=>v?(0,g.Z)(v).map(((e,t)=>{var n,o;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(o=e.key)&&void 0!==o?o:String(t),{disabled:r,collapsible:i}=e.props,a=Object.assign(Object.assign({},(0,N.Z)(e.props,["disabled"])),{key:n,collapsible:null!=i?i:r?"disabled":void 0});return(0,Z.Tm)(e,a)}return e})):null),[v]);return $(u.createElement(I,Object.assign({ref:t,openMotion:P},(0,N.Z)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=b?b(e):u.createElement(o.Z,{rotate:e.isActive?90:void 0});return(0,Z.Tm)(t,(()=>({className:i()(t.props.className,`${C}-arrow`)})))},prefixCls:C,className:E,style:Object.assign(Object.assign({},null==a?void 0:a.style),d)}),w))}));var X=Object.assign(F,{Panel:R})},12563:function(e,t,n){n.d(t,{Z:function(){return P}});var o=n(59301),r=n(51638),i=n(92310),a=n.n(i),l=n(36785),c=n(47729),s=n(14088),d=n(36355),p=n(17313),u=n(37613),f=n(83116);const g=e=>{const{lineWidth:t,fontSizeIcon:n}=e,o=e.fontSizeSM,r=e.lineHeightSM*o+"px";return(0,u.TS)(e,{tagFontSize:o,tagLineHeight:r,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},h=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var m=(0,f.Z)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r}=e,i=o-n,a=t-n;return{[r]:Object.assign(Object.assign({},(0,p.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(g(e))),h),v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,style:n,className:r,checked:i,onChange:l,onClick:c}=e,s=v(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:p,tag:u}=o.useContext(d.E_),f=p("tag",t),[g,h]=m(f),b=a()(f,`${f}-checkable`,{[`${f}-checkable-checked`]:i},null==u?void 0:u.className,r,h);return g(o.createElement("span",Object.assign({},s,{style:Object.assign(Object.assign({},n),null==u?void 0:u.style),className:b,onClick:e=>{null==l||l(!i),null==c||c(e)}})))},x=n(45157);var C=(0,f.b)(["Tag","preset"],(e=>(e=>(0,x.Z)(e,((t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:o,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(g(e))),h);const y=(e,t,n)=>{const o="string"!=typeof(r=n)?r:r.charAt(0).toUpperCase()+r.slice(1);var r;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var $=(0,f.b)(["Tag","status"],(e=>{const t=g(e);return[y(t,"success","Success"),y(t,"processing","Info"),y(t,"error","Error"),y(t,"warning","Warning")]}),h),k=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,className:i,rootClassName:p,style:u,children:f,icon:g,color:h,onClose:v,closeIcon:b,closable:x,bordered:y=!0}=e,S=k(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:E,direction:P,tag:w}=o.useContext(d.E_),[I,N]=o.useState(!0);o.useEffect((()=>{"visible"in S&&N(S.visible)}),[S.visible]);const O=(0,l.o2)(h),Z=(0,l.yT)(h),T=O||Z,B=Object.assign(Object.assign({backgroundColor:h&&!T?h:void 0},null==w?void 0:w.style),u),R=E("tag",n),[j,z]=m(R),L=a()(R,null==w?void 0:w.className,{[`${R}-${h}`]:T,[`${R}-has-color`]:h&&!T,[`${R}-hidden`]:!I,[`${R}-rtl`]:"rtl"===P,[`${R}-borderless`]:!y},i,p,z),A=e=>{e.stopPropagation(),null==v||v(e),e.defaultPrevented||N(!1)},[,M]=(0,c.Z)(x,b,(e=>null===e?o.createElement(r.Z,{className:`${R}-close-icon`,onClick:A}):o.createElement("span",{className:`${R}-close-icon`,onClick:A},e)),null,!1),H="function"==typeof S.onClick||f&&"a"===f.type,_=g||null,W=_?o.createElement(o.Fragment,null,_,f&&o.createElement("span",null,f)):f,D=o.createElement("span",Object.assign({},S,{ref:t,className:L,style:B}),W,M,O&&o.createElement(C,{key:"preset",prefixCls:R}),Z&&o.createElement($,{key:"status",prefixCls:R}));return j(H?o.createElement(s.Z,{component:"Tag"},D):D)},E=o.forwardRef(S);E.CheckableTag=b;var P=E}}]); \ No newline at end of file diff --git a/53823.0199dc3e.async.js b/53823.c35195e5.async.js similarity index 92% rename from 53823.0199dc3e.async.js rename to 53823.c35195e5.async.js index 30f9afe7f8..c1016308ff 100644 --- a/53823.0199dc3e.async.js +++ b/53823.c35195e5.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[53823],{53823:function(e,n,o){var t=o(7557),r=o.n(t),a=o(82242),i=o.n(a),s=o(41498),l=o.n(s),c=o(79800),d=o.n(c),u=o(59301),p=o(78241),m=o(8591),g=o(43418),f=o(61998),b=o(46400),x=o(92832),h=o(25255),v=o(5296),$=o(37712);n.Z=(0,v.connect)((function(e){var n=e.user,o=e.loading;return{user:n,globalSetting:e.globalSetting,loading:o.models.index}}))((function(e){var n=e.dispatch,o=(e.setType,e.data),t=e.accountInfo,a=e.open,s=p.Z.useForm(),c=d()(s,1)[0],y=(0,v.useSearchParams)(),w=d()(y,1)[0],k=(0,v.useLocation)(),S=(0,u.useState)(!1),C=d()(S,2),I=C[0],E=C[1],O=(0,u.useState)(""),Z=d()(O,2),j=(Z[0],Z[1]),N=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;(0,u.useEffect)((function(){E(a)}),[a]);var P=[{title:"IP地址",dataIndex:"ip",key:"ip",render:function(e){return(0,$.jsx)("span",{className:e.indexOf("异常")>-1||e.indexOf("登录")>-1?"c-red":"c-green",children:e})}},{title:"浏览器",dataIndex:"browser",key:"browser",render:function(e){return(0,$.jsx)("span",{className:e.indexOf("异常")>-1||e.indexOf("登录")>-1?"c-red":"c-green",children:e})}},{title:"上次登录时间",dataIndex:"last_login_time",key:"last_login_time"}],B=function(){var e=l()(r()().mark((function e(){var o,a,s,l,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.validateFields();case 2:if(null==t||!t.code){e.next=8;break}return e.next=5,(0,h.Gq)(i()(i()({},t),{},{phone:null==t?void 0:t.login},c.getFieldValue()));case 5:a=e.sent,e.next=11;break;case 8:return e.next=10,(0,h.Es)(i()(i()({},t),c.getFieldValue()));case 10:a=e.sent;case 11:if(!a.status){e.next=18;break}if(-4!==a.status){e.next=16;break}return n({type:"user/showPopLogin",payload:{showPopLogin:!1}}),n({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!0,userInfoForBindAccountModal:a.user,loginInfo:t}}),e.abrupt("return");case 16:return j(null===(s=a)||void 0===s?void 0:s.message),e.abrupt("return");case 18:if(E(!1),null!==(o=a)&&void 0!==o&&o.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null===(l=a)||void 0===l?void 0:l.start_date)):localStorage.removeItem("extension-modal"),"/user/login"!==k.pathname&&"/login"!==k.pathname){e.next=35;break}if(!(d=w.get("form")||w.get("back_url"))){e.next=26;break}window.location.href=decodeURIComponent(d),e.next=33;break;case 26:if(N.test(t.password)||null!=t&&t.code){e.next=31;break}m.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/account/secure",e.next=33;break;case 31:return window.location.href="/",e.abrupt("return");case 33:e.next=43;break;case 35:if(N.test(t.password)||null!=t&&t.code){e.next=41;break}m.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/account/secure?active=3",n({type:"user/showPopLogin",payload:{showPopLogin:!1}}),e.next=43;break;case 41:return window.location.reload(),e.abrupt("return");case 43:c.resetFields();case 44:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,$.jsxs)(g.Z,{title:"登录提示",width:600,onOk:B,onCancel:function(){return E(!1)},centered:!0,keyboard:!1,closable:!1,maskClosable:!1,open:I,children:[(0,$.jsx)("p",{className:"tc",children:"该账号已经存在异常情况,若非本人操作,请联系监考老师说明情况。"}),(0,$.jsx)("div",{className:"mt20",children:(0,$.jsx)(f.Z,{pagination:{hideOnSinglePage:!0},dataSource:o||[],columns:P})}),(0,$.jsx)("div",{className:"mt20 mb20",children:(0,$.jsx)(b.Z,{message:"请监考老师输入的考试解锁码,授权当前学生登录平台。",type:"warning"})}),(0,$.jsx)(p.Z,{name:"global_state",autoComplete:"off",form:c,children:(0,$.jsx)(p.Z.Item,{name:"unlock_key",label:"考试解锁码",rules:[{required:!0,message:"请输入解锁码"}],children:(0,$.jsx)(x.Z.Password,{autoComplete:"off"})})})]})}))},46400:function(e,n,o){o.d(n,{Z:function(){return z}});var t=o(80559),r=o(58670),a=o(51638),i=o(54745),s=o(31855),l=o(92310),c=o.n(l),d=o(43167),u=o(47413),p=o(59301),m=o(92343),g=o(36355),f=o(17313),b=o(83116);const x=(e,n,o,t,r)=>({backgroundColor:e,border:`${t.lineWidth}px ${t.lineType} ${n}`,[`${r}-icon`]:{color:o}}),h=e=>{const{componentCls:n,motionDurationSlow:o,marginXS:t,marginSM:r,fontSize:a,fontSizeLG:i,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:d,colorText:u,colorTextHeading:p,withDescriptionPadding:m,defaultPadding:g}=e;return{[n]:Object.assign(Object.assign({},(0,f.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:g,wordWrap:"break-word",borderRadius:l,[`&${n}-rtl`]:{direction:"rtl"},[`${n}-content`]:{flex:1,minWidth:0},[`${n}-icon`]:{marginInlineEnd:t,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:s},"&-message":{color:p},[`&${n}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${o} ${c}, opacity ${o} ${c},\n padding-top ${o} ${c}, padding-bottom ${o} ${c},\n margin-bottom ${o} ${c}`},[`&${n}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${n}-with-description`]:{alignItems:"flex-start",padding:m,[`${n}-icon`]:{marginInlineEnd:r,fontSize:d,lineHeight:0},[`${n}-message`]:{display:"block",marginBottom:t,color:p,fontSize:i},[`${n}-description`]:{display:"block",color:u}},[`${n}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},v=e=>{const{componentCls:n,colorSuccess:o,colorSuccessBorder:t,colorSuccessBg:r,colorWarning:a,colorWarningBorder:i,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:d,colorInfo:u,colorInfoBorder:p,colorInfoBg:m}=e;return{[n]:{"&-success":x(r,t,o,e,n),"&-info":x(m,p,u,e,n),"&-warning":x(s,i,a,e,n),"&-error":Object.assign(Object.assign({},x(d,c,l,e,n)),{[`${n}-description > pre`]:{margin:0,padding:0}})}}},$=e=>{const{componentCls:n,iconCls:o,motionDurationMid:t,marginXS:r,fontSizeIcon:a,colorIcon:i,colorIconHover:s}=e;return{[n]:{"&-action":{marginInlineStart:r},[`${n}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:a,lineHeight:`${a}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${o}-close`]:{color:i,transition:`color ${t}`,"&:hover":{color:s}}},"&-close-text":{color:i,transition:`color ${t}`,"&:hover":{color:s}}}}},y=e=>[h(e),v(e),$(e)];var w=(0,b.Z)("Alert",(e=>[y(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}))),k=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(t=Object.getOwnPropertySymbols(e);r{const{icon:n,prefixCls:o,type:t}=e,r=S[t]||null;return n?(0,m.wm)(n,p.createElement("span",{className:`${o}-icon`},n),(()=>({className:c()(`${o}-icon`,{[n.props.className]:n.props.className})}))):p.createElement(r,{className:`${o}-icon`})},I=e=>{const{isClosable:n,prefixCls:o,closeIcon:t,handleClose:r}=e,i=!0===t||void 0===t?p.createElement(a.Z,null):t;return n?p.createElement("button",{type:"button",onClick:r,className:`${o}-close-icon`,tabIndex:0},i):null};var E=e=>{const{description:n,prefixCls:o,message:t,banner:r,className:a,rootClassName:i,style:s,onMouseEnter:l,onMouseLeave:m,onClick:f,afterClose:b,showIcon:x,closable:h,closeText:v,closeIcon:$,action:y}=e,S=k(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[E,O]=p.useState(!1);const Z=p.useRef(null),{getPrefixCls:j,direction:N,alert:P}=p.useContext(g.E_),B=j("alert",o),[M,z]=w(B),L=n=>{var o;O(!0),null===(o=e.onClose)||void 0===o||o.call(e,n)},H=p.useMemo((()=>void 0!==e.type?e.type:r?"warning":"info"),[e.type,r]),_=p.useMemo((()=>!!v||("boolean"==typeof h?h:!1!==$&&null!=$)),[v,$,h]),D=!(!r||void 0!==x)||x,A=c()(B,`${B}-${H}`,{[`${B}-with-description`]:!!n,[`${B}-no-icon`]:!D,[`${B}-banner`]:!!r,[`${B}-rtl`]:"rtl"===N},null==P?void 0:P.className,a,i,z),T=(0,u.Z)(S,{aria:!0,data:!0});return M(p.createElement(d.default,{visible:!E,motionName:`${B}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:b},(o=>{let{className:r,style:a}=o;return p.createElement("div",Object.assign({ref:Z,"data-show":!E,className:c()(A,r),style:Object.assign(Object.assign(Object.assign({},null==P?void 0:P.style),s),a),onMouseEnter:l,onMouseLeave:m,onClick:f,role:"alert"},T),D?p.createElement(C,{description:n,icon:e.icon,prefixCls:B,type:H}):null,p.createElement("div",{className:`${B}-content`},t?p.createElement("div",{className:`${B}-message`},t):null,n?p.createElement("div",{className:`${B}-description`},n):null),y?p.createElement("div",{className:`${B}-action`},y):null,p.createElement(I,{isClosable:_,prefixCls:B,closeIcon:v||$,handleClose:L}))})))},O=o(79545),Z=o(68550),j=o(17928),N=o(99487);let P=function(e){(0,j.Z)(o,e);var n=(0,N.Z)(o);function o(){var e;return(0,O.Z)(this,o),(e=n.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,Z.Z)(o,[{key:"componentDidCatch",value:function(e,n){this.setState({error:e,info:n})}},{key:"render",value:function(){const{message:e,description:n,children:o}=this.props,{error:t,info:r}=this.state,a=r&&r.componentStack?r.componentStack:null,i=void 0===e?(t||"").toString():e,s=void 0===n?a:n;return t?p.createElement(E,{type:"error",message:i,description:p.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},s)}):o}}]),o}(p.Component);var B=P;const M=E;M.ErrorBoundary=B;var z=M}}]); \ No newline at end of file +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[53823],{53823:function(e,n,o){var t=o(7557),r=o.n(t),a=o(82242),i=o.n(a),s=o(41498),l=o.n(s),c=o(79800),d=o.n(c),u=o(59301),p=o(78241),m=o(8591),g=o(43418),f=o(61998),b=o(46400),x=o(92832),h=o(25255),v=o(5296),$=o(37712);n.Z=(0,v.connect)((function(e){var n=e.user,o=e.loading;return{user:n,globalSetting:e.globalSetting,loading:o.models.index}}))((function(e){var n=e.dispatch,o=(e.setType,e.data),t=e.accountInfo,a=e.open,s=p.Z.useForm(),c=d()(s,1)[0],y=(0,v.useSearchParams)(),w=d()(y,1)[0],k=(0,v.useLocation)(),S=(0,u.useState)(!1),C=d()(S,2),I=C[0],E=C[1],O=(0,u.useState)(""),Z=d()(O,2),j=(Z[0],Z[1]),N=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;(0,u.useEffect)((function(){E(a)}),[a]);var P=[{title:"IP地址",dataIndex:"ip",key:"ip",render:function(e){return(0,$.jsx)("span",{className:e.indexOf("异常")>-1||e.indexOf("登录")>-1?"c-red":"c-green",children:e})}},{title:"浏览器",dataIndex:"browser",key:"browser",render:function(e){return(0,$.jsx)("span",{className:e.indexOf("异常")>-1||e.indexOf("登录")>-1?"c-red":"c-green",children:e})}},{title:"上次登录时间",dataIndex:"last_login_time",key:"last_login_time"}],B=function(){var e=l()(r()().mark((function e(){var o,a,s,l,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.validateFields();case 2:if(null==t||!t.code){e.next=8;break}return e.next=5,(0,h.Gq)(i()(i()({},t),{},{phone:null==t?void 0:t.login},c.getFieldValue()));case 5:a=e.sent,e.next=11;break;case 8:return e.next=10,(0,h.Es)(i()(i()({},t),c.getFieldValue()));case 10:a=e.sent;case 11:if(!a.status){e.next=18;break}if(-4!==a.status){e.next=16;break}return n({type:"user/showPopLogin",payload:{showPopLogin:!1}}),n({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!0,userInfoForBindAccountModal:a.user,loginInfo:t}}),e.abrupt("return");case 16:return j(null===(s=a)||void 0===s?void 0:s.message),e.abrupt("return");case 18:if(E(!1),null!==(o=a)&&void 0!==o&&o.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null===(l=a)||void 0===l?void 0:l.start_date)):localStorage.removeItem("extension-modal"),"/user/login"!==k.pathname&&"/login"!==k.pathname){e.next=35;break}if(!(d=w.get("form")||w.get("back_url"))){e.next=26;break}window.location.href=decodeURIComponent(d),e.next=33;break;case 26:if(N.test(t.password)||null!=t&&t.code){e.next=31;break}m.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/account/secure",e.next=33;break;case 31:return window.location.href="/",e.abrupt("return");case 33:e.next=43;break;case 35:if(N.test(t.password)||null!=t&&t.code){e.next=41;break}m.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/account/secure?active=3",n({type:"user/showPopLogin",payload:{showPopLogin:!1}}),e.next=43;break;case 41:return window.location.reload(),e.abrupt("return");case 43:c.resetFields();case 44:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,$.jsxs)(g.Z,{title:"登录提示",width:600,onOk:B,onCancel:function(){return E(!1)},centered:!0,keyboard:!1,closable:!1,maskClosable:!1,open:I,children:[(0,$.jsx)("p",{className:"tc",children:"该账号已经存在异常情况,若非本人操作,请联系监考老师说明情况。"}),(0,$.jsx)("div",{className:"mt20",children:(0,$.jsx)(f.Z,{pagination:{hideOnSinglePage:!0},dataSource:o||[],columns:P})}),(0,$.jsx)("div",{className:"mt20 mb20",children:(0,$.jsx)(b.Z,{message:"请监考老师输入的考试解锁码,授权当前学生登录平台。",type:"warning"})}),(0,$.jsx)(p.Z,{name:"global_state",autoComplete:"off",form:c,children:(0,$.jsx)(p.Z.Item,{name:"unlock_key",label:"考试解锁码",rules:[{required:!0,message:"请输入解锁码"}],children:(0,$.jsx)(x.Z.Password,{autoComplete:"off"})})})]})}))},46400:function(e,n,o){o.d(n,{Z:function(){return z}});var t=o(80559),r=o(58670),a=o(51638),i=o(54745),s=o(31855),l=o(92310),c=o.n(l),d=o(43167),u=o(47413),p=o(59301),m=o(92343),g=o(36355),f=o(17313),b=o(83116);const x=(e,n,o,t,r)=>({backgroundColor:e,border:`${t.lineWidth}px ${t.lineType} ${n}`,[`${r}-icon`]:{color:o}}),h=e=>{const{componentCls:n,motionDurationSlow:o,marginXS:t,marginSM:r,fontSize:a,fontSizeLG:i,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:d,colorText:u,colorTextHeading:p,withDescriptionPadding:m,defaultPadding:g}=e;return{[n]:Object.assign(Object.assign({},(0,f.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:g,wordWrap:"break-word",borderRadius:l,[`&${n}-rtl`]:{direction:"rtl"},[`${n}-content`]:{flex:1,minWidth:0},[`${n}-icon`]:{marginInlineEnd:t,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:s},"&-message":{color:p},[`&${n}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${o} ${c}, opacity ${o} ${c},\n padding-top ${o} ${c}, padding-bottom ${o} ${c},\n margin-bottom ${o} ${c}`},[`&${n}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${n}-with-description`]:{alignItems:"flex-start",padding:m,[`${n}-icon`]:{marginInlineEnd:r,fontSize:d,lineHeight:0},[`${n}-message`]:{display:"block",marginBottom:t,color:p,fontSize:i},[`${n}-description`]:{display:"block",color:u}},[`${n}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},v=e=>{const{componentCls:n,colorSuccess:o,colorSuccessBorder:t,colorSuccessBg:r,colorWarning:a,colorWarningBorder:i,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:d,colorInfo:u,colorInfoBorder:p,colorInfoBg:m}=e;return{[n]:{"&-success":x(r,t,o,e,n),"&-info":x(m,p,u,e,n),"&-warning":x(s,i,a,e,n),"&-error":Object.assign(Object.assign({},x(d,c,l,e,n)),{[`${n}-description > pre`]:{margin:0,padding:0}})}}},$=e=>{const{componentCls:n,iconCls:o,motionDurationMid:t,marginXS:r,fontSizeIcon:a,colorIcon:i,colorIconHover:s}=e;return{[n]:{"&-action":{marginInlineStart:r},[`${n}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:a,lineHeight:`${a}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${o}-close`]:{color:i,transition:`color ${t}`,"&:hover":{color:s}}},"&-close-text":{color:i,transition:`color ${t}`,"&:hover":{color:s}}}}},y=e=>[h(e),v(e),$(e)];var w=(0,b.Z)("Alert",(e=>[y(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}))),k=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(t=Object.getOwnPropertySymbols(e);r{const{icon:n,prefixCls:o,type:t}=e,r=S[t]||null;return n?(0,m.wm)(n,p.createElement("span",{className:`${o}-icon`},n),(()=>({className:c()(`${o}-icon`,{[n.props.className]:n.props.className})}))):p.createElement(r,{className:`${o}-icon`})},I=e=>{const{isClosable:n,prefixCls:o,closeIcon:t,handleClose:r}=e,i=!0===t||void 0===t?p.createElement(a.Z,null):t;return n?p.createElement("button",{type:"button",onClick:r,className:`${o}-close-icon`,tabIndex:0},i):null};var E=e=>{const{description:n,prefixCls:o,message:t,banner:r,className:a,rootClassName:i,style:s,onMouseEnter:l,onMouseLeave:m,onClick:f,afterClose:b,showIcon:x,closable:h,closeText:v,closeIcon:$,action:y}=e,S=k(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[E,O]=p.useState(!1);const Z=p.useRef(null),{getPrefixCls:j,direction:N,alert:P}=p.useContext(g.E_),B=j("alert",o),[M,z]=w(B),L=n=>{var o;O(!0),null===(o=e.onClose)||void 0===o||o.call(e,n)},H=p.useMemo((()=>void 0!==e.type?e.type:r?"warning":"info"),[e.type,r]),_=p.useMemo((()=>!!v||("boolean"==typeof h?h:!1!==$&&null!=$)),[v,$,h]),D=!(!r||void 0!==x)||x,A=c()(B,`${B}-${H}`,{[`${B}-with-description`]:!!n,[`${B}-no-icon`]:!D,[`${B}-banner`]:!!r,[`${B}-rtl`]:"rtl"===N},null==P?void 0:P.className,a,i,z),T=(0,u.Z)(S,{aria:!0,data:!0});return M(p.createElement(d.default,{visible:!E,motionName:`${B}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:b},(o=>{let{className:r,style:a}=o;return p.createElement("div",Object.assign({ref:Z,"data-show":!E,className:c()(A,r),style:Object.assign(Object.assign(Object.assign({},null==P?void 0:P.style),s),a),onMouseEnter:l,onMouseLeave:m,onClick:f,role:"alert"},T),D?p.createElement(C,{description:n,icon:e.icon,prefixCls:B,type:H}):null,p.createElement("div",{className:`${B}-content`},t?p.createElement("div",{className:`${B}-message`},t):null,n?p.createElement("div",{className:`${B}-description`},n):null),y?p.createElement("div",{className:`${B}-action`},y):null,p.createElement(I,{isClosable:_,prefixCls:B,closeIcon:v||$,handleClose:L}))})))},O=o(79545),Z=o(68550),j=o(17928),N=o(7711);let P=function(e){(0,j.Z)(o,e);var n=(0,N.Z)(o);function o(){var e;return(0,O.Z)(this,o),(e=n.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,Z.Z)(o,[{key:"componentDidCatch",value:function(e,n){this.setState({error:e,info:n})}},{key:"render",value:function(){const{message:e,description:n,children:o}=this.props,{error:t,info:r}=this.state,a=r&&r.componentStack?r.componentStack:null,i=void 0===e?(t||"").toString():e,s=void 0===n?a:n;return t?p.createElement(E,{type:"error",message:i,description:p.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},s)}):o}}]),o}(p.Component);var B=P;const M=E;M.ErrorBoundary=B;var z=M}}]); \ No newline at end of file diff --git a/57058.45b891d8.async.js b/57058.45b891d8.async.js deleted file mode 100644 index e5e61cd517..0000000000 --- a/57058.45b891d8.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[57058,36270,12236],{680:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(5891),o=n(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},l=n(22589),i=function(e,t){return o.createElement(l.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var c=o.forwardRef(i)},77578:function(e,t,n){n.d(t,{Z:function(){return r}});const r=e=>e?"function"==typeof e?e():e:null},66104:function(e,t,n){n.d(t,{Z:function(){return N}});var r=n(92310),o=n.n(r),a=n(75440),l=n(47413),i=n(59301),c=n(92343),s=n(36355),d=n(78386),p=n(91857);const u=e=>{let{children:t}=e;const{getPrefixCls:n}=i.useContext(s.E_),r=n("breadcrumb");return i.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};u.__ANT_BREADCRUMB_SEPARATOR=!0;var m=u,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(t)return t(n,r,o,a);const i=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,r);return f(e,n,i,l)}}var v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,separator:n="/",children:r,menu:o,overlay:a,dropdownProps:l,href:c}=e;const s=(e=>{if(o||a){const n=Object.assign({},l);if(o){const e=o||{},{items:t}=e,r=v(e,["items"]);n.menu=Object.assign(Object.assign({},r),{items:null==t?void 0:t.map(((e,t)=>{var{key:n,title:r,label:o,path:a}=e,l=v(e,["key","title","label","path"]);let s=null!=o?o:r;return a&&(s=i.createElement("a",{href:`${c}${a}`},s)),Object.assign(Object.assign({},l),{key:null!=n?n:t,label:s})}))})}else a&&(n.overlay=a);return i.createElement(p.Z,Object.assign({placement:"bottom"},n),i.createElement("span",{className:`${t}-overlay-link`},e,i.createElement(d.Z,null)))}return e})(r);return null!=s?i.createElement(i.Fragment,null,i.createElement("li",null,s),n&&i.createElement(m,null,n)):null},y=e=>{const{prefixCls:t,children:n,href:r}=e,o=v(e,["prefixCls","children","href"]),{getPrefixCls:a}=i.useContext(s.E_),l=a("breadcrumb",t);return i.createElement(h,Object.assign({},o,{prefixCls:l}),f(l,o,n,r))};y.__ANT_BREADCRUMB_ITEM=!0;var x=y,$=n(17313),C=n(83116),O=n(37613);const S=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,$.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,$.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var k=(0,C.Z)("Breadcrumb",(e=>{const t=(0,O.TS)(e,{});return[S(t)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{breadcrumbName:t}=e,n=E(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),o}var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,separator:n="/",style:r,className:d,rootClassName:p,routes:u,items:g,children:f,itemRender:v,params:y={}}=e,x=w(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:$,direction:C,breadcrumb:O}=i.useContext(s.E_);let S;const E=$("breadcrumb",t),[I,N]=k(E),P=function(e,t){return(0,i.useMemo)((()=>e||(t?t.map(j):null)),[e,t])}(g,u);const Z=b(E,v);if(P&&P.length>0){const e=[],t=g||u;S=P.map(((r,o)=>{const{path:a,key:c,type:s,menu:d,overlay:p,onClick:u,className:g,separator:f,dropdownProps:b}=r,v=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(y,a);void 0!==v&&e.push(v);const x=null!=c?c:o;if("separator"===s)return i.createElement(m,{key:x},f);const $={},C=o===P.length-1;d?$.menu=d:p&&($.overlay=p);let{href:O}=r;return e.length&&void 0!==v&&(O=`#/${e.join("/")}`),i.createElement(h,Object.assign({key:x},$,(0,l.Z)(r,{data:!0,aria:!0}),{className:g,dropdownProps:b,href:O,separator:C?"":n,onClick:u,prefixCls:E}),Z(r,y,t,e,O))}))}else if(f){const e=(0,a.Z)(f).length;S=(0,a.Z)(f).map(((t,r)=>{if(!t)return t;const o=r===e-1;return(0,c.Tm)(t,{separator:o?"":n,key:r})}))}const z=o()(E,null==O?void 0:O.className,{[`${E}-rtl`]:"rtl"===C},d,p,N),T=Object.assign(Object.assign({},null==O?void 0:O.style),r);return I(i.createElement("nav",Object.assign({className:z,style:T},x),i.createElement("ol",null,S)))};I.Item=x,I.Separator=m;var N=I},36381:function(e,t,n){n.d(t,{Z:function(){return F}});var r=n(14988),o=n(92310),a=n.n(o),l=n(5891),i=n(26390),c=n(29043),s=n(80665),d=n(71366),p=n(85870),u=n(59301),m=n(19149),g=n(75440),f=n(80962),b=n(43167),v=n(20287),h=u.forwardRef((function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,l=e.style,i=e.children,s=e.isActive,d=e.role,p=u.useState(s||r),m=(0,c.Z)(p,2),g=m[0],b=m[1];return u.useEffect((function(){(r||s)&&b(!0)}),[r,s]),g?u.createElement("div",{ref:t,className:a()("".concat(n,"-content"),(0,f.Z)((0,f.Z)({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),o),style:l,role:d},u.createElement("div",{className:"".concat(n,"-content-box")},i)):null}));h.displayName="PanelContent";var y=h,x=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],$=u.forwardRef((function(e,t){var n=e.showArrow,r=void 0===n||n,o=e.headerClass,i=e.isActive,c=e.onItemClick,s=e.forceRender,d=e.className,p=e.prefixCls,g=e.collapsible,h=e.accordion,$=e.panelKey,C=e.extra,O=e.header,S=e.expandIcon,k=e.openMotion,E=e.destroyInactivePanel,j=e.children,w=(0,m.Z)(e,x),I="disabled"===g,N="header"===g,P="icon"===g,Z=null!=C&&"boolean"!=typeof C,z=function(){null==c||c($)},T="function"==typeof S?S(e):u.createElement("i",{className:"arrow"});T&&(T=u.createElement("div",{className:"".concat(p,"-expand-icon"),onClick:["header","icon"].includes(g)?z:void 0},T));var B=a()((0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(p,"-item"),!0),"".concat(p,"-item-active"),i),"".concat(p,"-item-disabled"),I),d),M={className:a()(o,(0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(p,"-header"),!0),"".concat(p,"-header-collapsible-only"),N),"".concat(p,"-icon-collapsible-only"),P)),"aria-expanded":i,"aria-disabled":I,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==v.Z.ENTER&&e.which!==v.Z.ENTER||z()}};return N||P||(M.onClick=z,M.role=h?"tab":"button",M.tabIndex=I?-1:0),u.createElement("div",(0,l.Z)({},w,{ref:t,className:B}),u.createElement("div",M,r&&T,u.createElement("span",{className:"".concat(p,"-header-text"),onClick:"header"===g?z:void 0},O),Z&&u.createElement("div",{className:"".concat(p,"-extra")},C)),u.createElement(b.default,(0,l.Z)({visible:i,leavedClassName:"".concat(p,"-content-hidden")},k,{forceRender:s,removeOnLeave:E}),(function(e,t){var n=e.className,r=e.style;return u.createElement(y,{ref:t,prefixCls:p,className:n,style:r,isActive:i,forceRender:s,role:h?"tabpanel":void 0},j)})))})),C=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var O=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,a=t.destroyInactivePanel,i=t.onItemClick,c=t.activeKey,s=t.openMotion,d=t.expandIcon;return e.map((function(e,t){var p=e.children,g=e.label,f=e.key,b=e.collapsible,v=e.onItemClick,h=e.destroyInactivePanel,y=(0,m.Z)(e,C),x=String(null!=f?f:t),O=null!=b?b:o,S=null!=h?h:a,k=!1;return k=r?c[0]===x:c.indexOf(x)>-1,u.createElement($,(0,l.Z)({},y,{prefixCls:n,key:x,panelKey:x,isActive:k,accordion:r,openMotion:s,expandIcon:d,header:g,collapsible:O,onItemClick:function(e){"disabled"!==O&&(i(e),null==v||v(e))},destroyInactivePanel:S}),p)}))}(e,n):(0,g.Z)(t).map((function(e,t){return function(e,t,n){if(!e)return null;var r=n.prefixCls,o=n.accordion,a=n.collapsible,l=n.destroyInactivePanel,i=n.onItemClick,c=n.activeKey,s=n.openMotion,d=n.expandIcon,p=e.key||String(t),m=e.props,g=m.header,f=m.headerClass,b=m.destroyInactivePanel,v=m.collapsible,h=m.onItemClick,y=!1;y=o?c[0]===p:c.indexOf(p)>-1;var x=null!=v?v:a,$={key:p,panelKey:p,header:g,headerClass:f,isActive:y,prefixCls:r,destroyInactivePanel:null!=b?b:l,openMotion:s,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(i(e),null==h||h(e))},expandIcon:d,collapsible:x};return"string"==typeof e.type?e:(Object.keys($).forEach((function(e){void 0===$[e]&&delete $[e]})),u.cloneElement(e,$))}(e,t,n)}))},S=n(47413);function k(e){var t=e;if(!Array.isArray(t)){var n=(0,s.Z)(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var E=u.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-collapse":n,o=e.destroyInactivePanel,s=void 0!==o&&o,m=e.style,g=e.accordion,f=e.className,b=e.children,v=e.collapsible,h=e.openMotion,y=e.expandIcon,x=e.activeKey,$=e.defaultActiveKey,C=e.onChange,E=e.items,j=a()(r,f),w=(0,d.Z)([],{value:x,onChange:function(e){return null==C?void 0:C(e)},defaultValue:$,postState:k}),I=(0,c.Z)(w,2),N=I[0],P=I[1];(0,p.ZP)(!b,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Z=O(E,b,{prefixCls:r,accordion:g,openMotion:h,expandIcon:y,collapsible:v,destroyInactivePanel:s,onItemClick:function(e){return P((function(){return g?N[0]===e?[]:[e]:N.indexOf(e)>-1?N.filter((function(t){return t!==e})):[].concat((0,i.Z)(N),[e])}))},activeKey:N});return u.createElement("div",(0,l.Z)({ref:t,className:j,style:m,role:g?"tablist":void 0},(0,S.Z)(e,{aria:!0,data:!0})),Z)})),j=Object.assign(E,{Panel:$}),w=j,I=(j.Panel,n(55405)),N=n(62892),P=n(92343),Z=n(36355),z=n(19716);var T=u.forwardRef(((e,t)=>{const{getPrefixCls:n}=u.useContext(Z.E_),{prefixCls:r,className:o,showArrow:l=!0}=e,i=n("collapse",r),c=a()({[`${i}-no-arrow`]:!l},o);return u.createElement(w.Panel,Object.assign({ref:t},e,{prefixCls:i,className:c}))})),B=n(17313),M=n(8378),R=n(83116),H=n(37613);const W=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:l,collapseHeaderPaddingLG:i,collapsePanelBorderRadius:c,lineWidth:s,lineType:d,colorBorder:p,colorText:u,colorTextHeading:m,colorTextDisabled:g,fontSize:f,fontSizeLG:b,lineHeight:v,marginSM:h,paddingSM:y,paddingLG:x,paddingXS:$,motionDurationSlow:C,fontSizeIcon:O,contentPadding:S}=e,k=`${s}px ${d} ${p}`;return{[t]:Object.assign(Object.assign({},(0,B.Wf)(e)),{backgroundColor:o,border:k,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:k,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:m,lineHeight:v,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:f*v,display:"flex",alignItems:"center",paddingInlineEnd:h},[`${t}-arrow`]:Object.assign(Object.assign({},(0,B.Ro)()),{fontSize:O,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:u,backgroundColor:n,borderTop:k,[`& > ${t}-content-box`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:l,paddingInlineStart:$,[`> ${t}-expand-icon`]:{marginInlineStart:y-$}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:b,[`> ${t}-header`]:{padding:i,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:b*v,marginInlineStart:x-r}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:h}}}}})}},A=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},D=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},X=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var _=(0,R.Z)("Collapse",(e=>{const t=(0,H.TS)(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[W(t),D(t),X(t),A(t),(0,M.Z)(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const L=u.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:o,collapse:l}=u.useContext(Z.E_),{prefixCls:i,className:c,rootClassName:s,style:d,bordered:p=!0,ghost:m,size:f,expandIconPosition:b="start",children:v,expandIcon:h}=e,y=(0,z.Z)((e=>{var t;return null!==(t=null!=f?f:e)&&void 0!==t?t:"middle"})),x=n("collapse",i),$=n(),[C,O]=_(x),S=u.useMemo((()=>"left"===b?"start":"right"===b?"end":b),[b]),k=a()(`${x}-icon-position-${S}`,{[`${x}-borderless`]:!p,[`${x}-rtl`]:"rtl"===o,[`${x}-ghost`]:!!m,[`${x}-${y}`]:"middle"!==y},null==l?void 0:l.className,c,s,O),E=Object.assign(Object.assign({},(0,N.Z)($)),{motionAppear:!1,leavedClassName:`${x}-content-hidden`}),j=u.useMemo((()=>v?(0,g.Z)(v).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:a}=e.props,l=Object.assign(Object.assign({},(0,I.Z)(e.props,["disabled"])),{key:n,collapsible:null!=a?a:o?"disabled":void 0});return(0,P.Tm)(e,l)}return e})):null),[v]);return C(u.createElement(w,Object.assign({ref:t,openMotion:E},(0,I.Z)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=h?h(e):u.createElement(r.Z,{rotate:e.isActive?90:void 0});return(0,P.Tm)(t,(()=>({className:a()(t.props.className,`${x}-arrow`)})))},prefixCls:x,className:k,style:Object.assign(Object.assign({},null==l?void 0:l.style),d)}),j))}));var F=Object.assign(L,{Panel:T})},28103:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(92310),o=n.n(r),a=n(59301),l=n(36355),i=n(17313),c=n(83116),s=n(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:l,verticalMarginInline:c}=e;return{[t]:Object.assign(Object.assign({},(0,i.Wf)(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:c,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*l+"%"},"&::after":{width:100-100*l+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*l+"%"},"&::after":{width:100*l+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var p=(0,c.Z)("Divider",(e=>{const t=(0,s.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:r}=a.useContext(l.E_),{prefixCls:i,type:c="horizontal",orientation:s="center",orientationMargin:d,className:m,rootClassName:g,children:f,dashed:b,plain:v,style:h}=e,y=u(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",i),[$,C]=p(x),O=s.length>0?`-${s}`:s,S=!!f,k="left"===s&&null!=d,E="right"===s&&null!=d,j=o()(x,null==r?void 0:r.className,C,`${x}-${c}`,{[`${x}-with-text`]:S,[`${x}-with-text${O}`]:S,[`${x}-dashed`]:!!b,[`${x}-plain`]:!!v,[`${x}-rtl`]:"rtl"===n,[`${x}-no-default-orientation-margin-left`]:k,[`${x}-no-default-orientation-margin-right`]:E},m,g),w=a.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),I=Object.assign(Object.assign({},k&&{marginLeft:w}),E&&{marginRight:w});return $(a.createElement("div",Object.assign({className:j,style:Object.assign(Object.assign({},null==r?void 0:r.style),h)},y,{role:"separator"}),f&&"vertical"!==c&&a.createElement("span",{className:`${x}-inner-text`,style:I},f)))}},39722:function(e,t,n){n.d(t,{t5:function(){return p}});var r=n(92310),o=n.n(r),a=n(55477),l=n(59301),i=n(36355),c=n(77578),s=n(17356),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{hashId:t,prefixCls:n,className:r,style:i,placement:s="top",title:d,content:p,children:u}=e;return l.createElement("div",{className:o()(t,n,`${n}-pure`,`${n}-placement-${s}`,r),style:i},l.createElement("div",{className:`${n}-arrow`}),l.createElement(a.G,Object.assign({},e,{className:t,prefixCls:n}),u||((e,t,n)=>{if(t||n)return l.createElement(l.Fragment,null,t&&l.createElement("div",{className:`${e}-title`},(0,c.Z)(t)),l.createElement("div",{className:`${e}-inner-content`},(0,c.Z)(n)))})(n,d,p)))};t.ZP=e=>{const{prefixCls:t}=e,n=d(e,["prefixCls"]),{getPrefixCls:r}=l.useContext(i.E_),o=r("popover",t),[a,c]=(0,s.Z)(o);return a(l.createElement(p,Object.assign({},n,{prefixCls:o,hashId:c})))}},60324:function(e,t,n){var r=n(92310),o=n.n(r),a=n(59301),l=n(77578),i=n(62892),c=n(36355),s=n(6848),d=n(39722),p=n(17356),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:r}=e;return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${r}-title`},(0,l.Z)(t)),a.createElement("div",{className:`${r}-inner-content`},(0,l.Z)(n)))},g=a.forwardRef(((e,t)=>{const{prefixCls:n,title:r,content:l,overlayClassName:d,placement:g="top",trigger:f="hover",mouseEnterDelay:b=.1,mouseLeaveDelay:v=.1,overlayStyle:h={}}=e,y=u(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:x}=a.useContext(c.E_),$=x("popover",n),[C,O]=(0,p.Z)($),S=x(),k=o()(d,O);return C(a.createElement(s.Z,Object.assign({placement:g,trigger:f,mouseEnterDelay:b,mouseLeaveDelay:v,overlayStyle:h},y,{prefixCls:$,overlayClassName:k,ref:t,overlay:r||l?a.createElement(m,{prefixCls:$,title:r,content:l}):null,transitionName:(0,i.m)(S,"zoom-big",y.transitionName),"data-popover-inject":!0})))}));g._InternalPanelDoNotUseOrYouWillBeFired=d.ZP,t.Z=g},17356:function(e,t,n){var r=n(17313),o=n(29878),a=n(19447),l=n(33166),i=n(83116),c=n(37613);const s=e=>{const{componentCls:t,popoverColor:n,minWidth:o,fontWeightStrong:l,popoverPadding:i,boxShadowSecondary:c,colorTextHeading:s,borderRadiusLG:d,zIndexPopup:p,marginXS:u,colorBgElevated:m,popoverBg:g}=e;return[{[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:p,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":m,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:g,backgroundClip:"padding-box",borderRadius:d,boxShadow:c,padding:i},[`${t}-title`]:{minWidth:o,marginBottom:u,color:s,fontWeight:l},[`${t}-inner-content`]:{color:n}})},(0,a.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},d=e=>{const{componentCls:t}=e;return{[t]:l.i.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},p=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:a,controlHeight:l,fontSize:i,lineHeight:c,padding:s}=e,d=l-Math.round(i*c);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d/2}px ${s}px ${d/2-n}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${a}px ${s}px`}}}};t.Z=(0,i.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,a=(0,c.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[s(a),d(a),r&&p(a),(0,o._y)(a,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},31797:function(e,t,n){n.d(t,{Z:function(){return $}});var r=n(59301),o=n(56762),a=n(92343),l=n(92310),i=n.n(l),c=n(36355),s=n(96865);var d=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:a,groupSeparator:l="",prefixCls:i}=e;let c;if("function"==typeof n)c=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",s=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,l),"number"==typeof o&&(s=s.padEnd(o,"0").slice(0,o>0?o:0)),s&&(s=`${a}${s}`),c=[r.createElement("span",{key:"int",className:`${i}-content-value-int`},e,t),s&&r.createElement("span",{key:"decimal",className:`${i}-content-value-decimal`},s)]}else c=e}return r.createElement("span",{className:`${i}-content-value`},c)},p=n(17313),u=n(83116),m=n(37613);const g=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:o,titleFontSize:a,colorTextHeading:l,contentFontSize:i,fontFamily:c}=e;return{[`${t}`]:Object.assign(Object.assign({},(0,p.Wf)(e)),{[`${t}-title`]:{marginBottom:n,color:o,fontSize:a},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:l,fontSize:i,fontFamily:c,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}};var f=(0,u.Z)("Statistic",(e=>{const t=(0,m.TS)(e,{});return[g(t)]}),(e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}}));var b=e=>{const{prefixCls:t,className:n,rootClassName:o,style:a,valueStyle:l,value:p=0,title:u,valueRender:m,prefix:g,suffix:b,loading:v=!1,onMouseEnter:h,onMouseLeave:y,decimalSeparator:x=".",groupSeparator:$=","}=e,{getPrefixCls:C,direction:O,statistic:S}=r.useContext(c.E_),k=C("statistic",t),[E,j]=f(k),w=r.createElement(d,Object.assign({decimalSeparator:x,groupSeparator:$,prefixCls:k},e,{value:p})),I=i()(k,{[`${k}-rtl`]:"rtl"===O},null==S?void 0:S.className,n,o,j);return E(r.createElement("div",{className:I,style:Object.assign(Object.assign({},null==S?void 0:S.style),a),onMouseEnter:h,onMouseLeave:y},u&&r.createElement("div",{className:`${k}-title`},u),r.createElement(s.Z,{paragraph:!1,loading:v,className:`${k}-skeleton`},r.createElement("div",{style:l,className:`${k}-content`},g&&r.createElement("span",{className:`${k}-content-prefix`},g),m?m(w):w,b&&r.createElement("span",{className:`${k}-content-suffix`},b)))))};const v=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function h(e,t){const{format:n=""}=t,r=new Date(e).getTime(),o=Date.now();return function(e,t){let n=e;const r=/\[[^\]]*]/g,o=(t.match(r)||[]).map((e=>e.slice(1,-1))),a=t.replace(r,"[]"),l=v.reduce(((e,t)=>{let[r,o]=t;if(e.includes(r)){const t=Math.floor(n/o);return n-=t*o,e.replace(new RegExp(`${r}+`,"g"),(e=>{const n=e.length;return t.toString().padStart(n,"0")}))}return e}),a);let i=0;return l.replace(r,(()=>{const e=o[i];return i+=1,e}))}(Math.max(r-o,0),n)}const y=e=>{const{value:t,format:n="HH:mm:ss",onChange:l,onFinish:i}=e,c=(0,o.Z)(),s=r.useRef(null),d=()=>{const e=function(e){return new Date(e).getTime()}(t);e>=Date.now()&&(s.current=setInterval((()=>{c(),null==l||l(e-Date.now()),e(d(),()=>{s.current&&(clearInterval(s.current),s.current=null)})),[t]);return r.createElement(b,Object.assign({},e,{valueRender:e=>(0,a.Tm)(e,{title:void 0}),formatter:(e,t)=>h(e,Object.assign(Object.assign({},t),{format:n}))}))};var x=r.memo(y);b.Countdown=x;var $=b},12563:function(e,t,n){n.d(t,{Z:function(){return E}});var r=n(59301),o=n(51638),a=n(92310),l=n.n(a),i=n(36785),c=n(47729),s=n(14088),d=n(36355),p=n(17313),u=n(37613),m=n(83116);const g=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=e.lineHeightSM*r+"px";return(0,u.TS)(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},f=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var b=(0,m.Z)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,l=t-n;return{[o]:Object.assign(Object.assign({},(0,p.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(g(e))),f),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,style:n,className:o,checked:a,onChange:i,onClick:c}=e,s=v(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:p,tag:u}=r.useContext(d.E_),m=p("tag",t),[g,f]=b(m),h=l()(m,`${m}-checkable`,{[`${m}-checkable-checked`]:a},null==u?void 0:u.className,o,f);return g(r.createElement("span",Object.assign({},s,{style:Object.assign(Object.assign({},n),null==u?void 0:u.style),className:h,onClick:e=>{null==i||i(!a),null==c||c(e)}})))},y=n(45157);var x=(0,m.b)(["Tag","preset"],(e=>(e=>(0,y.Z)(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:l}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(g(e))),f);const $=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var C=(0,m.b)(["Tag","status"],(e=>{const t=g(e);return[$(t,"success","Success"),$(t,"processing","Info"),$(t,"error","Error"),$(t,"warning","Warning")]}),f),O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:a,rootClassName:p,style:u,children:m,icon:g,color:f,onClose:v,closeIcon:h,closable:y,bordered:$=!0}=e,S=O(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:k,direction:E,tag:j}=r.useContext(d.E_),[w,I]=r.useState(!0);r.useEffect((()=>{"visible"in S&&I(S.visible)}),[S.visible]);const N=(0,i.o2)(f),P=(0,i.yT)(f),Z=N||P,z=Object.assign(Object.assign({backgroundColor:f&&!Z?f:void 0},null==j?void 0:j.style),u),T=k("tag",n),[B,M]=b(T),R=l()(T,null==j?void 0:j.className,{[`${T}-${f}`]:Z,[`${T}-has-color`]:f&&!Z,[`${T}-hidden`]:!w,[`${T}-rtl`]:"rtl"===E,[`${T}-borderless`]:!$},a,p,M),H=e=>{e.stopPropagation(),null==v||v(e),e.defaultPrevented||I(!1)},[,W]=(0,c.Z)(y,h,(e=>null===e?r.createElement(o.Z,{className:`${T}-close-icon`,onClick:H}):r.createElement("span",{className:`${T}-close-icon`,onClick:H},e)),null,!1),A="function"==typeof S.onClick||m&&"a"===m.type,D=g||null,X=D?r.createElement(r.Fragment,null,D,m&&r.createElement("span",null,m)):m,_=r.createElement("span",Object.assign({},S,{ref:t,className:R,style:z}),X,W,N&&r.createElement(x,{key:"preset",prefixCls:T}),P&&r.createElement(C,{key:"status",prefixCls:T}));return B(A?r.createElement(s.Z,{component:"Tag"},_):_)},k=r.forwardRef(S);k.CheckableTag=h;var E=k}}]); \ No newline at end of file diff --git a/57930.2daf4412.async.js b/57930.2daf4412.async.js new file mode 100644 index 0000000000..e915825003 --- /dev/null +++ b/57930.2daf4412.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[57930],{57930:function(e,n,t){t.d(n,{default:function(){return kt}});var r=t(61186),a=t.n(r),o=t(85870),l=t(90111),i=t.n(l),c=t(58319),u=t.n(c),s=t(23250),d=t.n(s),f=t(74959),p=t.n(f),g=t(10238),v=t.n(g),m=t(33656),h=t.n(m);a().extend(h()),a().extend(v()),a().extend(i()),a().extend(u()),a().extend(d()),a().extend(p()),a().extend((function(e,n){var t=n.prototype,r=t.format;t.format=function(e){var n=(e||"").replace("Wo","wo");return r.bind(this)(n)}}));var b={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},C=function(e){return b[e]||e.split("_")[0]},w=function(){(0,o.ET)(!1,"Not match any format. Please help to fire a issue about this.")},$={getNow:function(){return a()()},getFixedDate:function(e){return a()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var n=e.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},addYear:function(e,n){return e.add(n,"year")},addMonth:function(e,n){return e.add(n,"month")},addDate:function(e,n){return e.add(n,"day")},setYear:function(e,n){return e.year(n)},setMonth:function(e,n){return e.month(n)},setDate:function(e,n){return e.date(n)},setHour:function(e,n){return e.hour(n)},setMinute:function(e,n){return e.minute(n)},setSecond:function(e,n){return e.second(n)},isAfter:function(e,n){return e.isAfter(n)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return a()().locale(C(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,n){return n.locale(C(e)).weekday(0)},getWeek:function(e,n){return n.locale(C(e)).week()},getShortWeekDays:function(e){return a()().locale(C(e)).localeData().weekdaysMin()},getShortMonths:function(e){return a()().locale(C(e)).localeData().monthsShort()},format:function(e,n,t){return n.locale(C(e)).format(t)},parse:function(e,n,t){for(var r=C(e),o=0;o3&&void 0!==arguments[3]?arguments[3]:1;switch(n){case"year":return t.addYear(e,10*r);case"quarter":case"month":return t.addYear(e,r);default:return t.addMonth(e,r)}}function ce(e,n){var t=n.generateConfig,r=n.locale,a=n.format;return"function"==typeof a?a(e):t.locale.format(r.locale,e,a)}function ue(e,n){var t=n.generateConfig,r=n.locale,a=n.formatList;return e&&"function"!=typeof a[0]?t.locale.parse(r.locale,e,a):null}function se(e){var n=e.cellDate,t=e.mode,r=e.disabledDate,a=e.generateConfig;if(!r)return!1;var o=function(e,t,o){for(var l=t;l<=o;){var i=void 0;switch(e){case"date":if(i=a.setDate(n,l),!r(i))return!1;break;case"month":if(!se({cellDate:i=a.setMonth(n,l),mode:"month",generateConfig:a,disabledDate:r}))return!1;break;case"year":if(!se({cellDate:i=a.setYear(n,l),mode:"year",generateConfig:a,disabledDate:r}))return!1}l+=1}return!0};switch(t){case"date":case"week":return r(n);case"month":return o("date",1,a.getDate(a.getEndDate(n)));case"quarter":var l=3*Math.floor(a.getMonth(n)/3);return o("month",l,l+2);case"year":return o("month",0,11);case"decade":var i=a.getYear(n),c=Math.floor(i/G)*G;return o("year",c,c+G-1)}}function de(e,n){var t=n.formatList,r=n.generateConfig,a=n.locale;return(0,_.Z)((function(){if(!e)return[[""],""];for(var n="",o=[],l=0;l1&&void 0!==arguments[1]&&arguments[1];cancelAnimationFrame(u.current),n?c(e):u.current=requestAnimationFrame((function(){c(e)}))}var d=de(i,{formatList:t,generateConfig:r,locale:a}),f=(0,z.Z)(d,2)[1];function p(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s(null,e)}return(0,x.useEffect)((function(){p(!0)}),[e]),(0,x.useEffect)((function(){return function(){return cancelAnimationFrame(u.current)}}),[]),[f,function(e){s(e)},p]}var pe=t(20287),ge=t(71783),ve=t(26390),me=t(57840),he=new Map;function be(e,n,t){if(he.get(e)&&cancelAnimationFrame(he.get(e)),t<=0)he.set(e,requestAnimationFrame((function(){e.scrollTop=n})));else{var r=(n-e.scrollTop)/t*10;he.set(e,requestAnimationFrame((function(){e.scrollTop+=r,e.scrollTop!==n&&be(e,n,t-10)})))}}function Ce(e,n){var t=n.onLeftRight,r=n.onCtrlLeftRight,a=n.onUpDown,o=n.onPageUpDown,l=n.onEnter,i=e.which,c=e.ctrlKey,u=e.metaKey;switch(i){case pe.Z.LEFT:if(c||u){if(r)return r(-1),!0}else if(t)return t(-1),!0;break;case pe.Z.RIGHT:if(c||u){if(r)return r(1),!0}else if(t)return t(1),!0;break;case pe.Z.UP:if(a)return a(-1),!0;break;case pe.Z.DOWN:if(a)return a(1),!0;break;case pe.Z.PAGE_UP:if(o)return o(-1),!0;break;case pe.Z.PAGE_DOWN:if(o)return o(1),!0;break;case pe.Z.ENTER:if(l)return l(),!0}return!1}function we(e,n,t,r){var a=e;if(!a)switch(n){case"time":a=r?"hh:mm:ss a":"HH:mm:ss";break;case"week":a="gggg-wo";break;case"month":a="YYYY-MM";break;case"quarter":a="YYYY-[Q]Q";break;case"year":a="YYYY";break;default:a=t?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return a}function $e(e,n,t){var r="time"===e?8:10,a="function"==typeof n?n(t.getNow()).length:n.length;return Math.max(r,a)+2}var ye=null,ke=new Set;var xe={year:function(e){return"month"===e||"date"===e?"year":e},month:function(e){return"date"===e?"month":e},quarter:function(e){return"month"===e||"date"===e?"quarter":e},week:function(e){return"date"===e?"week":e},time:null,date:null};function Ee(e,n){return e.some((function(e){return e&&e.contains(n)}))}function Ze(e){var n=e.open,t=e.value,r=e.isClickOutside,a=e.triggerOpen,o=e.forwardKeyDown,l=e.onKeyDown,i=e.blurToCancel,c=e.onSubmit,u=e.onCancel,s=e.onFocus,d=e.onBlur,f=e.changeOnBlur,p=(0,x.useState)(!1),g=(0,z.Z)(p,2),v=g[0],m=g[1],h=(0,x.useState)(!1),b=(0,z.Z)(h,2),C=b[0],w=b[1],$=(0,x.useRef)(!1),y=(0,x.useRef)(!1),k=(0,x.useRef)(!1),E={onMouseDown:function(){m(!0),a(!0)},onKeyDown:function(e){if(l(e,(function(){k.current=!0})),!k.current){switch(e.which){case pe.Z.ENTER:return n?!1!==c()&&m(!0):a(!0),void e.preventDefault();case pe.Z.TAB:return void(v&&n&&!e.shiftKey?(m(!1),e.preventDefault()):!v&&n&&!o(e)&&e.shiftKey&&(m(!0),e.preventDefault()));case pe.Z.ESC:return m(!0),void u()}n||[pe.Z.SHIFT].includes(e.which)?v||o(e):a(!0)}},onFocus:function(e){m(!0),w(!0),s&&s(e)},onBlur:function(e){!$.current&&r(document.activeElement)?(i?setTimeout((function(){for(var e=document.activeElement;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;r(e)&&u()}),0):n&&(a(!1),y.current&&c()),w(!1),null==d||d(e)):$.current=!1}};return(0,x.useEffect)((function(){y.current=!1}),[n]),(0,x.useEffect)((function(){y.current=!0}),[t]),(0,x.useEffect)((function(){return e=function(e){var t=function(e){var n,t=e.target;return e.composed&&t.shadowRoot&&(null===(n=e.composedPath)||void 0===n?void 0:n.call(e)[0])||t}(e),o=r(t);n&&(o?f||C&&!o||a(!1):($.current=!0,(0,ge.Z)((function(){$.current=!1}))))},!ye&&"undefined"!=typeof window&&window.addEventListener&&(ye=function(e){(0,ve.Z)(ke).forEach((function(n){n(e)}))},window.addEventListener("mousedown",ye)),ke.add(e),function(){ke.delete(e),0===ke.size&&(window.removeEventListener("mousedown",ye),ye=null)};var e})),[E,{focused:C,typing:v}]}function Se(e,n){return x.useMemo((function(){return e||(n?((0,o.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(n).map((function(e){var n=(0,z.Z)(e,2);return{label:n[0],value:n[1]}}))):[])}),[e,n])}var De=t(19171);function Re(e){var n=e.valueTexts,t=e.onTextChange,r=x.useState(""),a=(0,z.Z)(r,2),o=a[0],l=a[1],i=x.useRef([]);function c(){l(i.current[0])}return i.current=n,(0,De.Z)((function(){n.every((function(e){return e!==o}))&&c()}),[n.join("||")]),[o,function(e){l(e),t(e)},c]}var Ne=x.createContext({}),Me=t(80665);function Pe(e){var n=e.cellRender,t=e.monthCellRender,r=e.dateRender;return x.useMemo((function(){return n||(t||r?function(e,n){var a=e;return r&&"date"===n.type?r(a,n.today):t&&"month"===n.type?t(a,n.locale):n.originNode}:void 0)}),[n,t,r])}function Ie(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length1&&(l=n.addDate(l,-7)),l}(a.locale,t,l),g="".concat(n,"-cell"),v=t.locale.getWeekFirstDay(a.locale),m=t.getNow(),h=[],b=a.shortWeekDays||(t.locale.getShortWeekDays?t.locale.getShortWeekDays(a.locale):[]);r&&h.push(x.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var C=0;C<7;C+=1)h.push(x.createElement("th",{key:C},b[(C+v)%7]));var w=Te({cellPrefixCls:g,today:m,value:i,generateConfig:t,rangedValue:r?null:d,hoverRangedValue:r?null:f,isSameCell:u||function(e,n){return re(t,e,n)},isInView:function(e){return te(t,e,l)},offsetCell:function(e,n){return t.addDate(e,n)}}),$=c?function(e,n){return c(e,{originNode:n,today:m,type:"date",locale:a})}:void 0;return x.createElement(je,(0,k.Z)({},e,{rowNum:o,colNum:7,baseDate:p,getCellNode:$,getCellText:t.getDate,getCellClassName:w,getCellDate:t.addDate,titleCell:function(e){return ce(e,{locale:a,format:"YYYY-MM-DD",generateConfig:t})},headerCells:h}))},ze={visibility:"hidden"};var Ke=function(e){var n=e.prefixCls,t=e.prevIcon,r=void 0===t?"‹":t,a=e.nextIcon,o=void 0===a?"›":a,l=e.superPrevIcon,i=void 0===l?"«":l,c=e.superNextIcon,u=void 0===c?"»":c,s=e.onSuperPrev,d=e.onSuperNext,f=e.onPrev,p=e.onNext,g=e.children,v=x.useContext(Ne),m=v.hideNextBtn,h=v.hidePrevBtn;return x.createElement("div",{className:n},s&&x.createElement("button",{type:"button",onClick:s,tabIndex:-1,className:"".concat(n,"-super-prev-btn"),style:h?ze:{}},i),f&&x.createElement("button",{type:"button",onClick:f,tabIndex:-1,className:"".concat(n,"-prev-btn"),style:h?ze:{}},r),x.createElement("div",{className:"".concat(n,"-view")},g),p&&x.createElement("button",{type:"button",onClick:p,tabIndex:-1,className:"".concat(n,"-next-btn"),style:m?ze:{}},o),d&&x.createElement("button",{type:"button",onClick:d,tabIndex:-1,className:"".concat(n,"-super-next-btn"),style:m?ze:{}},u))};var Ue=function(e){var n=e.prefixCls,t=e.generateConfig,r=e.locale,a=e.viewDate,o=e.onNextMonth,l=e.onPrevMonth,i=e.onNextYear,c=e.onPrevYear,u=e.onYearClick,s=e.onMonthClick;if(x.useContext(Ne).hideHeader)return null;var d="".concat(n,"-header"),f=r.shortMonths||(t.locale.getShortMonths?t.locale.getShortMonths(r.locale):[]),p=t.getMonth(a),g=x.createElement("button",{type:"button",key:"year",onClick:u,tabIndex:-1,className:"".concat(n,"-year-btn")},ce(a,{locale:r,format:r.yearFormat,generateConfig:t})),v=x.createElement("button",{type:"button",key:"month",onClick:s,tabIndex:-1,className:"".concat(n,"-month-btn")},r.monthFormat?ce(a,{locale:r,format:r.monthFormat,generateConfig:t}):f[p]),m=r.monthBeforeYear?[v,g]:[g,v];return x.createElement(Ke,(0,k.Z)({},e,{prefixCls:d,onSuperPrev:c,onPrev:l,onNext:o,onSuperNext:i}),m)};var _e=function(e){var n=e.prefixCls,t=e.panelName,r=void 0===t?"date":t,a=e.keyboardConfig,o=e.active,l=e.operationRef,i=e.generateConfig,c=e.value,u=e.viewDate,s=e.onViewDateChange,d=e.onPanelChange,f=e.onSelect,p="".concat(n,"-").concat(r,"-panel");l.current={onKeyDown:function(e){return Ce(e,(0,F.Z)({onLeftRight:function(e){f(i.addDate(c||u,e),"key")},onCtrlLeftRight:function(e){f(i.addYear(c||u,e),"key")},onUpDown:function(e){f(i.addDate(c||u,7*e),"key")},onPageUpDown:function(e){f(i.addMonth(c||u,e),"key")}},a))}};var g=function(e){var n=i.addYear(u,e);s(n),d(null,n)},v=function(e){var n=i.addMonth(u,e);s(n),d(null,n)};return x.createElement("div",{className:W()(p,(0,j.Z)({},"".concat(p,"-active"),o))},x.createElement(Ue,(0,k.Z)({},e,{prefixCls:n,value:c,viewDate:u,onPrevYear:function(){g(-1)},onNextYear:function(){g(1)},onPrevMonth:function(){v(-1)},onNextMonth:function(){v(1)},onMonthClick:function(){d("month",u)},onYearClick:function(){d("year",u)}})),x.createElement(Fe,(0,k.Z)({},e,{onSelect:function(e){return f(e,"mouse")},prefixCls:n,value:c,viewDate:u,rowCount:6})))};var qe=function(e){if(x.useContext(Ne).hideHeader)return null;var n=e.prefixCls,t=e.generateConfig,r=e.locale,a=e.value,o=e.format,l="".concat(n,"-header");return x.createElement(Ke,{prefixCls:l},a?ce(a,{locale:r,format:o,generateConfig:t}):" ")};var Ge=function(e){var n=e.prefixCls,t=e.units,r=e.onSelect,a=e.value,o=e.active,l=e.hideDisabledOptions,i=e.info,c=e.type,u="".concat(n,"-cell"),s=x.useContext(Ne).open,d=(0,x.useRef)(null),f=(0,x.useRef)(new Map),p=(0,x.useRef)();return(0,x.useLayoutEffect)((function(){var e=f.current.get(a);e&&!1!==s&&be(d.current,e.offsetTop,120)}),[a]),(0,x.useLayoutEffect)((function(){if(s){var e=f.current.get(a);e&&(p.current=(n=e,t=function(){be(d.current,e.offsetTop,0)},function e(){(0,me.Z)(n)?t():r=(0,ge.Z)((function(){e()}))}(),function(){ge.Z.cancel(r)}))}var n,t,r;return function(){var e;null===(e=p.current)||void 0===e||e.call(p)}}),[s]),x.createElement("ul",{className:W()("".concat(n,"-column"),(0,j.Z)({},"".concat(n,"-column-active"),o)),ref:d,style:{position:"relative"}},t.map((function(e){var n;return l&&e.disabled?null:x.createElement("li",{key:e.value,ref:function(n){f.current.set(e.value,n)},className:W()(u,(n={},(0,j.Z)(n,"".concat(u,"-disabled"),e.disabled),(0,j.Z)(n,"".concat(u,"-selected"),a===e.value),n)),onClick:function(){e.disabled||r(e.value)}},i.cellRender?i.cellRender(e.value,{today:i.today,locale:i.locale,originNode:x.createElement("div",{className:"".concat(u,"-inner")},e.label),type:"time",subType:c}):x.createElement("div",{className:"".concat(u,"-inner")},e.label))})))};function Xe(e,n){if(e.length!==n.length)return!0;for(var t=0;t=1?0|t:1,l=e;l<=n;l+=o)a.push({label:Ie(l,2),value:l,disabled:(r||[]).includes(l)});return a}var Je=function(e){var n,t=e.generateConfig,r=e.prefixCls,a=e.operationRef,o=e.activeColumnIndex,l=e.value,i=e.showHour,c=e.showMinute,u=e.showSecond,s=e.use12Hours,d=e.hourStep,f=void 0===d?1:d,p=e.minuteStep,g=void 0===p?1:p,v=e.secondStep,m=void 0===v?1:v,h=e.disabledHours,b=e.disabledMinutes,C=e.disabledSeconds,w=e.disabledTime,$=e.hideDisabledOptions,y=e.onSelect,k=e.cellRender,E=e.locale,Z=[],S="".concat(r,"-content"),D="".concat(r,"-time-panel"),R=l?t.getHour(l):-1,N=R,M=l?t.getMinute(l):-1,P=l?t.getSecond(l):-1,I=t.getNow(),Y=x.useMemo((function(){if(w){var e=w(I);return[e.disabledHours,e.disabledMinutes,e.disabledSeconds]}return[h,b,C]}),[h,b,C,w,I]),H=(0,z.Z)(Y,3),O=H[0],W=H[1],T=H[2],A=Qe(0,23,f,O&&O()),B=(0,_.Z)((function(){return A}),A,Xe);s&&(n=N>=12,N%=12);var L=x.useMemo((function(){if(!s)return[!1,!1];var e=[!0,!0];return B.forEach((function(n){var t=n.disabled,r=n.value;t||(r>=12?e[1]=!1:e[0]=!1)})),e}),[s,B]),V=(0,z.Z)(L,2),j=V[0],K=V[1],U=x.useMemo((function(){return s?B.filter(n?function(e){return e.value>=12}:function(e){return e.value<12}).map((function(e){var n=e.value%12,t=0===n?"12":Ie(n,2);return(0,F.Z)((0,F.Z)({},e),{},{label:t,value:n})})):B}),[s,n,B]),q=Qe(0,59,g,W&&W(R)),G=Qe(0,59,m,T&&T(R,M)),X=function(e){var n=e.value,t=e.generateConfig,r=e.disabledMinutes,a=e.disabledSeconds,o=e.minutes,l=e.seconds,i=e.use12Hours;return function(e,c,u,s){var d=t.getNow(),f=n||d,p=c<0?t.getHour(d):c,g=u<0?t.getMinute(d):u,v=s<0?t.getSecond(d):s,m=r&&r(p);if(null!=m&&m.includes(g)){var h=o.find((function(e){return!m.includes(e.value)}));if(!h)return null;g=h.value}var b=a&&a(p,g);if(null!=b&&b.includes(v)){var C=l.find((function(e){return!b.includes(e.value)}));if(!C)return null;v=C.value}return Be(t,f,i&&e?p+12:p,g,v)}}({value:l,generateConfig:t,disabledMinutes:W,disabledSeconds:T,minutes:q,seconds:G,use12Hours:s});function Q(e,n,t,r,a){!1!==e&&Z.push({node:x.cloneElement(n,{prefixCls:D,value:t,active:o===Z.length,onSelect:a,units:r,hideDisabledOptions:$}),onSelect:a,value:t,units:r})}a.current={onUpDown:function(e){var n=Z[o];if(n)for(var t=n.units.findIndex((function(e){return e.value===n.value})),r=n.units.length,a=1;a2&&void 0!==arguments[2]&&arguments[2];(Ze===h||t)&&(me(e),S&&S(e),ne&&ne(e,n),!D||oe(u,e,ve)||null!=g&&g(e)||D(e))},We=function(e){if(se.current&&se.current.onKeyDown){var n=!0,t=e.which;if([pe.Z.LEFT,pe.Z.RIGHT,pe.Z.UP,pe.Z.DOWN,pe.Z.PAGE_UP,pe.Z.PAGE_DOWN,pe.Z.ENTER].includes(t)&&(e.preventDefault(),t!==pe.Z.ENTER&&0===C&&(n=function(e){if(wn.includes(Ze)){var n,t,r="date"===Ze;switch(t=e===pe.Z.PAGE_UP||e===pe.Z.PAGE_DOWN?r?u.addMonth:u.addYear:r?u.addDate:u.addMonth,e){case pe.Z.LEFT:case pe.Z.PAGE_UP:n=t(Ce,-1);break;case pe.Z.RIGHT:case pe.Z.PAGE_DOWN:n=t(Ce,1);break;case pe.Z.UP:case pe.Z.DOWN:n=t(Ce,Number("".concat(e===pe.Z.UP?"-":"").concat(r?7:3)))}if(n)return!(null!=g&&g(n))}return!0}(t))),n)return se.current.onKeyDown(e)}return(0,o.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1};ee&&"right"!==ie&&(ee.current={onKeyDown:We,onClose:function(){se.current&&se.current.onClose&&se.current.onClose()}}),x.useEffect((function(){s&&!de.current&&we(s)}),[s]),x.useEffect((function(){de.current=!1}),[]);var Te,Ve,je,Fe=Pe({cellRender:_,monthCellRender:U,dateRender:V}),ze=(0,F.Z)((0,F.Z)({},e),{},{cellRender:Fe,operationRef:se,prefixCls:a,viewDate:Ce,value:ve,onViewDateChange:$e,sourceMode:Ye,onPanelChange:function(e,n){var t=ye(e||Ze);He(Ze),Se(t),R&&(Ze!==t||oe(u,Ce,Ce))&&R(n,t)},disabledDate:g});switch(delete ze.onChange,delete ze.onSelect,Ze){case"decade":De=x.createElement(on,(0,k.Z)({},ze,{onSelect:function(e,n){$e(e),Oe(e,n)}}));break;case"year":De=x.createElement(hn,(0,k.Z)({},ze,{onSelect:function(e,n){$e(e),Oe(e,n)}}));break;case"month":De=x.createElement(un,(0,k.Z)({},ze,{onSelect:function(e,n){$e(e),Oe(e,n)}}));break;case"quarter":De=x.createElement(fn,(0,k.Z)({},ze,{onSelect:function(e,n){$e(e),Oe(e,n)}}));break;case"week":De=x.createElement(pn,(0,k.Z)({},ze,{onSelect:function(e,n){$e(e),Oe(e,n)}}));break;case"time":delete ze.showTime,De=x.createElement(en,(0,k.Z)({},ze,"object"===(0,Me.Z)($)?$:null,{onSelect:function(e,n){$e(e),Oe(e,n)}}));break;default:De=$?x.createElement(tn,(0,k.Z)({},ze,{onSelect:function(e,n){$e(e),Oe(e,n)}})):x.createElement(_e,(0,k.Z)({},ze,{onSelect:function(e,n){$e(e),Oe(e,n)}}))}if(te||(Te=bn(a,Ze,E),Ve=$&&"date"!==Ze?null:Cn({prefixCls:a,components:I,needConfirmButton:q,okDisabled:!ve||g&&g(ve),locale:c,showNow:w,onNow:q&&function(){var e=u.getNow(),n=function(e,n,t,r,a,o){var l=Math.floor(e/r)*r;if(lf(u);case"month":return d(e)>d(u);case"week":return s(e)>s(u);default:return!re(i,e,u)&&i.isAfter(e,u)}return!1}),[o,l[1],u,n]),x.useCallback((function(e){if(l[1]||o&&o(e))return!0;if(l[0]&&c)return!re(i,e,u)&&i.isAfter(c,e);if(!n&&c)switch(t){case"quarter":return f(e)0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;On&&Et&&Et[0]&&Et[1]&&m.isAfter(Et[1],Et[0])&&(r=Et);var a=Z;if(Z&&"object"===(0,Me.Z)(Z)&&Z.defaultValue){var o=Z.defaultValue;a=(0,F.Z)((0,F.Z)({},Z),{},{defaultValue:He(o,Wn)||void 0})}return x.createElement(Ae.Provider,{value:{inRange:!0,panelPosition:n,rangedValue:$t||mn,hoverRangedValue:r}},x.createElement($n,(0,k.Z)({},e,t,{cellRender:or,showTime:a,mode:kn[Wn],generateConfig:m,style:void 0,direction:Ve,disabledDate:0===Wn?Fn:zn,disabledTime:function(e){return!!O&&O(e,0===Wn?"start":"end")},className:W()((0,j.Z)({},"".concat(i,"-panel-focused"),0===Wn?!qt:!nr)),value:He(mn,Wn),locale:h,tabIndex:-1,onPanelChange:function(e,t){0===Wn&&Mt(!0),1===Wn&&Ot(!0),Dn(Oe(kn,t,Wn),Oe(mn,e,Wn));var r=e;"right"===n&&kn[Wn]===t&&(r=ie(r,t,m,-1)),pn(r,Wn)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:He(mn,0===Wn?1:0)})))}var cr=0,ur=0;if(Wn&&Ge.current&&Qe.current&&qe.current&&nn.current){cr=Ge.current.offsetWidth+Qe.current.offsetWidth;var sr=nn.current.offsetLeft>cr?nn.current.offsetLeft-cr:nn.current.offsetLeft,dr=qe.current.offsetWidth,fr=nn.current.offsetWidth;dr&&fr&&cr>dr-fr-("rtl"===Ve?0:sr)&&(ur=cr)}var pr="rtl"===Ve?{right:cr}:{left:cr};var gr,vr=x.createElement("div",{className:W()("".concat(i,"-range-wrapper"),"".concat(i,"-").concat(E,"-range-wrapper")),style:{minWidth:_n}},x.createElement("div",{ref:nn,className:"".concat(i,"-range-arrow"),style:pr}),function(){var e,n=bn(i,kn[Wn],se),t=Cn({prefixCls:i,components:Be,needConfirmButton:Ue,okDisabled:!He(mn,Wn)||H&&H(mn[Wn]),locale:h,onOk:function(){He(mn,Wn)&&(Xn(mn,Wn),null==We||We(mn),An(!1,Wn,"confirm"))}});if("time"===E||Z)e=ir();else{var r=fn(Wn),a=ie(r,E,m),o=kn[Wn]===E,l=ir(!!o&&"left",{pickerValue:r,onPickerValueChange:function(e){pn(e,Wn)}}),c=ir("right",{pickerValue:a,onPickerValueChange:function(e){pn(ie(e,E,m,-1),Wn)}});e="rtl"===Ve?x.createElement(x.Fragment,null,c,o&&l):x.createElement(x.Fragment,null,l,o&&c)}var u=x.createElement("div",{className:"".concat(i,"-panel-layout")},x.createElement(En,{prefixCls:i,presets:lr,onClick:function(e){Xn(e,null),An(!1,Wn,"preset")},onHover:function(e){yt(e)}}),x.createElement("div",null,x.createElement("div",{className:"".concat(i,"-panels")},e),(n||t)&&x.createElement("div",{className:"".concat(i,"-footer")},n,t)));return L&&(u=L(u)),x.createElement("div",{className:"".concat(i,"-panel-container"),style:{marginLeft:ur},ref:qe,onMouseDown:function(e){e.preventDefault()}},u)}());X&&(gr=x.createElement("span",{className:"".concat(i,"-suffix"),onMouseDown:function(e){e.preventDefault()}},X));var mr=Zn(i,G,Q),hr=x.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation();var n=cn;an[0]||(n=Oe(n,null,0)),an[1]||(n=Oe(n,null,1)),Xn(n,null),An(!1,Wn,"clear")},className:"".concat(i,"-clear"),role:"button"},mr),br=G&&(He(cn,0)&&!an[0]||He(cn,1)&&!an[1]),Cr={size:$e(E,tn[0],m)},wr=0,$r=0;Ge.current&&Xe.current&&Qe.current&&(0===Wn?$r=Ge.current.offsetWidth:(wr=cr,$r=Xe.current.offsetWidth));var yr="rtl"===Ve?{right:wr}:{left:wr};return x.createElement(Ne.Provider,{value:{operationRef:rn,hideHeader:"time"===E,onDateMouseEnter:function(e){Zt(Oe(mn,e,Wn)),0===Wn?Nt(e):Ht(e)},onDateMouseLeave:function(){Zt(Oe(mn,null,Wn)),0===Wn?Mt():Ot()},hideRanges:!0,onSelect:function(e,n){var t=Oe(mn,e,Wn);"submit"===n||"key"!==n&&!Ue?(Xn(t,Wn),0===Wn?Mt():Ot(),an[0===Wn?1:0]?An(!1,!1,"confirm"):An(!1,Wn,"confirm")):hn(t)},open:On}},x.createElement(xn,{visible:On,popupElement:vr,popupStyle:d,prefixCls:i,dropdownClassName:f,dropdownAlign:g,getPopupContainer:v,transitionName:p,range:!0,direction:Ve},x.createElement("div",(0,k.Z)({ref:_e,className:W()(i,"".concat(i,"-range"),s,(n={},(0,j.Z)(n,"".concat(i,"-disabled"),an[0]&&an[1]),(0,j.Z)(n,"".concat(i,"-focused"),0===Wn?_t:er),(0,j.Z)(n,"".concat(i,"-rtl"),"rtl"===Ve),n)),style:u,onClick:function(e){Ie&&Ie(e),On||Je.current.contains(e.target)||en.current.contains(e.target)||(an[0]?an[1]||Gn(1):Gn(0))},onMouseEnter:xe,onMouseLeave:De,onMouseDown:function(e){ye&&ye(e),!On||!_t&&!er||Je.current.contains(e.target)||en.current.contains(e.target)||e.preventDefault()},onMouseUp:ke},(0,U.Z)(e,{aria:!0,data:!0})),x.createElement("div",{className:W()("".concat(i,"-input"),(t={},(0,j.Z)(t,"".concat(i,"-input-active"),0===Wn),(0,j.Z)(t,"".concat(i,"-input-placeholder"),!!Rt),t)),ref:Ge},x.createElement("input",(0,k.Z)({id:c,disabled:an[0],readOnly:te||"function"==typeof tn[0]||!qt,value:Rt||dt,onChange:function(e){ft(e.target.value)},autoFocus:C,placeholder:He(b,0)||"",ref:Je},Kt,Cr,{autoComplete:ze}))),x.createElement("div",{className:"".concat(i,"-range-separator"),ref:Qe},R),x.createElement("div",{className:W()("".concat(i,"-input"),(r={},(0,j.Z)(r,"".concat(i,"-input-active"),1===Wn),(0,j.Z)(r,"".concat(i,"-input-placeholder"),!!Yt),r)),ref:Xe},x.createElement("input",(0,k.Z)({disabled:an[1],readOnly:te||"function"==typeof tn[0]||!nr,value:Yt||mt,onChange:function(e){ht(e.target.value)},placeholder:He(b,1)||"",ref:en},Qt,Cr,{autoComplete:ze}))),x.createElement("div",{className:"".concat(i,"-active-bar"),style:(0,F.Z)((0,F.Z)({},yr),{},{width:$r,position:"absolute"})}),gr,br&&hr)))}var Wn=function(e){(0,L.Z)(t,e);var n=(0,V.Z)(t);function t(){var e;(0,T.Z)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o{const{lineHeight:a}=e,o=Math.floor(t*a)+2,l=Math.max((n-o)/2,0);return{padding:`${l}px ${r}px ${Math.max(n-o-l,0)}px`}},at=e=>{const{componentCls:n,pickerCellCls:t,pickerCellInnerCls:r,cellHeight:a,motionDurationSlow:o,borderRadiusSM:l,motionDurationMid:i,cellHoverBg:c,lineWidth:u,lineType:s,colorPrimary:d,cellActiveWithRangeBg:f,colorTextLightSolid:p,controlHeightSM:g,cellRangeBorderColor:v,pickerCellBorderGap:m,cellHoverWithRangeBg:h,cellWidth:b,colorTextDisabled:C,cellBgDisabled:w}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:a,transform:"translateY(-50%)",transition:`all ${o}`,content:'""'},[r]:{position:"relative",zIndex:2,display:"inline-block",minWidth:a,height:a,lineHeight:`${a}px`,borderRadius:l,transition:`background ${i}, border ${i}`},"&-range-hover-start, &-range-hover-end":{[r]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${t}-in-view),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-range-hover-start):not(${t}-range-hover-end)`]:{[r]:{background:c}},[`&-in-view${t}-today ${r}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${u}px ${s} ${d}`,borderRadius:l,content:'""'}},[`&-in-view${t}-in-range`]:{position:"relative","&::before":{background:f}},[`&-in-view${t}-selected ${r},\n &-in-view${t}-range-start ${r},\n &-in-view${t}-range-end ${r}`]:{color:p,background:d},[`&-in-view${t}-range-start:not(${t}-range-start-single),\n &-in-view${t}-range-end:not(${t}-range-end-single)`]:{"&::before":{background:f}},[`&-in-view${t}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-hover-start:not(${t}-in-range):not(${t}-range-start):not(${t}-range-end),\n &-in-view${t}-range-hover-end:not(${t}-in-range):not(${t}-range-start):not(${t}-range-end),\n &-in-view${t}-range-hover-start${t}-range-start-single,\n &-in-view${t}-range-hover-start${t}-range-start${t}-range-end${t}-range-end-near-hover,\n &-in-view${t}-range-hover-end${t}-range-start${t}-range-end${t}-range-start-near-hover,\n &-in-view${t}-range-hover-end${t}-range-end-single,\n &-in-view${t}-range-hover:not(${t}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:g,borderTop:`${u}px dashed ${v}`,borderBottom:`${u}px dashed ${v}`,transform:"translateY(-50%)",transition:`all ${o}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:m},[`&-in-view${t}-in-range${t}-range-hover::before,\n &-in-view${t}-in-range${t}-range-hover-start::before,\n &-in-view${t}-in-range${t}-range-hover-end::before,\n &-in-view${t}-range-start${t}-range-hover::before,\n &-in-view${t}-range-end${t}-range-hover::before,\n &-in-view${t}-range-start:not(${t}-range-start-single)${t}-range-hover-start::before,\n &-in-view${t}-range-end:not(${t}-range-end-single)${t}-range-hover-end::before,\n ${n}-panel\n > :not(${n}-date-panel)\n &-in-view${t}-in-range${t}-range-hover-start::before,\n ${n}-panel\n > :not(${n}-date-panel)\n &-in-view${t}-in-range${t}-range-hover-end::before`]:{background:h},[`&-in-view${t}-range-start:not(${t}-range-start-single):not(${t}-range-end) ${r}`]:{borderStartStartRadius:l,borderEndStartRadius:l,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-end-single):not(${t}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:l,borderEndEndRadius:l},[`&-range-hover${t}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${t}-range-hover:first-child::after,\n tr > &-in-view${t}-range-hover-end:first-child::after,\n &-in-view${t}-start${t}-range-hover-edge-start${t}-range-hover-edge-start-near-range::after,\n &-in-view${t}-range-hover-edge-start:not(${t}-range-hover-edge-start-near-range)::after,\n &-in-view${t}-range-hover-start::after`]:{insetInlineStart:(b-a)/2,borderInlineStart:`${u}px dashed ${v}`,borderStartStartRadius:l,borderEndStartRadius:l},[`tr > &-in-view${t}-range-hover:last-child::after,\n tr > &-in-view${t}-range-hover-start:last-child::after,\n &-in-view${t}-end${t}-range-hover-edge-end${t}-range-hover-edge-end-near-range::after,\n &-in-view${t}-range-hover-edge-end:not(${t}-range-hover-edge-end-near-range)::after,\n &-in-view${t}-range-hover-end::after`]:{insetInlineEnd:(b-a)/2,borderInlineEnd:`${u}px dashed ${v}`,borderStartEndRadius:l,borderEndEndRadius:l},"&-disabled":{color:C,pointerEvents:"none",[r]:{background:"transparent"},"&::before":{background:w}},[`&-disabled${t}-today ${r}::before`]:{borderColor:C}}},ot=e=>{const{componentCls:n,pickerCellCls:t,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:o,cellWidth:l,paddingSM:i,paddingXS:c,paddingXXS:u,colorBgContainer:s,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:g,colorTextHeading:v,colorSplit:m,pickerControlIconBorderWidth:h,colorIcon:b,textHeight:C,motionDurationMid:w,colorIconHover:$,fontWeightStrong:y,cellHeight:k,pickerCellPaddingVertical:x,colorTextDisabled:E,colorText:Z,fontSize:S,cellHoverWithRangeBg:D,motionDurationSlow:R,withoutTimeCellHeight:N,pickerQuarterPanelContentHeight:M,colorLink:P,colorLinkActive:I,colorLinkHover:Y,cellRangeBorderColor:H,borderRadiusSM:O,colorTextLightSolid:W,cellHoverBg:T,timeColumnHeight:A,timeColumnWidth:B,timeCellHeight:L,controlItemBgActive:V,marginXXS:j,pickerDatePanelPaddingHorizontal:F}=e,z=7*l+2*F,K=(z-2*c)/3-a-i,U=(z-2*c)/4-a;return{[n]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:s,border:`${d}px ${f} ${m}`,borderRadius:p,outline:"none","&-focused":{borderColor:g},"&-rtl":{direction:"rtl",[`${n}-prev-icon,\n ${n}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${n}-next-icon,\n ${n}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:z},"&-header":{display:"flex",padding:`0 ${c}px`,color:v,borderBottom:`${d}px ${f} ${m}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:`${C}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:S,"&:hover":{color:$}},"&-view":{flex:"auto",fontWeight:y,lineHeight:`${C}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:g}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:h,borderBlockEndWidth:0,borderInlineStartWidth:h,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(o/2),insetInlineStart:Math.ceil(o/2),display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:h,borderBlockEndWidth:0,borderInlineStartWidth:h,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:k,fontWeight:"normal"},th:{height:k+2*x,color:Z,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${x}px 0`,color:E,cursor:"pointer","&-in-view":{color:Z}},at(e)),[`&-date-panel ${n}-cell-in-view${n}-cell-in-range${n}-cell-range-hover-start ${r},\n &-date-panel ${n}-cell-in-view${n}-cell-in-range${n}-cell-range-hover-end ${r}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:D,transition:`all ${R}`,content:'""'}},[`&-date-panel\n ${n}-cell-in-view${n}-cell-in-range${n}-cell-range-hover-start\n ${r}::after`]:{insetInlineEnd:-(l-k)/2,insetInlineStart:0},[`&-date-panel ${n}-cell-in-view${n}-cell-in-range${n}-cell-range-hover-end ${r}::after`]:{insetInlineEnd:0,insetInlineStart:-(l-k)/2},[`&-range-hover${n}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${n}-content`]:{height:4*N},[r]:{padding:`0 ${c}px`}},"&-quarter-panel":{[`${n}-content`]:{height:M},[`${n}-cell-range-hover-start::after`]:{insetInlineStart:U,borderInlineStart:`${d}px dashed ${H}`,[`${n}-panel-rtl &`]:{insetInlineEnd:U,borderInlineEnd:`${d}px dashed ${H}`}},[`${n}-cell-range-hover-end::after`]:{insetInlineEnd:U,borderInlineEnd:`${d}px dashed ${H}`,[`${n}-panel-rtl &`]:{insetInlineStart:U,borderInlineStart:`${d}px dashed ${H}`}}},[`&-panel ${n}-footer`]:{borderTop:`${d}px ${f} ${m}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:C-2*d+"px",textAlign:"center","&-extra":{padding:`0 ${i}px`,lineHeight:C-2*d+"px",textAlign:"start","&:not(:last-child)":{borderBottom:`${d}px ${f} ${m}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:P,"&:hover":{color:Y},"&:active":{color:I},[`&${n}-today-btn-disabled`]:{color:E,cursor:"not-allowed"}},"&-decade-panel":{[r]:{padding:`0 ${c/2}px`},[`${n}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${n}-body`]:{padding:`0 ${c}px`},[r]:{width:a},[`${n}-cell-range-hover-start::after`]:{borderStartStartRadius:O,borderEndStartRadius:O,borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:O,borderEndEndRadius:O}},[`${n}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:O,borderEndEndRadius:O,[`${n}-panel-rtl &`]:{borderStartStartRadius:O,borderEndStartRadius:O,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${n}-cell-range-hover-start::after`]:{insetInlineStart:K,borderInlineStart:`${d}px dashed ${H}`,[`${n}-panel-rtl &`]:{insetInlineEnd:K,borderInlineEnd:`${d}px dashed ${H}`}},[`${n}-cell-range-hover-end::after`]:{insetInlineEnd:K,borderInlineEnd:`${d}px dashed ${H}`,[`${n}-panel-rtl &`]:{insetInlineStart:K,borderInlineStart:`${d}px dashed ${H}`}}},"&-week-panel":{[`${n}-body`]:{padding:`${c}px ${i}px`},[`${n}-cell`]:{[`&:hover ${r},\n &-selected ${r},\n ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:O,borderEndStartRadius:O},"&:last-child:before":{borderStartEndRadius:O,borderEndEndRadius:O}},"&:hover td":{"&:before":{background:T}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${t}`]:{"&:before":{background:g},[`&${n}-cell-week`]:{color:new _n.C(W).setAlpha(.5).toHexString()},[r]:{color:W}}},"&-range-hover td:before":{background:V}}},"&-date-panel":{[`${n}-body`]:{padding:`${c}px ${F}px`},[`${n}-content`]:{width:7*l,th:{width:l,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${n}-time-panel`]:{borderInlineStart:`${d}px ${f} ${m}`},[`${n}-date-panel,\n ${n}-time-panel`]:{transition:`opacity ${R}`},"&-active":{[`${n}-date-panel,\n ${n}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${n}-content`]:{display:"flex",flex:"auto",height:A},"&-column":{flex:"1 0 auto",width:B,margin:`${u}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::after":{display:"block",height:A-L,content:'""'},"&:not(:first-child)":{borderInlineStart:`${d}px ${f} ${m}`},"&-active":{background:new _n.C(V).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${n}-time-panel-cell`]:{marginInline:j,[`${n}-time-panel-cell-inner`]:{display:"block",width:B-2*j,height:L,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(B-L)/2,color:Z,lineHeight:`${L}px`,borderRadius:O,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:T}},"&-selected":{[`${n}-time-panel-cell-inner`]:{background:V}},"&-disabled":{[`${n}-time-panel-cell-inner`]:{color:E,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${n}-time-panel-column:after`]:{height:A-L+2*u}}}},lt=e=>{const{componentCls:n,colorBgContainer:t,colorError:r,errorActiveShadow:a,colorWarning:o,warningActiveShadow:l}=e;return{[`${n}:not(${n}-disabled)`]:{[`&${n}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:t,borderColor:r},[`&${n}-focused, &:focus`]:Object.assign({},(0,qn.M1)((0,nt.TS)(e,{activeBorderColor:r,activeShadow:a}))),[`${n}-active-bar`]:{background:r}},[`&${n}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:t,borderColor:o},[`&${n}-focused, &:focus`]:Object.assign({},(0,qn.M1)((0,nt.TS)(e,{activeBorderColor:o,activeShadow:l}))),[`${n}-active-bar`]:{background:o}}}}},it=e=>{const{componentCls:n,antCls:t,controlHeight:r,fontSize:a,paddingInline:o,colorBgContainer:l,lineWidth:i,lineType:c,colorBorder:u,borderRadius:s,motionDurationMid:d,colorBgContainerDisabled:f,colorTextDisabled:p,colorTextPlaceholder:g,controlHeightLG:v,fontSizeLG:m,controlHeightSM:h,paddingInlineSM:b,paddingXS:C,marginXS:w,colorTextDescription:$,lineWidthBold:y,lineHeight:k,colorPrimary:x,motionDurationSlow:E,zIndexPopup:Z,paddingXXS:S,paddingSM:D,textHeight:R,cellActiveWithRangeBg:N,colorPrimaryBorder:M,sizePopupArrow:P,borderRadiusXS:I,borderRadiusOuter:Y,colorBgElevated:H,borderRadiusLG:O,boxShadowSecondary:W,borderRadiusSM:T,colorSplit:A,cellHoverBg:B,presetsWidth:L,presetsMaxWidth:V,boxShadowPopoverArrow:j,colorTextQuaternary:F}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},(0,Gn.Wf)(e)),rt(e,r,a,o)),{position:"relative",display:"inline-flex",alignItems:"center",background:l,lineHeight:1,border:`${i}px ${c} ${u}`,borderRadius:s,transition:`border ${d}, box-shadow ${d}`,"&:hover, &-focused":Object.assign({},(0,qn.pU)(e)),"&-focused":Object.assign({},(0,qn.M1)(e)),[`&${n}-disabled`]:{background:f,borderColor:u,cursor:"not-allowed",[`${n}-suffix`]:{color:F}},[`&${n}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,qn.ik)(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${n}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:g}}},"&-large":Object.assign(Object.assign({},rt(e,v,m,o)),{[`${n}-input > input`]:{fontSize:m}}),"&-small":Object.assign({},rt(e,h,a,b)),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:C/2,color:p,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:p,lineHeight:1,background:l,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${d}, color ${d}`,"> *":{verticalAlign:"top"},"&:hover":{color:$}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:m,color:p,fontSize:m,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:$},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-clear`]:{insetInlineEnd:o},"&:hover":{[`${n}-clear`]:{opacity:1}},[`${n}-active-bar`]:{bottom:-i,height:y,marginInlineStart:o,background:x,opacity:0,transition:`all ${E} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${C}px`,lineHeight:1},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:b},[`${n}-active-bar`]:{marginInlineStart:b}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Gn.Wf)(e)),ot(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Z,[`&${n}-dropdown-hidden`]:{display:"none"},[`&${n}-dropdown-placement-bottomLeft`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topRight,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Jn.Qt},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomRight,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Jn.fJ},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Jn.ly},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Jn.Uw},[`${n}-panel > ${n}-time-panel`]:{paddingTop:S},[`${n}-ranges`]:{marginBottom:0,padding:`${S}px ${D}px`,overflow:"hidden",lineHeight:R-2*i-C/2+"px",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${n}-preset > ${t}-tag-blue`]:{color:x,background:N,borderColor:M,cursor:"pointer"},[`${n}-ok`]:{marginInlineStart:"auto"}},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:1.5*o,transition:`left ${E} ease-out`},(0,Xn.r)(P,I,Y,H,j)),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:H,borderRadius:O,boxShadow:W,transition:`margin ${E}`,[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:L,maxWidth:V,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:C,borderInlineEnd:`${i}px ${c} ${A}`,li:Object.assign(Object.assign({},Gn.vS),{borderRadius:T,paddingInline:C,paddingBlock:(h-Math.round(a*k))/2,cursor:"pointer",transition:`all ${E}`,"+ li":{marginTop:w},"&:hover":{background:B}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${n}-panel`]:{borderWidth:`0 0 ${i}px`},"&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content,\n table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:2*P/3+"px 0","&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"rotate(180deg)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Jn.oN)(e,"slide-up"),(0,Jn.oN)(e,"slide-down"),(0,et.Fm)(e,"move-up"),(0,et.Fm)(e,"move-down")]};var ct=(0,tt.Z)("DatePicker",(e=>{const n=(0,nt.TS)((0,qn.e5)(e),(e=>{const{componentCls:n,controlHeightLG:t,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerYearMonthCellWidth:1.5*t,pickerQuarterPanelContentHeight:1.4*t,pickerCellPaddingVertical:r+r/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:a+r/2}})(e));return[it(n),lt(n),(0,Qn.c)(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>Object.assign(Object.assign(Object.assign({},(0,qn.TM)(e)),(e=>({cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new _n.C(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new _n.C(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:e.colorBgContainerDisabled,timeColumnWidth:1.4*e.controlHeightLG,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*e.controlHeightSM,cellHeight:e.controlHeightSM,textHeight:e.controlHeightLG,withoutTimeCellHeight:1.65*e.controlHeightLG}))(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})));function ut(e,n,t){return void 0!==t?t:"year"===n&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===n&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===n&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===n&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===n&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function st(e,n,t){return void 0!==t?t:"year"===n&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===n&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===n&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===n&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===n&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function dt(e,n){const t={adjustX:1,adjustY:1};switch(n){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:t};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:t};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:t};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:t};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:t}}}function ft(e){const{format:n,picker:t,showHour:r,showMinute:a,showSecond:o,use12Hours:l}=e,i=(c=n,c?Array.isArray(c)?c:[c]:[])[0];var c;const u=Object.assign({},e);return n&&Array.isArray(n)&&(u.format=i),i&&"string"==typeof i&&(i.includes("s")||void 0!==o||(u.showSecond=!1),i.includes("m")||void 0!==a||(u.showMinute=!1),i.includes("H")||i.includes("h")||i.includes("K")||i.includes("k")||void 0!==r||(u.showHour=!1),(i.includes("a")||i.includes("A"))&&void 0===l&&(u.use12Hours=!0)),"time"===t?u:("function"==typeof i&&delete u.format,{showTime:u})}function pt(e,n,t){if(!1===e)return!1;const r={clearIcon:null!=n?n:t};return"object"==typeof e?Object.assign(Object.assign({},r),e):r}var gt=t(3113);var vt={button:function(e){return x.createElement(gt.ZP,Object.assign({size:"small",type:"primary"},e))}},mt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const{prefixCls:o,getPopupContainer:l,style:i,className:c,rootClassName:u,size:s,bordered:d=!0,placement:f,placeholder:p,popupClassName:g,dropdownClassName:v,disabled:m,status:h,clearIcon:b,allowClear:C}=t,w=ht(t,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:$,direction:y,getPopupContainer:k,[r]:E}=(0,x.useContext)(Ln.E_),Z=$("picker",o),{compactSize:S,compactItemClassnames:R}=(0,Kn.ri)(Z,y),N=x.useRef(null),{format:I,showTime:Y}=t,[H,O]=ct(Z);(0,x.useImperativeHandle)(a,(()=>({focus:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.focus()},blur:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.blur()}})));let T={};n&&(T.picker=n);const A=n||t.picker;T=Object.assign(Object.assign(Object.assign({},T),Y?ft(Object.assign({format:I,picker:A},Y)):{}),"time"===A?ft(Object.assign(Object.assign({format:I},t),{picker:A})):{});const B=$(),L=(0,jn.Z)((e=>{var n;return null!==(n=null!=s?s:S)&&void 0!==n?n:e})),V=x.useContext(Vn.Z),j=null!=m?m:V,F=(0,x.useContext)(Fn.aM),{hasFeedback:z,status:K,feedbackIcon:U}=F,_=x.createElement(x.Fragment,null,"time"===A?x.createElement(M,null):x.createElement(D,null),z&&U),[q]=(0,zn.Z)("DatePicker",Un.Z),G=Object.assign(Object.assign({},q),t.locale);return H(x.createElement(An,Object.assign({ref:N,placeholder:ut(G,A,p),suffixIcon:_,dropdownAlign:dt(y,f),prevIcon:x.createElement("span",{className:`${Z}-prev-icon`}),nextIcon:x.createElement("span",{className:`${Z}-next-icon`}),superPrevIcon:x.createElement("span",{className:`${Z}-super-prev-icon`}),superNextIcon:x.createElement("span",{className:`${Z}-super-next-icon`}),transitionName:`${B}-slide-up`},{showToday:!0},w,T,{locale:G.lang,className:W()({[`${Z}-${L}`]:L,[`${Z}-borderless`]:!d},(0,Bn.Z)(Z,(0,Bn.F)(K,h),z),O,R,null==E?void 0:E.className,c,u),style:Object.assign(Object.assign({},null==E?void 0:E.style),i),prefixCls:Z,getPopupContainer:l||k,generateConfig:e,components:vt,direction:y,disabled:j,dropdownClassName:W()(O,u,g||v),allowClear:pt(C,b,x.createElement(P.Z,null))})))}));return t&&(a.displayName=t),a}return{DatePicker:n(),WeekPicker:n("week","WeekPicker"),MonthPicker:n("month","MonthPicker"),YearPicker:n("year","YearPicker"),TimePicker:n("time","TimePicker"),QuarterPicker:n("quarter","QuarterPicker")}}(e),i=function(e){return(0,x.forwardRef)(((n,t)=>{const{prefixCls:r,getPopupContainer:a,className:o,placement:l,size:i,disabled:c,bordered:u=!0,placeholder:s,popupClassName:d,dropdownClassName:f,status:p,clearIcon:g,allowClear:v,rootClassName:m}=n,h=mt(n,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),b=x.useRef(null),{getPrefixCls:C,direction:w,getPopupContainer:$}=(0,x.useContext)(Ln.E_),y=C("picker",r),{compactSize:k,compactItemClassnames:E}=(0,Kn.ri)(y,w),{format:Z,showTime:S,picker:R}=n,N=C(),[I,Y]=ct(y),O=Object.assign(Object.assign({},S?ft(Object.assign({format:Z,picker:R},S)):{}),"time"===R?ft(Object.assign(Object.assign({format:Z},n),{picker:R})):{}),T=(0,jn.Z)((e=>{var n;return null!==(n=null!=i?i:k)&&void 0!==n?n:e})),A=x.useContext(Vn.Z),B=null!=c?c:A,L=(0,x.useContext)(Fn.aM),{hasFeedback:V,status:j,feedbackIcon:F}=L,z=x.createElement(x.Fragment,null,"time"===R?x.createElement(M,null):x.createElement(D,null),V&&F);(0,x.useImperativeHandle)(t,(()=>({focus:()=>{var e;return null===(e=b.current)||void 0===e?void 0:e.focus()},blur:()=>{var e;return null===(e=b.current)||void 0===e?void 0:e.blur()}})));const[K]=(0,zn.Z)("Calendar",Un.Z),U=Object.assign(Object.assign({},K),n.locale);return I(x.createElement(Tn,Object.assign({separator:x.createElement("span",{"aria-label":"to",className:`${y}-separator`},x.createElement(H,null)),disabled:B,ref:b,dropdownAlign:dt(w,l),placeholder:st(U,R,s),suffixIcon:z,prevIcon:x.createElement("span",{className:`${y}-prev-icon`}),nextIcon:x.createElement("span",{className:`${y}-next-icon`}),superPrevIcon:x.createElement("span",{className:`${y}-super-prev-icon`}),superNextIcon:x.createElement("span",{className:`${y}-super-next-icon`}),transitionName:`${N}-slide-up`},h,O,{className:W()({[`${y}-${T}`]:T,[`${y}-borderless`]:!u},(0,Bn.Z)(y,(0,Bn.F)(j,p),V),Y,E,o,m),locale:U.lang,prefixCls:y,getPopupContainer:a||$,generateConfig:e,components:vt,direction:w,dropdownClassName:W()(Y,d||f,m),allowClear:pt(v,g,x.createElement(P.Z,null))})))}))}(e),c=n;return c.WeekPicker=t,c.MonthPicker=r,c.YearPicker=a,c.RangePicker=i,c.TimePicker=o,c.QuarterPicker=l,c};const Ct=bt($);function wt(e){const n=dt(e.direction,e.placement);return n.overflow.adjustY=!1,n.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:n})}const $t=(0,y.Z)(Ct,"picker",null,wt);Ct._InternalPanelDoNotUseOrYouWillBeFired=$t;const yt=(0,y.Z)(Ct.RangePicker,"picker",null,wt);Ct._InternalRangePanelDoNotUseOrYouWillBeFired=yt,Ct.generatePicker=bt;var kt=Ct}}]); \ No newline at end of file diff --git a/57930.3ba567ab.async.js b/57930.3ba567ab.async.js deleted file mode 100644 index 3fed46b172..0000000000 --- a/57930.3ba567ab.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[57930],{57930:function(e,n,t){t.d(n,{default:function(){return kt}});var r=t(61186),a=t.n(r),o=t(85870),l=t(90111),i=t.n(l),c=t(58319),u=t.n(c),s=t(23250),d=t.n(s),f=t(74959),p=t.n(f),g=t(10238),v=t.n(g),m=t(33656),h=t.n(m);a().extend(h()),a().extend(v()),a().extend(i()),a().extend(u()),a().extend(d()),a().extend(p()),a().extend((function(e,n){var t=n.prototype,r=t.format;t.format=function(e){var n=(e||"").replace("Wo","wo");return r.bind(this)(n)}}));var b={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},C=function(e){return b[e]||e.split("_")[0]},w=function(){(0,o.ET)(!1,"Not match any format. Please help to fire a issue about this.")},$={getNow:function(){return a()()},getFixedDate:function(e){return a()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var n=e.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},addYear:function(e,n){return e.add(n,"year")},addMonth:function(e,n){return e.add(n,"month")},addDate:function(e,n){return e.add(n,"day")},setYear:function(e,n){return e.year(n)},setMonth:function(e,n){return e.month(n)},setDate:function(e,n){return e.date(n)},setHour:function(e,n){return e.hour(n)},setMinute:function(e,n){return e.minute(n)},setSecond:function(e,n){return e.second(n)},isAfter:function(e,n){return e.isAfter(n)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return a()().locale(C(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,n){return n.locale(C(e)).weekday(0)},getWeek:function(e,n){return n.locale(C(e)).week()},getShortWeekDays:function(e){return a()().locale(C(e)).localeData().weekdaysMin()},getShortMonths:function(e){return a()().locale(C(e)).localeData().monthsShort()},format:function(e,n,t){return n.locale(C(e)).format(t)},parse:function(e,n,t){for(var r=C(e),o=0;o3&&void 0!==arguments[3]?arguments[3]:1;switch(n){case"year":return t.addYear(e,10*r);case"quarter":case"month":return t.addYear(e,r);default:return t.addMonth(e,r)}}function ce(e,n){var t=n.generateConfig,r=n.locale,a=n.format;return"function"==typeof a?a(e):t.locale.format(r.locale,e,a)}function ue(e,n){var t=n.generateConfig,r=n.locale,a=n.formatList;return e&&"function"!=typeof a[0]?t.locale.parse(r.locale,e,a):null}function se(e){var n=e.cellDate,t=e.mode,r=e.disabledDate,a=e.generateConfig;if(!r)return!1;var o=function(e,t,o){for(var l=t;l<=o;){var i=void 0;switch(e){case"date":if(i=a.setDate(n,l),!r(i))return!1;break;case"month":if(!se({cellDate:i=a.setMonth(n,l),mode:"month",generateConfig:a,disabledDate:r}))return!1;break;case"year":if(!se({cellDate:i=a.setYear(n,l),mode:"year",generateConfig:a,disabledDate:r}))return!1}l+=1}return!0};switch(t){case"date":case"week":return r(n);case"month":return o("date",1,a.getDate(a.getEndDate(n)));case"quarter":var l=3*Math.floor(a.getMonth(n)/3);return o("month",l,l+2);case"year":return o("month",0,11);case"decade":var i=a.getYear(n),c=Math.floor(i/G)*G;return o("year",c,c+G-1)}}function de(e,n){var t=n.formatList,r=n.generateConfig,a=n.locale;return(0,_.Z)((function(){if(!e)return[[""],""];for(var n="",o=[],l=0;l1&&void 0!==arguments[1]&&arguments[1];cancelAnimationFrame(u.current),n?c(e):u.current=requestAnimationFrame((function(){c(e)}))}var d=de(i,{formatList:t,generateConfig:r,locale:a}),f=(0,z.Z)(d,2)[1];function p(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s(null,e)}return(0,x.useEffect)((function(){p(!0)}),[e]),(0,x.useEffect)((function(){return function(){return cancelAnimationFrame(u.current)}}),[]),[f,function(e){s(e)},p]}var pe=t(20287),ge=t(71783),ve=t(26390),me=t(57840),he=new Map;function be(e,n,t){if(he.get(e)&&cancelAnimationFrame(he.get(e)),t<=0)he.set(e,requestAnimationFrame((function(){e.scrollTop=n})));else{var r=(n-e.scrollTop)/t*10;he.set(e,requestAnimationFrame((function(){e.scrollTop+=r,e.scrollTop!==n&&be(e,n,t-10)})))}}function Ce(e,n){var t=n.onLeftRight,r=n.onCtrlLeftRight,a=n.onUpDown,o=n.onPageUpDown,l=n.onEnter,i=e.which,c=e.ctrlKey,u=e.metaKey;switch(i){case pe.Z.LEFT:if(c||u){if(r)return r(-1),!0}else if(t)return t(-1),!0;break;case pe.Z.RIGHT:if(c||u){if(r)return r(1),!0}else if(t)return t(1),!0;break;case pe.Z.UP:if(a)return a(-1),!0;break;case pe.Z.DOWN:if(a)return a(1),!0;break;case pe.Z.PAGE_UP:if(o)return o(-1),!0;break;case pe.Z.PAGE_DOWN:if(o)return o(1),!0;break;case pe.Z.ENTER:if(l)return l(),!0}return!1}function we(e,n,t,r){var a=e;if(!a)switch(n){case"time":a=r?"hh:mm:ss a":"HH:mm:ss";break;case"week":a="gggg-wo";break;case"month":a="YYYY-MM";break;case"quarter":a="YYYY-[Q]Q";break;case"year":a="YYYY";break;default:a=t?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return a}function $e(e,n,t){var r="time"===e?8:10,a="function"==typeof n?n(t.getNow()).length:n.length;return Math.max(r,a)+2}var ye=null,ke=new Set;var xe={year:function(e){return"month"===e||"date"===e?"year":e},month:function(e){return"date"===e?"month":e},quarter:function(e){return"month"===e||"date"===e?"quarter":e},week:function(e){return"date"===e?"week":e},time:null,date:null};function Ee(e,n){return e.some((function(e){return e&&e.contains(n)}))}function Ze(e){var n=e.open,t=e.value,r=e.isClickOutside,a=e.triggerOpen,o=e.forwardKeyDown,l=e.onKeyDown,i=e.blurToCancel,c=e.onSubmit,u=e.onCancel,s=e.onFocus,d=e.onBlur,f=e.changeOnBlur,p=(0,x.useState)(!1),g=(0,z.Z)(p,2),v=g[0],m=g[1],h=(0,x.useState)(!1),b=(0,z.Z)(h,2),C=b[0],w=b[1],$=(0,x.useRef)(!1),y=(0,x.useRef)(!1),k=(0,x.useRef)(!1),E={onMouseDown:function(){m(!0),a(!0)},onKeyDown:function(e){if(l(e,(function(){k.current=!0})),!k.current){switch(e.which){case pe.Z.ENTER:return n?!1!==c()&&m(!0):a(!0),void e.preventDefault();case pe.Z.TAB:return void(v&&n&&!e.shiftKey?(m(!1),e.preventDefault()):!v&&n&&!o(e)&&e.shiftKey&&(m(!0),e.preventDefault()));case pe.Z.ESC:return m(!0),void u()}n||[pe.Z.SHIFT].includes(e.which)?v||o(e):a(!0)}},onFocus:function(e){m(!0),w(!0),s&&s(e)},onBlur:function(e){!$.current&&r(document.activeElement)?(i?setTimeout((function(){for(var e=document.activeElement;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;r(e)&&u()}),0):n&&(a(!1),y.current&&c()),w(!1),null==d||d(e)):$.current=!1}};return(0,x.useEffect)((function(){y.current=!1}),[n]),(0,x.useEffect)((function(){y.current=!0}),[t]),(0,x.useEffect)((function(){return e=function(e){var t=function(e){var n,t=e.target;return e.composed&&t.shadowRoot&&(null===(n=e.composedPath)||void 0===n?void 0:n.call(e)[0])||t}(e),o=r(t);n&&(o?f||C&&!o||a(!1):($.current=!0,(0,ge.Z)((function(){$.current=!1}))))},!ye&&"undefined"!=typeof window&&window.addEventListener&&(ye=function(e){(0,ve.Z)(ke).forEach((function(n){n(e)}))},window.addEventListener("mousedown",ye)),ke.add(e),function(){ke.delete(e),0===ke.size&&(window.removeEventListener("mousedown",ye),ye=null)};var e})),[E,{focused:C,typing:v}]}function Se(e,n){return x.useMemo((function(){return e||(n?((0,o.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(n).map((function(e){var n=(0,z.Z)(e,2);return{label:n[0],value:n[1]}}))):[])}),[e,n])}var De=t(19171);function Re(e){var n=e.valueTexts,t=e.onTextChange,r=x.useState(""),a=(0,z.Z)(r,2),o=a[0],l=a[1],i=x.useRef([]);function c(){l(i.current[0])}return i.current=n,(0,De.Z)((function(){n.every((function(e){return e!==o}))&&c()}),[n.join("||")]),[o,function(e){l(e),t(e)},c]}var Ne=x.createContext({}),Me=t(80665);function Pe(e){var n=e.cellRender,t=e.monthCellRender,r=e.dateRender;return x.useMemo((function(){return n||(t||r?function(e,n){var a=e;return r&&"date"===n.type?r(a,n.today):t&&"month"===n.type?t(a,n.locale):n.originNode}:void 0)}),[n,t,r])}function Ie(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length1&&(l=n.addDate(l,-7)),l}(a.locale,t,l),g="".concat(n,"-cell"),v=t.locale.getWeekFirstDay(a.locale),m=t.getNow(),h=[],b=a.shortWeekDays||(t.locale.getShortWeekDays?t.locale.getShortWeekDays(a.locale):[]);r&&h.push(x.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var C=0;C<7;C+=1)h.push(x.createElement("th",{key:C},b[(C+v)%7]));var w=Te({cellPrefixCls:g,today:m,value:i,generateConfig:t,rangedValue:r?null:d,hoverRangedValue:r?null:f,isSameCell:u||function(e,n){return re(t,e,n)},isInView:function(e){return te(t,e,l)},offsetCell:function(e,n){return t.addDate(e,n)}}),$=c?function(e,n){return c(e,{originNode:n,today:m,type:"date",locale:a})}:void 0;return x.createElement(je,(0,k.Z)({},e,{rowNum:o,colNum:7,baseDate:p,getCellNode:$,getCellText:t.getDate,getCellClassName:w,getCellDate:t.addDate,titleCell:function(e){return ce(e,{locale:a,format:"YYYY-MM-DD",generateConfig:t})},headerCells:h}))},ze={visibility:"hidden"};var Ke=function(e){var n=e.prefixCls,t=e.prevIcon,r=void 0===t?"‹":t,a=e.nextIcon,o=void 0===a?"›":a,l=e.superPrevIcon,i=void 0===l?"«":l,c=e.superNextIcon,u=void 0===c?"»":c,s=e.onSuperPrev,d=e.onSuperNext,f=e.onPrev,p=e.onNext,g=e.children,v=x.useContext(Ne),m=v.hideNextBtn,h=v.hidePrevBtn;return x.createElement("div",{className:n},s&&x.createElement("button",{type:"button",onClick:s,tabIndex:-1,className:"".concat(n,"-super-prev-btn"),style:h?ze:{}},i),f&&x.createElement("button",{type:"button",onClick:f,tabIndex:-1,className:"".concat(n,"-prev-btn"),style:h?ze:{}},r),x.createElement("div",{className:"".concat(n,"-view")},g),p&&x.createElement("button",{type:"button",onClick:p,tabIndex:-1,className:"".concat(n,"-next-btn"),style:m?ze:{}},o),d&&x.createElement("button",{type:"button",onClick:d,tabIndex:-1,className:"".concat(n,"-super-next-btn"),style:m?ze:{}},u))};var Ue=function(e){var n=e.prefixCls,t=e.generateConfig,r=e.locale,a=e.viewDate,o=e.onNextMonth,l=e.onPrevMonth,i=e.onNextYear,c=e.onPrevYear,u=e.onYearClick,s=e.onMonthClick;if(x.useContext(Ne).hideHeader)return null;var d="".concat(n,"-header"),f=r.shortMonths||(t.locale.getShortMonths?t.locale.getShortMonths(r.locale):[]),p=t.getMonth(a),g=x.createElement("button",{type:"button",key:"year",onClick:u,tabIndex:-1,className:"".concat(n,"-year-btn")},ce(a,{locale:r,format:r.yearFormat,generateConfig:t})),v=x.createElement("button",{type:"button",key:"month",onClick:s,tabIndex:-1,className:"".concat(n,"-month-btn")},r.monthFormat?ce(a,{locale:r,format:r.monthFormat,generateConfig:t}):f[p]),m=r.monthBeforeYear?[v,g]:[g,v];return x.createElement(Ke,(0,k.Z)({},e,{prefixCls:d,onSuperPrev:c,onPrev:l,onNext:o,onSuperNext:i}),m)};var _e=function(e){var n=e.prefixCls,t=e.panelName,r=void 0===t?"date":t,a=e.keyboardConfig,o=e.active,l=e.operationRef,i=e.generateConfig,c=e.value,u=e.viewDate,s=e.onViewDateChange,d=e.onPanelChange,f=e.onSelect,p="".concat(n,"-").concat(r,"-panel");l.current={onKeyDown:function(e){return Ce(e,(0,F.Z)({onLeftRight:function(e){f(i.addDate(c||u,e),"key")},onCtrlLeftRight:function(e){f(i.addYear(c||u,e),"key")},onUpDown:function(e){f(i.addDate(c||u,7*e),"key")},onPageUpDown:function(e){f(i.addMonth(c||u,e),"key")}},a))}};var g=function(e){var n=i.addYear(u,e);s(n),d(null,n)},v=function(e){var n=i.addMonth(u,e);s(n),d(null,n)};return x.createElement("div",{className:W()(p,(0,j.Z)({},"".concat(p,"-active"),o))},x.createElement(Ue,(0,k.Z)({},e,{prefixCls:n,value:c,viewDate:u,onPrevYear:function(){g(-1)},onNextYear:function(){g(1)},onPrevMonth:function(){v(-1)},onNextMonth:function(){v(1)},onMonthClick:function(){d("month",u)},onYearClick:function(){d("year",u)}})),x.createElement(Fe,(0,k.Z)({},e,{onSelect:function(e){return f(e,"mouse")},prefixCls:n,value:c,viewDate:u,rowCount:6})))};var qe=function(e){if(x.useContext(Ne).hideHeader)return null;var n=e.prefixCls,t=e.generateConfig,r=e.locale,a=e.value,o=e.format,l="".concat(n,"-header");return x.createElement(Ke,{prefixCls:l},a?ce(a,{locale:r,format:o,generateConfig:t}):" ")};var Ge=function(e){var n=e.prefixCls,t=e.units,r=e.onSelect,a=e.value,o=e.active,l=e.hideDisabledOptions,i=e.info,c=e.type,u="".concat(n,"-cell"),s=x.useContext(Ne).open,d=(0,x.useRef)(null),f=(0,x.useRef)(new Map),p=(0,x.useRef)();return(0,x.useLayoutEffect)((function(){var e=f.current.get(a);e&&!1!==s&&be(d.current,e.offsetTop,120)}),[a]),(0,x.useLayoutEffect)((function(){if(s){var e=f.current.get(a);e&&(p.current=(n=e,t=function(){be(d.current,e.offsetTop,0)},function e(){(0,me.Z)(n)?t():r=(0,ge.Z)((function(){e()}))}(),function(){ge.Z.cancel(r)}))}var n,t,r;return function(){var e;null===(e=p.current)||void 0===e||e.call(p)}}),[s]),x.createElement("ul",{className:W()("".concat(n,"-column"),(0,j.Z)({},"".concat(n,"-column-active"),o)),ref:d,style:{position:"relative"}},t.map((function(e){var n;return l&&e.disabled?null:x.createElement("li",{key:e.value,ref:function(n){f.current.set(e.value,n)},className:W()(u,(n={},(0,j.Z)(n,"".concat(u,"-disabled"),e.disabled),(0,j.Z)(n,"".concat(u,"-selected"),a===e.value),n)),onClick:function(){e.disabled||r(e.value)}},i.cellRender?i.cellRender(e.value,{today:i.today,locale:i.locale,originNode:x.createElement("div",{className:"".concat(u,"-inner")},e.label),type:"time",subType:c}):x.createElement("div",{className:"".concat(u,"-inner")},e.label))})))};function Xe(e,n){if(e.length!==n.length)return!0;for(var t=0;t=1?0|t:1,l=e;l<=n;l+=o)a.push({label:Ie(l,2),value:l,disabled:(r||[]).includes(l)});return a}var Je=function(e){var n,t=e.generateConfig,r=e.prefixCls,a=e.operationRef,o=e.activeColumnIndex,l=e.value,i=e.showHour,c=e.showMinute,u=e.showSecond,s=e.use12Hours,d=e.hourStep,f=void 0===d?1:d,p=e.minuteStep,g=void 0===p?1:p,v=e.secondStep,m=void 0===v?1:v,h=e.disabledHours,b=e.disabledMinutes,C=e.disabledSeconds,w=e.disabledTime,$=e.hideDisabledOptions,y=e.onSelect,k=e.cellRender,E=e.locale,Z=[],S="".concat(r,"-content"),D="".concat(r,"-time-panel"),R=l?t.getHour(l):-1,N=R,M=l?t.getMinute(l):-1,P=l?t.getSecond(l):-1,I=t.getNow(),Y=x.useMemo((function(){if(w){var e=w(I);return[e.disabledHours,e.disabledMinutes,e.disabledSeconds]}return[h,b,C]}),[h,b,C,w,I]),H=(0,z.Z)(Y,3),O=H[0],W=H[1],T=H[2],A=Qe(0,23,f,O&&O()),B=(0,_.Z)((function(){return A}),A,Xe);s&&(n=N>=12,N%=12);var L=x.useMemo((function(){if(!s)return[!1,!1];var e=[!0,!0];return B.forEach((function(n){var t=n.disabled,r=n.value;t||(r>=12?e[1]=!1:e[0]=!1)})),e}),[s,B]),V=(0,z.Z)(L,2),j=V[0],K=V[1],U=x.useMemo((function(){return s?B.filter(n?function(e){return e.value>=12}:function(e){return e.value<12}).map((function(e){var n=e.value%12,t=0===n?"12":Ie(n,2);return(0,F.Z)((0,F.Z)({},e),{},{label:t,value:n})})):B}),[s,n,B]),q=Qe(0,59,g,W&&W(R)),G=Qe(0,59,m,T&&T(R,M)),X=function(e){var n=e.value,t=e.generateConfig,r=e.disabledMinutes,a=e.disabledSeconds,o=e.minutes,l=e.seconds,i=e.use12Hours;return function(e,c,u,s){var d=t.getNow(),f=n||d,p=c<0?t.getHour(d):c,g=u<0?t.getMinute(d):u,v=s<0?t.getSecond(d):s,m=r&&r(p);if(null!=m&&m.includes(g)){var h=o.find((function(e){return!m.includes(e.value)}));if(!h)return null;g=h.value}var b=a&&a(p,g);if(null!=b&&b.includes(v)){var C=l.find((function(e){return!b.includes(e.value)}));if(!C)return null;v=C.value}return Be(t,f,i&&e?p+12:p,g,v)}}({value:l,generateConfig:t,disabledMinutes:W,disabledSeconds:T,minutes:q,seconds:G,use12Hours:s});function Q(e,n,t,r,a){!1!==e&&Z.push({node:x.cloneElement(n,{prefixCls:D,value:t,active:o===Z.length,onSelect:a,units:r,hideDisabledOptions:$}),onSelect:a,value:t,units:r})}a.current={onUpDown:function(e){var n=Z[o];if(n)for(var t=n.units.findIndex((function(e){return e.value===n.value})),r=n.units.length,a=1;a2&&void 0!==arguments[2]&&arguments[2];(Ze===h||t)&&(me(e),S&&S(e),ne&&ne(e,n),!D||oe(u,e,ve)||null!=g&&g(e)||D(e))},We=function(e){if(se.current&&se.current.onKeyDown){var n=!0,t=e.which;if([pe.Z.LEFT,pe.Z.RIGHT,pe.Z.UP,pe.Z.DOWN,pe.Z.PAGE_UP,pe.Z.PAGE_DOWN,pe.Z.ENTER].includes(t)&&(e.preventDefault(),t!==pe.Z.ENTER&&0===C&&(n=function(e){if(wn.includes(Ze)){var n,t,r="date"===Ze;switch(t=e===pe.Z.PAGE_UP||e===pe.Z.PAGE_DOWN?r?u.addMonth:u.addYear:r?u.addDate:u.addMonth,e){case pe.Z.LEFT:case pe.Z.PAGE_UP:n=t(Ce,-1);break;case pe.Z.RIGHT:case pe.Z.PAGE_DOWN:n=t(Ce,1);break;case pe.Z.UP:case pe.Z.DOWN:n=t(Ce,Number("".concat(e===pe.Z.UP?"-":"").concat(r?7:3)))}if(n)return!(null!=g&&g(n))}return!0}(t))),n)return se.current.onKeyDown(e)}return(0,o.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1};ee&&"right"!==ie&&(ee.current={onKeyDown:We,onClose:function(){se.current&&se.current.onClose&&se.current.onClose()}}),x.useEffect((function(){s&&!de.current&&we(s)}),[s]),x.useEffect((function(){de.current=!1}),[]);var Te,Ve,je,Fe=Pe({cellRender:_,monthCellRender:U,dateRender:V}),ze=(0,F.Z)((0,F.Z)({},e),{},{cellRender:Fe,operationRef:se,prefixCls:a,viewDate:Ce,value:ve,onViewDateChange:$e,sourceMode:Ye,onPanelChange:function(e,n){var t=ye(e||Ze);He(Ze),Se(t),R&&(Ze!==t||oe(u,Ce,Ce))&&R(n,t)},disabledDate:g});switch(delete ze.onChange,delete ze.onSelect,Ze){case"decade":De=x.createElement(on,(0,k.Z)({},ze,{onSelect:function(e,n){$e(e),Oe(e,n)}}));break;case"year":De=x.createElement(hn,(0,k.Z)({},ze,{onSelect:function(e,n){$e(e),Oe(e,n)}}));break;case"month":De=x.createElement(un,(0,k.Z)({},ze,{onSelect:function(e,n){$e(e),Oe(e,n)}}));break;case"quarter":De=x.createElement(fn,(0,k.Z)({},ze,{onSelect:function(e,n){$e(e),Oe(e,n)}}));break;case"week":De=x.createElement(pn,(0,k.Z)({},ze,{onSelect:function(e,n){$e(e),Oe(e,n)}}));break;case"time":delete ze.showTime,De=x.createElement(en,(0,k.Z)({},ze,"object"===(0,Me.Z)($)?$:null,{onSelect:function(e,n){$e(e),Oe(e,n)}}));break;default:De=$?x.createElement(tn,(0,k.Z)({},ze,{onSelect:function(e,n){$e(e),Oe(e,n)}})):x.createElement(_e,(0,k.Z)({},ze,{onSelect:function(e,n){$e(e),Oe(e,n)}}))}if(te||(Te=bn(a,Ze,E),Ve=$&&"date"!==Ze?null:Cn({prefixCls:a,components:I,needConfirmButton:q,okDisabled:!ve||g&&g(ve),locale:c,showNow:w,onNow:q&&function(){var e=u.getNow(),n=function(e,n,t,r,a,o){var l=Math.floor(e/r)*r;if(lf(u);case"month":return d(e)>d(u);case"week":return s(e)>s(u);default:return!re(i,e,u)&&i.isAfter(e,u)}return!1}),[o,l[1],u,n]),x.useCallback((function(e){if(l[1]||o&&o(e))return!0;if(l[0]&&c)return!re(i,e,u)&&i.isAfter(c,e);if(!n&&c)switch(t){case"quarter":return f(e)0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;On&&Et&&Et[0]&&Et[1]&&m.isAfter(Et[1],Et[0])&&(r=Et);var a=Z;if(Z&&"object"===(0,Me.Z)(Z)&&Z.defaultValue){var o=Z.defaultValue;a=(0,F.Z)((0,F.Z)({},Z),{},{defaultValue:He(o,Wn)||void 0})}return x.createElement(Ae.Provider,{value:{inRange:!0,panelPosition:n,rangedValue:$t||mn,hoverRangedValue:r}},x.createElement($n,(0,k.Z)({},e,t,{cellRender:or,showTime:a,mode:kn[Wn],generateConfig:m,style:void 0,direction:Ve,disabledDate:0===Wn?Fn:zn,disabledTime:function(e){return!!O&&O(e,0===Wn?"start":"end")},className:W()((0,j.Z)({},"".concat(i,"-panel-focused"),0===Wn?!qt:!nr)),value:He(mn,Wn),locale:h,tabIndex:-1,onPanelChange:function(e,t){0===Wn&&Mt(!0),1===Wn&&Ot(!0),Dn(Oe(kn,t,Wn),Oe(mn,e,Wn));var r=e;"right"===n&&kn[Wn]===t&&(r=ie(r,t,m,-1)),pn(r,Wn)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:He(mn,0===Wn?1:0)})))}var cr=0,ur=0;if(Wn&&Ge.current&&Qe.current&&qe.current&&nn.current){cr=Ge.current.offsetWidth+Qe.current.offsetWidth;var sr=nn.current.offsetLeft>cr?nn.current.offsetLeft-cr:nn.current.offsetLeft,dr=qe.current.offsetWidth,fr=nn.current.offsetWidth;dr&&fr&&cr>dr-fr-("rtl"===Ve?0:sr)&&(ur=cr)}var pr="rtl"===Ve?{right:cr}:{left:cr};var gr,vr=x.createElement("div",{className:W()("".concat(i,"-range-wrapper"),"".concat(i,"-").concat(E,"-range-wrapper")),style:{minWidth:_n}},x.createElement("div",{ref:nn,className:"".concat(i,"-range-arrow"),style:pr}),function(){var e,n=bn(i,kn[Wn],se),t=Cn({prefixCls:i,components:Be,needConfirmButton:Ue,okDisabled:!He(mn,Wn)||H&&H(mn[Wn]),locale:h,onOk:function(){He(mn,Wn)&&(Xn(mn,Wn),null==We||We(mn),An(!1,Wn,"confirm"))}});if("time"===E||Z)e=ir();else{var r=fn(Wn),a=ie(r,E,m),o=kn[Wn]===E,l=ir(!!o&&"left",{pickerValue:r,onPickerValueChange:function(e){pn(e,Wn)}}),c=ir("right",{pickerValue:a,onPickerValueChange:function(e){pn(ie(e,E,m,-1),Wn)}});e="rtl"===Ve?x.createElement(x.Fragment,null,c,o&&l):x.createElement(x.Fragment,null,l,o&&c)}var u=x.createElement("div",{className:"".concat(i,"-panel-layout")},x.createElement(En,{prefixCls:i,presets:lr,onClick:function(e){Xn(e,null),An(!1,Wn,"preset")},onHover:function(e){yt(e)}}),x.createElement("div",null,x.createElement("div",{className:"".concat(i,"-panels")},e),(n||t)&&x.createElement("div",{className:"".concat(i,"-footer")},n,t)));return L&&(u=L(u)),x.createElement("div",{className:"".concat(i,"-panel-container"),style:{marginLeft:ur},ref:qe,onMouseDown:function(e){e.preventDefault()}},u)}());X&&(gr=x.createElement("span",{className:"".concat(i,"-suffix"),onMouseDown:function(e){e.preventDefault()}},X));var mr=Zn(i,G,Q),hr=x.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation();var n=cn;an[0]||(n=Oe(n,null,0)),an[1]||(n=Oe(n,null,1)),Xn(n,null),An(!1,Wn,"clear")},className:"".concat(i,"-clear"),role:"button"},mr),br=G&&(He(cn,0)&&!an[0]||He(cn,1)&&!an[1]),Cr={size:$e(E,tn[0],m)},wr=0,$r=0;Ge.current&&Xe.current&&Qe.current&&(0===Wn?$r=Ge.current.offsetWidth:(wr=cr,$r=Xe.current.offsetWidth));var yr="rtl"===Ve?{right:wr}:{left:wr};return x.createElement(Ne.Provider,{value:{operationRef:rn,hideHeader:"time"===E,onDateMouseEnter:function(e){Zt(Oe(mn,e,Wn)),0===Wn?Nt(e):Ht(e)},onDateMouseLeave:function(){Zt(Oe(mn,null,Wn)),0===Wn?Mt():Ot()},hideRanges:!0,onSelect:function(e,n){var t=Oe(mn,e,Wn);"submit"===n||"key"!==n&&!Ue?(Xn(t,Wn),0===Wn?Mt():Ot(),an[0===Wn?1:0]?An(!1,!1,"confirm"):An(!1,Wn,"confirm")):hn(t)},open:On}},x.createElement(xn,{visible:On,popupElement:vr,popupStyle:d,prefixCls:i,dropdownClassName:f,dropdownAlign:g,getPopupContainer:v,transitionName:p,range:!0,direction:Ve},x.createElement("div",(0,k.Z)({ref:_e,className:W()(i,"".concat(i,"-range"),s,(n={},(0,j.Z)(n,"".concat(i,"-disabled"),an[0]&&an[1]),(0,j.Z)(n,"".concat(i,"-focused"),0===Wn?_t:er),(0,j.Z)(n,"".concat(i,"-rtl"),"rtl"===Ve),n)),style:u,onClick:function(e){Ie&&Ie(e),On||Je.current.contains(e.target)||en.current.contains(e.target)||(an[0]?an[1]||Gn(1):Gn(0))},onMouseEnter:xe,onMouseLeave:De,onMouseDown:function(e){ye&&ye(e),!On||!_t&&!er||Je.current.contains(e.target)||en.current.contains(e.target)||e.preventDefault()},onMouseUp:ke},(0,U.Z)(e,{aria:!0,data:!0})),x.createElement("div",{className:W()("".concat(i,"-input"),(t={},(0,j.Z)(t,"".concat(i,"-input-active"),0===Wn),(0,j.Z)(t,"".concat(i,"-input-placeholder"),!!Rt),t)),ref:Ge},x.createElement("input",(0,k.Z)({id:c,disabled:an[0],readOnly:te||"function"==typeof tn[0]||!qt,value:Rt||dt,onChange:function(e){ft(e.target.value)},autoFocus:C,placeholder:He(b,0)||"",ref:Je},Kt,Cr,{autoComplete:ze}))),x.createElement("div",{className:"".concat(i,"-range-separator"),ref:Qe},R),x.createElement("div",{className:W()("".concat(i,"-input"),(r={},(0,j.Z)(r,"".concat(i,"-input-active"),1===Wn),(0,j.Z)(r,"".concat(i,"-input-placeholder"),!!Yt),r)),ref:Xe},x.createElement("input",(0,k.Z)({disabled:an[1],readOnly:te||"function"==typeof tn[0]||!nr,value:Yt||mt,onChange:function(e){ht(e.target.value)},placeholder:He(b,1)||"",ref:en},Qt,Cr,{autoComplete:ze}))),x.createElement("div",{className:"".concat(i,"-active-bar"),style:(0,F.Z)((0,F.Z)({},yr),{},{width:$r,position:"absolute"})}),gr,br&&hr)))}var Wn=function(e){(0,L.Z)(t,e);var n=(0,V.Z)(t);function t(){var e;(0,T.Z)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o{const{lineHeight:a}=e,o=Math.floor(t*a)+2,l=Math.max((n-o)/2,0);return{padding:`${l}px ${r}px ${Math.max(n-o-l,0)}px`}},at=e=>{const{componentCls:n,pickerCellCls:t,pickerCellInnerCls:r,cellHeight:a,motionDurationSlow:o,borderRadiusSM:l,motionDurationMid:i,cellHoverBg:c,lineWidth:u,lineType:s,colorPrimary:d,cellActiveWithRangeBg:f,colorTextLightSolid:p,controlHeightSM:g,cellRangeBorderColor:v,pickerCellBorderGap:m,cellHoverWithRangeBg:h,cellWidth:b,colorTextDisabled:C,cellBgDisabled:w}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:a,transform:"translateY(-50%)",transition:`all ${o}`,content:'""'},[r]:{position:"relative",zIndex:2,display:"inline-block",minWidth:a,height:a,lineHeight:`${a}px`,borderRadius:l,transition:`background ${i}, border ${i}`},"&-range-hover-start, &-range-hover-end":{[r]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${t}-in-view),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-range-hover-start):not(${t}-range-hover-end)`]:{[r]:{background:c}},[`&-in-view${t}-today ${r}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${u}px ${s} ${d}`,borderRadius:l,content:'""'}},[`&-in-view${t}-in-range`]:{position:"relative","&::before":{background:f}},[`&-in-view${t}-selected ${r},\n &-in-view${t}-range-start ${r},\n &-in-view${t}-range-end ${r}`]:{color:p,background:d},[`&-in-view${t}-range-start:not(${t}-range-start-single),\n &-in-view${t}-range-end:not(${t}-range-end-single)`]:{"&::before":{background:f}},[`&-in-view${t}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-hover-start:not(${t}-in-range):not(${t}-range-start):not(${t}-range-end),\n &-in-view${t}-range-hover-end:not(${t}-in-range):not(${t}-range-start):not(${t}-range-end),\n &-in-view${t}-range-hover-start${t}-range-start-single,\n &-in-view${t}-range-hover-start${t}-range-start${t}-range-end${t}-range-end-near-hover,\n &-in-view${t}-range-hover-end${t}-range-start${t}-range-end${t}-range-start-near-hover,\n &-in-view${t}-range-hover-end${t}-range-end-single,\n &-in-view${t}-range-hover:not(${t}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:g,borderTop:`${u}px dashed ${v}`,borderBottom:`${u}px dashed ${v}`,transform:"translateY(-50%)",transition:`all ${o}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:m},[`&-in-view${t}-in-range${t}-range-hover::before,\n &-in-view${t}-in-range${t}-range-hover-start::before,\n &-in-view${t}-in-range${t}-range-hover-end::before,\n &-in-view${t}-range-start${t}-range-hover::before,\n &-in-view${t}-range-end${t}-range-hover::before,\n &-in-view${t}-range-start:not(${t}-range-start-single)${t}-range-hover-start::before,\n &-in-view${t}-range-end:not(${t}-range-end-single)${t}-range-hover-end::before,\n ${n}-panel\n > :not(${n}-date-panel)\n &-in-view${t}-in-range${t}-range-hover-start::before,\n ${n}-panel\n > :not(${n}-date-panel)\n &-in-view${t}-in-range${t}-range-hover-end::before`]:{background:h},[`&-in-view${t}-range-start:not(${t}-range-start-single):not(${t}-range-end) ${r}`]:{borderStartStartRadius:l,borderEndStartRadius:l,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-end-single):not(${t}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:l,borderEndEndRadius:l},[`&-range-hover${t}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${t}-range-hover:first-child::after,\n tr > &-in-view${t}-range-hover-end:first-child::after,\n &-in-view${t}-start${t}-range-hover-edge-start${t}-range-hover-edge-start-near-range::after,\n &-in-view${t}-range-hover-edge-start:not(${t}-range-hover-edge-start-near-range)::after,\n &-in-view${t}-range-hover-start::after`]:{insetInlineStart:(b-a)/2,borderInlineStart:`${u}px dashed ${v}`,borderStartStartRadius:l,borderEndStartRadius:l},[`tr > &-in-view${t}-range-hover:last-child::after,\n tr > &-in-view${t}-range-hover-start:last-child::after,\n &-in-view${t}-end${t}-range-hover-edge-end${t}-range-hover-edge-end-near-range::after,\n &-in-view${t}-range-hover-edge-end:not(${t}-range-hover-edge-end-near-range)::after,\n &-in-view${t}-range-hover-end::after`]:{insetInlineEnd:(b-a)/2,borderInlineEnd:`${u}px dashed ${v}`,borderStartEndRadius:l,borderEndEndRadius:l},"&-disabled":{color:C,pointerEvents:"none",[r]:{background:"transparent"},"&::before":{background:w}},[`&-disabled${t}-today ${r}::before`]:{borderColor:C}}},ot=e=>{const{componentCls:n,pickerCellCls:t,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:o,cellWidth:l,paddingSM:i,paddingXS:c,paddingXXS:u,colorBgContainer:s,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:g,colorTextHeading:v,colorSplit:m,pickerControlIconBorderWidth:h,colorIcon:b,textHeight:C,motionDurationMid:w,colorIconHover:$,fontWeightStrong:y,cellHeight:k,pickerCellPaddingVertical:x,colorTextDisabled:E,colorText:Z,fontSize:S,cellHoverWithRangeBg:D,motionDurationSlow:R,withoutTimeCellHeight:N,pickerQuarterPanelContentHeight:M,colorLink:P,colorLinkActive:I,colorLinkHover:Y,cellRangeBorderColor:H,borderRadiusSM:O,colorTextLightSolid:W,cellHoverBg:T,timeColumnHeight:A,timeColumnWidth:B,timeCellHeight:L,controlItemBgActive:V,marginXXS:j,pickerDatePanelPaddingHorizontal:F}=e,z=7*l+2*F,K=(z-2*c)/3-a-i,U=(z-2*c)/4-a;return{[n]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:s,border:`${d}px ${f} ${m}`,borderRadius:p,outline:"none","&-focused":{borderColor:g},"&-rtl":{direction:"rtl",[`${n}-prev-icon,\n ${n}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${n}-next-icon,\n ${n}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:z},"&-header":{display:"flex",padding:`0 ${c}px`,color:v,borderBottom:`${d}px ${f} ${m}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:`${C}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:S,"&:hover":{color:$}},"&-view":{flex:"auto",fontWeight:y,lineHeight:`${C}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:g}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:h,borderBlockEndWidth:0,borderInlineStartWidth:h,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(o/2),insetInlineStart:Math.ceil(o/2),display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:h,borderBlockEndWidth:0,borderInlineStartWidth:h,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:k,fontWeight:"normal"},th:{height:k+2*x,color:Z,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${x}px 0`,color:E,cursor:"pointer","&-in-view":{color:Z}},at(e)),[`&-date-panel ${n}-cell-in-view${n}-cell-in-range${n}-cell-range-hover-start ${r},\n &-date-panel ${n}-cell-in-view${n}-cell-in-range${n}-cell-range-hover-end ${r}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:D,transition:`all ${R}`,content:'""'}},[`&-date-panel\n ${n}-cell-in-view${n}-cell-in-range${n}-cell-range-hover-start\n ${r}::after`]:{insetInlineEnd:-(l-k)/2,insetInlineStart:0},[`&-date-panel ${n}-cell-in-view${n}-cell-in-range${n}-cell-range-hover-end ${r}::after`]:{insetInlineEnd:0,insetInlineStart:-(l-k)/2},[`&-range-hover${n}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${n}-content`]:{height:4*N},[r]:{padding:`0 ${c}px`}},"&-quarter-panel":{[`${n}-content`]:{height:M},[`${n}-cell-range-hover-start::after`]:{insetInlineStart:U,borderInlineStart:`${d}px dashed ${H}`,[`${n}-panel-rtl &`]:{insetInlineEnd:U,borderInlineEnd:`${d}px dashed ${H}`}},[`${n}-cell-range-hover-end::after`]:{insetInlineEnd:U,borderInlineEnd:`${d}px dashed ${H}`,[`${n}-panel-rtl &`]:{insetInlineStart:U,borderInlineStart:`${d}px dashed ${H}`}}},[`&-panel ${n}-footer`]:{borderTop:`${d}px ${f} ${m}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:C-2*d+"px",textAlign:"center","&-extra":{padding:`0 ${i}px`,lineHeight:C-2*d+"px",textAlign:"start","&:not(:last-child)":{borderBottom:`${d}px ${f} ${m}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:P,"&:hover":{color:Y},"&:active":{color:I},[`&${n}-today-btn-disabled`]:{color:E,cursor:"not-allowed"}},"&-decade-panel":{[r]:{padding:`0 ${c/2}px`},[`${n}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${n}-body`]:{padding:`0 ${c}px`},[r]:{width:a},[`${n}-cell-range-hover-start::after`]:{borderStartStartRadius:O,borderEndStartRadius:O,borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:O,borderEndEndRadius:O}},[`${n}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:O,borderEndEndRadius:O,[`${n}-panel-rtl &`]:{borderStartStartRadius:O,borderEndStartRadius:O,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${n}-cell-range-hover-start::after`]:{insetInlineStart:K,borderInlineStart:`${d}px dashed ${H}`,[`${n}-panel-rtl &`]:{insetInlineEnd:K,borderInlineEnd:`${d}px dashed ${H}`}},[`${n}-cell-range-hover-end::after`]:{insetInlineEnd:K,borderInlineEnd:`${d}px dashed ${H}`,[`${n}-panel-rtl &`]:{insetInlineStart:K,borderInlineStart:`${d}px dashed ${H}`}}},"&-week-panel":{[`${n}-body`]:{padding:`${c}px ${i}px`},[`${n}-cell`]:{[`&:hover ${r},\n &-selected ${r},\n ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:O,borderEndStartRadius:O},"&:last-child:before":{borderStartEndRadius:O,borderEndEndRadius:O}},"&:hover td":{"&:before":{background:T}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${t}`]:{"&:before":{background:g},[`&${n}-cell-week`]:{color:new _n.C(W).setAlpha(.5).toHexString()},[r]:{color:W}}},"&-range-hover td:before":{background:V}}},"&-date-panel":{[`${n}-body`]:{padding:`${c}px ${F}px`},[`${n}-content`]:{width:7*l,th:{width:l,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${n}-time-panel`]:{borderInlineStart:`${d}px ${f} ${m}`},[`${n}-date-panel,\n ${n}-time-panel`]:{transition:`opacity ${R}`},"&-active":{[`${n}-date-panel,\n ${n}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${n}-content`]:{display:"flex",flex:"auto",height:A},"&-column":{flex:"1 0 auto",width:B,margin:`${u}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::after":{display:"block",height:A-L,content:'""'},"&:not(:first-child)":{borderInlineStart:`${d}px ${f} ${m}`},"&-active":{background:new _n.C(V).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${n}-time-panel-cell`]:{marginInline:j,[`${n}-time-panel-cell-inner`]:{display:"block",width:B-2*j,height:L,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(B-L)/2,color:Z,lineHeight:`${L}px`,borderRadius:O,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:T}},"&-selected":{[`${n}-time-panel-cell-inner`]:{background:V}},"&-disabled":{[`${n}-time-panel-cell-inner`]:{color:E,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${n}-time-panel-column:after`]:{height:A-L+2*u}}}},lt=e=>{const{componentCls:n,colorBgContainer:t,colorError:r,errorActiveShadow:a,colorWarning:o,warningActiveShadow:l}=e;return{[`${n}:not(${n}-disabled)`]:{[`&${n}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:t,borderColor:r},[`&${n}-focused, &:focus`]:Object.assign({},(0,qn.M1)((0,nt.TS)(e,{activeBorderColor:r,activeShadow:a}))),[`${n}-active-bar`]:{background:r}},[`&${n}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:t,borderColor:o},[`&${n}-focused, &:focus`]:Object.assign({},(0,qn.M1)((0,nt.TS)(e,{activeBorderColor:o,activeShadow:l}))),[`${n}-active-bar`]:{background:o}}}}},it=e=>{const{componentCls:n,antCls:t,controlHeight:r,fontSize:a,paddingInline:o,colorBgContainer:l,lineWidth:i,lineType:c,colorBorder:u,borderRadius:s,motionDurationMid:d,colorBgContainerDisabled:f,colorTextDisabled:p,colorTextPlaceholder:g,controlHeightLG:v,fontSizeLG:m,controlHeightSM:h,paddingInlineSM:b,paddingXS:C,marginXS:w,colorTextDescription:$,lineWidthBold:y,lineHeight:k,colorPrimary:x,motionDurationSlow:E,zIndexPopup:Z,paddingXXS:S,paddingSM:D,textHeight:R,cellActiveWithRangeBg:N,colorPrimaryBorder:M,sizePopupArrow:P,borderRadiusXS:I,borderRadiusOuter:Y,colorBgElevated:H,borderRadiusLG:O,boxShadowSecondary:W,borderRadiusSM:T,colorSplit:A,cellHoverBg:B,presetsWidth:L,presetsMaxWidth:V,boxShadowPopoverArrow:j,colorTextQuaternary:F}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},(0,Gn.Wf)(e)),rt(e,r,a,o)),{position:"relative",display:"inline-flex",alignItems:"center",background:l,lineHeight:1,border:`${i}px ${c} ${u}`,borderRadius:s,transition:`border ${d}, box-shadow ${d}`,"&:hover, &-focused":Object.assign({},(0,qn.pU)(e)),"&-focused":Object.assign({},(0,qn.M1)(e)),[`&${n}-disabled`]:{background:f,borderColor:u,cursor:"not-allowed",[`${n}-suffix`]:{color:F}},[`&${n}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,qn.ik)(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${n}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:g}}},"&-large":Object.assign(Object.assign({},rt(e,v,m,o)),{[`${n}-input > input`]:{fontSize:m}}),"&-small":Object.assign({},rt(e,h,a,b)),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:C/2,color:p,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:p,lineHeight:1,background:l,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${d}, color ${d}`,"> *":{verticalAlign:"top"},"&:hover":{color:$}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:m,color:p,fontSize:m,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:$},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-clear`]:{insetInlineEnd:o},"&:hover":{[`${n}-clear`]:{opacity:1}},[`${n}-active-bar`]:{bottom:-i,height:y,marginInlineStart:o,background:x,opacity:0,transition:`all ${E} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${C}px`,lineHeight:1},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:b},[`${n}-active-bar`]:{marginInlineStart:b}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Gn.Wf)(e)),ot(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Z,[`&${n}-dropdown-hidden`]:{display:"none"},[`&${n}-dropdown-placement-bottomLeft`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topRight,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Jn.Qt},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomRight,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Jn.fJ},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Jn.ly},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Jn.Uw},[`${n}-panel > ${n}-time-panel`]:{paddingTop:S},[`${n}-ranges`]:{marginBottom:0,padding:`${S}px ${D}px`,overflow:"hidden",lineHeight:R-2*i-C/2+"px",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${n}-preset > ${t}-tag-blue`]:{color:x,background:N,borderColor:M,cursor:"pointer"},[`${n}-ok`]:{marginInlineStart:"auto"}},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:1.5*o,transition:`left ${E} ease-out`},(0,Xn.r)(P,I,Y,H,j)),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:H,borderRadius:O,boxShadow:W,transition:`margin ${E}`,[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:L,maxWidth:V,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:C,borderInlineEnd:`${i}px ${c} ${A}`,li:Object.assign(Object.assign({},Gn.vS),{borderRadius:T,paddingInline:C,paddingBlock:(h-Math.round(a*k))/2,cursor:"pointer",transition:`all ${E}`,"+ li":{marginTop:w},"&:hover":{background:B}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${n}-panel`]:{borderWidth:`0 0 ${i}px`},"&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content,\n table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:2*P/3+"px 0","&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"rotate(180deg)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Jn.oN)(e,"slide-up"),(0,Jn.oN)(e,"slide-down"),(0,et.Fm)(e,"move-up"),(0,et.Fm)(e,"move-down")]};var ct=(0,tt.Z)("DatePicker",(e=>{const n=(0,nt.TS)((0,qn.e5)(e),(e=>{const{componentCls:n,controlHeightLG:t,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerYearMonthCellWidth:1.5*t,pickerQuarterPanelContentHeight:1.4*t,pickerCellPaddingVertical:r+r/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:a+r/2}})(e));return[it(n),lt(n),(0,Qn.c)(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>Object.assign(Object.assign(Object.assign({},(0,qn.TM)(e)),(e=>({cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new _n.C(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new _n.C(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:e.colorBgContainerDisabled,timeColumnWidth:1.4*e.controlHeightLG,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*e.controlHeightSM,cellHeight:e.controlHeightSM,textHeight:e.controlHeightLG,withoutTimeCellHeight:1.65*e.controlHeightLG}))(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})));function ut(e,n,t){return void 0!==t?t:"year"===n&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===n&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===n&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===n&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===n&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function st(e,n,t){return void 0!==t?t:"year"===n&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===n&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===n&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===n&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===n&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function dt(e,n){const t={adjustX:1,adjustY:1};switch(n){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:t};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:t};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:t};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:t};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:t}}}function ft(e){const{format:n,picker:t,showHour:r,showMinute:a,showSecond:o,use12Hours:l}=e,i=(c=n,c?Array.isArray(c)?c:[c]:[])[0];var c;const u=Object.assign({},e);return n&&Array.isArray(n)&&(u.format=i),i&&"string"==typeof i&&(i.includes("s")||void 0!==o||(u.showSecond=!1),i.includes("m")||void 0!==a||(u.showMinute=!1),i.includes("H")||i.includes("h")||i.includes("K")||i.includes("k")||void 0!==r||(u.showHour=!1),(i.includes("a")||i.includes("A"))&&void 0===l&&(u.use12Hours=!0)),"time"===t?u:("function"==typeof i&&delete u.format,{showTime:u})}function pt(e,n,t){if(!1===e)return!1;const r={clearIcon:null!=n?n:t};return"object"==typeof e?Object.assign(Object.assign({},r),e):r}var gt=t(3113);var vt={button:function(e){return x.createElement(gt.ZP,Object.assign({size:"small",type:"primary"},e))}},mt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const{prefixCls:o,getPopupContainer:l,style:i,className:c,rootClassName:u,size:s,bordered:d=!0,placement:f,placeholder:p,popupClassName:g,dropdownClassName:v,disabled:m,status:h,clearIcon:b,allowClear:C}=t,w=ht(t,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:$,direction:y,getPopupContainer:k,[r]:E}=(0,x.useContext)(Ln.E_),Z=$("picker",o),{compactSize:S,compactItemClassnames:R}=(0,Kn.ri)(Z,y),N=x.useRef(null),{format:I,showTime:Y}=t,[H,O]=ct(Z);(0,x.useImperativeHandle)(a,(()=>({focus:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.focus()},blur:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.blur()}})));let T={};n&&(T.picker=n);const A=n||t.picker;T=Object.assign(Object.assign(Object.assign({},T),Y?ft(Object.assign({format:I,picker:A},Y)):{}),"time"===A?ft(Object.assign(Object.assign({format:I},t),{picker:A})):{});const B=$(),L=(0,jn.Z)((e=>{var n;return null!==(n=null!=s?s:S)&&void 0!==n?n:e})),V=x.useContext(Vn.Z),j=null!=m?m:V,F=(0,x.useContext)(Fn.aM),{hasFeedback:z,status:K,feedbackIcon:U}=F,_=x.createElement(x.Fragment,null,"time"===A?x.createElement(M,null):x.createElement(D,null),z&&U),[q]=(0,zn.Z)("DatePicker",Un.Z),G=Object.assign(Object.assign({},q),t.locale);return H(x.createElement(An,Object.assign({ref:N,placeholder:ut(G,A,p),suffixIcon:_,dropdownAlign:dt(y,f),prevIcon:x.createElement("span",{className:`${Z}-prev-icon`}),nextIcon:x.createElement("span",{className:`${Z}-next-icon`}),superPrevIcon:x.createElement("span",{className:`${Z}-super-prev-icon`}),superNextIcon:x.createElement("span",{className:`${Z}-super-next-icon`}),transitionName:`${B}-slide-up`},{showToday:!0},w,T,{locale:G.lang,className:W()({[`${Z}-${L}`]:L,[`${Z}-borderless`]:!d},(0,Bn.Z)(Z,(0,Bn.F)(K,h),z),O,R,null==E?void 0:E.className,c,u),style:Object.assign(Object.assign({},null==E?void 0:E.style),i),prefixCls:Z,getPopupContainer:l||k,generateConfig:e,components:vt,direction:y,disabled:j,dropdownClassName:W()(O,u,g||v),allowClear:pt(C,b,x.createElement(P.Z,null))})))}));return t&&(a.displayName=t),a}return{DatePicker:n(),WeekPicker:n("week","WeekPicker"),MonthPicker:n("month","MonthPicker"),YearPicker:n("year","YearPicker"),TimePicker:n("time","TimePicker"),QuarterPicker:n("quarter","QuarterPicker")}}(e),i=function(e){return(0,x.forwardRef)(((n,t)=>{const{prefixCls:r,getPopupContainer:a,className:o,placement:l,size:i,disabled:c,bordered:u=!0,placeholder:s,popupClassName:d,dropdownClassName:f,status:p,clearIcon:g,allowClear:v,rootClassName:m}=n,h=mt(n,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),b=x.useRef(null),{getPrefixCls:C,direction:w,getPopupContainer:$}=(0,x.useContext)(Ln.E_),y=C("picker",r),{compactSize:k,compactItemClassnames:E}=(0,Kn.ri)(y,w),{format:Z,showTime:S,picker:R}=n,N=C(),[I,Y]=ct(y),O=Object.assign(Object.assign({},S?ft(Object.assign({format:Z,picker:R},S)):{}),"time"===R?ft(Object.assign(Object.assign({format:Z},n),{picker:R})):{}),T=(0,jn.Z)((e=>{var n;return null!==(n=null!=i?i:k)&&void 0!==n?n:e})),A=x.useContext(Vn.Z),B=null!=c?c:A,L=(0,x.useContext)(Fn.aM),{hasFeedback:V,status:j,feedbackIcon:F}=L,z=x.createElement(x.Fragment,null,"time"===R?x.createElement(M,null):x.createElement(D,null),V&&F);(0,x.useImperativeHandle)(t,(()=>({focus:()=>{var e;return null===(e=b.current)||void 0===e?void 0:e.focus()},blur:()=>{var e;return null===(e=b.current)||void 0===e?void 0:e.blur()}})));const[K]=(0,zn.Z)("Calendar",Un.Z),U=Object.assign(Object.assign({},K),n.locale);return I(x.createElement(Tn,Object.assign({separator:x.createElement("span",{"aria-label":"to",className:`${y}-separator`},x.createElement(H,null)),disabled:B,ref:b,dropdownAlign:dt(w,l),placeholder:st(U,R,s),suffixIcon:z,prevIcon:x.createElement("span",{className:`${y}-prev-icon`}),nextIcon:x.createElement("span",{className:`${y}-next-icon`}),superPrevIcon:x.createElement("span",{className:`${y}-super-prev-icon`}),superNextIcon:x.createElement("span",{className:`${y}-super-next-icon`}),transitionName:`${N}-slide-up`},h,O,{className:W()({[`${y}-${T}`]:T,[`${y}-borderless`]:!u},(0,Bn.Z)(y,(0,Bn.F)(j,p),V),Y,E,o,m),locale:U.lang,prefixCls:y,getPopupContainer:a||$,generateConfig:e,components:vt,direction:w,dropdownClassName:W()(Y,d||f,m),allowClear:pt(v,g,x.createElement(P.Z,null))})))}))}(e),c=n;return c.WeekPicker=t,c.MonthPicker=r,c.YearPicker=a,c.RangePicker=i,c.TimePicker=o,c.QuarterPicker=l,c};const Ct=bt($);function wt(e){const n=dt(e.direction,e.placement);return n.overflow.adjustY=!1,n.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:n})}const $t=(0,y.Z)(Ct,"picker",null,wt);Ct._InternalPanelDoNotUseOrYouWillBeFired=$t;const yt=(0,y.Z)(Ct.RangePicker,"picker",null,wt);Ct._InternalRangePanelDoNotUseOrYouWillBeFired=yt,Ct.generatePicker=bt;var kt=Ct}}]); \ No newline at end of file diff --git a/59028.15962a7d.async.js b/59028.15962a7d.async.js deleted file mode 100644 index 8c49303f83..0000000000 --- a/59028.15962a7d.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[59028],{71371:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(5891),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},a=n(22589),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},82234:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(5891),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},a=n(22589),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},59028:function(e,t,n){n.d(t,{Z:function(){return He}});var r=n(59301),o=n(26390),i=n(92310),a=n.n(i),l=n(5891),c=n(79545),s=n(68550),d=n(17928),u=n(99487),p=n(80962),f=n(19149),m=n(50204),h=n(80665),g=n(20959),v=n(47413);function b(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function w(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,r)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),b(t)):e.onSuccess(b(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var $=+new Date,y=0;function E(){return"rc-upload-".concat($,"-").concat(++y)}var x=n(85870),S=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),a=t.toLowerCase(),l=[a];return".jpg"!==a&&".jpeg"!==a||(l=[".jpg",".jpeg"]),l.some((function(e){return n.endsWith(e)}))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&((0,x.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};var C=function(e,t,n){var r=function e(r,o){r&&(r.path=o||"",r.isFile?r.file((function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):r.isDirectory&&function(e,t){var n=e.createReader(),r=[];!function e(){n.readEntries((function(n){var o=Array.prototype.slice.apply(n);r=r.concat(o),o.length?e():t(r)}))}()}(r,(function(t){t.forEach((function(t){e(t,"".concat(o).concat(r.name,"/"))}))})))};e.forEach((function(e){r(e.webkitGetAsEntry())}))},O=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],k=function(e){(0,d.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;(0,c.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a{let{uid:n}=t;return n===e.uid}));return-1===r?n.push(e):n[r]=e,n}function ne(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}const re=e=>0===e.indexOf("image/"),oe=e=>{if(e.type&&!e.thumbUrl)return re(e.type);const t=e.thumbUrl||e.url||"",n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},ie=200;function ae(e){return new Promise((t=>{if(!e.type||!re(e.type))return void t("");const n=document.createElement("canvas");n.width=ie,n.height=ie,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:e,height:i}=o;let a=ie,l=ie,c=0,s=0;e>i?(l=i*(ie/e),s=-(l-a)/2):(a=e*(ie/i),c=-(a-l)/2),r.drawImage(o,c,s,a,l);const d=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(d)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)}))}var le=n(71371),ce=n(82234),se=n(50382),de=n(93948),ue=n(6848);const pe=r.forwardRef(((e,t)=>{let{prefixCls:n,className:o,style:i,locale:l,listType:c,file:s,items:d,progress:u,iconRender:p,actionIconRender:f,itemRender:m,isImgUrl:h,showPreviewIcon:g,showRemoveIcon:v,showDownloadIcon:b,previewIcon:w,removeIcon:$,downloadIcon:y,onPreview:E,onDownload:x,onClose:S}=e;var C,O;const{status:k}=s,[I,j]=r.useState(k);r.useEffect((()=>{"removed"!==k&&j(k)}),[k]);const[R,D]=r.useState(!1);r.useEffect((()=>{const e=setTimeout((()=>{D(!0)}),300);return()=>{clearTimeout(e)}}),[]);const Z=p(s);let F=r.createElement("div",{className:`${n}-icon`},Z);if("picture"===c||"picture-card"===c||"picture-circle"===c)if("uploading"===I||!s.thumbUrl&&!s.url){const e=a()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:"uploading"!==I});F=r.createElement("div",{className:e},Z)}else{const e=(null==h?void 0:h(s))?r.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):Z,t=a()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:h&&!h(s)});F=r.createElement("a",{className:t,onClick:e=>E(s,e),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const z=a()(`${n}-list-item`,`${n}-list-item-${I}`),N="string"==typeof s.linkProps?JSON.parse(s.linkProps):s.linkProps,L=v?f(("function"==typeof $?$(s):$)||r.createElement(le.Z,null),(()=>S(s)),n,l.removeFile):null,M=b&&"done"===I?f(("function"==typeof y?y(s):y)||r.createElement(ce.Z,null),(()=>x(s)),n,l.downloadFile):null,T="picture-card"!==c&&"picture-circle"!==c&&r.createElement("span",{key:"download-delete",className:a()(`${n}-list-item-actions`,{picture:"picture"===c})},M,L),A=a()(`${n}-list-item-name`),U=s.url?[r.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:A,title:s.name},N,{href:s.url,onClick:e=>E(s,e)}),s.name),T]:[r.createElement("span",{key:"view",className:A,onClick:e=>E(s,e),title:s.name},s.name),T],H=g?r.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:s.url||s.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:e=>E(s,e),title:l.previewFile},"function"==typeof w?w(s):w||r.createElement(se.Z,null)):null,_=("picture-card"===c||"picture-circle"===c)&&"uploading"!==I&&r.createElement("span",{className:`${n}-list-item-actions`},H,"done"===I&&M,L),{getPrefixCls:X}=r.useContext(P.E_),B=X(),V=r.createElement("div",{className:z},F,U,_,R&&r.createElement(G.default,{motionName:`${B}-fade`,visible:"uploading"===I,motionDeadline:2e3},(e=>{let{className:t}=e;const o="percent"in s?r.createElement(de.Z,Object.assign({},u,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return r.createElement("div",{className:a()(`${n}-list-item-progress`,t)},o)}))),q=s.response&&"string"==typeof s.response?s.response:(null===(C=s.error)||void 0===C?void 0:C.statusText)||(null===(O=s.error)||void 0===O?void 0:O.message)||l.uploadError,W="error"===I?r.createElement(ue.Z,{title:q,getPopupContainer:e=>e.parentNode},V):V;return r.createElement("div",{className:a()(`${n}-list-item-container`,o),style:i,ref:t},m?m(W,s,d,{download:x.bind(null,s),preview:E.bind(null,s),remove:S.bind(null,s)}):W)}));var fe=pe;const me=(e,t)=>{const{listType:n="text",previewFile:i=ae,onPreview:l,onDownload:c,onRemove:s,locale:d,iconRender:u,isImageUrl:p=oe,prefixCls:f,items:m=[],showPreviewIcon:h=!0,showRemoveIcon:g=!0,showDownloadIcon:v=!1,removeIcon:b,previewIcon:w,downloadIcon:$,progress:y={size:[-1,2],showInfo:!1},appendAction:E,appendActionVisible:x=!0,itemRender:S,disabled:C}=e,O=(0,K.Z)(),[k,I]=r.useState(!1);r.useEffect((()=>{"picture"!==n&&"picture-card"!==n&&"picture-circle"!==n||(m||[]).forEach((e=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",i&&i(e.originFileObj).then((t=>{e.thumbUrl=t||"",O()})))}))}),[n,m,i]),r.useEffect((()=>{I(!0)}),[]);const j=(e,t)=>{if(l)return null==t||t.preventDefault(),l(e)},R=e=>{"function"==typeof c?c(e):e.url&&window.open(e.url)},D=e=>{null==s||s(e)},Z=e=>{if(u)return u(e,n);const t="uploading"===e.status,o=p&&p(e)?r.createElement(W,null):r.createElement(U,null);let i=t?r.createElement(H.Z,null):r.createElement(B,null);return"picture"===n?i=t?r.createElement(H.Z,null):o:"picture-card"!==n&&"picture-circle"!==n||(i=t?d.uploading:o),i},F=(e,t,n,o)=>{const i={type:"text",size:"small",title:o,onClick:n=>{t(),(0,Q.l$)(e)&&e.props.onClick&&e.props.onClick(n)},className:`${n}-list-item-action`,disabled:C};if((0,Q.l$)(e)){const t=(0,Q.Tm)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return r.createElement(Y.ZP,Object.assign({},i,{icon:t}))}return r.createElement(Y.ZP,Object.assign({},i),r.createElement("span",null,e))};r.useImperativeHandle(t,(()=>({handlePreview:j,handleDownload:R})));const{getPrefixCls:z}=r.useContext(P.E_),N=z("upload",f),L=z(),M=a()(`${N}-list`,`${N}-list-${n}`),T=(0,o.Z)(m.map((e=>({key:e.uid,file:e}))));let A={motionDeadline:2e3,motionName:`${N}-${"picture-card"===n||"picture-circle"===n?"animate-inline":"animate"}`,keys:T,motionAppear:k};const _=r.useMemo((()=>{const e=Object.assign({},(0,J.Z)(L));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e}),[L]);return"picture-card"!==n&&"picture-circle"!==n&&(A=Object.assign(Object.assign({},_),A)),r.createElement("div",{className:M},r.createElement(G.CSSMotionList,Object.assign({},A,{component:!1}),(e=>{let{key:t,file:o,className:i,style:a}=e;return r.createElement(fe,{key:t,locale:d,prefixCls:N,className:i,style:a,file:o,items:m,progress:y,listType:n,isImgUrl:p,showPreviewIcon:h,showRemoveIcon:g,showDownloadIcon:v,removeIcon:b,previewIcon:w,downloadIcon:$,iconRender:Z,actionIconRender:F,itemRender:S,onPreview:j,onDownload:R,onClose:D})})),E&&r.createElement(G.default,Object.assign({},A,{visible:x,forceRender:!0}),(e=>{let{className:t,style:n}=e;return(0,Q.Tm)(E,(e=>({className:a()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)})))})))};var he=r.forwardRef(me),ge=n(17313),ve=n(8378),be=n(83116),we=n(37613);var $e=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}};var ye=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:i}=e,a=`${t}-list-item`,l=`${a}-actions`,c=`${a}-action`,s=Math.round(o*i);return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,ge.dF)()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:e.lineHeight*o,marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},ge.vS),{padding:`0 ${e.paddingXS}px`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{[c]:{opacity:0},[`${c}${n}-btn-sm`]:{height:s,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`\n ${c}:focus-visible,\n &.picture ${c}\n `]:{opacity:1},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`&:hover ${r}`]:{color:e.colorText}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${a}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:o+e.paddingXS,fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${c}`]:{opacity:1,color:e.colorText},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${r}`]:{color:e.colorError},[l]:{[`${r}, ${r}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ee=n(91182),xe=n(1950);const Se=new Ee.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Ce=new Ee.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Oe=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:Se},[`${n}-leave`]:{animationName:Ce}}},{[`${t}-wrapper`]:(0,xe.J$)(e)},Se,Ce]},ke=n(88453),Ie=n(64993);const je=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o}=e,i=`${t}-list`,a=`${i}-item`;return{[`${t}-wrapper`]:{[`\n ${i}${i}-picture,\n ${i}${i}-picture-card,\n ${i}${i}-picture-circle\n `]:{[a]:{position:"relative",height:r+2*e.lineWidth+2*e.paddingXS,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${a}-thumbnail`]:Object.assign(Object.assign({},ge.vS),{width:r,height:r,lineHeight:`${r+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${a}-progress`]:{bottom:o,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:r+e.paddingXS}},[`${a}-error`]:{borderColor:e.colorError,[`${a}-thumbnail ${n}`]:{[`svg path[fill='${ke.blue[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${ke.blue.primary}']`]:{fill:e.colorError}}},[`${a}-uploading`]:{borderStyle:"dashed",[`${a}-name`]:{marginBottom:o}}},[`${i}${i}-picture-circle ${a}`]:{[`&, &::before, ${a}-thumbnail`]:{borderRadius:"50%"}}}}},Re=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o}=e,i=`${t}-list`,a=`${i}-item`,l=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},(0,ge.dF)()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:l,height:l,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card, ${i}${i}-picture-circle`]:{[`${i}-item-container`]:{display:"inline-block",width:l,height:l,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[a]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${2*e.paddingXS}px)`,height:`calc(100% - ${2*e.paddingXS}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${a}:hover`]:{[`&::before, ${a}-actions`]:{opacity:1}},[`${a}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:r,margin:`0 ${e.marginXXS}px`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${a}-actions, ${a}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new Ie.C(o).setAlpha(.65).toRgbString(),"&:hover":{color:o}}},[`${a}-thumbnail, ${a}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${a}-name`]:{display:"none",textAlign:"center"},[`${a}-file + ${a}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${a}-uploading`]:{[`&${a}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${a}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${2*e.paddingXS}px)`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var De=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};const Ze=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,ge.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}};var Fe=(0,be.Z)("Upload",(e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightLG:i}=e,a=Math.round(n*r),l=(0,we.TS)(e,{uploadThumbnailSize:2*t,uploadProgressOffset:a/2+o,uploadPicCardSize:2.55*i});return[Ze(l),$e(l),je(l),Re(l),ye(l),Oe(l),De(l),(0,ve.Z)(l)]}),(e=>({actionsColor:e.colorTextDescription}))),Pe=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((r=r.apply(e,t||[])).next())}))};const ze=`__LIST_IGNORE_${Date.now()}__`,Ne=(e,t)=>{const{fileList:n,defaultFileList:i,onRemove:l,showUploadList:c=!0,listType:s="text",onPreview:d,onDownload:u,onChange:p,onDrop:f,previewFile:m,disabled:h,locale:g,iconRender:v,isImageUrl:b,progress:w,prefixCls:$,className:y,type:E="select",children:x,style:S,itemRender:C,maxCount:O,data:k={},multiple:I=!1,action:j="",accept:R="",supportServerRender:M=!0,rootClassName:T}=e,A=r.useContext(z.Z),U=null!=h?h:A,[H,_]=(0,Z.Z)(i||[],{value:n,postState:e=>null!=e?e:[]}),[X,B]=r.useState("drop"),V=r.useRef(null);r.useMemo((()=>{const e=Date.now();(n||[]).forEach(((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)}))}),[n]);const q=(e,t,n)=>{let r=(0,o.Z)(t),i=!1;1===O?r=r.slice(-1):O&&(i=r.length>O,r=r.slice(0,O)),(0,F.flushSync)((()=>{_(r)}));const a={file:e,fileList:r};n&&(a.event=n),i&&!r.some((t=>t.uid===e.uid))||(0,F.flushSync)((()=>{null==p||p(a)}))},W=e=>{const t=e.filter((e=>!e.file[ze]));if(!t.length)return;const n=t.map((e=>ee(e.file)));let r=(0,o.Z)(H);n.forEach((e=>{r=te(e,r)})),n.forEach(((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(e){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,o=n}q(o,r)}))},G=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!ne(t,H))return;const r=ee(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;const o=te(r,H);q(r,o)},K=(e,t)=>{if(!ne(t,H))return;const n=ee(t);n.status="uploading",n.percent=e.percent;const r=te(n,H);q(n,r,e)},J=(e,t,n)=>{if(!ne(n,H))return;const r=ee(n);r.error=e,r.response=t,r.status="error";const o=te(r,H);q(r,o)},Q=e=>{let t;Promise.resolve("function"==typeof l?l(e):l).then((n=>{var r;if(!1===n)return;const o=function(e,t){const n=void 0!==e.uid?"uid":"name",r=t.filter((t=>t[n]!==e[n]));return r.length===t.length?null:r}(e,H);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==H||H.forEach((e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(r=V.current)||void 0===r||r.abort(t),q(t,o))}))},Y=e=>{B(e.type),"drop"===e.type&&(null==f||f(e))};r.useImperativeHandle(t,(()=>({onBatchStart:W,onSuccess:G,onProgress:K,onError:J,fileList:H,upload:V.current})));const{getPrefixCls:re,direction:oe,upload:ie}=r.useContext(P.E_),ae=re("upload",$),le=Object.assign(Object.assign({onBatchStart:W,onError:J,onProgress:K,onSuccess:G},e),{data:k,multiple:I,action:j,accept:R,supportServerRender:M,prefixCls:ae,disabled:U,beforeUpload:(t,n)=>Pe(void 0,void 0,void 0,(function*(){const{beforeUpload:r,transformFile:o}=e;let i=t;if(r){const e=yield r(t,n);if(!1===e)return!1;if(delete t[ze],e===ze)return Object.defineProperty(t,ze,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return o&&(i=yield o(i)),i})),onChange:void 0});delete le.className,delete le.style,x&&!U||delete le.id;const[ce,se]=Fe(ae),[de]=(0,N.Z)("Upload",L.Z.Upload),{showRemoveIcon:ue,showPreviewIcon:pe,showDownloadIcon:fe,removeIcon:me,previewIcon:ge,downloadIcon:ve}="boolean"==typeof c?{}:c,be=(e,t)=>c?r.createElement(he,{prefixCls:ae,listType:s,items:H,previewFile:m,onPreview:d,onDownload:u,onRemove:Q,showRemoveIcon:!U&&ue,showPreviewIcon:pe,showDownloadIcon:fe,removeIcon:me,previewIcon:ge,downloadIcon:ve,iconRender:v,locale:Object.assign(Object.assign({},de),g),isImageUrl:b,progress:w,appendAction:e,appendActionVisible:t,itemRender:C,disabled:U}):e,we=a()(`${ae}-wrapper`,y,T,se,null==ie?void 0:ie.className,{[`${ae}-rtl`]:"rtl"===oe,[`${ae}-picture-card-wrapper`]:"picture-card"===s,[`${ae}-picture-circle-wrapper`]:"picture-circle"===s}),$e=Object.assign(Object.assign({},null==ie?void 0:ie.style),S);if("drag"===E){const e=a()(se,ae,`${ae}-drag`,{[`${ae}-drag-uploading`]:H.some((e=>"uploading"===e.status)),[`${ae}-drag-hover`]:"dragover"===X,[`${ae}-disabled`]:U,[`${ae}-rtl`]:"rtl"===oe});return ce(r.createElement("span",{className:we},r.createElement("div",{className:e,style:$e,onDrop:Y,onDragOver:Y,onDragLeave:Y},r.createElement(D,Object.assign({},le,{ref:V,className:`${ae}-btn`}),r.createElement("div",{className:`${ae}-drag-container`},x))),be()))}const ye=a()(ae,`${ae}-select`,{[`${ae}-disabled`]:U}),Ee=(xe=x?void 0:{display:"none"},r.createElement("div",{className:ye,style:xe},r.createElement(D,Object.assign({},le,{ref:V}))));var xe;return ce("picture-card"===s||"picture-circle"===s?r.createElement("span",{className:we},be(Ee,!!x)):r.createElement("span",{className:we},Ee,be()))};var Le=r.forwardRef(Ne),Me=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{style:n,height:o}=e,i=Me(e,["style","height"]);return r.createElement(Le,Object.assign({ref:t},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:o})}))}));var Ae=Te;const Ue=Le;Ue.Dragger=Ae,Ue.LIST_IGNORE=ze;var He=Ue}}]); \ No newline at end of file diff --git a/59028.ca43e536.async.js b/59028.ca43e536.async.js new file mode 100644 index 0000000000..701e69c8c7 --- /dev/null +++ b/59028.ca43e536.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[59028],{71371:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(5891),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},a=n(22589),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},82234:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(5891),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},a=n(22589),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},59028:function(e,t,n){n.d(t,{Z:function(){return He}});var r=n(59301),o=n(26390),i=n(92310),a=n.n(i),l=n(5891),c=n(79545),s=n(68550),d=n(17928),u=n(7711),p=n(80962),f=n(19149),m=n(50204),h=n(80665),g=n(20959),v=n(47413);function b(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function w(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,r)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),b(t)):e.onSuccess(b(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var $=+new Date,y=0;function E(){return"rc-upload-".concat($,"-").concat(++y)}var x=n(85870),S=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),a=t.toLowerCase(),l=[a];return".jpg"!==a&&".jpeg"!==a||(l=[".jpg",".jpeg"]),l.some((function(e){return n.endsWith(e)}))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&((0,x.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};var C=function(e,t,n){var r=function e(r,o){r&&(r.path=o||"",r.isFile?r.file((function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):r.isDirectory&&function(e,t){var n=e.createReader(),r=[];!function e(){n.readEntries((function(n){var o=Array.prototype.slice.apply(n);r=r.concat(o),o.length?e():t(r)}))}()}(r,(function(t){t.forEach((function(t){e(t,"".concat(o).concat(r.name,"/"))}))})))};e.forEach((function(e){r(e.webkitGetAsEntry())}))},O=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],k=function(e){(0,d.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;(0,c.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a{let{uid:n}=t;return n===e.uid}));return-1===r?n.push(e):n[r]=e,n}function ne(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}const re=e=>0===e.indexOf("image/"),oe=e=>{if(e.type&&!e.thumbUrl)return re(e.type);const t=e.thumbUrl||e.url||"",n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},ie=200;function ae(e){return new Promise((t=>{if(!e.type||!re(e.type))return void t("");const n=document.createElement("canvas");n.width=ie,n.height=ie,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:e,height:i}=o;let a=ie,l=ie,c=0,s=0;e>i?(l=i*(ie/e),s=-(l-a)/2):(a=e*(ie/i),c=-(a-l)/2),r.drawImage(o,c,s,a,l);const d=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(d)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)}))}var le=n(71371),ce=n(82234),se=n(50382),de=n(93948),ue=n(6848);const pe=r.forwardRef(((e,t)=>{let{prefixCls:n,className:o,style:i,locale:l,listType:c,file:s,items:d,progress:u,iconRender:p,actionIconRender:f,itemRender:m,isImgUrl:h,showPreviewIcon:g,showRemoveIcon:v,showDownloadIcon:b,previewIcon:w,removeIcon:$,downloadIcon:y,onPreview:E,onDownload:x,onClose:S}=e;var C,O;const{status:k}=s,[I,j]=r.useState(k);r.useEffect((()=>{"removed"!==k&&j(k)}),[k]);const[R,D]=r.useState(!1);r.useEffect((()=>{const e=setTimeout((()=>{D(!0)}),300);return()=>{clearTimeout(e)}}),[]);const Z=p(s);let F=r.createElement("div",{className:`${n}-icon`},Z);if("picture"===c||"picture-card"===c||"picture-circle"===c)if("uploading"===I||!s.thumbUrl&&!s.url){const e=a()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:"uploading"!==I});F=r.createElement("div",{className:e},Z)}else{const e=(null==h?void 0:h(s))?r.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):Z,t=a()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:h&&!h(s)});F=r.createElement("a",{className:t,onClick:e=>E(s,e),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const z=a()(`${n}-list-item`,`${n}-list-item-${I}`),N="string"==typeof s.linkProps?JSON.parse(s.linkProps):s.linkProps,L=v?f(("function"==typeof $?$(s):$)||r.createElement(le.Z,null),(()=>S(s)),n,l.removeFile):null,M=b&&"done"===I?f(("function"==typeof y?y(s):y)||r.createElement(ce.Z,null),(()=>x(s)),n,l.downloadFile):null,T="picture-card"!==c&&"picture-circle"!==c&&r.createElement("span",{key:"download-delete",className:a()(`${n}-list-item-actions`,{picture:"picture"===c})},M,L),A=a()(`${n}-list-item-name`),U=s.url?[r.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:A,title:s.name},N,{href:s.url,onClick:e=>E(s,e)}),s.name),T]:[r.createElement("span",{key:"view",className:A,onClick:e=>E(s,e),title:s.name},s.name),T],H=g?r.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:s.url||s.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:e=>E(s,e),title:l.previewFile},"function"==typeof w?w(s):w||r.createElement(se.Z,null)):null,_=("picture-card"===c||"picture-circle"===c)&&"uploading"!==I&&r.createElement("span",{className:`${n}-list-item-actions`},H,"done"===I&&M,L),{getPrefixCls:X}=r.useContext(P.E_),B=X(),V=r.createElement("div",{className:z},F,U,_,R&&r.createElement(G.default,{motionName:`${B}-fade`,visible:"uploading"===I,motionDeadline:2e3},(e=>{let{className:t}=e;const o="percent"in s?r.createElement(de.Z,Object.assign({},u,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return r.createElement("div",{className:a()(`${n}-list-item-progress`,t)},o)}))),q=s.response&&"string"==typeof s.response?s.response:(null===(C=s.error)||void 0===C?void 0:C.statusText)||(null===(O=s.error)||void 0===O?void 0:O.message)||l.uploadError,W="error"===I?r.createElement(ue.Z,{title:q,getPopupContainer:e=>e.parentNode},V):V;return r.createElement("div",{className:a()(`${n}-list-item-container`,o),style:i,ref:t},m?m(W,s,d,{download:x.bind(null,s),preview:E.bind(null,s),remove:S.bind(null,s)}):W)}));var fe=pe;const me=(e,t)=>{const{listType:n="text",previewFile:i=ae,onPreview:l,onDownload:c,onRemove:s,locale:d,iconRender:u,isImageUrl:p=oe,prefixCls:f,items:m=[],showPreviewIcon:h=!0,showRemoveIcon:g=!0,showDownloadIcon:v=!1,removeIcon:b,previewIcon:w,downloadIcon:$,progress:y={size:[-1,2],showInfo:!1},appendAction:E,appendActionVisible:x=!0,itemRender:S,disabled:C}=e,O=(0,K.Z)(),[k,I]=r.useState(!1);r.useEffect((()=>{"picture"!==n&&"picture-card"!==n&&"picture-circle"!==n||(m||[]).forEach((e=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",i&&i(e.originFileObj).then((t=>{e.thumbUrl=t||"",O()})))}))}),[n,m,i]),r.useEffect((()=>{I(!0)}),[]);const j=(e,t)=>{if(l)return null==t||t.preventDefault(),l(e)},R=e=>{"function"==typeof c?c(e):e.url&&window.open(e.url)},D=e=>{null==s||s(e)},Z=e=>{if(u)return u(e,n);const t="uploading"===e.status,o=p&&p(e)?r.createElement(W,null):r.createElement(U,null);let i=t?r.createElement(H.Z,null):r.createElement(B,null);return"picture"===n?i=t?r.createElement(H.Z,null):o:"picture-card"!==n&&"picture-circle"!==n||(i=t?d.uploading:o),i},F=(e,t,n,o)=>{const i={type:"text",size:"small",title:o,onClick:n=>{t(),(0,Q.l$)(e)&&e.props.onClick&&e.props.onClick(n)},className:`${n}-list-item-action`,disabled:C};if((0,Q.l$)(e)){const t=(0,Q.Tm)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return r.createElement(Y.ZP,Object.assign({},i,{icon:t}))}return r.createElement(Y.ZP,Object.assign({},i),r.createElement("span",null,e))};r.useImperativeHandle(t,(()=>({handlePreview:j,handleDownload:R})));const{getPrefixCls:z}=r.useContext(P.E_),N=z("upload",f),L=z(),M=a()(`${N}-list`,`${N}-list-${n}`),T=(0,o.Z)(m.map((e=>({key:e.uid,file:e}))));let A={motionDeadline:2e3,motionName:`${N}-${"picture-card"===n||"picture-circle"===n?"animate-inline":"animate"}`,keys:T,motionAppear:k};const _=r.useMemo((()=>{const e=Object.assign({},(0,J.Z)(L));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e}),[L]);return"picture-card"!==n&&"picture-circle"!==n&&(A=Object.assign(Object.assign({},_),A)),r.createElement("div",{className:M},r.createElement(G.CSSMotionList,Object.assign({},A,{component:!1}),(e=>{let{key:t,file:o,className:i,style:a}=e;return r.createElement(fe,{key:t,locale:d,prefixCls:N,className:i,style:a,file:o,items:m,progress:y,listType:n,isImgUrl:p,showPreviewIcon:h,showRemoveIcon:g,showDownloadIcon:v,removeIcon:b,previewIcon:w,downloadIcon:$,iconRender:Z,actionIconRender:F,itemRender:S,onPreview:j,onDownload:R,onClose:D})})),E&&r.createElement(G.default,Object.assign({},A,{visible:x,forceRender:!0}),(e=>{let{className:t,style:n}=e;return(0,Q.Tm)(E,(e=>({className:a()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)})))})))};var he=r.forwardRef(me),ge=n(17313),ve=n(8378),be=n(83116),we=n(37613);var $e=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}};var ye=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:i}=e,a=`${t}-list-item`,l=`${a}-actions`,c=`${a}-action`,s=Math.round(o*i);return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,ge.dF)()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:e.lineHeight*o,marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},ge.vS),{padding:`0 ${e.paddingXS}px`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{[c]:{opacity:0},[`${c}${n}-btn-sm`]:{height:s,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`\n ${c}:focus-visible,\n &.picture ${c}\n `]:{opacity:1},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`&:hover ${r}`]:{color:e.colorText}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${a}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:o+e.paddingXS,fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${c}`]:{opacity:1,color:e.colorText},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${r}`]:{color:e.colorError},[l]:{[`${r}, ${r}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ee=n(91182),xe=n(1950);const Se=new Ee.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Ce=new Ee.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Oe=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:Se},[`${n}-leave`]:{animationName:Ce}}},{[`${t}-wrapper`]:(0,xe.J$)(e)},Se,Ce]},ke=n(88453),Ie=n(64993);const je=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o}=e,i=`${t}-list`,a=`${i}-item`;return{[`${t}-wrapper`]:{[`\n ${i}${i}-picture,\n ${i}${i}-picture-card,\n ${i}${i}-picture-circle\n `]:{[a]:{position:"relative",height:r+2*e.lineWidth+2*e.paddingXS,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${a}-thumbnail`]:Object.assign(Object.assign({},ge.vS),{width:r,height:r,lineHeight:`${r+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${a}-progress`]:{bottom:o,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:r+e.paddingXS}},[`${a}-error`]:{borderColor:e.colorError,[`${a}-thumbnail ${n}`]:{[`svg path[fill='${ke.blue[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${ke.blue.primary}']`]:{fill:e.colorError}}},[`${a}-uploading`]:{borderStyle:"dashed",[`${a}-name`]:{marginBottom:o}}},[`${i}${i}-picture-circle ${a}`]:{[`&, &::before, ${a}-thumbnail`]:{borderRadius:"50%"}}}}},Re=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o}=e,i=`${t}-list`,a=`${i}-item`,l=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},(0,ge.dF)()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:l,height:l,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card, ${i}${i}-picture-circle`]:{[`${i}-item-container`]:{display:"inline-block",width:l,height:l,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[a]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${2*e.paddingXS}px)`,height:`calc(100% - ${2*e.paddingXS}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${a}:hover`]:{[`&::before, ${a}-actions`]:{opacity:1}},[`${a}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:r,margin:`0 ${e.marginXXS}px`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${a}-actions, ${a}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new Ie.C(o).setAlpha(.65).toRgbString(),"&:hover":{color:o}}},[`${a}-thumbnail, ${a}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${a}-name`]:{display:"none",textAlign:"center"},[`${a}-file + ${a}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${a}-uploading`]:{[`&${a}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${a}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${2*e.paddingXS}px)`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var De=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};const Ze=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,ge.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}};var Fe=(0,be.Z)("Upload",(e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightLG:i}=e,a=Math.round(n*r),l=(0,we.TS)(e,{uploadThumbnailSize:2*t,uploadProgressOffset:a/2+o,uploadPicCardSize:2.55*i});return[Ze(l),$e(l),je(l),Re(l),ye(l),Oe(l),De(l),(0,ve.Z)(l)]}),(e=>({actionsColor:e.colorTextDescription}))),Pe=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((r=r.apply(e,t||[])).next())}))};const ze=`__LIST_IGNORE_${Date.now()}__`,Ne=(e,t)=>{const{fileList:n,defaultFileList:i,onRemove:l,showUploadList:c=!0,listType:s="text",onPreview:d,onDownload:u,onChange:p,onDrop:f,previewFile:m,disabled:h,locale:g,iconRender:v,isImageUrl:b,progress:w,prefixCls:$,className:y,type:E="select",children:x,style:S,itemRender:C,maxCount:O,data:k={},multiple:I=!1,action:j="",accept:R="",supportServerRender:M=!0,rootClassName:T}=e,A=r.useContext(z.Z),U=null!=h?h:A,[H,_]=(0,Z.Z)(i||[],{value:n,postState:e=>null!=e?e:[]}),[X,B]=r.useState("drop"),V=r.useRef(null);r.useMemo((()=>{const e=Date.now();(n||[]).forEach(((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)}))}),[n]);const q=(e,t,n)=>{let r=(0,o.Z)(t),i=!1;1===O?r=r.slice(-1):O&&(i=r.length>O,r=r.slice(0,O)),(0,F.flushSync)((()=>{_(r)}));const a={file:e,fileList:r};n&&(a.event=n),i&&!r.some((t=>t.uid===e.uid))||(0,F.flushSync)((()=>{null==p||p(a)}))},W=e=>{const t=e.filter((e=>!e.file[ze]));if(!t.length)return;const n=t.map((e=>ee(e.file)));let r=(0,o.Z)(H);n.forEach((e=>{r=te(e,r)})),n.forEach(((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(e){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,o=n}q(o,r)}))},G=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!ne(t,H))return;const r=ee(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;const o=te(r,H);q(r,o)},K=(e,t)=>{if(!ne(t,H))return;const n=ee(t);n.status="uploading",n.percent=e.percent;const r=te(n,H);q(n,r,e)},J=(e,t,n)=>{if(!ne(n,H))return;const r=ee(n);r.error=e,r.response=t,r.status="error";const o=te(r,H);q(r,o)},Q=e=>{let t;Promise.resolve("function"==typeof l?l(e):l).then((n=>{var r;if(!1===n)return;const o=function(e,t){const n=void 0!==e.uid?"uid":"name",r=t.filter((t=>t[n]!==e[n]));return r.length===t.length?null:r}(e,H);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==H||H.forEach((e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(r=V.current)||void 0===r||r.abort(t),q(t,o))}))},Y=e=>{B(e.type),"drop"===e.type&&(null==f||f(e))};r.useImperativeHandle(t,(()=>({onBatchStart:W,onSuccess:G,onProgress:K,onError:J,fileList:H,upload:V.current})));const{getPrefixCls:re,direction:oe,upload:ie}=r.useContext(P.E_),ae=re("upload",$),le=Object.assign(Object.assign({onBatchStart:W,onError:J,onProgress:K,onSuccess:G},e),{data:k,multiple:I,action:j,accept:R,supportServerRender:M,prefixCls:ae,disabled:U,beforeUpload:(t,n)=>Pe(void 0,void 0,void 0,(function*(){const{beforeUpload:r,transformFile:o}=e;let i=t;if(r){const e=yield r(t,n);if(!1===e)return!1;if(delete t[ze],e===ze)return Object.defineProperty(t,ze,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return o&&(i=yield o(i)),i})),onChange:void 0});delete le.className,delete le.style,x&&!U||delete le.id;const[ce,se]=Fe(ae),[de]=(0,N.Z)("Upload",L.Z.Upload),{showRemoveIcon:ue,showPreviewIcon:pe,showDownloadIcon:fe,removeIcon:me,previewIcon:ge,downloadIcon:ve}="boolean"==typeof c?{}:c,be=(e,t)=>c?r.createElement(he,{prefixCls:ae,listType:s,items:H,previewFile:m,onPreview:d,onDownload:u,onRemove:Q,showRemoveIcon:!U&&ue,showPreviewIcon:pe,showDownloadIcon:fe,removeIcon:me,previewIcon:ge,downloadIcon:ve,iconRender:v,locale:Object.assign(Object.assign({},de),g),isImageUrl:b,progress:w,appendAction:e,appendActionVisible:t,itemRender:C,disabled:U}):e,we=a()(`${ae}-wrapper`,y,T,se,null==ie?void 0:ie.className,{[`${ae}-rtl`]:"rtl"===oe,[`${ae}-picture-card-wrapper`]:"picture-card"===s,[`${ae}-picture-circle-wrapper`]:"picture-circle"===s}),$e=Object.assign(Object.assign({},null==ie?void 0:ie.style),S);if("drag"===E){const e=a()(se,ae,`${ae}-drag`,{[`${ae}-drag-uploading`]:H.some((e=>"uploading"===e.status)),[`${ae}-drag-hover`]:"dragover"===X,[`${ae}-disabled`]:U,[`${ae}-rtl`]:"rtl"===oe});return ce(r.createElement("span",{className:we},r.createElement("div",{className:e,style:$e,onDrop:Y,onDragOver:Y,onDragLeave:Y},r.createElement(D,Object.assign({},le,{ref:V,className:`${ae}-btn`}),r.createElement("div",{className:`${ae}-drag-container`},x))),be()))}const ye=a()(ae,`${ae}-select`,{[`${ae}-disabled`]:U}),Ee=(xe=x?void 0:{display:"none"},r.createElement("div",{className:ye,style:xe},r.createElement(D,Object.assign({},le,{ref:V}))));var xe;return ce("picture-card"===s||"picture-circle"===s?r.createElement("span",{className:we},be(Ee,!!x)):r.createElement("span",{className:we},Ee,be()))};var Le=r.forwardRef(Ne),Me=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{style:n,height:o}=e,i=Me(e,["style","height"]);return r.createElement(Le,Object.assign({ref:t},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:o})}))}));var Ae=Te;const Ue=Le;Ue.Dragger=Ae,Ue.LIST_IGNORE=ze;var He=Ue}}]); \ No newline at end of file diff --git a/59057.0ecb1ac6.async.js b/59057.0ecb1ac6.async.js new file mode 100644 index 0000000000..e8b526c60d --- /dev/null +++ b/59057.0ecb1ac6.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[59057,13488],{27666:function(e,t,o){"use strict";var n=o(26390),r=o(71783);t.Z=function(e){let t;const o=o=>()=>{t=null,e.apply(void 0,(0,n.Z)(o))},s=function(){if(null==t){for(var e=arguments.length,n=new Array(e),s=0;s{r.Z.cancel(t),t=null},s}},81228:function(e,t,o){"use strict";o.d(t,{Z:function(){return S}});var n=o(79545),r=o(68550),s=o(17928),i=o(7711),l=o(59301),a=o(92310),u=o.n(a),p=o(28647),c=o(55405),f=o(27666),d=o(36355),h=o(83116),v=o(37613);const m=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var g=(0,h.Z)("Affix",(e=>{const t=(0,v.TS)(e,{zIndexPopup:e.zIndexBase+10});return[m(t)]}));function y(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function w(e,t,o){if(void 0!==o&&t.top>e.top-o)return o+t.top}function L(e,t,o){if(void 0!==o&&t.bottom{const t=e.getTargetFunc(),o=null==t?void 0:t(),{prevTarget:n}=e.state;n!==o&&(P.forEach((t=>{null==n||n.removeEventListener(t,e.lazyUpdatePosition),null==o||o.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:o}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,o=e.getTargetFunc(),n=null==o?void 0:o();P.forEach((o=>{null==n||n.removeEventListener(o,e.lazyUpdatePosition),null==t||t.removeEventListener(o,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:o}=e.props;return void 0===t&&void 0===o?0:o},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:o}=e.state,{onChange:n}=e.props,r=e.getTargetFunc();if(t!==b.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!r)return;const s=e.getOffsetTop(),i=e.getOffsetBottom(),l=r();if(l){const t={status:b.None},r=y(e.placeholderNodeRef.current);if(0===r.top&&0===r.left&&0===r.width&&0===r.height)return;const a=y(l),u=w(r,a,s),p=L(r,a,i);void 0!==u?(t.affixStyle={position:"fixed",top:u,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}):void 0!==p&&(t.affixStyle={position:"fixed",bottom:p,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}),t.lastAffix=!!t.affixStyle,n&&o!==t.lastAffix&&n(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:b.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,f.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,f.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:o}=e.state;if(t&&o){const n=e.getOffsetTop(),r=e.getOffsetBottom(),s=t();if(s&&e.placeholderNodeRef.current){const t=y(s),i=y(e.placeholderNodeRef.current),l=w(i,t,n),a=L(i,t,r);if(void 0!==l&&o.top===l||void 0!==a&&o.bottom===a)return}}e.prepareMeasure()})),e}return(0,r.Z)(o,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:C}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:o,rootClassName:n,children:r}=this.props,s=u()(e&&n,{[o]:!!e});let i=(0,c.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return l.createElement(p.Z,{onResize:this.updatePosition},l.createElement("div",Object.assign({},i,{ref:this.placeholderNodeRef}),e&&l.createElement("div",{style:t,"aria-hidden":"true"}),l.createElement("div",{className:s,ref:this.fixedNodeRef,style:e},l.createElement(p.Z,{onResize:this.updatePosition},r))))}}]),o}(l.Component);x.contextType=d.E_;var S=(0,l.forwardRef)(((e,t)=>{const{prefixCls:o,rootClassName:n}=e,{getPrefixCls:r}=(0,l.useContext)(d.E_),s=r("affix",o),[i,a]=g(s),p=Object.assign(Object.assign({},e),{affixPrefixCls:s,rootClassName:u()(n,a)});return i(l.createElement(x,Object.assign({},p,{ref:t})))}))},88522:function(e,t,o){"use strict";var n=o(92310),r=o.n(n),s=o(75440),i=o(55405),l=o(59301),a=o(53487),u=o(92343),p=o(36355),c=o(57809);const{Option:f}=c.default;function d(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const h=(e,t)=>{const{prefixCls:o,className:n,popupClassName:a,dropdownClassName:h,children:v,dataSource:m}=e,g=(0,s.Z)(v);let y;1===g.length&&(0,u.l$)(g[0])&&!d(g[0])&&([y]=g);const w=y?()=>y:void 0;let L;L=g.length&&d(g[0])?v:m?m.map((e=>{if((0,u.l$)(e))return e;switch(typeof e){case"string":return l.createElement(f,{key:e,value:e},e);case"object":{const{value:t}=e;return l.createElement(f,{key:t,value:t},e.text)}default:return}})):[];const{getPrefixCls:P}=l.useContext(p.E_),C=P("select",o);return l.createElement(c.default,Object.assign({ref:t,suffixIcon:null},(0,i.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:C,popupClassName:a||h,className:r()(`${C}-auto-complete`,n),mode:c.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:w}),L)},v=l.forwardRef(h),m=(0,a.Z)(v);v.Option=f,v._InternalPanelDoNotUseOrYouWillBeFired=m,t.Z=v},51581:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));u.ref=function(t){e.scrollComponent=t,a&&a(t)};var p=[o];return r&&(l?i?p.unshift(l):p.push(l):this.defaultLoader&&(i?p.unshift(this.defaultLoader):p.push(this.defaultLoader))),s.default.createElement(n,u,p)}}]),t}(r.Component);a.propTypes={children:i.default.node.isRequired,element:i.default.node,hasMore:i.default.bool,initialLoad:i.default.bool,isReverse:i.default.bool,loader:i.default.node,loadMore:i.default.func.isRequired,pageStart:i.default.number,ref:i.default.func,getScrollParent:i.default.func,threshold:i.default.number,useCapture:i.default.bool,useWindow:i.default.bool},a.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=a,e.exports=t.default},26724:function(e,t,o){e.exports=o(51581)}}]); \ No newline at end of file diff --git a/59057.8b666ea5.async.js b/59057.8b666ea5.async.js deleted file mode 100644 index 3c89fb03e5..0000000000 --- a/59057.8b666ea5.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[59057,13488],{27666:function(e,t,o){"use strict";var n=o(26390),r=o(71783);t.Z=function(e){let t;const o=o=>()=>{t=null,e.apply(void 0,(0,n.Z)(o))},s=function(){if(null==t){for(var e=arguments.length,n=new Array(e),s=0;s{r.Z.cancel(t),t=null},s}},81228:function(e,t,o){"use strict";o.d(t,{Z:function(){return S}});var n=o(79545),r=o(68550),s=o(17928),i=o(99487),l=o(59301),a=o(92310),u=o.n(a),p=o(28647),c=o(55405),f=o(27666),d=o(36355),h=o(83116),v=o(37613);const m=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var g=(0,h.Z)("Affix",(e=>{const t=(0,v.TS)(e,{zIndexPopup:e.zIndexBase+10});return[m(t)]}));function y(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function w(e,t,o){if(void 0!==o&&t.top>e.top-o)return o+t.top}function L(e,t,o){if(void 0!==o&&t.bottom{const t=e.getTargetFunc(),o=null==t?void 0:t(),{prevTarget:n}=e.state;n!==o&&(P.forEach((t=>{null==n||n.removeEventListener(t,e.lazyUpdatePosition),null==o||o.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:o}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,o=e.getTargetFunc(),n=null==o?void 0:o();P.forEach((o=>{null==n||n.removeEventListener(o,e.lazyUpdatePosition),null==t||t.removeEventListener(o,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:o}=e.props;return void 0===t&&void 0===o?0:o},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:o}=e.state,{onChange:n}=e.props,r=e.getTargetFunc();if(t!==b.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!r)return;const s=e.getOffsetTop(),i=e.getOffsetBottom(),l=r();if(l){const t={status:b.None},r=y(e.placeholderNodeRef.current);if(0===r.top&&0===r.left&&0===r.width&&0===r.height)return;const a=y(l),u=w(r,a,s),p=L(r,a,i);void 0!==u?(t.affixStyle={position:"fixed",top:u,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}):void 0!==p&&(t.affixStyle={position:"fixed",bottom:p,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}),t.lastAffix=!!t.affixStyle,n&&o!==t.lastAffix&&n(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:b.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,f.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,f.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:o}=e.state;if(t&&o){const n=e.getOffsetTop(),r=e.getOffsetBottom(),s=t();if(s&&e.placeholderNodeRef.current){const t=y(s),i=y(e.placeholderNodeRef.current),l=w(i,t,n),a=L(i,t,r);if(void 0!==l&&o.top===l||void 0!==a&&o.bottom===a)return}}e.prepareMeasure()})),e}return(0,r.Z)(o,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:C}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:o,rootClassName:n,children:r}=this.props,s=u()(e&&n,{[o]:!!e});let i=(0,c.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return l.createElement(p.Z,{onResize:this.updatePosition},l.createElement("div",Object.assign({},i,{ref:this.placeholderNodeRef}),e&&l.createElement("div",{style:t,"aria-hidden":"true"}),l.createElement("div",{className:s,ref:this.fixedNodeRef,style:e},l.createElement(p.Z,{onResize:this.updatePosition},r))))}}]),o}(l.Component);x.contextType=d.E_;var S=(0,l.forwardRef)(((e,t)=>{const{prefixCls:o,rootClassName:n}=e,{getPrefixCls:r}=(0,l.useContext)(d.E_),s=r("affix",o),[i,a]=g(s),p=Object.assign(Object.assign({},e),{affixPrefixCls:s,rootClassName:u()(n,a)});return i(l.createElement(x,Object.assign({},p,{ref:t})))}))},88522:function(e,t,o){"use strict";var n=o(92310),r=o.n(n),s=o(75440),i=o(55405),l=o(59301),a=o(53487),u=o(92343),p=o(36355),c=o(57809);const{Option:f}=c.default;function d(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const h=(e,t)=>{const{prefixCls:o,className:n,popupClassName:a,dropdownClassName:h,children:v,dataSource:m}=e,g=(0,s.Z)(v);let y;1===g.length&&(0,u.l$)(g[0])&&!d(g[0])&&([y]=g);const w=y?()=>y:void 0;let L;L=g.length&&d(g[0])?v:m?m.map((e=>{if((0,u.l$)(e))return e;switch(typeof e){case"string":return l.createElement(f,{key:e,value:e},e);case"object":{const{value:t}=e;return l.createElement(f,{key:t,value:t},e.text)}default:return}})):[];const{getPrefixCls:P}=l.useContext(p.E_),C=P("select",o);return l.createElement(c.default,Object.assign({ref:t,suffixIcon:null},(0,i.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:C,popupClassName:a||h,className:r()(`${C}-auto-complete`,n),mode:c.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:w}),L)},v=l.forwardRef(h),m=(0,a.Z)(v);v.Option=f,v._InternalPanelDoNotUseOrYouWillBeFired=m,t.Z=v},51581:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));u.ref=function(t){e.scrollComponent=t,a&&a(t)};var p=[o];return r&&(l?i?p.unshift(l):p.push(l):this.defaultLoader&&(i?p.unshift(this.defaultLoader):p.push(this.defaultLoader))),s.default.createElement(n,u,p)}}]),t}(r.Component);a.propTypes={children:i.default.node.isRequired,element:i.default.node,hasMore:i.default.bool,initialLoad:i.default.bool,isReverse:i.default.bool,loader:i.default.node,loadMore:i.default.func.isRequired,pageStart:i.default.number,ref:i.default.func,getScrollParent:i.default.func,threshold:i.default.number,useCapture:i.default.bool,useWindow:i.default.bool},a.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=a,e.exports=t.default},26724:function(e,t,o){e.exports=o(51581)}}]); \ No newline at end of file diff --git a/61941.4914b206.async.js b/61941.4914b206.async.js new file mode 100644 index 0000000000..8b27d65b50 --- /dev/null +++ b/61941.4914b206.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[61941,4977,1806],{86468:function(A,t,r){r.d(t,{Z:function(){return p}});var e=r(82242),n=r.n(e),s=r(7557),o=r.n(s),u=r(41498),c=r.n(u),a=r(79800),C=r.n(a),g=r(39647),i=r.n(g),E=r(3113),B=r(59301),I=r(37712),f=["children"],p=function(A){var t=A.children,r=i()(A,f),e=(0,B.useState)(!1),s=C()(e,2),u=s[0],a=s[1];return(0,I.jsx)(E.ZP,n()(n()({},r),{},{loading:u,onClick:function(){var A=c()(o()().mark((function A(t){return o()().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.prev=0,a(!0),A.next=4,r.onClick(t);case 4:a(!1),A.next=11;break;case 7:A.prev=7,A.t0=A.catch(0),console.error(A.t0),a(!1);case 11:case"end":return A.stop()}}),A,null,[[0,7]])})));return function(t){return A.apply(this,arguments)}}(),children:t}))}},25855:function(A,t,r){r.d(t,{B:function(){return B},F:function(){return E}});var e=r(7557),n=r.n(e),s=r(41498),o=r.n(s),u=r(65022),c=r.n(u),a=r(86129),C=r.n(a),g=function(){document.body.scrollIntoView()},i=function(){document.querySelectorAll("canvas").forEach((function(A){(!A.clientWidth||!A.clientHeight)&&A.remove()}))},E=function(){var A=o()(n()().mark((function A(t,r){var e,s,u,a,E;return n()().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:g(),i(),e={margin:[0,1,0,0],image:{type:"png",quality:.95},html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1,width:810},jsPDF:{unit:"in",format:"letter",orientation:"portrait"}},s=c()(),u=n()().mark((function A(r){return n()().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,s.set(e).from(t[r]).toContainer().toCanvas().toPdf().get("pdf").then(function(){var A=o()(n()().mark((function A(e){return n()().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(!(r({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),p=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),u=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,titleHeight:i,nodeSelectedBg:d,nodeHoverBg:s}=t,u=t.paddingXS;return{[n]:Object.assign(Object.assign({},(0,a.Wf)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},(0,a.oN)(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:l,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${o}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${r}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:Object.assign({},(0,a.oN)(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:`${i}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},c(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${i}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-r,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:i/2*.8,height:i/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:u},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${i}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{backgroundColor:d},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${i}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${i}px`,userSelect:"none"},p(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-r,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:i/2+"px !important"}}}}})}},f=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o,directoryNodeSelectedBg:r,directoryNodeSelectedColor:a}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:a,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:r},[`${t}-switcher`]:{color:a},[`${t}-node-content-wrapper`]:{color:a,background:"transparent"}}}}}},g=(e,t)=>{const n=`.${e}`,o=`${n}-treenode`,r=t.paddingXS/2,a=(0,d.TS)(t,{treeCls:n,treeNodeCls:o,treeNodePadding:r});return[u(e,a),f(a)]},h=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}};t.ZP=(0,s.Z)("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:(0,r.C2)(`${n}-checkbox`,e)},g(n,e),(0,i.Z)(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},h(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}))},10333:function(e,t,n){n.d(t,{Z:function(){return v}});var o=n(5891),r=n(59301),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},i=n(22589),d=function(e,t){return r.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:a}))};var s=r.forwardRef(d),l=n(98483),c=n(42141),p=n(77192),u=n(51131),f=n(92310),g=n.n(f),h=n(92343);var v=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:o,showLine:a}=e,{isLeaf:i,expanded:d,loading:f}=o;if(f)return r.createElement(c.Z,{className:`${t}-switcher-loading-icon`});let v;if(a&&"object"==typeof a&&(v=a.showLeafIcon),i){if(!a)return null;if("boolean"!=typeof v&&v){const e="function"==typeof v?v(o):v,n=`${t}-switcher-line-custom-icon`;return(0,h.l$)(e)?(0,h.Tm)(e,{className:g()(e.props.className||"",n)}):e}return v?r.createElement(l.Z,{className:`${t}-switcher-line-icon`}):r.createElement("span",{className:`${t}-switcher-leaf-line`})}const y=`${t}-switcher-icon`,k="function"==typeof n?n(o):n;return(0,h.l$)(k)?(0,h.Tm)(k,{className:g()(k.props.className||"",y)}):void 0!==k?k:a?d?r.createElement(p.Z,{className:`${t}-switcher-line-icon`}):r.createElement(u.Z,{className:`${t}-switcher-line-icon`}):r.createElement(s,{className:y})}},39417:function(e,t,n){n.d(t,{Z:function(){return D}});var o=n(5891),r=n(80962),a=n(19149),i=n(57259),d=n(79545),s=n(68550),l=n(21882),c=n(17928),p=n(7711),u=n(92310),f=n.n(u),g=n(47413),h=n(59301),v=n(39378),y=function(e){for(var t=e.prefixCls,n=e.level,o=e.isStart,a=e.isEnd,i="".concat(t,"-indent-unit"),d=[],s=0;s0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var o=t.filter((function(e){return!n.has(e)}));return 1===o.length?o[0]:null}return n ").concat(t);return t}(w)),k.createElement("div",null,k.createElement("input",{style:$,disabled:!1===D||u,tabIndex:!1!==D?I:null,onKeyDown:A,onFocus:F,onBlur:_,value:"",onChange:T,"aria-label":"for screen reader"})),k.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},k.createElement("div",{className:"".concat(n,"-indent")},k.createElement("div",{ref:q,className:"".concat(n,"-indent-unit")}))),k.createElement(E.Z,(0,o.Z)({},W,{data:ye,itemKey:B,height:y,fullHeight:!1,virtual:C,itemHeight:m,prefixCls:"".concat(n,"-list"),ref:V,onVisibleChange:function(e,t){var n=new Set(e);t.filter((function(e){return!n.has(e)})).some((function(e){return B(e)===M}))&&ve()}}),(function(e){var t=e.pos,n=(0,o.Z)({},(N(e.data),e.data)),r=e.title,a=e.key,i=e.isStart,d=e.isEnd,s=(0,S.km)(a,t);delete n.key,delete n.children;var l=(0,S.H8)(s,ke);return k.createElement(P,(0,o.Z)({},n,l,{title:r,active:!!w&&a===w.key,pos:t,data:e.data,isStart:i,isEnd:d,motion:v,motionNodes:a===M?le:null,motionType:fe,onMotionStart:U,onMotionEnd:ve,treeNodeRequiredProps:ke,onMouseMove:function(){z(null)}}))})))}));F.displayName="NodeList";var _=F,z=n(35654),U=n(90782),j=n(67841),W=function(e){(0,p.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;(0,s.Z)(this,n);for(var o=arguments.length,r=new Array(o),a=0;a2&&void 0!==arguments[2]&&arguments[2],a=e.state,d=a.dragChildrenKeys,s=a.dropPosition,l=a.dropTargetKey,c=a.dropTargetPos,p=a.dropAllowed;if(p){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==l){var f=(0,i.Z)((0,i.Z)({},(0,S.H8)(l,e.getTreeNodeRequiredProps())),{},{active:(null===(o=e.getActiveItem())||void 0===o?void 0:o.key)===l,data:(0,j.Z)(e.state.keyEntities,l).node}),g=-1!==d.indexOf(l);(0,y.ZP)(!g,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var h=(0,z.yx)(c),v={event:t,node:(0,S.F)(f),dragNode:e.dragNode?(0,S.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(d),dropToGap:0!==s,dropPosition:s+Number(h[h.length-1])};r||null==u||u(v),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(t,n){var o=e.state,r=o.expandedKeys,a=o.flattenNodes,d=n.expanded,s=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var l=a.filter((function(e){return e.key===s}))[0],c=(0,S.F)((0,i.Z)((0,i.Z)({},(0,S.H8)(s,e.getTreeNodeRequiredProps())),{},{data:l.data}));e.setExpandedKeys(d?(0,z._5)(r,s):(0,z.L0)(r,s)),e.onNodeExpand(t,c)}},e.onNodeClick=function(t,n){var o=e.props,r=o.onClick;"click"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)},e.onNodeDoubleClick=function(t,n){var o=e.props,r=o.onDoubleClick;"doubleClick"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)},e.onNodeSelect=function(t,n){var o=e.state.selectedKeys,r=e.state,a=r.keyEntities,i=r.fieldNames,d=e.props,s=d.onSelect,l=d.multiple,c=n.selected,p=n[i.key],u=!c,f=(o=u?l?(0,z.L0)(o,p):[p]:(0,z._5)(o,p)).map((function(e){var t=(0,j.Z)(a,e);return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:o}),null==s||s(o,{event:"select",selected:u,node:n,selectedNodes:f,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,o){var r,a=e.state,i=a.keyEntities,s=a.checkedKeys,l=a.halfCheckedKeys,c=e.props,p=c.checkStrictly,u=c.onCheck,f=n.key,g={event:"check",node:n,checked:o,nativeEvent:t.nativeEvent};if(p){var h=o?(0,z.L0)(s,f):(0,z._5)(s,f);r={checked:h,halfChecked:(0,z._5)(l,f)},g.checkedNodes=h.map((function(e){return(0,j.Z)(i,e)})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:h})}else{var v=(0,U.S)([].concat((0,d.Z)(s),[f]),!0,i),y=v.checkedKeys,k=v.halfCheckedKeys;if(!o){var m=new Set(y);m.delete(f);var N=(0,U.S)(Array.from(m),{checked:!1,halfCheckedKeys:k},i);y=N.checkedKeys,k=N.halfCheckedKeys}r=y,g.checkedNodes=[],g.checkedNodesPositions=[],g.halfCheckedKeys=k,y.forEach((function(e){var t=(0,j.Z)(i,e);if(t){var n=t.node,o=t.pos;g.checkedNodes.push(n),g.checkedNodesPositions.push({node:n,pos:o})}})),e.setUncontrolledState({checkedKeys:y},!1,{halfCheckedKeys:k})}null==u||u(r,g)},e.onNodeLoad=function(t){var n=t.key,o=new Promise((function(o,r){e.setState((function(a){var i=a.loadedKeys,d=void 0===i?[]:i,s=a.loadingKeys,l=void 0===s?[]:s,c=e.props,p=c.loadData,u=c.onLoad;return p&&-1===d.indexOf(n)&&-1===l.indexOf(n)?(p(t).then((function(){var r=e.state.loadedKeys,a=(0,z.L0)(r,n);null==u||u(a,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:a}),e.setState((function(e){return{loadingKeys:(0,z._5)(e.loadingKeys,n)}})),o()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:(0,z._5)(e.loadingKeys,n)}})),e.loadingRetryTimes[n]=(e.loadingRetryTimes[n]||0)+1,e.loadingRetryTimes[n]>=10){var a=e.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,z.L0)(a,n)}),o()}r(t)})),{loadingKeys:(0,z.L0)(l,n)}):null}))}));return o.catch((function(){})),o},e.onNodeMouseEnter=function(t,n){var o=e.props.onMouseEnter;null==o||o({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var o=e.props.onMouseLeave;null==o||o({event:t,node:n})},e.onNodeContextMenu=function(t,n){var o=e.props.onRightClick;o&&(t.preventDefault(),o({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,o=new Array(n),r=0;r1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,a=!0,d={};Object.keys(t).forEach((function(n){n in e.props?a=!1:(r=!0,d[n]=t[n])})),!r||n&&!a||e.setState((0,i.Z)((0,i.Z)({},d),o))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t,n=this.state,i=n.focused,d=n.flattenNodes,s=n.keyEntities,l=n.draggingNodeKey,c=n.activeKey,p=n.dropLevelOffset,u=n.dropContainerKey,f=n.dropTargetKey,h=n.dropPosition,y=n.dragOverNodeKey,N=n.indent,K=this.props,b=K.prefixCls,x=K.className,E=K.style,C=K.showLine,D=K.focusable,S=K.tabIndex,w=void 0===S?0:S,Z=K.selectable,P=K.showIcon,L=K.icon,O=K.switcherIcon,$=K.draggable,T=K.checkable,M=K.checkStrictly,I=K.disabled,A=K.motion,H=K.loadData,R=K.filterTreeNode,B=K.height,F=K.itemHeight,z=K.virtual,U=K.titleRender,j=K.dropIndicatorRender,W=K.onContextMenu,V=K.onScroll,q=K.direction,G=K.rootClassName,X=K.rootStyle,Y=(0,v.Z)(this.props,{aria:!0,data:!0});return $&&(t="object"===(0,a.Z)($)?$:"function"==typeof $?{nodeDraggable:$}:{}),k.createElement(m.k.Provider,{value:{prefixCls:b,selectable:Z,showIcon:P,icon:L,switcherIcon:O,draggable:t,draggingNodeKey:l,checkable:T,checkStrictly:M,disabled:I,keyEntities:s,dropLevelOffset:p,dropContainerKey:u,dropTargetKey:f,dropPosition:h,dragOverNodeKey:y,indent:N,direction:q,dropIndicatorRender:j,loadData:H,filterTreeNode:R,titleRender:U,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},k.createElement("div",{role:"tree",className:g()(b,x,G,(e={},(0,r.Z)(e,"".concat(b,"-show-line"),C),(0,r.Z)(e,"".concat(b,"-focused"),i),(0,r.Z)(e,"".concat(b,"-active-focused"),null!==c),e)),style:X},k.createElement(_,(0,o.Z)({ref:this.listRef,prefixCls:b,style:E,data:d,disabled:I,selectable:Z,checkable:!!T,motion:A,dragging:null!==l,height:B,itemHeight:F,virtual:z,focusable:D,focused:i,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:V},this.getTreeNodeRequiredProps(),Y))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o=t.prevProps,a={prevProps:e};function d(t){return!o&&t in e||o&&o[t]!==e[t]}var s=t.fieldNames;if(d("fieldNames")&&(s=(0,S.w$)(e.fieldNames),a.fieldNames=s),d("treeData")?n=e.treeData:d("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=(0,S.zn)(e.children)),n){a.treeData=n;var l=(0,S.I8)(n,{fieldNames:s});a.keyEntities=(0,i.Z)((0,r.Z)({},M,A),l.keyEntities)}var c,p=a.keyEntities||t.keyEntities;if(d("expandedKeys")||o&&d("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?(0,z.r7)(e.expandedKeys,p):e.expandedKeys;else if(!o&&e.defaultExpandAll){var u=(0,i.Z)({},p);delete u[M],a.expandedKeys=Object.keys(u).map((function(e){return u[e].key}))}else!o&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?(0,z.r7)(e.defaultExpandedKeys,p):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,n||a.expandedKeys){var f=(0,S.oH)(n||t.treeData,a.expandedKeys||t.expandedKeys,s);a.flattenNodes=f}if((e.selectable&&(d("selectedKeys")?a.selectedKeys=(0,z.BT)(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(a.selectedKeys=(0,z.BT)(e.defaultSelectedKeys,e))),e.checkable)&&(d("checkedKeys")?c=(0,z.E6)(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?c=(0,z.E6)(e.defaultCheckedKeys)||{}:n&&(c=(0,z.E6)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var g=c,h=g.checkedKeys,v=void 0===h?[]:h,k=g.halfCheckedKeys,m=void 0===k?[]:k;if(!e.checkStrictly){var N=(0,U.S)(v,!0,p);v=N.checkedKeys,m=N.halfCheckedKeys}a.checkedKeys=v,a.halfCheckedKeys=m}return d("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),n}(k.Component);W.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,o=e.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:r.top=0,r.left=-n*o;break;case 1:r.bottom=0,r.left=-n*o;break;case 0:r.bottom=0,r.left=o}return k.createElement("div",{style:r})},allowDrop:function(){return!0},expandAction:!1},W.TreeNode=D.Z;var V=W},35654:function(e,t,n){n.d(t,{BT:function(){return f},E6:function(){return g},L0:function(){return s},OM:function(){return u},_5:function(){return d},r7:function(){return h},wA:function(){return c},yx:function(){return l}});var o=n(26390),r=n(80665),a=n(85870),i=(n(59301),n(39417),n(67841));n(71430);function d(e,t){if(!e)return[];var n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function s(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function l(e){return e.split("-")}function c(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var o=t.key,r=t.children;n.push(o),e(r)}))}((0,i.Z)(t,e).children),n}function p(e){if(e.parent){var t=l(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function u(e,t,n,o,r,a,d,s,c,u){var f,g=e.clientX,h=e.clientY,v=e.target.getBoundingClientRect(),y=v.top,k=v.height,m=(("rtl"===u?-1:1)*(((null==r?void 0:r.x)||0)-g)-12)/o,N=(0,i.Z)(s,n.props.eventKey);if(h-1.5?a({dragNode:P,dropNode:L,dropPosition:1})?D=1:O=!1:a({dragNode:P,dropNode:L,dropPosition:0})?D=0:a({dragNode:P,dropNode:L,dropPosition:1})?D=1:O=!1:a({dragNode:P,dropNode:L,dropPosition:1})?D=1:O=!1,{dropPosition:D,dropLevelOffset:S,dropTargetKey:N.key,dropTargetPos:N.pos,dragOverNodeKey:C,dropContainerKey:0===D?null:(null===(f=N.parent)||void 0===f?void 0:f.key)||null,dropAllowed:O}}function f(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function g(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,r.Z)(e))return(0,a.ZP)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function h(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=(0,i.Z)(t,e);if(o){n.add(e);var a=o.parent;o.node.disabled||a&&r(a.key)}}}return(e||[]).forEach((function(e){r(e)})),(0,o.Z)(n)}}}]); \ No newline at end of file diff --git a/63995.c85680cf.async.js b/63995.c85680cf.async.js deleted file mode 100644 index 275c2defdb..0000000000 --- a/63995.c85680cf.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[63995],{98483:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(5891),r=n(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},i=n(22589),d=function(e,t){return r.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:a}))};var s=r.forwardRef(d)},77192:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(5891),r=n(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},i=n(22589),d=function(e,t){return r.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:a}))};var s=r.forwardRef(d)},51131:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(5891),r=n(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},i=n(22589),d=function(e,t){return r.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:a}))};var s=r.forwardRef(d)},20648:function(e,t,n){n.d(t,{TM:function(){return h},Yk:function(){return g}});var o=n(91182),r=n(98447),a=n(17313),i=n(8378),d=n(37613),s=n(83116);const l=new o.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),c=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),p=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),u=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,titleHeight:i,nodeSelectedBg:d,nodeHoverBg:s}=t,u=t.paddingXS;return{[n]:Object.assign(Object.assign({},(0,a.Wf)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},(0,a.oN)(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:l,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${o}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${r}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:Object.assign({},(0,a.oN)(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:`${i}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},c(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${i}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-r,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:i/2*.8,height:i/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:u},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${i}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{backgroundColor:d},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${i}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${i}px`,userSelect:"none"},p(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-r,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:i/2+"px !important"}}}}})}},f=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o,directoryNodeSelectedBg:r,directoryNodeSelectedColor:a}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:a,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:r},[`${t}-switcher`]:{color:a},[`${t}-node-content-wrapper`]:{color:a,background:"transparent"}}}}}},g=(e,t)=>{const n=`.${e}`,o=`${n}-treenode`,r=t.paddingXS/2,a=(0,d.TS)(t,{treeCls:n,treeNodeCls:o,treeNodePadding:r});return[u(e,a),f(a)]},h=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}};t.ZP=(0,s.Z)("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:(0,r.C2)(`${n}-checkbox`,e)},g(n,e),(0,i.Z)(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},h(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}))},10333:function(e,t,n){n.d(t,{Z:function(){return v}});var o=n(5891),r=n(59301),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},i=n(22589),d=function(e,t){return r.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:a}))};var s=r.forwardRef(d),l=n(98483),c=n(42141),p=n(77192),u=n(51131),f=n(92310),g=n.n(f),h=n(92343);var v=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:o,showLine:a}=e,{isLeaf:i,expanded:d,loading:f}=o;if(f)return r.createElement(c.Z,{className:`${t}-switcher-loading-icon`});let v;if(a&&"object"==typeof a&&(v=a.showLeafIcon),i){if(!a)return null;if("boolean"!=typeof v&&v){const e="function"==typeof v?v(o):v,n=`${t}-switcher-line-custom-icon`;return(0,h.l$)(e)?(0,h.Tm)(e,{className:g()(e.props.className||"",n)}):e}return v?r.createElement(l.Z,{className:`${t}-switcher-line-icon`}):r.createElement("span",{className:`${t}-switcher-leaf-line`})}const y=`${t}-switcher-icon`,k="function"==typeof n?n(o):n;return(0,h.l$)(k)?(0,h.Tm)(k,{className:g()(k.props.className||"",y)}):void 0!==k?k:a?d?r.createElement(p.Z,{className:`${t}-switcher-line-icon`}):r.createElement(u.Z,{className:`${t}-switcher-line-icon`}):r.createElement(s,{className:y})}},39417:function(e,t,n){n.d(t,{Z:function(){return D}});var o=n(5891),r=n(80962),a=n(19149),i=n(57259),d=n(79545),s=n(68550),l=n(21882),c=n(17928),p=n(99487),u=n(92310),f=n.n(u),g=n(47413),h=n(59301),v=n(39378),y=function(e){for(var t=e.prefixCls,n=e.level,o=e.isStart,a=e.isEnd,i="".concat(t,"-indent-unit"),d=[],s=0;s0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var o=t.filter((function(e){return!n.has(e)}));return 1===o.length?o[0]:null}return n ").concat(t);return t}(w)),k.createElement("div",null,k.createElement("input",{style:$,disabled:!1===D||u,tabIndex:!1!==D?I:null,onKeyDown:A,onFocus:F,onBlur:_,value:"",onChange:T,"aria-label":"for screen reader"})),k.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},k.createElement("div",{className:"".concat(n,"-indent")},k.createElement("div",{ref:q,className:"".concat(n,"-indent-unit")}))),k.createElement(E.Z,(0,o.Z)({},W,{data:ye,itemKey:B,height:y,fullHeight:!1,virtual:C,itemHeight:m,prefixCls:"".concat(n,"-list"),ref:V,onVisibleChange:function(e,t){var n=new Set(e);t.filter((function(e){return!n.has(e)})).some((function(e){return B(e)===M}))&&ve()}}),(function(e){var t=e.pos,n=(0,o.Z)({},(N(e.data),e.data)),r=e.title,a=e.key,i=e.isStart,d=e.isEnd,s=(0,S.km)(a,t);delete n.key,delete n.children;var l=(0,S.H8)(s,ke);return k.createElement(P,(0,o.Z)({},n,l,{title:r,active:!!w&&a===w.key,pos:t,data:e.data,isStart:i,isEnd:d,motion:v,motionNodes:a===M?le:null,motionType:fe,onMotionStart:U,onMotionEnd:ve,treeNodeRequiredProps:ke,onMouseMove:function(){z(null)}}))})))}));F.displayName="NodeList";var _=F,z=n(35654),U=n(90782),j=n(67841),W=function(e){(0,p.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;(0,s.Z)(this,n);for(var o=arguments.length,r=new Array(o),a=0;a2&&void 0!==arguments[2]&&arguments[2],a=e.state,d=a.dragChildrenKeys,s=a.dropPosition,l=a.dropTargetKey,c=a.dropTargetPos,p=a.dropAllowed;if(p){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==l){var f=(0,i.Z)((0,i.Z)({},(0,S.H8)(l,e.getTreeNodeRequiredProps())),{},{active:(null===(o=e.getActiveItem())||void 0===o?void 0:o.key)===l,data:(0,j.Z)(e.state.keyEntities,l).node}),g=-1!==d.indexOf(l);(0,y.ZP)(!g,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var h=(0,z.yx)(c),v={event:t,node:(0,S.F)(f),dragNode:e.dragNode?(0,S.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(d),dropToGap:0!==s,dropPosition:s+Number(h[h.length-1])};r||null==u||u(v),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(t,n){var o=e.state,r=o.expandedKeys,a=o.flattenNodes,d=n.expanded,s=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var l=a.filter((function(e){return e.key===s}))[0],c=(0,S.F)((0,i.Z)((0,i.Z)({},(0,S.H8)(s,e.getTreeNodeRequiredProps())),{},{data:l.data}));e.setExpandedKeys(d?(0,z._5)(r,s):(0,z.L0)(r,s)),e.onNodeExpand(t,c)}},e.onNodeClick=function(t,n){var o=e.props,r=o.onClick;"click"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)},e.onNodeDoubleClick=function(t,n){var o=e.props,r=o.onDoubleClick;"doubleClick"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)},e.onNodeSelect=function(t,n){var o=e.state.selectedKeys,r=e.state,a=r.keyEntities,i=r.fieldNames,d=e.props,s=d.onSelect,l=d.multiple,c=n.selected,p=n[i.key],u=!c,f=(o=u?l?(0,z.L0)(o,p):[p]:(0,z._5)(o,p)).map((function(e){var t=(0,j.Z)(a,e);return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:o}),null==s||s(o,{event:"select",selected:u,node:n,selectedNodes:f,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,o){var r,a=e.state,i=a.keyEntities,s=a.checkedKeys,l=a.halfCheckedKeys,c=e.props,p=c.checkStrictly,u=c.onCheck,f=n.key,g={event:"check",node:n,checked:o,nativeEvent:t.nativeEvent};if(p){var h=o?(0,z.L0)(s,f):(0,z._5)(s,f);r={checked:h,halfChecked:(0,z._5)(l,f)},g.checkedNodes=h.map((function(e){return(0,j.Z)(i,e)})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:h})}else{var v=(0,U.S)([].concat((0,d.Z)(s),[f]),!0,i),y=v.checkedKeys,k=v.halfCheckedKeys;if(!o){var m=new Set(y);m.delete(f);var N=(0,U.S)(Array.from(m),{checked:!1,halfCheckedKeys:k},i);y=N.checkedKeys,k=N.halfCheckedKeys}r=y,g.checkedNodes=[],g.checkedNodesPositions=[],g.halfCheckedKeys=k,y.forEach((function(e){var t=(0,j.Z)(i,e);if(t){var n=t.node,o=t.pos;g.checkedNodes.push(n),g.checkedNodesPositions.push({node:n,pos:o})}})),e.setUncontrolledState({checkedKeys:y},!1,{halfCheckedKeys:k})}null==u||u(r,g)},e.onNodeLoad=function(t){var n=t.key,o=new Promise((function(o,r){e.setState((function(a){var i=a.loadedKeys,d=void 0===i?[]:i,s=a.loadingKeys,l=void 0===s?[]:s,c=e.props,p=c.loadData,u=c.onLoad;return p&&-1===d.indexOf(n)&&-1===l.indexOf(n)?(p(t).then((function(){var r=e.state.loadedKeys,a=(0,z.L0)(r,n);null==u||u(a,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:a}),e.setState((function(e){return{loadingKeys:(0,z._5)(e.loadingKeys,n)}})),o()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:(0,z._5)(e.loadingKeys,n)}})),e.loadingRetryTimes[n]=(e.loadingRetryTimes[n]||0)+1,e.loadingRetryTimes[n]>=10){var a=e.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,z.L0)(a,n)}),o()}r(t)})),{loadingKeys:(0,z.L0)(l,n)}):null}))}));return o.catch((function(){})),o},e.onNodeMouseEnter=function(t,n){var o=e.props.onMouseEnter;null==o||o({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var o=e.props.onMouseLeave;null==o||o({event:t,node:n})},e.onNodeContextMenu=function(t,n){var o=e.props.onRightClick;o&&(t.preventDefault(),o({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,o=new Array(n),r=0;r1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,a=!0,d={};Object.keys(t).forEach((function(n){n in e.props?a=!1:(r=!0,d[n]=t[n])})),!r||n&&!a||e.setState((0,i.Z)((0,i.Z)({},d),o))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t,n=this.state,i=n.focused,d=n.flattenNodes,s=n.keyEntities,l=n.draggingNodeKey,c=n.activeKey,p=n.dropLevelOffset,u=n.dropContainerKey,f=n.dropTargetKey,h=n.dropPosition,y=n.dragOverNodeKey,N=n.indent,K=this.props,b=K.prefixCls,x=K.className,E=K.style,C=K.showLine,D=K.focusable,S=K.tabIndex,w=void 0===S?0:S,Z=K.selectable,P=K.showIcon,L=K.icon,O=K.switcherIcon,$=K.draggable,T=K.checkable,M=K.checkStrictly,I=K.disabled,A=K.motion,H=K.loadData,R=K.filterTreeNode,B=K.height,F=K.itemHeight,z=K.virtual,U=K.titleRender,j=K.dropIndicatorRender,W=K.onContextMenu,V=K.onScroll,q=K.direction,G=K.rootClassName,X=K.rootStyle,Y=(0,v.Z)(this.props,{aria:!0,data:!0});return $&&(t="object"===(0,a.Z)($)?$:"function"==typeof $?{nodeDraggable:$}:{}),k.createElement(m.k.Provider,{value:{prefixCls:b,selectable:Z,showIcon:P,icon:L,switcherIcon:O,draggable:t,draggingNodeKey:l,checkable:T,checkStrictly:M,disabled:I,keyEntities:s,dropLevelOffset:p,dropContainerKey:u,dropTargetKey:f,dropPosition:h,dragOverNodeKey:y,indent:N,direction:q,dropIndicatorRender:j,loadData:H,filterTreeNode:R,titleRender:U,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},k.createElement("div",{role:"tree",className:g()(b,x,G,(e={},(0,r.Z)(e,"".concat(b,"-show-line"),C),(0,r.Z)(e,"".concat(b,"-focused"),i),(0,r.Z)(e,"".concat(b,"-active-focused"),null!==c),e)),style:X},k.createElement(_,(0,o.Z)({ref:this.listRef,prefixCls:b,style:E,data:d,disabled:I,selectable:Z,checkable:!!T,motion:A,dragging:null!==l,height:B,itemHeight:F,virtual:z,focusable:D,focused:i,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:V},this.getTreeNodeRequiredProps(),Y))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o=t.prevProps,a={prevProps:e};function d(t){return!o&&t in e||o&&o[t]!==e[t]}var s=t.fieldNames;if(d("fieldNames")&&(s=(0,S.w$)(e.fieldNames),a.fieldNames=s),d("treeData")?n=e.treeData:d("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=(0,S.zn)(e.children)),n){a.treeData=n;var l=(0,S.I8)(n,{fieldNames:s});a.keyEntities=(0,i.Z)((0,r.Z)({},M,A),l.keyEntities)}var c,p=a.keyEntities||t.keyEntities;if(d("expandedKeys")||o&&d("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?(0,z.r7)(e.expandedKeys,p):e.expandedKeys;else if(!o&&e.defaultExpandAll){var u=(0,i.Z)({},p);delete u[M],a.expandedKeys=Object.keys(u).map((function(e){return u[e].key}))}else!o&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?(0,z.r7)(e.defaultExpandedKeys,p):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,n||a.expandedKeys){var f=(0,S.oH)(n||t.treeData,a.expandedKeys||t.expandedKeys,s);a.flattenNodes=f}if((e.selectable&&(d("selectedKeys")?a.selectedKeys=(0,z.BT)(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(a.selectedKeys=(0,z.BT)(e.defaultSelectedKeys,e))),e.checkable)&&(d("checkedKeys")?c=(0,z.E6)(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?c=(0,z.E6)(e.defaultCheckedKeys)||{}:n&&(c=(0,z.E6)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var g=c,h=g.checkedKeys,v=void 0===h?[]:h,k=g.halfCheckedKeys,m=void 0===k?[]:k;if(!e.checkStrictly){var N=(0,U.S)(v,!0,p);v=N.checkedKeys,m=N.halfCheckedKeys}a.checkedKeys=v,a.halfCheckedKeys=m}return d("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),n}(k.Component);W.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,o=e.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:r.top=0,r.left=-n*o;break;case 1:r.bottom=0,r.left=-n*o;break;case 0:r.bottom=0,r.left=o}return k.createElement("div",{style:r})},allowDrop:function(){return!0},expandAction:!1},W.TreeNode=D.Z;var V=W},35654:function(e,t,n){n.d(t,{BT:function(){return f},E6:function(){return g},L0:function(){return s},OM:function(){return u},_5:function(){return d},r7:function(){return h},wA:function(){return c},yx:function(){return l}});var o=n(26390),r=n(80665),a=n(85870),i=(n(59301),n(39417),n(67841));n(71430);function d(e,t){if(!e)return[];var n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function s(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function l(e){return e.split("-")}function c(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var o=t.key,r=t.children;n.push(o),e(r)}))}((0,i.Z)(t,e).children),n}function p(e){if(e.parent){var t=l(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function u(e,t,n,o,r,a,d,s,c,u){var f,g=e.clientX,h=e.clientY,v=e.target.getBoundingClientRect(),y=v.top,k=v.height,m=(("rtl"===u?-1:1)*(((null==r?void 0:r.x)||0)-g)-12)/o,N=(0,i.Z)(s,n.props.eventKey);if(h-1.5?a({dragNode:P,dropNode:L,dropPosition:1})?D=1:O=!1:a({dragNode:P,dropNode:L,dropPosition:0})?D=0:a({dragNode:P,dropNode:L,dropPosition:1})?D=1:O=!1:a({dragNode:P,dropNode:L,dropPosition:1})?D=1:O=!1,{dropPosition:D,dropLevelOffset:S,dropTargetKey:N.key,dropTargetPos:N.pos,dragOverNodeKey:C,dropContainerKey:0===D?null:(null===(f=N.parent)||void 0===f?void 0:f.key)||null,dropAllowed:O}}function f(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function g(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,r.Z)(e))return(0,a.ZP)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function h(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=(0,i.Z)(t,e);if(o){n.add(e);var a=o.parent;o.node.disabled||a&&r(a.key)}}}return(e||[]).forEach((function(e){r(e)})),(0,o.Z)(n)}}}]); \ No newline at end of file diff --git a/71448.c2b12ffc.async.js b/71448.67611f9c.async.js similarity index 99% rename from 71448.c2b12ffc.async.js rename to 71448.67611f9c.async.js index 5da6eb9038..fe29da8531 100644 --- a/71448.c2b12ffc.async.js +++ b/71448.67611f9c.async.js @@ -1 +1 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[71448],{71448:function(e,t,n){var i;self.MonacoEnvironment=(i={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var o=n.p,r=(o?o.replace(/\/$/,"")+"/":"")+i[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(r)){var s=String(window.location),a=s.substr(0,s.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(r.substring(0,a.length)!==a){/^(\/\/)/.test(r)&&(r=window.location.protocol+r);var c=new Blob(["/*"+t+'*/importScripts("'+r+'");'],{type:"application/javascript"});return URL.createObjectURL(c)}}return r}}),n(33686),n(92981),n(32838),n(84826),n(60066),n(41007),n(54807),n(88297),n(46343),n(4105),n(81755),n(78940),n(16442),n(34064),n(85628),n(86955),n(65586),n(17645),n(99516),n(88343),n(17331),n(63478),n(4335),n(26313),n(35432),n(51518),n(52393),n(63435),n(83861),n(34835),n(59622),n(71925),n(19257),n(61977),n(6181),n(6410),n(28630),n(29111),n(63618),n(48608),e.exports=n(80367),n(92973),n(72773),n(30219),n(10755),n(74121),n(77973),n(27246),n(82961),n(19959),n(23347),n(17323),n(24607),n(90130),n(72185),n(40882),n(14349),n(10715),n(88756),n(67748),n(30141),n(44115),n(65588),n(42716),n(83135),n(91067),n(63886),n(44865),n(41495),n(12076),n(38516),n(18504),n(28593),n(43069),n(50185),n(11745),n(96025),n(85713),n(98836),n(18625),n(25167),n(5512),n(59066),n(73363),n(5769),n(95630),n(12189),n(78605),n(17728),n(94503),n(66857),n(38341),n(61010),n(1099),n(49478),n(32985),n(72088),n(69746),n(94912),n(60032),n(24571),n(55670),n(77777),n(39393),n(81147),n(35550)},80367:function(e,t,n){"use strict";n.r(t),n.d(t,{CancellationTokenSource:function(){return i.CancellationTokenSource},Emitter:function(){return i.Emitter},KeyCode:function(){return i.KeyCode},KeyMod:function(){return i.KeyMod},MarkerSeverity:function(){return i.MarkerSeverity},MarkerTag:function(){return i.MarkerTag},Position:function(){return i.Position},Range:function(){return i.Range},Selection:function(){return i.Selection},SelectionDirection:function(){return i.SelectionDirection},Token:function(){return i.Token},Uri:function(){return i.Uri},__esModule:function(){return i.__esModule},editor:function(){return i.editor},languages:function(){return i.languages}});n(55670),n(24607),n(42716),n(67748);var i=n(2550),o=(n(92973),n(72773),n(30219),n(10755),n(98909));(0,o.H)({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:function(){return n.e(74014).then(n.bind(n,74014))}});n(74121),n(77973),n(27246),n(82961),n(19959),n(23347),n(17323);(0,o.H)({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:function(){return n.e(18963).then(n.bind(n,18963))}});n(90130);(0,o.H)({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:function(){return n.e(78302).then(n.bind(n,78302))}}),(0,o.H)({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:function(){return n.e(51646).then(n.bind(n,51646))}}),(0,o.H)({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:function(){return n.e(70981).then(n.bind(n,70981))}});n(72185),n(40882),n(14349),n(10715);(0,o.H)({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:function(){return n.e(15290).then(n.bind(n,15290))}});n(88756),n(30141),n(44115),n(65588);(0,o.H)({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:function(){return n.e(15631).then(n.bind(n,15631))}});n(83135),n(91067);(0,o.H)({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:function(){return n.e(80629).then(n.bind(n,80629))}});n(63886);(0,o.H)({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:function(){return n.e(86774).then(n.bind(n,61880))}}),(0,o.H)({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:function(){return n.e(30741).then(n.bind(n,30741))}});n(44865),n(41495),n(12076),n(38516),n(18504),n(28593),n(43069),n(50185),n(11745),n(96025);(0,o.H)({id:"pla",extensions:[".pla"],loader:function(){return n.e(12386).then(n.bind(n,12386))}});n(85713),n(98836),n(18625);(0,o.H)({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:function(){return n.e(36634).then(n.bind(n,36634))}});n(25167),n(5512);(0,o.H)({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:function(){return n.e(3133).then(n.bind(n,3133))}});n(59066),n(73363),n(5769),n(95630),n(12189),n(78605),n(17728),n(94503),n(35550),n(66857),n(38341),n(61010),n(1099),n(49478);(0,o.H)({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:function(){return n.e(95679).then(n.bind(n,95679))}});n(32985),n(72088),n(69746);(0,o.H)({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:function(){return n.e(39252).then(n.bind(n,33571))}}),(0,o.H)({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:function(){return n.e(39252).then(n.bind(n,33571))}});n(94912),n(60032),n(24571),n(77777),n(39393),n(81147),n(46343),n(57630),n(80961),n(46810);var r=n(54951),s=n(94186),a=n(52411),c=n(4514),d=n(17551),l=n(68987),u=n(13268),h=n(90689),g=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},p=function(e,t){return function(n,i){t(n,i,e)}},f=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const _=new h.uy("selectionAnchorSet",!1);let m=class e{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=_.bindTo(t),this.modelChangeListener=e.onDidChangeModel((()=>this.selectionAnchorSetContextKey.reset()))}static get(t){return t.getContribution(e.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],n=this.editor.deltaDecorations(t,[{range:d.Y.fromPositions(e,e),options:{description:"selection-anchor",stickiness:1,hoverMessage:(new s.W5).appendText((0,u.N)("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=n[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,r.Z9)((0,u.N)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(d.Y.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};m.ID="editor.contrib.selectionAnchorController",m=g([p(1,h.i6)],m);class b extends c.R6{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,u.N)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:l.u.editorTextFocus,primary:(0,a.gx)(2089,2080),weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){m.get(t).setSelectionAnchor()}))}}class v extends c.R6{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,u.N)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:_})}run(e,t){return f(this,void 0,void 0,(function*(){m.get(t).goToSelectionAnchor()}))}}class S extends c.R6{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,u.N)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:_,kbOpts:{kbExpr:l.u.editorTextFocus,primary:(0,a.gx)(2089,2089),weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){m.get(t).selectFromAnchorToCursor()}))}}class C extends c.R6{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,u.N)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:_,kbOpts:{kbExpr:l.u.editorTextFocus,primary:9,weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){m.get(t).cancelSelectionAnchor()}))}}(0,c._K)(m.ID,m),(0,c.Qr)(b),(0,c.Qr)(v),(0,c.Qr)(S),(0,c.Qr)(C);n(92981),n(32838),n(28630),n(84826),n(60066),n(41007);var I=n(69323),y=n(17373),D=(n(99851),n(88343));class x extends I.JT{constructor(e){super(),this._editor=e,this._register(e.onMouseDown((e=>this.onMouseDown(e))))}dispose(){super.dispose()}onMouseDown(e){var t;if(6!==e.target.type)return;if(![...(null===(t=e.target.element)||void 0===t?void 0:t.classList.values())||[]].find((e=>e.startsWith("ced-colorBox"))))return;if(!e.target.range)return;const n=this._editor.getContribution(D.ModesHoverController.ID);if(!n.isColorPickerVisible()){const t=new y.e(e.target.range.startLineNumber,e.target.range.startColumn+1,e.target.range.endLineNumber,e.target.range.endColumn+1);n.showContentHover(t,0,!1)}}}x.ID="editor.contrib.colorContribution",(0,c._K)(x.ID,x);n(54807),n(88297),n(4105),n(81755),n(78940),n(16442),n(34064),n(85628);var k=n(96283),w=n(72999),L=n(5472),P=n(12027),R=n(16862),T=n(16903),O=n(35884),M=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};function A(e,t,n){return M(this,void 0,void 0,(function*(){const i=yield T.C3.create(e,n);return t?i.asListOfDocumentSymbols():i.getTopLevelSymbols()}))}O.P.registerCommand("_executeDocumentSymbolProvider",(function(e,...t){return M(this,void 0,void 0,(function*(){const[n]=t;(0,w.p_)(L.o.isUri(n));const i=e.get(P.q).getModel(n);if(i)return A(i,!1,k.T.None);const o=yield e.get(R.S).createModelReference(n);try{return yield A(o.object.textEditorModel,!1,k.T.None)}finally{o.dispose()}}))}));n(16788),n(17645),n(99516),n(86955);var N=n(82983),E=n(91167),z=n(44124),q=n(31276),j=n(73468),U=n(44765),V=n(96148);function H(e,t,n,i){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const o=j.zu.getIndentationRules(e.getLanguageId());if(!o)return[];for(n=Math.min(n,e.getLineCount());t<=n&&o.unIndentedLinePattern;){let n=e.getLineContent(t);if(!o.unIndentedLinePattern.test(n))break;t++}if(t>n-1)return[];const{tabSize:r,indentSize:s,insertSpaces:a}=e.getOptions(),c=(e,t)=>(t=t||1,E.U.shiftIndent(e,e.length+t,r,s,a)),l=(e,t)=>(t=t||1,E.U.unshiftIndent(e,e.length+t,r,s,a));let u,h=[],g=e.getLineContent(t),p=g;if(null!=i){u=i;let e=N.V8(g);p=u+g.substring(e.length),o.decreaseIndentPattern&&o.decreaseIndentPattern.test(p)&&(u=l(u),p=u+g.substring(e.length)),g!==p&&h.push(z.h.replaceMove(new d.Y(t,1,t,e.length+1),q.yO.normalizeIndentation(u,s,a)))}else u=N.V8(g);let f=u;o.increaseIndentPattern&&o.increaseIndentPattern.test(p)?(f=c(f),u=c(u)):o.indentNextLinePattern&&o.indentNextLinePattern.test(p)&&(f=c(f));for(let i=++t;i<=n;i++){let t=e.getLineContent(i),n=N.V8(t),r=f+t.substring(n.length);o.decreaseIndentPattern&&o.decreaseIndentPattern.test(r)&&(f=l(f),u=l(u)),n!==f&&h.push(z.h.replaceMove(new d.Y(i,1,i,n.length+1),q.yO.normalizeIndentation(f,s,a))),o.unIndentedLinePattern&&o.unIndentedLinePattern.test(t)||(o.increaseIndentPattern&&o.increaseIndentPattern.test(r)?(u=c(u),f=u):f=o.indentNextLinePattern&&o.indentNextLinePattern.test(r)?c(f):u)}return h}class F extends c.R6{constructor(){super({id:F.ID,label:u.N("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:l.u.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=n.getOptions(),o=t.getSelection();if(!o)return;const r=new ee(o,i.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),n.updateOptions({insertSpaces:!0})}}F.ID="editor.action.indentationToSpaces";class Q extends c.R6{constructor(){super({id:Q.ID,label:u.N("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:l.u.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=n.getOptions(),o=t.getSelection();if(!o)return;const r=new te(o,i.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),n.updateOptions({insertSpaces:!1})}}Q.ID="editor.action.indentationToTabs";class K extends c.R6{constructor(e,t){super(t),this.insertSpaces=e}run(e,t){const n=e.get(V.eJ),i=e.get(P.q);let o=t.getModel();if(!o)return;const r=i.getCreationOptions(o.getLanguageId(),o.uri,o.isForSimpleWidget),s=[1,2,3,4,5,6,7,8].map((e=>({id:e.toString(),label:e.toString(),description:e===r.tabSize?u.N("configuredTabSize","Configured Tab Size"):void 0}))),a=Math.min(o.getOptions().tabSize-1,7);setTimeout((()=>{n.pick(s,{placeHolder:u.N({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:s[a]}).then((e=>{e&&o&&!o.isDisposed()&&o.updateOptions({tabSize:parseInt(e.label,10),insertSpaces:this.insertSpaces})}))}),50)}}class W extends K{constructor(){super(!1,{id:W.ID,label:u.N("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}W.ID="editor.action.indentUsingTabs";class $ extends K{constructor(){super(!0,{id:$.ID,label:u.N("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}$.ID="editor.action.indentUsingSpaces";class B extends c.R6{constructor(){super({id:B.ID,label:u.N("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){const n=e.get(P.q);let i=t.getModel();if(!i)return;const o=n.getCreationOptions(i.getLanguageId(),i.uri,i.isForSimpleWidget);i.detectIndentation(o.insertSpaces,o.tabSize)}}B.ID="editor.action.detectIndentation";class Y extends c.R6{constructor(){super({id:"editor.action.reindentlines",label:u.N("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:l.u.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=H(n,1,n.getLineCount());i.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,i),t.pushUndoStop())}}class X extends c.R6{constructor(){super({id:"editor.action.reindentselectedlines",label:u.N("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:l.u.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=t.getSelections();if(null===i)return;let o=[];for(let e of i){let t=e.startLineNumber,i=e.endLineNumber;if(t!==i&&1===e.endColumn&&i--,1===t){if(t===i)continue}else t--;let r=H(n,t,i);o.push(...r)}o.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}}class J{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(let t of e)t.range&&"string"==typeof t.text&&this._edits.push(t)}getEditOperations(e,t){for(let e of this._edits)t.addEditOperation(y.e.lift(e.range),e.text);let n=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),n||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}class G{constructor(e){this.callOnDispose=new I.SL,this.callOnModel=new I.SL,this.editor=e,this.callOnDispose.add(e.onDidChangeConfiguration((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModel((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModelLanguage((()=>this.update())))}update(){this.callOnModel.clear(),this.editor.getOption(9)<4||this.editor.getOption(47)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((({range:e})=>{this.trigger(e)})))}trigger(e){let t=this.editor.getSelections();if(null===t||t.length>1)return;const n=this.editor.getModel();if(!n)return;if(!n.isCheapToTokenize(e.getStartPosition().lineNumber))return;const i=this.editor.getOption(9),{tabSize:o,indentSize:r,insertSpaces:s}=n.getOptions();let a=[],c={shiftIndent:e=>E.U.shiftIndent(e,e.length+1,o,r,s),unshiftIndent:e=>E.U.unshiftIndent(e,e.length+1,o,r,s)},d=e.startLineNumber;for(;d<=e.endLineNumber&&this.shouldIgnoreLine(n,d);)d++;if(d>e.endLineNumber)return;let l=n.getLineContent(d);if(!/\S/.test(l.substring(0,e.startColumn-1))){const e=j.zu.getGoodIndentForLine(i,n,n.getLanguageId(),d,c);if(null!==e){let t=N.V8(l),i=U.Y(e,o);if(i!==U.Y(t,o)){let e=U.J(i,o,s);a.push({range:new y.e(d,1,d,t.length+1),text:e}),l=e+l.substr(t.length)}else{let e=j.zu.getIndentMetadata(n,d);if(0===e||8===e)return}}}const u=d;for(;dn.getLineTokens(e),getLanguageId:()=>n.getLanguageId(),getLanguageIdAtPosition:(e,t)=>n.getLanguageIdAtPosition(e,t),getLineContent:e=>e===u?l:n.getLineContent(e)},r=j.zu.getGoodIndentForLine(i,t,n.getLanguageId(),d+1,c);if(null!==r){let t=U.Y(r,o),i=U.Y(N.V8(n.getLineContent(d+1)),o);if(t!==i){let r=t-i;for(let t=d+1;t<=e.endLineNumber;t++){let e=n.getLineContent(t),i=N.V8(e),c=U.Y(i,o)+r,d=U.J(c,o,s);d!==i&&a.push({range:new y.e(t,1,t,i.length+1),text:d})}}}}if(a.length>0){this.editor.pushUndoStop();let e=new J(a,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.forceTokenization(t);let n=e.getLineFirstNonWhitespaceColumn(t);if(0===n)return!0;let i=e.getLineTokens(t);if(i.getCount()>0){let e=i.findTokenIndexAtOffset(n);if(e>=0&&1===i.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}}function Z(e,t,n,i){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let o="";for(let e=0;e=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},pe=function(e,t){return function(n,i){t(n,i,e)}},fe=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};class _e{constructor(){this._data=new re.Y9}push(e,t){const n=this._data.get(e.uri);void 0===n?this._data.set(e.uri,new Set([t])):n.add(t)}pop(e,t){const n=this._data.get(e.uri);n&&(n.delete(t),0===n.size&&this._data.delete(e.uri))}has(e,t){var n;return Boolean(null===(n=this._data.get(e.uri))||void 0===n?void 0:n.has(t))}}function me(e,t,n,i){return fe(this,void 0,void 0,(function*(){const o=[],r=de.mX.ordered(e).reverse().map((r=>t.map((t=>fe(this,void 0,void 0,(function*(){try{n.push(e,r);const s=yield r.provideInlayHints(e,t,i);(null==s?void 0:s.length)&&o.push(s.filter((e=>t.containsPosition(e.position))))}catch(e){(0,ie.Cp)(e)}finally{n.pop(e,r)}}))))));return yield Promise.all(r.flat()),o.flat().sort(((e,t)=>ce.L.compare(e.position,t.position)))}))}class be{constructor(){this._entries=new re.z6(50)}get(e){const t=be._key(e);return this._entries.get(t)}set(e,t){const n=be._key(e);this._entries.set(n,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}let ve=class e{constructor(t,n){this._editor=t,this._codeEditorService=n,this._decorationOwnerId=++e._decorationOwnerIdPool,this._disposables=new I.SL,this._sessionDisposables=new I.SL,this._getInlayHintsDelays=new le.Y(de.mX,25,500),this._cache=new be,this._decorations=new Map,this._disposables.add(de.mX.onDidChange((()=>this._update()))),this._disposables.add(t.onDidChangeModel((()=>this._update()))),this._disposables.add(t.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(t.onDidChangeConfiguration((e=>{e.hasChanged(125)&&this._update()}))),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){if(this._sessionDisposables.clear(),this._removeAllDecorations(),!this._editor.getOption(125).enabled)return;const e=this._editor.getModel();if(!e||!de.mX.has(e))return;const t=this._cache.get(e);t&&this._updateHintsDecorators([e.getFullModelRange()],t);const n=new _e,i=new ne.pY((()=>fe(this,void 0,void 0,(function*(){const t=Date.now(),o=new k.A;this._sessionDisposables.add((0,I.OF)((()=>o.dispose(!0))));const r=this._getHintsRanges(),s=yield me(e,r,n,o.token);i.delay=this._getInlayHintsDelays.update(e,Date.now()-t),o.token.isCancellationRequested||(this._updateHintsDecorators(r,s),this._cache.set(e,Array.from(this._decorations.values()).map((e=>e.hint))))}))),this._getInlayHintsDelays.get(e));this._sessionDisposables.add(i),this._sessionDisposables.add(this._editor.onDidChangeModelContent((()=>i.schedule()))),this._disposables.add(this._editor.onDidScrollChange((()=>i.schedule()))),i.schedule();const o=new I.SL;this._sessionDisposables.add(o);for(const t of de.mX.all(e))"function"==typeof t.onDidChangeInlayHints&&o.add(t.onDidChangeInlayHints((()=>{n.has(e,t)||i.schedule()})))}_getHintsRanges(){const e=this._editor.getModel(),t=this._editor.getVisibleRangesPlusViewportAboveBelow(),n=[];for(const i of t.sort(y.e.compareRangesUsingStarts)){const t=e.validateRange(new y.e(i.startLineNumber-30,i.startColumn,i.endLineNumber+30,i.endColumn));0!==n.length&&y.e.areIntersectingOrTouching(n[n.length-1],t)?n[n.length-1]=y.e.plusRange(n[n.length-1],t):n.push(t)}return n}_updateHintsDecorators(e,t){const{fontSize:n,fontFamily:i}=this._getLayoutInfo(),o=this._editor.getModel(),r=[],s=[],a="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(a,i);for(const e of t){const{text:t,position:i,whitespaceBefore:c,whitespaceAfter:d}=e,l=c?n/3|0:0,u=d?n/3|0:0,h={contentText:Ce(t),fontSize:`${n}px`,margin:`0px ${u}px 0px ${l}px`,fontFamily:`var(${a}), ${ae.hL.fontFamily}`,padding:`1px ${0|Math.max(1,n/4)}px`,borderRadius:(n/4|0)+"px",verticalAlign:"middle",backgroundColor:(0,he.EN)(ue.Pp),color:(0,he.EN)(ue.VV)};e.kind===de.gl.Parameter?(h.backgroundColor=(0,he.EN)(ue.ph),h.color=(0,he.EN)(ue.HC)):e.kind===de.gl.Type&&(h.backgroundColor=(0,he.EN)(ue.bK),h.color=(0,he.EN)(ue.hX));let g={beforeInjectedText:Object.assign(Object.assign({},h),{affectsLetterSpacing:!0})},p=y.e.fromPositions(i),f=o.getWordAtPosition(i),_=!1;f&&(f.endColumn===i.column?(g.afterInjectedText=g.beforeInjectedText,g.beforeInjectedText=void 0,_=!0,p=Se(f,i.lineNumber)):f.startColumn===i.column&&(_=!0,p=Se(f,i.lineNumber)));const m="inlayHints-"+(0,oe.vp)(g).toString(16);this._codeEditorService.registerDecorationType("inlay-hints-controller",m,g,void 0,this._editor),r.push(m);if(s.push({range:p,options:Object.assign(Object.assign({},this._codeEditorService.resolveDecorationOptions(m,!0)),{showIfCollapsed:!_,stickiness:0})})>1500)break}const c=[];for(const t of e)for(const{id:e}of o.getDecorationsInRange(t,this._decorationOwnerId,!0)){const t=this._decorations.get(e);t&&(c.push(e),this._codeEditorService.removeDecorationType(t.decorationTypeId),this._decorations.delete(e))}const d=o.deltaDecorations(c,s,this._decorationOwnerId);for(let e=0;et)&&(n=.9*t|0);return{fontSize:n,fontFamily:e.fontFamily||this._editor.getOption(42)}}_removeAllDecorations(){this._editor.deltaDecorations(Array.from(this._decorations.keys()),[]);for(let e of this._decorations.values())this._codeEditorService.removeDecorationType(e.decorationTypeId);this._decorations.clear()}};function Se(e,t){return new y.e(t,e.startColumn,t,e.endColumn)}function Ce(e){return e.replace(/[ \t]/g," ")}ve.ID="editor.contrib.InlayHints",ve._decorationOwnerIdPool=0,ve=ge([pe(1,se.$)],ve),(0,c._K)(ve.ID,ve),O.P.registerCommand("_executeInlayHintProvider",((e,...t)=>fe(void 0,void 0,void 0,(function*(){const[n,i]=t;(0,w.p_)(L.o.isUri(n)),(0,w.p_)(y.e.isIRange(i));const o=yield e.get(R.S).createModelReference(n);try{return yield me(o.object.textEditorModel,[y.e.lift(i)],new _e,k.T.None)}finally{o.dispose()}}))));n(63478),n(26313);var Ie=n(43506),ye=n(51737),De=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},xe=function(e,t){return function(n,i){t(n,i,e)}},ke=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const we=new h.uy("LinkedEditingInputVisible",!1),Le="linked-editing-decoration";let Pe=class e extends I.JT{constructor(e,t){super(),this._debounceDuration=200,this._localToDispose=this._register(new I.SL),this._editor=e,this._enabled=!1,this._visibleContextKey=we.bindTo(t),this._currentDecorations=[],this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new I.SL),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel((()=>this.reinitialize(!0)))),this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(61)||e.hasChanged(81))&&this.reinitialize(!1)}))),this._register(de.id.onDidChange((()=>this.reinitialize(!1)))),this._register(this._editor.onDidChangeModelLanguage((()=>this.reinitialize(!0)))),this.reinitialize(!0)}static get(t){return t.getContribution(e.ID)}reinitialize(e){const t=this._editor.getModel(),n=null!==t&&(this._editor.getOption(61)||this._editor.getOption(81))&&de.id.has(t);if(n===this._enabled&&!e)return;if(this._enabled=n,this.clearRanges(),this._localToDispose.clear(),!n||null===t)return;this._languageWordPattern=j.zu.getWordDefinition(t.getLanguageId()),this._localToDispose.add(t.onDidChangeLanguageConfiguration((()=>{this._languageWordPattern=j.zu.getWordDefinition(t.getLanguageId())})));const i=new ne.vp(this._debounceDuration),o=()=>{this._rangeUpdateTriggerPromise=i.trigger((()=>this.updateRanges()),this._debounceDuration)},r=new ne.vp(0),s=e=>{this._rangeSyncTriggerPromise=r.trigger((()=>this._syncRanges(e)))};this._localToDispose.add(this._editor.onDidChangeCursorPosition((()=>{o()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const n=t.getDecorationRange(this._currentDecorations[0]);if(n&&e.changes.every((e=>n.intersectRanges(e.range))))return void s(this._currentDecorations)}o()}))),this._localToDispose.add({dispose:()=>{i.cancel(),r.cancel()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._currentDecorations||0===e.length)return;const t=this._editor.getModel(),n=t.getDecorationRange(e[0]);if(!n||n.startLineNumber!==n.endLineNumber)return this.clearRanges();const i=t.getValueInRange(n);if(this._currentWordPattern){const e=i.match(this._currentWordPattern);if((e?e[0].length:0)!==i.length)return this.clearRanges()}let o=[];for(let n=1,r=e.length;n1)return void this.clearRanges();const i=this._editor.getModel(),o=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===o){if(n.equals(this._currentRequestPosition))return;if(this._currentDecorations&&this._currentDecorations.length>0){const e=i.getDecorationRange(this._currentDecorations[0]);if(e&&e.containsPosition(n))return}}this._currentRequestPosition=n,this._currentRequestModelVersion=o;const r=(0,ne.PG)((t=>ke(this,void 0,void 0,(function*(){try{const s=yield Oe(i,n,t);if(r!==this._currentRequest)return;if(this._currentRequest=null,o!==i.getVersionId())return;let a=[];(null==s?void 0:s.ranges)&&(a=s.ranges),this._currentWordPattern=(null==s?void 0:s.wordPattern)||this._languageWordPattern;let c=!1;for(let e=0,t=a.length;e({range:t,options:e.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations=this._editor.deltaDecorations(this._currentDecorations,d)}catch(e){(0,ie.VV)(e)||(0,ie.dL)(e),this._currentRequest!==r&&this._currentRequest||this.clearRanges()}}))));return this._currentRequest=r,r}))}};Pe.ID="editor.contrib.linkedEditing",Pe.DECORATION=q.qx.register({description:"linked-editing",stickiness:0,className:Le}),Pe=De([xe(1,h.i6)],Pe);class Re extends c.R6{constructor(){super({id:"editor.action.linkedEditing",label:u.N("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:h.Ao.and(l.u.writable,l.u.hasRenameProvider),kbOpts:{kbExpr:l.u.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const n=e.get(se.$),[i,o]=Array.isArray(t)&&t||[void 0,void 0];return L.o.isUri(i)&&ce.L.isIPosition(o)?n.openCodeEditor({resource:i},n.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(o),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),ie.dL):super.runCommand(e,t)}run(e,t){const n=Pe.get(t);return n?Promise.resolve(n.updateRanges(!0)):Promise.resolve()}}const Te=c._l.bindToContribution(Pe.get);function Oe(e,t,n){const i=de.id.ordered(e);return(0,ne.Ps)(i.map((i=>()=>ke(this,void 0,void 0,(function*(){try{return yield i.provideLinkedEditingRanges(e,t,n)}catch(e){return void(0,ie.Cp)(e)}})))),(e=>!!e&&Ie.Of(null==e?void 0:e.ranges)))}(0,c.fK)(new Te({id:"cancelLinkedEditingInput",precondition:we,handler:e=>e.clearRanges(),kbOpts:{kbExpr:l.u.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));const Me=(0,ue.P6)("editor.linkedEditingBackground",{dark:ye.Il.fromHex("#f00").transparent(.3),light:ye.Il.fromHex("#f00").transparent(.3),hc:ye.Il.fromHex("#f00").transparent(.3)},u.N("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,he.Ic)(((e,t)=>{const n=e.getColor(Me);n&&t.addRule(`.monaco-editor .${Le} { background: ${n}; border-left-color: ${n}; }`)})),(0,c.sb)("_executeLinkedEditingProvider",((e,t)=>Oe(e,t,k.T.None))),(0,c._K)(Pe.ID,Pe),(0,c.Qr)(Re);n(35432),n(51518),n(52393),n(59622),n(71925),n(19257),n(61977);var Ae=n(95830);class Ne extends c.R6{constructor(){super({id:"editor.action.forceRetokenize",label:u.N("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const n=t.getModel();n.resetTokenization();const i=new Ae.G(!0);n.forceTokenization(n.getLineCount()),i.stop(),console.log(`tokenization took ${i.elapsed()}`)}}(0,c.Qr)(Ne);n(6410);var Ee=n(9365),ze=n(94726),qe=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},je=function(e,t){return function(n,i){t(n,i,e)}},Ue=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const Ve="ignoreUnusualLineTerminators";let He=class extends I.JT{constructor(e,t,n){super(),this._editor=e,this._dialogService=t,this._codeEditorService=n,this._config=this._editor.getOption(112),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(112)&&(this._config=this._editor.getOption(112),this._checkForUnusualLineTerminators())}))),this._register(this._editor.onDidChangeModel((()=>{this._checkForUnusualLineTerminators()}))),this._register(this._editor.onDidChangeModelContent((e=>{e.isUndoing||this._checkForUnusualLineTerminators()})))}_checkForUnusualLineTerminators(){return Ue(this,void 0,void 0,(function*(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;const t=function(e,t){return e.getModelProperty(t.uri,Ve)}(this._codeEditorService,e);if(!0===t)return;if(this._editor.getOption(80))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());(yield this._dialogService.confirm({title:u.N("unusualLineTerminators.title","Unusual Line Terminators"),message:u.N("unusualLineTerminators.message","Detected unusual line terminators"),detail:u.N("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,Ee.EZ)(e.uri)),primaryButton:u.N("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:u.N("unusualLineTerminators.ignore","Ignore")})).confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,n){e.setModelProperty(t.uri,Ve,n)}(this._codeEditorService,e,!0)}))}};He.ID="editor.contrib.unusualLineTerminatorsDetector",He=qe([je(1,ze.S),je(2,se.$)],He),(0,c._K)(He.ID,He);var Fe=n(26757),Qe=n(17539),Ke=n(32981),We=n(93965),$e=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Be=function(e,t){return function(n,i){t(n,i,e)}};let Ye=class extends I.JT{constructor(e,t,n,i){super(),this._modelService=t,this._themeService=n,this._configurationService=i,this._editor=e,this._tokenizeViewport=new ne.pY((()=>this._tokenizeViewportNow()),100),this._outstandingRequests=[],this._register(this._editor.onDidScrollChange((()=>{this._tokenizeViewport.schedule()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),this._tokenizeViewport.schedule()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),this._tokenizeViewport.schedule()}))),this._register(de.K7.onDidChange((()=>{this._cancelAll(),this._tokenizeViewport.schedule()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(Qe.e3)&&(this._cancelAll(),this._tokenizeViewport.schedule())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),this._tokenizeViewport.schedule()})))}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,n=this._outstandingRequests.length;tthis._requestRange(e,t))))}_requestRange(e,t){const n=e.getVersionId(),i=(0,ne.PG)((n=>Promise.resolve((0,Fe.OG)(e,t,n))));return i.then((i=>{if(!i||!i.tokens||e.isDisposed()||e.getVersionId()!==n)return;const{provider:o,tokens:r}=i,s=this._modelService.getSemanticTokensProviderStyling(o);e.setPartialSemanticTokens(t,(0,Ke.h)(r,s,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(i)),(()=>this._removeOutstandingRequest(i))),i}};Ye.ID="editor.contrib.viewportSemanticTokens",Ye=$e([Be(1,P.q),Be(2,he.XE),Be(3,We.Ui)],Ye),(0,c._K)(Ye.ID,Ye);n(29111),n(63618),n(48608);var Xe=n(5530),Je=(n(15692),n(33686),n(17331),n(4335),n(44650)),Ge=n(82825),Ze=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},et=function(e,t){return function(n,i){t(n,i,e)}};let tt=class e{constructor(e){this.quickInputService=e,this.registry=Je.B.as(Ge.IP.Quickaccess)}provide(t){const n=new I.SL;n.add(t.onDidAccept((()=>{const[e]=t.selectedItems;e&&this.quickInputService.quickAccess.show(e.prefix,{preserveValue:!0})}))),n.add(t.onDidChangeValue((t=>{const n=this.registry.getQuickAccessProvider(t.substr(e.PREFIX.length));n&&n.prefix&&n.prefix!==e.PREFIX&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})})));const{editorProviders:i,globalProviders:o}=this.getQuickAccessProviders();return t.items=0===i.length||0===o.length?[...0===i.length?o:i]:[{label:(0,u.N)("globalCommands","global commands"),type:"separator"},...o,{label:(0,u.N)("editorCommands","editor commands"),type:"separator"},...i],n}getQuickAccessProviders(){const t=[],n=[];for(const i of this.registry.getQuickAccessProviders().sort(((e,t)=>e.prefix.localeCompare(t.prefix))))if(i.prefix!==e.PREFIX)for(const e of i.helpEntries){const o=e.prefix||i.prefix,r=o||"…";(e.needsEditor?n:t).push({prefix:o,label:r,ariaLabel:(0,u.N)("helpPickAriaLabel","{0}, {1}",r,e.description),description:e.description})}return{editorProviders:n,globalProviders:t}}};tt.PREFIX="?",tt=Ze([et(0,V.eJ)],tt),Je.B.as(Ge.IP.Quickaccess).registerQuickAccessProvider({ctor:tt,prefix:"",helpEntries:[{description:Xe.ld.helpQuickAccessActionLabel,needsEditor:!0}]});n(65586),n(83861),n(63435),n(34835),n(6181)}}]); \ No newline at end of file +(self.webpackChunk=self.webpackChunk||[]).push([[71448],{71448:function(e,t,n){var i;self.MonacoEnvironment=(i={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var o=n.p,r=(o?o.replace(/\/$/,"")+"/":"")+i[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(r)){var s=String(window.location),a=s.substr(0,s.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(r.substring(0,a.length)!==a){/^(\/\/)/.test(r)&&(r=window.location.protocol+r);var c=new Blob(["/*"+t+'*/importScripts("'+r+'");'],{type:"application/javascript"});return URL.createObjectURL(c)}}return r}}),n(33686),n(92981),n(32838),n(84826),n(60066),n(41007),n(54807),n(88297),n(46343),n(4105),n(81755),n(78940),n(16442),n(34064),n(85628),n(86955),n(65586),n(17645),n(99516),n(88343),n(17331),n(63478),n(4335),n(26313),n(35432),n(51518),n(52393),n(63435),n(83861),n(34835),n(59622),n(71925),n(19257),n(61977),n(6181),n(6410),n(28630),n(29111),n(63618),n(48608),e.exports=n(80367),n(92973),n(72773),n(30219),n(10755),n(74121),n(77973),n(27246),n(82961),n(19959),n(23347),n(17323),n(24607),n(90130),n(72185),n(40882),n(14349),n(10715),n(88756),n(67748),n(30141),n(44115),n(65588),n(42716),n(83135),n(91067),n(63886),n(44865),n(41495),n(51025),n(38516),n(18504),n(28593),n(43069),n(50185),n(11745),n(96025),n(85713),n(98836),n(18625),n(25167),n(5512),n(59066),n(73363),n(5769),n(95630),n(12189),n(78605),n(17728),n(94503),n(66857),n(38341),n(61010),n(1099),n(49478),n(32985),n(72088),n(69746),n(94912),n(60032),n(24571),n(55670),n(77777),n(39393),n(81147),n(35550)},80367:function(e,t,n){"use strict";n.r(t),n.d(t,{CancellationTokenSource:function(){return i.CancellationTokenSource},Emitter:function(){return i.Emitter},KeyCode:function(){return i.KeyCode},KeyMod:function(){return i.KeyMod},MarkerSeverity:function(){return i.MarkerSeverity},MarkerTag:function(){return i.MarkerTag},Position:function(){return i.Position},Range:function(){return i.Range},Selection:function(){return i.Selection},SelectionDirection:function(){return i.SelectionDirection},Token:function(){return i.Token},Uri:function(){return i.Uri},__esModule:function(){return i.__esModule},editor:function(){return i.editor},languages:function(){return i.languages}});n(55670),n(24607),n(42716),n(67748);var i=n(2550),o=(n(92973),n(72773),n(30219),n(10755),n(98909));(0,o.H)({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:function(){return n.e(74014).then(n.bind(n,74014))}});n(74121),n(77973),n(27246),n(82961),n(19959),n(23347),n(17323);(0,o.H)({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:function(){return n.e(18963).then(n.bind(n,18963))}});n(90130);(0,o.H)({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:function(){return n.e(78302).then(n.bind(n,78302))}}),(0,o.H)({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:function(){return n.e(51646).then(n.bind(n,51646))}}),(0,o.H)({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:function(){return n.e(70981).then(n.bind(n,70981))}});n(72185),n(40882),n(14349),n(10715);(0,o.H)({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:function(){return n.e(15290).then(n.bind(n,15290))}});n(88756),n(30141),n(44115),n(65588);(0,o.H)({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:function(){return n.e(15631).then(n.bind(n,15631))}});n(83135),n(91067);(0,o.H)({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:function(){return n.e(80629).then(n.bind(n,80629))}});n(63886);(0,o.H)({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:function(){return n.e(86774).then(n.bind(n,61880))}}),(0,o.H)({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:function(){return n.e(30741).then(n.bind(n,30741))}});n(44865),n(41495),n(51025),n(38516),n(18504),n(28593),n(43069),n(50185),n(11745),n(96025);(0,o.H)({id:"pla",extensions:[".pla"],loader:function(){return n.e(12386).then(n.bind(n,12386))}});n(85713),n(98836),n(18625);(0,o.H)({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:function(){return n.e(36634).then(n.bind(n,36634))}});n(25167),n(5512);(0,o.H)({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:function(){return n.e(3133).then(n.bind(n,3133))}});n(59066),n(73363),n(5769),n(95630),n(12189),n(78605),n(17728),n(94503),n(35550),n(66857),n(38341),n(61010),n(1099),n(49478);(0,o.H)({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:function(){return n.e(95679).then(n.bind(n,95679))}});n(32985),n(72088),n(69746);(0,o.H)({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:function(){return n.e(39252).then(n.bind(n,33571))}}),(0,o.H)({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:function(){return n.e(39252).then(n.bind(n,33571))}});n(94912),n(60032),n(24571),n(77777),n(39393),n(81147),n(46343),n(57630),n(80961),n(46810);var r=n(54951),s=n(94186),a=n(52411),c=n(4514),d=n(17551),l=n(68987),u=n(13268),h=n(90689),g=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},p=function(e,t){return function(n,i){t(n,i,e)}},f=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const _=new h.uy("selectionAnchorSet",!1);let m=class e{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=_.bindTo(t),this.modelChangeListener=e.onDidChangeModel((()=>this.selectionAnchorSetContextKey.reset()))}static get(t){return t.getContribution(e.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],n=this.editor.deltaDecorations(t,[{range:d.Y.fromPositions(e,e),options:{description:"selection-anchor",stickiness:1,hoverMessage:(new s.W5).appendText((0,u.N)("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=n[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,r.Z9)((0,u.N)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(d.Y.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};m.ID="editor.contrib.selectionAnchorController",m=g([p(1,h.i6)],m);class b extends c.R6{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,u.N)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:l.u.editorTextFocus,primary:(0,a.gx)(2089,2080),weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){m.get(t).setSelectionAnchor()}))}}class v extends c.R6{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,u.N)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:_})}run(e,t){return f(this,void 0,void 0,(function*(){m.get(t).goToSelectionAnchor()}))}}class S extends c.R6{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,u.N)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:_,kbOpts:{kbExpr:l.u.editorTextFocus,primary:(0,a.gx)(2089,2089),weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){m.get(t).selectFromAnchorToCursor()}))}}class C extends c.R6{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,u.N)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:_,kbOpts:{kbExpr:l.u.editorTextFocus,primary:9,weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){m.get(t).cancelSelectionAnchor()}))}}(0,c._K)(m.ID,m),(0,c.Qr)(b),(0,c.Qr)(v),(0,c.Qr)(S),(0,c.Qr)(C);n(92981),n(32838),n(28630),n(84826),n(60066),n(41007);var I=n(69323),y=n(17373),D=(n(99851),n(88343));class x extends I.JT{constructor(e){super(),this._editor=e,this._register(e.onMouseDown((e=>this.onMouseDown(e))))}dispose(){super.dispose()}onMouseDown(e){var t;if(6!==e.target.type)return;if(![...(null===(t=e.target.element)||void 0===t?void 0:t.classList.values())||[]].find((e=>e.startsWith("ced-colorBox"))))return;if(!e.target.range)return;const n=this._editor.getContribution(D.ModesHoverController.ID);if(!n.isColorPickerVisible()){const t=new y.e(e.target.range.startLineNumber,e.target.range.startColumn+1,e.target.range.endLineNumber,e.target.range.endColumn+1);n.showContentHover(t,0,!1)}}}x.ID="editor.contrib.colorContribution",(0,c._K)(x.ID,x);n(54807),n(88297),n(4105),n(81755),n(78940),n(16442),n(34064),n(85628);var k=n(96283),w=n(72999),L=n(5472),P=n(12027),R=n(16862),T=n(16903),O=n(35884),M=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};function A(e,t,n){return M(this,void 0,void 0,(function*(){const i=yield T.C3.create(e,n);return t?i.asListOfDocumentSymbols():i.getTopLevelSymbols()}))}O.P.registerCommand("_executeDocumentSymbolProvider",(function(e,...t){return M(this,void 0,void 0,(function*(){const[n]=t;(0,w.p_)(L.o.isUri(n));const i=e.get(P.q).getModel(n);if(i)return A(i,!1,k.T.None);const o=yield e.get(R.S).createModelReference(n);try{return yield A(o.object.textEditorModel,!1,k.T.None)}finally{o.dispose()}}))}));n(16788),n(17645),n(99516),n(86955);var N=n(82983),E=n(91167),z=n(44124),q=n(31276),j=n(73468),U=n(44765),V=n(96148);function H(e,t,n,i){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const o=j.zu.getIndentationRules(e.getLanguageId());if(!o)return[];for(n=Math.min(n,e.getLineCount());t<=n&&o.unIndentedLinePattern;){let n=e.getLineContent(t);if(!o.unIndentedLinePattern.test(n))break;t++}if(t>n-1)return[];const{tabSize:r,indentSize:s,insertSpaces:a}=e.getOptions(),c=(e,t)=>(t=t||1,E.U.shiftIndent(e,e.length+t,r,s,a)),l=(e,t)=>(t=t||1,E.U.unshiftIndent(e,e.length+t,r,s,a));let u,h=[],g=e.getLineContent(t),p=g;if(null!=i){u=i;let e=N.V8(g);p=u+g.substring(e.length),o.decreaseIndentPattern&&o.decreaseIndentPattern.test(p)&&(u=l(u),p=u+g.substring(e.length)),g!==p&&h.push(z.h.replaceMove(new d.Y(t,1,t,e.length+1),q.yO.normalizeIndentation(u,s,a)))}else u=N.V8(g);let f=u;o.increaseIndentPattern&&o.increaseIndentPattern.test(p)?(f=c(f),u=c(u)):o.indentNextLinePattern&&o.indentNextLinePattern.test(p)&&(f=c(f));for(let i=++t;i<=n;i++){let t=e.getLineContent(i),n=N.V8(t),r=f+t.substring(n.length);o.decreaseIndentPattern&&o.decreaseIndentPattern.test(r)&&(f=l(f),u=l(u)),n!==f&&h.push(z.h.replaceMove(new d.Y(i,1,i,n.length+1),q.yO.normalizeIndentation(f,s,a))),o.unIndentedLinePattern&&o.unIndentedLinePattern.test(t)||(o.increaseIndentPattern&&o.increaseIndentPattern.test(r)?(u=c(u),f=u):f=o.indentNextLinePattern&&o.indentNextLinePattern.test(r)?c(f):u)}return h}class F extends c.R6{constructor(){super({id:F.ID,label:u.N("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:l.u.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=n.getOptions(),o=t.getSelection();if(!o)return;const r=new ee(o,i.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),n.updateOptions({insertSpaces:!0})}}F.ID="editor.action.indentationToSpaces";class Q extends c.R6{constructor(){super({id:Q.ID,label:u.N("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:l.u.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=n.getOptions(),o=t.getSelection();if(!o)return;const r=new te(o,i.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),n.updateOptions({insertSpaces:!1})}}Q.ID="editor.action.indentationToTabs";class K extends c.R6{constructor(e,t){super(t),this.insertSpaces=e}run(e,t){const n=e.get(V.eJ),i=e.get(P.q);let o=t.getModel();if(!o)return;const r=i.getCreationOptions(o.getLanguageId(),o.uri,o.isForSimpleWidget),s=[1,2,3,4,5,6,7,8].map((e=>({id:e.toString(),label:e.toString(),description:e===r.tabSize?u.N("configuredTabSize","Configured Tab Size"):void 0}))),a=Math.min(o.getOptions().tabSize-1,7);setTimeout((()=>{n.pick(s,{placeHolder:u.N({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:s[a]}).then((e=>{e&&o&&!o.isDisposed()&&o.updateOptions({tabSize:parseInt(e.label,10),insertSpaces:this.insertSpaces})}))}),50)}}class W extends K{constructor(){super(!1,{id:W.ID,label:u.N("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}W.ID="editor.action.indentUsingTabs";class $ extends K{constructor(){super(!0,{id:$.ID,label:u.N("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}$.ID="editor.action.indentUsingSpaces";class B extends c.R6{constructor(){super({id:B.ID,label:u.N("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){const n=e.get(P.q);let i=t.getModel();if(!i)return;const o=n.getCreationOptions(i.getLanguageId(),i.uri,i.isForSimpleWidget);i.detectIndentation(o.insertSpaces,o.tabSize)}}B.ID="editor.action.detectIndentation";class Y extends c.R6{constructor(){super({id:"editor.action.reindentlines",label:u.N("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:l.u.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=H(n,1,n.getLineCount());i.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,i),t.pushUndoStop())}}class X extends c.R6{constructor(){super({id:"editor.action.reindentselectedlines",label:u.N("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:l.u.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=t.getSelections();if(null===i)return;let o=[];for(let e of i){let t=e.startLineNumber,i=e.endLineNumber;if(t!==i&&1===e.endColumn&&i--,1===t){if(t===i)continue}else t--;let r=H(n,t,i);o.push(...r)}o.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}}class J{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(let t of e)t.range&&"string"==typeof t.text&&this._edits.push(t)}getEditOperations(e,t){for(let e of this._edits)t.addEditOperation(y.e.lift(e.range),e.text);let n=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),n||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}class G{constructor(e){this.callOnDispose=new I.SL,this.callOnModel=new I.SL,this.editor=e,this.callOnDispose.add(e.onDidChangeConfiguration((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModel((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModelLanguage((()=>this.update())))}update(){this.callOnModel.clear(),this.editor.getOption(9)<4||this.editor.getOption(47)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((({range:e})=>{this.trigger(e)})))}trigger(e){let t=this.editor.getSelections();if(null===t||t.length>1)return;const n=this.editor.getModel();if(!n)return;if(!n.isCheapToTokenize(e.getStartPosition().lineNumber))return;const i=this.editor.getOption(9),{tabSize:o,indentSize:r,insertSpaces:s}=n.getOptions();let a=[],c={shiftIndent:e=>E.U.shiftIndent(e,e.length+1,o,r,s),unshiftIndent:e=>E.U.unshiftIndent(e,e.length+1,o,r,s)},d=e.startLineNumber;for(;d<=e.endLineNumber&&this.shouldIgnoreLine(n,d);)d++;if(d>e.endLineNumber)return;let l=n.getLineContent(d);if(!/\S/.test(l.substring(0,e.startColumn-1))){const e=j.zu.getGoodIndentForLine(i,n,n.getLanguageId(),d,c);if(null!==e){let t=N.V8(l),i=U.Y(e,o);if(i!==U.Y(t,o)){let e=U.J(i,o,s);a.push({range:new y.e(d,1,d,t.length+1),text:e}),l=e+l.substr(t.length)}else{let e=j.zu.getIndentMetadata(n,d);if(0===e||8===e)return}}}const u=d;for(;dn.getLineTokens(e),getLanguageId:()=>n.getLanguageId(),getLanguageIdAtPosition:(e,t)=>n.getLanguageIdAtPosition(e,t),getLineContent:e=>e===u?l:n.getLineContent(e)},r=j.zu.getGoodIndentForLine(i,t,n.getLanguageId(),d+1,c);if(null!==r){let t=U.Y(r,o),i=U.Y(N.V8(n.getLineContent(d+1)),o);if(t!==i){let r=t-i;for(let t=d+1;t<=e.endLineNumber;t++){let e=n.getLineContent(t),i=N.V8(e),c=U.Y(i,o)+r,d=U.J(c,o,s);d!==i&&a.push({range:new y.e(t,1,t,i.length+1),text:d})}}}}if(a.length>0){this.editor.pushUndoStop();let e=new J(a,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.forceTokenization(t);let n=e.getLineFirstNonWhitespaceColumn(t);if(0===n)return!0;let i=e.getLineTokens(t);if(i.getCount()>0){let e=i.findTokenIndexAtOffset(n);if(e>=0&&1===i.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}}function Z(e,t,n,i){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let o="";for(let e=0;e=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},pe=function(e,t){return function(n,i){t(n,i,e)}},fe=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};class _e{constructor(){this._data=new re.Y9}push(e,t){const n=this._data.get(e.uri);void 0===n?this._data.set(e.uri,new Set([t])):n.add(t)}pop(e,t){const n=this._data.get(e.uri);n&&(n.delete(t),0===n.size&&this._data.delete(e.uri))}has(e,t){var n;return Boolean(null===(n=this._data.get(e.uri))||void 0===n?void 0:n.has(t))}}function me(e,t,n,i){return fe(this,void 0,void 0,(function*(){const o=[],r=de.mX.ordered(e).reverse().map((r=>t.map((t=>fe(this,void 0,void 0,(function*(){try{n.push(e,r);const s=yield r.provideInlayHints(e,t,i);(null==s?void 0:s.length)&&o.push(s.filter((e=>t.containsPosition(e.position))))}catch(e){(0,ie.Cp)(e)}finally{n.pop(e,r)}}))))));return yield Promise.all(r.flat()),o.flat().sort(((e,t)=>ce.L.compare(e.position,t.position)))}))}class be{constructor(){this._entries=new re.z6(50)}get(e){const t=be._key(e);return this._entries.get(t)}set(e,t){const n=be._key(e);this._entries.set(n,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}let ve=class e{constructor(t,n){this._editor=t,this._codeEditorService=n,this._decorationOwnerId=++e._decorationOwnerIdPool,this._disposables=new I.SL,this._sessionDisposables=new I.SL,this._getInlayHintsDelays=new le.Y(de.mX,25,500),this._cache=new be,this._decorations=new Map,this._disposables.add(de.mX.onDidChange((()=>this._update()))),this._disposables.add(t.onDidChangeModel((()=>this._update()))),this._disposables.add(t.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(t.onDidChangeConfiguration((e=>{e.hasChanged(125)&&this._update()}))),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){if(this._sessionDisposables.clear(),this._removeAllDecorations(),!this._editor.getOption(125).enabled)return;const e=this._editor.getModel();if(!e||!de.mX.has(e))return;const t=this._cache.get(e);t&&this._updateHintsDecorators([e.getFullModelRange()],t);const n=new _e,i=new ne.pY((()=>fe(this,void 0,void 0,(function*(){const t=Date.now(),o=new k.A;this._sessionDisposables.add((0,I.OF)((()=>o.dispose(!0))));const r=this._getHintsRanges(),s=yield me(e,r,n,o.token);i.delay=this._getInlayHintsDelays.update(e,Date.now()-t),o.token.isCancellationRequested||(this._updateHintsDecorators(r,s),this._cache.set(e,Array.from(this._decorations.values()).map((e=>e.hint))))}))),this._getInlayHintsDelays.get(e));this._sessionDisposables.add(i),this._sessionDisposables.add(this._editor.onDidChangeModelContent((()=>i.schedule()))),this._disposables.add(this._editor.onDidScrollChange((()=>i.schedule()))),i.schedule();const o=new I.SL;this._sessionDisposables.add(o);for(const t of de.mX.all(e))"function"==typeof t.onDidChangeInlayHints&&o.add(t.onDidChangeInlayHints((()=>{n.has(e,t)||i.schedule()})))}_getHintsRanges(){const e=this._editor.getModel(),t=this._editor.getVisibleRangesPlusViewportAboveBelow(),n=[];for(const i of t.sort(y.e.compareRangesUsingStarts)){const t=e.validateRange(new y.e(i.startLineNumber-30,i.startColumn,i.endLineNumber+30,i.endColumn));0!==n.length&&y.e.areIntersectingOrTouching(n[n.length-1],t)?n[n.length-1]=y.e.plusRange(n[n.length-1],t):n.push(t)}return n}_updateHintsDecorators(e,t){const{fontSize:n,fontFamily:i}=this._getLayoutInfo(),o=this._editor.getModel(),r=[],s=[],a="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(a,i);for(const e of t){const{text:t,position:i,whitespaceBefore:c,whitespaceAfter:d}=e,l=c?n/3|0:0,u=d?n/3|0:0,h={contentText:Ce(t),fontSize:`${n}px`,margin:`0px ${u}px 0px ${l}px`,fontFamily:`var(${a}), ${ae.hL.fontFamily}`,padding:`1px ${0|Math.max(1,n/4)}px`,borderRadius:(n/4|0)+"px",verticalAlign:"middle",backgroundColor:(0,he.EN)(ue.Pp),color:(0,he.EN)(ue.VV)};e.kind===de.gl.Parameter?(h.backgroundColor=(0,he.EN)(ue.ph),h.color=(0,he.EN)(ue.HC)):e.kind===de.gl.Type&&(h.backgroundColor=(0,he.EN)(ue.bK),h.color=(0,he.EN)(ue.hX));let g={beforeInjectedText:Object.assign(Object.assign({},h),{affectsLetterSpacing:!0})},p=y.e.fromPositions(i),f=o.getWordAtPosition(i),_=!1;f&&(f.endColumn===i.column?(g.afterInjectedText=g.beforeInjectedText,g.beforeInjectedText=void 0,_=!0,p=Se(f,i.lineNumber)):f.startColumn===i.column&&(_=!0,p=Se(f,i.lineNumber)));const m="inlayHints-"+(0,oe.vp)(g).toString(16);this._codeEditorService.registerDecorationType("inlay-hints-controller",m,g,void 0,this._editor),r.push(m);if(s.push({range:p,options:Object.assign(Object.assign({},this._codeEditorService.resolveDecorationOptions(m,!0)),{showIfCollapsed:!_,stickiness:0})})>1500)break}const c=[];for(const t of e)for(const{id:e}of o.getDecorationsInRange(t,this._decorationOwnerId,!0)){const t=this._decorations.get(e);t&&(c.push(e),this._codeEditorService.removeDecorationType(t.decorationTypeId),this._decorations.delete(e))}const d=o.deltaDecorations(c,s,this._decorationOwnerId);for(let e=0;et)&&(n=.9*t|0);return{fontSize:n,fontFamily:e.fontFamily||this._editor.getOption(42)}}_removeAllDecorations(){this._editor.deltaDecorations(Array.from(this._decorations.keys()),[]);for(let e of this._decorations.values())this._codeEditorService.removeDecorationType(e.decorationTypeId);this._decorations.clear()}};function Se(e,t){return new y.e(t,e.startColumn,t,e.endColumn)}function Ce(e){return e.replace(/[ \t]/g," ")}ve.ID="editor.contrib.InlayHints",ve._decorationOwnerIdPool=0,ve=ge([pe(1,se.$)],ve),(0,c._K)(ve.ID,ve),O.P.registerCommand("_executeInlayHintProvider",((e,...t)=>fe(void 0,void 0,void 0,(function*(){const[n,i]=t;(0,w.p_)(L.o.isUri(n)),(0,w.p_)(y.e.isIRange(i));const o=yield e.get(R.S).createModelReference(n);try{return yield me(o.object.textEditorModel,[y.e.lift(i)],new _e,k.T.None)}finally{o.dispose()}}))));n(63478),n(26313);var Ie=n(43506),ye=n(51737),De=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},xe=function(e,t){return function(n,i){t(n,i,e)}},ke=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const we=new h.uy("LinkedEditingInputVisible",!1),Le="linked-editing-decoration";let Pe=class e extends I.JT{constructor(e,t){super(),this._debounceDuration=200,this._localToDispose=this._register(new I.SL),this._editor=e,this._enabled=!1,this._visibleContextKey=we.bindTo(t),this._currentDecorations=[],this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new I.SL),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel((()=>this.reinitialize(!0)))),this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(61)||e.hasChanged(81))&&this.reinitialize(!1)}))),this._register(de.id.onDidChange((()=>this.reinitialize(!1)))),this._register(this._editor.onDidChangeModelLanguage((()=>this.reinitialize(!0)))),this.reinitialize(!0)}static get(t){return t.getContribution(e.ID)}reinitialize(e){const t=this._editor.getModel(),n=null!==t&&(this._editor.getOption(61)||this._editor.getOption(81))&&de.id.has(t);if(n===this._enabled&&!e)return;if(this._enabled=n,this.clearRanges(),this._localToDispose.clear(),!n||null===t)return;this._languageWordPattern=j.zu.getWordDefinition(t.getLanguageId()),this._localToDispose.add(t.onDidChangeLanguageConfiguration((()=>{this._languageWordPattern=j.zu.getWordDefinition(t.getLanguageId())})));const i=new ne.vp(this._debounceDuration),o=()=>{this._rangeUpdateTriggerPromise=i.trigger((()=>this.updateRanges()),this._debounceDuration)},r=new ne.vp(0),s=e=>{this._rangeSyncTriggerPromise=r.trigger((()=>this._syncRanges(e)))};this._localToDispose.add(this._editor.onDidChangeCursorPosition((()=>{o()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const n=t.getDecorationRange(this._currentDecorations[0]);if(n&&e.changes.every((e=>n.intersectRanges(e.range))))return void s(this._currentDecorations)}o()}))),this._localToDispose.add({dispose:()=>{i.cancel(),r.cancel()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._currentDecorations||0===e.length)return;const t=this._editor.getModel(),n=t.getDecorationRange(e[0]);if(!n||n.startLineNumber!==n.endLineNumber)return this.clearRanges();const i=t.getValueInRange(n);if(this._currentWordPattern){const e=i.match(this._currentWordPattern);if((e?e[0].length:0)!==i.length)return this.clearRanges()}let o=[];for(let n=1,r=e.length;n1)return void this.clearRanges();const i=this._editor.getModel(),o=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===o){if(n.equals(this._currentRequestPosition))return;if(this._currentDecorations&&this._currentDecorations.length>0){const e=i.getDecorationRange(this._currentDecorations[0]);if(e&&e.containsPosition(n))return}}this._currentRequestPosition=n,this._currentRequestModelVersion=o;const r=(0,ne.PG)((t=>ke(this,void 0,void 0,(function*(){try{const s=yield Oe(i,n,t);if(r!==this._currentRequest)return;if(this._currentRequest=null,o!==i.getVersionId())return;let a=[];(null==s?void 0:s.ranges)&&(a=s.ranges),this._currentWordPattern=(null==s?void 0:s.wordPattern)||this._languageWordPattern;let c=!1;for(let e=0,t=a.length;e({range:t,options:e.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations=this._editor.deltaDecorations(this._currentDecorations,d)}catch(e){(0,ie.VV)(e)||(0,ie.dL)(e),this._currentRequest!==r&&this._currentRequest||this.clearRanges()}}))));return this._currentRequest=r,r}))}};Pe.ID="editor.contrib.linkedEditing",Pe.DECORATION=q.qx.register({description:"linked-editing",stickiness:0,className:Le}),Pe=De([xe(1,h.i6)],Pe);class Re extends c.R6{constructor(){super({id:"editor.action.linkedEditing",label:u.N("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:h.Ao.and(l.u.writable,l.u.hasRenameProvider),kbOpts:{kbExpr:l.u.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const n=e.get(se.$),[i,o]=Array.isArray(t)&&t||[void 0,void 0];return L.o.isUri(i)&&ce.L.isIPosition(o)?n.openCodeEditor({resource:i},n.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(o),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),ie.dL):super.runCommand(e,t)}run(e,t){const n=Pe.get(t);return n?Promise.resolve(n.updateRanges(!0)):Promise.resolve()}}const Te=c._l.bindToContribution(Pe.get);function Oe(e,t,n){const i=de.id.ordered(e);return(0,ne.Ps)(i.map((i=>()=>ke(this,void 0,void 0,(function*(){try{return yield i.provideLinkedEditingRanges(e,t,n)}catch(e){return void(0,ie.Cp)(e)}})))),(e=>!!e&&Ie.Of(null==e?void 0:e.ranges)))}(0,c.fK)(new Te({id:"cancelLinkedEditingInput",precondition:we,handler:e=>e.clearRanges(),kbOpts:{kbExpr:l.u.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));const Me=(0,ue.P6)("editor.linkedEditingBackground",{dark:ye.Il.fromHex("#f00").transparent(.3),light:ye.Il.fromHex("#f00").transparent(.3),hc:ye.Il.fromHex("#f00").transparent(.3)},u.N("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,he.Ic)(((e,t)=>{const n=e.getColor(Me);n&&t.addRule(`.monaco-editor .${Le} { background: ${n}; border-left-color: ${n}; }`)})),(0,c.sb)("_executeLinkedEditingProvider",((e,t)=>Oe(e,t,k.T.None))),(0,c._K)(Pe.ID,Pe),(0,c.Qr)(Re);n(35432),n(51518),n(52393),n(59622),n(71925),n(19257),n(61977);var Ae=n(95830);class Ne extends c.R6{constructor(){super({id:"editor.action.forceRetokenize",label:u.N("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const n=t.getModel();n.resetTokenization();const i=new Ae.G(!0);n.forceTokenization(n.getLineCount()),i.stop(),console.log(`tokenization took ${i.elapsed()}`)}}(0,c.Qr)(Ne);n(6410);var Ee=n(9365),ze=n(94726),qe=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},je=function(e,t){return function(n,i){t(n,i,e)}},Ue=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const Ve="ignoreUnusualLineTerminators";let He=class extends I.JT{constructor(e,t,n){super(),this._editor=e,this._dialogService=t,this._codeEditorService=n,this._config=this._editor.getOption(112),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(112)&&(this._config=this._editor.getOption(112),this._checkForUnusualLineTerminators())}))),this._register(this._editor.onDidChangeModel((()=>{this._checkForUnusualLineTerminators()}))),this._register(this._editor.onDidChangeModelContent((e=>{e.isUndoing||this._checkForUnusualLineTerminators()})))}_checkForUnusualLineTerminators(){return Ue(this,void 0,void 0,(function*(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;const t=function(e,t){return e.getModelProperty(t.uri,Ve)}(this._codeEditorService,e);if(!0===t)return;if(this._editor.getOption(80))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());(yield this._dialogService.confirm({title:u.N("unusualLineTerminators.title","Unusual Line Terminators"),message:u.N("unusualLineTerminators.message","Detected unusual line terminators"),detail:u.N("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,Ee.EZ)(e.uri)),primaryButton:u.N("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:u.N("unusualLineTerminators.ignore","Ignore")})).confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,n){e.setModelProperty(t.uri,Ve,n)}(this._codeEditorService,e,!0)}))}};He.ID="editor.contrib.unusualLineTerminatorsDetector",He=qe([je(1,ze.S),je(2,se.$)],He),(0,c._K)(He.ID,He);var Fe=n(26757),Qe=n(17539),Ke=n(32981),We=n(93965),$e=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Be=function(e,t){return function(n,i){t(n,i,e)}};let Ye=class extends I.JT{constructor(e,t,n,i){super(),this._modelService=t,this._themeService=n,this._configurationService=i,this._editor=e,this._tokenizeViewport=new ne.pY((()=>this._tokenizeViewportNow()),100),this._outstandingRequests=[],this._register(this._editor.onDidScrollChange((()=>{this._tokenizeViewport.schedule()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),this._tokenizeViewport.schedule()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),this._tokenizeViewport.schedule()}))),this._register(de.K7.onDidChange((()=>{this._cancelAll(),this._tokenizeViewport.schedule()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(Qe.e3)&&(this._cancelAll(),this._tokenizeViewport.schedule())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),this._tokenizeViewport.schedule()})))}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,n=this._outstandingRequests.length;tthis._requestRange(e,t))))}_requestRange(e,t){const n=e.getVersionId(),i=(0,ne.PG)((n=>Promise.resolve((0,Fe.OG)(e,t,n))));return i.then((i=>{if(!i||!i.tokens||e.isDisposed()||e.getVersionId()!==n)return;const{provider:o,tokens:r}=i,s=this._modelService.getSemanticTokensProviderStyling(o);e.setPartialSemanticTokens(t,(0,Ke.h)(r,s,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(i)),(()=>this._removeOutstandingRequest(i))),i}};Ye.ID="editor.contrib.viewportSemanticTokens",Ye=$e([Be(1,P.q),Be(2,he.XE),Be(3,We.Ui)],Ye),(0,c._K)(Ye.ID,Ye);n(29111),n(63618),n(48608);var Xe=n(5530),Je=(n(15692),n(33686),n(17331),n(4335),n(44650)),Ge=n(82825),Ze=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},et=function(e,t){return function(n,i){t(n,i,e)}};let tt=class e{constructor(e){this.quickInputService=e,this.registry=Je.B.as(Ge.IP.Quickaccess)}provide(t){const n=new I.SL;n.add(t.onDidAccept((()=>{const[e]=t.selectedItems;e&&this.quickInputService.quickAccess.show(e.prefix,{preserveValue:!0})}))),n.add(t.onDidChangeValue((t=>{const n=this.registry.getQuickAccessProvider(t.substr(e.PREFIX.length));n&&n.prefix&&n.prefix!==e.PREFIX&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})})));const{editorProviders:i,globalProviders:o}=this.getQuickAccessProviders();return t.items=0===i.length||0===o.length?[...0===i.length?o:i]:[{label:(0,u.N)("globalCommands","global commands"),type:"separator"},...o,{label:(0,u.N)("editorCommands","editor commands"),type:"separator"},...i],n}getQuickAccessProviders(){const t=[],n=[];for(const i of this.registry.getQuickAccessProviders().sort(((e,t)=>e.prefix.localeCompare(t.prefix))))if(i.prefix!==e.PREFIX)for(const e of i.helpEntries){const o=e.prefix||i.prefix,r=o||"…";(e.needsEditor?n:t).push({prefix:o,label:r,ariaLabel:(0,u.N)("helpPickAriaLabel","{0}, {1}",r,e.description),description:e.description})}return{editorProviders:n,globalProviders:t}}};tt.PREFIX="?",tt=Ze([et(0,V.eJ)],tt),Je.B.as(Ge.IP.Quickaccess).registerQuickAccessProvider({ctor:tt,prefix:"",helpEntries:[{description:Xe.ld.helpQuickAccessActionLabel,needsEditor:!0}]});n(65586),n(83861),n(63435),n(34835),n(6181)}}]); \ No newline at end of file diff --git a/75573.c728ab94.async.js b/75573.c728ab94.async.js new file mode 100644 index 0000000000..a132183257 --- /dev/null +++ b/75573.c728ab94.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[75573],{86468:function(e,n,t){t.d(n,{Z:function(){return v}});var i=t(82242),r=t.n(i),o=t(7557),c=t.n(o),l=t(41498),a=t.n(l),s=t(79800),d=t.n(s),A=t(39647),u=t.n(A),g=t(3113),p=t(59301),m=t(37712),f=["children"],v=function(e){var n=e.children,t=u()(e,f),i=(0,p.useState)(!1),o=d()(i,2),l=o[0],s=o[1];return(0,m.jsx)(g.ZP,r()(r()({},t),{},{loading:l,onClick:function(){var e=a()(c()().mark((function e(n){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s(!0),e.next=4,t.onClick(n);case 4:s(!1),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),s(!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(n){return e.apply(this,arguments)}}(),children:n}))}},48236:function(e,n,t){t.d(n,{S:function(){return j}});var i=t(79800),r=t.n(i),o=t(59301),c=t(20834),l=t(38854),a="main___A2KB0",s="wrap___PrMse",d="content___pEqhq",A="programName___h8PAJ",u="name___oxG0a",g="directionContentWrap____Ymcj",p="directionItem___uCMBX",m="active___vOl0l",f="subActive___WzT87",v="subItem___nVuXN",h="subMenu___DqKGV",x="action___O7v85",C=t(37712),y=[{name:"编程题",value:"PROGRAM"},{name:"单选题",value:"SINGLE"},{name:"多选题",value:"MULTIPLE"},{name:"判断题",value:"JUDGMENT"},{name:"填空题",value:"COMPLETION"},{name:"简答题",value:"SUBJECTIVE"},{name:"组合题",value:"COMBINATION"},{name:"程序填空题",value:"BPROGRAM"}],w=[{name:"简单",value:1},{name:"适中",value:2},{name:"困难",value:3}],I=[{name:"随机组卷",value:1},{name:"人工组卷",value:2}],j=function(e){e.showSelectAll;var n=e.disciplinesData,t=void 0===n?[]:n,i=e.knowledgeData,j=void 0===i?[]:i,b=e.directionValue,N=e.subDisciplineValue,k=e.typeValue,B=e.knowledgeValue,Z=e.showKnowledge,P=void 0!==Z&&Z,O=e.showRandomType,E=void 0!==O&&O,z=e.difficultyValue,L=e.randomValue,X=(e.selectAll,e.languagesvalue,e.className),Q=(e.languages,e.isprogram_homework),M=e.showShixun,F=void 0!==M&&M,W=e.showItemType,V=void 0===W||W,S=e.onShixunChange,T=void 0===S?function(){}:S,D=e.onDirectionChange,R=void 0===D?function(){}:D,G=e.onTypeChange,q=void 0===G?function(){}:G,K=e.onDifficultyChange,Y=void 0===K?function(){}:K,U=(e.handlelanguagesChange,e.onKnowledgeChange),J=void 0===U?function(){}:U,H=e.onRandomChange,_=void 0===H?function(){}:H,$=e.showTeachGroup,ee=void 0!==$&&$,ne=e.teachGroupData,te=void 0===ne?[]:ne,ie=e.onTeachGroupChange,re=void 0===ie?function(){}:ie,oe=e.teachGroupValue,ce=(0,o.useState)(0),le=r()(ce,2),ae=le[0],se=le[1],de=(0,o.useRef)(null),Ae=(0,o.useState)(0),ue=r()(Ae,2),ge=ue[0],pe=ue[1],me=(0,o.useRef)(null);(0,o.useEffect)((function(){var e;0!==t.length&&((null==de||null===(e=de.current)||void 0===e?void 0:e.clientHeight)>108?se(1):se(0));0===t.length&&se(0)}),[t]),(0,o.useEffect)((function(){var e;0!==j.length&&((null==me||null===(e=me.current)||void 0===e?void 0:e.clientHeight)>108?pe(1):pe(0));0===j.length&&pe(0)}),[j]);var fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return(0,C.jsx)(c.Z,{className:h,children:e.map((function(e){return(0,C.jsx)(c.Z.Item,{children:(0,C.jsx)("a",{className:"".concat(v," ").concat(N===e.id?f:""),onClick:function(){return R(n,e.id)},children:e.name})},e.id)}))})};return(0,C.jsx)("aside",{className:X?"".concat(a," ").concat(X):a,children:(0,C.jsxs)("div",{className:s,children:[Q&&(0,C.jsx)("div",{className:A,children:"试题库-编程题"}),ee&&(0,C.jsxs)("div",{className:d,children:[(0,C.jsx)("span",{className:u,children:"团队"}),(0,C.jsxs)("div",{className:g,children:[(0,C.jsx)("li",{className:"".concat(p," ").concat(oe?"":m," "),onClick:function(){return re(null)},children:"全部"}),null==te?void 0:te.map((function(e){return(0,C.jsx)("li",{className:"".concat(p," ").concat(oe===e.group_id?m:""," "),onClick:function(){return re(e.group_id)},children:e.name},e.group_id)}))]})]}),(0,C.jsxs)("div",{className:d,children:[(0,C.jsx)("span",{className:u,children:"方向"}),(0,C.jsx)("span",{}),(0,C.jsxs)("div",{className:g,style:{overflow:"hidden",height:1===ae?88:"auto"},children:[(0,C.jsx)("li",{className:"".concat(p," ").concat(b?"":m," "),onClick:function(){return R(null)},children:"全部"}),t.map((function(e){var n;return(0,C.jsx)(o.Fragment,{children:(null===(n=e.sub_disciplines)||void 0===n?void 0:n.length)>0?(0,C.jsx)(l.Z,{placement:"bottomLeft",overlayStyle:{width:600},getPopupContainer:function(e){return e.parentNode},dropdownRender:function(){return fe(e.sub_disciplines,e.id)},children:(0,C.jsx)("li",{className:"".concat(p," ").concat(b===e.id?m:""," "),onClick:function(){return R(e.id)},children:e.name})}):(0,C.jsx)("li",{className:"".concat(p," ").concat(b===e.id?m:""," "),onClick:function(){return R(e.id)},children:e.name})},e.id)}))]}),(0,C.jsx)("div",{className:g,ref:de,style:{height:"auto",position:"fixed",left:0,top:0,width:1024,visibility:"hidden"},children:t.map((function(e){var n;return(0,C.jsx)(o.Fragment,{children:(null===(n=e.sub_disciplines)||void 0===n?void 0:n.length)>0?(0,C.jsx)(l.Z,{placement:"bottomLeft",overlayStyle:{width:600},getPopupContainer:function(e){return e.parentNode},dropdownRender:function(){return fe(e.sub_disciplines,e.id)},children:(0,C.jsx)("li",{className:"".concat(p," ").concat(b===e.id?m:""," "),onClick:function(){return R(e.id)},children:e.name})}):(0,C.jsx)("li",{className:"".concat(p," ").concat(b===e.id?m:""," "),onClick:function(){return R(e.id)},children:e.name})},e.id)}))}),!!ae&&(0,C.jsxs)("div",{className:x,children:[1===ae&&(0,C.jsxs)("span",{onClick:function(){return se(2)},children:["展开",(0,C.jsx)("i",{className:"iconfont icon-xiala"})]}),2===ae&&(0,C.jsxs)("span",{onClick:function(){return se(1)},children:["收起",(0,C.jsx)("i",{style:{transform:"scale(0.5) rotate(180deg) translateY(2px)"},className:"iconfont icon-xiala"})]})]})]}),P&&(0,C.jsxs)("div",{className:d,children:[(0,C.jsx)("span",{className:u,children:"知识点"}),(0,C.jsxs)("div",{className:g,style:{overflow:"hidden",height:1===ge?94:"auto"},children:[(0,C.jsx)("li",{className:"".concat(p," ").concat(-1===B?m:""," "),onClick:function(){return J(-1)},children:"全部"}),j.map((function(e){return(0,C.jsx)("li",{className:"".concat(p," ").concat(B===e.id?m:""," "),onClick:function(){return J(e.id)},children:e.name},e.id)}))]}),(0,C.jsx)("div",{ref:me,className:g,style:{height:"auto",position:"fixed",left:0,top:0,width:1010,visibility:"hidden"},children:j.map((function(e){return(0,C.jsx)("li",{className:"".concat(p," ").concat(B===e.id?m:""," "),onClick:function(){return J(e.id)},children:e.name},e.id)}))}),!!ge&&(0,C.jsxs)("div",{className:x,children:[1===ge&&(0,C.jsxs)("span",{onClick:function(){return pe(2)},children:["展开",(0,C.jsx)("i",{className:"iconfont icon-xiala"})]}),2===ge&&(0,C.jsxs)("span",{onClick:function(){return pe(1)},children:["收起",(0,C.jsx)("i",{style:{transform:"scale(0.5) rotate(180deg) translateY(2px)"},className:"iconfont icon-xiala"})]})]})]}),V&&!Q&&(0,C.jsxs)("div",{className:d,children:[(0,C.jsx)("span",{className:u,children:"题型"}),(0,C.jsx)("li",{className:"".concat(p," ").concat(k?"":m," "),onClick:function(){return q(null)},children:"全部"}),(0,C.jsxs)("div",{className:g,children:[y.map((function(e){return(0,C.jsx)("li",{className:"".concat(p," ").concat(k===e.value?m:""," "),onClick:function(){return q(e.value)},children:e.name},e.name)})),F&&(0,C.jsx)("li",{className:p,onClick:function(){return T()},children:"实训题"},"实训题")]})]}),(0,C.jsxs)("div",{className:d,children:[(0,C.jsx)("span",{className:u,children:"难度"}),(0,C.jsx)("li",{className:"".concat(p," ").concat(z?"":m," "),onClick:function(){return Y(null)},children:"全部"}),(0,C.jsx)("div",{className:g,children:w.map((function(e){return(0,C.jsx)("li",{className:"".concat(p," ").concat(z===e.value?m:""," "),onClick:function(){return Y(e.value)},children:e.name},e.name)}))})]}),E&&(0,C.jsxs)("div",{className:d,children:[(0,C.jsx)("span",{className:u,children:"类型"}),(0,C.jsx)("li",{className:"".concat(p," ").concat(L?"":m," "),onClick:function(){return _(null)},children:"全部"}),(0,C.jsx)("div",{className:g,children:I.map((function(e){return(0,C.jsx)("li",{className:"".concat(p," ").concat(L===e.value?m:""," "),onClick:function(){return _(e.value)},children:e.name},e.name)}))})]})]})})}},19421:function(e,n,t){t.d(n,{rX:function(){return b},pW:function(){return N},gy:function(){return k},xY:function(){return j},O5:function(){return I},tJ:function(){return h},o1:function(){return x},Rd:function(){return w}});var i=t(7557),r=t.n(i),o=t(41498),c=t.n(o),l=t(5296),a=t(43418),s=t(28103),d=t(8591),A=t(93697),u=t(21082),g=t(680),p=t(25510),m=t.p+"static/newqrcode.a8740efb.png",f=t(32637),v=t(37712),h=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!x(e)||!C(n))},x=function(e){return!!(0,A.bg)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},C=function(){var e,n=(0,l.getDvaApp)()._store.getState(),t=n.user;return!(null===(e=t.userInfo)||void 0===e||!e.profile_completed)||(a.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,u.xg)("/account/profile/edit"),y()}}),!1)},y=function(){a.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料?请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},w=function(){a.Z.warning({title:"提示",icon:null,width:400,content:(0,v.jsxs)("div",{style:{textAlign:"center"},children:[(0,v.jsx)("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"},children:"老师您好,您的课堂试用期已结束,相关功能被限制。 如需继续使用,请尽快对接人工支持!"}),(0,v.jsx)("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:f}),(0,v.jsx)("div",{style:{color:"#666666",fontSize:14,marginTop:15},children:"添加客服人员微信,获得更多支持"})]})})},I=function(){var e;return!(null===(e=(0,l.getDvaApp)()._store.getState().user.userInfo)||void 0===e||!e.professional_certification)||(a.Z.confirm({title:"提示",centered:!0,content:(0,v.jsx)("div",{className:"tc",children:"您需要去完成您的职业认证,才能使用此功能"}),okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,u.xg)("/account/certification")}}),!1)},j=function(){return!!(0,A.V9)()||(a.Z.warning({centered:!0,width:530,title:"提示",content:(0,v.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,v.jsx)("p",{children:"扫码加头歌助教,申请操作权限"}),(0,v.jsx)("img",{src:m,width:200})]}),okText:"我知道了",maskClosable:!0}),!1)},b=function(e,n){return!!e||(a.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,v.jsxs)("div",{children:[(0,v.jsx)("p",{children:n||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"}),(0,v.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,v.jsx)("img",{src:"data:image/png;base64,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",width:200}),(0,v.jsxs)("div",{style:{marginLeft:"35px"},children:["群号:","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,u.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},N=function(e){a.Z.info({title:"联系平台运营",icon:null,width:615,centered:!0,content:(0,v.jsxs)("div",{children:[(0,v.jsxs)("div",{children:[(0,v.jsx)("p",{style:{color:"#191919",fontWeight:400,fontSize:14},children:"“保存实验临时数据”功能为付费功能,请联系平台运营进行开通。"}),(0,v.jsx)(s.Z,{}),(0,v.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,v.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"1"})," 因平台的实验数据储存容量和成本消耗较大,实践项目默认保存实验环境中临时数据 ",(0,v.jsx)("a",{children:e}),"天。"]}),(0,v.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,v.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"2"}),"若您需要个性化的数据保存周期服务,我们可以提供相关技术支持,并根据您的需求收取定制费用。"]})]}),(0,v.jsx)("div",{style:{textAlign:"center",marginTop:30},children:(0,v.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:p,alt:"二维码",width:160})})]})})},k=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(0,l.getDvaApp)()._store.getState(),i=t.shixunsDetail.detail;if(2===(null==i?void 0:i.public)||1===(null==i?void 0:i.public)||3===(null==i?void 0:i.shixun_status)){var o="";return 2===(null==i?void 0:i.public)&&(o="已公开"),1===(null==i?void 0:i.public)&&(o="待审核"),3===(null==i?void 0:i.shixun_status)&&(o="已关闭"),a.Z.info({centered:!0,icon:(0,v.jsx)(g.Z,{style:{color:"#faad14"}}),width:460,title:"提示",content:(0,v.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,v.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"},children:[(0,v.jsxs)("span",{children:["该实践项目的状态为",o,",",n,"。"]}),(0,v.jsx)("p",{children:"如有需要,请联系平台管理员进行技术支持。"})]}),(0,v.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:p,alt:"二维码",width:160})]}),okText:"我知道了"}),!0}return 2===(null==i?void 0:i.shixun_status)&&(a.Z.confirm({centered:!0,icon:(0,v.jsx)(g.Z,{}),title:"提示",content:(0,v.jsxs)("div",{children:[(0,v.jsxs)("span",{children:["该实践项目已发布,",n,"。"]}),(0,v.jsx)("br",{}),(0,v.jsx)("span",{children:"如有需要,您可以撤销发布后,再进行操作。"})]}),okText:"撤销发布",cancelText:"取消",onOk:function(){var n;a.Z.confirm({width:440,centered:!0,icon:(0,v.jsx)(g.Z,{style:{color:"#faad14"}}),title:"提示",content:"撤销发布后,学员将无法进行练习。是否确认撤销发布?",okText:"确定撤销发布",cancelText:"取消",onOk:(n=c()(r()().mark((function n(){return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e({type:"shixunsDetail/cancelRelease",payload:{id:null==i?void 0:i.identifier}});case 2:401!==n.sent.status&&(d.ZP.success("撤销发布成功。实训回到未发布的状态。"),e({type:"shixunsDetail/getShixunsDetail",payload:{id:null==i?void 0:i.identifier}}),e({type:"practiceSetting/getCommonData",payload:{id:null==i?void 0:i.identifier}}));case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})}}),!0)}},77578:function(e,n,t){t.d(n,{Z:function(){return i}});const i=e=>e?"function"==typeof e?e():e:null},39722:function(e,n,t){t.d(n,{t5:function(){return A}});var i=t(92310),r=t.n(i),o=t(55477),c=t(59301),l=t(36355),a=t(77578),s=t(17356),d=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{hashId:n,prefixCls:t,className:i,style:l,placement:s="top",title:d,content:A,children:u}=e;return c.createElement("div",{className:r()(n,t,`${t}-pure`,`${t}-placement-${s}`,i),style:l},c.createElement("div",{className:`${t}-arrow`}),c.createElement(o.G,Object.assign({},e,{className:n,prefixCls:t}),u||((e,n,t)=>{if(n||t)return c.createElement(c.Fragment,null,n&&c.createElement("div",{className:`${e}-title`},(0,a.Z)(n)),c.createElement("div",{className:`${e}-inner-content`},(0,a.Z)(t)))})(t,d,A)))};n.ZP=e=>{const{prefixCls:n}=e,t=d(e,["prefixCls"]),{getPrefixCls:i}=c.useContext(l.E_),r=i("popover",n),[o,a]=(0,s.Z)(r);return o(c.createElement(A,Object.assign({},t,{prefixCls:r,hashId:a})))}},60324:function(e,n,t){var i=t(92310),r=t.n(i),o=t(59301),c=t(77578),l=t(62892),a=t(36355),s=t(6848),d=t(39722),A=t(17356),u=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{let{title:n,content:t,prefixCls:i}=e;return o.createElement(o.Fragment,null,n&&o.createElement("div",{className:`${i}-title`},(0,c.Z)(n)),o.createElement("div",{className:`${i}-inner-content`},(0,c.Z)(t)))},p=o.forwardRef(((e,n)=>{const{prefixCls:t,title:i,content:c,overlayClassName:d,placement:p="top",trigger:m="hover",mouseEnterDelay:f=.1,mouseLeaveDelay:v=.1,overlayStyle:h={}}=e,x=u(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:C}=o.useContext(a.E_),y=C("popover",t),[w,I]=(0,A.Z)(y),j=C(),b=r()(d,I);return w(o.createElement(s.Z,Object.assign({placement:p,trigger:m,mouseEnterDelay:f,mouseLeaveDelay:v,overlayStyle:h},x,{prefixCls:y,overlayClassName:b,ref:n,overlay:i||c?o.createElement(g,{prefixCls:y,title:i,content:c}):null,transitionName:(0,l.m)(j,"zoom-big",x.transitionName),"data-popover-inject":!0})))}));p._InternalPanelDoNotUseOrYouWillBeFired=d.ZP,n.Z=p},17356:function(e,n,t){var i=t(17313),r=t(29878),o=t(19447),c=t(33166),l=t(83116),a=t(37613);const s=e=>{const{componentCls:n,popoverColor:t,minWidth:r,fontWeightStrong:c,popoverPadding:l,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:d,zIndexPopup:A,marginXS:u,colorBgElevated:g,popoverBg:p}=e;return[{[n]:Object.assign(Object.assign({},(0,i.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:A,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":g,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${n}-content`]:{position:"relative"},[`${n}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:d,boxShadow:a,padding:l},[`${n}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:c},[`${n}-inner-content`]:{color:t}})},(0,o.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${n}-content`]:{display:"inline-block"}}}]},d=e=>{const{componentCls:n}=e;return{[n]:c.i.map((t=>{const i=e[`${t}6`];return{[`&${n}-${t}`]:{"--antd-arrow-background-color":i,[`${n}-inner`]:{backgroundColor:i},[`${n}-arrow`]:{background:"transparent"}}}}))}},A=e=>{const{componentCls:n,lineWidth:t,lineType:i,colorSplit:r,paddingSM:o,controlHeight:c,fontSize:l,lineHeight:a,padding:s}=e,d=c-Math.round(l*a);return{[n]:{[`${n}-inner`]:{padding:0},[`${n}-title`]:{margin:0,padding:`${d/2}px ${s}px ${d/2-t}px`,borderBottom:`${t}px ${i} ${r}`},[`${n}-inner-content`]:{padding:`${o}px ${s}px`}}}};n.Z=(0,l.Z)("Popover",(e=>{const{colorBgElevated:n,colorText:t,wireframe:i}=e,o=(0,a.TS)(e,{popoverPadding:12,popoverBg:n,popoverColor:t});return[s(o),d(o),i&&A(o),(0,r._y)(o,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},32637:function(e,n,t){e.exports=t.p+"static/AssistantCode3.a8740efb.jpeg"}}]); \ No newline at end of file diff --git a/77372.aea17359.async.js b/77372.aea17359.async.js deleted file mode 100644 index c229f7025f..0000000000 --- a/77372.aea17359.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[77372],{86468:function(e,n,t){t.d(n,{Z:function(){return g}});var r=t(82242),i=t.n(r),a=t(7557),s=t.n(a),o=t(41498),l=t.n(o),d=t(79800),c=t.n(d),u=t(39647),v=t.n(u),f=t(3113),m=t(59301),p=t(37712),h=["children"],g=function(e){var n=e.children,t=v()(e,h),r=(0,m.useState)(!1),a=c()(r,2),o=a[0],d=a[1];return(0,p.jsx)(f.ZP,i()(i()({},t),{},{loading:o,onClick:function(){var e=l()(s()().mark((function e(n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),e.next=4,t.onClick(n);case 4:d(!1),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),d(!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(n){return e.apply(this,arguments)}}(),children:n}))}},21515:function(e,n,t){t.d(n,{Z:function(){return H},P:function(){return M}});var r=t(37205),i=t.n(r),a=t(39647),s=t.n(a),o=t(7557),l=t.n(o),d=t(82242),c=t.n(d),u=t(41498),v=t.n(u),f=t(79800),m=t.n(f),p=t(59301),h=t(78241),g=t(43418),x=t(5112),j=t(92832),A=t(61998),w="brief___LOzpE",y="contentTitle___xkdcN",b="content___Vtri0",P="antdTable___s8T2N",C="tableCell___kN9Fw",B="antdModal___WVBk3",z="orangeColor___ryB2u",N=t(99681),O=t(37712),S=["isImportMultipleCourse"],L=function(e){var n=e.studentNames,t=e.total;return t>3?(0,O.jsxs)(O.Fragment,{children:["课堂内有",(0,O.jsx)("span",{className:z,children:null==n?void 0:n.join("、")}),"等",(0,O.jsx)("span",{className:z,children:t}),"名学生"]}):(0,O.jsxs)(O.Fragment,{children:["课堂内有",(0,O.jsx)("span",{className:z,children:null==n?void 0:n.join("、")}),["","一","两","三"][t],"名学生"]})},Z=function(e){var n=e.onCancel,t=e.onOk,r=e.visible,i=(e.inPaper,e.renderData),a=(e.type,e.isMultipleCourse),s=void 0!==a&&a,o=h.Z.useForm(),d=m()(o,1)[0],u=(0,p.useState)(1),f=m()(u,2),j=f[0],A=f[1],w=(0,p.useState)(!1),y=m()(w,2),P=y[0],C=y[1],N=(0,p.useMemo)((function(){return 1===(null==i?void 0:i.total_num)&&1===(null==i?void 0:i.can_copy_num)}),[i]),S=(0,p.useMemo)((function(){var e;return null==i||null===(e=i.course_data_list)||void 0===e?void 0:e.filter((function(e){return e.is_show}))}),[i]);return(0,O.jsx)(O.Fragment,{children:N?(0,O.jsxs)(g.Z,{centered:!0,closable:!0,open:r,destroyOnClose:!0,title:"提示",className:B,width:682,confirmLoading:P,onCancel:n,onOk:v()(l()().mark((function e(){var n,r,a;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),n=j,s&&(a=c()({},d.getFieldsValue()),n=null==i||null===(r=i.course_data_list)||void 0===r?void 0:r.map((function(e){return void 0!==a[e.id]?c()(c()({},e),{},{is_copy:a[e.id]}):e}))),e.next=5,t(n);case 5:C(!1);case 6:case"end":return e.stop()}}),e)}))),children:[(0,O.jsx)("div",{className:b,style:{marginBottom:20},children:s?"检测到以下课堂已在教学课堂中使用,请问是否复制成新的实训发送至教学课堂中?":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(L,{studentNames:null==i?void 0:i.student_names,total:null==i?void 0:i.student_count}),"学习过该实践项目。该项目支持复制,请选择是否将该项目复制为新项目发送至课堂中?"]})}),s?(0,O.jsx)(h.Z,{form:d,preserve:!1,children:null==S?void 0:S.map((function(e){return(0,O.jsxs)(p.Fragment,{children:[(0,O.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,O.jsx)(h.Z.Item,{name:e.id,initialValue:1,children:(0,O.jsxs)(x.ZP.Group,{className:b,children:[(0,O.jsx)(x.ZP,{value:1,style:{color:"#464f66"},children:"复制实训"}),(0,O.jsx)(x.ZP,{value:0,style:{color:"#464f66"},children:"不复制实训"})]})})]},e.id)}))}):(0,O.jsxs)(x.ZP.Group,{value:j,onChange:function(e){return A(e.target.value)},className:b,style:{marginBottom:30},children:[(0,O.jsx)(x.ZP,{value:1,style:{color:"#464f66"},children:"复制"}),(0,O.jsx)(x.ZP,{value:0,style:{color:"#464f66"},children:"不复制"})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("div",{className:b,style:{marginBottom:10},children:"* 说明:"}),(0,O.jsx)("div",{className:b,style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,O.jsx)("div",{className:"".concat(b," ").concat(z),children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]})]}):(0,O.jsx)(g.Z,{centered:!0,closable:!0,destroyOnClose:!0,open:r,confirmLoading:P,title:"提示",width:682,onCancel:n,onOk:v()(l()().mark((function e(){var n,r,a;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),n=0,s&&(a=c()({},d.getFieldsValue()),n=null==i||null===(r=i.course_data_list)||void 0===r?void 0:r.map((function(e){return void 0!==a[e.id]?c()(c()({},e),{},{is_use:a[e.id]}):e}))),e.next=5,t(n);case 5:C(!1);case 6:case"end":return e.stop()}}),e)}))),children:(0,O.jsxs)("div",{className:b,children:[(0,O.jsx)(L,{studentNames:null==i?void 0:i.student_names,total:null==i?void 0:i.student_count}),"学习过该实践项目。",s?(0,O.jsxs)(h.Z,{form:d,preserve:!1,children:[(0,O.jsx)("h3",{children:"当前实训不可复制,已经检测到以下课堂存在该实训,同一实训在课堂中重复使用时,会导致成绩互相影响,请确认是否继续使用"}),null==S?void 0:S.map((function(e){return(0,O.jsxs)(p.Fragment,{children:[(0,O.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,O.jsx)(h.Z.Item,{name:e.id,initialValue:1,children:(0,O.jsxs)(x.ZP.Group,{className:b,children:[(0,O.jsx)(x.ZP,{value:1,style:{color:"#464f66"},children:"继续使用"}),(0,O.jsx)(x.ZP,{value:0,style:{color:"#464f66"},children:"不使用"})]})})]},e.id)}))]}):(0,O.jsxs)("div",{children:["该项目不支持复制,若确认继续发送,",(0,O.jsx)("span",{className:z,children:"当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"}),"(如果不想清空学生之前的挑战记录,建议参照该实践项目的内容自行创建一个新的项目,或者尝试联系项目创建人开放本项目的复制权限)。"]})]})})})},M=function(){var e=(0,p.useState)(!1),n=m()(e,2),t=n[0],r=n[1],i=(0,p.useState)(),a=m()(i,2),o=a[0],d=a[1],c=function(){var e=v()(l()().mark((function e(n){var t,i,a,o,c;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.isImportMultipleCourse,i=void 0!==t&&t,a=s()(n,S),console.log(n),e.t0=null==n?void 0:n.result,e.t0){e.next=7;break}return e.next=6,(0,N.Tr)(a);case 6:e.t0=e.sent;case 7:if(!("status"in(o=e.t0))){e.next=10;break}return e.abrupt("return",!1);case 10:if(!i){e.next=17;break}if(!(null==o||null===(c=o.course_data_list)||void 0===c?void 0:c.some((function(e){return e.is_show})))){e.next=16;break}return d(o),r(!0),e.abrupt("return",!0);case 16:return e.abrupt("return",o.course_data_list||[]);case 17:if(0!==o.student_count){e.next=19;break}return e.abrupt("return",!1);case 19:return d(o),r(!0),e.abrupt("return",!0);case 22:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return[t,function(){return r(!1)},o,c]},k=function(e){var n=h.Z.useForm(),t=m()(n,1)[0],r=(0,p.useState)(!1),a=m()(r,2),s=a[0],o=a[1],d=e.onCancel,c=e.onOk,u=e.visible,f=e.inPaper,b=void 0!==f&&f,N=e.renderData,S=e.type,Z=e.isMultipleCourse,M=void 0!==Z&&Z,k=e.position,H=(0,p.useMemo)((function(){return b?[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:C,render:function(e,n){return(0,O.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,n){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===S?n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],initialValue:1,children:(0,O.jsxs)(x.ZP.Group,{children:[(0,O.jsx)(x.ZP,{value:1,children:"是"}),(0,O.jsx)(x.ZP,{value:0,children:"否"})]})}),(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===S?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],hidden:!0,initialValue:1,children:(0,O.jsx)(j.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:C,render:function(e,n){return(0,O.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,n){return(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===S?n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],initialValue:1,children:(0,O.jsxs)(x.ZP.Group,{children:[(0,O.jsx)(x.ZP,{value:1,children:"是"}),(0,O.jsx)(x.ZP,{value:0,children:"否"})]})})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,n){return(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===S?n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],initialValue:1,children:(0,O.jsxs)(x.ZP.Group,{children:[(0,O.jsx)(x.ZP,{value:1,children:"是"}),(0,O.jsx)(x.ZP,{value:0,children:"否"})]})})}}]}),[b]),V=(0,p.useMemo)((function(){return b?[{title:"实践项目名称",dataIndex:"name",width:424,className:C,align:"center",ellipsis:!0,render:function(e,n){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e}),(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===S?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],hidden:!0,initialValue:0,children:(0,O.jsx)(j.Z,{type:"hidden"})}),(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===S?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],hidden:!0,initialValue:1,children:(0,O.jsx)(j.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,className:C,ellipsis:!0,align:"center",render:function(e,n){return(0,O.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,n){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===S?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],initialValue:0,children:(0,O.jsxs)(x.ZP.Group,{children:[(0,O.jsx)(x.ZP,{value:1,children:"是"}),(0,O.jsx)(x.ZP,{value:0,children:"否"})]})}),(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===S?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],hidden:!0,initialValue:0,children:(0,O.jsx)(j.Z,{type:"hidden"})})]})}}]}),[b]);if(M){var D={title:"课堂名称",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:C,render:function(e,n){return(0,O.jsx)("a",{href:"/classrooms/".concat(n.course_id),children:e})}};H=[D].concat(i()(H)),V=[D].concat(i()(V))}var T=(0,p.useMemo)((function(){return function(e){var n=e.used,t=e.copy,r=e.canNotCopy,i=e.studentNames,a=e.studentCount,s=e.inPaper,o=e.is_random,l=void 0!==o&&o,d=e.position,c=(void 0===d?"":d)||(s?"试卷":"课程");return(0,O.jsxs)("span",{children:[(0,O.jsx)(L,{studentNames:i,total:a}),"学习过",c,"中的",(0,O.jsx)("span",{className:z,children:n}),"个项目,",t>0&&r>0?(0,O.jsxs)(O.Fragment,{children:["其中",(0,O.jsx)("span",{className:z,children:t}),"个项目支持复制,",(0,O.jsx)("span",{className:z,children:r}),"个项目不支持复制"]}):t>0&&0===r?(0,O.jsxs)(O.Fragment,{children:["其中",(0,O.jsx)("span",{className:z,children:t}),"个项目支持复制"]}):0===t&&r>0?(0,O.jsxs)(O.Fragment,{children:["其中",(0,O.jsx)("span",{className:z,children:r}),"个项目不支持复制"]}):void 0,"。请选择",l?"":"是否继续使用和","是否复制为新项目发送至课堂中?"]})}({used:null==N?void 0:N.repeat_shixun_num,copy:null==N?void 0:N.can_copy_num,canNotCopy:null==N?void 0:N.no_copy_num,studentNames:null==N?void 0:N.student_names,studentCount:null==N?void 0:N.student_count,is_random:null==N?void 0:N.is_random,inPaper:b,position:k})}),[N,b,k]);return(0,O.jsx)(g.Z,{title:"提示",centered:!0,open:u,confirmLoading:s,onOk:v()(l()().mark((function e(){var n,r;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o(!0),n=t.getFieldsValue(),r=Object.keys(n).map((function(e){return{id:parseInt(e.split("_")[0]),course_id:parseInt(e.split("_")[1]),is_use:n[e].is_use,is_copy:n[e].is_copy}})),e.next=5,c(r);case 5:o(!1);case 6:case"end":return e.stop()}}),e)}))),onCancel:d,width:880,okText:"确认",className:B,destroyOnClose:!0,children:(0,O.jsxs)(h.Z,{form:t,preserve:!1,children:[(0,O.jsx)("div",{className:w,children:T}),(0,O.jsxs)("div",{style:{marginBottom:30},children:[(0,O.jsx)("div",{style:{marginBottom:20},children:"* 说明"}),(0,O.jsx)("div",{style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,O.jsx)("div",{className:z,children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]}),(null==N?void 0:N.can_copy_num)>0&&(0,O.jsxs)("div",{children:[(0,O.jsx)("div",{className:y,children:"支持复制的项目"}),(0,O.jsx)(A.Z,{columns:H,className:P,dataSource:null==N?void 0:N.can_copy_list,rowKey:"subject"===S?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})]}),(null==N?void 0:N.no_copy_num)>0&&(0,O.jsxs)("div",{children:[(0,O.jsx)("div",{className:y,children:"不支持复制的项目"}),(0,O.jsx)(A.Z,{columns:V,className:P,dataSource:null==N?void 0:N.no_copy_list,rowKey:"subject"===S?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})]}),(null==N?void 0:N.no_use_list.length)>0&&(null==N?void 0:N.no_use_list.map((function(e){return(0,O.jsxs)("div",{children:[(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===S?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],hidden:!0,initialValue:0,children:(0,O.jsx)(j.Z,{type:"hidden"})}),(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===S?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],hidden:!0,initialValue:1,children:(0,O.jsx)(j.Z,{type:"hidden"})})]},"subject"===S?e.stage_shixun_id:e.shixun_course_id||e.id)})))]})})},H=function(e){return"multiple"===e.modalType?(0,O.jsx)(k,c()({},e)):(0,O.jsx)(Z,c()({},e))}},30116:function(e,n,t){t.d(n,{Z:function(){return M}});var r=t(37205),i=t.n(r),a=t(7557),s=t.n(a),o=t(41498),l=t.n(o),d=t(79800),c=t.n(d),u=t(39647),v=t.n(u),f=t(59301),m=t(5296),p=t(92832),h=t(8591),g=t(43418),x=t(94001),j=t(96865),A=t(61998),w=t(3113),y=t(31);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var b={flex_box_center:"flex_box_center___LsrKL",flex_space_between:"flex_space_between___sZBht",flex_box_vertical_center:"flex_box_vertical_center___QNt7D",flex_box_center_end:"flex_box_center_end___S9zs3",flex_box_column:"flex_box_column___Y5tcm",title:"title___t4qlt",tip:"tip___MtKbx",radioWrap:"radioWrap___fp3kY",row:"row___IoDN5",radio:"radio___vuEDI",colorFF0000:"colorFF0000____5DYm",pagination:"pagination___bvqCI",modalColumn:"modalColumn___szBPb",modalRow:"modalRow___mtd9M",sup:"sup___JDuYL",search:"search___wNY_F",bottom:"bottom___HvFhF",yes:"yes___xmznh",no:"no___vEJlu"},P=t(21082),C="sendToClass___le_BX",B=t(37712),z=function(e){var n=e.createState,t=e.refreshLoading,r=e.onRefresh,i=void 0===r?function(){}:r,a=e.onCreate,s=void 0===a?function(){}:a;return(0,B.jsx)("div",{className:C,children:n?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("img",{src:"data:image/png;base64,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",alt:"空"}),(0,B.jsx)("div",{children:"您还没有创建教学课堂,无法将试卷发送至教学课堂。"}),(0,B.jsx)(w.ZP,{onClick:s,type:"primary",ghost:!0,children:"立即创建"})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("img",{src:"data:image/png;base64,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",alt:"空"}),(0,B.jsx)("div",{children:"已创建教学课堂?请刷新列表"}),(0,B.jsx)(w.ZP,{loading:t,onClick:i,type:"primary",ghost:!0,children:"立即刷新"})]})})},N=t(21515),O=t(86468),S=t(89392),L=["paperlibrary","globalSetting","loading","dispatch"],Z=p.Z.Search,M=(0,m.connect)((function(e){var n=e.paperlibrary,t=e.loading;return{paperlibrary:n,globalSetting:e.globalSetting,loading:t.effects}}))((function(e){var n,t=e.paperlibrary,r=(e.globalSetting,e.loading),a=e.dispatch,o=(v()(e,L),(0,f.useState)("")),d=c()(o,2),u=d[0],m=d[1],p=(0,f.useState)([]),C=c()(p,2),M=C[0],k=C[1],H=(0,f.useState)([]),V=c()(H,2),D=V[0],T=V[1],I=(0,f.useState)(!1),E=c()(I,2),F=E[0],q=E[1],Q=(0,f.useState)(!0),X=c()(Q,2),K=X[0],J=X[1],G=(0,f.useState)(!0),Y=c()(G,2),W=Y[0],R=Y[1],U=(0,f.useState)(!0),_=c()(U,2),$=_[0],ee=_[1],ne=(0,f.useState)(!1),te=c()(ne,2),re=te[0],ie=te[1],ae=(0,f.useState)(!1),se=c()(ae,2),oe=se[0],le=se[1],de=null===(n=t.actionTabs)||void 0===n||null===(n=n.params)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.is_random,ce=(0,f.useState)(!1),ue=c()(ce,2),ve=(ue[0],ue[1]);(0,f.useEffect)((function(){me()}),[]);var fe=function(){T([]),m(""),me(!0),a({type:"paperlibrary/setActionTabs",payload:{}})},me=function(){var e=l()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R(!0),e.next=3,a({type:"paperlibrary/getCourseList",payload:{search:n?"":u}});case 3:(t=e.sent)&&(k((null==t?void 0:t.courses)||[]),J(!0),ie(!1)),R(!1),ee(!1);case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),pe=function(e){var n=parseInt(e);return(0,S.isNaN)(n)?"":n},he=function(){var e=l()(s()().mark((function e(){var n,r,i,o,d,c;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(D.length){e.next=4;break}return h.ZP.info("您需要选择课堂,才能发送"),q(!0),e.abrupt("return");case 4:return e.next=6,a({type:"paperlibrary/postExistCourse",payload:{course_id:de?null==D?void 0:D[0]:D,examination_bank_ids:(null===(n=t.actionTabs)||void 0===n||null===(n=n.params)||void 0===n?void 0:n.examination_bank_ids)||(null===(r=t.actionTabs)||void 0===r||null===(r=r.params)||void 0===r?void 0:r.id)}});case 6:if(o=e.sent,d=function(){var e=l()(s()().mark((function e(){var n,r,i,a;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(!0),e.next=3,Pe({id:null===(n=t.actionTabs)||void 0===n||null===(n=n.params)||void 0===n?void 0:n.id,course_id:de?null==D?void 0:D[0]:D,type:null!==(r=t.actionTabs)&&void 0!==r&&null!==(r=r.params)&&void 0!==r&&r.isBatch?"batch_examination_bank":"examination_bank",examination_bank_ids:null===(i=t.actionTabs)||void 0===i||null===(i=i.params)||void 0===i?void 0:i.examination_bank_ids});case 3:if(a=e.sent,le(!1),a){e.next=9;break}return ve(!0),e.next=9,ge([]);case 9:return e.next=11,new Promise((function(e){return setTimeout((function(){return e()}),1e3)}));case 11:ve(!0);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!(0==o.status&&(null===(i=o.data)||void 0===i?void 0:i.count)>0)){e.next=13;break}return g.Z.confirm({icon:null,title:"提示",centered:!0,width:596,content:(0,B.jsxs)("div",{style:{userSelect:"none"},children:["当前教学课堂中已存在试卷",null===(c=o.data)||void 0===c||null===(c=c.list)||void 0===c?void 0:c.map((function(e,n){var t;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("span",{style:{color:"#FA6400"},children:["《",null==e?void 0:e.name,"》"]}),n!==(null===(t=o.data)||void 0===t?void 0:t.count)-1&&(0,B.jsx)("span",{children:"、"})]})})),",请确定是否需要重复发送?"]}),onOk:function(){var e=l()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),e.next=12,new Promise((function(e){return setTimeout((function(){return e()}),1e3)}));case 12:return e.abrupt("return");case 13:return e.next=15,d();case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ge=function(){var e=l()(s()().mark((function e(n){var r,i,o,d,c,u,v;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(de){e.next=7;break}return e.next=3,a({type:null!==(r=t.actionTabs)&&void 0!==r&&null!==(r=r.params)&&void 0!==r&&r.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:de?null==D?void 0:D[0]:D,id:null===(i=t.actionTabs)||void 0===i||null===(i=i.params)||void 0===i?void 0:i.id,examination_bank_ids:null===(o=t.actionTabs)||void 0===o||null===(o=o.params)||void 0===o?void 0:o.examination_bank_ids,shixuns_info:n.map((function(e){return{shixun_id:e.id,is_copy:e.is_copy,is_use:e.is_use,course_id:e.course_id}}))}});case 3:return(d=e.sent)&&0===d.status&&(a({type:"paperlibrary/setActionTabs",payload:{}}),T([]),g.Z.confirm({title:"提示",okText:"立即前往",cancelText:"稍后再说",width:480,centered:!0,closable:!0,onOk:function(){window.location.href="".concat(d.data[0].first_category_url)},content:(0,B.jsx)("p",{children:"试卷发送成功!目前处于未发布状态,是否前往教学课堂进行发布?"})}),h.ZP.success("发送成功")),ye(),e.abrupt("return");case 7:c=M.find((function(e){return e.course_id===(null==D?void 0:D[0])})),u=1,v=g.Z.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:"配置出卷数量",content:(0,B.jsxs)("div",{className:b.modalColumn,children:[(0,B.jsxs)("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10",children:[(0,B.jsx)("img",{style:{marginRight:5},src:y.Z}),"随机组卷类型的试卷按照出卷数量对指定课堂生成不重复的试卷。"]}),(0,B.jsxs)("div",{style:{paddingLeft:18},children:["课堂名称: ",null==c?void 0:c.course_name]}),(0,B.jsxs)("div",{style:{paddingLeft:9},className:b.modalRow,children:[(0,B.jsx)("sup",{className:b.sup,children:"*"}),(0,B.jsx)("span",{style:{flexShrink:0},children:"随机出卷数量:"}),(0,B.jsx)(x.Z,{parser:pe,style:{width:120},placeholder:"请输入试卷数量",min:1,defaultValue:u,onChange:function(e){u=e;var n=document.getElementById("model_error");n.style.display=u<1||u>50?"block":"none"}})]}),(0,B.jsx)("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red",children:"请输入1-50之间的整数"})]}),okText:"确认",cancelText:"取消",onCancel:fe,onOk:function(){var e=l()(s()().mark((function e(){var r,i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(u<1||u>50)){e.next=4;break}return document.getElementById("model_error").style.display="block",e.abrupt("return",Promise.reject());case 4:return v.update({cancelButtonProps:{disabled:!0}}),e.next=7,a({type:"paperlibrary/sendToClass",payload:{course_id:null==D?void 0:D[0],id:null===(r=t.actionTabs)||void 0===r||null===(r=r.params)||void 0===r?void 0:r.id,num:u,shixuns_info:n.map((function(e){return{shixun_id:e.id,is_copy:e.is_copy,is_use:e.is_use}}))}});case 7:i=e.sent,v.update({cancelButtonProps:{disabled:!1}}),i&&0===i.status&&(g.Z.destroyAll(),g.Z.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"提示",content:(0,B.jsx)("div",{className:b.modalColumn,children:(0,B.jsxs)("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10",children:[(0,B.jsx)("img",{style:{marginRight:5},src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzQgMGE2Ljc0IDYuNzQgMCAxIDAgMCAxMy40OEE2Ljc0IDYuNzQgMCAwIDAgNi43NCAwWm0zLjYzNiA1LjAxN0w1LjgxNyA5LjU3NmMtLjA5LjA5LS4yNDYuMDgtLjM0OC0uMDIzbC0uMzA2LS4zMDVMMy4xMiA3LjIwNGEuMjYzLjI2MyAwIDAgMSAwLS4zNzJsLjU1Ny0uNTU3YS4yNjIuMjYyIDAgMCAxIC4zNzIgMGwxLjYwNSAxLjYwNiAzLjc5NC0zLjc5M2MuMDktLjA5LjI0Ni0uMDguMzQ4LjAyMmwuNTU3LjU1N2MuMTAzLjEwMy4xMTMuMjU5LjAyMy4zNDlaIiBmaWxsPSIjNjhDNzlGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),"生成试卷成功,前往课堂去查看吧!"]})}),okText:"前往课堂",cancelText:"返回试卷库",onCancel:function(){ye(),fe()},onOk:function(){ye(),fe(),setTimeout((function(){var e,n=null==i||null===(e=i.first_category_url)||void 0===e||null===(e=e.split("/"))||void 0===e?void 0:e[2];(0,P.xg)("/classrooms/".concat(n,"/exercise"))}),1e3)}}));case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),xe=function(){var e=l()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ie(!0),e.next=3,me();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),je=(0,N.P)(),Ae=c()(je,4),we=Ae[0],ye=Ae[1],be=Ae[2],Pe=Ae[3];return(0,B.jsxs)("div",{children:[(0,B.jsx)(g.Z,{centered:!0,keyboard:!1,closable:!1,open:"Paperlibrary-SendToClass"===t.actionTabs.key,title:"发送至课堂",maskClosable:!1,okText:"确定",cancelText:"取消",confirmLoading:r["paperlibrary/sendToClass"]||oe||!!r["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:he,destroyOnClose:!0,onCancel:fe,children:(0,B.jsxs)("div",{className:b.wrap,children:[(0,B.jsx)("div",{className:"mb10",children:(0,B.jsx)(Z,{placeholder:"输入课堂名称的关键字进行搜索",value:u,className:b.search,onChange:function(e){m(e.target.value),e.target.value||me(!0)},onSearch:function(e){m(e),me(),T([])}})}),(0,B.jsx)(j.Z,{loading:$,children:M.length?(0,B.jsx)("div",{className:b.radioWrap,children:(0,B.jsx)(A.Z,{bordered:!1,scroll:(null==M?void 0:M.length)<=7?{}:{y:350},loading:W,rowKey:"course_id",pagination:!1,dataSource:M,columns:[{title:"课堂名称",dataIndex:"course_name",ellipsis:!0},{title:"分班数量",dataIndex:"course_group_count",width:90,ellipsis:!0},{title:"学员人数",dataIndex:"course_member_count",width:90,ellipsis:!0}],onRow:function(e){return{onClick:function(n){if(de)T([null==e?void 0:e.course_id]);else{if(!de&&!D.includes(e.course_id)&&D.length>0)return;null!=D&&D.includes(null==e?void 0:e.course_id)?T(null==D?void 0:D.filter((function(n){return n!==(null==e?void 0:e.course_id)}))):T([].concat(i()(D),[null==e?void 0:e.course_id]))}}}},rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:D,onChange:function(e){T(e),q(!1)}}})}):!u&&!W&&(0,B.jsx)(z,{createState:K,refreshLoading:re,onRefresh:xe,onCreate:function(){J(!1),(0,P.xg)("/classrooms/new")}})}),F&&(0,B.jsx)("div",{className:b.colorFF0000,children:"请先选择课堂"}),(0,B.jsxs)("div",{className:b.bottom,style:{display:"flex",alignItems:"center"},children:[(0,B.jsx)("div",{style:{flex:1},children:(0,B.jsxs)("div",{className:b.title,children:[(0,B.jsx)("img",{src:y.Z,style:{objectFit:"contain"}}),"选择的试卷将会发送到指定课堂并为班级学员生成考试试卷"]})}),(0,B.jsxs)("div",{children:[(0,B.jsx)(w.ZP,{onClick:fe,className:b.no,style:{marginRight:20},children:"取消"}),(0,B.jsx)(O.Z,{onClick:he,className:b.yes,children:"确认"})]})]})]})}),(0,B.jsx)(N.Z,{visible:we,inPaper:!0,onOk:ge,onCancel:ye,renderData:be,modalType:"multiple",type:"examination_bank",isMultipleCourse:!0})]})}))},31:function(e,n,t){t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},28103:function(e,n,t){t.d(n,{Z:function(){return f}});var r=t(92310),i=t.n(r),a=t(59301),s=t(36355),o=t(17313),l=t(83116),d=t(37613);const c=e=>{const{componentCls:n,sizePaddingEdgeHorizontal:t,colorSplit:r,lineWidth:i,textPaddingInline:a,orientationMargin:s,verticalMarginInline:l}=e;return{[n]:Object.assign(Object.assign({},(0,o.Wf)(e)),{borderBlockStart:`${i}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${n}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${n}-with-text-left`]:{"&::before":{width:100*s+"%"},"&::after":{width:100-100*s+"%"}},[`&-horizontal${n}-with-text-right`]:{"&::before":{width:100-100*s+"%"},"&::after":{width:100*s+"%"}},[`${n}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${n}-with-text${n}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${n}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${n}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${n}-with-text-left${n}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${n}-inner-text`]:{paddingInlineStart:t}},[`&-horizontal${n}-with-text-right${n}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${n}-inner-text`]:{paddingInlineEnd:t}}})}};var u=(0,l.Z)("Divider",(e=>{const n=(0,d.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[c(n)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),v=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:t,divider:r}=a.useContext(s.E_),{prefixCls:o,type:l="horizontal",orientation:d="center",orientationMargin:c,className:f,rootClassName:m,children:p,dashed:h,plain:g,style:x}=e,j=v(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),A=n("divider",o),[w,y]=u(A),b=d.length>0?`-${d}`:d,P=!!p,C="left"===d&&null!=c,B="right"===d&&null!=c,z=i()(A,null==r?void 0:r.className,y,`${A}-${l}`,{[`${A}-with-text`]:P,[`${A}-with-text${b}`]:P,[`${A}-dashed`]:!!h,[`${A}-plain`]:!!g,[`${A}-rtl`]:"rtl"===t,[`${A}-no-default-orientation-margin-left`]:C,[`${A}-no-default-orientation-margin-right`]:B},f,m),N=a.useMemo((()=>"number"==typeof c?c:/^\d+$/.test(c)?Number(c):c),[c]),O=Object.assign(Object.assign({},C&&{marginLeft:N}),B&&{marginRight:N});return w(a.createElement("div",Object.assign({className:z,style:Object.assign(Object.assign({},null==r?void 0:r.style),x)},j,{role:"separator"}),p&&"vertical"!==l&&a.createElement("span",{className:`${A}-inner-text`,style:O},p)))}}}]); \ No newline at end of file diff --git a/77372.ca9503ae.async.js b/77372.ca9503ae.async.js new file mode 100644 index 0000000000..6875fddd2c --- /dev/null +++ b/77372.ca9503ae.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[77372],{21515:function(e,n,t){t.d(n,{Z:function(){return H},P:function(){return M}});var i=t(37205),r=t.n(i),s=t(39647),a=t.n(s),o=t(7557),l=t.n(o),d=t(82242),c=t.n(d),u=t(41498),v=t.n(u),m=t(79800),f=t.n(m),p=t(59301),h=t(78241),g=t(43418),x=t(5112),j=t(92832),A=t(61998),w="brief___LOzpE",y="contentTitle___xkdcN",b="content___Vtri0",P="antdTable___s8T2N",C="tableCell___kN9Fw",B="antdModal___WVBk3",z="orangeColor___ryB2u",N=t(99681),O=t(37712),L=["isImportMultipleCourse"],S=function(e){var n=e.studentNames,t=e.total;return t>3?(0,O.jsxs)(O.Fragment,{children:["课堂内有",(0,O.jsx)("span",{className:z,children:null==n?void 0:n.join("、")}),"等",(0,O.jsx)("span",{className:z,children:t}),"名学生"]}):(0,O.jsxs)(O.Fragment,{children:["课堂内有",(0,O.jsx)("span",{className:z,children:null==n?void 0:n.join("、")}),["","一","两","三"][t],"名学生"]})},Z=function(e){var n=e.onCancel,t=e.onOk,i=e.visible,r=(e.inPaper,e.renderData),s=(e.type,e.isMultipleCourse),a=void 0!==s&&s,o=h.Z.useForm(),d=f()(o,1)[0],u=(0,p.useState)(1),m=f()(u,2),j=m[0],A=m[1],w=(0,p.useState)(!1),y=f()(w,2),P=y[0],C=y[1],N=(0,p.useMemo)((function(){return 1===(null==r?void 0:r.total_num)&&1===(null==r?void 0:r.can_copy_num)}),[r]),L=(0,p.useMemo)((function(){var e;return null==r||null===(e=r.course_data_list)||void 0===e?void 0:e.filter((function(e){return e.is_show}))}),[r]);return(0,O.jsx)(O.Fragment,{children:N?(0,O.jsxs)(g.Z,{centered:!0,closable:!0,open:i,destroyOnClose:!0,title:"提示",className:B,width:682,confirmLoading:P,onCancel:n,onOk:v()(l()().mark((function e(){var n,i,s;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),n=j,a&&(s=c()({},d.getFieldsValue()),n=null==r||null===(i=r.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==s[e.id]?c()(c()({},e),{},{is_copy:s[e.id]}):e}))),e.next=5,t(n);case 5:C(!1);case 6:case"end":return e.stop()}}),e)}))),children:[(0,O.jsx)("div",{className:b,style:{marginBottom:20},children:a?"检测到以下课堂已在教学课堂中使用,请问是否复制成新的实训发送至教学课堂中?":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(S,{studentNames:null==r?void 0:r.student_names,total:null==r?void 0:r.student_count}),"学习过该实践项目。该项目支持复制,请选择是否将该项目复制为新项目发送至课堂中?"]})}),a?(0,O.jsx)(h.Z,{form:d,preserve:!1,children:null==L?void 0:L.map((function(e){return(0,O.jsxs)(p.Fragment,{children:[(0,O.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,O.jsx)(h.Z.Item,{name:e.id,initialValue:1,children:(0,O.jsxs)(x.ZP.Group,{className:b,children:[(0,O.jsx)(x.ZP,{value:1,style:{color:"#464f66"},children:"复制实训"}),(0,O.jsx)(x.ZP,{value:0,style:{color:"#464f66"},children:"不复制实训"})]})})]},e.id)}))}):(0,O.jsxs)(x.ZP.Group,{value:j,onChange:function(e){return A(e.target.value)},className:b,style:{marginBottom:30},children:[(0,O.jsx)(x.ZP,{value:1,style:{color:"#464f66"},children:"复制"}),(0,O.jsx)(x.ZP,{value:0,style:{color:"#464f66"},children:"不复制"})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("div",{className:b,style:{marginBottom:10},children:"* 说明:"}),(0,O.jsx)("div",{className:b,style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,O.jsx)("div",{className:"".concat(b," ").concat(z),children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]})]}):(0,O.jsx)(g.Z,{centered:!0,closable:!0,destroyOnClose:!0,open:i,confirmLoading:P,title:"提示",width:682,onCancel:n,onOk:v()(l()().mark((function e(){var n,i,s;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),n=0,a&&(s=c()({},d.getFieldsValue()),n=null==r||null===(i=r.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==s[e.id]?c()(c()({},e),{},{is_use:s[e.id]}):e}))),e.next=5,t(n);case 5:C(!1);case 6:case"end":return e.stop()}}),e)}))),children:(0,O.jsxs)("div",{className:b,children:[(0,O.jsx)(S,{studentNames:null==r?void 0:r.student_names,total:null==r?void 0:r.student_count}),"学习过该实践项目。",a?(0,O.jsxs)(h.Z,{form:d,preserve:!1,children:[(0,O.jsx)("h3",{children:"当前实训不可复制,已经检测到以下课堂存在该实训,同一实训在课堂中重复使用时,会导致成绩互相影响,请确认是否继续使用"}),null==L?void 0:L.map((function(e){return(0,O.jsxs)(p.Fragment,{children:[(0,O.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,O.jsx)(h.Z.Item,{name:e.id,initialValue:1,children:(0,O.jsxs)(x.ZP.Group,{className:b,children:[(0,O.jsx)(x.ZP,{value:1,style:{color:"#464f66"},children:"继续使用"}),(0,O.jsx)(x.ZP,{value:0,style:{color:"#464f66"},children:"不使用"})]})})]},e.id)}))]}):(0,O.jsxs)("div",{children:["该项目不支持复制,若确认继续发送,",(0,O.jsx)("span",{className:z,children:"当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"}),"(如果不想清空学生之前的挑战记录,建议参照该实践项目的内容自行创建一个新的项目,或者尝试联系项目创建人开放本项目的复制权限)。"]})]})})})},M=function(){var e=(0,p.useState)(!1),n=f()(e,2),t=n[0],i=n[1],r=(0,p.useState)(),s=f()(r,2),o=s[0],d=s[1],c=function(){var e=v()(l()().mark((function e(n){var t,r,s,o,c;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.isImportMultipleCourse,r=void 0!==t&&t,s=a()(n,L),console.log(n),e.t0=null==n?void 0:n.result,e.t0){e.next=7;break}return e.next=6,(0,N.Tr)(s);case 6:e.t0=e.sent;case 7:if(!("status"in(o=e.t0))){e.next=10;break}return e.abrupt("return",!1);case 10:if(!r){e.next=17;break}if(!(null==o||null===(c=o.course_data_list)||void 0===c?void 0:c.some((function(e){return e.is_show})))){e.next=16;break}return d(o),i(!0),e.abrupt("return",!0);case 16:return e.abrupt("return",o.course_data_list||[]);case 17:if(0!==o.student_count){e.next=19;break}return e.abrupt("return",!1);case 19:return d(o),i(!0),e.abrupt("return",!0);case 22:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return[t,function(){return i(!1)},o,c]},k=function(e){var n=h.Z.useForm(),t=f()(n,1)[0],i=(0,p.useState)(!1),s=f()(i,2),a=s[0],o=s[1],d=e.onCancel,c=e.onOk,u=e.visible,m=e.inPaper,b=void 0!==m&&m,N=e.renderData,L=e.type,Z=e.isMultipleCourse,M=void 0!==Z&&Z,k=e.position,H=(0,p.useMemo)((function(){return b?[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:C,render:function(e,n){return(0,O.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,n){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===L?n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],initialValue:1,children:(0,O.jsxs)(x.ZP.Group,{children:[(0,O.jsx)(x.ZP,{value:1,children:"是"}),(0,O.jsx)(x.ZP,{value:0,children:"否"})]})}),(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===L?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],hidden:!0,initialValue:1,children:(0,O.jsx)(j.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:C,render:function(e,n){return(0,O.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,n){return(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===L?n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],initialValue:1,children:(0,O.jsxs)(x.ZP.Group,{children:[(0,O.jsx)(x.ZP,{value:1,children:"是"}),(0,O.jsx)(x.ZP,{value:0,children:"否"})]})})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,n){return(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===L?n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],initialValue:1,children:(0,O.jsxs)(x.ZP.Group,{children:[(0,O.jsx)(x.ZP,{value:1,children:"是"}),(0,O.jsx)(x.ZP,{value:0,children:"否"})]})})}}]}),[b]),V=(0,p.useMemo)((function(){return b?[{title:"实践项目名称",dataIndex:"name",width:424,className:C,align:"center",ellipsis:!0,render:function(e,n){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e}),(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===L?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],hidden:!0,initialValue:0,children:(0,O.jsx)(j.Z,{type:"hidden"})}),(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===L?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],hidden:!0,initialValue:1,children:(0,O.jsx)(j.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,className:C,ellipsis:!0,align:"center",render:function(e,n){return(0,O.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,n){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===L?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],initialValue:0,children:(0,O.jsxs)(x.ZP.Group,{children:[(0,O.jsx)(x.ZP,{value:1,children:"是"}),(0,O.jsx)(x.ZP,{value:0,children:"否"})]})}),(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===L?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],hidden:!0,initialValue:0,children:(0,O.jsx)(j.Z,{type:"hidden"})})]})}}]}),[b]);if(M){var D={title:"课堂名称",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:C,render:function(e,n){return(0,O.jsx)("a",{href:"/classrooms/".concat(n.course_id),children:e})}};H=[D].concat(r()(H)),V=[D].concat(r()(V))}var T=(0,p.useMemo)((function(){return function(e){var n=e.used,t=e.copy,i=e.canNotCopy,r=e.studentNames,s=e.studentCount,a=e.inPaper,o=e.is_random,l=void 0!==o&&o,d=e.position,c=(void 0===d?"":d)||(a?"试卷":"课程");return(0,O.jsxs)("span",{children:[(0,O.jsx)(S,{studentNames:r,total:s}),"学习过",c,"中的",(0,O.jsx)("span",{className:z,children:n}),"个项目,",t>0&&i>0?(0,O.jsxs)(O.Fragment,{children:["其中",(0,O.jsx)("span",{className:z,children:t}),"个项目支持复制,",(0,O.jsx)("span",{className:z,children:i}),"个项目不支持复制"]}):t>0&&0===i?(0,O.jsxs)(O.Fragment,{children:["其中",(0,O.jsx)("span",{className:z,children:t}),"个项目支持复制"]}):0===t&&i>0?(0,O.jsxs)(O.Fragment,{children:["其中",(0,O.jsx)("span",{className:z,children:i}),"个项目不支持复制"]}):void 0,"。请选择",l?"":"是否继续使用和","是否复制为新项目发送至课堂中?"]})}({used:null==N?void 0:N.repeat_shixun_num,copy:null==N?void 0:N.can_copy_num,canNotCopy:null==N?void 0:N.no_copy_num,studentNames:null==N?void 0:N.student_names,studentCount:null==N?void 0:N.student_count,is_random:null==N?void 0:N.is_random,inPaper:b,position:k})}),[N,b,k]);return(0,O.jsx)(g.Z,{title:"提示",centered:!0,open:u,confirmLoading:a,onOk:v()(l()().mark((function e(){var n,i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o(!0),n=t.getFieldsValue(),i=Object.keys(n).map((function(e){return{id:parseInt(e.split("_")[0]),course_id:parseInt(e.split("_")[1]),is_use:n[e].is_use,is_copy:n[e].is_copy}})),e.next=5,c(i);case 5:o(!1);case 6:case"end":return e.stop()}}),e)}))),onCancel:d,width:880,okText:"确认",className:B,destroyOnClose:!0,children:(0,O.jsxs)(h.Z,{form:t,preserve:!1,children:[(0,O.jsx)("div",{className:w,children:T}),(0,O.jsxs)("div",{style:{marginBottom:30},children:[(0,O.jsx)("div",{style:{marginBottom:20},children:"* 说明"}),(0,O.jsx)("div",{style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,O.jsx)("div",{className:z,children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]}),(null==N?void 0:N.can_copy_num)>0&&(0,O.jsxs)("div",{children:[(0,O.jsx)("div",{className:y,children:"支持复制的项目"}),(0,O.jsx)(A.Z,{columns:H,className:P,dataSource:null==N?void 0:N.can_copy_list,rowKey:"subject"===L?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})]}),(null==N?void 0:N.no_copy_num)>0&&(0,O.jsxs)("div",{children:[(0,O.jsx)("div",{className:y,children:"不支持复制的项目"}),(0,O.jsx)(A.Z,{columns:V,className:P,dataSource:null==N?void 0:N.no_copy_list,rowKey:"subject"===L?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})]}),(null==N?void 0:N.no_use_list.length)>0&&(null==N?void 0:N.no_use_list.map((function(e){return(0,O.jsxs)("div",{children:[(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===L?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],hidden:!0,initialValue:0,children:(0,O.jsx)(j.Z,{type:"hidden"})}),(0,O.jsx)(h.Z.Item,{name:["".concat("subject"===L?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],hidden:!0,initialValue:1,children:(0,O.jsx)(j.Z,{type:"hidden"})})]},"subject"===L?e.stage_shixun_id:e.shixun_course_id||e.id)})))]})})},H=function(e){return"multiple"===e.modalType?(0,O.jsx)(k,c()({},e)):(0,O.jsx)(Z,c()({},e))}},30116:function(e,n,t){t.d(n,{Z:function(){return M}});var i=t(37205),r=t.n(i),s=t(7557),a=t.n(s),o=t(41498),l=t.n(o),d=t(79800),c=t.n(d),u=t(39647),v=t.n(u),m=t(59301),f=t(5296),p=t(92832),h=t(8591),g=t(43418),x=t(94001),j=t(96865),A=t(61998),w=t(3113),y=t(31);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var b={flex_box_center:"flex_box_center___LsrKL",flex_space_between:"flex_space_between___sZBht",flex_box_vertical_center:"flex_box_vertical_center___QNt7D",flex_box_center_end:"flex_box_center_end___S9zs3",flex_box_column:"flex_box_column___Y5tcm",title:"title___t4qlt",tip:"tip___MtKbx",radioWrap:"radioWrap___fp3kY",row:"row___IoDN5",radio:"radio___vuEDI",colorFF0000:"colorFF0000____5DYm",pagination:"pagination___bvqCI",modalColumn:"modalColumn___szBPb",modalRow:"modalRow___mtd9M",sup:"sup___JDuYL",search:"search___wNY_F",bottom:"bottom___HvFhF",yes:"yes___xmznh",no:"no___vEJlu"},P=t(21082),C="sendToClass___le_BX",B=t(37712),z=function(e){var n=e.createState,t=e.refreshLoading,i=e.onRefresh,r=void 0===i?function(){}:i,s=e.onCreate,a=void 0===s?function(){}:s;return(0,B.jsx)("div",{className:C,children:n?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("img",{src:"data:image/png;base64,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",alt:"空"}),(0,B.jsx)("div",{children:"您还没有创建教学课堂,无法将试卷发送至教学课堂。"}),(0,B.jsx)(w.ZP,{onClick:a,type:"primary",ghost:!0,children:"立即创建"})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("img",{src:"data:image/png;base64,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",alt:"空"}),(0,B.jsx)("div",{children:"已创建教学课堂?请刷新列表"}),(0,B.jsx)(w.ZP,{loading:t,onClick:r,type:"primary",ghost:!0,children:"立即刷新"})]})})},N=t(21515),O=t(86468),L=t(89392),S=["paperlibrary","globalSetting","loading","dispatch"],Z=p.Z.Search,M=(0,f.connect)((function(e){var n=e.paperlibrary,t=e.loading;return{paperlibrary:n,globalSetting:e.globalSetting,loading:t.effects}}))((function(e){var n,t=e.paperlibrary,i=(e.globalSetting,e.loading),s=e.dispatch,o=(v()(e,S),(0,m.useState)("")),d=c()(o,2),u=d[0],f=d[1],p=(0,m.useState)([]),C=c()(p,2),M=C[0],k=C[1],H=(0,m.useState)([]),V=c()(H,2),D=V[0],T=V[1],I=(0,m.useState)(!1),E=c()(I,2),F=E[0],q=E[1],Q=(0,m.useState)(!0),X=c()(Q,2),K=X[0],J=X[1],G=(0,m.useState)(!0),Y=c()(G,2),W=Y[0],R=Y[1],U=(0,m.useState)(!0),_=c()(U,2),$=_[0],ee=_[1],ne=(0,m.useState)(!1),te=c()(ne,2),ie=te[0],re=te[1],se=(0,m.useState)(!1),ae=c()(se,2),oe=ae[0],le=ae[1],de=null===(n=t.actionTabs)||void 0===n||null===(n=n.params)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.is_random,ce=(0,m.useState)(!1),ue=c()(ce,2),ve=(ue[0],ue[1]);(0,m.useEffect)((function(){fe()}),[]);var me=function(){T([]),f(""),fe(!0),s({type:"paperlibrary/setActionTabs",payload:{}})},fe=function(){var e=l()(a()().mark((function e(n){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R(!0),e.next=3,s({type:"paperlibrary/getCourseList",payload:{search:n?"":u}});case 3:(t=e.sent)&&(k((null==t?void 0:t.courses)||[]),J(!0),re(!1)),R(!1),ee(!1);case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),pe=function(e){var n=parseInt(e);return(0,L.isNaN)(n)?"":n},he=function(){var e=l()(a()().mark((function e(){var n,i,r,o,d,c;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(D.length){e.next=4;break}return h.ZP.info("您需要选择课堂,才能发送"),q(!0),e.abrupt("return");case 4:return e.next=6,s({type:"paperlibrary/postExistCourse",payload:{course_id:de?null==D?void 0:D[0]:D,examination_bank_ids:(null===(n=t.actionTabs)||void 0===n||null===(n=n.params)||void 0===n?void 0:n.examination_bank_ids)||(null===(i=t.actionTabs)||void 0===i||null===(i=i.params)||void 0===i?void 0:i.id)}});case 6:if(o=e.sent,d=function(){var e=l()(a()().mark((function e(){var n,i,r,s;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(!0),e.next=3,Pe({id:null===(n=t.actionTabs)||void 0===n||null===(n=n.params)||void 0===n?void 0:n.id,course_id:de?null==D?void 0:D[0]:D,type:null!==(i=t.actionTabs)&&void 0!==i&&null!==(i=i.params)&&void 0!==i&&i.isBatch?"batch_examination_bank":"examination_bank",examination_bank_ids:null===(r=t.actionTabs)||void 0===r||null===(r=r.params)||void 0===r?void 0:r.examination_bank_ids});case 3:if(s=e.sent,le(!1),s){e.next=9;break}return ve(!0),e.next=9,ge([]);case 9:return e.next=11,new Promise((function(e){return setTimeout((function(){return e()}),1e3)}));case 11:ve(!0);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!(0==o.status&&(null===(r=o.data)||void 0===r?void 0:r.count)>0)){e.next=13;break}return g.Z.confirm({icon:null,title:"提示",centered:!0,width:596,content:(0,B.jsxs)("div",{style:{userSelect:"none"},children:["当前教学课堂中已存在试卷",null===(c=o.data)||void 0===c||null===(c=c.list)||void 0===c?void 0:c.map((function(e,n){var t;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("span",{style:{color:"#FA6400"},children:["《",null==e?void 0:e.name,"》"]}),n!==(null===(t=o.data)||void 0===t?void 0:t.count)-1&&(0,B.jsx)("span",{children:"、"})]})})),",请确定是否需要重复发送?"]}),onOk:function(){var e=l()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),e.next=12,new Promise((function(e){return setTimeout((function(){return e()}),1e3)}));case 12:return e.abrupt("return");case 13:return e.next=15,d();case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ge=function(){var e=l()(a()().mark((function e(n){var i,r,o,d,c,u,v;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(de){e.next=7;break}return e.next=3,s({type:null!==(i=t.actionTabs)&&void 0!==i&&null!==(i=i.params)&&void 0!==i&&i.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:de?null==D?void 0:D[0]:D,id:null===(r=t.actionTabs)||void 0===r||null===(r=r.params)||void 0===r?void 0:r.id,examination_bank_ids:null===(o=t.actionTabs)||void 0===o||null===(o=o.params)||void 0===o?void 0:o.examination_bank_ids,shixuns_info:n.map((function(e){return{shixun_id:e.id,is_copy:e.is_copy,is_use:e.is_use,course_id:e.course_id}}))}});case 3:return(d=e.sent)&&0===d.status&&(s({type:"paperlibrary/setActionTabs",payload:{}}),T([]),g.Z.confirm({title:"提示",okText:"立即前往",cancelText:"稍后再说",width:480,centered:!0,closable:!0,onOk:function(){window.location.href="".concat(d.data[0].first_category_url)},content:(0,B.jsx)("p",{children:"试卷发送成功!目前处于未发布状态,是否前往教学课堂进行发布?"})}),h.ZP.success("发送成功")),ye(),e.abrupt("return");case 7:c=M.find((function(e){return e.course_id===(null==D?void 0:D[0])})),u=1,v=g.Z.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:"配置出卷数量",content:(0,B.jsxs)("div",{className:b.modalColumn,children:[(0,B.jsxs)("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10",children:[(0,B.jsx)("img",{style:{marginRight:5},src:y.Z}),"随机组卷类型的试卷按照出卷数量对指定课堂生成不重复的试卷。"]}),(0,B.jsxs)("div",{style:{paddingLeft:18},children:["课堂名称: ",null==c?void 0:c.course_name]}),(0,B.jsxs)("div",{style:{paddingLeft:9},className:b.modalRow,children:[(0,B.jsx)("sup",{className:b.sup,children:"*"}),(0,B.jsx)("span",{style:{flexShrink:0},children:"随机出卷数量:"}),(0,B.jsx)(x.Z,{parser:pe,style:{width:120},placeholder:"请输入试卷数量",min:1,defaultValue:u,onChange:function(e){u=e;var n=document.getElementById("model_error");n.style.display=u<1||u>50?"block":"none"}})]}),(0,B.jsx)("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red",children:"请输入1-50之间的整数"})]}),okText:"确认",cancelText:"取消",onCancel:me,onOk:function(){var e=l()(a()().mark((function e(){var i,r;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(u<1||u>50)){e.next=4;break}return document.getElementById("model_error").style.display="block",e.abrupt("return",Promise.reject());case 4:return v.update({cancelButtonProps:{disabled:!0}}),e.next=7,s({type:"paperlibrary/sendToClass",payload:{course_id:null==D?void 0:D[0],id:null===(i=t.actionTabs)||void 0===i||null===(i=i.params)||void 0===i?void 0:i.id,num:u,shixuns_info:n.map((function(e){return{shixun_id:e.id,is_copy:e.is_copy,is_use:e.is_use}}))}});case 7:r=e.sent,v.update({cancelButtonProps:{disabled:!1}}),r&&0===r.status&&(g.Z.destroyAll(),g.Z.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"提示",content:(0,B.jsx)("div",{className:b.modalColumn,children:(0,B.jsxs)("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10",children:[(0,B.jsx)("img",{style:{marginRight:5},src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzQgMGE2Ljc0IDYuNzQgMCAxIDAgMCAxMy40OEE2Ljc0IDYuNzQgMCAwIDAgNi43NCAwWm0zLjYzNiA1LjAxN0w1LjgxNyA5LjU3NmMtLjA5LjA5LS4yNDYuMDgtLjM0OC0uMDIzbC0uMzA2LS4zMDVMMy4xMiA3LjIwNGEuMjYzLjI2MyAwIDAgMSAwLS4zNzJsLjU1Ny0uNTU3YS4yNjIuMjYyIDAgMCAxIC4zNzIgMGwxLjYwNSAxLjYwNiAzLjc5NC0zLjc5M2MuMDktLjA5LjI0Ni0uMDguMzQ4LjAyMmwuNTU3LjU1N2MuMTAzLjEwMy4xMTMuMjU5LjAyMy4zNDlaIiBmaWxsPSIjNjhDNzlGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),"生成试卷成功,前往课堂去查看吧!"]})}),okText:"前往课堂",cancelText:"返回试卷库",onCancel:function(){ye(),me()},onOk:function(){ye(),me(),setTimeout((function(){var e,n=null==r||null===(e=r.first_category_url)||void 0===e||null===(e=e.split("/"))||void 0===e?void 0:e[2];(0,P.xg)("/classrooms/".concat(n,"/exercise"))}),1e3)}}));case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),xe=function(){var e=l()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return re(!0),e.next=3,fe();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),je=(0,N.P)(),Ae=c()(je,4),we=Ae[0],ye=Ae[1],be=Ae[2],Pe=Ae[3];return(0,B.jsxs)("div",{children:[(0,B.jsx)(g.Z,{centered:!0,keyboard:!1,closable:!1,open:"Paperlibrary-SendToClass"===t.actionTabs.key,title:"发送至课堂",maskClosable:!1,okText:"确定",cancelText:"取消",confirmLoading:i["paperlibrary/sendToClass"]||oe||!!i["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:he,destroyOnClose:!0,onCancel:me,children:(0,B.jsxs)("div",{className:b.wrap,children:[(0,B.jsx)("div",{className:"mb10",children:(0,B.jsx)(Z,{placeholder:"输入课堂名称的关键字进行搜索",value:u,className:b.search,onChange:function(e){f(e.target.value),e.target.value||fe(!0)},onSearch:function(e){f(e),fe(),T([])}})}),(0,B.jsx)(j.Z,{loading:$,children:M.length?(0,B.jsx)("div",{className:b.radioWrap,children:(0,B.jsx)(A.Z,{bordered:!1,scroll:(null==M?void 0:M.length)<=7?{}:{y:350},loading:W,rowKey:"course_id",pagination:!1,dataSource:M,columns:[{title:"课堂名称",dataIndex:"course_name",ellipsis:!0},{title:"分班数量",dataIndex:"course_group_count",width:90,ellipsis:!0},{title:"学员人数",dataIndex:"course_member_count",width:90,ellipsis:!0}],onRow:function(e){return{onClick:function(n){if(de)T([null==e?void 0:e.course_id]);else{if(!de&&!D.includes(e.course_id)&&D.length>0)return;null!=D&&D.includes(null==e?void 0:e.course_id)?T(null==D?void 0:D.filter((function(n){return n!==(null==e?void 0:e.course_id)}))):T([].concat(r()(D),[null==e?void 0:e.course_id]))}}}},rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:D,onChange:function(e){T(e),q(!1)}}})}):!u&&!W&&(0,B.jsx)(z,{createState:K,refreshLoading:ie,onRefresh:xe,onCreate:function(){J(!1),(0,P.xg)("/classrooms/new")}})}),F&&(0,B.jsx)("div",{className:b.colorFF0000,children:"请先选择课堂"}),(0,B.jsxs)("div",{className:b.bottom,style:{display:"flex",alignItems:"center"},children:[(0,B.jsx)("div",{style:{flex:1},children:(0,B.jsxs)("div",{className:b.title,children:[(0,B.jsx)("img",{src:y.Z,style:{objectFit:"contain"}}),"选择的试卷将会发送到指定课堂并为班级学员生成考试试卷"]})}),(0,B.jsxs)("div",{children:[(0,B.jsx)(w.ZP,{onClick:me,className:b.no,style:{marginRight:20},children:"取消"}),(0,B.jsx)(O.Z,{onClick:he,className:b.yes,children:"确认"})]})]})]})}),(0,B.jsx)(N.Z,{visible:we,inPaper:!0,onOk:ge,onCancel:ye,renderData:be,modalType:"multiple",type:"examination_bank",isMultipleCourse:!0})]})}))},31:function(e,n,t){t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},28103:function(e,n,t){t.d(n,{Z:function(){return m}});var i=t(92310),r=t.n(i),s=t(59301),a=t(36355),o=t(17313),l=t(83116),d=t(37613);const c=e=>{const{componentCls:n,sizePaddingEdgeHorizontal:t,colorSplit:i,lineWidth:r,textPaddingInline:s,orientationMargin:a,verticalMarginInline:l}=e;return{[n]:Object.assign(Object.assign({},(0,o.Wf)(e)),{borderBlockStart:`${r}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${n}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${n}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${n}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${n}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:s},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${n}-with-text${n}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${n}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${n}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${n}-with-text-left${n}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${n}-inner-text`]:{paddingInlineStart:t}},[`&-horizontal${n}-with-text-right${n}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${n}-inner-text`]:{paddingInlineEnd:t}}})}};var u=(0,l.Z)("Divider",(e=>{const n=(0,d.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[c(n)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),v=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:t,divider:i}=s.useContext(a.E_),{prefixCls:o,type:l="horizontal",orientation:d="center",orientationMargin:c,className:m,rootClassName:f,children:p,dashed:h,plain:g,style:x}=e,j=v(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),A=n("divider",o),[w,y]=u(A),b=d.length>0?`-${d}`:d,P=!!p,C="left"===d&&null!=c,B="right"===d&&null!=c,z=r()(A,null==i?void 0:i.className,y,`${A}-${l}`,{[`${A}-with-text`]:P,[`${A}-with-text${b}`]:P,[`${A}-dashed`]:!!h,[`${A}-plain`]:!!g,[`${A}-rtl`]:"rtl"===t,[`${A}-no-default-orientation-margin-left`]:C,[`${A}-no-default-orientation-margin-right`]:B},m,f),N=s.useMemo((()=>"number"==typeof c?c:/^\d+$/.test(c)?Number(c):c),[c]),O=Object.assign(Object.assign({},C&&{marginLeft:N}),B&&{marginRight:N});return w(s.createElement("div",Object.assign({className:z,style:Object.assign(Object.assign({},null==i?void 0:i.style),x)},j,{role:"separator"}),p&&"vertical"!==l&&s.createElement("span",{className:`${A}-inner-text`,style:O},p)))}}}]); \ No newline at end of file diff --git a/779.a34affca.async.js b/779.a34affca.async.js new file mode 100644 index 0000000000..17555ca177 --- /dev/null +++ b/779.a34affca.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[779,42441,43428],{680:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(5891),r=n(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},o=n(22589),s=function(t,e){return r.createElement(o.Z,(0,i.Z)({},t,{ref:e,icon:a}))};var l=r.forwardRef(s)},20553:function(t,e,n){"use strict";n.d(e,{kJ:function(){return GT},RN:function(){return tS}});var i={};n.r(i),n.d(i,{add:function(){return Pt},adjoint:function(){return $},clone:function(){return H},copy:function(){return V},create:function(){return U},determinant:function(){return K},equals:function(){return It},exactEquals:function(){return kt},frob:function(){return Nt},fromQuat:function(){return yt},fromQuat2:function(){return dt},fromRotation:function(){return st},fromRotationTranslation:function(){return ht},fromRotationTranslationScale:function(){return mt},fromRotationTranslationScaleOrigin:function(){return vt},fromScaling:function(){return ot},fromTranslation:function(){return at},fromValues:function(){return Z},fromXRotation:function(){return lt},fromYRotation:function(){return ut},fromZRotation:function(){return ct},frustum:function(){return xt},getRotation:function(){return gt},getScaling:function(){return pt},getTranslation:function(){return ft},identity:function(){return X},invert:function(){return q},lookAt:function(){return Ct},mul:function(){return Bt},multiply:function(){return Q},multiplyScalar:function(){return Rt},multiplyScalarAndAdd:function(){return Dt},ortho:function(){return St},orthoNO:function(){return Tt},orthoZO:function(){return Mt},perspective:function(){return _t},perspectiveFromFieldOfView:function(){return wt},perspectiveNO:function(){return bt},perspectiveZO:function(){return Et},rotate:function(){return et},rotateX:function(){return nt},rotateY:function(){return it},rotateZ:function(){return rt},scale:function(){return tt},set:function(){return W},str:function(){return Ot},sub:function(){return Ft},subtract:function(){return Lt},targetTo:function(){return At},translate:function(){return J},transpose:function(){return Y}});var r={};n.r(r),n.d(r,{circle:function(){return Bg},diamond:function(){return zg},rect:function(){return jg},simple:function(){return Hg},triangle:function(){return Fg},triangleRect:function(){return Ug},vee:function(){return Gg}});var a=n(57259),o=n(79545),s=n(68550),l=n(26390),u=n(43962),c=n(67785),h=n(81058);function d(t,e,n){return e=(0,u.Z)(e),(0,h.Z)(t,(0,c.Z)()?Reflect.construct(e,n||[],(0,u.Z)(t).constructor):e.apply(t,n))}var f=n(17928),p=n(29043),g=n(37271),m=1e-6,v="undefined"!=typeof Float32Array?Float32Array:Array;Math.random;Math.PI;function y(){var t=new v(3);return v!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function x(t){var e=new v(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function b(t){var e=t[0],n=t[1],i=t[2];return Math.hypot(e,n,i)}function _(t,e,n){var i=new v(3);return i[0]=t,i[1]=e,i[2]=n,i}function E(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function w(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}function T(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function S(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function M(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function C(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function A(t,e){var n=e[0],i=e[1],r=e[2],a=n*n+i*i+r*r;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function O(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function N(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[0],s=n[1],l=n[2];return t[0]=r*l-a*s,t[1]=a*o-i*l,t[2]=i*s-r*o,t}function P(t,e,n,i){var r=e[0],a=e[1],o=e[2];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t[2]=o+i*(n[2]-o),t}function L(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[3]*i+n[7]*r+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*i+n[4]*r+n[8]*a+n[12])/o,t[1]=(n[1]*i+n[5]*r+n[9]*a+n[13])/o,t[2]=(n[2]*i+n[6]*r+n[10]*a+n[14])/o,t}function R(t,e,n){var i=n[0],r=n[1],a=n[2],o=n[3],s=e[0],l=e[1],u=e[2],c=r*u-a*l,h=a*s-i*u,d=i*l-r*s,f=r*d-a*h,p=a*c-i*d,g=i*h-r*c,m=2*o;return c*=m,h*=m,d*=m,f*=2,p*=2,g*=2,t[0]=s+c+f,t[1]=l+h+p,t[2]=u+d+g,t}function D(t,e){var n=t[0],i=t[1],r=t[2],a=e[0],o=e[1],s=e[2];return Math.abs(n-a)<=m*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-o)<=m*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(r-s)<=m*Math.max(1,Math.abs(r),Math.abs(s))}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var k,I=S,B=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.hypot(n,i,r)},F=b;k=y();function z(){var t=new v(4);return v!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function G(t,e,n,i){var r=new v(4);return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function j(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3];return t[0]=n[0]*i+n[4]*r+n[8]*a+n[12]*o,t[1]=n[1]*i+n[5]*r+n[9]*a+n[13]*o,t[2]=n[2]*i+n[6]*r+n[10]*a+n[14]*o,t[3]=n[3]*i+n[7]*r+n[11]*a+n[15]*o,t}!function(){var t=z()}();function U(){var t=new v(16);return v!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function H(t){var e=new v(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function V(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Z(t,e,n,i,r,a,o,s,l,u,c,h,d,f,p,g){var m=new v(16);return m[0]=t,m[1]=e,m[2]=n,m[3]=i,m[4]=r,m[5]=a,m[6]=o,m[7]=s,m[8]=l,m[9]=u,m[10]=c,m[11]=h,m[12]=d,m[13]=f,m[14]=p,m[15]=g,m}function W(t,e,n,i,r,a,o,s,l,u,c,h,d,f,p,g,m){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=u,t[9]=c,t[10]=h,t[11]=d,t[12]=f,t[13]=p,t[14]=g,t[15]=m,t}function X(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Y(t,e){if(t===e){var n=e[1],i=e[2],r=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=i,t[9]=a,t[11]=e[14],t[12]=r,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function q(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],m=e[14],v=e[15],y=n*s-i*o,x=n*l-r*o,b=n*u-a*o,_=i*l-r*s,E=i*u-a*s,w=r*u-a*l,T=c*g-h*p,S=c*m-d*p,M=c*v-f*p,C=h*m-d*g,A=h*v-f*g,O=d*v-f*m,N=y*O-x*A+b*C+_*M-E*S+w*T;return N?(N=1/N,t[0]=(s*O-l*A+u*C)*N,t[1]=(r*A-i*O-a*C)*N,t[2]=(g*w-m*E+v*_)*N,t[3]=(d*E-h*w-f*_)*N,t[4]=(l*M-o*O-u*S)*N,t[5]=(n*O-r*M+a*S)*N,t[6]=(m*b-p*w-v*x)*N,t[7]=(c*w-d*b+f*x)*N,t[8]=(o*A-s*M+u*T)*N,t[9]=(i*M-n*A-a*T)*N,t[10]=(p*E-g*b+v*y)*N,t[11]=(h*b-c*E-f*y)*N,t[12]=(s*S-o*C-l*T)*N,t[13]=(n*C-i*S+r*T)*N,t[14]=(g*x-p*_-m*y)*N,t[15]=(c*_-h*x+d*y)*N,t):null}function $(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],m=e[14],v=e[15];return t[0]=s*(d*v-f*m)-h*(l*v-u*m)+g*(l*f-u*d),t[1]=-(i*(d*v-f*m)-h*(r*v-a*m)+g*(r*f-a*d)),t[2]=i*(l*v-u*m)-s*(r*v-a*m)+g*(r*u-a*l),t[3]=-(i*(l*f-u*d)-s*(r*f-a*d)+h*(r*u-a*l)),t[4]=-(o*(d*v-f*m)-c*(l*v-u*m)+p*(l*f-u*d)),t[5]=n*(d*v-f*m)-c*(r*v-a*m)+p*(r*f-a*d),t[6]=-(n*(l*v-u*m)-o*(r*v-a*m)+p*(r*u-a*l)),t[7]=n*(l*f-u*d)-o*(r*f-a*d)+c*(r*u-a*l),t[8]=o*(h*v-f*g)-c*(s*v-u*g)+p*(s*f-u*h),t[9]=-(n*(h*v-f*g)-c*(i*v-a*g)+p*(i*f-a*h)),t[10]=n*(s*v-u*g)-o*(i*v-a*g)+p*(i*u-a*s),t[11]=-(n*(s*f-u*h)-o*(i*f-a*h)+c*(i*u-a*s)),t[12]=-(o*(h*m-d*g)-c*(s*m-l*g)+p*(s*d-l*h)),t[13]=n*(h*m-d*g)-c*(i*m-r*g)+p*(i*d-r*h),t[14]=-(n*(s*m-l*g)-o*(i*m-r*g)+p*(i*l-r*s)),t[15]=n*(s*d-l*h)-o*(i*d-r*h)+c*(i*l-r*s),t}function K(t){var e=t[0],n=t[1],i=t[2],r=t[3],a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],d=t[11],f=t[12],p=t[13],g=t[14],m=t[15];return(e*o-n*a)*(h*m-d*g)-(e*s-i*a)*(c*m-d*p)+(e*l-r*a)*(c*g-h*p)+(n*s-i*o)*(u*m-d*f)-(n*l-r*o)*(u*g-h*f)+(i*l-r*s)*(u*p-c*f)}function Q(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=e[10],p=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=n[0],b=n[1],_=n[2],E=n[3];return t[0]=x*i+b*s+_*h+E*g,t[1]=x*r+b*l+_*d+E*m,t[2]=x*a+b*u+_*f+E*v,t[3]=x*o+b*c+_*p+E*y,x=n[4],b=n[5],_=n[6],E=n[7],t[4]=x*i+b*s+_*h+E*g,t[5]=x*r+b*l+_*d+E*m,t[6]=x*a+b*u+_*f+E*v,t[7]=x*o+b*c+_*p+E*y,x=n[8],b=n[9],_=n[10],E=n[11],t[8]=x*i+b*s+_*h+E*g,t[9]=x*r+b*l+_*d+E*m,t[10]=x*a+b*u+_*f+E*v,t[11]=x*o+b*c+_*p+E*y,x=n[12],b=n[13],_=n[14],E=n[15],t[12]=x*i+b*s+_*h+E*g,t[13]=x*r+b*l+_*d+E*m,t[14]=x*a+b*u+_*f+E*v,t[15]=x*o+b*c+_*p+E*y,t}function J(t,e,n){var i,r,a,o,s,l,u,c,h,d,f,p,g=n[0],m=n[1],v=n[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=e[10],p=e[11],t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=d,t[10]=f,t[11]=p,t[12]=i*g+s*m+h*v+e[12],t[13]=r*g+l*m+d*v+e[13],t[14]=a*g+u*m+f*v+e[14],t[15]=o*g+c*m+p*v+e[15]),t}function tt(t,e,n){var i=n[0],r=n[1],a=n[2];return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function et(t,e,n,i){var r,a,o,s,l,u,c,h,d,f,p,g,v,y,x,b,_,E,w,T,S,M,C,A,O=i[0],N=i[1],P=i[2],L=Math.hypot(O,N,P);return L0?(n[0]=2*(s*o+c*i+l*a-u*r)/h,n[1]=2*(l*o+c*r+u*i-s*a)/h,n[2]=2*(u*o+c*a+s*r-l*i)/h):(n[0]=2*(s*o+c*i+l*a-u*r),n[1]=2*(l*o+c*r+u*i-s*a),n[2]=2*(u*o+c*a+s*r-l*i)),ht(t,e,n),t}function ft(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function pt(t,e){var n=e[0],i=e[1],r=e[2],a=e[4],o=e[5],s=e[6],l=e[8],u=e[9],c=e[10];return t[0]=Math.hypot(n,i,r),t[1]=Math.hypot(a,o,s),t[2]=Math.hypot(l,u,c),t}function gt(t,e){var n=new v(3);pt(n,e);var i=1/n[0],r=1/n[1],a=1/n[2],o=e[0]*i,s=e[1]*r,l=e[2]*a,u=e[4]*i,c=e[5]*r,h=e[6]*a,d=e[8]*i,f=e[9]*r,p=e[10]*a,g=o+c+p,m=0;return g>0?(m=2*Math.sqrt(g+1),t[3]=.25*m,t[0]=(h-f)/m,t[1]=(d-l)/m,t[2]=(s-u)/m):o>c&&o>p?(m=2*Math.sqrt(1+o-c-p),t[3]=(h-f)/m,t[0]=.25*m,t[1]=(s+u)/m,t[2]=(d+l)/m):c>p?(m=2*Math.sqrt(1+c-o-p),t[3]=(d-l)/m,t[0]=(s+u)/m,t[1]=.25*m,t[2]=(h+f)/m):(m=2*Math.sqrt(1+p-o-c),t[3]=(s-u)/m,t[0]=(d+l)/m,t[1]=(h+f)/m,t[2]=.25*m),t}function mt(t,e,n,i){var r=e[0],a=e[1],o=e[2],s=e[3],l=r+r,u=a+a,c=o+o,h=r*l,d=r*u,f=r*c,p=a*u,g=a*c,m=o*c,v=s*l,y=s*u,x=s*c,b=i[0],_=i[1],E=i[2];return t[0]=(1-(p+m))*b,t[1]=(d+x)*b,t[2]=(f-y)*b,t[3]=0,t[4]=(d-x)*_,t[5]=(1-(h+m))*_,t[6]=(g+v)*_,t[7]=0,t[8]=(f+y)*E,t[9]=(g-v)*E,t[10]=(1-(h+p))*E,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function vt(t,e,n,i,r){var a=e[0],o=e[1],s=e[2],l=e[3],u=a+a,c=o+o,h=s+s,d=a*u,f=a*c,p=a*h,g=o*c,m=o*h,v=s*h,y=l*u,x=l*c,b=l*h,_=i[0],E=i[1],w=i[2],T=r[0],S=r[1],M=r[2],C=(1-(g+v))*_,A=(f+b)*_,O=(p-x)*_,N=(f-b)*E,P=(1-(d+v))*E,L=(m+y)*E,R=(p+x)*w,D=(m-y)*w,k=(1-(d+g))*w;return t[0]=C,t[1]=A,t[2]=O,t[3]=0,t[4]=N,t[5]=P,t[6]=L,t[7]=0,t[8]=R,t[9]=D,t[10]=k,t[11]=0,t[12]=n[0]+T-(C*T+N*S+R*M),t[13]=n[1]+S-(A*T+P*S+D*M),t[14]=n[2]+M-(O*T+L*S+k*M),t[15]=1,t}function yt(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=n+n,s=i+i,l=r+r,u=n*o,c=i*o,h=i*s,d=r*o,f=r*s,p=r*l,g=a*o,m=a*s,v=a*l;return t[0]=1-h-p,t[1]=c+v,t[2]=d-m,t[3]=0,t[4]=c-v,t[5]=1-u-p,t[6]=f+g,t[7]=0,t[8]=d+m,t[9]=f-g,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function xt(t,e,n,i,r,a,o){var s=1/(n-e),l=1/(r-i),u=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(r+i)*l,t[10]=(o+a)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*u,t[15]=0,t}function bt(t,e,n,i,r){var a,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=r&&r!==1/0?(a=1/(i-r),t[10]=(r+i)*a,t[14]=2*r*i*a):(t[10]=-1,t[14]=-2*i),t}var _t=bt;function Et(t,e,n,i,r){var a,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=r&&r!==1/0?(a=1/(i-r),t[10]=r*a,t[14]=r*i*a):(t[10]=-1,t[14]=-i),t}function wt(t,e,n,i){var r=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(r+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(r-a)*u*.5,t[10]=i/(n-i),t[11]=-1,t[12]=0,t[13]=0,t[14]=i*n/(n-i),t[15]=0,t}function Tt(t,e,n,i,r,a,o){var s=1/(e-n),l=1/(i-r),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(r+i)*l,t[14]=(o+a)*u,t[15]=1,t}var St=Tt;function Mt(t,e,n,i,r,a,o){var s=1/(e-n),l=1/(i-r),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=u,t[11]=0,t[12]=(e+n)*s,t[13]=(r+i)*l,t[14]=a*u,t[15]=1,t}function Ct(t,e,n,i){var r,a,o,s,l,u,c,h,d,f,p=e[0],g=e[1],v=e[2],y=i[0],x=i[1],b=i[2],_=n[0],E=n[1],w=n[2];return Math.abs(p-_)0&&(c*=f=1/Math.sqrt(f),h*=f,d*=f);var p=l*d-u*h,g=u*c-s*d,m=s*h-l*c;return(f=p*p+g*g+m*m)>0&&(p*=f=1/Math.sqrt(f),g*=f,m*=f),t[0]=p,t[1]=g,t[2]=m,t[3]=0,t[4]=h*m-d*g,t[5]=d*p-c*m,t[6]=c*g-h*p,t[7]=0,t[8]=c,t[9]=h,t[10]=d,t[11]=0,t[12]=r,t[13]=a,t[14]=o,t[15]=1,t}function Ot(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function Nt(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function Pt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function Lt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function Rt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function Dt(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t[6]=e[6]+n[6]*i,t[7]=e[7]+n[7]*i,t[8]=e[8]+n[8]*i,t[9]=e[9]+n[9]*i,t[10]=e[10]+n[10]*i,t[11]=e[11]+n[11]*i,t[12]=e[12]+n[12]*i,t[13]=e[13]+n[13]*i,t[14]=e[14]+n[14]*i,t[15]=e[15]+n[15]*i,t}function kt(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function It(t,e){var n=t[0],i=t[1],r=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=t[9],d=t[10],f=t[11],p=t[12],g=t[13],v=t[14],y=t[15],x=e[0],b=e[1],_=e[2],E=e[3],w=e[4],T=e[5],S=e[6],M=e[7],C=e[8],A=e[9],O=e[10],N=e[11],P=e[12],L=e[13],R=e[14],D=e[15];return Math.abs(n-x)<=m*Math.max(1,Math.abs(n),Math.abs(x))&&Math.abs(i-b)<=m*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(r-_)<=m*Math.max(1,Math.abs(r),Math.abs(_))&&Math.abs(a-E)<=m*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(o-w)<=m*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(s-T)<=m*Math.max(1,Math.abs(s),Math.abs(T))&&Math.abs(l-S)<=m*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-M)<=m*Math.max(1,Math.abs(u),Math.abs(M))&&Math.abs(c-C)<=m*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(h-A)<=m*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(d-O)<=m*Math.max(1,Math.abs(d),Math.abs(O))&&Math.abs(f-N)<=m*Math.max(1,Math.abs(f),Math.abs(N))&&Math.abs(p-P)<=m*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(g-L)<=m*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(v-R)<=m*Math.max(1,Math.abs(v),Math.abs(R))&&Math.abs(y-D)<=m*Math.max(1,Math.abs(y),Math.abs(D))}var Bt=Q,Ft=Lt;function zt(){var t=new v(9);return v!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function Gt(){var t=new v(4);return v!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function jt(t,e,n){n*=.5;var i=Math.sin(n);return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=Math.cos(n),t}function Ut(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=i*c+o*s+r*u-a*l,t[1]=r*c+o*l+a*s-i*u,t[2]=a*c+o*u+i*l-r*s,t[3]=o*c-i*s-r*l-a*u,t}function Ht(t,e,n,i){var r,a,o,s,l,u=e[0],c=e[1],h=e[2],d=e[3],f=n[0],p=n[1],g=n[2],v=n[3];return(a=u*f+c*p+h*g+d*v)<0&&(a=-a,f=-f,p=-p,g=-g,v=-v),1-a>m?(r=Math.acos(a),o=Math.sin(r),s=Math.sin((1-i)*r)/o,l=Math.sin(i*r)/o):(s=1-i,l=i),t[0]=s*u+l*f,t[1]=s*c+l*p,t[2]=s*h+l*g,t[3]=s*d+l*v,t}function Vt(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=n*n+i*i+r*r+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-i*s,t[2]=-r*s,t[3]=a*s,t}function Zt(t,e,n,i){var r=.5*Math.PI/180;e*=r,n*=r,i*=r;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),l=Math.cos(n),u=Math.sin(i),c=Math.cos(i);return t[0]=a*l*c-o*s*u,t[1]=o*s*c+a*l*u,t[2]=o*l*u-a*s*c,t[3]=o*l*c+a*s*u,t}var Wt,Xt,Yt,qt,$t,Kt,Qt=G,Jt=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},te=function(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t},ee=Ut,ne=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=n*n+i*i+r*r+a*a;return o>0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=i*o,t[2]=r*o,t[3]=a*o,t};Wt=y(),Xt=_(1,0,0),Yt=_(0,1,0),qt=Gt(),$t=Gt(),Kt=zt();function ie(){var t=new v(2);return v!=Float32Array&&(t[0]=0,t[1]=0),t}function re(t,e){return t[0]=e[0],t[1]=e[1],t}function ae(t,e,n){return t[0]=e,t[1]=n,t}!function(){var t=ie()}();var oe=n(25719);function se(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var le=n(23481),ue=n(18756),ce=function(t,e,n){return tn?n:t},he=n(80813),de={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function fe(t){return Array.isArray(t)&&t.every((function(t){var e=t[0].toLowerCase();return de[e]===t.length-1&&"achlmqstvz".includes(e)}))}function pe(t){return fe(t)&&t.every((function(t){var e=t[0];return e===e.toUpperCase()}))}function ge(t){return pe(t)&&t.every((function(t){var e=t[0];return"ACLMQZ".includes(e)}))}var me={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function ve(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),i=t.data;i.length>=de[n]&&("m"===n&&i.length>2?(t.segments.push([e].concat(i.splice(0,2))),n="l",e="m"===e?"l":"L"):t.segments.push([e].concat(i.splice(0,de[n]))),de[n]););}function ye(t){var e=t.index,n=t.pathValue,i=n.charCodeAt(e);return 48===i?(t.param=0,void(t.index+=1)):49===i?(t.param=1,void(t.index+=1)):void(t.err='[path-util]: invalid Arc flag "'.concat(n[e],'", expecting 0 or 1 at index ').concat(e))}function xe(t){return t>=48&&t<=57||43===t||45===t||46===t}function be(t){return t>=48&&t<=57}function _e(t){var e,n=t.max,i=t.pathValue,r=t.index,a=r,o=!1,s=!1,l=!1,u=!1;if(a>=n)t.err="[path-util]: Invalid path value at index ".concat(a,', "pathValue" is missing param');else if(43!==(e=i.charCodeAt(a))&&45!==e||(a+=1,e=i.charCodeAt(a)),be(e)||46===e){if(46!==e){if(o=48===e,a+=1,e=i.charCodeAt(a),o&&a=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(e));)t.index+=1}function we(t){var e=t.max,n=t.pathValue,i=t.index,r=n.charCodeAt(i),a=de[n[i].toLowerCase()];if(t.segmentStart=i,function(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:return!0;default:return!1}}(r))if(t.index+=1,Ee(t),t.data=[],a){for(;;){for(var o=a;o>0;o-=1){if(97!=(32|r)||3!==o&&4!==o?_e(t):ye(t),t.err.length)return;t.data.push(t.param),Ee(t),t.index=t.max)break;if(!xe(n.charCodeAt(t.index)))break}ve(t)}else ve(t);else t.err='[path-util]: Invalid path value "'.concat(n[i],'" is not a path command')}var Te=function(t){this.pathValue=t,this.segments=[],this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""};function Se(t){if(pe(t))return[].concat(t);var e=function(t){if(fe(t))return[].concat(t);var e=new Te(t);for(Ee(e);e.index=a)o={x:n,y:i};else{var s=Ae([t,e],[n,i],r/a);o={x:s[0],y:s[1]}}return{length:a,point:o,min:{x:Math.min(t,n),y:Math.min(e,i)},max:{x:Math.max(t,n),y:Math.max(e,i)}}}function Ne(t,e){var n=t.x,i=t.y,r=e.x,a=e.y,o=n*r+i*a,s=Math.sqrt((Math.pow(n,2)+Math.pow(i,2))*(Math.pow(r,2)+Math.pow(a,2)));return(n*a-i*r<0?-1:1)*Math.acos(o/s)}function Pe(t,e,n,i,r,a,o,s,l,u){var c=Math.abs,h=Math.sin,d=Math.cos,f=Math.sqrt,p=Math.PI,g=c(n),m=c(i),v=(r%360+360)%360*(p/180);if(t===s&&e===l)return{x:t,y:e};if(0===g||0===m)return Oe(t,e,s,l,u).point;var y=(t-s)/2,x=(e-l)/2,b={x:d(v)*y+h(v)*x,y:-h(v)*y+d(v)*x},_=Math.pow(b.x,2)/Math.pow(g,2)+Math.pow(b.y,2)/Math.pow(m,2);_>1&&(g*=f(_),m*=f(_));var E=(Math.pow(g,2)*Math.pow(m,2)-Math.pow(g,2)*Math.pow(b.y,2)-Math.pow(m,2)*Math.pow(b.x,2))/(Math.pow(g,2)*Math.pow(b.y,2)+Math.pow(m,2)*Math.pow(b.x,2)),w=(a!==o?1:-1)*f(E=E<0?0:E),T=w*(g*b.y/m),S=w*(-m*b.x/g),M=d(v)*T-h(v)*S+(t+s)/2,C=h(v)*T+d(v)*S+(e+l)/2,A={x:(b.x-T)/g,y:(b.y-S)/m},O=Ne({x:1,y:0},A),N=Ne(A,{x:(-b.x-T)/g,y:(-b.y-S)/m});!o&&N>0?N-=2*p:o&&N<0&&(N+=2*p);var P=O+(N%=2*p)*u,L=g*d(P),R=m*h(P);return{x:d(v)*L-h(v)*R+M,y:h(v)*L+d(v)*R+C}}function Le(t,e,n,i,r,a,o,s,l,u,c){var h,d=c.bbox,f=void 0===d||d,p=c.length,g=void 0===p||p,m=c.sampleSize,v=void 0===m?30:m,y="number"==typeof u,x=t,b=e,_=0,E=[x,b,_],w=[x,b],T={x:0,y:0},S=[{x:x,y:b}];y&&u<=0&&(T={x:x,y:b});for(var M=0;M<=v;M+=1){if(x=(h=Pe(t,e,n,i,r,a,o,s,l,M/v)).x,b=h.y,f&&S.push({x:x,y:b}),g&&(_+=se(w,[x,b])),w=[x,b],y&&_>=u&&u>E[2]){var C=(_-u)/(_-E[2]);T={x:w[0]*(1-C)+E[0]*C,y:w[1]*(1-C)+E[1]*C}}E=[x,b,_]}return y&&u>=_&&(T={x:s,y:l}),{length:_,point:T,min:{x:Math.min.apply(null,S.map((function(t){return t.x}))),y:Math.min.apply(null,S.map((function(t){return t.y})))},max:{x:Math.max.apply(null,S.map((function(t){return t.x}))),y:Math.max.apply(null,S.map((function(t){return t.y})))}}}function Re(t,e,n,i,r,a,o,s,l){var u=1-l;return{x:Math.pow(u,3)*t+3*Math.pow(u,2)*l*n+3*u*Math.pow(l,2)*r+Math.pow(l,3)*o,y:Math.pow(u,3)*e+3*Math.pow(u,2)*l*i+3*u*Math.pow(l,2)*a+Math.pow(l,3)*s}}function De(t,e,n,i,r,a,o,s,l,u){var c,h=u.bbox,d=void 0===h||h,f=u.length,p=void 0===f||f,g=u.sampleSize,m=void 0===g?10:g,v="number"==typeof l,y=t,x=e,b=0,_=[y,x,b],E=[y,x],w={x:0,y:0},T=[{x:y,y:x}];v&&l<=0&&(w={x:y,y:x});for(var S=0;S<=m;S+=1){if(y=(c=Re(t,e,n,i,r,a,o,s,S/m)).x,x=c.y,d&&T.push({x:y,y:x}),p&&(b+=se(E,[y,x])),E=[y,x],v&&b>=l&&l>_[2]){var M=(b-l)/(b-_[2]);w={x:E[0]*(1-M)+_[0]*M,y:E[1]*(1-M)+_[1]*M}}_=[y,x,b]}return v&&l>=b&&(w={x:o,y:s}),{length:b,point:w,min:{x:Math.min.apply(null,T.map((function(t){return t.x}))),y:Math.min.apply(null,T.map((function(t){return t.y})))},max:{x:Math.max.apply(null,T.map((function(t){return t.x}))),y:Math.max.apply(null,T.map((function(t){return t.y})))}}}function ke(t,e,n,i,r,a,o){var s=1-o;return{x:Math.pow(s,2)*t+2*s*o*n+Math.pow(o,2)*r,y:Math.pow(s,2)*e+2*s*o*i+Math.pow(o,2)*a}}function Ie(t,e,n,i,r,a,o,s){var l,u=s.bbox,c=void 0===u||u,h=s.length,d=void 0===h||h,f=s.sampleSize,p=void 0===f?10:f,g="number"==typeof o,m=t,v=e,y=0,x=[m,v,y],b=[m,v],_={x:0,y:0},E=[{x:m,y:v}];g&&o<=0&&(_={x:m,y:v});for(var w=0;w<=p;w+=1){if(m=(l=ke(t,e,n,i,r,a,w/p)).x,v=l.y,c&&E.push({x:m,y:v}),d&&(y+=se(b,[m,v])),b=[m,v],g&&y>=o&&o>x[2]){var T=(y-o)/(y-x[2]);_={x:b[0]*(1-T)+x[0]*T,y:b[1]*(1-T)+x[1]*T}}x=[m,v,y]}return g&&o>=y&&(_={x:r,y:a}),{length:y,point:_,min:{x:Math.min.apply(null,E.map((function(t){return t.x}))),y:Math.min.apply(null,E.map((function(t){return t.y})))},max:{x:Math.max.apply(null,E.map((function(t){return t.x}))),y:Math.max.apply(null,E.map((function(t){return t.y})))}}}function Be(t,e,n){for(var i,r,a,o,s,l,u,c,h,d=Ce(t),f="number"==typeof e,p=[],g=0,m=0,v=0,y=0,x=[],b=[],_=0,E={x:0,y:0},w=E,T=E,S=E,M=0,C=0,A=d.length;C=e&&(S=T),b.push(w),x.push(E),M+=_,g=(l="Z"!==c?h.slice(-2):[v,y])[0],m=l[1];return f&&e>=M&&(S={x:g,y:m}),{length:M,point:S,min:{x:Math.min.apply(null,x.map((function(t){return t.x}))),y:Math.min.apply(null,x.map((function(t){return t.y})))},max:{x:Math.max.apply(null,b.map((function(t){return t.x}))),y:Math.max.apply(null,b.map((function(t){return t.y})))}}}var Fe=n(1623),ze=function(t){if((0,Fe.Z)(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])};function Ge(t){if(!Array.isArray(t))return-1/0;var e=t.length;if(!e)return-1/0;for(var n=t[0],i=1;i7){t[n].shift();for(var i=t[n],r=n;i.length;)e[n]="A",t.splice(r+=1,0,["C"].concat(i.splice(0,6)));t.splice(n,1)}}function Ve(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}}function Ze(t,e,n,i,r,a,o,s,l,u){var c,h,d,f,p,g=t,m=e,v=n,y=i,x=s,b=l,_=120*Math.PI/180,E=Math.PI/180*(+r||0),w=[];if(u)h=u[0],d=u[1],f=u[2],p=u[3];else{g=(c=Ve(g,m,-E)).x,m=c.y;var T=(g-(x=(c=Ve(x,b,-E)).x))/2,S=(m-(b=c.y))/2,M=T*T/(v*v)+S*S/(y*y);M>1&&(v*=M=Math.sqrt(M),y*=M);var C=v*v,A=y*y,O=(a===o?-1:1)*Math.sqrt(Math.abs((C*A-C*S*S-A*T*T)/(C*S*S+A*T*T)));f=O*v*S/y+(g+x)/2,p=O*-y*T/v+(m+b)/2,h=Math.asin(((m-p)/y*Math.pow(10,9)>>0)/Math.pow(10,9)),d=Math.asin(((b-p)/y*Math.pow(10,9)>>0)/Math.pow(10,9)),h=gd&&(h-=2*Math.PI),!o&&d>h&&(d-=2*Math.PI)}var N=d-h;if(Math.abs(N)>_){var P=d,L=x,R=b;d=h+_*(o&&d>h?1:-1),w=Ze(x=f+v*Math.cos(d),b=p+y*Math.sin(d),v,y,r,0,o,L,R,[d,P,f,p])}N=d-h;var D=Math.cos(h),k=Math.sin(h),I=Math.cos(d),B=Math.sin(d),F=Math.tan(N/4),z=4/3*v*F,G=4/3*y*F,j=[g,m],U=[g+z*k,m-G*D],H=[x+z*B,b-G*I],V=[x,b];if(U[0]=2*j[0]-U[0],U[1]=2*j[1]-U[1],u)return U.concat(H,V,w);for(var Z=[],W=0,X=(w=U.concat(H,V,w)).length;W=d[e],f[e]-=p?1:0,p?t.ss:[t.s]})).flat()}));return g[0].length===g[1].length?g:$e(g[0],g[1],h)}function Ke(t){return function(t){var e=0,n=0,i=0;return Ye(t).map((function(t){var r;if("M"===t[0])return e=t[1],n=t[2],0;var a=t.slice(1),o=a[0],s=a[1],l=a[2],u=a[3],c=a[4],h=a[5];return i=function(t,e,n,i,r,a,o,s){return 3*((s-e)*(n+r)-(o-t)*(i+a)+i*(t-r)-n*(e-a)+s*(r+t/3)-o*(a+e/3))/20}(e,n,o,s,l,u,c,h),r=t.slice(-2),e=r[0],n=r[1],i})).reduce((function(t,e){return t+e}),0)}(t)>=0}var Qe=function(t){return void 0===t},Je=n(25737),tn=function(t){return(0,Je.Z)(t,"Boolean")},en=n(77817),nn=n(85266);function rn(t,e,n){return Be(t,e,(0,he.pi)((0,he.pi)({},n),{bbox:!1,length:!0})).point}var an=n(80962);function on(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=(0,u.Z)(t)););return t}function sn(){return sn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=on(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},sn.apply(null,arguments)}function ln(t,e,n,i){var r=sn((0,u.Z)(1&i?t.prototype:t),e,n);return 2&i&&"function"==typeof r?function(t){return r.apply(n,t)}:r}function un(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function cn(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function hn(){}var dn=.7,fn=1/dn,pn="\\s*([+-]?\\d+)\\s*",gn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vn=/^#([0-9a-f]{3,8})$/,yn=new RegExp("^rgb\\(".concat(pn,",").concat(pn,",").concat(pn,"\\)$")),xn=new RegExp("^rgb\\(".concat(mn,",").concat(mn,",").concat(mn,"\\)$")),bn=new RegExp("^rgba\\(".concat(pn,",").concat(pn,",").concat(pn,",").concat(gn,"\\)$")),_n=new RegExp("^rgba\\(".concat(mn,",").concat(mn,",").concat(mn,",").concat(gn,"\\)$")),En=new RegExp("^hsl\\(".concat(gn,",").concat(mn,",").concat(mn,"\\)$")),wn=new RegExp("^hsla\\(".concat(gn,",").concat(mn,",").concat(mn,",").concat(gn,"\\)$")),Tn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Sn(){return this.rgb().formatHex()}function Mn(){return this.rgb().formatRgb()}function Cn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=vn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?An(e):3===n?new Pn(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?On(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?On(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=yn.exec(t))?new Pn(e[1],e[2],e[3],1):(e=xn.exec(t))?new Pn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=bn.exec(t))?On(e[1],e[2],e[3],e[4]):(e=_n.exec(t))?On(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=En.exec(t))?Bn(e[1],e[2]/100,e[3]/100,1):(e=wn.exec(t))?Bn(e[1],e[2]/100,e[3]/100,e[4]):Tn.hasOwnProperty(t)?An(Tn[t]):"transparent"===t?new Pn(NaN,NaN,NaN,0):null}function An(t){return new Pn(t>>16&255,t>>8&255,255&t,1)}function On(t,e,n,i){return i<=0&&(t=e=n=NaN),new Pn(t,e,n,i)}function Nn(t){return t instanceof hn||(t=Cn(t)),t?new Pn((t=t.rgb()).r,t.g,t.b,t.opacity):new Pn}function Pn(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function Ln(){return"#".concat(In(this.r)).concat(In(this.g)).concat(In(this.b))}function Rn(){var t=Dn(this.opacity);return"".concat(1===t?"rgb(":"rgba(").concat(kn(this.r),", ").concat(kn(this.g),", ").concat(kn(this.b)).concat(1===t?")":", ".concat(t,")"))}function Dn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function kn(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function In(t){return((t=kn(t))<16?"0":"")+t.toString(16)}function Bn(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new zn(t,e,n,i)}function Fn(t){if(t instanceof zn)return new zn(t.h,t.s,t.l,t.opacity);if(t instanceof hn||(t=Cn(t)),!t)return new zn;if(t instanceof zn)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),o=NaN,s=a-r,l=(a+r)/2;return s?(o=e===a?(n-i)/s+6*(n0&&l<1?0:o,new zn(o,s,l,t.opacity)}function zn(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Gn(t){return(t=(t||0)%360)<0?t+360:t}function jn(t){return Math.max(0,Math.min(1,t||0))}function Un(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Hn(t,e,n,i){var r=t-n,a=e-i;return Math.sqrt(r*r+a*a)}function Vn(t,e){var n=Math.min.apply(Math,(0,he.ev)([],(0,he.CR)(t),!1)),i=Math.min.apply(Math,(0,he.ev)([],(0,he.CR)(e),!1));return{x:n,y:i,width:Math.max.apply(Math,(0,he.ev)([],(0,he.CR)(t),!1))-n,height:Math.max.apply(Math,(0,he.ev)([],(0,he.CR)(e),!1))-i}}function Zn(t,e,n,i,r,a){return n*Math.cos(r)*Math.cos(a)-i*Math.sin(r)*Math.sin(a)+t}function Wn(t,e,n,i,r,a){return n*Math.sin(r)*Math.cos(a)+i*Math.cos(r)*Math.sin(a)+e}function Xn(t,e,n,i,r,a,o){for(var s=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,i,r),l=1/0,u=-1/0,c=[a,o],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var d=s+h;au&&(u=f)}var p=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,i,r),g=1/0,m=-1/0,v=[a,o];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var y=p+h;am&&(m=x)}return{x:l,y:g,width:u-l,height:m-g}}un(hn,Cn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Sn,formatHex:Sn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Fn(this).formatHsl()},formatRgb:Mn,toString:Mn}),un(Pn,(function(t,e,n,i){return 1===arguments.length?Nn(t):new Pn(t,e,n,null==i?1:i)}),cn(hn,{brighter:function(t){return t=null==t?fn:Math.pow(fn,t),new Pn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?dn:Math.pow(dn,t),new Pn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new Pn(kn(this.r),kn(this.g),kn(this.b),Dn(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ln,formatHex:Ln,formatHex8:function(){return"#".concat(In(this.r)).concat(In(this.g)).concat(In(this.b)).concat(In(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:Rn,toString:Rn})),un(zn,(function(t,e,n,i){return 1===arguments.length?Fn(t):new zn(t,e,n,null==i?1:i)}),cn(hn,{brighter:function(t){return t=null==t?fn:Math.pow(fn,t),new zn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?dn:Math.pow(dn,t),new zn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Pn(Un(t>=240?t-240:t+120,r,i),Un(t,r,i),Un(t<120?t+240:t-120,r,i),this.opacity)},clamp:function(){return new zn(Gn(this.h),jn(this.s),jn(this.l),Dn(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=Dn(this.opacity);return"".concat(1===t?"hsl(":"hsla(").concat(Gn(this.h),", ").concat(100*jn(this.s),"%, ").concat(100*jn(this.l),"%").concat(1===t?")":", ".concat(t,")"))}}));function Yn(t,e,n,i,r,a){var o=-1,s=1/0,l=[n,i],u=20;a&&a>200&&(u=a/10);for(var c=1/u,h=c/10,d=0;d<=u;d++){var f=d*c,p=[r.apply(void 0,(0,he.ev)([],(0,he.CR)(t.concat([f])),!1)),r.apply(void 0,(0,he.ev)([],(0,he.CR)(e.concat([f])),!1))];(y=Hn(l[0],l[1],p[0],p[1]))=0&&y0&&(r=1/Math.sqrt(r)),t[0]=e[0]*r,t[1]=e[1]*r}(s,s);var l=[r-t,a-e];return Math.abs(function(t,e){return t[0]*e[0]+t[1]*e[1]}(l,s))}function Qn(t,e,n,i,r){var a=1-r;return a*a*a*t+3*e*r*a*a+3*n*r*r*a+i*r*r*r}function Jn(t,e,n,i){var r,a,o,s=-3*t+9*e-9*n+3*i,l=6*t-12*e+6*n,u=3*e-3*t,c=[];if(je(s,0))je(l,0)||(r=-u/l)>=0&&r<=1&&c.push(r);else{var h=l*l-4*s*u;je(h,0)?c.push(-l/(2*s)):h>0&&(a=(-l-(o=Math.sqrt(h)))/(2*s),(r=(-l+o)/(2*s))>=0&&r<=1&&c.push(r),a>=0&&a<=1&&c.push(a))}return c}function ti(t,e,n,i,r,a,o,s){for(var l=[t,o],u=[e,s],c=Jn(t,n,r,o),h=Jn(e,i,a,s),d=0;d=0?[r]:[]}function ai(t,e,n,i,r,a){var o=ri(t,n,r)[0],s=ri(e,i,a)[0],l=[t,r],u=[e,a];return void 0!==o&&l.push(ii(t,n,r,o)),void 0!==s&&u.push(ii(e,i,a,s)),Vn(l,u)}function oi(t,e,n,i,r,a,o,s){var l=function(t,e,n,i,r,a,o,s){return Yn([t,n,r],[e,i,a],o,s,ii)}(t,e,n,i,r,a,o,s);return Hn(l.x,l.y,o,s)}var si=n(50204),li=n(20959),ui=n(36541);function ci(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=(0,ui.Z)(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}var hi=n(19149),di=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self,{exports:{}});di.exports=function(){function t(t,n,r,a,o){e(t,n,r||0,a||t.length-1,o||i)}function e(t,i,r,a,o){for(;a>r;){if(a-r>600){var s=a-r+1,l=i-r+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);e(t,i,Math.max(r,Math.floor(i-l*c/s+h)),Math.min(a,Math.floor(i+(s-l)*c/s+h)),o)}var d=t[i],f=r,p=a;for(n(t,r,i),o(t[a],d)>0&&n(t,r,a);f0;)p--}0===o(t[r],d)?n(t,r,p):n(t,++p,a),p<=i&&(r=p+1),i<=p&&(a=p-1)}}function n(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function i(t,e){return te?1:0}var r=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function a(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i=t.minX&&e.maxY>=t.minY}function v(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(e,n,i,r,a){for(var o=[n,i];o.length;)if(!((i=o.pop())-(n=o.pop())<=r)){var s=n+Math.ceil((i-n)/r/2)*r;t(e,s,n,i,a),o.push(n,s,s,i)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(t){var e=this.data,n=[];if(!m(t,e))return n;for(var i=this.toBBox,r=[];e;){for(var a=0;a=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)},r.prototype._split=function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var a=this._chooseSplitIndex(n,r,i),s=v(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(t,e){this.data=v([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(t,e,n){for(var i,r=1/0,a=1/0,o=e;o<=n-e;o++){var l=s(t,0,o,this.toBBox),u=s(t,o,n,this.toBBox),c=p(l,u),d=h(l)+h(u);c=e;f--){var p=t.children[f];l(o,t.leaf?r(p):p),u+=d(o)}return u},r.prototype._adjustParentBBoxes=function(t,e,n){for(var i=n;i>=0;i--)l(e[i],t)},r.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},r}();var fi=di.exports,pi=function(t){return t.GROUP="g",t.FRAGMENT="fragment",t.CIRCLE="circle",t.ELLIPSE="ellipse",t.IMAGE="image",t.RECT="rect",t.LINE="line",t.POLYLINE="polyline",t.POLYGON="polygon",t.TEXT="text",t.PATH="path",t.HTML="html",t.MESH="mesh",t}({}),gi=function(t){return t[t.ZERO=0]="ZERO",t[t.NEGATIVE_ONE=1]="NEGATIVE_ONE",t}({}),mi=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t),this.plugins=[]}),[{key:"addRenderingPlugin",value:function(t){this.plugins.push(t),this.context.renderingPlugins.push(t)}},{key:"removeAllRenderingPlugins",value:function(){var t=this;this.plugins.forEach((function(e){var n=t.context.renderingPlugins.indexOf(e);n>=0&&t.context.renderingPlugins.splice(n,1)}))}}])}(),vi=function(){return(0,s.Z)((function t(e){(0,o.Z)(this,t),this.clipSpaceNearZ=gi.NEGATIVE_ONE,this.plugins=[],this.config=(0,a.Z)({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1,enableSizeAttenuation:!0,enableRenderingOptimization:!1},e)}),[{key:"registerPlugin",value:function(t){-1===this.plugins.findIndex((function(e){return e===t}))&&this.plugins.push(t)}},{key:"unregisterPlugin",value:function(t){var e=this.plugins.findIndex((function(e){return e===t}));e>-1&&this.plugins.splice(e,1)}},{key:"getPlugins",value:function(){return this.plugins}},{key:"getPlugin",value:function(t){return this.plugins.find((function(e){return e.name===t}))}},{key:"getConfig",value:function(){return this.config}},{key:"setConfig",value:function(t){Object.assign(this.config,t)}}])}(),yi=T,xi=E,bi=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},_i=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},Ei=C,wi=I,Ti=function(){function t(){(0,o.Z)(this,t),this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return(0,s.Z)(t,[{key:"update",value:function(t,e){xi(this.center,t),xi(this.halfExtents,e),wi(this.min,this.center,this.halfExtents),yi(this.max,this.center,this.halfExtents)}},{key:"setMinMax",value:function(t,e){yi(this.center,e,t),Ei(this.center,this.center,.5),wi(this.halfExtents,e,t),Ei(this.halfExtents,this.halfExtents,.5),xi(this.min,t),xi(this.max,e)}},{key:"getMin",value:function(){return this.min}},{key:"getMax",value:function(){return this.max}},{key:"add",value:function(e){if(!t.isEmpty(e))if(t.isEmpty(this))this.setMinMax(e.getMin(),e.getMax());else{var n=this.center,i=n[0],r=n[1],a=n[2],o=this.halfExtents,s=o[0],l=o[1],u=o[2],c=i-s,h=i+s,d=r-l,f=r+l,p=a-u,g=a+u,m=e.center,v=m[0],y=m[1],x=m[2],b=e.halfExtents,_=b[0],E=b[1],w=b[2],T=v-_,S=v+_,M=y-E,C=y+E,A=x-w,O=x+w;Th&&(h=S),Mf&&(f=C),Ag&&(g=O),n[0]=.5*(c+h),n[1]=.5*(d+f),n[2]=.5*(p+g),o[0]=.5*(h-c),o[1]=.5*(f-d),o[2]=.5*(g-p),this.min[0]=c,this.min[1]=d,this.min[2]=p,this.max[0]=h,this.max[1]=f,this.max[2]=g}}},{key:"setFromTransformedAABB",value:function(t,e){var n=this.center,i=this.halfExtents,r=t.center,a=t.halfExtents,o=e[0],s=e[4],l=e[8],u=e[1],c=e[5],h=e[9],d=e[2],f=e[6],p=e[10],g=Math.abs(o),m=Math.abs(s),v=Math.abs(l),y=Math.abs(u),x=Math.abs(c),b=Math.abs(h),_=Math.abs(d),E=Math.abs(f),w=Math.abs(p);n[0]=e[12]+o*r[0]+s*r[1]+l*r[2],n[1]=e[13]+u*r[0]+c*r[1]+h*r[2],n[2]=e[14]+d*r[0]+f*r[1]+p*r[2],i[0]=g*a[0]+m*a[1]+v*a[2],i[1]=y*a[0]+x*a[1]+b*a[2],i[2]=_*a[0]+E*a[1]+w*a[2],wi(this.min,n,i),yi(this.max,n,i)}},{key:"intersects",value:function(t){var e=this.getMax(),n=this.getMin(),i=t.getMax(),r=t.getMin();return n[0]<=i[0]&&e[0]>=r[0]&&n[1]<=i[1]&&e[1]>=r[1]&&n[2]<=i[2]&&e[2]>=r[2]}},{key:"intersection",value:function(e){if(!this.intersects(e))return null;var n=new t,i=bi([0,0,0],this.getMin(),e.getMin()),r=_i([0,0,0],this.getMax(),e.getMax());return n.setMinMax(i,r),n}},{key:"getNegativeFarPoint",value:function(t){return 273===t.pnVertexFlag?xi([0,0,0],this.min):272===t.pnVertexFlag?[this.min[0],this.min[1],this.max[2]]:257===t.pnVertexFlag?[this.min[0],this.max[1],this.min[2]]:256===t.pnVertexFlag?[this.min[0],this.max[1],this.max[2]]:17===t.pnVertexFlag?[this.max[0],this.min[1],this.min[2]]:16===t.pnVertexFlag?[this.max[0],this.min[1],this.max[2]]:1===t.pnVertexFlag?[this.max[0],this.max[1],this.min[2]]:[this.max[0],this.max[1],this.max[2]]}},{key:"getPositiveFarPoint",value:function(t){return 273===t.pnVertexFlag?xi([0,0,0],this.max):272===t.pnVertexFlag?[this.max[0],this.max[1],this.min[2]]:257===t.pnVertexFlag?[this.max[0],this.min[1],this.max[2]]:256===t.pnVertexFlag?[this.max[0],this.min[1],this.min[2]]:17===t.pnVertexFlag?[this.min[0],this.max[1],this.max[2]]:16===t.pnVertexFlag?[this.min[0],this.max[1],this.min[2]]:1===t.pnVertexFlag?[this.min[0],this.min[1],this.max[2]]:[this.min[0],this.min[1],this.min[2]]}}],[{key:"isEmpty",value:function(t){return!t||0===t.halfExtents[0]&&0===t.halfExtents[1]&&0===t.halfExtents[2]}}])}(),Si=function(){return(0,s.Z)((function t(e,n){(0,o.Z)(this,t),this.distance=e||0,this.normal=n||_(0,1,0),this.updatePNVertexFlag()}),[{key:"updatePNVertexFlag",value:function(){this.pnVertexFlag=(Number(this.normal[0]>=0)<<8)+(Number(this.normal[1]>=0)<<4)+Number(this.normal[2]>=0)}},{key:"distanceToPoint",value:function(t){return O(t,this.normal)-this.distance}},{key:"normalize",value:function(){var t=1/F(this.normal);C(this.normal,this.normal,t),this.distance*=t}},{key:"intersectsLine",value:function(t,e,n){var i=this.distanceToPoint(t),r=i/(i-this.distanceToPoint(e)),a=r>=0&&r<=1;return a&&n&&P(n,t,e,r),a}}])}(),Mi=function(t){return t[t.OUTSIDE=4294967295]="OUTSIDE",t[t.INSIDE=0]="INSIDE",t[t.INDETERMINATE=2147483647]="INDETERMINATE",t}({}),Ci=function(){return(0,s.Z)((function t(e){if((0,o.Z)(this,t),this.planes=[],e)this.planes=e;else for(var n=0;n<6;n++)this.planes.push(new Si)}),[{key:"extractFromVPMatrix",value:function(t){var e=(0,p.Z)(t,16),n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],g=e[12],m=e[13],v=e[14],y=e[15];w(this.planes[0].normal,a-n,u-o,f-c),this.planes[0].distance=y-g,w(this.planes[1].normal,a+n,u+o,f+c),this.planes[1].distance=y+g,w(this.planes[2].normal,a+i,u+s,f+h),this.planes[2].distance=y+m,w(this.planes[3].normal,a-i,u-s,f-h),this.planes[3].distance=y-m,w(this.planes[4].normal,a-r,u-l,f-d),this.planes[4].distance=y-v,w(this.planes[5].normal,a+r,u+l,f+d),this.planes[5].distance=y+v,this.planes.forEach((function(t){t.normalize(),t.updatePNVertexFlag()}))}}])}(),Ai=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,o.Z)(this,t),this.x=0,this.y=0,this.x=e,this.y=n}return(0,s.Z)(t,[{key:"clone",value:function(){return new t(this.x,this.y)}},{key:"copyFrom",value:function(t){this.x=t.x,this.y=t.y}}])}(),Oi=function(){function t(e,n,i,r){(0,o.Z)(this,t),this.x=e,this.y=n,this.width=i,this.height=r,this.left=e,this.right=e+i,this.top=n,this.bottom=n+r}return(0,s.Z)(t,[{key:"toJSON",value:function(){}}],[{key:"fromRect",value:function(e){return new t(e.x,e.y,e.width,e.height)}},{key:"applyTransform",value:function(e,n){var i=G(e.x,e.y,0,1),r=G(e.x+e.width,e.y,0,1),a=G(e.x,e.y+e.height,0,1),o=G(e.x+e.width,e.y+e.height,0,1),s=z(),l=z(),u=z(),c=z();j(s,i,n),j(l,r,n),j(u,a,n),j(c,o,n);var h=Math.min(s[0],l[0],u[0],c[0]),d=Math.min(s[1],l[1],u[1],c[1]),f=Math.max(s[0],l[0],u[0],c[0]),p=Math.max(s[1],l[1],u[1],c[1]);return t.fromRect({x:h,y:d,width:f-h,height:p-d})}}])}(),Ni="Method not implemented.",Pi="Use document.documentElement instead.";function Li(t){return void 0===t?0:t>360||t<-360?t%360:t}var Ri=y();function Di(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return Array.isArray(t)&&3===t.length?i?x(t):E(Ri,t):(0,oe.Z)(t)?i?_(t,e,n):w(Ri,t,e,n):i?_(t[0],t[1]||e,t[2]||n):w(Ri,t[0],t[1]||e,t[2]||n)}var ki=Math.PI/180;function Ii(t){return t*ki}var Bi=180/Math.PI;function Fi(t){return t*Bi}var zi=Math.PI/2;function Gi(t,e){return 16===e.length?function(t,e){var n,i,r=pt(y(),e),a=(0,p.Z)(r,3),o=a[0],s=a[1],l=a[2],u=Math.asin(-e[2]/o);return u-zi?(n=Math.atan2(e[6]/s,e[10]/l),i=Math.atan2(e[1]/o,e[0]/o)):(i=0,n=-Math.atan2(e[4]/s,e[5]/s)):(i=0,n=Math.atan2(e[4]/s,e[5]/s)),t[0]=n,t[1]=u,t[2]=i,t}(t,e):function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=i*i,s=r*r,l=a*a,u=n*n+o+s+l,c=n*a-i*r;return c>.499995*u?(t[0]=zi,t[1]=2*Math.atan2(i,n),t[2]=0):c<-.499995*u?(t[0]=-zi,t[1]=2*Math.atan2(i,n),t[2]=0):(t[0]=Math.asin(2*(n*r-a*i)),t[1]=Math.atan2(2*(n*a+i*r),1-2*(s+l)),t[2]=Math.atan2(2*(n*i+r*a),1-2*(o+s))),t}(t,e)}function ji(t,e,n,i,r){var a,o,s,l,u,c,h,d,f,p,g=Math.cos(t),m=Math.sin(t);return a=i*g,o=r*m,s=0,l=-i*m,u=r*g,c=0,h=e,d=n,f=1,(p=new v(9))[0]=a,p[1]=o,p[2]=s,p[3]=l,p[4]=u,p[5]=c,p[6]=h,p[7]=d,p[8]=f,p}function Ui(t){var e=t[0],n=t[1],i=t[3],r=t[4],a=Math.sqrt(e*e+n*n),o=Math.sqrt(i*i+r*r);if(e*r-n*i<0&&(e7&&void 0!==arguments[7]&&arguments[7],c=2*a,h=n-e,d=i-r,f=c/h,p=c/d,g=(n+e)/h,m=(i+r)/d,v=o-a,y=o*a;u?(s=-o/v,l=-y/v):(s=-(o+a)/v,l=-2*y/v),t[0]=f,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=p,t[6]=0,t[7]=0,t[8]=g,t[9]=m,t[10]=s,t[11]=-1,t[12]=0,t[13]=0,t[14]=l,t[15]=0}(this.projectionMatrix,l,l+s,a-o,a,t,this.far,this.clipSpaceNearZ===gi.ZERO),q(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this}},{key:"setOrthographic",value:function(t,e,n,i,r,a){var o;this.projectionMode=Ki.ORTHOGRAPHIC,this.rright=e,this.left=t,this.top=n,this.bottom=i,this.near=r,this.far=a;var s=(this.rright-this.left)/(2*this.zoom),l=(this.top-this.bottom)/(2*this.zoom),u=(this.rright+this.left)/2,c=(this.top+this.bottom)/2,h=u-s,d=u+s,f=c+l,p=c-l;if(null!==(o=this.view)&&void 0!==o&&o.enabled){var g=(this.rright-this.left)/this.view.fullWidth/this.zoom,m=(this.top-this.bottom)/this.view.fullHeight/this.zoom;d=(h+=g*this.view.offsetX)+g*this.view.width,p=(f-=m*this.view.offsetY)-m*this.view.height}return this.clipSpaceNearZ===gi.NEGATIVE_ONE?St(this.projectionMatrix,h,d,f,p,r,a):Mt(this.projectionMatrix,h,d,f,p,r,a),q(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this}},{key:"setPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.position[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.position[2],i=Di(t,e,n);return this._setPosition(i),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this}},{key:"setFocalPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.focalPoint[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.focalPoint[2],i=_(0,1,0);if(this.focalPoint=Di(t,e,n),this.trackingMode===$i.CINEMATIC){var r=S(y(),this.focalPoint,this.position);t=r[0],e=r[1],n=r[2];var a=b(r),o=Fi(Math.asin(e/a)),s=90+Fi(Math.atan2(n,t)),l=U();it(l,l,Ii(s)),nt(l,l,Ii(o)),i=L(y(),[0,1,0],l)}return q(this.matrix,Ct(U(),this.position,this.focalPoint,i)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this}},{key:"getDistance",value:function(){return this.distance}},{key:"getDistanceVector",value:function(){return this.distanceVector}},{key:"setDistance",value:function(t){if(this.distance===t||t<0)return this;this.distance=t,this.distance=hr.kUnitType&&this.getType()<=hr.kClampType}}],[{key:"isAngle",value:function(t){return t===or.kDegrees||t===or.kRadians||t===or.kGradians||t===or.kTurns}},{key:"isLength",value:function(t){return t>=or.kEms&&t1&&void 0!==arguments[1]?arguments[1]:or.kNumber;return(0,o.Z)(this,e),n=d(this,e),i="string"==typeof r?dr(r):r,n.unit=i,n.value=t,n}return(0,f.Z)(e,t),(0,s.Z)(e,[{key:"clone",value:function(){return new e(this.value,this.unit)}},{key:"equals",value:function(t){var e=t;return this.value===e.value&&this.unit===e.unit}},{key:"getType",value:function(){return hr.kUnitType}},{key:"convertTo",value:function(t){if(this.unit===t)return new e(this.value,this.unit);var n=br(this.unit);if(n!==br(t)||n===or.kUnknown)return null;var i=fr(this.unit)/fr(t);return new e(this.value*i,t)}},{key:"buildCSSText",value:function(t,e,n){var i;switch(this.unit){case or.kUnknown:break;case or.kInteger:i=Number(this.value).toFixed(0);break;case or.kNumber:case or.kPercentage:case or.kEms:case or.kRems:case or.kPixels:case or.kDegrees:case or.kRadians:case or.kGradians:case or.kMilliseconds:case or.kSeconds:case or.kTurns:var r=this.value,a=pr(this.unit);if(r<-999999||r>999999){var o=pr(this.unit);i=!Number.isFinite(r)||Number.isNaN(r)?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(Number.isFinite(t)?"NaN":t>0?"infinity":"-infinity")+e}(r,o):r+(o||"")}else i="".concat(r).concat(a)}return n+=i}}])}(gr),Er=new _r(0,"px");new _r(1,"px");var wr=new _r(0,"deg"),Tr=function(t){function e(t,n,i){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,o.Z)(this,e),(r=d(this,e,["rgb"])).r=t,r.g=n,r.b=i,r.alpha=a,r.isNone=s,r}return(0,f.Z)(e,t),(0,s.Z)(e,[{key:"clone",value:function(){return new e(this.r,this.g,this.b,this.alpha)}},{key:"buildCSSText",value:function(t,e,n){return"".concat(n,"rgba(").concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")}}])}(mr),Sr=new xr("unset"),Mr={"":Sr,unset:Sr,initial:new xr("initial"),inherit:new xr("inherit")},Cr=new Tr(0,0,0,0,!0),Ar=new Tr(0,0,0,0),Or=ar((function(t,e,n,i){return new Tr(t,e,n,i)}),(function(t,e,n,i){return"rgba(".concat(t,",").concat(e,",").concat(n,",").concat(i,")")})),Nr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:or.kNumber;return new _r(t,e)};function Pr(t){var e=t.type,n=t.value;return"hex"===e?"#".concat(n):"literal"===e?n:"rgb"===e?"rgb(".concat(n.join(","),")"):"rgba(".concat(n.join(","),")")}new _r(50,"%");var Lr=function(){var t=/^(linear\-gradient)/i,e=/^(repeating\-linear\-gradient)/i,n=/^(radial\-gradient)/i,i=/^(repeating\-radial\-gradient)/i,r=/^(conic\-gradient)/i,a=/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,o=/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,s=/^(left|center|right|top|bottom)/i,l=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,u=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,c=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,h=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,d=/^\(/,f=/^\)/,p=/^,/,g=/^\#([0-9a-fA-F]+)/,m=/^([a-zA-Z]+)/,v=/^rgb/i,y=/^rgba/i,x=/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,b="";function _(t){throw new Error("".concat(b,": ").concat(t))}function E(){var t=L(w);return b.length>0&&_("Invalid input not EOF"),t}function w(){return T("linear-gradient",t,M)||T("repeating-linear-gradient",e,M)||T("radial-gradient",n,C)||T("repeating-radial-gradient",i,C)||T("conic-gradient",r,C)}function T(t,e,n){return S(e,(function(e){var i=n();return i&&(F(p)||_("Missing comma before color stops")),{type:t,orientation:i,colorStops:L(R)}}))}function S(t,e){var n=F(t);if(n){F(d)||_("Missing (");var i=e(n);return F(f)||_("Missing )"),i}}function M(){return B("directional",a,1)||B("angular",h,1)}function C(){var t,e,n=A();return n&&((t=[]).push(n),e=b,F(p)&&((n=A())?t.push(n):b=e)),t}function A(){var t=function(){var t=B("shape",/^(circle)/i,0);t&&(t.style=I()||O());return t}()||function(){var t=B("shape",/^(ellipse)/i,0);t&&(t.style=k()||O());return t}();if(t)t.at=N();else{var e=O();if(e){t=e;var n=N();n&&(t.at=n)}else{var i=P();i&&(t={type:"default-radial",at:i})}}return t}function O(){return B("extent-keyword",o,1)}function N(){if(B("position",/^at/,0)){var t=P();return t||_("Missing positioning value"),t}}function P(){var t={x:k(),y:k()};if(t.x||t.y)return{type:"position",value:t}}function L(t){var e=t(),n=[];if(e)for(n.push(e);F(p);)(e=t())?n.push(e):_("One extra comma");return n}function R(){var t=B("hex",g,1)||S(y,(function(){return{type:"rgba",value:L(D)}}))||S(v,(function(){return{type:"rgb",value:L(D)}}))||B("literal",m,0);return t||_("Expected color definition"),t.length=k(),t}function D(){return F(x)[1]}function k(){return B("%",u,1)||B("position-keyword",s,1)||I()}function I(){return B("px",l,1)||B("em",c,1)}function B(t,e,n){var i=F(e);if(i)return{type:t,value:i[n]}}function F(t){var e=/^[\n\r\t\s]+/.exec(b);e&&z(e[0].length);var n=t.exec(b);return n&&z(n[0].length),n}function z(t){b=b.substring(t)}return function(t){return b=t,E()}}();var Rr=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Dr=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,kr=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Ir=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;var Br={left:180,top:-90,bottom:90,right:0,"left top":225,"top left":225,"left bottom":135,"bottom left":135,"right top":-45,"top right":-45,"right bottom":45,"bottom right":45},Fr=ar((function(t){var e;return e="angular"===t.type?Number(t.value):Br[t.value]||0,Nr(e,"deg")})),zr=ar((function(t){var e=50,n=50,i="%",r="%";if("position"===(null==t?void 0:t.type)){var a=t.value,o=a.x,s=a.y;"position-keyword"===(null==o?void 0:o.type)&&("left"===o.value?e=0:"center"===o.value?e=50:"right"===o.value?e=100:"top"===o.value?n=0:"bottom"===o.value&&(n=100)),"position-keyword"===(null==s?void 0:s.type)&&("left"===s.value?e=0:"center"===s.value?n=50:"right"===s.value?e=100:"top"===s.value?n=0:"bottom"===s.value&&(n=100)),"px"!==(null==o?void 0:o.type)&&"%"!==(null==o?void 0:o.type)&&"em"!==(null==o?void 0:o.type)||(i=null==o?void 0:o.type,e=Number(o.value)),"px"!==(null==s?void 0:s.type)&&"%"!==(null==s?void 0:s.type)&&"em"!==(null==s?void 0:s.type)||(r=null==s?void 0:s.type,n=Number(s.value))}return{cx:Nr(e,i),cy:Nr(n,r)}})),Gr=ar((function(t){if(t.indexOf("linear")>-1||t.indexOf("radial")>-1)return Lr(t).map((function(t){var e=t.type,n=t.orientation,i=t.colorStops;!function(t){var e,n,i=t.length;t[i-1].length=null!==(e=t[i-1].length)&&void 0!==e?e:{type:"%",value:"100"},i>1&&(t[0].length=null!==(n=t[0].length)&&void 0!==n?n:{type:"%",value:"0"});for(var r=0,a=Number(t[0].length.value),o=1;o=0)return Nr(Number(e),"px");if("deg".search(t)>=0)return Nr(Number(e),"deg")}var n=[];e=e.replace(t,(function(t){return n.push(t),"U".concat(t)}));var i="U(".concat(t.source,")");return n.map((function(t){return Nr(Number(e.replace(new RegExp("U".concat(t),"g"),"").replace(new RegExp(i,"g"),"*0")),t)}))[0]}var Wr=function(t){return Zr(new RegExp("px","g"),t)},Xr=ar(Wr);ar((function(t){return Zr(new RegExp("%","g"),t)}));var Yr=function(t){return(0,oe.Z)(t)||isFinite(Number(t))?Nr(Number(t)||0,"px"):Zr(new RegExp("px|%|em|rem","g"),t)},qr=ar(Yr),$r=function(t){return Zr(new RegExp("deg|rad|grad|turn","g"),t)},Kr=ar($r);function Qr(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a="",o=t.value||0,s=e.value||0,l=br(t.unit),u=t.convertTo(l),c=e.convertTo(l);return u&&c?(o=u.value,s=c.value,a=pr(t.unit)):(_r.isLength(t.unit)||_r.isLength(e.unit))&&(o=ea(t,r,n),s=ea(e,r,n),a="px"),[o,s,function(t){return i&&(t=Math.max(t,0)),t+a}]}function Jr(t){var e=0;return t.unit===or.kDegrees?e=t.value:t.unit===or.kRadians?e=Fi(Number(t.value)):t.unit===or.kTurns?e=360*Number(t.value):t.value&&(e=t.value),e}function ta(t,e){var n;return Array.isArray(t)?n=t.map((function(t){return Number(t)})):(0,ue.Z)(t)?n=t.split(" ").map((function(t){return Number(t)})):(0,oe.Z)(t)&&(n=[t]),2===e?1===n.length?[n[0],n[0]]:[n[0],n[1]]:1===n.length?[n[0],n[0],n[0],n[0]]:2===n.length?[n[0],n[1],n[0],n[1]]:3===n.length?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]}function ea(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t.unit===or.kPixels)return Number(t.value);if(t.unit===or.kPercentage&&n){var r=n.nodeName===pi.GROUP?n.getLocalBounds():n.getGeometryBounds();return(i?r.min[e]:0)+t.value/100*r.halfExtents[e]*2}return 0}var na=function(t){return Zr(/deg|rad|grad|turn|px|%/g,t)},ia=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function ra(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if("none"===(t=t.toLowerCase().trim()))return[];for(var e,n=/\s*([\w-]+)\(([^)]*)\)/g,i=[],r=0;e=n.exec(t);){if(e.index!==r)return[];if(r=e.index+e[0].length,ia.indexOf(e[1])>-1&&i.push({name:e[1],params:e[2].split(" ").map((function(t){return na(t)||Hr(t)}))}),n.lastIndex===t.length)return i}return[]}function aa(t){return t.toString()}var oa=function(t){return"number"==typeof t?Nr(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?Nr(Number(t)):Nr(0)},sa=ar(oa);function la(t,e){return[t,e,aa]}function ua(t,e){return function(n,i){return[n,i,function(n){return aa(ce(n,t,e))}]}}function ca(t,e){if(t.length===e.length)return[t,e,function(t){return t}]}function ha(t){var e;return 0===t.parsedStyle.d.totalLength&&(t.parsedStyle.d.totalLength=Be(t.parsedStyle.d.absolutePath,void 0,(0,he.pi)((0,he.pi)({},e),{bbox:!1,length:!0})).length),t.parsedStyle.d.totalLength}function da(t){return 0===t.parsedStyle.points.totalLength&&(t.parsedStyle.points.totalLength=ni(t.parsedStyle.points.points)),t.parsedStyle.points.totalLength}function fa(t,e){return t[0]===e[0]&&t[1]===e[1]}function pa(t,e){var n=t.prePoint,i=t.currentPoint,r=t.nextPoint,a=Math.pow(i[0]-n[0],2)+Math.pow(i[1]-n[1],2),o=Math.pow(i[0]-r[0],2)+Math.pow(i[1]-r[1],2),s=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2),l=Math.acos((a+o-s)/(2*Math.sqrt(a)*Math.sqrt(o)));if(!l||0===Math.sin(l)||je(l,0))return{xExtra:0,yExtra:0};var u=Math.abs(Math.atan2(r[1]-i[1],r[0]-i[0])),c=Math.abs(Math.atan2(r[0]-i[0],r[1]-i[1]));return u=u>Math.PI/2?Math.PI-u:u,c=c>Math.PI/2?Math.PI-c:c,{xExtra:Math.cos(l/2-u)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(c-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0}}function ga(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}ar((function(t){return(0,ue.Z)(t)?t.split(" ").map(sa):t.map(sa)}));var ma=function(t,e){var n=t.x*e.x+t.y*e.y,i=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2)));return(t.x*e.y-t.y*e.x<0?-1:1)*Math.acos(n/i)},va=function(t,e,n,i,r,a,o,s){e=Math.abs(e),n=Math.abs(n);var l=Ii(i=Ue(i,360));if(t.x===o.x&&t.y===o.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(0===e||0===n)return{x:0,y:0,ellipticalArcAngle:0};var u=(t.x-o.x)/2,c=(t.y-o.y)/2,h={x:Math.cos(l)*u+Math.sin(l)*c,y:-Math.sin(l)*u+Math.cos(l)*c},d=Math.pow(h.x,2)/Math.pow(e,2)+Math.pow(h.y,2)/Math.pow(n,2);d>1&&(e*=Math.sqrt(d),n*=Math.sqrt(d));var f=(Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(h.y,2)-Math.pow(n,2)*Math.pow(h.x,2))/(Math.pow(e,2)*Math.pow(h.y,2)+Math.pow(n,2)*Math.pow(h.x,2));f=f<0?0:f;var p=(r!==a?1:-1)*Math.sqrt(f),g=p*(e*h.y/n),m=p*(-n*h.x/e),v={x:Math.cos(l)*g-Math.sin(l)*m+(t.x+o.x)/2,y:Math.sin(l)*g+Math.cos(l)*m+(t.y+o.y)/2},y={x:(h.x-g)/e,y:(h.y-m)/n},x=ma({x:1,y:0},y),b=ma(y,{x:(-h.x-g)/e,y:(-h.y-m)/n});!a&&b>0?b-=2*Math.PI:a&&b<0&&(b+=2*Math.PI);var _=x+(b%=2*Math.PI)*s,E=e*Math.cos(_),w=n*Math.sin(_);return{x:Math.cos(l)*E-Math.sin(l)*w+v.x,y:Math.sin(l)*E+Math.cos(l)*w+v.y,ellipticalArcStartAngle:x,ellipticalArcEndAngle:x+b,ellipticalArcAngle:_,ellipticalArcCenter:v,resultantRx:e,resultantRy:n}};function ya(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.arcParams,r=i.rx,a=void 0===r?0:r,o=i.ry,s=void 0===o?0:o,l=i.xRotation,u=i.arcFlag,c=i.sweepFlag,h=va({x:t.prePoint[0],y:t.prePoint[1]},a,s,l,!!u,!!c,{x:t.currentPoint[0],y:t.currentPoint[1]},e),d=va({x:t.prePoint[0],y:t.prePoint[1]},a,s,l,!!u,!!c,{x:t.currentPoint[0],y:t.currentPoint[1]},n?e+.005:e-.005),f=d.x-h.x,p=d.y-h.y,g=Math.sqrt(f*f+p*p);return{x:-f/g,y:-p/g}}function xa(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ba(t,e){return xa(t)*xa(e)?(t[0]*e[0]+t[1]*e[1])/(xa(t)*xa(e)):1}function _a(t,e){return(t[0]*e[1]1&&(n*=Math.sqrt(f),i*=Math.sqrt(f));var p=n*n*(d*d)+i*i*(h*h),g=p?Math.sqrt((n*n*(i*i)-p)/p):1;a===o&&(g*=-1),isNaN(g)&&(g=0);var m=i?g*n*d/i:0,v=n?g*-i*h/n:0,y=(s+u)/2+Math.cos(r)*m-Math.sin(r)*v,x=(l+c)/2+Math.sin(r)*m+Math.cos(r)*v,b=[(h-m)/n,(d-v)/i],_=[(-1*h-m)/n,(-1*d-v)/i],E=_a([1,0],b),w=_a(b,_);return ba(b,_)<=-1&&(w=Math.PI),ba(b,_)>=1&&(w=0),0===o&&w>0&&(w-=2*Math.PI),1===o&&w<0&&(w+=2*Math.PI),{cx:y,cy:x,rx:fa(t,[u,c])?0:n,ry:fa(t,[u,c])?0:i,startAngle:E,endAngle:E+w,xRotation:r,arcFlag:a,sweepFlag:o}}var wa=function(t){if(""===t||Array.isArray(t)&&0===t.length)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};var e;try{e=Ce(t)}catch(n){e=Ce(""),console.error("[g]: Invalid SVG Path definition: ".concat(t))}!function(t){for(var e=0;e0&&n.push(i),{polygons:e,polylines:n}}(e),r=i.polygons,a=i.polylines,o=function(t){for(var e=[],n=null,i=null,r=null,a=0,o=t.length,s=0;s=e&&(s-=n),t[s])}))}))}(l),f.forEach((function(t,e){l.slice(1).forEach((function(t,n){d+=se(l[(e+n)%c].slice(-2),u[n%c].slice(-2))})),h[e]=d,d=0})),f[h.indexOf(Math.min.apply(null,h))]),function(t){return t}]}function Ca(t,e){return{points:(0,ue.Z)(t)?t.split(" ").map((function(t){var e=t.split(","),n=(0,p.Z)(e,2),i=n[0],r=n[1];return[Number(i),Number(r)]})):t,totalLength:0,segments:[]}}function Aa(t,e){return[t.points,e.points,function(t){return t}]}var Oa=null,Na=/\s*(\w+)\(([^)]*)\)/g;function Pa(t){return function(e){var n=0;return t.map((function(t){return t===Oa?e[n++]:t}))}}function La(t){return t}var Ra={matrix:["NNNNNN",[Oa,Oa,0,0,Oa,Oa,0,0,0,0,1,0,Oa,Oa,0,1],La],matrix3d:["NNNNNNNNNNNNNNNN",La],rotate:["A"],rotateX:["A"],rotateY:["A"],rotateZ:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",Pa([Oa,Oa,new _r(1)]),La],scaleX:["N",Pa([Oa,new _r(1),new _r(1)]),Pa([Oa,new _r(1)])],scaleY:["N",Pa([new _r(1),Oa,new _r(1)]),Pa([new _r(1),Oa])],scaleZ:["N",Pa([new _r(1),new _r(1),Oa])],scale3d:["NNN",La],skew:["Aa",null,La],skewX:["A",null,Pa([Oa,wr])],skewY:["A",null,Pa([wr,Oa])],translate:["Tt",Pa([Oa,Oa,Er]),La],translateX:["T",Pa([Oa,Er,Er]),Pa([Oa,Er])],translateY:["T",Pa([Er,Oa,Er]),Pa([Er,Oa])],translateZ:["L",Pa([Er,Er,Oa])],translate3d:["TTL",La]};function Da(t){for(var e=[],n=t.length,i=0;iWi[1][2]&&(a[0]=-a[0]),Wi[0][2]>Wi[2][0]&&(a[1]=-a[1]),Wi[1][0]>Wi[0][1]&&(a[2]=-a[2])}(function(t){return 0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(Ba).reduce(Fa)}(t),e,n,i,r,a),[[e,n,i,a,r]]}var Ga=function(){function t(t,e){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],i=0;i<4;i++)for(var r=0;r<4;r++)for(var a=0;a<4;a++)n[i][r]+=e[i][a]*t[a][r];return n}return function(e,n,i,r,a){for(var o=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)o[s][3]=a[s];for(var l=0;l<3;l++)for(var u=0;u<3;u++)o[3][l]+=e[u]*o[u][l];var c=r[0],h=r[1],d=r[2],f=r[3],p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];p[0][0]=1-2*(h*h+d*d),p[0][1]=2*(c*h-d*f),p[0][2]=2*(c*d+h*f),p[1][0]=2*(c*h+d*f),p[1][1]=1-2*(c*c+d*d),p[1][2]=2*(h*d-c*f),p[2][0]=2*(c*d-h*f),p[2][1]=2*(h*d+c*f),p[2][2]=1-2*(c*c+h*h),o=t(o,p);var g,m=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];i[2]&&(m[2][1]=i[2],o=t(o,m)),i[1]&&(m[2][1]=0,m[2][0]=i[0],o=t(o,m)),i[0]&&(m[2][0]=0,m[1][0]=i[0],o=t(o,m));for(var v=0;v<3;v++)for(var y=0;y<3;y++)o[v][y]*=n[v];return 0===(g=o)[0][2]&&0===g[0][3]&&0===g[1][2]&&0===g[1][3]&&0===g[2][0]&&0===g[2][1]&&1===g[2][2]&&0===g[2][3]&&0===g[3][2]&&1===g[3][3]?[o[0][0],o[0][1],o[1][0],o[1][1],o[3][0],o[3][1]]:o[0].concat(o[1],o[2],o[3])}}();function ja(t){return t.toFixed(6).replace(".000000","")}function Ua(t,e){var n,i;return t.decompositionPair!==e&&(t.decompositionPair=e,n=za(t)),e.decompositionPair!==t&&(e.decompositionPair=t,i=za(e)),null===n[0]||null===i[0]?[[!1],[!0],function(n){return n?e[0].d:t[0].d}]:(n[0].push(0),i[0].push(1),[n,i,function(t){var e=function(t,e,n){var i=function(t,e){for(var n=0,i=0;i2&&void 0!==arguments[2]?arguments[2]:{skipUpdateAttribute:!1,skipParse:!1,forceUpdateGeometry:!1,usedAttributes:[],memoize:!0};Object.assign(t.attributes,e);var i=t.parsedStyle.clipPath,r=t.parsedStyle.offsetPath;Qa(t,e);var o=!!n.forceUpdateGeometry;if(!o)for(var s in e)if(qa.has(s)){o=!0;break}e.fill&&(t.parsedStyle.fill=Hr(e.fill)),e.stroke&&(t.parsedStyle.stroke=Hr(e.stroke)),e.shadowColor&&(t.parsedStyle.shadowColor=Hr(e.shadowColor)),e.filter&&(t.parsedStyle.filter=ra(e.filter)),(0,le.Z)(e.radius)||(t.parsedStyle.radius=ta(e.radius,4)),(0,le.Z)(e.lineDash)||(t.parsedStyle.lineDash=ta(e.lineDash,2)),e.points&&(t.parsedStyle.points=Ca(e.points)),""===e.d&&(t.parsedStyle.d=(0,a.Z)({},ir)),e.d&&(t.parsedStyle.d=Sa(e.d)),e.textTransform&&this.runtime.CSSPropertySyntaxFactory[rr.TEXT_TRANSFORM].calculator(null,null,{value:e.textTransform},t,null),Qe(e.clipPath)||this.runtime.CSSPropertySyntaxFactory[rr.DEFINED_PATH].calculator("clipPath",i,e.clipPath,t,this.runtime),e.offsetPath&&this.runtime.CSSPropertySyntaxFactory[rr.DEFINED_PATH].calculator("offsetPath",r,e.offsetPath,t,this.runtime),e.transform&&(t.parsedStyle.transform=ka(e.transform)),e.transformOrigin&&(t.parsedStyle.transformOrigin=Wa(e.transformOrigin)),e.markerStart&&(t.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[rr.MARKER].calculator(null,e.markerStart,e.markerStart,null,null)),e.markerEnd&&(t.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[rr.MARKER].calculator(null,e.markerEnd,e.markerEnd,null,null)),e.markerMid&&(t.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[rr.MARKER].calculator("",e.markerMid,e.markerMid,null,null)),(0,le.Z)(e.zIndex)||this.runtime.CSSPropertySyntaxFactory[rr.Z_INDEX].postProcessor(t),(0,le.Z)(e.offsetDistance)||this.runtime.CSSPropertySyntaxFactory[rr.OFFSET_DISTANCE].postProcessor(t),e.transform&&this.runtime.CSSPropertySyntaxFactory[rr.TRANSFORM].postProcessor(t),e.transformOrigin&&this.runtime.CSSPropertySyntaxFactory[rr.TRANSFORM_ORIGIN].postProcessor(t),o&&(t.geometry.dirty=!0,t.renderable.boundsDirty=!0,t.renderable.renderBoundsDirty=!0,n.forceUpdateGeometry||this.runtime.sceneGraphService.dirtifyToRoot(t))}},{key:"updateGeometry",value:function(t){var e=t.nodeName,n=this.runtime.geometryUpdaterFactory[e];if(n){var i=t.geometry;i.contentBounds||(i.contentBounds=new Ti),i.renderBounds||(i.renderBounds=new Ti);var r=t.parsedStyle,a=n.update(r,t),o=a.cx,s=void 0===o?0:o,l=a.cy,u=void 0===l?0:l,c=a.cz,h=void 0===c?0:c,d=a.hwidth,f=void 0===d?0:d,p=a.hheight,g=void 0===p?0:p,m=a.hdepth,v=void 0===m?0:m,y=[Math.abs(f),Math.abs(g),v],x=r.stroke,b=r.lineWidth,_=void 0===b?1:b,E=r.increasedLineWidthForHitTesting,w=void 0===E?0:E,S=r.shadowType,M=void 0===S?"outer":S,C=r.shadowColor,A=r.filter,O=void 0===A?[]:A,N=r.transformOrigin,P=[s,u,h];i.contentBounds.update(P,y);var L=e===pi.POLYLINE||e===pi.POLYGON||e===pi.PATH?Math.SQRT2:.5;if(x&&!x.isNone){var R=((_||0)+(w||0))*L;y[0]+=R,y[1]+=R}if(i.renderBounds.update(P,y),C&&M&&"inner"!==M){var D=i.renderBounds,k=D.min,I=D.max,B=r.shadowBlur||0,F=r.shadowOffsetX||0,z=r.shadowOffsetY||0,G=k[0]-B+F,j=I[0]+B+F,U=k[1]-B+z,H=I[1]+B+z;k[0]=Math.min(k[0],G),I[0]=Math.max(I[0],j),k[1]=Math.min(k[1],U),I[1]=Math.max(I[1],H),i.renderBounds.setMinMax(k,I)}O.forEach((function(t){var e=t.name,n=t.params;if("blur"===e){var r=n[0].value;i.renderBounds.update(i.renderBounds.center,T(i.renderBounds.halfExtents,i.renderBounds.halfExtents,[r,r,0]))}else if("drop-shadow"===e){var a=n[0].value,o=n[1].value,s=n[2].value,l=i.renderBounds,u=l.min,c=l.max,h=u[0]-s+a,d=c[0]+s+a,f=u[1]-s+o,p=c[1]+s+o;u[0]=Math.min(u[0],h),c[0]=Math.max(c[0],d),u[1]=Math.min(u[1],f),c[1]=Math.max(c[1],p),i.renderBounds.setMinMax(u,c)}})),t.geometry.dirty=!1;var V=g<0,Z=(f<0?-1:1)*(N?ea(N[0],0,t,!0):0),W=(V?-1:1)*(N?ea(N[1],1,t,!0):0);(Z||W)&&t.setOrigin(Z,W)}}},{key:"updateSizeAttenuation",value:function(t,e){t.style.isSizeAttenuation?(t.style.rawLineWidth||(t.style.rawLineWidth=t.style.lineWidth),t.style.lineWidth=(t.style.rawLineWidth||1)/e,t.nodeName===pi.CIRCLE&&(t.style.rawR||(t.style.rawR=t.style.r),t.style.r=(t.style.rawR||1)/e)):(t.style.rawLineWidth&&(t.style.lineWidth=t.style.rawLineWidth,delete t.style.rawLineWidth),t.nodeName===pi.CIRCLE&&t.style.rawR&&(t.style.r=t.style.rawR,delete t.style.rawR))}}])}();function Qa(t,e){if(al.enableMassiveParsedStyleAssignOptimization){var n=t.constructor.PARSED_STYLE_LIST;for(var i in e)n.has(i)&&(t.parsedStyle[i]=e[i])}else Object.assign(t.parsedStyle,e)}var Ja=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t),this.mixer=la}),[{key:"calculator",value:function(t,e,n,i){return Jr(n)}}])}(),to=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t)}),[{key:"calculator",value:function(t,e,n,i,r){return n instanceof xr&&(n=null),r.sceneGraphService.updateDisplayObjectDependency(t,e,n,i),"clipPath"===t&&i.forEach((function(t){0===t.childNodes.length&&r.sceneGraphService.dirtifyToRoot(t)})),n}}])}(),eo=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t),this.parser=Hr,this.mixer=Vr}),[{key:"calculator",value:function(t,e,n,i){return n instanceof xr?"none"===n.value?Cr:Ar:n}}])}(),no=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t)}),[{key:"calculator",value:function(t,e,n){return n instanceof xr?[]:n}}])}();function io(t){var e=t.parsedStyle.fontSize;return(0,le.Z)(e)?null:e}var ro=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t),this.mixer=la}),[{key:"calculator",value:function(t,e,n,i,r){if((0,oe.Z)(n))return n;if(!_r.isRelativeUnit(n.unit))return n.value;if(n.unit===or.kPercentage)return 0;if(n.unit===or.kEms){if(i.parentNode){var a=io(i.parentNode);if(a)return a*=n.value}return 0}if(n.unit===or.kRems){var o;if(null!=i&&null!==(o=i.ownerDocument)&&void 0!==o&&o.documentElement){var s=io(i.ownerDocument.documentElement);if(s)return s*=n.value}return 0}}}])}(),ao=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t),this.mixer=ca}),[{key:"calculator",value:function(t,e,n){return n.map((function(t){return t.value}))}}])}(),oo=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t),this.mixer=ca}),[{key:"calculator",value:function(t,e,n){return n.map((function(t){return t.value}))}}])}(),so=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t)}),[{key:"calculator",value:function(t,e,n,i){var r;n instanceof xr&&(n=null);var a=null===(r=n)||void 0===r?void 0:r.cloneNode(!0);return a&&(a.style.isMarker=!0),a}}])}(),lo=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t),this.mixer=la}),[{key:"calculator",value:function(t,e,n){return n.value}}])}(),uo=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t),this.mixer=ua(0,1)}),[{key:"calculator",value:function(t,e,n){return n.value}},{key:"postProcessor",value:function(t){var e=t.parsedStyle,n=e.offsetPath,i=e.offsetDistance;if(n){var r=n.nodeName;if(r===pi.LINE||r===pi.PATH||r===pi.POLYLINE){var a=n.getPoint(i);a&&t.setLocalPosition(a.x,a.y)}}}}])}(),co=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t),this.mixer=ua(0,1)}),[{key:"calculator",value:function(t,e,n){return n.value}}])}(),ho=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t),this.parser=Sa,this.mixer=Ma}),[{key:"calculator",value:function(t,e,n){return n instanceof xr&&"unset"===n.value?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Oi(0,0,0,0)}:n}}])}(),fo=(0,s.Z)((function t(){(0,o.Z)(this,t),this.mixer=Aa})),po=function(t){function e(){var t;(0,o.Z)(this,e);for(var n=arguments.length,i=new Array(n),r=0;r0&&void 0!==arguments[0]?arguments[0]:"auto",e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=!1,r=!1,a=!!e&&!e.isNone,o=!!n&&!n.isNone;return"visiblepainted"===t||"painted"===t||"auto"===t?(i=a,r=o):"visiblefill"===t||"fill"===t?i=!0:"visiblestroke"===t||"stroke"===t?r=!0:"visible"!==t&&"all"!==t||(i=!0,r=!0),[i,r]}var Ao=1,Oo="object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:{},No=Date.now(),Po={},Lo=Date.now(),Ro=function(t){if("function"!=typeof t)throw new TypeError("".concat(t," is not a function"));var e=Date.now(),n=e-Lo,i=n>16?0:16-n,r=Ao++;return Po[r]=t,Object.keys(Po).length>1||setTimeout((function(){Lo=e;var t=Po;Po={},Object.keys(t).forEach((function(e){return t[e](Oo.performance&&"function"==typeof Oo.performance.now?Oo.performance.now():Date.now()-No)}))}),i),r},Do=function(t){delete Po[t]},ko=function(t){return"string"!=typeof t?Ro:""===t?Oo.requestAnimationFrame:Oo["".concat(t,"RequestAnimationFrame")]},Io=function(t,e){for(var n=0;void 0!==t[n];){if(e(t[n]))return t[n];n+=1}}(["","webkit","moz","ms","o"],(function(t){return!!ko(t)})),Bo=ko(Io),Fo=function(t){return"string"!=typeof t?Do:""===t?Oo.cancelAnimationFrame:Oo["".concat(t,"CancelAnimationFrame")]||Oo["".concat(t,"CancelRequestAnimationFrame")]}(Io);Oo.requestAnimationFrame=Bo,Oo.cancelAnimationFrame=Fo;var zo=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t),this.callbacks=[]}),[{key:"getCallbacksNum",value:function(){return this.callbacks.length}},{key:"tapPromise",value:function(t,e){this.callbacks.push(e)}},{key:"promise",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]&&arguments[1],i=ms.get(this);i||(i=this.document?this:this.defaultView?this.defaultView:null===(e=this.ownerDocument)||void 0===e?void 0:e.defaultView)&&ms.set(this,i);if(i){if(t.manager=i.getEventService(),!t.manager)return!1;t.defaultPrevented=!1,t.path?t.path.length=0:t.page=[],n||(t.target=this),t.manager.dispatchEvent(t,t.type,n)}else this.emitter.emit(t.type,t);return!t.defaultPrevented}}])}(),ys=function(t){function e(){var t;(0,o.Z)(this,e);for(var n=arguments.length,i=new Array(n),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return this.parentNode?this.parentNode.getRootNode(t):t.composed&&this.host?this.host.getRootNode(t):this}},{key:"hasChildNodes",value:function(){return this.childNodes.length>0}},{key:"isDefaultNamespace",value:function(t){throw new Error(Ni)}},{key:"lookupNamespaceURI",value:function(t){throw new Error(Ni)}},{key:"lookupPrefix",value:function(t){throw new Error(Ni)}},{key:"normalize",value:function(){throw new Error(Ni)}},{key:"isEqualNode",value:function(t){return this===t}},{key:"isSameNode",value:function(t){return this.isEqualNode(t)}},{key:"parent",get:function(){return this.parentNode}},{key:"parentElement",get:function(){return null}},{key:"nextSibling",get:function(){return null}},{key:"previousSibling",get:function(){return null}},{key:"firstChild",get:function(){return this.childNodes.length>0?this.childNodes[0]:null}},{key:"lastChild",get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null}},{key:"compareDocumentPosition",value:function(t){if(t===this)return 0;for(var n=t,i=this,r=[n],a=[i];null!==(o=n.parentNode)&&void 0!==o?o:i.parentNode;){var o;n=n.parentNode?(r.push(n.parentNode),n.parentNode):n,i=i.parentNode?(a.push(i.parentNode),i.parentNode):i}if(n!==i)return e.DOCUMENT_POSITION_DISCONNECTED|e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_PRECEDING;var s=r.length>a.length?r:a,l=s===r?a:r;if(s[s.length-l.length]===l[0])return s===r?e.DOCUMENT_POSITION_CONTAINED_BY|e.DOCUMENT_POSITION_FOLLOWING:e.DOCUMENT_POSITION_CONTAINS|e.DOCUMENT_POSITION_PRECEDING;for(var u=s.length-l.length,c=l.length-1;c>=0;c--){var h=l[c],d=s[u+c];if(d!==h){var f=h.parentNode.childNodes;return f.indexOf(h)0&&e;)e=e.parentNode,t--;return e}},{key:"forEach",value:function(t){for(var e=[this];e.length>0;){var n=e.pop();if(!1===t(n))break;for(var i=n.childNodes.length-1;i>=0;i--)e.push(n.childNodes[i])}}}],[{key:"isNode",value:function(t){return!!t.childNodes}}])}(vs);ys.DOCUMENT_POSITION_DISCONNECTED=1,ys.DOCUMENT_POSITION_PRECEDING=2,ys.DOCUMENT_POSITION_FOLLOWING=4,ys.DOCUMENT_POSITION_CONTAINS=8,ys.DOCUMENT_POSITION_CONTAINED_BY=16,ys.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;var xs=function(){return(0,s.Z)((function t(e,n){var i=this;(0,o.Z)(this,t),this.emitter=new g,this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=U(),this.tmpVec3=y(),this.onPointerDown=function(t){var e=i.createPointerEvent(t);if(i.dispatchEvent(e,"pointerdown"),"touch"===e.pointerType)i.dispatchEvent(e,"touchstart");else if("mouse"===e.pointerType||"pen"===e.pointerType){var n=2===e.button;i.dispatchEvent(e,n?"rightdown":"mousedown")}i.trackingData(t.pointerId).pressTargetsByButton[t.button]=e.composedPath(),i.freeEvent(e)},this.onPointerUp=function(t){var e=So.now(),n=i.createPointerEvent(t,void 0,void 0,i.context.config.alwaysTriggerPointerEventOnCanvas?i.rootTarget:void 0);if(i.dispatchEvent(n,"pointerup"),"touch"===n.pointerType)i.dispatchEvent(n,"touchend");else if("mouse"===n.pointerType||"pen"===n.pointerType){var r=2===n.button;i.dispatchEvent(n,r?"rightup":"mouseup")}var a=i.trackingData(t.pointerId),o=i.findMountedTarget(a.pressTargetsByButton[t.button]),s=o;if(o&&!n.composedPath().includes(o)){for(var l=o;l&&!n.composedPath().includes(l);){if(n.currentTarget=l,i.notifyTarget(n,"pointerupoutside"),"touch"===n.pointerType)i.notifyTarget(n,"touchendoutside");else if("mouse"===n.pointerType||"pen"===n.pointerType){var u=2===n.button;i.notifyTarget(n,u?"rightupoutside":"mouseupoutside")}ys.isNode(l)&&(l=l.parentNode)}delete a.pressTargetsByButton[t.button],s=l}if(s){var c,h=i.clonePointerEvent(n,"click");h.target=s,h.path=[],a.clicksByButton[t.button]||(a.clicksByButton[t.button]={clickCount:0,target:h.target,timeStamp:e});var d=i.context.renderingContext.root.ownerDocument.defaultView,f=a.clicksByButton[t.button];f.target===h.target&&e-f.timeStamp=1;i--)if(t.currentTarget=n[i],this.notifyTarget(t,e),t.propagationStopped||t.propagationImmediatelyStopped)return;if(t.eventPhase=t.AT_TARGET,t.currentTarget=t.target,this.notifyTarget(t,e),!t.propagationStopped&&!t.propagationImmediatelyStopped){var r=n.indexOf(t.currentTarget);t.eventPhase=t.BUBBLING_PHASE;for(var a=r+1;ar||n>a?null:!o&&this.pickHandler(t)||this.rootTarget||null}},{key:"isNativeEventFromCanvas",value:function(t,e){var n,i=null==e?void 0:e.target;if(null!==(n=i)&&void 0!==n&&n.shadowRoot&&(i=e.composedPath()[0]),i){if(i===t)return!0;if(t&&t.contains)return t.contains(i)}return!(null==e||!e.composedPath)&&e.composedPath().indexOf(t)>-1}},{key:"getExistedHTML",value:function(t){if(t.nativeEvent.composedPath)for(var e=0,n=t.nativeEvent.composedPath();e=0;n--){var i=t[n];if(!(i===this.rootTarget||ys.isNode(i)&&i.parentNode===e))break;e=t[n]}return e}},{key:"getCursor",value:function(t){for(var e=t;e;){var n=bo(e)&&e.getAttribute("cursor");if(n)return n;e=ys.isNode(e)&&e.parentNode}}}])}(),bs=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t)}),[{key:"getOrCreateCanvas",value:function(t,e){if(this.canvas)return this.canvas;if(t||al.offscreenCanvas)this.canvas=t||al.offscreenCanvas,this.context=this.canvas.getContext("2d",(0,a.Z)({willReadFrequently:!0},e));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",(0,a.Z)({willReadFrequently:!0},e)),this.context&&this.context.measureText||(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch(t){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",(0,a.Z)({willReadFrequently:!0},e))}return this.canvas.width=10,this.canvas.height=10,this.canvas}},{key:"getOrCreateContext",value:function(t,e){return this.context||this.getOrCreateCanvas(t,e),this.context}}],[{key:"createCanvas",value:function(){try{return new window.OffscreenCanvas(0,0)}catch(t){}try{return document.createElement("canvas")}catch(t){}return null}}])}(),_s=function(t){return t[t.CAMERA_CHANGED=0]="CAMERA_CHANGED",t[t.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",t[t.NONE=2]="NONE",t}({}),Es=function(){return(0,s.Z)((function t(e,n){(0,o.Z)(this,t),this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new jo,initAsync:new zo,dirtycheck:new Uo,cull:new Uo,beginFrame:new jo,beforeRender:new jo,render:new jo,afterRender:new jo,endFrame:new jo,destroy:new jo,pick:new Go,pickSync:new Uo,pointerDown:new jo,pointerUp:new jo,pointerMove:new jo,pointerOut:new jo,pointerOver:new jo,pointerWheel:new jo,pointerCancel:new jo,click:new jo},this.globalRuntime=e,this.context=n}),[{key:"init",value:function(t){var e=this,n=(0,a.Z)((0,a.Z)({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach((function(t){t.apply(n,e.globalRuntime)})),this.hooks.init.call(),0===this.hooks.initAsync.getCallbacksNum()?(this.inited=!0,t()):this.hooks.initAsync.promise().then((function(){e.inited=!0,t()})).catch((function(t){}))}},{key:"getStats",value:function(){return this.stats}},{key:"disableDirtyRectangleRendering",value:function(){return!this.context.config.renderer.getConfig().enableDirtyRectangleRendering||this.context.renderingContext.renderReasons.has(_s.CAMERA_CHANGED)}},{key:"render",value:function(t,e,n){var i=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var r=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(r.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),r.renderReasons.size&&this.inited){r.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var a=1===r.renderReasons.size&&r.renderReasons.has(_s.CAMERA_CHANGED),o=!t.disableRenderHooks||!(t.disableRenderHooks&&a);o&&this.renderDisplayObject(r.root,t,r),this.hooks.beginFrame.call(e),o&&r.renderListCurrentFrame.forEach((function(t){i.hooks.beforeRender.call(t),i.hooks.render.call(t),i.hooks.afterRender.call(t)})),this.hooks.endFrame.call(e),r.renderListCurrentFrame=[],r.renderReasons.clear(),n()}}},{key:"renderDisplayObject",value:function(t,e,n){var i=this,r=e.renderer.getConfig(),a=r.enableDirtyCheck,o=r.enableCulling;function s(t){var e=t.renderable,r=t.sortable,s=a?e.dirty||n.dirtyRectangleRenderingDisabled?t:null:t;if(s){var l=o?i.hooks.cull.call(s,i.context.camera):s;l&&(i.stats.rendered+=1,n.renderListCurrentFrame.push(l))}e.dirty=!1,r.renderOrder=i.zIndexCounter,i.zIndexCounter+=1,i.stats.total+=1,r.dirty&&(i.sort(t,r),r.dirty=!1,r.dirtyChildren=[],r.dirtyReason=void 0)}for(var l=[t];l.length>0;){var u=l.pop();s(u);for(var c=u.sortable.sorted||u.childNodes,h=c.length-1;h>=0;h--)l.push(c[h])}}},{key:"sort",value:function(t,e){e.sorted&&e.dirtyReason!==nr.Z_INDEX_CHANGED?e.dirtyChildren.forEach((function(n){if(-1===t.childNodes.indexOf(n)){var i=e.sorted.indexOf(n);i>=0&&e.sorted.splice(i,1)}else if(0===e.sorted.length)e.sorted.push(n);else{var r=function(t,e){for(var n=0,i=t.length;n>>1;_o(t[r],e)<0?n=r+1:i=r}return n}(e.sorted,n);e.sorted.splice(r,0,n)}})):e.sorted=t.childNodes.slice().sort(_o)}},{key:"destroy",value:function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()}},{key:"dirtify",value:function(){this.context.renderingContext.renderReasons.add(_s.DISPLAY_OBJECT_CHANGED)}}])}(),ws=/\[\s*(.*)=(.*)\s*\]/,Ts=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t)}),[{key:"selectOne",value:function(t,e){var n=this;if(t.startsWith("."))return e.find((function(e){return((null==e?void 0:e.classList)||[]).indexOf(n.getIdOrClassname(t))>-1}));if(t.startsWith("#"))return e.find((function(e){return e.id===n.getIdOrClassname(t)}));if(t.startsWith("[")){var i=this.getAttribute(t),r=i.name,a=i.value;return r?e.find((function(t){return e!==t&&("name"===r?t.name===a:n.attributeToString(t,r)===a)})):null}return e.find((function(n){return e!==n&&n.nodeName===t}))}},{key:"selectAll",value:function(t,e){var n=this;if(t.startsWith("."))return e.findAll((function(i){return e!==i&&((null==i?void 0:i.classList)||[]).indexOf(n.getIdOrClassname(t))>-1}));if(t.startsWith("#"))return e.findAll((function(i){return e!==i&&i.id===n.getIdOrClassname(t)}));if(t.startsWith("[")){var i=this.getAttribute(t),r=i.name,a=i.value;return r?e.findAll((function(t){return e!==t&&("name"===r?t.name===a:n.attributeToString(t,r)===a)})):[]}return e.findAll((function(n){return e!==n&&n.nodeName===t}))}},{key:"is",value:function(t,e){if(t.startsWith("."))return e.className===this.getIdOrClassname(t);if(t.startsWith("#"))return e.id===this.getIdOrClassname(t);if(t.startsWith("[")){var n=this.getAttribute(t),i=n.name,r=n.value;return"name"===i?e.name===r:this.attributeToString(e,i)===r}return e.nodeName===t}},{key:"getIdOrClassname",value:function(t){return t.substring(1)}},{key:"getAttribute",value:function(t){var e=t.match(ws),n="",i="";return e&&e.length>2&&(n=e[1].replace(/"/g,""),i=e[2].replace(/"/g,"")),{name:n,value:i}}},{key:"attributeToString",value:function(t,e){if(!t.getAttribute)return"";var n=t.getAttribute(e);return(0,le.Z)(n)?"":n.toString?n.toString():""}}])}(),Ss=function(t){return t.REPARENT="reparent",t.DESTROY="destroy",t.ATTR_MODIFIED="DOMAttrModified",t.INSERTED="DOMNodeInserted",t.REMOVED="removed",t.MOUNTED="DOMNodeInsertedIntoDocument",t.UNMOUNTED="DOMNodeRemovedFromDocument",t.BOUNDS_CHANGED="bounds-changed",t.CULLED="culled",t}({}),Ms=function(t){function e(t,n,i,r,a,s,l,u){var c;return(0,o.Z)(this,e),(c=d(this,e,[null])).relatedNode=n,c.prevValue=i,c.newValue=r,c.attrName=a,c.attrChange=s,c.prevParsedValue=l,c.newParsedValue=u,c.type=t,c}return(0,f.Z)(e,t),(0,s.Z)(e)}(hs);function Cs(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0)}Ms.ADDITION=2,Ms.MODIFICATION=1,Ms.REMOVAL=3;var As,Os,Ns,Ps,Ls,Rs,Ds=new Ms(Ss.REPARENT,null,"","","",0,"",""),ks=ie(),Is=y(),Bs=_(1,1,1),Fs=U(),zs=ie(),Gs=y(),js=U(),Us=Gt(),Hs=y(),Vs=Gt(),Zs=y(),Ws=y(),Xs=y(),Ys=U(),qs=Gt(),$s=Gt(),Ks=Gt(),Qs={affectChildren:!0},Js=function(){return(0,s.Z)((function t(e){(0,o.Z)(this,t),this.pendingEvents=new Map,this.boundsChangedEvent=new gs(Ss.BOUNDS_CHANGED),this.displayObjectDependencyMap=new WeakMap,this.runtime=e}),[{key:"matches",value:function(t,e){return this.runtime.sceneGraphSelector.is(t,e)}},{key:"querySelector",value:function(t,e){return this.runtime.sceneGraphSelector.selectOne(t,e)}},{key:"querySelectorAll",value:function(t,e){return this.runtime.sceneGraphSelector.selectAll(t,e)}},{key:"attach",value:function(t,e,n){var i,r=!1;t.parentNode&&(r=t.parentNode!==e,this.detach(t));var a=t.nodeName===pi.FRAGMENT,o=Mo(e);t.parentNode=e;var s=a?t.childNodes:[t];(0,oe.Z)(n)?s.forEach((function(t){e.childNodes.splice(n,0,t),t.parentNode=e})):s.forEach((function(t){e.childNodes.push(t),t.parentNode=e}));var l=e.sortable;if((null!=l&&null!==(i=l.sorted)&&void 0!==i&&i.length||t.parsedStyle.zIndex)&&(-1===l.dirtyChildren.indexOf(t)&&l.dirtyChildren.push(t),l.dirty=!0,l.dirtyReason=nr.ADDED),!o){if(a)this.dirtifyFragment(t);else{var u=t.transformable;u&&this.dirtifyWorld(t,u)}r&&t.dispatchEvent(Ds)}}},{key:"detach",value:function(t){if(t.parentNode){var e,n,i=t.transformable,r=t.parentNode.sortable;(null!=r&&null!==(e=r.sorted)&&void 0!==e&&e.length||null!==(n=t.style)&&void 0!==n&&n.zIndex)&&(-1===r.dirtyChildren.indexOf(t)&&r.dirtyChildren.push(t),r.dirty=!0,r.dirtyReason=nr.REMOVED);var a=t.parentNode.childNodes.indexOf(t);a>-1&&t.parentNode.childNodes.splice(a,1),i&&this.dirtifyWorld(t,i),t.parentNode=null}}},{key:"getOrigin",value:function(t){return t.getGeometryBounds(),t.transformable.origin}},{key:"setOrigin",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;"number"==typeof e&&(e=[e,n,i]);var r=t.transformable;if(e[0]!==r.origin[0]||e[1]!==r.origin[1]||e[2]!==r.origin[2]){var a=r.origin;a[0]=e[0],a[1]=e[1],a[2]=e[2]||0,this.dirtifyLocal(t,r)}}},{key:"rotate",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;"number"==typeof e&&(e=_(e,n,i));var r=t.transformable;if(null!==t.parentNode&&t.parentNode.transformable){var a=Us;Zt(a,e[0],e[1],e[2]);var o=this.getRotation(t),s=this.getRotation(t.parentNode);Jt(Ks,s),Vt(Ks,Ks),Ut(a,Ks,a),Ut(r.localRotation,a,o),ne(r.localRotation,r.localRotation),this.dirtifyLocal(t,r)}else this.rotateLocal(t,e)}},{key:"rotateLocal",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;"number"==typeof e&&(e=_(e,n,i));var r=t.transformable;Zt($s,e[0],e[1],e[2]),ee(r.localRotation,r.localRotation,$s),this.dirtifyLocal(t,r)}},{key:"setEulerAngles",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;"number"==typeof e&&(e=_(e,n,i));var r=t.transformable;if(null!==t.parentNode&&t.parentNode.transformable){Zt(r.localRotation,e[0],e[1],e[2]);var a=this.getRotation(t.parentNode);Jt(qs,Vt(Us,a)),ee(r.localRotation,r.localRotation,qs),this.dirtifyLocal(t,r)}else this.setLocalEulerAngles(t,e)}},{key:"setLocalEulerAngles",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];"number"==typeof e&&(e=_(e,n,i));var a=t.transformable;Zt(a.localRotation,e[0],e[1],e[2]),r&&this.dirtifyLocal(t,a)}},{key:"translateLocal",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;"number"==typeof e&&(e=_(e,n,i));var r=t.transformable;D(e,Is)||(R(e,e,r.localRotation),T(r.localPosition,r.localPosition,e),this.dirtifyLocal(t,r))}},{key:"setPosition",value:function(t,e){var n,i=t.transformable;if(Xs[0]=e[0],Xs[1]=e[1],Xs[2]=null!==(n=e[2])&&void 0!==n?n:0,!D(this.getPosition(t),Xs)){if(E(i.position,Xs),null!==t.parentNode&&t.parentNode.transformable){var r=t.parentNode.transformable;V(Ys,r.worldTransform),q(Ys,Ys),L(i.localPosition,Xs,Ys)}else E(i.localPosition,Xs);this.dirtifyLocal(t,i)}}},{key:"setLocalPosition",value:function(t,e){var n,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.transformable;Ws[0]=e[0],Ws[1]=e[1],Ws[2]=null!==(n=e[2])&&void 0!==n?n:0,D(r.localPosition,Ws)||(E(r.localPosition,Ws),i&&this.dirtifyLocal(t,r))}},{key:"scaleLocal",value:function(t,e){var n,i=t.transformable;M(i.localScale,i.localScale,w(Gs,e[0],e[1],null!==(n=e[2])&&void 0!==n?n:1)),this.dirtifyLocal(t,i)}},{key:"setLocalScale",value:function(t,e){var n,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.transformable;w(Gs,e[0],e[1],null!==(n=e[2])&&void 0!==n?n:r.localScale[2]),D(Gs,r.localScale)||(E(r.localScale,Gs),i&&this.dirtifyLocal(t,r))}},{key:"translate",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;"number"==typeof e&&(e=w(Gs,e,n,i)),D(e,Is)||(T(Gs,this.getPosition(t),e),this.setPosition(t,Gs))}},{key:"setRotation",value:function(t,e,n,i,r){var a=t.transformable;if("number"==typeof e&&(e=Qt(e,n,i,r)),null!==t.parentNode&&t.parentNode.transformable){var o=this.getRotation(t.parentNode);Jt(Us,o),Vt(Us,Us),Ut(a.localRotation,Us,e),ne(a.localRotation,a.localRotation),this.dirtifyLocal(t,a)}else this.setLocalRotation(t,e)}},{key:"setLocalRotation",value:function(t,e,n,i,r){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];"number"==typeof e&&(e=te(Us,e,n,i,r));var o=t.transformable;Jt(o.localRotation,e),a&&this.dirtifyLocal(t,o)}},{key:"setLocalSkew",value:function(t,e,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];"number"==typeof e&&(e=ae(zs,e,n));var r=t.transformable;re(r.localSkew,e),i&&this.dirtifyLocal(t,r)}},{key:"dirtifyLocal",value:function(t,e){Mo(t)||e.localDirtyFlag||(e.localDirtyFlag=!0,e.dirtyFlag||this.dirtifyWorld(t,e))}},{key:"dirtifyWorld",value:function(t,e){e.dirtyFlag||this.unfreezeParentToRoot(t),this.dirtifyWorldInternal(t,e),this.dirtifyToRoot(t,!0)}},{key:"dirtifyFragment",value:function(t){var e=t.transformable;e&&(e.frozen=!1,e.dirtyFlag=!0,e.localDirtyFlag=!0);var n=t.renderable;n&&(n.renderBoundsDirty=!0,n.boundsDirty=!0,n.dirty=!0);for(var i=t.childNodes.length,r=0;r1&&void 0!==arguments[1]&&arguments[1],n=t;for(n.renderable&&(n.renderable.dirty=!0);n;)Cs(n),n=n.parentNode;e&&t.forEach((function(t){Cs(t)})),this.informDependentDisplayObjects(t),this.pendingEvents.set(t,e)}},{key:"updateDisplayObjectDependency",value:function(t,e,n,i){if(e&&e!==n){var r=this.displayObjectDependencyMap.get(e);if(r&&r[t]){var a=r[t].indexOf(i);r[t].splice(a,1)}}if(n){var o=this.displayObjectDependencyMap.get(n);o||(this.displayObjectDependencyMap.set(n,{}),o=this.displayObjectDependencyMap.get(n)),o[t]||(o[t]=[]),o[t].push(i)}}},{key:"informDependentDisplayObjects",value:function(t){var e=this,n=this.displayObjectDependencyMap.get(t);n&&Object.keys(n).forEach((function(t){n[t].forEach((function(n){e.dirtifyToRoot(n,!0),n.dispatchEvent(new Ms(Ss.ATTR_MODIFIED,n,e,e,t,Ms.MODIFICATION,e,e)),n.isCustomElement&&n.isConnected&&n.attributeChangedCallback&&n.attributeChangedCallback(t,e,e)}))}))}},{key:"getPosition",value:function(t){var e=t.transformable;return ft(e.position,this.getWorldTransform(t,e))}},{key:"getRotation",value:function(t){var e=t.transformable;return gt(e.rotation,this.getWorldTransform(t,e))}},{key:"getScale",value:function(t){var e=t.transformable;return pt(e.scaling,this.getWorldTransform(t,e))}},{key:"getWorldTransform",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.transformable;return e.localDirtyFlag||e.dirtyFlag?(t.parentNode&&t.parentNode.transformable&&this.getWorldTransform(t.parentNode),this.sync(t,e),e.worldTransform):e.worldTransform}},{key:"getLocalPosition",value:function(t){return t.transformable.localPosition}},{key:"getLocalRotation",value:function(t){return t.transformable.localRotation}},{key:"getLocalScale",value:function(t){return t.transformable.localScale}},{key:"getLocalSkew",value:function(t){return t.transformable.localSkew}},{key:"calcLocalTransform",value:function(t){if(0!==t.localSkew[0]||0!==t.localSkew[1]){vt(t.localTransform,t.localRotation,t.localPosition,_(1,1,1),t.origin),0===t.localSkew[0]&&0===t.localSkew[1]||(X(js),js[4]=Math.tan(t.localSkew[0]),js[1]=Math.tan(t.localSkew[1]),Q(t.localTransform,t.localTransform,js));var e=vt(js,te(Us,0,0,0,1),w(Gs,1,1,1),t.localScale,t.origin);Q(t.localTransform,t.localTransform,e)}else{var n=t.localTransform,i=t.localPosition,r=t.localRotation,a=t.localScale,o=t.origin,s=0!==i[0]||0!==i[1]||0!==i[2],l=1!==r[3]||0!==r[0]||0!==r[1]||0!==r[2],u=1!==a[0]||1!==a[1]||1!==a[2],c=0!==o[0]||0!==o[1]||0!==o[2];l||u||c?vt(n,r,i,a,o):s?at(n,i):X(n)}}},{key:"getLocalTransform",value:function(t){var e=t.transformable;return e.localDirtyFlag&&(this.calcLocalTransform(e),e.localDirtyFlag=!1),e.localTransform}},{key:"setLocalTransform",value:function(t,e){var n=ft(Hs,e),i=gt(Vs,e),r=pt(Zs,e);this.setLocalScale(t,r,!1),this.setLocalPosition(t,n,!1),this.setLocalRotation(t,i,void 0,void 0,void 0,!1),this.dirtifyLocal(t,t.transformable)}},{key:"resetLocalTransform",value:function(t){this.setLocalScale(t,Bs,!1),this.setLocalPosition(t,Is,!1),this.setLocalEulerAngles(t,Is,void 0,void 0,!1),this.setLocalSkew(t,ks,void 0,!1),this.dirtifyLocal(t,t.transformable)}},{key:"getTransformedGeometryBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,i=this.getGeometryBounds(t,e);if(!Ti.isEmpty(i)){var r=n||new Ti;return r.setFromTransformedAABB(i,this.getWorldTransform(t)),r}return null}},{key:"getGeometryBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t,i=n.geometry;i.dirty&&al.styleValueRegistry.updateGeometry(t);var r=e?i.renderBounds:i.contentBounds||null;return r||new Ti}},{key:"getBounds",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t,r=i.renderable;if(!r.boundsDirty&&!n&&r.bounds)return r.bounds;if(!r.renderBoundsDirty&&n&&r.renderBounds)return r.renderBounds;var a=n?r.renderBounds:r.bounds,o=this.getTransformedGeometryBounds(t,n,a),s=t.childNodes;if(s.forEach((function(t){var i=e.getBounds(t,n);i&&(o?o.add(i):(o=a||new Ti).update(i.center,i.halfExtents))})),o||(o=new Ti),n){var l=Eo(t);if(l){var u=l.parsedStyle.clipPath.getBounds(n);o?u&&(o=u.intersection(o)):o.update(u.center,u.halfExtents)}}return n?(r.renderBounds=o,r.renderBoundsDirty=!1):(r.bounds=o,r.boundsDirty=!1),o}},{key:"getLocalBounds",value:function(t){if(t.parentNode){var e=Fs;t.parentNode.transformable&&(e=q(js,this.getWorldTransform(t.parentNode)));var n=this.getBounds(t);if(!Ti.isEmpty(n)){var i=new Ti;return i.setFromTransformedAABB(n,e),i}}return this.getBounds(t)}},{key:"getBoundingClientRect",value:function(t){var e,n,i=this.getGeometryBounds(t);Ti.isEmpty(i)||(n=new Ti).setFromTransformedAABB(i,this.getWorldTransform(t));var r=null===(e=t.ownerDocument)||void 0===e||null===(e=e.defaultView)||void 0===e?void 0:e.getContextService().getBoundingClientRect();if(n){var a=n.getMin(),o=(0,p.Z)(a,2),s=o[0],l=o[1],u=n.getMax(),c=(0,p.Z)(u,2),h=c[0],d=c[1];return new Oi(s+((null==r?void 0:r.left)||0),l+((null==r?void 0:r.top)||0),h-s,d-l)}return new Oi((null==r?void 0:r.left)||0,(null==r?void 0:r.top)||0,0,0)}},{key:"dirtifyWorldInternal",value:function(t,e){var n=this;if(!e.dirtyFlag){e.dirtyFlag=!0,e.frozen=!1,t.childNodes.forEach((function(t){var e=t.transformable;e.dirtyFlag||n.dirtifyWorldInternal(t,e)}));var i=t.renderable;i&&(i.renderBoundsDirty=!0,i.boundsDirty=!0,i.dirty=!0)}}},{key:"syncHierarchy",value:function(t){var e=t.transformable;if(!e.frozen){e.frozen=!0,(e.localDirtyFlag||e.dirtyFlag)&&this.sync(t,e);for(var n=t.childNodes,i=0;is;--d){for(var m=0;m=0;f--){var p=d[f].trim();!Vo.test(p)&&Ho.indexOf(p)<0&&(p='"'.concat(p,'"')),d[f]=p}return"".concat(o," ").concat(l," ").concat(c," ").concat(h," ").concat(d.join(","))}(e),b=this.measureFont(x,n);0===b.fontSize&&(b.fontSize=r,b.ascent=r);var _=this.runtime.offscreenCanvasCreator.getOrCreateContext(n);_.font=x,e.isOverflowing=!1;var E=(o?this.wordWrap(t,e,n):t).split(/(?:\r\n|\r|\n)/),w=new Array(E.length),T=0;if(!m){for(var S=0;Sd)){for(var e=p[t].length,n=0,i=e,r=0;rd){i=r;break}n+=a}p[t]=(p[t]||"").slice(0,i)+f}}for(var _=Array.from(t),E=0;E<_.length;E++){var w=_[E],T=t[E-1],S=t[E+1],M=y(w);if(this.isNewline(w)){if(++g>=u){e.isOverflowing=!0,E<_.length-1&&b(g-1);break}m=0,p[g]=""}else{if(m>0&&m+M>d){if(g+1>=u){e.isOverflowing=!0,b(g);break}if(g++,m=0,p[g]="",this.isBreakingSpace(w))continue;this.canBreakInLastChar(w)||(p=this.trimToBreakable(p),m=this.sumTextWidthByCache(p[g]||"",v)),this.shouldBreakByKinsokuShorui(w,S)&&(p=this.trimByKinsokuShorui(p),m+=y(T||""))}m+=M,p[g]=(p[g]||"")+w}}return p.join("\n")}},{key:"isBreakingSpace",value:function(t){return"string"==typeof t&&tl.BreakingSpaces.indexOf(t.charCodeAt(0))>=0}},{key:"isNewline",value:function(t){return"string"==typeof t&&tl.Newlines.indexOf(t.charCodeAt(0))>=0}},{key:"trimToBreakable",value:function(t){var e=(0,l.Z)(t),n=e[e.length-2],i=this.findBreakableIndex(n);if(-1===i||!n)return e;var r=n.slice(i,i+1),a=i+1,o=i+(this.isBreakingSpace(r)?0:1);return e[e.length-1]+=n.slice(a,n.length),e[e.length-2]=n.slice(0,o),e}},{key:"canBreakInLastChar",value:function(t){return!t||!el.test(t)}},{key:"sumTextWidthByCache",value:function(t,e){return t.split("").reduce((function(t,n){if(!e[n])throw Error("cannot count the word without cache");return t+e[n]}),0)}},{key:"findBreakableIndex",value:function(t){for(var e=t.length-1;e>=0;e--)if(!el.test(t[e]))return e;return-1}},{key:"getFromCache",value:function(t,e,n,i){var r=n[t];if("number"!=typeof r){var a=t.length*e;r=i.measureText(t).width+a,n[t]=r}return r}}])}(),al={},ol=(Os=new ss,Ns=new os,As={},(0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)(As,pi.FRAGMENT,null),pi.CIRCLE,new ns),pi.ELLIPSE,new is),pi.RECT,Os),pi.IMAGE,Os),pi.GROUP,new us),pi.LINE,new rs),pi.TEXT,new ls(al)),pi.POLYLINE,Ns),pi.POLYGON,Ns),(0,an.Z)((0,an.Z)((0,an.Z)(As,pi.PATH,new as),pi.HTML,new cs),pi.MESH,null)),sl=(Ls=new eo,Rs=new ro,Ps={},(0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)(Ps,rr.PERCENTAGE,null),rr.NUMBER,new lo),rr.ANGLE,new Ja),rr.DEFINED_PATH,new to),rr.PAINT,Ls),rr.COLOR,Ls),rr.FILTER,new no),rr.LENGTH,Rs),rr.LENGTH_PERCENTAGE,Rs),rr.LENGTH_PERCENTAGE_12,new ao),(0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)(Ps,rr.LENGTH_PERCENTAGE_14,new oo),rr.COORDINATE,new ro),rr.OFFSET_DISTANCE,new uo),rr.OPACITY_VALUE,new co),rr.PATH,new ho),rr.LIST_OF_POINTS,new fo),rr.SHADOW_BLUR,new po),rr.TEXT,new go),rr.TEXT_TRANSFORM,new mo),rr.TRANSFORM,new Jo),(0,an.Z)((0,an.Z)((0,an.Z)(Ps,rr.TRANSFORM_ORIGIN,new ts),rr.Z_INDEX,new es),rr.MARKER,new so));al.CameraContribution=tr,al.AnimationTimeline=null,al.EasingFunction=null,al.offscreenCanvasCreator=new bs,al.sceneGraphSelector=new Ts,al.sceneGraphService=new Js(al),al.textService=new rl(al),al.geometryUpdaterFactory=ol,al.CSSPropertySyntaxFactory=sl,al.styleValueRegistry=new Ka(al),al.layoutRegistry=null,al.globalThis="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},al.enableStyleSyntax=!0,al.enableSizeAttenuation=!1;var ll=0;var ul=new Ms(Ss.INSERTED,null,"","","",0,"",""),cl=new Ms(Ss.REMOVED,null,"","","",0,"",""),hl=new gs(Ss.DESTROY),dl=function(t){function e(){var t;(0,o.Z)(this,e);for(var n=arguments.length,i=new Array(n),r=0;r=0;t--){var e=this.childNodes[t];this.removeChild(e)}}},{key:"destroyChildren",value:function(){for(var t=this.childNodes.length-1;t>=0;t--){var e=this.childNodes[t];e.childNodes.length>0&&e.destroyChildren(),e.destroy()}}},{key:"matches",value:function(t){return al.sceneGraphService.matches(t,this)}},{key:"getElementById",value:function(t){return al.sceneGraphService.querySelector("#".concat(t),this)}},{key:"getElementsByName",value:function(t){return al.sceneGraphService.querySelectorAll('[name="'.concat(t,'"]'),this)}},{key:"getElementsByClassName",value:function(t){return al.sceneGraphService.querySelectorAll(".".concat(t),this)}},{key:"getElementsByTagName",value:function(t){return al.sceneGraphService.querySelectorAll(t,this)}},{key:"querySelector",value:function(t){return al.sceneGraphService.querySelector(t,this)}},{key:"querySelectorAll",value:function(t){return al.sceneGraphService.querySelectorAll(t,this)}},{key:"closest",value:function(t){var e=this;do{if(al.sceneGraphService.matches(t,e))return e;e=e.parentElement}while(null!==e);return null}},{key:"find",value:function(t){var e=this,n=null;return this.forEach((function(i){return i===e||!t(i)||(n=i,!1)})),n}},{key:"findAll",value:function(t){var e=this,n=[];return this.forEach((function(i){i!==e&&t(i)&&n.push(i)})),n}},{key:"after",value:function(){var t=this;if(this.parentNode){for(var e=this.parentNode.childNodes.indexOf(this),n=arguments.length,i=new Array(n),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},e={forceUpdateGeometry:!0};al.styleValueRegistry.processProperties(this,t,e),this.renderable.dirty=!0}},{key:"setAttribute",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];Qe(n)||(i||n!==this.attributes[t])&&(this.internalSetAttribute(t,n,{memoize:r}),ln(e,"setAttribute",this,3)([t,n]))}},{key:"internalSetAttribute",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.renderable,r=this.attributes[t],a=this.parsedStyle[t];al.styleValueRegistry.processProperties(this,(0,an.Z)({},t,e),n),i.dirty=!0;var o,s,l=this.parsedStyle[t];(this.isConnected&&(gl.relatedNode=this,gl.prevValue=r,gl.newValue=e,gl.attrName=t,gl.prevParsedValue=a,gl.newParsedValue=l,this.isMutationObserved?this.dispatchEvent(gl):(gl.target=this,this.ownerDocument.defaultView.dispatchEvent(gl,!0))),this.isCustomElement&&this.isConnected||!this.isCustomElement)&&(null===(o=(s=this).attributeChangedCallback)||void 0===o||o.call(s,t,r,e,a,l))}},{key:"getBBox",value:function(){var t=this.getBounds(),e=t.getMin(),n=(0,p.Z)(e,2),i=n[0],r=n[1],a=t.getMax(),o=(0,p.Z)(a,2),s=o[0],l=o[1];return new Oi(i,r,s-i,l-r)}},{key:"setOrigin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return al.sceneGraphService.setOrigin(this,Di(t,e,n,!1)),this}},{key:"getOrigin",value:function(){return al.sceneGraphService.getOrigin(this)}},{key:"setPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return al.sceneGraphService.setPosition(this,Di(t,e,n,!1)),this}},{key:"setLocalPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return al.sceneGraphService.setLocalPosition(this,Di(t,e,n,!1)),this}},{key:"translate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return al.sceneGraphService.translate(this,Di(t,e,n,!1)),this}},{key:"translateLocal",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return al.sceneGraphService.translateLocal(this,Di(t,e,n,!1)),this}},{key:"getPosition",value:function(){return al.sceneGraphService.getPosition(this)}},{key:"getLocalPosition",value:function(){return al.sceneGraphService.getLocalPosition(this)}},{key:"scale",value:function(t,e,n){return this.scaleLocal(t,e,n)}},{key:"scaleLocal",value:function(t,e,n){return"number"==typeof t&&(t=Di(t,e=e||t,n=n||t,!1)),al.sceneGraphService.scaleLocal(this,t),this}},{key:"setLocalScale",value:function(t,e,n){return"number"==typeof t&&(t=Di(t,e=e||t,n=n||t,!1)),al.sceneGraphService.setLocalScale(this,t),this}},{key:"getLocalScale",value:function(){return al.sceneGraphService.getLocalScale(this)}},{key:"getScale",value:function(){return al.sceneGraphService.getScale(this)}},{key:"getEulerAngles",value:function(){var t=Gi(ml,al.sceneGraphService.getWorldTransform(this));return Fi((0,p.Z)(t,3)[2])}},{key:"getLocalEulerAngles",value:function(){var t=Gi(ml,al.sceneGraphService.getLocalRotation(this));return Fi((0,p.Z)(t,3)[2])}},{key:"setEulerAngles",value:function(t){return al.sceneGraphService.setEulerAngles(this,0,0,t),this}},{key:"setLocalEulerAngles",value:function(t){return al.sceneGraphService.setLocalEulerAngles(this,0,0,t),this}},{key:"rotateLocal",value:function(t,e,n){return(0,le.Z)(e)&&(0,le.Z)(n)?al.sceneGraphService.rotateLocal(this,0,0,t):al.sceneGraphService.rotateLocal(this,t,e,n),this}},{key:"rotate",value:function(t,e,n){return(0,le.Z)(e)&&(0,le.Z)(n)?al.sceneGraphService.rotate(this,0,0,t):al.sceneGraphService.rotate(this,t,e,n),this}},{key:"setRotation",value:function(t,e,n,i){return al.sceneGraphService.setRotation(this,t,e,n,i),this}},{key:"setLocalRotation",value:function(t,e,n,i){return al.sceneGraphService.setLocalRotation(this,t,e,n,i),this}},{key:"setLocalSkew",value:function(t,e){return al.sceneGraphService.setLocalSkew(this,t,e),this}},{key:"getRotation",value:function(){return al.sceneGraphService.getRotation(this)}},{key:"getLocalRotation",value:function(){return al.sceneGraphService.getLocalRotation(this)}},{key:"getLocalSkew",value:function(){return al.sceneGraphService.getLocalSkew(this)}},{key:"getLocalTransform",value:function(){return al.sceneGraphService.getLocalTransform(this)}},{key:"getWorldTransform",value:function(){return al.sceneGraphService.getWorldTransform(this)}},{key:"setLocalTransform",value:function(t){return al.sceneGraphService.setLocalTransform(this,t),this}},{key:"resetLocalTransform",value:function(){al.sceneGraphService.resetLocalTransform(this)}},{key:"getAnimations",value:function(){return this.activeAnimations}},{key:"animate",value:function(t,e){var n,i=null===(n=this.ownerDocument)||void 0===n?void 0:n.timeline;return i?i.play(this,t,e):null}},{key:"isVisible",value:function(){var t;return"hidden"!==(null===(t=this.parsedStyle)||void 0===t?void 0:t.visibility)}},{key:"interactive",get:function(){return this.isInteractive()},set:function(t){this.style.pointerEvents=t?"auto":"none"}},{key:"isInteractive",value:function(){var t;return"none"!==(null===(t=this.parsedStyle)||void 0===t?void 0:t.pointerEvents)}},{key:"isCulled",value:function(){return!(!this.cullable||!this.cullable.enable||this.cullable.visible)}},{key:"toFront",value:function(){return this.parentNode&&(this.style.zIndex=Math.max.apply(Math,(0,l.Z)(this.parentNode.children.map((function(t){return Number(t.style.zIndex)}))))+1),this}},{key:"toBack",value:function(){return this.parentNode&&(this.style.zIndex=Math.min.apply(Math,(0,l.Z)(this.parentNode.children.map((function(t){return Number(t.style.zIndex)}))))-1),this}},{key:"getConfig",value:function(){return this.config}},{key:"attr",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.setPosition(t,e,n),this}},{key:"move",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.setPosition(t,e,n),this}},{key:"setZIndex",value:function(t){return this.style.zIndex=t,this}}])}(dl);yl.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","display","draggable","droppable","fill","fillOpacity","fillRule","filter","increasedLineWidthForHitTesting","lineCap","lineDash","lineDashOffset","lineJoin","lineWidth","miterLimit","hitArea","offsetDistance","offsetPath","offsetX","offsetY","opacity","pointerEvents","shadowColor","shadowType","shadowBlur","shadowOffsetX","shadowOffsetY","stroke","strokeOpacity","strokeWidth","strokeLinecap","strokeLineJoin","strokeDasharray","strokeDashoffset","transform","transformOrigin","textTransform","visibility","zIndex"]);var xl=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)(this,e),d(this,e,[(0,a.Z)({type:pi.CIRCLE},t)])}return(0,f.Z)(e,t),(0,s.Z)(e)}(yl);xl.PARSED_STYLE_LIST=new Set([].concat((0,l.Z)(yl.PARSED_STYLE_LIST),["cx","cy","cz","r","isBillboard","isSizeAttenuation"]));var bl=["style"],_l=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.style,r=(0,hi.Z)(n,bl);return(0,o.Z)(this,e),(t=d(this,e,[(0,a.Z)({style:i},r)])).isCustomElement=!0,t}return(0,f.Z)(e,t),(0,s.Z)(e)}(yl),El=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)(this,e),d(this,e,[(0,a.Z)({type:pi.ELLIPSE},t)])}return(0,f.Z)(e,t),(0,s.Z)(e)}(yl);El.PARSED_STYLE_LIST=new Set([].concat((0,l.Z)(yl.PARSED_STYLE_LIST),["cx","cy","cz","rx","ry","isBillboard","isSizeAttenuation"]));var wl=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)(this,e),d(this,e,[(0,a.Z)({type:pi.GROUP},t)])}return(0,f.Z)(e,t),(0,s.Z)(e)}(yl);wl.PARSED_STYLE_LIST=new Set([].concat((0,l.Z)(yl.PARSED_STYLE_LIST),["width","height"]));var Tl=["style"],Sl=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.style,r=(0,hi.Z)(n,Tl);return(0,o.Z)(this,e),(t=d(this,e,[(0,a.Z)({type:pi.HTML,style:i},r)])).cullable.enable=!1,t}return(0,f.Z)(e,t),(0,s.Z)(e,[{key:"getDomElement",value:function(){return this.parsedStyle.$el}},{key:"getClientRects",value:function(){return[this.getBoundingClientRect()]}},{key:"getLocalBounds",value:function(){if(this.parentNode){var t=q(U(),this.parentNode.getWorldTransform()),e=this.getBounds();if(!Ti.isEmpty(e)){var n=new Ti;return n.setFromTransformedAABB(e,t),n}}return this.getBounds()}}])}(yl);Sl.PARSED_STYLE_LIST=new Set([].concat((0,l.Z)(yl.PARSED_STYLE_LIST),["x","y","$el","innerHTML","width","height"]));var Ml=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)(this,e),d(this,e,[(0,a.Z)({type:pi.IMAGE},t)])}return(0,f.Z)(e,t),(0,s.Z)(e)}(yl);Ml.PARSED_STYLE_LIST=new Set([].concat((0,l.Z)(yl.PARSED_STYLE_LIST),["x","y","z","src","width","height","isBillboard","billboardRotation","isSizeAttenuation","keepAspectRatio"]));var Cl=["style"],Al=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.style,r=(0,hi.Z)(n,Cl);(0,o.Z)(this,e),(t=d(this,e,[(0,a.Z)({type:pi.LINE,style:(0,a.Z)({x1:0,y1:0,x2:0,y2:0,z1:0,z2:0},i)},r)])).markerStartAngle=0,t.markerEndAngle=0;var s=t.parsedStyle,l=s.markerStart,u=s.markerEnd;return l&&fl(l)&&(t.markerStartAngle=l.getLocalEulerAngles(),t.appendChild(l)),u&&fl(u)&&(t.markerEndAngle=u.getLocalEulerAngles(),t.appendChild(u)),t.transformMarker(!0),t.transformMarker(!1),t}return(0,f.Z)(e,t),(0,s.Z)(e,[{key:"attributeChangedCallback",value:function(t,e,n,i,r){"x1"===t||"y1"===t||"x2"===t||"y2"===t||"markerStartOffset"===t||"markerEndOffset"===t?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===t?(i&&fl(i)&&(this.markerStartAngle=0,i.remove()),r&&fl(r)&&(this.markerStartAngle=r.getLocalEulerAngles(),this.appendChild(r),this.transformMarker(!0))):"markerEnd"===t&&(i&&fl(i)&&(this.markerEndAngle=0,i.remove()),r&&fl(r)&&(this.markerEndAngle=r.getLocalEulerAngles(),this.appendChild(r),this.transformMarker(!1)))}},{key:"transformMarker",value:function(t){var e=this.parsedStyle,n=e.markerStart,i=e.markerEnd,r=e.markerStartOffset,a=e.markerEndOffset,o=e.x1,s=e.x2,l=e.y1,u=e.y2,c=t?n:i;if(c&&fl(c)){var h,d,f,p,g,m,v;t?(p=o,g=l,d=s-o,f=u-l,m=r||0,v=this.markerStartAngle):(p=s,g=u,d=o-s,f=l-u,m=a||0,v=this.markerEndAngle),h=Math.atan2(f,d),c.setLocalEulerAngles(180*h/Math.PI+v),c.setLocalPosition(p+Math.cos(h)*m,g+Math.sin(h)*m)}}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.parsedStyle,i=n.x1,r=n.y1,a=n.x2,o=n.y2,s=$n(i,r,a,o,t),l=s.x,u=s.y,c=L(y(),_(l,u,0),e?this.getWorldTransform():this.getLocalTransform());return new Ai(c[0],c[1])}},{key:"getPointAtLength",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getPoint(t/this.getTotalLength(),e)}},{key:"getTotalLength",value:function(){var t=this.parsedStyle;return qn(t.x1,t.y1,t.x2,t.y2)}}])}(yl);Al.PARSED_STYLE_LIST=new Set([].concat((0,l.Z)(yl.PARSED_STYLE_LIST),["x1","y1","x2","y2","z1","z2","isBillboard","isSizeAttenuation","markerStart","markerEnd","markerStartOffset","markerEndOffset"]));var Ol=["style"],Nl=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.style,r=(0,hi.Z)(n,Ol);(0,o.Z)(this,e),(t=d(this,e,[(0,a.Z)({type:pi.PATH,style:i,initialParsedStyle:{miterLimit:4,d:(0,a.Z)({},ir)}},r)])).markerStartAngle=0,t.markerEndAngle=0,t.markerMidList=[];var s=t.parsedStyle,l=s.markerStart,u=s.markerEnd,c=s.markerMid;return l&&fl(l)&&(t.markerStartAngle=l.getLocalEulerAngles(),t.appendChild(l)),c&&fl(c)&&t.placeMarkerMid(c),u&&fl(u)&&(t.markerEndAngle=u.getLocalEulerAngles(),t.appendChild(u)),t.transformMarker(!0),t.transformMarker(!1),t}return(0,f.Z)(e,t),(0,s.Z)(e,[{key:"attributeChangedCallback",value:function(t,e,n,i,r){"d"===t?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):"markerStartOffset"===t||"markerEndOffset"===t?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===t?(i&&fl(i)&&(this.markerStartAngle=0,i.remove()),r&&fl(r)&&(this.markerStartAngle=r.getLocalEulerAngles(),this.appendChild(r),this.transformMarker(!0))):"markerEnd"===t?(i&&fl(i)&&(this.markerEndAngle=0,i.remove()),r&&fl(r)&&(this.markerEndAngle=r.getLocalEulerAngles(),this.appendChild(r),this.transformMarker(!1))):"markerMid"===t&&this.placeMarkerMid(r)}},{key:"transformMarker",value:function(t){var e=this.parsedStyle,n=e.markerStart,i=e.markerEnd,r=e.markerStartOffset,a=e.markerEndOffset,o=t?n:i;if(o&&fl(o)){var s,l,u,c,h,d,f;if(t){var g=this.getStartTangent(),m=(0,p.Z)(g,2),v=m[0],y=m[1];c=y[0],h=y[1],l=v[0]-y[0],u=v[1]-y[1],d=r||0,f=this.markerStartAngle}else{var x=this.getEndTangent(),b=(0,p.Z)(x,2),_=b[0],E=b[1];c=E[0],h=E[1],l=_[0]-E[0],u=_[1]-E[1],d=a||0,f=this.markerEndAngle}s=Math.atan2(u,l),o.setLocalEulerAngles(180*s/Math.PI+f),o.setLocalPosition(c+Math.cos(s)*d,h+Math.sin(s)*d)}}},{key:"placeMarkerMid",value:function(t){var e=this.parsedStyle.d.segments;if(this.markerMidList.forEach((function(t){t.remove()})),t&&fl(t))for(var n=1;n1&&void 0!==arguments[1]&&arguments[1],n=this.parsedStyle.d.absolutePath,i=rn(n,t),r=i.x,a=i.y,o=L(y(),_(r,a,0),e?this.getWorldTransform():this.getLocalTransform());return new Ai(o[0],o[1])}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getPointAtLength(t*ha(this),e)}},{key:"getStartTangent",value:function(){var t=this.parsedStyle.d.segments,e=[];if(t.length>1){var n=t[0].currentPoint,i=t[1].currentPoint,r=t[1].startTangent;e=[],r?(e.push([n[0]-r[0],n[1]-r[1]]),e.push([n[0],n[1]])):(e.push([i[0],i[1]]),e.push([n[0],n[1]]))}return e}},{key:"getEndTangent",value:function(){var t=this.parsedStyle.d.segments,e=t.length,n=[];if(e>1){var i=t[e-2].currentPoint,r=t[e-1].currentPoint,a=t[e-1].endTangent;n=[],a?(n.push([r[0]-a[0],r[1]-a[1]]),n.push([r[0],r[1]])):(n.push([i[0],i[1]]),n.push([r[0],r[1]]))}return n}}])}(yl);Nl.PARSED_STYLE_LIST=new Set([].concat((0,l.Z)(yl.PARSED_STYLE_LIST),["d","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isBillboard","isSizeAttenuation"]));var Pl=["style"],Ll=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.style,r=(0,hi.Z)(n,Pl);(0,o.Z)(this,e),(t=d(this,e,[(0,a.Z)({type:pi.POLYGON,style:i,initialParsedStyle:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},r)])).markerStartAngle=0,t.markerEndAngle=0,t.markerMidList=[];var s=t.parsedStyle,l=s.markerStart,u=s.markerEnd,c=s.markerMid;return l&&fl(l)&&(t.markerStartAngle=l.getLocalEulerAngles(),t.appendChild(l)),c&&fl(c)&&t.placeMarkerMid(c),u&&fl(u)&&(t.markerEndAngle=u.getLocalEulerAngles(),t.appendChild(u)),t.transformMarker(!0),t.transformMarker(!1),t}return(0,f.Z)(e,t),(0,s.Z)(e,[{key:"attributeChangedCallback",value:function(t,e,n,i,r){"points"===t?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):"markerStartOffset"===t||"markerEndOffset"===t?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===t?(i&&fl(i)&&(this.markerStartAngle=0,i.remove()),r&&fl(r)&&(this.markerStartAngle=r.getLocalEulerAngles(),this.appendChild(r),this.transformMarker(!0))):"markerEnd"===t?(i&&fl(i)&&(this.markerEndAngle=0,i.remove()),r&&fl(r)&&(this.markerEndAngle=r.getLocalEulerAngles(),this.appendChild(r),this.transformMarker(!1))):"markerMid"===t&&this.placeMarkerMid(r)}},{key:"transformMarker",value:function(t){var e=this.parsedStyle,n=e.markerStart,i=e.markerEnd,r=e.markerStartOffset,a=e.markerEndOffset,o=(e.points||{}).points,s=t?n:i;if(s&&fl(s)&&o){var l,u,c,h,d,f,p;if(h=o[0][0],d=o[0][1],t)u=o[1][0]-o[0][0],c=o[1][1]-o[0][1],f=r||0,p=this.markerStartAngle;else{var g=o.length;this.parsedStyle.isClosed?(u=o[g-1][0]-o[0][0],c=o[g-1][1]-o[0][1]):(h=o[g-1][0],d=o[g-1][1],u=o[g-2][0]-o[g-1][0],c=o[g-2][1]-o[g-1][1]),f=a||0,p=this.markerEndAngle}l=Math.atan2(c,u),s.setLocalEulerAngles(180*l/Math.PI+p),s.setLocalPosition(h+Math.cos(l)*f,d+Math.sin(l)*f)}}},{key:"placeMarkerMid",value:function(t){var e=(this.parsedStyle.points||{}).points;if(this.markerMidList.forEach((function(t){t.remove()})),this.markerMidList=[],t&&fl(t)&&e)for(var n=1;n<(this.parsedStyle.isClosed?e.length:e.length-1);n++){var i=e[n][0],r=e[n][1],a=1===n?t:t.cloneNode(!0);this.markerMidList.push(a),this.appendChild(a),a.setLocalPosition(i,r)}}}])}(yl);Ll.PARSED_STYLE_LIST=new Set([].concat((0,l.Z)(yl.PARSED_STYLE_LIST),["points","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isClosed","isBillboard","isSizeAttenuation"]));var Rl=["style"],Dl=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.style,i=(0,hi.Z)(t,Rl);return(0,o.Z)(this,e),d(this,e,[(0,a.Z)({type:pi.POLYLINE,style:n,initialParsedStyle:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}},i)])}return(0,f.Z)(e,t),(0,s.Z)(e,[{key:"getTotalLength",value:function(){return da(this)}},{key:"getPointAtLength",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getPoint(t/this.getTotalLength(),e)}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.parsedStyle.points.points;if(0===this.parsedStyle.points.segments.length){var i,r,a=[],o=0,s=this.getTotalLength();n.forEach((function(t,e){n[e+1]&&((i=[0,0])[0]=o/s,r=qn(t[0],t[1],n[e+1][0],n[e+1][1]),o+=r,i[1]=o/s,a.push(i))})),this.parsedStyle.points.segments=a}var l=0,u=0;this.parsedStyle.points.segments.forEach((function(e,n){t>=e[0]&&t<=e[1]&&(l=(t-e[0])/(e[1]-e[0]),u=n)}));var c=$n(n[u][0],n[u][1],n[u+1][0],n[u+1][1],l),h=c.x,d=c.y,f=L(y(),_(h,d,0),e?this.getWorldTransform():this.getLocalTransform());return new Ai(f[0],f[1])}},{key:"getStartTangent",value:function(){var t=this.parsedStyle.points.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e}},{key:"getEndTangent",value:function(){var t=this.parsedStyle.points.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n}}])}(Ll);Dl.PARSED_STYLE_LIST=new Set([].concat((0,l.Z)(Ll.PARSED_STYLE_LIST),["points","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isBillboard"]));var kl=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)(this,e),d(this,e,[(0,a.Z)({type:pi.RECT},t)])}return(0,f.Z)(e,t),(0,s.Z)(e)}(yl);kl.PARSED_STYLE_LIST=new Set([].concat((0,l.Z)(yl.PARSED_STYLE_LIST),["x","y","z","width","height","isBillboard","isSizeAttenuation","radius"]));var Il=["style"],Bl=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.style,i=(0,hi.Z)(t,Il);return(0,o.Z)(this,e),d(this,e,[(0,a.Z)({type:pi.TEXT,style:(0,a.Z)({fill:"black"},n)},i)])}return(0,f.Z)(e,t),(0,s.Z)(e,[{key:"getComputedTextLength",value:function(){var t;return this.getGeometryBounds(),(null===(t=this.parsedStyle.metrics)||void 0===t?void 0:t.maxLineWidth)||0}},{key:"getLineBoundingRects",value:function(){var t;return this.getGeometryBounds(),(null===(t=this.parsedStyle.metrics)||void 0===t?void 0:t.lineMetrics)||[]}},{key:"isOverflowing",value:function(){return this.getGeometryBounds(),!!this.parsedStyle.isOverflowing}}])}(yl);Bl.PARSED_STYLE_LIST=new Set([].concat((0,l.Z)(yl.PARSED_STYLE_LIST),["x","y","z","isBillboard","billboardRotation","isSizeAttenuation","text","textAlign","textBaseline","fontStyle","fontSize","fontFamily","fontWeight","fontVariant","lineHeight","letterSpacing","leading","wordWrap","wordWrapWidth","maxLines","textOverflow","isOverflowing","textPath","textDecorationLine","textDecorationColor","textDecorationStyle","textPathSide","textPathStartOffset","metrics","dx","dy"]));var Fl=function(){return(0,s.Z)((function t(){(0,o.Z)(this,t),this.registry={},this.define(pi.CIRCLE,xl),this.define(pi.ELLIPSE,El),this.define(pi.RECT,kl),this.define(pi.IMAGE,Ml),this.define(pi.LINE,Al),this.define(pi.GROUP,wl),this.define(pi.PATH,Nl),this.define(pi.POLYGON,Ll),this.define(pi.POLYLINE,Dl),this.define(pi.TEXT,Bl),this.define(pi.HTML,Sl)}),[{key:"define",value:function(t,e){this.registry[t]=e}},{key:"get",value:function(t){return this.registry[t]}}])}(),zl=function(t){function e(){var t;(0,o.Z)(this,e),(t=d(this,e)).defaultView=null,t.ownerDocument=null,t.nodeName="document";try{t.timeline=new al.AnimationTimeline(t)}catch(t){}var n={};return Ya.forEach((function(t){var e=t.n,i=t.inh,r=t.d;i&&r&&(n[e]=(0,en.Z)(r)?r(pi.GROUP):r)})),t.documentElement=new wl({id:"g-root",style:n}),t.documentElement.ownerDocument=t,t.documentElement.parentNode=t,t.childNodes=[t.documentElement],t}return(0,f.Z)(e,t),(0,s.Z)(e,[{key:"children",get:function(){return this.childNodes}},{key:"childElementCount",get:function(){return this.childNodes.length}},{key:"firstElementChild",get:function(){return this.firstChild}},{key:"lastElementChild",get:function(){return this.lastChild}},{key:"createElement",value:function(t,e){if("svg"===t)return this.documentElement;var n=this.defaultView.customElements.get(t);n||(console.warn("Unsupported tagName: ",t),n="tspan"===t?Bl:wl);var i=new n(e);return i.ownerDocument=this,i}},{key:"createElementNS",value:function(t,e,n){return this.createElement(e,n)}},{key:"cloneNode",value:function(t){throw new Error(Ni)}},{key:"destroy",value:function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch(t){}}},{key:"elementsFromBBox",value:function(t,e,n,i){var r=this.defaultView.context.rBushRoot.search({minX:t,minY:e,maxX:n,maxY:i}),a=[];return r.forEach((function(t){var e=t.displayObject,n=e.parsedStyle.pointerEvents,i=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(void 0===n?"auto":n);(!i||i&&e.isVisible())&&!e.isCulled()&&e.isInteractive()&&a.push(e)})),a.sort((function(t,e){return e.sortable.renderOrder-t.sortable.renderOrder})),a}},{key:"elementFromPointSync",value:function(t,e){var n=this.defaultView.canvas2Viewport({x:t,y:e}),i=n.x,r=n.y,a=this.defaultView.getConfig(),o=a.width,s=a.height;if(i<0||r<0||i>o||r>s)return null;var l=this.defaultView.viewport2Client({x:i,y:r}),u=l.x,c=l.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:t,y:e,viewportX:i,viewportY:r,clientX:u,clientY:c},picked:[]}).picked;return h&&h[0]||this.documentElement}},{key:"elementFromPoint",value:(i=(0,li.Z)((0,si.Z)().mark((function t(e,n){var i,r,a,o,s,l,u,c,h,d,f;return(0,si.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this.defaultView.canvas2Viewport({x:e,y:n}),r=i.x,a=i.y,o=this.defaultView.getConfig(),s=o.width,l=o.height,!(r<0||a<0||r>s||a>l)){t.next=4;break}return t.abrupt("return",null);case 4:return u=this.defaultView.viewport2Client({x:r,y:a}),c=u.x,h=u.y,t.next=7,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:e,y:n,viewportX:r,viewportY:a,clientX:c,clientY:h},picked:[]});case 7:return d=t.sent,f=d.picked,t.abrupt("return",f&&f[0]||this.documentElement);case 10:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})},{key:"elementsFromPointSync",value:function(t,e){var n=this.defaultView.canvas2Viewport({x:t,y:e}),i=n.x,r=n.y,a=this.defaultView.getConfig(),o=a.width,s=a.height;if(i<0||r<0||i>o||r>s)return[];var l=this.defaultView.viewport2Client({x:i,y:r}),u=l.x,c=l.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:t,y:e,viewportX:i,viewportY:r,clientX:u,clientY:c},picked:[]}).picked;return h[h.length-1]!==this.documentElement&&h.push(this.documentElement),h}},{key:"elementsFromPoint",value:(n=(0,li.Z)((0,si.Z)().mark((function t(e,n){var i,r,a,o,s,l,u,c,h,d,f;return(0,si.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this.defaultView.canvas2Viewport({x:e,y:n}),r=i.x,a=i.y,o=this.defaultView.getConfig(),s=o.width,l=o.height,!(r<0||a<0||r>s||a>l)){t.next=4;break}return t.abrupt("return",[]);case 4:return u=this.defaultView.viewport2Client({x:r,y:a}),c=u.x,h=u.y,t.next=7,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:e,y:n,viewportX:r,viewportY:a,clientX:c,clientY:h},picked:[]});case 7:return d=t.sent,(f=d.picked)[f.length-1]!==this.documentElement&&f.push(this.documentElement),t.abrupt("return",f);case 11:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"appendChild",value:function(t,e){throw new Error(Pi)}},{key:"insertBefore",value:function(t,e){throw new Error(Pi)}},{key:"removeChild",value:function(t,e){throw new Error(Pi)}},{key:"replaceChild",value:function(t,e,n){throw new Error(Pi)}},{key:"append",value:function(){throw new Error(Pi)}},{key:"prepend",value:function(){throw new Error(Pi)}},{key:"getElementById",value:function(t){return this.documentElement.getElementById(t)}},{key:"getElementsByName",value:function(t){return this.documentElement.getElementsByName(t)}},{key:"getElementsByTagName",value:function(t){return this.documentElement.getElementsByTagName(t)}},{key:"getElementsByClassName",value:function(t){return this.documentElement.getElementsByClassName(t)}},{key:"querySelector",value:function(t){return this.documentElement.querySelector(t)}},{key:"querySelectorAll",value:function(t){return this.documentElement.querySelectorAll(t)}},{key:"find",value:function(t){return this.documentElement.find(t)}},{key:"findAll",value:function(t){return this.documentElement.findAll(t)}}]);var n,i}(ys),Gl=function(){function t(e){(0,o.Z)(this,t),this.strategies=e}return(0,s.Z)(t,[{key:"apply",value:function(e){var n=e.camera,i=e.renderingService,r=e.renderingContext,a=this.strategies;i.hooks.cull.tap(t.tag,(function(t){if(t){var e=t.cullable;return 0===a.length?e.visible=r.unculledEntities.indexOf(t.entity)>-1:e.visible=a.every((function(e){return e.isVisible(n,t)})),!t.isCulled()&&t.isVisible()?t:(t.dispatchEvent(new gs(Ss.CULLED)),null)}return t})),i.hooks.afterRender.tap(t.tag,(function(t){t.cullable.visibilityPlaneMask=-1}))}}])}();Gl.tag="Culling";var jl=function(){function t(){var e=this;(0,o.Z)(this,t),this.autoPreventDefault=!1,this.rootPointerEvent=new fs(null),this.rootWheelEvent=new ps(null),this.onPointerMove=function(t){var n,i=null===(n=e.context.renderingContext.root)||void 0===n||null===(n=n.ownerDocument)||void 0===n?void 0:n.defaultView;if(!i.supportsTouchEvents||"touch"!==t.pointerType){var r,a=ci(e.normalizeToPointerEvent(t,i));try{for(a.s();!(r=a.n()).done;){var o=r.value,s=e.bootstrapEvent(e.rootPointerEvent,o,i,t);e.context.eventService.mapEvent(s)}}catch(t){a.e(t)}finally{a.f()}e.setCursor(e.context.eventService.cursor)}},this.onClick=function(t){var n,i,r=null===(n=e.context.renderingContext.root)||void 0===n||null===(n=n.ownerDocument)||void 0===n?void 0:n.defaultView,a=ci(e.normalizeToPointerEvent(t,r));try{for(a.s();!(i=a.n()).done;){var o=i.value,s=e.bootstrapEvent(e.rootPointerEvent,o,r,t);e.context.eventService.mapEvent(s)}}catch(t){a.e(t)}finally{a.f()}e.setCursor(e.context.eventService.cursor)}}return(0,s.Z)(t,[{key:"apply",value:function(e){var n=this;this.context=e;var i=e.renderingService,r=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler((function(t){return n.context.renderingService.hooks.pickSync.call({position:t,picked:[],topmost:!0}).picked[0]||null})),i.hooks.pointerWheel.tap(t.tag,(function(t){var e=n.normalizeWheelEvent(t);n.context.eventService.mapEvent(e)})),i.hooks.pointerDown.tap(t.tag,(function(t){if(!r.supportsTouchEvents||"touch"!==t.pointerType){var e=n.normalizeToPointerEvent(t,r);if(n.autoPreventDefault&&e[0].isNormalized)(t.cancelable||!("cancelable"in t))&&t.preventDefault();var i,a=ci(e);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=n.bootstrapEvent(n.rootPointerEvent,o,r,t);n.context.eventService.mapEvent(s)}}catch(t){a.e(t)}finally{a.f()}n.setCursor(n.context.eventService.cursor)}})),i.hooks.pointerUp.tap(t.tag,(function(t){if(!r.supportsTouchEvents||"touch"!==t.pointerType){var e,i=n.context.contextService.getDomElement(),a=n.context.eventService.isNativeEventFromCanvas(i,t)?"":"outside",o=ci(n.normalizeToPointerEvent(t,r));try{for(o.s();!(e=o.n()).done;){var s=e.value,l=n.bootstrapEvent(n.rootPointerEvent,s,r,t);l.type+=a,n.context.eventService.mapEvent(l)}}catch(t){o.e(t)}finally{o.f()}n.setCursor(n.context.eventService.cursor)}})),i.hooks.pointerMove.tap(t.tag,this.onPointerMove),i.hooks.pointerOver.tap(t.tag,this.onPointerMove),i.hooks.pointerOut.tap(t.tag,this.onPointerMove),i.hooks.click.tap(t.tag,this.onClick),i.hooks.pointerCancel.tap(t.tag,(function(t){var e,i=ci(n.normalizeToPointerEvent(t,r));try{for(i.s();!(e=i.n()).done;){var a=e.value,o=n.bootstrapEvent(n.rootPointerEvent,a,r,t);n.context.eventService.mapEvent(o)}}catch(t){i.e(t)}finally{i.f()}n.setCursor(n.context.eventService.cursor)}))}},{key:"bootstrapEvent",value:function(t,e,n,i){t.view=n,t.originalEvent=null,t.nativeEvent=i,t.pointerId=e.pointerId,t.width=e.width,t.height=e.height,t.isPrimary=e.isPrimary,t.pointerType=e.pointerType,t.pressure=e.pressure,t.tangentialPressure=e.tangentialPressure,t.tiltX=e.tiltX,t.tiltY=e.tiltY,t.twist=e.twist,this.transferMouseData(t,e);var r=this.context.eventService.client2Viewport({x:e.clientX,y:e.clientY}),a=r.x,o=r.y;t.viewport.x=a,t.viewport.y=o;var s=this.context.eventService.viewport2Canvas(t.viewport),l=s.x,u=s.y;return t.canvas.x=l,t.canvas.y=u,t.global.copyFrom(t.canvas),t.offset.copyFrom(t.canvas),t.isTrusted=i.isTrusted,"pointerleave"===t.type&&(t.type="pointerout"),t.type.startsWith("mouse")&&(t.type=t.type.replace("mouse","pointer")),t.type.startsWith("touch")&&(t.type=To[t.type]||t.type),t}},{key:"normalizeWheelEvent",value:function(t){var e=this.rootWheelEvent;this.transferMouseData(e,t),e.deltaMode=t.deltaMode,e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ;var n=this.context.eventService.client2Viewport({x:t.clientX,y:t.clientY}),i=n.x,r=n.y;e.viewport.x=i,e.viewport.y=r;var a=this.context.eventService.viewport2Canvas(e.viewport),o=a.x,s=a.y;return e.canvas.x=o,e.canvas.y=s,e.global.copyFrom(e.canvas),e.offset.copyFrom(e.canvas),e.nativeEvent=t,e.type=t.type,e}},{key:"transferMouseData",value:function(t,e){t.isTrusted=e.isTrusted,t.srcElement=e.srcElement,t.timeStamp=So.now(),t.type=e.type,t.altKey=e.altKey,t.metaKey=e.metaKey,t.shiftKey=e.shiftKey,t.ctrlKey=e.ctrlKey,t.button=e.button,t.buttons=e.buttons,t.client.x=e.clientX,t.client.y=e.clientY,t.movement.x=e.movementX,t.movement.y=e.movementY,t.page.x=e.pageX,t.page.y=e.pageY,t.screen.x=e.screenX,t.screen.y=e.screenY,t.relatedTarget=null}},{key:"setCursor",value:function(t){this.context.contextService.applyCursorStyle(t||this.context.config.cursor||"default")}},{key:"normalizeToPointerEvent",value:function(t,e){var n=[];if(e.isTouchEvent(t))for(var i=0;i-1,o=0,s=i.length;o1&&void 0!==arguments[1]&&arguments[1];if(t.isConnected){var n=t.rBushNode;n.aabb&&this.rBush.remove(n.aabb);var i=t.getRenderBounds();if(i){var r=t.renderable;e&&(r.dirtyRenderBounds||(r.dirtyRenderBounds=new Ti),r.dirtyRenderBounds.update(i.center,i.halfExtents));var a=i.getMin(),o=(0,p.Z)(a,2),s=o[0],l=o[1],u=i.getMax(),c=(0,p.Z)(u,2),h=c[0],d=c[1];n.aabb||(n.aabb={}),n.aabb.displayObject=t,n.aabb.minX=s,n.aabb.minY=l,n.aabb.maxX=h,n.aabb.maxY=d}return n.aabb&&!(isNaN(n.aabb.maxX)||isNaN(n.aabb.maxX)||isNaN(n.aabb.minX)||isNaN(n.aabb.minY))?n.aabb:void 0}}},{key:"syncRTree",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||!this.syncing&&0!==this.syncTasks.size){this.syncing=!0;var n=[],i=new Set,r=function(r){if(!i.has(r)&&r.renderable){var a=t.syncNode(r,e);a&&(n.push(a),i.add(r))}};this.syncTasks.forEach((function(t,e){t&&e.forEach(r);for(var n=e;n;)r(n),n=n.parentElement})),this.rBush.load(n),n.length=0,this.syncing=!1}}}])}();Vl.tag="Prepare";var Zl=function(t){return t.READY="ready",t.BEFORE_RENDER="beforerender",t.RERENDER="rerender",t.AFTER_RENDER="afterrender",t.BEFORE_DESTROY="beforedestroy",t.AFTER_DESTROY="afterdestroy",t.RESIZE="resize",t.DIRTY_RECTANGLE="dirtyrectangle",t.RENDERER_CHANGED="rendererchanged",t}({}),Wl=new gs(Ss.MOUNTED),Xl=new gs(Ss.UNMOUNTED),Yl=new gs(Zl.BEFORE_RENDER),ql=new gs(Zl.RERENDER),$l=new gs(Zl.AFTER_RENDER),Kl=function(t){function e(t){var n;(0,o.Z)(this,e),(n=d(this,e)).Element=yl,n.inited=!1,n.context={},n.document=new zl,n.document.defaultView=n,n.customElements=new Fl;var i=t.container,r=t.canvas,a=t.offscreenCanvas,s=t.width,l=t.height,u=t.devicePixelRatio,c=t.renderer,h=t.background,f=t.cursor,p=t.document,g=t.requestAnimationFrame,m=t.cancelAnimationFrame,v=t.createImage,y=t.enableLargeImageOptimization,x=t.supportsPointerEvents,b=t.supportsTouchEvents,_=t.supportsCSSTransform,E=t.cleanUpOnDestroy,w=void 0===E||E,T=t.supportsMutipleCanvasesInOneContainer,S=t.useNativeClickEvent,M=t.alwaysTriggerPointerEventOnCanvas,C=t.isTouchEvent,A=t.isMouseEvent,O=t.dblClickSpeed;T||yo(i,n,w);var N=s,P=l,L=u;return r&&(L=(L=u||xo&&window.devicePixelRatio||1)>=1?Math.ceil(L):1,N=s||function(t){var e=wo(t,"width");return"auto"===e?t.offsetWidth:parseFloat(e)}(r)||r.width/L,P=l||function(t){var e=wo(t,"height");return"auto"===e?t.offsetHeight:parseFloat(e)}(r)||r.height/L),a&&(al.offscreenCanvas=a),n.devicePixelRatio=L,n.requestAnimationFrame=null!=g?g:Bo.bind(al.globalThis),n.cancelAnimationFrame=null!=m?m:Fo.bind(al.globalThis),n.supportsTouchEvents=null!=b?b:"ontouchstart"in al.globalThis,n.supportsPointerEvents=null!=x?x:!!al.globalThis.PointerEvent,n.isTouchEvent=null!=C?C:function(t){return n.supportsTouchEvents&&t instanceof al.globalThis.TouchEvent},n.isMouseEvent=null!=A?A:function(t){return!al.globalThis.MouseEvent||t instanceof al.globalThis.MouseEvent&&(!n.supportsPointerEvents||!(t instanceof al.globalThis.PointerEvent))},n.dblClickSpeed=null!=O?O:200,n.initRenderingContext({container:i,canvas:r,width:N,height:P,renderer:c,offscreenCanvas:a,devicePixelRatio:L,cursor:f||"default",background:h||"transparent",createImage:v,enableLargeImageOptimization:y,document:p,supportsCSSTransform:_,useNativeClickEvent:S,cleanUpOnDestroy:w,alwaysTriggerPointerEventOnCanvas:M}),n.initDefaultCamera(N,P,c.clipSpaceNearZ),n.initRenderer(c,!0),n}return(0,f.Z)(e,t),(0,s.Z)(e,[{key:"initRenderingContext",value:function(t){this.context.config=t,this.context.renderingContext={root:this.document.documentElement,renderListCurrentFrame:[],unculledEntities:[],renderReasons:new Set,force:!1,dirty:!1}}},{key:"initDefaultCamera",value:function(t,e,n){var i=this,r=new al.CameraContribution;r.clipSpaceNearZ=n,r.setType(qi.EXPLORING,$i.DEFAULT).setPosition(t/2,e/2,500).setFocalPoint(t/2,e/2,0).setOrthographic(t/-2,t/2,e/2,e/-2,.1,1e3),r.canvas=this,r.eventEmitter.on(Qi,(function(){i.context.renderingContext.renderReasons.add(_s.CAMERA_CHANGED),al.enableSizeAttenuation&&i.getConfig().renderer.getConfig().enableSizeAttenuation&&i.updateSizeAttenuation()})),this.context.camera=r}},{key:"updateSizeAttenuation",value:function(){var t=this.getCamera().getZoom();this.document.documentElement.forEach((function(e){al.styleValueRegistry.updateSizeAttenuation(e,t)}))}},{key:"getConfig",value:function(){return this.context.config}},{key:"getRoot",value:function(){return this.document.documentElement}},{key:"getCamera",value:function(){return this.context.camera}},{key:"getContextService",value:function(){return this.context.contextService}},{key:"getEventService",value:function(){return this.context.eventService}},{key:"getRenderingService",value:function(){return this.context.renderingService}},{key:"getRenderingContext",value:function(){return this.context.renderingContext}},{key:"getStats",value:function(){return this.getRenderingService().getStats()}},{key:"ready",get:function(){var t=this;return this.readyPromise||(this.readyPromise=new Promise((function(e){t.resolveReadyPromise=function(){e(t)}})),this.inited&&this.resolveReadyPromise()),this.readyPromise}},{key:"destroy",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1?arguments[1]:void 0;void 0===e&&(e=this.getConfig().fastCleanExistingCanvas),e||this.dispatchEvent(new gs(Zl.BEFORE_DESTROY)),this.frameId&&this.cancelAnimationFrame(this.frameId);var n=this.getRoot();this.unmountChildren(n),t&&(this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),t&&this.context.rBushRoot&&(this.context.rBushRoot.clear(),this.context.rBushRoot=null,this.context.renderingContext.root=null),e||this.dispatchEvent(new gs(Zl.AFTER_DESTROY));var i=function(t){t.currentTarget=null,t.manager=null,t.target=null,t.relatedNode=null};i(Wl),i(Xl),i(Yl),i(ql),i($l),i(gl),i(ul),i(cl),i(hl)}},{key:"changeSize",value:function(t,e){this.resize(t,e)}},{key:"resize",value:function(t,e){var n=this.context.config;n.width=t,n.height=e,this.getContextService().resize(t,e);var i=this.context.camera,r=i.getProjectionMode();i.setPosition(t/2,e/2,500).setFocalPoint(t/2,e/2,0),r===Ki.ORTHOGRAPHIC?i.setOrthographic(t/-2,t/2,e/2,e/-2,i.getNear(),i.getFar()):i.setAspect(t/e),this.dispatchEvent(new gs(Zl.RESIZE,{width:t,height:e}))}},{key:"appendChild",value:function(t,e){return this.document.documentElement.appendChild(t,e)}},{key:"insertBefore",value:function(t,e){return this.document.documentElement.insertBefore(t,e)}},{key:"removeChild",value:function(t){return this.document.documentElement.removeChild(t)}},{key:"removeChildren",value:function(){this.document.documentElement.removeChildren()}},{key:"destroyChildren",value:function(){this.document.documentElement.destroyChildren()}},{key:"render",value:function(t){var e=this;t&&(Yl.detail=t,$l.detail=t),this.dispatchEvent(Yl),this.getRenderingService().render(this.getConfig(),t,(function(){e.dispatchEvent(ql)})),this.dispatchEvent($l)}},{key:"run",value:function(){var t=this,e=function(n,i){t.render(i),t.frameId=t.requestAnimationFrame(e)};e()}},{key:"initRenderer",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)throw new Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.rBushRoot=new fi,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new jl,new Vl,new Gl([new Hl])),this.loadRendererContainerModule(t),this.context.contextService=new this.context.ContextService((0,a.Z)((0,a.Z)({},al),this.context)),this.context.renderingService=new Es(al,this.context),this.context.eventService=new xs(al,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(t,n,!0)):this.context.contextService.initAsync().then((function(){e.initRenderingService(t,n)}))}},{key:"initRenderingService",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.context.renderingService.init((function(){e.inited=!0,n?i?e.requestAnimationFrame((function(){e.dispatchEvent(new gs(Zl.READY))})):e.dispatchEvent(new gs(Zl.READY)):e.dispatchEvent(new gs(Zl.RENDERER_CHANGED)),e.readyPromise&&e.resolveReadyPromise(),n||e.getRoot().forEach((function(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0,e.dirty=!0)})),e.mountChildren(e.getRoot()),t.getConfig().enableAutoRendering&&e.run()}))}},{key:"loadRendererContainerModule",value:function(t){var e=this;t.getPlugins().forEach((function(t){t.context=e.context,t.init(al)}))}},{key:"setRenderer",value:function(t){var e=this.getConfig();if(e.renderer!==t){var n=e.renderer;e.renderer=t,this.destroy(!1,!0),(0,l.Z)((null==n?void 0:n.getPlugins())||[]).reverse().forEach((function(t){t.destroy(al)})),this.initRenderer(t)}}},{key:"setCursor",value:function(t){this.getConfig().cursor=t,this.getContextService().applyCursorStyle(t)}},{key:"unmountChildren",value:function(t){var e=this;t.childNodes.forEach((function(t){e.unmountChildren(t)})),this.inited&&(t.isMutationObserved?t.dispatchEvent(Xl):(Xl.target=t,this.dispatchEvent(Xl,!0)),t!==this.document.documentElement&&(t.ownerDocument=null),t.isConnected=!1),t.isCustomElement&&t.disconnectedCallback&&t.disconnectedCallback()}},{key:"mountChildren",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mo(t);this.inited?t.isConnected||(t.ownerDocument=this.document,t.isConnected=!0,n||(t.isMutationObserved?t.dispatchEvent(Wl):(Wl.target=t,this.dispatchEvent(Wl,!0)))):console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",t.nodeName),t.childNodes.forEach((function(t){e.mountChildren(t,n)})),t.isCustomElement&&t.connectedCallback&&t.connectedCallback()}},{key:"mountFragment",value:function(t){this.mountChildren(t,!1)}},{key:"client2Viewport",value:function(t){return this.getEventService().client2Viewport(t)}},{key:"viewport2Client",value:function(t){return this.getEventService().viewport2Client(t)}},{key:"viewport2Canvas",value:function(t){return this.getEventService().viewport2Canvas(t)}},{key:"canvas2Viewport",value:function(t){return this.getEventService().canvas2Viewport(t)}},{key:"getPointByClient",value:function(t,e){return this.client2Viewport({x:t,y:e})}},{key:"getClientByPoint",value:function(t,e){return this.viewport2Client({x:t,y:e})}}])}(vs),Ql=function(t){function e(){var t;(0,o.Z)(this,e);for(var n=arguments.length,i=new Array(n),r=0;r90)return this;this.computeMatrix()}return this._getAxes(),this.type===qi.ORBITING||this.type===qi.EXPLORING?this._getPosition():this.type===qi.TRACKING&&this._getFocalPoint(),this._update(),this}},{key:"pan",value:function(t,e){var n=Di(t,e,0),i=x(this.position);return T(i,i,C(y(),this.right,n[0])),T(i,i,C(y(),this.up,n[1])),this._setPosition(i),this.triggerUpdate(),this}},{key:"dolly",value:function(t){var e=this.forward,n=x(this.position),i=this.dollyingStep,r=this.distance+t*this.dollyingStep;return i=Math.max(Math.min(r,this.maxDistance),this.minDistance)-this.distance,n[0]+=i*e[0],n[1]+=i*e[1],n[2]+=i*e[2],this._setPosition(n),this.type===qi.ORBITING||this.type===qi.EXPLORING?this._getDistance():this.type===qi.TRACKING&&T(this.focalPoint,n,this.distanceVector),this.triggerUpdate(),this}},{key:"cancelLandmarkAnimation",value:function(){void 0!==this.landmarkAnimationID&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID)}},{key:"createLandmark",value:function(t){var e,n,i,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=a.position,s=void 0===o?this.position:o,l=a.focalPoint,u=void 0===l?this.focalPoint:l,c=a.roll,h=a.zoom,d=new al.CameraContribution;d.setType(this.type,void 0),d.setPosition(s[0],null!==(e=s[1])&&void 0!==e?e:this.position[1],null!==(n=s[2])&&void 0!==n?n:this.position[2]),d.setFocalPoint(u[0],null!==(i=u[1])&&void 0!==i?i:this.focalPoint[1],null!==(r=u[2])&&void 0!==r?r:this.focalPoint[2]),d.setRoll(null!=c?c:this.roll),d.setZoom(null!=h?h:this.zoom);var f={name:t,matrix:H(d.getWorldTransform()),right:x(d.right),up:x(d.up),forward:x(d.forward),position:x(d.getPosition()),focalPoint:x(d.getFocalPoint()),distanceVector:x(d.getDistanceVector()),distance:d.getDistance(),dollyingStep:d.getDollyingStep(),azimuth:d.getAzimuth(),elevation:d.getElevation(),roll:d.getRoll(),relAzimuth:d.relAzimuth,relElevation:d.relElevation,relRoll:d.relRoll,zoom:d.getZoom()};return this.landmarks.push(f),f}},{key:"gotoLandmark",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(0,ue.Z)(t)?this.landmarks.find((function(e){return e.name===t})):t;if(i){var r=(0,oe.Z)(n)?{duration:n}:n,a=r.easing,o=void 0===a?"linear":a,s=r.duration,l=void 0===s?100:s,u=r.easingFunction,c=void 0===u?void 0:u,h=r.onfinish,d=void 0===h?void 0:h,f=r.onframe,p=void 0===f?void 0:f,g=.01;this.cancelLandmarkAnimation();var m,v=i.position,x=i.focalPoint,b=i.zoom,_=i.roll,E=c||al.EasingFunction(o),w=function(){e.setFocalPoint(x),e.setPosition(v),e.setRoll(_),e.setZoom(b),e.computeMatrix(),e.triggerUpdate(),null==d||d()};if(0===l)return w();var T=function(t){void 0===m&&(m=t);var n=t-m;if(n>=l)w();else{var i,r,a=E(n/l),o=y(),s=y();if(P(o,e.focalPoint,x,a),P(s,e.position,v,a),r=e.roll*(1-a)+_*a,i=e.zoom*(1-a)+b*a,e.setFocalPoint(o),e.setPosition(s),e.setRoll(r),e.setZoom(i),B(o,x)+B(s,v)<=g&&void 0===b&&void 0===_)return w();e.computeMatrix(),e.triggerUpdate(),n0&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&Number(this._currentTime)<=0)}},{key:"totalDuration",get:function(){return this._totalDuration}},{key:"_needsTick",get:function(){return this.pending||"running"===this.playState||!this._finishedFlag}},{key:"updatePromises",value:function(){var t=this.oldPlayState,e=this.pending?"pending":this.playState;return this.readyPromise&&e!==t&&("idle"===e?(this.rejectReadyPromise(),this.readyPromise=void 0):"pending"===t?this.resolveReadyPromise():"pending"===e&&(this.readyPromise=void 0)),this.finishedPromise&&e!==t&&("idle"===e?(this.rejectFinishedPromise(),this.finishedPromise=void 0):"finished"===e?this.resolveFinishedPromise():"finished"===t&&(this.finishedPromise=void 0)),this.oldPlayState=e,this.readyPromise||this.finishedPromise}},{key:"play",value:function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),-1===this.timeline.animations.indexOf(this)&&this.timeline.animations.push(this),this.updatePromises()}},{key:"pause",value:function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),this._isFinished||this._paused||this._idle?this._idle&&(this.rewind(),this._idle=!1):this.currentTimePending=!0,this._startTime=null,this._paused=!0,this.updatePromises()}},{key:"finish",value:function(){this.updatePromises(),this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())}},{key:"cancel",value:function(){var t=this;if(this.updatePromises(),this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises(),this.oncancel)){var e=new Jl(null,this,this.currentTime,null);setTimeout((function(){t.oncancel(e)}))}}},{key:"reverse",value:function(){this.updatePromises();var t=this.currentTime;this.playbackRate*=-1,this.play(),null!==t&&(this.currentTime=t),this.updatePromises()}},{key:"updatePlaybackRate",value:function(t){this.playbackRate=t}},{key:"targetAnimations",value:function(){var t;return(null===(t=this.effect)||void 0===t?void 0:t.target).getAnimations()}},{key:"markTarget",value:function(){var t=this.targetAnimations();-1===t.indexOf(this)&&t.push(this)}},{key:"unmarkTarget",value:function(){var t=this.targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}},{key:"tick",value:function(t,e){this._idle||this._paused||(null===this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this.currentTimePending=!1,this.fireEvents(t))}},{key:"rewind",value:function(){if(this.playbackRate>=0)this.currentTime=0;else{if(!(this._totalDuration<1/0))throw new Error("Unable to rewind negative playback rate animation with infinite duration");this.currentTime=this._totalDuration}}},{key:"persist",value:function(){throw new Error(Ni)}},{key:"addEventListener",value:function(t,e,n){throw new Error(Ni)}},{key:"removeEventListener",value:function(t,e,n){throw new Error(Ni)}},{key:"dispatchEvent",value:function(t){throw new Error(Ni)}},{key:"commitStyles",value:function(){throw new Error(Ni)}},{key:"ensureAlive",value:function(){var t,e;this.playbackRate<0&&0===this.currentTime?this._inEffect=!(null===(t=this.effect)||void 0===t||!t.update(-1)):this._inEffect=!(null===(e=this.effect)||void 0===e||!e.update(this.currentTime));this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,this.timeline.animations.push(this))}},{key:"tickCurrentTime",value:function(t,e){t!==this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this.ensureAlive())}},{key:"fireEvents",value:function(t){var e=this;if(this._isFinished){if(!this._finishedFlag){if(this.onfinish){var n=new Jl(null,this,this.currentTime,t);setTimeout((function(){e.onfinish&&e.onfinish(n)}))}this._finishedFlag=!0}}else{if(this.onframe&&"running"===this.playState){var i=new Jl(null,this,this.currentTime,t);this.onframe(i)}this._finishedFlag=!1}}}])}(),nu=.1,iu="function"==typeof Float32Array,ru=function(t,e){return 1-3*e+3*t},au=function(t,e){return 3*e-6*t},ou=function(t){return 3*t},su=function(t,e,n){return((ru(e,n)*t+au(e,n))*t+ou(e))*t},lu=function(t,e,n){return 3*ru(e,n)*t*t+2*au(e,n)*t+ou(e)},uu=function(t,e,n,i){if(!(t>=0&&t<=1&&n>=0&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&n===i)return function(t){return t};for(var r=iu?new Float32Array(11):new Array(11),a=0;a<11;++a)r[a]=su(a*nu,t,n);var o=function(e){for(var i=0,a=1;10!==a&&r[a]<=e;++a)i+=nu;--a;var o=i+(e-r[a])/(r[a+1]-r[a])*nu,s=lu(o,t,n);return s>=.001?function(t,e,n,i){for(var r=0;r<4;++r){var a=lu(e,n,i);if(0===a)return e;e-=(su(e,n,i)-t)/a}return e}(e,o,t,n):0===s?o:function(t,e,n,i,r){var a,o,s=0;do{(a=su(o=e+(n-e)/2,i,r)-t)>0?n=o:e=o}while(Math.abs(a)>1e-7&&++s<10);return o}(e,i,i+nu,t,n)};return function(t){return 0===t||1===t?t:su(o(t),e,i)}},cu=function(t){return Math.pow(t,2)},hu=function(t){return Math.pow(t,3)},du=function(t){return Math.pow(t,4)},fu=function(t){return Math.pow(t,5)},pu=function(t){return Math.pow(t,6)},gu=function(t){return 1-Math.cos(t*Math.PI/2)},mu=function(t){return 1-Math.sqrt(1-t*t)},vu=function(t){return t*t*(3*t-2)},yu=function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)},xu=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,p.Z)(e,2),i=n[0],r=void 0===i?1:i,a=n[1],o=void 0===a?.5:a,s=ce(Number(r),1,10),l=ce(Number(o),.1,2);return 0===t||1===t?t:-s*Math.pow(2,10*(t-1))*Math.sin((t-1-l/(2*Math.PI)*Math.asin(1/s))*(2*Math.PI)/l)},bu=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=(0,p.Z)(e,4),r=i[0],a=void 0===r?1:r,o=i[1],s=void 0===o?100:o,l=i[2],u=void 0===l?10:l,c=i[3],h=void 0===c?0:c;a=ce(a,.1,1e3),s=ce(s,.1,1e3),u=ce(u,.1,1e3),h=ce(h,.1,1e3);var d=Math.sqrt(s/a),f=u/(2*Math.sqrt(s*a)),g=f<1?d*Math.sqrt(1-f*f):0,m=1,v=f<1?(f*d-h)/g:-h+d,y=n?n*t/1e3:t;return y=f<1?Math.exp(-y*f*d)*(m*Math.cos(g*y)+v*Math.sin(g*y)):(m+v*y)*Math.exp(-y*d),0===t||1===t?t:1-y},_u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e,i=(0,p.Z)(n,2),r=i[0],a=void 0===r?10:r,o=i[1],s="start"===o?Math.ceil:Math.floor;return s(ce(t,0,1)*a)/a},Eu=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,p.Z)(e,4),i=n[0],r=n[1],a=n[2],o=n[3];return uu(i,r,a,o)(t)},wu=uu(.42,0,1,1),Tu=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;return 1-t(1-e,n,i)}},Su=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;return e<.5?t(2*e,n,i)/2:1-t(-2*e+2,n,i)/2}},Mu=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;return e<.5?(1-t(1-2*e,n,i))/2:(t(2*e-1,n,i)+1)/2}},Cu={steps:_u,"step-start":function(t){return _u(t,[1,"start"])},"step-end":function(t){return _u(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":Eu,ease:function(t){return Eu(t,[.25,.1,.25,1])},in:wu,out:Tu(wu),"in-out":Su(wu),"out-in":Mu(wu),"in-quad":cu,"out-quad":Tu(cu),"in-out-quad":Su(cu),"out-in-quad":Mu(cu),"in-cubic":hu,"out-cubic":Tu(hu),"in-out-cubic":Su(hu),"out-in-cubic":Mu(hu),"in-quart":du,"out-quart":Tu(du),"in-out-quart":Su(du),"out-in-quart":Mu(du),"in-quint":fu,"out-quint":Tu(fu),"in-out-quint":Su(fu),"out-in-quint":Mu(fu),"in-expo":pu,"out-expo":Tu(pu),"in-out-expo":Su(pu),"out-in-expo":Mu(pu),"in-sine":gu,"out-sine":Tu(gu),"in-out-sine":Su(gu),"out-in-sine":Mu(gu),"in-circ":mu,"out-circ":Tu(mu),"in-out-circ":Su(mu),"out-in-circ":Mu(mu),"in-back":vu,"out-back":Tu(vu),"in-out-back":Su(vu),"out-in-back":Mu(vu),"in-bounce":yu,"out-bounce":Tu(yu),"in-out-bounce":Su(yu),"out-in-bounce":Mu(yu),"in-elastic":xu,"out-elastic":Tu(xu),"in-out-elastic":Su(xu),"out-in-elastic":Mu(xu),spring:bu,"spring-in":bu,"spring-out":Tu(bu),"spring-in-out":Su(bu),"spring-out-in":Mu(bu)},Au=function(t){return t};function Ou(t,e){return function(n){if(n>=1)return 1;var i=1/t;return(n+=e*i)-n%i}}var Nu="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",Pu=new RegExp("cubic-bezier\\(".concat(Nu,",").concat(Nu,",").concat(Nu,",").concat(Nu,"\\)")),Lu=/steps\(\s*(\d+)\s*\)/,Ru=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function Du(t){var e=Pu.exec(t);if(e)return uu.apply(void 0,(0,l.Z)(e.slice(1).map(Number)));var n=Lu.exec(t);if(n)return Ou(Number(n[1]),0);var i=Ru.exec(t);return i?Ou(Number(i[1]),{start:1,middle:.5,end:0}[i[2]]):Cu[function(t){return function(t){return"-"===(t=t.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())}))).charAt(0)?t.substring(1):t}(t).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()}(t)]||Cu.linear}function ku(t){return Math.abs(function(t){var e;if(0===t.duration||0===t.iterations)return 0;return("auto"===t.duration?0:Number(t.duration))*(null!==(e=t.iterations)&&void 0!==e?e:1)}(t)/(t.playbackRate||1))}function Iu(t,e,n){var i=function(t,e,n){if(null===e)return 0;var i=n.endTime;return e=Math.min(n.delay+t+n.endDelay,i)?2:3}(t,e,n),r=function(t,e,n,i,r){switch(i){case 1:return"backwards"===e||"both"===e?0:null;case 3:return n-r;case 2:return"forwards"===e||"both"===e?t:null;case 0:return null}}(t,n.fill,e,i,n.delay);if(null===r)return null;var a="auto"===n.duration?0:n.duration,o=function(t,e,n,i,r){var a=r;return 0===t?1!==e&&(a+=n):a+=i/t,a}(a,i,n.iterations,r,n.iterationStart),s=function(t,e,n,i,r,a){var o=t===1/0?e%1:t%1;return 0!==o||2!==n||0===i||0===r&&0!==a||(o=1),o}(o,n.iterationStart,i,n.iterations,r,a),l=function(t,e,n,i){return 2===t&&e===1/0?1/0:1===n?Math.floor(i)-1:Math.floor(i)}(i,n.iterations,s,o),u=function(t,e,n){var i=t;if("normal"!==t&&"reverse"!==t){var r=e;"alternate-reverse"===t&&(r+=1),i="normal",r!==1/0&&r%2!=0&&(i="reverse")}return"normal"===i?n:1-n}(n.direction,l,s);return n.currentIteration=l,n.progress=u,n.easingFunction(u)}function Bu(t,e,n){var i=function(t,e){for(var n={},i=0;i=t.applyFrom&&e1)throw new Error("Keyframe offsets must be between 0 and 1.");n.computedOffset=r}}else if("composite"===i&&-1===["replace","add","accumulate","auto"].indexOf(r))throw new Error("".concat(r," compositing is not supported"));n[i]=r}return void 0===n.offset&&(n.offset=null),void 0===n.easing&&(n.easing=(null==e?void 0:e.easing)||"linear"),void 0===n.composite&&(n.composite="auto"),n})),i=!0,r=-1/0,a=0;a=0&&Number(t.offset)<=1})),i||function(){var t,e,i=n.length;n[i-1].computedOffset=Number(null!==(t=n[i-1].offset)&&void 0!==t?t:1),i>1&&(n[0].computedOffset=Number(null!==(e=n[0].offset)&&void 0!==e?e:0));for(var r=0,a=Number(n[0].computedOffset),o=1;o{!bc.mute&&console.debug(xc(t))},info:t=>{!bc.mute&&console.info(xc(t))},warn:t=>{!bc.mute&&console.warn(xc(t))},error:t=>{!bc.mute&&console.error(xc(t))}};function _c(t){const{theme:e}=t;if(!e)return{};const n=yc(mc.THEME,e);return n||(bc.warn(`The theme of ${e} is not registered.`),{})}function Ec(t,e){if(Array.isArray(t)&&0===t.length)return null;const n=Array.isArray(t)?t[0]:t,i=Array.isArray(t)?t.slice(1):e||[];return new Proxy(n,{get(t,e){return"function"!=typeof t[e]||["onframe","onfinish"].includes(e)?"finished"===e?Promise.all([n.finished,...i.map((t=>t.finished))]):Reflect.get(t,e):(...n)=>{t[e](...n),i.forEach((t=>{var i;return null===(i=t[e])||void 0===i?void 0:i.call(t,...n)}))}},set(t,e,n){return["onframe","onfinish"].includes(e)||i.forEach((t=>{t[e]=n})),Reflect.set(t,e,n)}})}function wc(t){const e=t.reduce(((t,e)=>(Object.entries(e).forEach((([e,n])=>{void 0===t[e]?t[e]=[n]:t[e].push(n)})),t)),{});Object.entries(e).forEach((([n,i])=>{(i.length!==t.length||i.some((t=>(0,le.Z)(t)))||i.every((t=>!["sourceNode","targetNode","childrenNode"].includes(n)&&ec(t,i[0]))))&&delete e[n]}));const n=Object.entries(e).reduce(((t,[e,n])=>(n.forEach(((n,i)=>{t[i]?t[i][e]=n:t[i]={[e]:n}})),t)),[]);return 0!==t.length&&0===n.length&&n.push({_:0},{_:0}),n}function Tc(t){switch(t){case"opacity":return 1;case"x":case"y":case"z":case"zIndex":return 0;case"visibility":return"visible";case"collapsed":return!1;case"states":return[];default:return}}function Sc(t,e){const{animation:n}=t;if(!1===n||!1===e)return!1;const i=Object.assign({},nc);return(0,nn.Z)(n)&&Object.assign(i,n),(0,nn.Z)(e)&&Object.assign(i,e),i}function Mc(t,e,n,i){var r,a;const{animation:o}=t,s=null===(r=null==t?void 0:t[e])||void 0===r?void 0:r.animation;if(!1===s)return[];const l=null==s?void 0:s[n];if(!1===l)return[];if(!1===o||!1===i)return[];const u=null===(a=_c(t)[e])||void 0===a?void 0:a.animation,c=(t=[])=>function(t){if("string"==typeof t){return yc(mc.ANIMATION,t)||(bc.warn(`The animation of ${t} is not registered.`),[])}return t}(t).map((t=>Object.assign(Object.assign(Object.assign(Object.assign({},ic),(0,nn.Z)(o)&&o),t),(0,nn.Z)(i)&&i)));if(l)return c(l);if(!u)return[];const h=u[n];return!1===h?[]:c(h)}function Cc(t,e,n,i){if(Array.isArray(i)){let r=!1;const a=[];for(let o=0;o{if(!n.length)return null;const[i,r]=e;let a;const o=n.map((e=>{var{fields:n,shape:o,states:s}=e,l=Ac(e,["fields","shape","states"]);const u=(e=>{var n;if(e){const a=t.getShape(e);if(!a)return null;const o=`get${Ku(e)}Style`,s=(null===(n=null==t?void 0:t[o])||void 0===n?void 0:n.bind(t))||(t=>t);return{shape:a,fromStyle:(null==s?void 0:s(i))||{},toStyle:(null==s?void 0:s(r))||{}}}return{shape:t,fromStyle:i,toStyle:r}})(o);if(!u)return null;const{shape:c,fromStyle:h,toStyle:d}=u,f=[{},{}];if(n.forEach((t=>{var e,n;Object.assign(f[0],{[t]:null!==(e=h[t])&&void 0!==e?e:Tc(t)}),Object.assign(f[1],{[t]:null!==(n=d[t])&&void 0!==n?n:Tc(t)})})),f.some((t=>Object.keys(t).some((t=>["x","y","z"].includes(t)))))){const{x:t=0,y:e=0,z:n=0,transform:i=""}=c.attributes||{};f.forEach((r=>{r.transform=Cc(r.x||t,r.y||e,r.z||n,i)}))}const p=c.animate(wc(f),l);return void 0===o&&(a=p),p})).filter(Boolean),s=a||(null==o?void 0:o[0]);return s?Ec(s,o.filter((t=>t!=t))):null},Nc=[{fields:["x","y"]}],Pc=Nc,Lc=[{fields:["sourceNode","targetNode"]}],Rc=Lc,Dc=[{fields:["childrenNode","x","y"]}],kc=Dc;var Ic=Object.prototype.hasOwnProperty;var Bc=function(t,e){if(!e||!(0,Fe.Z)(t))return{};for(var n,i={},r=(0,en.Z)(e)?e:function(t){return t[e]},a=0;ae?(i&&(clearTimeout(i),i=null),s=u,o=t.apply(r,a),i||(r=a=null)):i||!1===n.trailing||(i=setTimeout(l,c)),o};return u.cancel=function(){clearTimeout(i),s=0,i=r=a=null},u},zc=n(83559);function Gc(t){return t instanceof Float32Array||!(!Array.isArray(t)||2!==t.length&&3!==t.length)&&t.every((t=>"number"==typeof t))}function jc(t,e,n){return t>=e&&t<=n}function Uc(t=0){if(Array.isArray(t)){const[e=0,n=e,i=e,r=n]=t;return[e,n,i,r]}return[t,t,t,t]}function Hc(t=0){const e=Uc(t);return e[0]+e[2]}function Vc(t){return t.max[0]-t.min[0]}function Zc(t){return t.max[1]-t.min[1]}function Wc(t){return[Vc(t),Zc(t)]}function Xc(t,e){const n=Gc(t)?Yc(t):t.getShape("key").getBounds();return e?qc(n,e):n}function Yc(t){const[e,n,i=0]=t,r=new Ti;return r.setMinMax([e,n,i],[e,n,i]),r}function qc(t,e){const[n,i,r,a]=Uc(e),[o,s,l]=t.min,[u,c,h]=t.max,d=new Ti;return d.setMinMax([o-a,s-n,l],[u+i,c+r,h]),d}function $c(t){if(0===t.length)return new Ti;if(1===t.length)return t[0];const e=new Ti;e.setMinMax(t[0].min,t[0].max);for(let n=1;nc[e.id]+s?(c[o]=c[e.id]+s,h[o]=[e.id]):c[o]===c[e.id]+s&&h[o].push(e.id)}))},p=0;p0&&(this.list[0]=e,this.moveDown(0)),t},t.prototype.insert=function(t){if(null!==t){this.list.push(t);var e=this.list.length-1;return this.moveUp(e),!0}return!1},t.prototype.moveUp=function(t){for(var e=this.getParent(t);t&&t>0&&this.compareFn(this.list[e],this.list[t])>0;){var n=this.list[e];this.list[e]=this.list[t],this.list[t]=n,t=e,e=this.getParent(t)}},t.prototype.moveDown=function(t){var e,n=t,i=this.getLeft(t),r=this.getRight(t),a=this.list.length;null!==i&&i0?n=i:null!==r&&r0&&(n=r),t!==n&&(e=[this.list[n],this.list[t]],this.list[t]=e[0],this.list[n]=e[1],this.moveDown(n))}}(),function(t,e,n){"number"!=typeof e&&(e=1e-6),"number"!=typeof n&&(n=.85);for(var i,r=1,a=0,o=1e3,s=t.nodes,l=void 0===s?[]:s,u=t.edges,c=void 0===u?[]:u,h=l.length,d={},f={},p=0;p0&&r>e;){a=0;for(p=0;p0&&(i+=f[x]/b)}d[m]=n*i,a+=d[m]}}a=(1-a)/h,r=0;for(p=0;p=0;e--){var n=this.dfsEdgeList[e],i=n.fromNode,r=n.toNode;ih||i.hasNode(a[c.to])||(e.labelp;m--){if("break"===g(m))break}if(d){var v=t.findMinLabel(h);a.dfsEdgeList.push(new Ph(c,f,Ch,v.edgeLabel,Ch));var y=a.dfsEdgeList.length-1;return t.dfsCode.dfsEdgeList[y]===a.dfsEdgeList[y]&&o(h[v.edgeLabel].projected)}var x={};d=!1;var b=0;s.forEach((function(e){var n=new Rh(e),a=t.findForwardPureEdges(i,n.edges[l[0]],u,n);a.length>0&&(d=!0,b=c,a.forEach((function(t){var n="".concat(t.label,"-").concat(r[t.to].label);x[n]||(x[n]={projected:[],edgeLabel:t.label,nodeLabel2:r[t.to].label}),x[n].projected.push({graphId:i.id,edge:t,preNode:e})})))}));var _=l.length,E=function(e){if(d)return"break";var n=l[e];s.forEach((function(e){var o=new Rh(e),s=t.findForwardRmpathEdges(i,o.edges[n],u,o);s.length>0&&(d=!0,b=a.dfsEdgeList[n].fromNode,s.forEach((function(t){var n="".concat(t.label,"-").concat(r[t.to].label);x[n]||(x[n]={projected:[],edgeLabel:t.label,nodeLabel2:r[t.to].label}),x[n].projected.push({graphId:i.id,edge:t,preNode:e})})))}))};for(m=0;m<_;m++){if("break"===E(m))break}if(!d)return!0;var w=t.findMinLabel(x);a.dfsEdgeList.push(new Ph(b,c+1,Ch,w.edgeLabel,w.nodeLabel2));var T=a.dfsEdgeList.length-1;return e.dfsEdgeList[T]===a.dfsEdgeList[T]&&o(x["".concat(w.edgeLabel,"-").concat(w.nodeLabel2)].projected)}(o[l].projected)}},t.prototype.report=function(){if(!(this.dfsCode.getNodeNum()=0;h--){var d=e.findBackwardEdge(l,c.edges[i[h]],c.edges[i[0]],c);if(d){var f="".concat(e.dfsCode.dfsEdgeList[i[h]].fromNode,"-").concat(d.label);s[f]||(s[f]={projected:[],toNodeId:e.dfsCode.dfsEdgeList[i[h]].fromNode,edgeLabel:d.label}),s[f].projected.push({graphId:t.graphId,edge:d,preNode:t})}}if(!(n>=e.maxNodeNum)){e.findForwardPureEdges(l,c.edges[i[0]],a,c).forEach((function(e){var n="".concat(r,"-").concat(e.label,"-").concat(u[e.to].label);o[n]||(o[n]={projected:[],fromNodeId:r,edgeLabel:e.label,nodeLabel2:u[e.to].label}),o[n].projected.push({graphId:t.graphId,edge:e,preNode:t})}));var p=function(n){e.findForwardRmpathEdges(l,c.edges[i[n]],a,c).forEach((function(r){var a="".concat(e.dfsCode.dfsEdgeList[i[n]].fromNode,"-").concat(r.label,"-").concat(u[r.to].label);o[a]||(o[a]={projected:[],fromNodeId:e.dfsCode.dfsEdgeList[i[n]].fromNode,edgeLabel:r.label,nodeLabel2:u[r.to].label}),o[a].projected.push({graphId:t.graphId,edge:r,preNode:t})}))};for(h=0;hr){var o=r;r=i,i=o}var c=t.label,h="".concat(n,"-").concat(i,"-").concat(c,"-").concat(r),d="".concat(i,"-").concat(c,"-").concat(r);if(!a[d]){var f=a[d]||0;f++,a[d]=f}s[h]={graphId:n,nodeLabel1:i,edgeLabel:c,nodeLabel2:r}}))}))})),Object.keys(r).forEach((function(t){if(!(r[t]=this.maxStep},t.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},t.prototype.push=function(t){this.linkedList.prepend(t),this.length>this.maxStep&&this.linkedList.deleteTail()},t.prototype.pop=function(){var t=this.linkedList.deleteHead();return t?t.value:null},t.prototype.toArray=function(){return this.linkedList.toArray().map((function(t){return t.value}))},t.prototype.clear=function(){for(;!this.isEmpty();)this.pop()}}();function Dh(t){if(void 0!==t.id)return t.id;if(void 0!==t.source&&void 0!==t.target)return`${t.source}-${t.target}`;throw new Error(xc("The datum does not have available id."))}function kh(t){return t.combo}function Ih(t,e){const n={nodes:(t.nodes||[]).map(Dh),edges:(t.edges||[]).map(Dh),combos:(t.combos||[]).map(Dh)};return e?Object.values(n).flat():n}const Bh=(t,e,n)=>{var i;switch(n.type){case"degree":{const r=new Map;return null===(i=t.nodes)||void 0===i||i.forEach((t=>{const i=e(Dh(t),n.direction).length;r.set(Dh(t),i)})),r}case"betweenness":return zh(t,n.directed,n.weightPropertyName);case"closeness":return Gh(t,n.directed,n.weightPropertyName);case"eigenvector":return Uh(t,n.directed);case"pagerank":return jh(t,n.epsilon,n.linkProb);default:return Fh(t)}},Fh=t=>{var e;const n=new Map;return null===(e=t.nodes)||void 0===e||e.forEach((t=>{n.set(Dh(t),0)})),n},zh=(t,e,n)=>{const i=Fh(t),{nodes:r=[]}=t;return r.forEach((a=>{r.forEach((r=>{if(a!==r){const{allPath:o}=Th(t,Dh(a),Dh(r),e,n),s=o.length;o.flat().forEach((t=>{t!==Dh(a)&&t!==Dh(r)&&i.set(t,i.get(t)+1/s)}))}}))})),i},Gh=(t,e,n)=>{const i=new Map,{nodes:r=[]}=t;return r.forEach((a=>{const o=r.reduce(((i,r)=>{if(a!==r){const{length:o}=Th(t,Dh(a),Dh(r),e,n);i+=o}return i}),0);i.set(Dh(a),1/o)})),i},jh=(t,e,n)=>{var i;const r=new Map,a=Mh(t,e,n);return null===(i=t.nodes)||void 0===i||i.forEach((t=>{r.set(Dh(t),a[Dh(t)])})),r},Uh=(t,e)=>{const{nodes:n=[]}=t,i=Hh(t,e),r=Vh(i,n.length),a=new Map;return n.forEach(((t,e)=>{a.set(Dh(t),r[e])})),a},Hh=(t,e)=>{const{nodes:n=[],edges:i=[]}=t,r=Array(n.length).fill(null).map((()=>Array(n.length).fill(0)));return i.forEach((({source:t,target:i})=>{const a=n.findIndex((e=>Dh(e)===t)),o=n.findIndex((t=>Dh(t)===i));e?r[a][o]=1:(r[a][o]=1,r[o][a]=1)})),r},Vh=(t,e,n=100,i=1e-6)=>{let r=Array(e).fill(1),a=1/0;for(let o=0;oi;o++){const n=Array(e).fill(0);for(let i=0;it+e*e),0));for(let t=0;tt+(e-r[n])*e),0)),r=n}return r};function Zh(t,e,n,i=ec){const r=new Map(t.map((t=>[n(t),t]))),a=new Map(e.map((t=>[n(t),t]))),o=new Set(r.keys()),s=new Set(a.keys()),l=[],u=[],c=[],h=[];return s.forEach((t=>{o.has(t)?i(r.get(t),a.get(t))?h.push(a.get(t)):u.push(a.get(t)):l.push(a.get(t))})),o.forEach((t=>{s.has(t)||c.push(r.get(t))})),{enter:l,exit:c,keep:h,update:u}}const Wh=new WeakMap;function Xh(t,e,n=!1,i){if(void 0===e)return;const r=(a,o=e)=>{const s=(t=o)=>a.childNodes.forEach((e=>r(e,t)));if(i&&!i(a))return s();if(n||a!==t){Wh.has(a)||Wh.set(a,a.style.visibility);const t="hidden"===o||"hidden"===function(t){return Wh.has(t)?Wh.get(t):t.style.visibility}(a)?"hidden":"visible";a.style.visibility=t,s(t)}else t.style.visibility=e,Wh.delete(t),s(e)};r(t)}class Yh{constructor(t){this.extensions=[],this.extensionMap={},this.context=t}setExtensions(t){const e=function(t,e,n){const i={},r=t=>(t in i||(i[t]=0),`${e}-${t}-${i[t]++}`);return n.map((e=>"string"==typeof e?{type:e,key:r(e)}:"function"==typeof e?e.call(t):e.key?e:Object.assign(Object.assign({},e),{key:r(e.type)})))}(this.context.graph,this.category,t),{enter:n,update:i,exit:r,keep:a}=Zh(this.extensions,e,(t=>t.key));this.createExtensions(n),this.updateExtensions([...i,...a]),this.destroyExtensions(r),this.extensions=e}createExtension(t){const{category:e}=this,{key:n,type:i}=t,r=yc(e,i);if(!r)return bc.warn(`The extension ${i} of ${e} is not registered.`);const a=new r(this.context,t);this.extensionMap[n]=a}createExtensions(t){t.forEach((t=>this.createExtension(t)))}updateExtension(t){const{key:e}=t,n=this.extensionMap[e];n&&n.update(t)}updateExtensions(t){t.forEach((t=>this.updateExtension(t)))}destroyExtension(t){const e=this.extensionMap[t];e&&(e.destroy(),delete this.extensionMap[t])}destroyExtensions(t){t.forEach((({key:t})=>this.destroyExtension(t)))}destroy(){Object.values(this.extensionMap).forEach((t=>t.destroy())),this.context={},this.extensions=[],this.extensionMap={}}}class qh{constructor(t,e){this.events=[],this.destroyed=!1,this.context=t,this.options=e}update(t){this.options=Object.assign(this.options,t)}destroy(){this.context={},this.options={},this.destroyed=!0}}class $h extends qh{}class Kh extends $h{constructor(t,e){super(t,Object.assign({},Kh.defaultOptions,e)),this.isOverlapping=(t,e)=>e.some((e=>t.intersects(e))),this.occupiedBounds=[],this.detectLabelCollision=t=>{const e=this.context.viewport,n={show:[],hide:[]};return this.occupiedBounds=[],t.forEach((t=>{const i=t.getShape("label").getRenderBounds();e.isInViewport(i,!0)&&!this.isOverlapping(i,this.occupiedBounds)?(n.show.push(t),this.occupiedBounds.push(qc(i,this.options.padding))):n.hide.push(t)})),n},this.hideLabelIfExceedViewport=(t,e)=>{const{exit:n}=Zh(t,e,(t=>t.id));null==n||n.forEach(this.hideLabel)},this.nodeCentralities=new Map,this.sortNodesByCentrality=(t,e)=>{const{model:n}=this.context,i=n.getData(),r=n.getRelatedEdgesData.bind(n);return t.map((t=>(this.nodeCentralities.has(t.id)||(this.nodeCentralities=Bh(i,r,e)),{node:t,centrality:this.nodeCentralities.get(t.id)}))).sort(((t,e)=>e.centrality-t.centrality)).map((t=>t.node))},this.sortLabelElementsInView=t=>{const{sort:e,sortNode:n,sortCombo:i,sortEdge:r}=this.options,{model:a}=this.context;if((0,en.Z)(e))return t.sort(((t,n)=>e(a.getElementDataById(t.id),a.getElementDataById(n.id))));const{node:o=[],edge:s=[],combo:l=[]}=Bc(t,(t=>t.type));return[...(0,en.Z)(i)?l.sort(((t,e)=>i(...a.getComboData([t.id,e.id])))):l,...(0,en.Z)(n)?o.sort(((t,e)=>n(...a.getNodeData([t.id,e.id])))):this.sortNodesByCentrality(o,n),...(0,en.Z)(r)?s.sort(((t,e)=>r(...a.getEdgeData([t.id,e.id])))):s]},this.labelElementsInView=[],this.isFirstRender=!0,this.onToggleVisibility=t=>{var e;if("zIndex"===(null===(e=t.data)||void 0===e?void 0:e.stage))return;if(!this.validate(t))return void(this.hiddenElements.size>0&&(this.hiddenElements.forEach(this.showLabel),this.hiddenElements.clear()));const n=this.isFirstRender?this.getLabelElements():this.getLabelElementsInView();this.hideLabelIfExceedViewport(this.labelElementsInView,n),this.labelElementsInView=n;const i=this.sortLabelElementsInView(this.labelElementsInView),{show:r,hide:a}=this.detectLabelCollision(i);for(let t=r.length-1;t>=0;t--)this.showLabel(r[t]);a.forEach(this.hideLabel)},this.hiddenElements=new Map,this.hideLabel=t=>{const e=t.getShape("label");e&&Xh(e,"hidden"),this.hiddenElements.set(t.id,t)},this.showLabel=t=>{const e=t.getShape("label");e&&Xh(e,"visible"),t.toFront(),this.hiddenElements.delete(t.id)},this.onTransform=Fc(this.onToggleVisibility,this.options.throttle,{leading:!0}),this.enableToggle=!0,this.toggle=t=>{this.enableToggle&&this.onToggleVisibility(t)},this.onBeforeRender=()=>{this.enableToggle=!1},this.onAfterRender=t=>{this.onToggleVisibility(t),this.enableToggle=!0},this.bindEvents()}update(t){this.unbindEvents(),super.update(t),this.bindEvents(),this.onToggleVisibility({})}getLabelElements(){const{elementMap:t}=this.context.element,e=[];for(const n in t){const i=t[n];i.isVisible()&&i.getShape("label")&&e.push(i)}return e}getLabelElementsInView(){const t=this.context.viewport;return this.getLabelElements().filter((e=>t.isInViewport(e.getShape("key").getRenderBounds())))}bindEvents(){const{graph:t}=this.context;t.on(hc.BEFORE_RENDER,this.onBeforeRender),t.on(hc.AFTER_RENDER,this.onAfterRender),t.on(hc.AFTER_DRAW,this.toggle),t.on(hc.AFTER_LAYOUT,this.toggle),t.on(hc.AFTER_TRANSFORM,this.onTransform)}unbindEvents(){const{graph:t}=this.context;t.off(hc.BEFORE_RENDER,this.onBeforeRender),t.off(hc.AFTER_RENDER,this.onAfterRender),t.off(hc.AFTER_DRAW,this.toggle),t.off(hc.AFTER_LAYOUT,this.toggle),t.off(hc.AFTER_TRANSFORM,this.onTransform)}validate(t){if(this.destroyed)return!1;const{enable:e}=this.options;return(0,en.Z)(e)?e(t):!!e}destroy(){this.unbindEvents(),super.destroy()}}Kh.defaultOptions={enable:!0,throttle:100,padding:0,sortNode:{type:"degree"}};var Qh=n(58212);const Jh=[0,0,0];function td(t,e){return t.map(((t,n)=>t+e[n]))}function ed(t,e){return t.map(((t,n)=>t-e[n]))}function nd(t,e){return"number"==typeof e?t.map((t=>t*e)):t.map(((t,n)=>t*e[n]))}function id(t,e){return"number"==typeof e?t.map((t=>t/e)):t.map(((t,n)=>t/e[n]))}function rd(t,e){return t.map((t=>t*e))}function ad(t,e){return Math.sqrt(t.reduce(((t,n,i)=>t+Math.pow(n-e[i]||0,2)),0))}function od(t,e){return t.reduce(((t,n,i)=>t+Math.abs(n-e[i])),0)}function sd(t){const e=t.reduce(((t,e)=>t+Math.pow(e,2)),0);return t.map((t=>t/Math.sqrt(e)))}function ld(t,e,n=!1){const i=t[0]*e[1]-t[1]*e[0];let r=Math.acos(nd(t,e).reduce(((t,e)=>t+e),0)/(ad(t,Jh)*ad(e,Jh)));return n&&i<0&&(r=2*Math.PI-r),r}function ud(t,e=!0){return e?[-t[1],t[0]]:[t[1],-t[0]]}function cd(t){return[t[0],t[1]]}function hd(t){return function(t){return 2===t.length}(t)?[t[0],t[1],0]:t}function dd(t){const[e,n]=t;return e||n?Math.atan2(n,e):0}function fd(t,e){const[n,i]=t,[r,a]=e;return function(t,e){const n=hd(t),i=hd(e);return[n[1]*i[2]-n[2]*i[1],n[2]*i[0]-n[0]*i[2],n[0]*i[1]-n[1]*i[0]]}(ed(n,i),ed(r,a)).every((t=>0===t))}function pd(t,e,n=!1){if(fd(t,e))return;const[i,r]=t,[a,o]=e,s=((i[0]-a[0])*(a[1]-o[1])-(i[1]-a[1])*(a[0]-o[0]))/((i[0]-r[0])*(a[1]-o[1])-(i[1]-r[1])*(a[0]-o[0])),l=o[0]-a[0]?(i[0]-a[0]+s*(r[0]-i[0]))/(o[0]-a[0]):(i[1]-a[1]+s*(r[1]-i[1]))/(o[1]-a[1]);return n||jc(s,0,1)&&jc(l,0,1)?[i[0]+s*(r[0]-i[0]),i[1]+s*(r[1]-i[1])]:void 0}function gd(t){if(Array.isArray(t))return jc(t[0],0,1)&&jc(t[1],0,1)?t:[.5,.5];const e=t.split("-");return[e.includes("left")?0:e.includes("right")?1:.5,e.includes("top")?0:e.includes("bottom")?1:.5]}function md(t){const{x:e=0,y:n=0,z:i=0}=t.style||{};return[+e,+n,+i]}function vd(t){const{x:e,y:n,z:i}=t.style||{};return void 0!==e||void 0!==n||void 0!==i}function yd(t,e){const[n,i]=e,{min:r,max:a}=t;return[r[0]+n*(a[0]-r[0]),r[1]+i*(a[1]-r[1])]}function xd(t,e="center"){return yd(t,gd(e))}function bd(t){var e;return[t.x,t.y,null!==(e=t.z)&&void 0!==e?e:0]}function _d(t){var e;return{x:t[0],y:t[1],z:null!==(e=t[2])&&void 0!==e?e:0}}function Ed(t,e=0){return t.map((t=>parseFloat(t.toFixed(e))))}function wd(t,e,n,i=!1){if(ec(t,e))return t;const r=sd(i?ed(t,e):ed(e,t)),a=[r[0]*n,r[1]*n];return td(cd(t),a)}function Td(t,e){return t[1]===e[1]}function Sd(t,e){return[2*e[0]-t[0],2*e[1]-t[1]]}function Md(t,e,n,i=!0,r=!1){for(let a=0;a{const r=function(t,e){const n=Od(t,e);return ad(t,n)}(t,e);r1?c=1:c<0&&(c=0);return[n+c*l,i+c*u]}function Nd(t,e=!0){const n=function(t){return id(t.reduce(((t,e)=>td(t,e)),[0,0]),t.length)}(t);return t.sort((([t,i],[r,a])=>{const o=Math.atan2(i-n[1],t-n[0]),s=Math.atan2(a-n[1],r-n[0]);return e?s-o:o-s}))}function Pd(t,e){return[t,[t[0],e[1]],e,[e[0],t[1]]]}const Ld=t=>t.map((t=>(0,ue.Z)(t)?t.toLocaleLowerCase():t));class Rd{constructor(t){this.map=new Map,this.recordKey=new Set,this.onKeyDown=t=>{(null==t?void 0:t.key)&&(this.recordKey.add(t.key),this.trigger(t))},this.onKeyUp=t=>{(null==t?void 0:t.key)&&this.recordKey.delete(t.key)},this.onWheel=t=>{this.triggerExtendKey(lc.WHEEL,t)},this.onDrag=t=>{this.triggerExtendKey(lc.DRAG,t)},this.onFocus=()=>{this.recordKey.clear()},this.emitter=t,this.bindEvents()}bind(t,e){0!==t.length&&this.map.set(t,e)}unbind(t,e){this.map.forEach(((n,i)=>{ec(i,t)&&(e&&e!==n||this.map.delete(i))}))}unbindAll(){this.map.clear()}match(t){const e=Ld(Array.from(this.recordKey)).sort(),n=Ld(t).sort();return ec(e,n)}bindEvents(){var t;const{emitter:e}=this;e.on(lc.KEY_DOWN,this.onKeyDown),e.on(lc.KEY_UP,this.onKeyUp),e.on(lc.WHEEL,this.onWheel),e.on(lc.DRAG,this.onDrag),null===(t=globalThis.addEventListener)||void 0===t||t.call(globalThis,"focus",this.onFocus)}trigger(t){this.map.forEach(((e,n)=>{this.match(n)&&e(t)}))}triggerExtendKey(t,e){this.map.forEach(((n,i)=>{i.includes(t)&&ec(Array.from(this.recordKey),i.filter((e=>e!==t)))&&n(e)}))}destroy(){var t;this.unbindAll(),this.emitter.off(lc.KEY_DOWN,this.onKeyDown),this.emitter.off(lc.KEY_UP,this.onKeyUp),this.emitter.off(lc.WHEEL,this.onWheel),this.emitter.off(lc.DRAG,this.onDrag),null===(t=globalThis.removeEventListener)||void 0===t||t.call(globalThis,"blur",this.onFocus)}}class Dd extends $h{constructor(t,e){super(t,(0,Qh.Z)({},Dd.defaultOptions,e)),this.shortcut=new Rd(t.graph),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.clearStates=this.clearStates.bind(this),this.bindEvents()}onPointerDown(t){if(!this.validate(t)||!this.isKeydown()||this.startPoint)return;const{canvas:e,graph:n}=this.context,i=Object.assign({},this.options.style);this.options.style.lineWidth&&(i.lineWidth=+this.options.style.lineWidth/n.getZoom()),this.rectShape=new kl({id:"g6-brush-select",style:i}),e.appendChild(this.rectShape),this.startPoint=[t.canvas.x,t.canvas.y]}onPointerMove(t){var e;if(!this.startPoint)return;const{immediately:n,mode:i}=this.options;this.endPoint=kd(t),null===(e=this.rectShape)||void 0===e||e.attr({x:Math.min(this.endPoint[0],this.startPoint[0]),y:Math.min(this.endPoint[1],this.startPoint[1]),width:Math.abs(this.endPoint[0]-this.startPoint[0]),height:Math.abs(this.endPoint[1]-this.startPoint[1])}),n&&"default"===i&&this.updateElementsStates(Pd(this.startPoint,this.endPoint))}onPointerUp(t){this.startPoint&&(this.endPoint?(this.endPoint=kd(t),this.updateElementsStates(Pd(this.startPoint,this.endPoint)),this.clearBrush()):this.clearBrush())}clearStates(){this.endPoint||this.clearElementsStates()}clearElementsStates(){const{graph:t}=this.context,e=Object.values(t.getData()).reduce(((t,e)=>Object.assign({},t,e.reduce(((t,e)=>(t[Dh(e)]=[],t)),{}))),{});t.setElementState(e,this.options.animation)}updateElementsStates(t){const{graph:e}=this.context,{enableElements:n,state:i,mode:r,onSelect:a}=this.options,o=this.selector(e,t,n);let s={};switch(r){case"union":o.forEach((t=>{s[t]=[...e.getElementState(t),i]}));break;case"diff":o.forEach((t=>{const n=e.getElementState(t);s[t]=n.includes(i)?n.filter((t=>t!==i)):[...n,i]}));break;case"intersect":o.forEach((t=>{const n=e.getElementState(t);s[t]=n.includes(i)?[i]:[]}));break;default:o.forEach((t=>{s[t]=[i]}))}(0,en.Z)(a)&&(s=a(s)),e.setElementState(s,this.options.animation)}selector(t,e,n){if(!n||0===n.length)return[];const i=[],r=t.getData();if(n.forEach((n=>{r[`${n}s`].forEach((n=>{const r=Dh(n);"hidden"!==t.getElementVisibility(r)&&function(t,e,n,i){const r=t[0],a=t[1];let o=!1;void 0===n&&(n=0),void 0===i&&(i=e.length);const s=i-n;for(let t=0,i=s-1;ta!=c>a&&r<(u-s)*(a-l)/(c-l)+s&&(o=!o)}return o}(t.getElementPosition(r),e)&&i.push(r)}))})),n.includes("edge")){const t=r.edges;null==t||t.forEach((t=>{const{source:e,target:n}=t;i.includes(e)&&i.includes(n)&&i.push(Dh(t))}))}return i}clearBrush(){var t;null===(t=this.rectShape)||void 0===t||t.remove(),this.rectShape=void 0,this.startPoint=void 0,this.endPoint=void 0}isKeydown(){const{trigger:t}=this.options,e=Array.isArray(t)?t:[t];return this.shortcut.match(e.filter((t=>"drag"!==t)))}validate(t){if(this.destroyed)return!1;const{enable:e}=this.options;return(0,en.Z)(e)?e(t):!!e}bindEvents(){const{graph:t}=this.context;t.on(lc.POINTER_DOWN,this.onPointerDown),t.on(lc.POINTER_MOVE,this.onPointerMove),t.on(lc.POINTER_UP,this.onPointerUp),t.on(oc.CLICK,this.clearStates)}unbindEvents(){const{graph:t}=this.context;t.off(lc.POINTER_DOWN,this.onPointerDown),t.off(lc.POINTER_MOVE,this.onPointerMove),t.off(lc.POINTER_UP,this.onPointerUp),t.off(oc.CLICK,this.clearStates)}update(t){this.unbindEvents(),this.options=(0,Qh.Z)(this.options,t),this.bindEvents()}destroy(){this.unbindEvents(),super.destroy()}}Dd.defaultOptions={animation:!1,enable:!0,enableElements:["node","combo","edge"],immediately:!1,mode:"default",state:"selected",trigger:["shift"],style:{width:0,height:0,lineWidth:1,fill:"#1677FF",stroke:"#1677FF",fillOpacity:.1,zIndex:2,pointerEvents:"none"}};const kd=t=>[t.canvas.x,t.canvas.y],Id=.8,Bd=["node","edge","combo"];function Fd(t,e,n,i,r=0){"TB"===i&&e(t,r);const a=n(t);if(a)for(const t of a)Fd(t,e,n,i,r+1);"BT"===i&&e(t,r)}function zd(t,e,n,i,r="both"){if("combo"===e||"node"===e)return Gd(t,n,i,r);const a=t.getEdgeData(n);if(!a)return[];const o=Gd(t,a.source,i-1,r),s=Gd(t,a.target,i-1,r);return Array.from(new Set([...o,...s,n]))}function Gd(t,e,n,i="both"){const r=new Set,a=new Set,o=new Set;return function(t,e,n){const i=[[t,0]];for(;i.length;){const[t,r]=i.shift();e(t,r);const a=n(t);if(a)for(const t of a)i.push([t,r+1])}}(e,((e,r)=>{r>n||(o.add(e),t.getRelatedEdgesData(e,i).forEach((t=>{const e=Dh(t);!a.has(e)&&rt.getRelatedEdgesData(e,i).map((t=>t.source===e?t.target:t.source)).filter((t=>!r.has(t)&&(r.add(t),!0))))),Array.from(o)}function jd(t){return t.states||[]}var Ud=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};class Hd extends $h{constructor(t,e){super(t,Object.assign({},Hd.defaultOptions,e)),this.onClickSelect=t=>Ud(this,void 0,void 0,(function*(){var e,n;this.validate(t)&&(yield this.updateState(t),null===(n=(e=this.options).onClick)||void 0===n||n.call(e,t))})),this.onClickCanvas=t=>Ud(this,void 0,void 0,(function*(){var e,n;this.validate(t)&&(yield this.clearState(),null===(n=(e=this.options).onClick)||void 0===n||n.call(e,t))})),this.shortcut=new Rd(t.graph),this.bindEvents()}bindEvents(){const{graph:t}=this.context;this.unbindEvents(),Bd.forEach((e=>{t.on(`${e}:${lc.CLICK}`,this.onClickSelect)})),t.on(oc.CLICK,this.onClickCanvas)}get isMultipleSelect(){const{multiple:t,trigger:e}=this.options;return t&&this.shortcut.match(e)}getNeighborIds(t){const{target:e,targetType:n}=t,{graph:i}=this.context,{degree:r}=this.options;return zd(i,n,e.id,"function"==typeof r?r(t):r).filter((t=>t!==e.id))}updateState(t){return Ud(this,void 0,void 0,(function*(){const{state:e,unselectedState:n,neighborState:i,animation:r}=this.options;if(!e&&!i&&!n)return;const{target:a}=t,{graph:o}=this.context,s=jd(o.getElementData(a.id)).includes(e)?"unselect":"select",l={},u=this.isMultipleSelect,c=[a.id],h=this.getNeighborIds(t);if(u)if(Object.assign(l,this.getDataStates()),"select"===s){const t=(t,e)=>{t.forEach((t=>{const i=new Set(o.getElementState(t));i.add(e),i.delete(n),l[t]=Array.from(i)}))};t(c,e),t(h,i),n&&Object.keys(l).forEach((t=>{const r=l[t];r.includes(e)||r.includes(i)||r.includes(n)||l[t].push(n)}))}else{const t=l[a.id];l[a.id]=t.filter((t=>t!==e&&t!==i)),t.includes(n)||l[a.id].push(n),h.forEach((t=>{l[t]=l[t].filter((t=>t!==i)),l[t].includes(e)||l[t].push(n)}))}else if("select"===s){Object.assign(l,this.getClearStates(!!n));const t=(t,e)=>{t.forEach((t=>{l[t]||(l[t]=o.getElementState(t)),l[t].push(e)}))};t(c,e),t(h,i),n&&Object.keys(l).forEach((t=>{c.includes(t)||h.includes(t)||l[t].push(n)}))}else Object.assign(l,this.getClearStates());yield o.setElementState(l,r)}))}getDataStates(){const{graph:t}=this.context,{nodes:e,edges:n,combos:i}=t.getData(),r={};return[...e,...n,...i].forEach((t=>{r[Dh(t)]=jd(t)})),r}getClearStates(t=!1){const{graph:e}=this.context,{state:n,unselectedState:i,neighborState:r}=this.options,a=new Set([n,i,r]),{nodes:o,edges:s,combos:l}=e.getData(),u={};return[...o,...s,...l].forEach((e=>{const n=jd(e),i=n.filter((t=>!a.has(t)));(t||i.length!==n.length)&&(u[Dh(e)]=i)})),u}clearState(){return Ud(this,void 0,void 0,(function*(){const{graph:t}=this.context;yield t.setElementState(this.getClearStates(),this.options.animation)}))}validate(t){if(this.destroyed)return!1;const{enable:e}=this.options;return(0,en.Z)(e)?e(t):!!e}unbindEvents(){const{graph:t}=this.context;Bd.forEach((e=>{t.off(`${e}:${lc.CLICK}`,this.onClickSelect)})),t.off(oc.CLICK,this.onClickCanvas)}destroy(){this.unbindEvents(),super.destroy()}}function Vd(t){var e;return!!(null===(e=t.style)||void 0===e?void 0:e.collapsed)}Hd.defaultOptions={animation:!0,enable:!0,multiple:!1,trigger:["shift"],state:"selected",neighborState:"selected",unselectedState:void 0,degree:0};var Zd=function(t,e,n){for(var i=0,r=(0,ue.Z)(e)?e.split("."):e;t&&i="A"&&n<="Z"}function qd(t,e){return`${e}${Ku(t)}`}function $d(t,e,n=!0){if(!e)return t;if(!Yd(t,e))return t;const i=t.slice(e.length);return n?Xd(i):i}function Kd(t,e){const n=Object.entries(t).reduce(((t,[n,i])=>("className"===n||"class"===n||Yd(n,e)&&Object.assign(t,{[$d(n,e)]:i}),t)),{});if("opacity"in t){const i=qd("opacity",e),r=t.opacity;if(i in t){const e=t[i];Object.assign(n,{opacity:r*e})}else Object.assign(n,{opacity:r})}return n}function Qd(t,e){const n=e.length;return Object.keys(t).reduce(((i,r)=>{if(r.startsWith(e)){i[r.slice(n)]=t[r]}return i}),{})}function Jd(t,e){const n="string"==typeof e?[e]:e,i={};return Object.keys(t).forEach((e=>{n.find((t=>e.startsWith(t)))||(i[e]=t[e])})),i}function tf(t=0){if("number"==typeof t)return[t,t,t];const[e,n=e,i=e]=t;return[e,n,i]}var ef=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r"function"==typeof e?[t,e.call(i,n)]:[t,e])))}function rf(t,e){const n=(null==t?void 0:t.style)||{},i=(null==e?void 0:e.style)||{};return Object.assign({},t,e,{style:(null==t?void 0:t.style)?Object.assign({},n,i):i})}const af=new WeakMap;function of(t,e,n){af.has(t)||af.set(t,{});const i=af.get(t);if(!i[e])return i[e]=n,!0;const r=i[e];return!sf(r,n)&&(i[e]=n,!0)}const sf=(t,e,n=2)=>{if("object"!=typeof t||"object"!=typeof e)return t===e;const i=Object.keys(t),r=Object.keys(e);if(i.length!==r.length)return!1;for(const r of i){const i=t[r],a=e[r];if(n>1&&"object"==typeof i&&"object"==typeof a){if(!sf(i,a,n-1))return!1}else if(i!==a)return!1}return!0};function lf(t){if(t)return"string"==typeof t||"function"==typeof t||Array.isArray(t)?{type:"group",field:t=>t.id,color:t,invert:!1}:t}function uf(t){const e="string"==typeof t?yc("palette",t):t;if("function"!=typeof e)return e}function cf(t,e){let n=2*t;return"string"==typeof e?n=t*Number(e.replace("%",""))/100:"number"==typeof e&&(n=e),isNaN(n)&&(n=2*t),n}function hf(t,e,n=1,i=!1){const r=i?n:1;return cf((t.max[0]-t.min[0])*r,e)}var df={}.toString,ff=function(t){return df.call(t).replace(/^\[object /,"").replace(/]$/,"")},pf=Object.prototype,gf=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||pf)},mf=Object.prototype.hasOwnProperty;var vf=function(t){if((0,le.Z)(t))return!0;if(Ju(t))return!t.length;var e=ff(t);if("Map"===e||"Set"===e)return!t.size;if(gf(t))return!Object.keys(t).length;for(var n in t)if(mf.call(t,n))return!1;return!0};class yf extends _l{constructor(t){super(t),this.shapeMap={},this.animateMap={},this.transformPosition(this.attributes),this.render(this.attributes,this),this.setVisibility(),this.bindEvents()}get parsedAttributes(){return this.attributes}upsert(t,e,n,i,r){var a,o,s,l,u,c,h,d;const f=this.shapeMap[t];if(!1===n)return void(f&&(null===(a=null==r?void 0:r.beforeDestroy)||void 0===a||a.call(r,f),i.removeChild(f),delete this.shapeMap[t],null===(o=null==r?void 0:r.afterDestroy)||void 0===o||o.call(r,f)));const p="string"==typeof e?yc(mc.SHAPE,e):e;if(!p)throw new Error(xc(`Shape ${e} not found`));if(!f||f.destroyed||!(f instanceof p)){f&&(null===(s=null==r?void 0:r.beforeDestroy)||void 0===s||s.call(r,f),null==f||f.destroy(),null===(l=null==r?void 0:r.afterDestroy)||void 0===l||l.call(r,f)),null===(u=null==r?void 0:r.beforeCreate)||void 0===u||u.call(r);const e=new p({className:t,style:n});return i.appendChild(e),this.shapeMap[t]=e,null===(c=null==r?void 0:r.afterCreate)||void 0===c||c.call(r,e),e}return null===(h=null==r?void 0:r.beforeUpdate)||void 0===h||h.call(r,f),Em(f,n),null===(d=null==r?void 0:r.afterUpdate)||void 0===d||d.call(r,f),f}transformPosition(t){if("x"in t||"y"in t||"z"in t){const{x:e=0,y:n=0,z:i=0,transform:r}=t,a=Cc(+e,+n,+i,r);a&&(this.style.transform=a)}}update(t={}){const e=Object.assign({},this.attributes,t);this.attr(e),this.render(e,this),this.transformPosition(e),this.setVisibility()}bindEvents(){}getGraphicStyle(t){return function(t){const{x:e,y:n,z:i,class:r,className:a,transform:o,transformOrigin:s,zIndex:l,visibility:u}=t;return ef(t,["x","y","z","class","className","transform","transformOrigin","zIndex","visibility"])}(t)}get compositeShapes(){return[["badges","badge-"],["ports","port-"]]}animate(t,e){if(0===t.length)return null;const n=[];if(void 0!==t[0].x||void 0!==t[0].y||void 0!==t[0].z){const{x:e=0,y:n=0,z:i=0}=this.attributes;t.forEach((t=>{const{x:r=e,y:a=n,z:o=i}=t;Object.assign(t,{transform:o?[["translate3d",r,a,o]]:[["translate",r,a]]})}))}const i=super.animate(t,e);if(i&&(xf(this,i),n.push(i)),Array.isArray(t)&&t.length>0){const i=["transform","transformOrigin","x","y","z","zIndex"];if(Object.keys(t[0]).some((t=>!i.includes(t)))){Object.entries(this.shapeMap).forEach((([i,r])=>{const a=this[`get${Ku(i)}Style`];if((0,en.Z)(a)){const i=t.map((t=>a.call(this,Object.assign(Object.assign({},this.attributes),t)))),o=r.animate(wc(i),e);o&&(xf(r,o),n.push(o))}}));const i=(i,r)=>{if(!vf(i)){const a=this[`get${Ku(r)}Style`];if((0,en.Z)(a)){const r=t.map((t=>a.call(this,Object.assign(Object.assign({},this.attributes),t))));Object.entries(r[0]).map((([t])=>{const a=r.map((e=>e[t])),o=i[t];if(o){const t=o.animate(wc(a),e);t&&(xf(o,t),n.push(t))}}))}}};this.compositeShapes.forEach((([t,e])=>{const n=Qd(this.shapeMap,e);i(n,t)}))}}return Ec(n)}getShape(t){return this.shapeMap[t]}setVisibility(){const{visibility:t}=this.attributes;Xh(this,t,!0)}destroy(){this.shapeMap={},this.animateMap={},super.destroy()}}function xf(t,e){null==e||e.finished.then((()=>{const n=t.activeAnimations.findIndex((t=>t===e));n>-1&&t.activeAnimations.splice(n,1)}))}var bf=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r0;){let t=e.shift();t in wf?i=t:e.unshift(t),r={type:i},wf[i].forEach((n=>{t=e.shift(),r[n]=t})),"M"===i?i="L":"m"===i&&(i="l");const[a,...o]=Object.values(r);n.push([a,...o.map(Number)])}return n}(t):t;return n.forEach((t=>{const n=t[0];if("Z"!==n)if("A"!==n)for(let n=1;n{if(t.length<2)return[["M",0,0],["L",0,0]];const e=t[0],n=t[1],i=t[t.length-1],r=t[t.length-2];t.unshift(r,i),t.push(e,n);const a=[["M",i[0],i[1]]];for(let e=1;e{const n=t,i=c[(e+1)%c.length];return ec(n,i)?null:[n,i]})).filter(Boolean),d=Ad([s,l],h),f=Od([s,l],d);if(f&&d&&(u.transform=[["translate",f[0]+n,f[1]+i]],o)){const t=Math.atan((d[0][1]-d[1][1])/(d[0][0]-d[1][0]));u.transform.push(["rotate",t/Math.PI*180]),u.textAlign="center","right"!==e&&"left"!==e||(u.textBaseline=t>0?"right"===e?"bottom":"top":"right"===e?"top":"bottom")}return u}(c,o,i,r,s,t.d,a),{wordWrapWidth:hf(c,n)},l)}getKeyStyle(t){return this.getGraphicStyle(t)}render(t,e){this.upsert("key",Nl,this.getKeyStyle(t),e),this.upsert("label",_f,this.getLabelStyle(t),e)}}Cf.defaultStyleProps={label:!0,labelPlacement:"bottom",labelCloseToPath:!0,labelAutoRotate:!0,labelOffsetX:0,labelOffsetY:0};class Af extends Ml{constructor(t){super(t),this.onMounted=()=>{this.handleRadius()},this.onAttrModified=()=>{this.handleRadius()},Nf=this,this.isMutationObserved=!0,this.addEventListener(Ss.MOUNTED,this.onMounted),this.addEventListener(Ss.ATTR_MODIFIED,this.onAttrModified)}handleRadius(){const{radius:t,clipPath:e,width:n=0,height:i=0}=this.attributes;if(t&&n&&i){const[r,a]=this.getBounds().min,o={x:r,y:a,radius:t,width:n,height:i};if(e)Object.assign(this.parsedStyle.clipPath.style,o);else{const t=new kl({style:o});this.style.clipPath=t}}else e&&(this.style.clipPath=null)}}const Of=new WeakMap;let Nf=null;const Pf=t=>{if(Nf&&function(t){const e=[];let n=t.parentNode;for(;n;)e.push(n),n=n.parentNode;return e}(Nf).includes(t)){const e=Of.get(t);e?e.includes(Nf)||e.push(Nf):Of.set(t,[Nf])}},Lf=t=>{const e=Of.get(t);e&&e.forEach((t=>t.handleRadius()))};class Rf extends yf{constructor(t){super(t)}isImage(){const{src:t}=this.attributes;return!!t}getIconStyle(t=this.attributes){const{width:e=0,height:n=0}=t,i=this.getGraphicStyle(t);return this.isImage()?Object.assign({x:-e/2,y:-n/2},i):Object.assign({textBaseline:"middle",textAlign:"center"},i)}render(t=this.attributes,e=this){this.upsert("icon",this.isImage()?Af:Bl,this.getIconStyle(t),e)}}class Df extends yf{get context(){return this.config.context}get parsedAttributes(){return this.attributes}onframe(){}animate(t,e){const n=super.animate(t,e);return n&&(n.onframe=()=>this.onframe(),n.finished.then((()=>this.onframe()))),n}}var kf=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{i[t]=!1})),!1===t.badge||!(null===(e=t.badges)||void 0===e?void 0:e.length))return i;const{badges:r=[],badgePalette:a,opacity:o=1}=t,s=kf(t,["badges","badgePalette","opacity"]),l=uf(a),u=Kd(this.getGraphicStyle(s),"badge");return r.forEach(((t,e)=>{i[e]=Object.assign(Object.assign({backgroundFill:l?l[e%(null==l?void 0:l.length)]:void 0,opacity:o},u),this.getBadgeStyle(t))})),i}getBadgeStyle(t){const e=this.getShape("key"),{placement:n="top",offsetX:i,offsetY:r}=t,a=kf(t,["placement","offsetX","offsetY"]),o=_m(e.getLocalBounds(),n,i,r,!0);return Object.assign(Object.assign({},o),a)}getPortsStyle(t){var e;const n=this.getPorts(),i={};if(Object.keys(n).forEach((t=>{i[t]=!1})),!1===t.port||!(null===(e=t.ports)||void 0===e?void 0:e.length))return i;const r=Kd(this.getGraphicStyle(t),"port"),{ports:a=[]}=t;return a.forEach(((e,n)=>{const a=e.key||n,o=Object.assign(Object.assign({},r),e);if(gm(o))i[a]=!1;else{const[n,r]=this.getPortXY(t,e);i[a]=Object.assign({transform:[["translate",n,r]]},o)}})),i}getPortXY(t,e){const{placement:n="left"}=e,i=this.getShape("key");return fm(function(t,e){if(!t)return e.getLocalBounds();const n=t.canvas.getLayer(),i=e.cloneNode();Xh(i,"hidden"),n.appendChild(i);const r=i.getLocalBounds();return i.destroy(),r}(this.context,i),n)}getPorts(){return Qd(this.shapeMap,"port-")}getCenter(){return this.getShape("key").getBounds().center}getIntersectPoint(t,e=!1){return function(t,e,n=!1){return Md(t,xd(e,"center"),[xd(e,"left-top"),xd(e,"right-top"),xd(e,"right-bottom"),xd(e,"left-bottom")],!1,n).point}(t,this.getShape("key").getBounds(),e)}drawHaloShape(t,e){const n=this.getHaloStyle(t);if(!of(this,"halo",n))return;const i=this.getShape("key");this.upsert("halo",i.constructor,n,e)}drawIconShape(t,e){const n=this.getIconStyle(t);of(this,"icon",n)&&(this.upsert("icon",Rf,n,e),Pf(this))}drawBadgeShapes(t,e){const n=this.getBadgesStyle(t);Object.keys(n).forEach((t=>{const i=n[t];of(this,`badge-${t}`,i)&&this.upsert(`badge-${t}`,Ef,i,e)}))}drawPortShapes(t,e){const n=this.getPortsStyle(t);Object.keys(n).forEach((t=>{const i=n[t],r=`port-${t}`;of(this,r,i)&&this.upsert(r,xl,i,e)}))}drawLabelShape(t,e){const n=this.getLabelStyle(t);of(this,"label",n)&&this.upsert("label",_f,n,e)}_drawKeyShape(t,e){return this.drawKeyShape(t,e)}render(t=this.parsedAttributes,e=this){this._drawKeyShape(t,e),this.getShape("key")&&(this.drawHaloShape(t,e),this.drawIconShape(t,e),this.drawBadgeShapes(t,e),this.drawLabelShape(t,e),this.drawPortShapes(t,e))}update(t){super.update(t),t&&("x"in t||"y"in t||"z"in t)&&Lf(this)}onframe(){this.drawBadgeShapes(this.parsedAttributes,this),this.drawLabelShape(this.parsedAttributes,this)}}If.defaultStyleProps={x:0,y:0,size:32,droppable:!0,draggable:!0,port:!0,ports:[],portZIndex:2,portLinkToCenter:!1,badge:!0,badges:[],badgeZIndex:3,halo:!1,haloDroppable:!1,haloLineDash:0,haloLineWidth:12,haloStrokeOpacity:.25,haloPointerEvents:"none",haloZIndex:-1,icon:!0,iconZIndex:1,label:!0,labelIsBillboard:!0,labelMaxWidth:"200%",labelPlacement:"bottom",labelWordWrap:!1,labelZIndex:0};class Bf extends If{constructor(t){super(rf({style:Bf.defaultStyleProps},t))}drawKeyShape(t,e){return this.upsert("key",xl,this.getKeyStyle(t),e)}getKeyStyle(t){const e=super.getKeyStyle(t);return Object.assign(Object.assign({},e),{r:Math.min(...this.getSize(t))/2})}getIconStyle(t){const e=super.getIconStyle(t),{r:n}=this.getShape("key").attributes,i=2*n*Id;return!!e&&Object.assign({width:i,height:i},e)}getIntersectPoint(t,e=!1){return Cd(t,this.getShape("key").getBounds(),e)}}Bf.defaultStyleProps={size:32};class Ff extends If{constructor(t){super(t)}get parsedAttributes(){return this.attributes}drawKeyShape(t,e){return this.upsert("key",Ll,this.getKeyStyle(t),e)}getKeyStyle(t){const e=super.getKeyStyle(t);return Object.assign(Object.assign({},e),{points:this.getPoints(t)})}getIntersectPoint(t,e=!1){var n,i;const{points:r}=this.getShape("key").attributes;return Md(t,[+((null===(n=this.attributes)||void 0===n?void 0:n.x)||0),+((null===(i=this.attributes)||void 0===i?void 0:i.y)||0)],r,!0,e).point}}var zf=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r(0,oe.Z)(t)?{value:t}:t)),r=Kd(this.getGraphicStyle(t),"donut"),a=uf(t.donutPalette);if(!a)return;const o=i.reduce(((t,e)=>{var n;return t+(null!==(n=e.value)&&void 0!==n?n:0)}),0),s=this.parseOuterR(),l=this.parseInnerR();let u=0;i.forEach(((t,n)=>{const{value:c=0,color:h=a[n%a.length]}=t,d=zf(t,["value","color"]),f=360*(0===o?1/i.length:c/o);this.upsert(`round${n}`,Nl,Object.assign(Object.assign(Object.assign({},r),{d:Uf(s,l,u,u+f),fill:h}),d),e),u+=f}))}render(t,e=this){super.render(t,e),this.drawDonutShape(t,e)}}Gf.defaultStyleProps={innerR:"50%",donuts:[],donutPalette:"tableau"};const jf=(t,e,n,i)=>[t+Math.sin(i)*n,e-Math.cos(i)*n],Uf=(t=0,e=0,n,i)=>{const[r,a]=[0,0];return Math.abs(n-i)%360<1e-6?((t,e,n,i)=>i<=0||n<=i?[["M",t-n,e],["A",n,n,0,1,1,t+n,e],["A",n,n,0,1,1,t-n,e],["Z"]]:[["M",t-n,e],["A",n,n,0,1,1,t+n,e],["A",n,n,0,1,1,t-n,e],["Z"],["M",t+i,e],["A",i,i,0,1,0,t-i,e],["A",i,i,0,1,0,t+i,e],["Z"]])(r,a,t,e):((t,e,n,i,r,a)=>{const[o,s]=[r/360*2*Math.PI,a/360*2*Math.PI],l=[jf(t,e,i,o),jf(t,e,n,o),jf(t,e,n,s),jf(t,e,i,s)],u=s-o>Math.PI?1:0;return[["M",l[0][0],l[0][1]],["L",l[1][0],l[1][1]],["A",n,n,0,u,1,l[2][0],l[2][1]],["L",l[3][0],l[3][1]],["A",i,i,0,u,0,l[0][0],l[0][1]],["Z"]]})(r,a,t,e,n,i)};class Hf extends If{constructor(t){super(rf({style:Hf.defaultStyleProps},t))}drawKeyShape(t,e){return this.upsert("key",El,this.getKeyStyle(t),e)}getKeyStyle(t){const e=super.getKeyStyle(t),[n,i]=this.getSize(t);return Object.assign(Object.assign({},e),{rx:n/2,ry:i/2})}getIconStyle(t){const e=super.getIconStyle(t),{rx:n,ry:i}=this.getShape("key").attributes,r=2*Math.min(+n,+i)*Id;return!!e&&Object.assign({width:r,height:r},e)}getIntersectPoint(t,e=!1){return Cd(t,this.getShape("key").getBounds(),e)}}Hf.defaultStyleProps={size:[45,35]};function Vf(t,e){var n=e.cx,i=void 0===n?0:n,r=e.cy,a=void 0===r?0:r,o=e.r;t.arc(i,a,o,0,2*Math.PI,!1)}function Zf(t,e){var n=e.cx,i=void 0===n?0:n,r=e.cy,a=void 0===r?0:r,o=e.rx,s=e.ry;if(t.ellipse)t.ellipse(i,a,o,s,0,0,2*Math.PI,!1);else{var l=o>s?o:s,u=o>s?1:o/s,c=o>s?s/o:1;t.save(),t.scale(u,c),t.arc(i,a,l,0,2*Math.PI)}}function Wf(t,e){var n,i,r=e.x1,a=e.y1,o=e.x2,s=e.y2,l=e.markerStart,u=e.markerEnd,c=e.markerStartOffset,h=e.markerEndOffset,d=0,f=0,p=0,g=0,m=0;l&&fl(l)&&c&&(n=o-r,i=s-a,m=Math.atan2(i,n),d=Math.cos(m)*(c||0),f=Math.sin(m)*(c||0)),u&&fl(u)&&h&&(n=r-o,i=a-s,m=Math.atan2(i,n),p=Math.cos(m)*(h||0),g=Math.sin(m)*(h||0)),t.moveTo(r+d,a+f),t.lineTo(o+p,s+g)}function Xf(t,e){var n,i,r=e.markerStart,a=e.markerEnd,o=e.markerStartOffset,s=e.markerEndOffset,l=e.d,u=l.absolutePath,c=l.segments,h=0,d=0,f=0,g=0,m=0;if(r&&fl(r)&&o){var v=r.parentNode.getStartTangent(),y=(0,p.Z)(v,2),x=y[0],b=y[1];n=x[0]-b[0],i=x[1]-b[1],m=Math.atan2(i,n),h=Math.cos(m)*(o||0),d=Math.sin(m)*(o||0)}if(a&&fl(a)&&s){var _=a.parentNode.getEndTangent(),E=(0,p.Z)(_,2),w=E[0],T=E[1];n=w[0]-T[0],i=w[1]-T[1],m=Math.atan2(i,n),f=Math.cos(m)*(s||0),g=Math.sin(m)*(s||0)}for(var S=0;SH?U:H,q=U>H?1:U/H,$=U>H?H/U:1;t.translate(G,j),t.rotate(W),t.scale(q,$),t.arc(0,0,Y,V,Z,!!(1-X)),t.scale(1/q,1/$),t.rotate(-W),t.translate(-G,-j)}N&&t.lineTo(M[6]+f,M[7]+g);break;case"Z":t.closePath()}}}function Yf(t,e){var n,i,r=e.markerStart,a=e.markerEnd,o=e.markerStartOffset,s=e.markerEndOffset,l=e.points.points,u=l.length,c=l[0][0],h=l[0][1],d=l[u-1][0],f=l[u-1][1],p=0,g=0,m=0,v=0,y=0;r&&fl(r)&&o&&(n=l[1][0]-l[0][0],i=l[1][1]-l[0][1],y=Math.atan2(i,n),p=Math.cos(y)*(o||0),g=Math.sin(y)*(o||0)),a&&fl(a)&&s&&(n=l[u-1][0]-l[0][0],i=l[u-1][1]-l[0][1],y=Math.atan2(i,n),m=Math.cos(y)*(s||0),v=Math.sin(y)*(s||0)),t.moveTo(c+(p||m),h+(g||v));for(var x=1;x0?1:-1,d=l>0?1:-1,f=h+d===0,g=o.map((function(t){return ce(t,0,Math.min(Math.abs(u)/2,Math.abs(c)/2))})),m=(0,p.Z)(g,4),v=m[0],y=m[1],x=m[2],b=m[3];t.moveTo(h*v+i,a),t.lineTo(u-h*y+i,a),0!==y&&t.arc(u-h*y+i,d*y+a,y,-d*Math.PI/2,h>0?0:Math.PI,f),t.lineTo(u+i,c-d*x+a),0!==x&&t.arc(u-h*x+i,c-d*x+a,x,h>0?0:Math.PI,d>0?Math.PI/2:1.5*Math.PI,f),t.lineTo(h*b+i,c+a),0!==b&&t.arc(h*b+i,c-d*b+a,b,d>0?Math.PI/2:-Math.PI/2,h>0?Math.PI:0,f),t.lineTo(i,d*v+a),0!==v&&t.arc(h*v+i,d*v+a,v,h>0?Math.PI:0,d>0?1.5*Math.PI:Math.PI/2,f)}else t.rect(i,a,u,c)}var Kf=function(t){function e(){var t;(0,o.Z)(this,e);for(var n=arguments.length,i=new Array(n),r=0;r=l-y&&x<=l+y)}function rp(t,e,n,i){return t/(n*n)+e/(i*i)}function ap(t,e,n){var i=t.parsedStyle,r=i.cx,a=void 0===r?0:r,o=i.cy,s=void 0===o?0:o,l=i.rx,u=i.ry,c=i.fill,h=i.stroke,d=i.lineWidth,f=void 0===d?1:d,g=i.increasedLineWidthForHitTesting,m=void 0===g?0:g,v=i.pointerEvents,y=void 0===v?"auto":v,x=e.x,b=e.y,_=Co(y,c,h),E=(0,p.Z)(_,2),w=E[0],T=E[1],S=(f+m)/2,M=(x-a)*(x-a),C=(b-s)*(b-s);return w&&T||n?rp(M,C,l+S,u+S)<=1:w?rp(M,C,l,u)<=1:!!T&&(rp(M,C,l-S,u-S)>=1&&rp(M,C,l+S,u+S)<=1)}function op(t,e,n,i,r,a){return r>=t&&r<=t+n&&a>=e&&a<=e+i}function sp(t,e,n,i,r,a,o,s){var l=(Math.atan2(s-e,o-t)+2*Math.PI)%(2*Math.PI),u={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return Hn(u.x,u.y,o,s)<=a/2}function lp(t,e,n,i,r,a,o){var s=Math.min(t,n),l=Math.max(t,n),u=Math.min(e,i),c=Math.max(e,i),h=r/2;return a>=s-h&&a<=l+h&&o>=u-h&&o<=c+h&&Kn(t,e,n,i,a,o)<=r/2}function up(t,e,n,i,r){var a=t.length;if(a<2)return!1;for(var o=0;o0!=cp(s[1]-n)>0&&cp(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}function fp(t,e,n){for(var i=!1,r=0;r=r.min[0]&&e.y>=r.min[1]&&e.x<=r.max[0]&&e.y<=r.max[1]}var _p=function(t){function e(){var t;(0,o.Z)(this,e);for(var n=arguments.length,i=new Array(n),r=0;r0&&void 0!==arguments[0]?arguments[0]:t.api;t.rafId&&(e.cancelAnimationFrame(t.rafId),t.rafId=null)}},{key:"executeTask",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.api;Mp.length<=0&&Cp.length<=0||(Cp.forEach((function(t){return t()})),Cp=Mp.splice(0,t.TASK_NUM_PER_FRAME),t.rafId=e.requestAnimationFrame((function(){t.executeTask(e)})))}},{key:"sliceImage",value:function(e,n,i,r){for(var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t.api,s=e.naturalWidth||e.width,l=e.naturalHeight||e.height,u=n-a,c=i-a,h=Math.ceil(s/u),d=Math.ceil(l/c),f={tileSize:[n,i],gridSize:[d,h],tiles:Array(d).fill(null).map((function(){return Array(h).fill(null)}))},p=function(t){for(var a=function(a){Mp.push((function(){var h=a*u,d=t*c,p=[Math.min(n,s-h),Math.min(i,l-d)],g=p[0],m=p[1],v=o.createCanvas();v.width=n,v.height=i,v.getContext("2d").drawImage(e,h,d,g,m,0,0,g,m),f.tiles[t][a]={x:h,y:d,tileX:a,tileY:t,data:v},r()}))},d=0;du&&m>c,e&&("function"==typeof e.resetTransform?e.resetTransform():e.setTransform(1,0,0,1,0,0),i.clearFullScreen&&i.clearRect(e,0,0,r*n,o*n,a.background))}));var v=function(t,e){for(var r=[t];r.length>0;){var a=r.pop();a.isVisible()&&!a.isCulled()&&(d?i.renderDisplayObjectOptimized(a,e,i.context,Ep(i,Dp)[Dp],n):i.renderDisplayObject(a,e,i.context,Ep(i,Dp)[Dp],n));for(var o=a.sortable.sorted||a.childNodes,s=o.length-1;s>=0;s--)r.push(o[s])}};s.hooks.endFrame.tap(t.tag,(function(){if(0!==u.root.childNodes.length){d=a.renderer.getConfig().enableRenderingOptimization,Ep(i,Dp)[Dp]={restoreStack:[],prevObject:null,currentContext:Ep(i,Dp)[Dp].currentContext},Ep(i,Dp)[Dp].currentContext.clear(),i.clearFullScreenLastFrame=!1;var t=f.getContext(),e=f.getDPR();if(ot(i.dprMatrix,[e,e,1]),Q(i.vpMatrix,i.dprMatrix,o.getOrthoMatrix()),i.clearFullScreen)d?(t.save(),v(u.root,t),t.restore()):v(u.root,t),i.removedRBushNodeAABBs=[];else{var r=i.safeMergeAABB.apply(i,[i.mergeDirtyAABBs(i.renderQueue)].concat((0,l.Z)(i.removedRBushNodeAABBs.map((function(t){var e=t.minX,n=t.minY,i=t.maxX,r=t.maxY,a=new Ti;return a.setMinMax([e,n,0],[i,r,0]),a})))));if(i.removedRBushNodeAABBs=[],Ti.isEmpty(r))return void(i.renderQueue=[]);var s=i.convertAABB2Rect(r),c=s.x,h=s.y,g=s.width,m=s.height,y=L(i.vec3a,[c,h,0],i.vpMatrix),x=L(i.vec3b,[c+g,h,0],i.vpMatrix),b=L(i.vec3c,[c,h+m,0],i.vpMatrix),_=L(i.vec3d,[c+g,h+m,0],i.vpMatrix),E=Math.min(y[0],x[0],_[0],b[0]),w=Math.min(y[1],x[1],_[1],b[1]),T=Math.max(y[0],x[0],_[0],b[0]),S=Math.max(y[1],x[1],_[1],b[1]),M=Math.floor(E),C=Math.floor(w),A=Math.ceil(T-E),O=Math.ceil(S-w);t.save(),i.clearRect(t,M,C,A,O,a.background),t.beginPath(),t.rect(M,C,A,O),t.clip(),t.setTransform(i.vpMatrix[0],i.vpMatrix[1],i.vpMatrix[4],i.vpMatrix[5],i.vpMatrix[12],i.vpMatrix[13]),a.renderer.getConfig().enableDirtyRectangleRenderingDebug&&p.dispatchEvent(new gs(Zl.DIRTY_RECTANGLE,{dirtyRect:{x:M,y:C,width:A,height:O}})),i.searchDirtyObjects(r).sort((function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder})).forEach((function(e){e&&e.isVisible()&&!e.isCulled()&&i.renderDisplayObject(e,t,i.context,Ep(i,Dp)[Dp],n)})),t.restore(),i.renderQueue.forEach((function(t){i.saveDirtyAABB(t)})),i.renderQueue=[]}Ep(i,Dp)[Dp].restoreStack.forEach((function(){t.restore()})),Ep(i,Dp)[Dp].restoreStack=[]}else i.clearFullScreenLastFrame=!0})),s.hooks.render.tap(t.tag,(function(t){i.clearFullScreen||i.renderQueue.push(t)}))}},{key:"clearRect",value:function(t,e,n,i,r,a){t.clearRect(e,n,i,r),a&&(t.fillStyle=a,t.fillRect(e,n,i,r))}},{key:"renderDisplayObjectOptimized",value:function(t,e,n,i,r){var a=t.nodeName,o=!1,s=this.context.styleRendererFactory[a],l=this.pathGeneratorFactory[a],u=t.parsedStyle.clipPath;if(u){(!i.prevObject||!kt(u.getWorldTransform(),i.prevObject.getWorldTransform()))&&(this.applyWorldTransform(e,u),i.prevObject=null);var c=this.pathGeneratorFactory[u.nodeName];c&&(e.save(),o=!0,e.beginPath(),c(e,u.parsedStyle),e.closePath(),e.clip())}if(s){(!i.prevObject||!kt(t.getWorldTransform(),i.prevObject.getWorldTransform()))&&this.applyWorldTransform(e,t);var h=!i.prevObject;if(!h){var d=i.prevObject.nodeName;h=a===pi.TEXT?d!==pi.TEXT:a===pi.IMAGE?d!==pi.IMAGE:d===pi.TEXT||d===pi.IMAGE}s.applyStyleToContext(e,t,h,i),i.prevObject=t}l&&(e.beginPath(),l(e,t.parsedStyle),a!==pi.LINE&&a!==pi.PATH&&a!==pi.POLYLINE&&e.closePath()),s&&s.drawToContext(e,t,Ep(this,Dp)[Dp],this,r),o&&e.restore(),t.renderable.dirty=!1}},{key:"renderDisplayObject",value:function(t,e,n,i,r){var a=t.nodeName,o=i.restoreStack[i.restoreStack.length-1];!o||t.compareDocumentPosition(o)&ys.DOCUMENT_POSITION_CONTAINS||(e.restore(),i.restoreStack.pop());var s=this.context.styleRendererFactory[a],l=this.pathGeneratorFactory[a],u=t.parsedStyle.clipPath;if(u){this.applyWorldTransform(e,u);var c=this.pathGeneratorFactory[u.nodeName];c&&(e.save(),i.restoreStack.push(t),e.beginPath(),c(e,u.parsedStyle),e.closePath(),e.clip())}s&&(this.applyWorldTransform(e,t),e.save(),this.applyAttributesToContext(e,t)),l&&(e.beginPath(),l(e,t.parsedStyle),a!==pi.LINE&&a!==pi.PATH&&a!==pi.POLYLINE&&e.closePath()),s&&(s.render(e,t.parsedStyle,t,n,this,r),e.restore()),t.renderable.dirty=!1}},{key:"applyAttributesToContext",value:function(t,e){var n=e.parsedStyle,i=n.stroke,r=n.fill,a=n.opacity,o=n.lineDash,s=n.lineDashOffset;o&&t.setLineDash(o),(0,le.Z)(s)||(t.lineDashOffset=s),(0,le.Z)(a)||(t.globalAlpha*=a),(0,le.Z)(i)||Array.isArray(i)||i.isNone||(t.strokeStyle=e.attributes.stroke),(0,le.Z)(r)||Array.isArray(r)||r.isNone||(t.fillStyle=e.attributes.fill)}},{key:"convertAABB2Rect",value:function(t){var e=t.getMin(),n=t.getMax(),i=Math.floor(e[0]),r=Math.floor(e[1]);return{x:i,y:r,width:Math.ceil(n[0])-i,height:Math.ceil(n[1])-r}}},{key:"mergeDirtyAABBs",value:function(t){var e=new Ti;return t.forEach((function(t){var n=t.getRenderBounds();e.add(n);var i=t.renderable.dirtyRenderBounds;i&&e.add(i)})),e}},{key:"searchDirtyObjects",value:function(t){var e=t.getMin(),n=(0,p.Z)(e,2),i=n[0],r=n[1],a=t.getMax(),o=(0,p.Z)(a,2),s=o[0],l=o[1];return this.rBush.search({minX:i,minY:r,maxX:s,maxY:l}).map((function(t){return t.displayObject}))}},{key:"saveDirtyAABB",value:function(t){var e=t.renderable;e.dirtyRenderBounds||(e.dirtyRenderBounds=new Ti);var n=t.getRenderBounds();n&&e.dirtyRenderBounds.update(n.center,n.halfExtents)}},{key:"applyWorldTransform",value:function(t,e,n){n?(V(this.tmpMat4,e.getLocalTransform()),Q(this.tmpMat4,n,this.tmpMat4),Q(this.tmpMat4,this.vpMatrix,this.tmpMat4)):(V(this.tmpMat4,e.getWorldTransform()),Q(this.tmpMat4,this.vpMatrix,this.tmpMat4)),t.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])}},{key:"safeMergeAABB",value:function(){for(var t=new Ti,e=arguments.length,n=new Array(e),i=0;i0){if(n||e.attributes.stroke!==i.prevObject.attributes.stroke)Up(t,"strokeStyle",(0,le.Z)(a.stroke)||Array.isArray(a.stroke)||a.stroke.isNone?Gp.strokeStyle:e.attributes.stroke,i.currentContext);(n||a.lineWidth!==r.lineWidth)&&Up(t,"lineWidth",(0,le.Z)(a.lineWidth)?Gp.lineWidth:a.lineWidth,i.currentContext),(n||a.lineDash!==r.lineDash)&&Up(t,"lineDash",a.lineDash||Gp.lineDash,i.currentContext),(n||a.lineDashOffset!==r.lineDashOffset)&&Up(t,"lineDashOffset",(0,le.Z)(a.lineDashOffset)?Gp.lineDashOffset:a.lineDashOffset,i.currentContext);for(var u=0;u4&&void 0!==arguments[4]&&arguments[4];if(e){Up(t,"shadowColor",Gp.shadowColor,i.currentContext);for(var a=0;a-1&&Up(t,"filter",s.replace(/drop-shadow\([^)]*\)/,"").trim()||Gp.filter,i.currentContext)}else Up(t,"filter",Gp.filter,i.currentContext)}},{key:"fillToContext",value:function(t,e,n,i,r){var a=this,o=e.parsedStyle,s=o.fill,l=o.fillRule,u=null;if(Array.isArray(s)&&s.length>0)s.forEach((function(i){var r,o=Up(t,"fillStyle",Bp(i,e,t,a.imagePool),n.currentContext);u=null!==(r=u)&&void 0!==r?r:o,l?t.fill(l):t.fill()}));else{if(jr(s)){var c=Ip(s,e,t,e.ownerDocument.defaultView.context,i,r,this.imagePool);c&&(t.fillStyle=c,u=!0)}l?t.fill(l):t.fill()}null!==u&&Up(t,"fillStyle",u,n.currentContext)}},{key:"strokeToContext",value:function(t,e,n,i,r){var a=this,o=e.parsedStyle.stroke,s=null;if(Array.isArray(o)&&o.length>0)o.forEach((function(i){var r,o=Up(t,"strokeStyle",Bp(i,e,t,a.imagePool),n.currentContext);s=null!==(r=s)&&void 0!==r?r:o,t.stroke()}));else{if(jr(o)){var l=Ip(o,e,t,e.ownerDocument.defaultView.context,i,r,this.imagePool);if(l){var u,c=Up(t,"strokeStyle",l,n.currentContext);s=null!==(u=s)&&void 0!==u?u:c}}t.stroke()}null!==s&&Up(t,"strokeStyle",s,n.currentContext)}},{key:"drawToContext",value:function(t,e,n,i,r){var a,o=e.nodeName,s=e.parsedStyle,l=s.opacity,u=void 0===l?Gp.globalAlpha:l,c=s.fillOpacity,h=void 0===c?Gp.fillOpacity:c,d=s.strokeOpacity,f=void 0===d?Gp.strokeOpacity:d,p=s.lineWidth,g=void 0===p?Gp.lineWidth:p,m=s.fill&&!s.fill.isNone,v=s.stroke&&!s.stroke.isNone&&g>0;if(m||v){var y=!(0,le.Z)(s.shadowColor)&&s.shadowBlur>0,x="inner"===s.shadowType,b=0===(null===(a=s.fill)||void 0===a?void 0:a.alpha),_=!(!s.filter||!s.filter.length),E=y&&v&&(o===pi.PATH||o===pi.LINE||o===pi.POLYLINE||b||x),w=null;if(m)E||this.applyShadowAndFilterStyleToContext(t,e,y,n),w=Up(t,"globalAlpha",u*h,n.currentContext),this.fillToContext(t,e,n,i,r),E||this.clearShadowAndFilterStyleForContext(t,y,_,n);if(v){var T=!1,S=Up(t,"globalAlpha",u*f,n.currentContext);if(w=m?w:S,E&&(this.applyShadowAndFilterStyleToContext(t,e,y,n),T=!0,x)){var M=t.globalCompositeOperation;t.globalCompositeOperation="source-atop",this.strokeToContext(t,e,n,i,r),t.globalCompositeOperation=M,this.clearShadowAndFilterStyleForContext(t,y,_,n,!0)}this.strokeToContext(t,e,n,i,r),T&&this.clearShadowAndFilterStyleForContext(t,y,_,n)}null!==w&&Up(t,"globalAlpha",w,n.currentContext)}}}])}(),Vp=function(t){function e(){return(0,o.Z)(this,e),d(this,e,arguments)}return(0,f.Z)(e,t),(0,s.Z)(e,[{key:"render",value:function(t,e,n,i,r,a){var o=e.fill,s=e.fillRule,l=e.opacity,u=void 0===l?1:l,c=e.fillOpacity,h=void 0===c?1:c,d=e.stroke,f=e.strokeOpacity,p=void 0===f?1:f,g=e.lineWidth,m=void 0===g?1:g,v=e.lineCap,y=e.lineJoin,x=e.shadowType,b=e.shadowColor,_=e.shadowBlur,E=e.filter,w=e.miterLimit,T=o&&!o.isNone,S=d&&!d.isNone&&m>0,M=0===(null==o?void 0:o.alpha),C=!(!E||!E.length),A=!(0,le.Z)(b)&&_>0,O=n.nodeName,N="inner"===x,P=S&&A&&(O===pi.PATH||O===pi.LINE||O===pi.POLYLINE||M||N);T&&(t.globalAlpha=u*h,P||Zp(n,t,A),Wp(t,n,o,s,i,r,a,this.imagePool),P||this.clearShadowAndFilter(t,C,A)),S&&(t.globalAlpha=u*p,t.lineWidth=m,(0,le.Z)(w)||(t.miterLimit=w),(0,le.Z)(v)||(t.lineCap=v),(0,le.Z)(y)||(t.lineJoin=y),P&&(N&&(t.globalCompositeOperation="source-atop"),Zp(n,t,!0),N&&(Xp(t,n,d,i,r,a,this.imagePool),t.globalCompositeOperation=Gp.globalCompositeOperation,this.clearShadowAndFilter(t,C,!0))),Xp(t,n,d,i,r,a,this.imagePool))}},{key:"clearShadowAndFilter",value:function(t,e,n){if(n&&(t.shadowColor="transparent",t.shadowBlur=0),e){var i=t.filter;!(0,le.Z)(i)&&i.indexOf("drop-shadow")>-1&&(t.filter=i.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")}}}])}(Hp);function Zp(t,e,n){var i=t.parsedStyle,r=i.filter,a=i.shadowColor,o=i.shadowBlur,s=i.shadowOffsetX,l=i.shadowOffsetY;r&&r.length&&(e.filter=t.style.filter),n&&(e.shadowColor=a.toString(),e.shadowBlur=o||0,e.shadowOffsetX=s||0,e.shadowOffsetY=l||0)}function Wp(t,e,n,i,r,a,o,s){var l=arguments.length>8&&void 0!==arguments[8]&&arguments[8];Array.isArray(n)?n.forEach((function(n){t.fillStyle=Bp(n,e,t,s),l||(i?t.fill(i):t.fill())})):(jr(n)&&(t.fillStyle=Ip(n,e,t,r,a,o,s)),l||(i?t.fill(i):t.fill()))}function Xp(t,e,n,i,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];Array.isArray(n)?n.forEach((function(n){t.strokeStyle=Bp(n,e,t,o),s||t.stroke()})):(jr(n)&&(t.strokeStyle=Ip(n,e,t,i,r,a,o)),s||t.stroke())}var Yp=function(t){function e(){return(0,o.Z)(this,e),d(this,e,arguments)}return(0,f.Z)(e,t),(0,s.Z)(e,[{key:"renderDownSampled",value:function(t,e,n,i){var r=i.src,a=i.imageCache;a.downSampled?t.drawImage(a.downSampled,Math.floor(i.drawRect[0]),Math.floor(i.drawRect[1]),Math.ceil(i.drawRect[2]),Math.ceil(i.drawRect[3])):this.imagePool.createDownSampledImage(r,n).then((function(t){n.renderable.dirty=!0,n.ownerDocument.defaultView.context.renderingService.dirtify()})).catch((function(){}))}},{key:"renderTile",value:function(t,e,n,i){var r=i.src,a=i.imageCache,o=i.imageRect,s=i.drawRect,l=a.size,u=t.getTransform(),c=u.a,h=u.b,d=u.c,f=u.d,p=u.e,g=u.f;if(t.resetTransform(),null!=a&&a.gridSize){for(var m=[l[0]/o[2],l[1]/o[3]],v=[a.tileSize[0]/m[0],a.tileSize[1]/m[1]],y=[Math.floor((s[0]-o[0])/v[0]),Math.ceil((s[0]+s[2]-o[0])/v[0])],x=y[0],b=y[1],_=[Math.floor((s[1]-o[1])/v[1]),Math.ceil((s[1]+s[3]-o[1])/v[1])],E=_[1],w=_[0];w<=E;w++)for(var T=x;T<=b;T++){var S=a.tiles[w][T];if(S){var M=[Math.floor(o[0]+S.tileX*v[0]),Math.floor(o[1]+S.tileY*v[1]),Math.ceil(v[0]),Math.ceil(v[1])];t.drawImage(S.data,M[0],M[1],M[2],M[3])}}t.setTransform(c,h,d,f,p,g)}else this.imagePool.createImageTiles(r,[],(function(){n.renderable.dirty=!0,n.ownerDocument.defaultView.context.renderingService.dirtify()}),n).catch((function(){}))}},{key:"render",value:function(t,n,i){var r=n.x,a=void 0===r?0:r,o=n.y,s=void 0===o?0:o,l=n.width,u=n.height,c=n.src,h=n.shadowColor,d=n.shadowBlur,f=this.imagePool.getImageSync(c,i),g=null==f?void 0:f.img,m=l,v=u;if(g){var x,b,_,E,w,T,S,M,C,A,O,N,P,R,D,k;m||(m=g.width),v||(v=g.height),Zp(i,t,!(0,le.Z)(h)&&d>0);try{var I=i.ownerDocument.defaultView.getContextService().getDomElement(),B=I.width,F=I.height,z=t.getTransform(),G=z.a,j=z.b,U=function(t,e){var n=L(y(),[t[0],t[1],0],e),i=L(y(),[t[0]+t[2],t[1],0],e),r=L(y(),[t[0],t[1]+t[3],0],e),a=L(y(),[t[0]+t[2],t[1]+t[3],0],e);return[Math.min(n[0],i[0],r[0],a[0]),Math.min(n[1],i[1],r[1],a[1]),Math.max(n[0],i[0],r[0],a[0])-Math.min(n[0],i[0],r[0],a[0]),Math.max(n[1],i[1],r[1],a[1])-Math.min(n[1],i[1],r[1],a[1])]}([a,s,m,v],Z(G,z.c,0,0,j,z.d,0,0,0,0,1,0,z.e,z.f,0,1)),H=(x=[0,0,B,F],b=U,_=(0,p.Z)(x,4),E=_[0],w=_[1],T=_[2],S=_[3],M=(0,p.Z)(b,4),C=M[0],A=M[1],O=M[2],N=M[3],P=Math.max(E,C),R=Math.max(w,A),D=Math.min(E+T,C+O),k=Math.min(w+S,A+N),D<=P||k<=R?null:[P,R,D-P,k-R]);if(!H)return;if(!i.ownerDocument.defaultView.getConfig().enableLargeImageOptimization)return void e.renderFull(t,n,i,{image:g,drawRect:[a,s,m,v]});if(U[2]/f.size[0]<(f.downSamplingRate||.5))return void this.renderDownSampled(t,n,i,{src:c,imageCache:f,drawRect:[a,s,m,v]});if(!Np.isSupportTile)return void e.renderFull(t,n,i,{image:g,drawRect:[a,s,m,v]});this.renderTile(t,n,i,{src:c,imageCache:f,imageRect:U,drawRect:H})}catch(t){}}}},{key:"drawToContext",value:function(t,e,n,i,r){this.render(t,e.parsedStyle,e)}}],[{key:"renderFull",value:function(t,e,n,i){t.drawImage(i.image,Math.floor(i.drawRect[0]),Math.floor(i.drawRect[1]),Math.ceil(i.drawRect[2]),Math.ceil(i.drawRect[3]))}}])}(Vp),qp=function(t){function e(){return(0,o.Z)(this,e),d(this,e,arguments)}return(0,f.Z)(e,t),(0,s.Z)(e,[{key:"render",value:function(t,e,n,i,r,a){n.getBounds();var o=e.lineWidth,s=void 0===o?1:o,l=e.textAlign,u=void 0===l?"start":l,c=e.textBaseline,h=void 0===c?"alphabetic":c,d=e.lineJoin,f=void 0===d?"miter":d,p=e.miterLimit,g=void 0===p?10:p,m=e.letterSpacing,v=void 0===m?0:m,y=e.stroke,x=e.fill,b=e.fillRule,_=e.fillOpacity,E=void 0===_?1:_,w=e.strokeOpacity,T=void 0===w?1:w,S=e.opacity,M=void 0===S?1:S,C=e.metrics,A=e.x,O=void 0===A?0:A,N=e.y,P=void 0===N?0:N,L=e.dx,R=e.dy,D=e.shadowColor,k=e.shadowBlur,I=C.font,B=C.lines,F=C.height,z=C.lineHeight,G=C.lineMetrics;t.font=I,t.lineWidth=s,t.textAlign="middle"===u?"center":u;var j=h;"alphabetic"===j&&(j="bottom"),t.lineJoin=f,(0,le.Z)(g)||(t.miterLimit=g);var U=P;"middle"===h?U+=-F/2-z/2:"bottom"===h||"alphabetic"===h||"ideographic"===h?U+=-F:"top"!==h&&"hanging"!==h||(U+=-z);var H=O+(L||0);U+=R||0,1===B.length&&("bottom"===j?(j="middle",U-=.5*F):"top"===j&&(j="middle",U+=.5*F)),t.textBaseline=j,Zp(n,t,!(0,le.Z)(D)&&k>0);for(var V=0;V0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)(this,e),(t=d(this,e)).name="canvas-renderer",t.options=n,t}return(0,f.Z)(e,t),(0,s.Z)(e,[{key:"init",value:function(){var t,e=(0,a.Z)({dirtyObjectNumThreshold:500,dirtyObjectRatioThreshold:.8},this.options),n=this.context.imagePool,i=new Vp(n),r=(t={},(0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)((0,an.Z)(t,pi.CIRCLE,i),pi.ELLIPSE,i),pi.RECT,i),pi.IMAGE,new Yp(n)),pi.TEXT,new qp(n)),pi.LINE,i),pi.POLYLINE,i),pi.POLYGON,i),pi.PATH,i),pi.GROUP,void 0),(0,an.Z)((0,an.Z)((0,an.Z)(t,pi.HTML,void 0),pi.MESH,void 0),pi.FRAGMENT,void 0));this.context.defaultStyleRendererFactory=r,this.context.styleRendererFactory=r,this.addRenderingPlugin(new kp(e))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins(),delete this.context.defaultStyleRendererFactory,delete this.context.styleRendererFactory}}])}(mi),Kp=function(){function t(){(0,o.Z)(this,t)}return(0,s.Z)(t,[{key:"apply",value:function(e,n){var i=this,r=e.renderingService,a=e.renderingContext,o=e.config;this.context=e;var s=a.root.ownerDocument.defaultView,l=function(t){r.hooks.pointerMove.call(t)},u=function(t){r.hooks.pointerUp.call(t)},c=function(t){r.hooks.pointerDown.call(t)},h=function(t){r.hooks.pointerOver.call(t)},d=function(t){r.hooks.pointerOut.call(t)},f=function(t){r.hooks.pointerCancel.call(t)},p=function(t){r.hooks.pointerWheel.call(t)},g=function(t){r.hooks.click.call(t)};r.hooks.init.tap(t.tag,(function(){var t=i.context.contextService.getDomElement();n.globalThis.navigator.msPointerEnabled?(t.style.msContentZooming="none",t.style.msTouchAction="none"):s.supportsPointerEvents&&(t.style.touchAction="none"),s.supportsPointerEvents?function(t){n.globalThis.document.addEventListener("pointermove",l,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("pointerleave",d,!0),t.addEventListener("pointerover",h,!0),n.globalThis.addEventListener("pointerup",u,!0),n.globalThis.addEventListener("pointercancel",f,!0)}(t):function(t){n.globalThis.document.addEventListener("mousemove",l,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("mouseout",d,!0),t.addEventListener("mouseover",h,!0),n.globalThis.addEventListener("mouseup",u,!0)}(t),s.supportsTouchEvents&&function(t){t.addEventListener("touchstart",c,!0),t.addEventListener("touchend",u,!0),t.addEventListener("touchmove",l,!0),t.addEventListener("touchcancel",f,!0)}(t),o.useNativeClickEvent&&t.addEventListener("click",g,!0),t.addEventListener("wheel",p,{passive:!0,capture:!0})})),r.hooks.destroy.tap(t.tag,(function(){var t=i.context.contextService.getDomElement();n.globalThis.navigator.msPointerEnabled?(t.style.msContentZooming="",t.style.msTouchAction=""):s.supportsPointerEvents&&(t.style.touchAction=""),s.supportsPointerEvents?function(t){n.globalThis.document.removeEventListener("pointermove",l,!0),t.removeEventListener("pointerdown",c,!0),t.removeEventListener("pointerleave",d,!0),t.removeEventListener("pointerover",h,!0),n.globalThis.removeEventListener("pointerup",u,!0),n.globalThis.removeEventListener("pointercancel",f,!0)}(t):function(t){n.globalThis.document.removeEventListener("mousemove",l,!0),t.removeEventListener("mousedown",c,!0),t.removeEventListener("mouseout",d,!0),t.removeEventListener("mouseover",h,!0),n.globalThis.removeEventListener("mouseup",u,!0)}(t),s.supportsTouchEvents&&function(t){t.removeEventListener("touchstart",c,!0),t.removeEventListener("touchend",u,!0),t.removeEventListener("touchmove",l,!0),t.removeEventListener("touchcancel",f,!0)}(t),o.useNativeClickEvent&&t.removeEventListener("click",g,!0),t.removeEventListener("wheel",p,!0)}))}}])}();Kp.tag="DOMInteraction";var Qp=function(t){function e(){var t;(0,o.Z)(this,e);for(var n=arguments.length,i=new Array(n),r=0;r1&&void 0!==arguments[1]?arguments[1]:[0,0,0];return"matrix(".concat([t[0],t[1],t[4],t[5],t[12]+e[0],t[13]+e[1]].join(","),")")}},{key:"apply",value:function(e,n){var i=this,r=e.camera,a=e.renderingContext,o=e.renderingService;this.context=e;var s=a.root.ownerDocument.defaultView,l=s.context.eventService.nativeHTMLMap,u=function(t,e){e.style.transform=i.joinTransformMatrix(t.getWorldTransform(),t.getOrigin())},c=function(t){var e=t.target;if(e.nodeName===pi.HTML){i.$camera||(i.$camera=i.createCamera(r));var n=i.getOrCreateEl(e);i.$camera.appendChild(n),Object.keys(e.attributes).forEach((function(t){i.updateAttribute(t,e)})),u(e,n),l.set(n,e)}},h=function(t){var e=t.target;if(e.nodeName===pi.HTML&&i.$camera){var n=i.getOrCreateEl(e);n&&(n.remove(),l.delete(n))}},d=function(t){var e=t.target;if(e.nodeName===pi.HTML){var n=t.attrName;i.updateAttribute(n,e)}},f=function(t){var e=t.target;(e.nodeName===pi.FRAGMENT?e.childNodes:[e]).forEach((function(t){if(t.nodeName===pi.HTML){var e=i.getOrCreateEl(t);u(t,e)}}))},p=function(){if(i.$camera){var t=i.context.config,e=t.width,n=t.height;i.$camera.parentElement.style.width="".concat(e||0,"px"),i.$camera.parentElement.style.height="".concat(n||0,"px")}};o.hooks.init.tap(t.tag,(function(){s.addEventListener(Zl.RESIZE,p),s.addEventListener(Ss.MOUNTED,c),s.addEventListener(Ss.UNMOUNTED,h),s.addEventListener(Ss.ATTR_MODIFIED,d),s.addEventListener(Ss.BOUNDS_CHANGED,f)})),o.hooks.endFrame.tap(t.tag,(function(){i.$camera&&a.renderReasons.has(_s.CAMERA_CHANGED)&&(i.$camera.style.transform=i.joinTransformMatrix(r.getOrthoMatrix()))})),o.hooks.destroy.tap(t.tag,(function(){i.$camera&&i.$camera.remove(),s.removeEventListener(Zl.RESIZE,p),s.removeEventListener(Ss.MOUNTED,c),s.removeEventListener(Ss.UNMOUNTED,h),s.removeEventListener(Ss.ATTR_MODIFIED,d),s.removeEventListener(Ss.BOUNDS_CHANGED,f)}))}},{key:"createCamera",value:function(t){var e=this.context.config,n=e.document,i=e.width,r=e.height,a=this.context.contextService.getDomElement(),o=a.parentNode;if(o){var s="g-canvas-camera",l=o.querySelector("#".concat(s));if(!l){var u=(n||document).createElement("div");u.style.overflow="hidden",u.style.pointerEvents="none",u.style.position="absolute",u.style.left="0px",u.style.top="0px",u.style.width="".concat(i||0,"px"),u.style.height="".concat(r||0,"px");var c=(n||document).createElement("div");l=c,c.id=s,c.style.position="absolute",c.style.left="".concat(a.offsetLeft||0,"px"),c.style.top="".concat(a.offsetTop||0,"px"),c.style.transformOrigin="left top",c.style.transform=this.joinTransformMatrix(t.getOrthoMatrix()),c.style.pointerEvents="none",c.style.width="100%",c.style.height="100%",u.appendChild(c),o.appendChild(u)}return l}return null}},{key:"getOrCreateEl",value:function(t){var e=this.context.config.document,n=this.displayObjectHTMLElementMap.get(t);return n||(n=(e||document).createElement("div"),t.parsedStyle.$el=n,this.displayObjectHTMLElementMap.set(t,n),t.id&&(n.id=t.id),t.name&&n.setAttribute("name",t.name),t.className&&(n.className=t.className),n.style.position="absolute",n.style["will-change"]="transform",n.style.transform=this.joinTransformMatrix(t.getWorldTransform(),t.getOrigin())),n}},{key:"updateAttribute",value:function(t,e){var n=this.getOrCreateEl(e);switch(t){case"innerHTML":var i=e.parsedStyle.innerHTML;(0,ue.Z)(i)?n.innerHTML=i:(n.innerHTML="",n.appendChild(i));break;case"x":n.style.left="".concat(e.parsedStyle.x,"px");break;case"y":n.style.top="".concat(e.parsedStyle.y,"px");break;case"transformOrigin":var r=e.parsedStyle.transformOrigin;n.style["transform-origin"]="".concat(r[0].buildCSSText(null,null,"")," ").concat(r[1].buildCSSText(null,null,""));break;case"width":var a=e.parsedStyle.width;n.style.width=(0,oe.Z)(a)?"".concat(a,"px"):a.toString();break;case"height":var o=e.parsedStyle.height;n.style.height=(0,oe.Z)(o)?"".concat(o,"px"):o.toString();break;case"zIndex":var s=e.parsedStyle.zIndex;n.style["z-index"]="".concat(s);break;case"visibility":var l=e.parsedStyle.visibility;n.style.visibility=l;break;case"pointerEvents":var u=e.parsedStyle.pointerEvents,c=void 0===u?"auto":u;n.style.pointerEvents=c;break;case"opacity":var h=e.parsedStyle.opacity;n.style.opacity="".concat(h);break;case"fill":var d=e.parsedStyle.fill,f="";Ur(d)?f=d.isNone?"transparent":e.getAttribute("fill"):Array.isArray(d)?f=e.getAttribute("fill"):jr(d),n.style.background=f;break;case"stroke":var p=e.parsedStyle.stroke,g="";Ur(p)?g=p.isNone?"transparent":e.getAttribute("stroke"):Array.isArray(p)?g=e.getAttribute("stroke"):jr(p),n.style["border-color"]=g,n.style["border-style"]="solid";break;case"lineWidth":var m=e.parsedStyle.lineWidth;n.style["border-width"]="".concat(m||0,"px");break;case"lineDash":n.style["border-style"]="dashed";break;case"filter":var v=e.style.filter;n.style.filter=v;break;default:(0,le.Z)(e.style[t])||""===e.style[t]||(n.style[t]=e.style[t])}}}])}();Jp.tag="HTMLRendering";var tg=function(t){function e(){var t;(0,o.Z)(this,e);for(var n=arguments.length,i=new Array(n),r=0;r=1?Math.ceil(n):1,this.dpr=n,this.$canvas&&(this.$canvas.width=this.dpr*t,this.$canvas.height=this.dpr*e,function(t,e,n){xo&&t.style&&(t.style.width=e+"px",t.style.height=n+"px")}(this.$canvas,t,e)),this.renderingContext.renderReasons.add(_s.CAMERA_CHANGED)}},{key:"applyCursorStyle",value:function(t){this.$container&&this.$container.style&&(this.$container.style.cursor=t)}},{key:"toDataURL",value:(t=(0,li.Z)((0,si.Z)().mark((function t(){var e,n,i,r=arguments;return(0,si.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},n=e.type,i=e.encoderOptions,t.abrupt("return",this.context.canvas.toDataURL(n,i));case 3:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})}]);var t}(),ng=function(t){function e(){var t;(0,o.Z)(this,e);for(var n=arguments.length,i=new Array(n),r=0;r{const e=this.context.canvas,n=e.context.renderingContext.root.ownerDocument.defaultView;this.normalizeToPointerEvent(t,n).forEach((i=>{const r=this.bootstrapEvent(this.rootPointerEvent,i,n,t);Wd(e.context.eventService,"mappingTable.pointerupoutside",[]),e.context.eventService.mapEvent(r)}))}}get eventService(){return this.context.canvas.context.eventService}get events(){return[lc.CLICK,lc.POINTER_DOWN,lc.POINTER_MOVE,lc.POINTER_UP,lc.POINTER_OVER,lc.POINTER_LEAVE]}getDomElement(){return this.getShape("key").getDomElement()}getKeyStyle(t){const e=(0,rg.Z)(t,["dx","dy","innerHTML","pointerEvents","cursor"]),{dx:n=0,dy:i=0}=e,r=ag(e,["dx","dy"]),[a,o]=this.getSize(t);return Object.assign(Object.assign({x:n,y:i},r),{width:a,height:o})}drawKeyShape(t,e){const n=this.getKeyStyle(t),{x:i,y:r,width:a=0,height:o=0}=n,s=this.upsert("key-container",kl,{x:i,y:r,width:a,height:o,opacity:0},e);return this.upsert("key",Sl,n,s)}connectedCallback(){if(!(this.context.canvas.getRenderer("main")instanceof ig))return;const t=this.getDomElement();this.events.forEach((e=>{t.addEventListener(e,this.forwardEvents)}))}attributeChangedCallback(t,e,n){"zIndex"===t&&e!==n&&(this.getDomElement().style.zIndex=n)}destroy(){const t=this.getDomElement();this.events.forEach((e=>{t.removeEventListener(e,this.forwardEvents)})),super.destroy()}normalizeToPointerEvent(t,e){const n=[];if(e.isTouchEvent(t))for(let e=0;ethis.context.element.getElement(t))).filter(Boolean);if(0===i.length){const e=new Ti,{x:n=0,y:i=0,size:r}=t,[a,o]=tf(r);return e.setMinMax([n-a/2,i-o/2,0],[n+a/2,i+o/2,0]),e}const r=$c(i.map((t=>t.getBounds())));return n?qc(r,n):r}drawCollapsedMarkerShape(t,e){const n=this.getCollapsedMarkerStyle(t);of(this,"collapsedMarker",n)&&(this.upsert("collapsed-marker",Rf,n,e),Pf(this))}getCollapsedMarkerStyle(t){if(!t.collapsed||!t.collapsedMarker)return!1;const e=Kd(this.getGraphicStyle(t),"collapsedMarker"),{type:n}=e,i=cg(e,["type"]),r=this.getShape("key"),[a,o]=xd(r.getLocalBounds(),"center"),s=Object.assign(Object.assign({},i),{x:a,y:o});if(n){const e=this.getCollapsedMarkerText(n,t);Object.assign(s,{text:e})}return s}getCollapsedMarkerText(t,e){const{childrenData:n=[]}=e,{model:i}=this.context;return"descendant-count"===t?i.getDescendantsData(this.id).length.toString():"child-count"===t?n.length.toString():"node-count"===t?i.getDescendantsData(this.id).filter((t=>"node"===i.getElementType(Dh(t)))).length.toString():(0,en.Z)(t)?t(n):""}getComboPosition(t){const{x:e=0,y:n=0,collapsed:i,childrenData:r=[]}=t;if(0===r.length)return[+e,+n,0];if(i){const{model:t}=this.context,i=t.getDescendantsData(this.id).filter((e=>!t.isCombo(Dh(e))));if(i.length>0&&i.some(vd)){return id(i.reduce(((t,e)=>td(t,md(e))),[0,0,0]),i.length)}return[+e,+n,0]}return this.getContentBBox(t).center}getComboStyle(t){const[e,n]=this.getComboPosition(t);return{x:e,y:n,transform:[["translate",e,n]]}}updateComboPosition(t){const e=this.getComboStyle(t);Object.assign(this.style,e);const{x:n,y:i}=e;this.context.model.syncComboDatum({id:this.id,style:{x:n,y:i}}),Lf(this)}render(t,e=this){super.render(t,e),this.drawCollapsedMarkerShape(t,e)}update(t={}){super.update(t),this.updateComboPosition(this.parsedAttributes)}onframe(){super.onframe(),this.attributes.collapsed||this.updateComboPosition(this.parsedAttributes),this.drawKeyShape(this.parsedAttributes,this)}animate(t,e){const n=super.animate(this.attributes.collapsed?t:t.map((t=>{var{x:e,y:n,z:i,transform:r}=t;return cg(t,["x","y","z","transform"])})),e);return n?new Proxy(n,{set:(t,e,n)=>("currentTime"===e&&Promise.resolve().then((()=>this.onframe())),Reflect.set(t,e,n))}):n}}hg.defaultStyleProps={childrenNode:[],droppable:!0,draggable:!0,collapsed:!1,collapsedSize:32,collapsedMarker:!0,collapsedMarkerZIndex:1,collapsedMarkerFontSize:12,collapsedMarkerTextAlign:"center",collapsedMarkerTextBaseline:"middle",collapsedMarkerType:"child-count"};var dg=function(t,e){if(!Ju(t))return t;for(var n=[],i=0;i-1},pg=function(t,e){return void 0===e&&(e=[]),dg(t,(function(t){return!fg(e,t)}))};const gg={padding:10};function mg(t,e,n,i,r,a){const{padding:o}=Object.assign(gg,a),s=Xc(n,o),l=Xc(i,o),u=[t,...r,e];let c=null;const h=[];for(let t=0,e=u.length;ta?"N":"S":i===a?n>r?"W":"E":null}function bg(t,e){return"N"===e||"S"===e?Zc(t):Vc(t)}function _g(t,e,n){const i=[t[0],e[1]],r=[e[0],t[1]],a=xg(t,i),o=xg(t,r),s=a===n||a!==(n?vg[n]:null)&&o!==n?i:r;return{points:[s],direction:xg(s,e)}}function Eg(t,e,n){if(Jc(t,n)){const i=Mg(t,e,n);return{points:[i],direction:xg(i,e)}}{const i=eh(t,n),r=["left","right"].includes(th(t,n))?[e[0],i[1]]:[i[0],e[1]];return{points:[r],direction:xg(r,e)}}}function wg(t,e,n,i){const r=Jc(e,n)?e:eh(e,n),a=[[r[0],t[1]],[t[0],r[1]]],o=a.filter((t=>function(t,e){return!Kc(t,e)}(t,n)&&!Qc(t,n,!0))),s=o.filter((e=>xg(e,t)!==i));if(s.length>0){const n=s.find((e=>xg(t,e)===i))||s[0];return{points:[n],direction:xg(n,e)}}{const r=wd(e,pg(a,o)[0],bg(n,i)/2);return{points:[Mg(r,t,n),r],direction:xg(r,e)}}}function Tg(t,e,n,i){let r=Eg(t,e,n);const a=hd(r.points[0]);if(Kc(a,i)){r=Eg(e,t,i);const o=hd(r.points[0]);if(Kc(o,n)){const s=wd(t,a,bg(n,xg(t,a))/2),l=wd(e,o,bg(i,xg(e,o))/2),u=[(s[0]+l[0])/2,(s[1]+l[1])/2],c=Eg(t,u,n),h=wg(u,e,i,c.direction);r.points=[c.points[0],h.points[0]],r.direction=h.direction}}return r}function Sg(t,e,n,i,r){const a=.01,o=$c([n,i]),s=ad(e,o.center)>ad(t,o.center),[l,u]=s?[e,t]:[t,e],c=Zc(o)+Vc(o);let h;if(r){const t=[l[0]+c*Math.cos(yg[r]),l[1]+c*Math.sin(yg[r])];h=wd(eh(t,o),t,a)}else h=wd(eh(l,o),l,-.01);let d=Mg(h,u,o),f=[Ed(h,2),Ed(d,2)];if(ec(Ed(h),Ed(d))){const t=ld(ed(h,l),[1,0,0])+Math.PI/2;d=[u[0]+c*Math.cos(t),u[1]+c*Math.sin(t),0],d=Ed(wd(eh(d,o),u,-.01),2);f=[h,Mg(h,d,o),d]}return{points:s?f.reverse():f,direction:xg(s?h:d,e)}}function Mg(t,e,n){let i=[t[0],e[1]];return Kc(i,n)&&(i=[e[0],t[1]]),i}function Cg(t,e,n,i,r){let a="number"==typeof e?e:.5;"start"===e&&(a=0),"end"===e&&(a=.99);const o=bd(t.getPoint(a)),s=bd(t.getPoint(a+.01));let l="start"===e?"left":"end"===e?"right":"center";if(Td(o,s)||!n){const[e,n]=Ag(t,a,i,r);return{transform:[["translate",e,n]],textAlign:l}}let u=Math.atan2(s[1]-o[1],s[0]-o[0]);s[0]{const s=a[n-1]||i,l=a[n+1]||r;if(!fd([s,u=t],[u,l])&&e){const[n,i]=function(t,e,n,i){const r=od(t,e),a=od(n,e),o=Math.min(i,Math.min(r,a)/2),s=[e[0]-o/r*(e[0]-t[0]),e[1]-o/r*(e[1]-t[1])],l=[e[0]-o/a*(e[0]-n[0]),e[1]-o/a*(e[1]-n[1])];return[s,l]}(s,t,l,e);o.push(["L",n[0],n[1]],["Q",t[0],t[1],i[0],i[1]],["L",i[0],i[1]])}else o.push(["L",t[0],t[1]]);var u})),o.push(["L",r[0],r[1]]),n&&o.push(["Z"]),o}function Lg(t,e,n,i,r){const a=Xc(t),o=t.getCenter();let s=i&&mm(i),l=r&&mm(r);if(!s||!l){const i=(t=>{const e=Math.PI/2,n=Zc(t)/2,i=Vc(t)/2,r=Math.atan2(n,i)/2,a=Math.atan2(i,n)/2;return{top:[-e-a,-e+a],"top-right":[-e+a,-r],"right-top":[-e+a,-r],right:[-r,r],"bottom-right":[r,e-a],"right-bottom":[r,e-a],bottom:[e-a,e+a],"bottom-left":[e+a,Math.PI-r],"left-bottom":[e+a,Math.PI-r],left:[Math.PI-r,Math.PI+r],"top-left":[Math.PI+r,-e-a],"left-top":[Math.PI+r,-e-a]}})(a),r=i[e][0],u=i[e][1],[c,h]=Wc(a),d=Math.max(c,h),f=td(o,[d*Math.cos(r),d*Math.sin(r),0]),p=td(o,[d*Math.cos(u),d*Math.sin(u),0]);s=bm(t,f),l=bm(t,p),n||([s,l]=[l,s])}return[s,l]}function Rg(t,e,n,i,r,a){const o=t.getPorts()[r||a],s=t.getPorts()[a||r];let[l,u]=Lg(t,e,n,o,s);const c=function(t,e,n,i){const r=t.getCenter();if(ec(e,n)){const t=ed(e,r),a=[i*Math.sign(t[0])||i/2,i*Math.sign(t[1])||-i/2,0];return[td(e,a),td(n,nd(a,[1,-1,1]))]}return[wd(r,e,ad(r,e)+i),wd(r,n,ad(r,n)+i)]}(t,l,u,i);return o&&(l=xm(o,c[0])),s&&(u=xm(s,c[c.length-1])),Ng(l,u,c)}function Dg(t,e,n,i,r,a,o){const s=pm(t),l=s[a||o],u=s[o||a];let[c,h]=Lg(t,n,i,l,u);const d=function(t,e,n,i){const r=[],a=Xc(t);if(ec(e,n)){switch(th(e,a)){case"left":r.push([e[0]-i,e[1]]),r.push([e[0]-i,e[1]+i]),r.push([e[0],e[1]+i]);break;case"right":r.push([e[0]+i,e[1]]),r.push([e[0]+i,e[1]+i]),r.push([e[0],e[1]+i]);break;case"top":r.push([e[0],e[1]-i]),r.push([e[0]+i,e[1]-i]),r.push([e[0]+i,e[1]]);break;case"bottom":r.push([e[0],e[1]+i]),r.push([e[0]+i,e[1]+i]),r.push([e[0]+i,e[1]])}}else{const t=th(e,a),o=th(n,a);if(t===o){let a,o;switch(t){case"left":a=Math.min(e[0],n[0])-i,r.push([a,e[1]]),r.push([a,n[1]]);break;case"right":a=Math.max(e[0],n[0])+i,r.push([a,e[1]]),r.push([a,n[1]]);break;case"top":o=Math.min(e[1],n[1])-i,r.push([e[0],o]),r.push([n[0],o]);break;case"bottom":o=Math.max(e[1],n[1])+i,r.push([e[0],o]),r.push([n[0],o])}}else{const s=(t,e)=>({left:[e[0]-i,e[1]],right:[e[0]+i,e[1]],top:[e[0],e[1]-i],bottom:[e[0],e[1]+i]}[t]),l=s(t,e),u=s(o,n),c=Mg(l,u,a);r.push(l,c,u)}}return r}(t,c,h,r);return l&&(c=xm(l,d[0])),u&&(h=xm(u,d[d.length-1])),Pg([c,...d,h],e)}function kg(t,e){const n=new Set,i=new Set,r=new Set;return t.forEach((a=>{e(a).forEach((e=>{n.add(e),t.includes(e.source)&&t.includes(e.target)?i.add(e):r.add(e)}))})),{edges:Array.from(n),internal:Array.from(i),external:Array.from(r)}}function Ig(t,e){const n=[];let i=t;for(;i;){n.push(i);const t=e(Dh(i));if(!t)break;i=t}if(n.some((t=>{var e;return null===(e=t.style)||void 0===e?void 0:e.collapsed}))){const t=n.reverse().findIndex(Vd);return n[t]||n.at(-1)}return t}const Bg=(t,e)=>{const n=Math.max(t,e)/2;return[["M",-t/2,0],["A",n,n,0,1,0,2*n-t/2,0],["A",n,n,0,1,0,-t/2,0],["Z"]]},Fg=(t,e)=>[["M",-t/2,0],["L",t/2,-e/2],["L",t/2,e/2],["Z"]],zg=(t,e)=>[["M",-t/2,0],["L",0,-e/2],["L",t/2,0],["L",0,e/2],["Z"]],Gg=(t,e)=>[["M",-t/2,0],["L",t/2,-e/2],["L",4*t/5-t/2,0],["L",t/2,e/2],["Z"]],jg=(t,e)=>[["M",-t/2,-e/2],["L",t/2,-e/2],["L",t/2,e/2],["L",-t/2,e/2],["Z"]],Ug=(t,e)=>{const n=t/2,i=t/7,r=t-i;return[["M",-n,0],["L",0,-e/2],["L",0,e/2],["Z"],["M",r-n,-e/2],["L",r+i-n,-e/2],["L",r+i-n,e/2],["L",r-n,e/2],["Z"]]},Hg=(t,e)=>[["M",t/2,-e/2],["L",-t/2,0],["L",t/2,0],["L",-t/2,0],["L",t/2,e/2]];var Vg=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r("currentTime"===e&&Promise.resolve().then((()=>this.onframe())),Reflect.set(t,e,n))}):n}}Zg.defaultStyleProps={badge:!0,badgeOffsetX:0,badgeOffsetY:0,badgePlacement:"suffix",isBillboard:!0,label:!0,labelAutoRotate:!0,labelIsBillboard:!0,labelMaxWidth:"80%",labelOffsetX:4,labelOffsetY:0,labelPlacement:"center",labelTextBaseline:"middle",labelWordWrap:!1,halo:!1,haloDroppable:!1,haloLineDash:0,haloLineWidth:12,haloPointerEvents:"none",haloStrokeOpacity:.25,haloZIndex:-1,loop:!0,startArrow:!1,startArrowLineDash:0,startArrowLineJoin:"round",startArrowLineWidth:1,startArrowTransformOrigin:"center",startArrowType:"vee",endArrow:!1,endArrowLineDash:0,endArrowLineJoin:"round",endArrowLineWidth:1,endArrowTransformOrigin:"center",endArrowType:"vee",loopPlacement:"top",loopClockwise:!0};class Wg extends Zg{constructor(t){super(rf({style:Wg.defaultStyleProps},t))}getKeyPath(t){const[e,n]=this.getEndpoints(t),{controlPoints:i,curvePosition:r,curveOffset:a}=t,o=this.getControlPoints(e,n,function(t){return(0,oe.Z)(t)?[t,1-t]:t}(r),function(t){return(0,oe.Z)(t)?[t,-t]:t}(a),i);return Ng(e,n,o)}getControlPoints(t,e,n,i,r){return 2===(null==r?void 0:r.length)?r:[Og(t,e,n[0],i[0]),Og(t,e,n[1],i[1])]}}Wg.defaultStyleProps={curvePosition:.5,curveOffset:20};class Xg extends Wg{constructor(t){super(rf({style:Xg.defaultStyleProps},t))}getControlPoints(t,e,n,i){const r=e[0]-t[0];return[[t[0]+r*n[0]+i[0],t[1]],[e[0]-r*n[1]+i[1],e[1]]]}}Xg.defaultStyleProps={curvePosition:[.5,.5],curveOffset:[0,0]};class Yg extends Wg{constructor(t){super(rf({style:Yg.defaultStyleProps},t))}get ref(){return this.context.model.getRootsData()[0]}getEndpoints(t){if(this.sourceNode.id===this.ref.id)return super.getEndpoints(t);const e=md(this.ref);return[this.sourceNode.getIntersectPoint(e,!0),this.targetNode.getIntersectPoint(e)]}toRadialCoordinate(t){const e=md(this.ref);return[ad(t,e),dd(ed(t,e))]}getControlPoints(t,e,n,i){const[r,a]=this.toRadialCoordinate(t),[o]=this.toRadialCoordinate(e),s=o-r;return[[t[0]+(s*n[0]+i[0])*Math.cos(a),t[1]+(s*n[0]+i[0])*Math.sin(a)],[e[0]-(s*n[1]-i[0])*Math.cos(a),e[1]-(s*n[1]-i[0])*Math.sin(a)]]}}Yg.defaultStyleProps={curvePosition:.5,curveOffset:20};class qg extends Wg{constructor(t){super(rf({style:qg.defaultStyleProps},t))}getControlPoints(t,e,n,i){const r=e[1]-t[1];return[[t[0],t[1]+r*n[0]+i[0]],[e[0],e[1]-r*n[1]+i[1]]]}}qg.defaultStyleProps={curvePosition:[.5,.5],curveOffset:[0,0]};class $g extends Zg{constructor(t){super(rf({style:$g.defaultStyleProps},t))}getKeyPath(t){const[e,n]=this.getEndpoints(t);return[["M",e[0],e[1]],["L",n[0],n[1]]]}}$g.defaultStyleProps={};const Kg={enableObstacleAvoidance:!1,offset:10,maxAllowedDirectionChange:Math.PI/2,maximumLoops:3e3,gridSize:5,startDirections:["top","right","bottom","left"],endDirections:["top","right","bottom","left"],directionMap:{right:{stepX:1,stepY:0},left:{stepX:-1,stepY:0},bottom:{stepX:0,stepY:1},top:{stepX:0,stepY:-1}},penalties:{0:0,90:0},distFunc:od},Qg=t=>`${Math.round(t[0])}|||${Math.round(t[1])}`;function Jg(t,e){const n=t=>Math.round(t/e);return(0,oe.Z)(t)?n(t):t.map(n)}function tm(t,e){const n=e[0]-t[0],i=e[1]-t[1];return n||i?Math.atan2(i,n):0}function em(t,e,n,i){const r=tm(t,e),a=n[Qg(t)];return function(t,e){const n=Math.abs(t-e);return n>Math.PI?2*Math.PI-n:n}(tm(a||i,t),r)}function nm(t,e,n){return Math.min(...e.map((e=>n(t,e))))}const im=(t,e,n,i)=>{if(!e)return[t];const{directionMap:r,offset:a}=i,o=qc(e.getRenderBounds(),a),s=Object.keys(r).reduce(((e,i)=>{if(n.includes(i)){const n=r[i],[a,s]=Wc(o),l=[t[0]+n.stepX*a,t[1]+n.stepY*s],u=function(t){const{min:[e,n],max:[i,r]}=t,a=[e,r],o=[i,r],s=[i,n],l=[e,n];return[[a,o],[o,s],[s,l],[l,a]]}(o);for(let n=0;nJg(t,i.gridSize)))},rm=(t,e,n,i,r,a,o)=>{const s=[];let l=[a[0]===i[0]?i[0]:t[0]*o,a[1]===i[1]?i[1]:t[1]*o];s.unshift(l);let u=t,c=e[Qg(u)];for(;c;){const t=c,i=u;em(t,i,e,n)&&(l=[t[0]===i[0]?l[0]:t[0]*o,t[1]===i[1]?l[1]:t[1]*o],s.unshift(l)),c=e[Qg(t)],u=t}const h=r.map((t=>[t[0]*o,t[1]*o])),d=function(t,e,n){let i=t[0],r=n(t[0],e);for(let a=0;a{const{offset:n,gridSize:i}=e,r={};return t.forEach((t=>{if(!t||t.destroyed||!t.isVisible())return;const e=qc(t.getRenderBounds(),n);for(let t=Jg(e.min[0],i);t<=Jg(e.max[0],i);t+=1)for(let n=Jg(e.min[1],i);n<=Jg(e.max[1],i);n+=1)r[`${t}|||${n}`]=!0})),r})(o.enableObstacleAvoidance?n:[t,e],o),u=Jg(r,s),c=Jg(a,s),h=im(r,t,o.startDirections,o),d=im(a,e,o.endDirections,o);h.forEach((t=>delete l[Qg(t)])),d.forEach((t=>delete l[Qg(t)]));const f={},p={},g={},m={},v={},y=new om;for(let t=0;tQg(t)));let b,_=o.maximumLoops,E=1/0;for(const[t,e]of Object.entries(f))v[t]<=E&&(E=v[t],b=e);for(;Object.keys(f).length>0&&_>0;){const t=y.minId(!1);if(!t)break;b=f[t];const e=Qg(b);if(x.includes(e))return rm(b,g,u,a,h,c,s);delete f[e],y.remove(e),p[e]=!0;for(const t of Object.values(o.directionMap)){const n=td(b,[t.stepX,t.stepY]),i=Qg(n);if(p[i])continue;const r=em(b,n,g,u);if(r>o.maxAllowedDirectionChange)continue;if(l[i])continue;f[i]||(f[i]=n);const a=o.penalties[r],c=o.distFunc(b,n)+(isNaN(a)?s:a),h=m[e]+c,x=m[i];x&&h>=x||(g[i]=b,m[i]=h,v[i]=h+nm(n,d,o.distFunc),y.add({id:i,value:v[i]}))}_-=1}return[]}class om{constructor(){this.arr=[],this.map={},this.arr=[],this.map={}}_innerAdd(t,e){let n=0,i=e-1;for(;i-n>1;){const e=Math.floor((n+i)/2);if(this.arr[e].value>t.value)i=e;else{if(!(this.arr[e].value=0;e--)this.map[this.arr[e].id]?t=this.arr[e].id:this.arr.splice(e,1);return t}_findFirstId(){for(;this.arr.length;){const t=this.arr.shift();if(this.map[t.id])return t.id}}minId(t){return t?this._clearAndGetMinId():this._findFirstId()}}class sm extends Zg{constructor(t){super(rf({style:sm.defaultStyleProps},t))}getControlPoints(t){const{router:e}=t,{sourceNode:n,targetNode:i}=this,[r,a]=this.getEndpoints(t,!1);let o=[];if(e)if("shortest-path"===e.type){o=am(n,i,this.context.element.getNodes(),e),o.length||(o=mg(r,a,n,i,t.controlPoints,{padding:e.offset}))}else"orth"===e.type&&(o=mg(r,a,n,i,t.controlPoints,e));else o=t.controlPoints;return o}getPoints(t){const e=this.getControlPoints(t),[n,i]=this.getEndpoints(t,!0,e);return[n,...e,i]}getKeyPath(t){return Pg(this.getPoints(t),t.radius)}getLoopPath(t){const{sourcePort:e,targetPort:n,radius:i}=t,r=this.sourceNode,a=Xc(r),o=Math.max(Vc(a),Zc(a))/4,{placement:s,clockwise:l,dist:u=o}=Kd(this.getGraphicStyle(t),"loop");return Dg(r,i,s,l,u,e,n)}}sm.defaultStyleProps={radius:0,controlPoints:[],router:!1};class lm extends Zg{constructor(t){super(rf({style:lm.defaultStyleProps},t))}getKeyPath(t){const{curvePosition:e,curveOffset:n}=t,[i,r]=this.getEndpoints(t);return function(t,e,n){return[["M",t[0],t[1]],["Q",n[0],n[1],e[0],e[1]]]}(i,r,t.controlPoint||Og(i,r,e,n))}}function um(t){return t instanceof If&&"node"===t.type}function cm(t){return t instanceof Zg}function hm(t){return t instanceof hg}lm.defaultStyleProps={curvePosition:.5,curveOffset:30};const dm={top:[.5,0],right:[1,.5],bottom:[.5,1],left:[0,.5],default:[.5,.5]};function fm(t,e,n=dm,i=!0){const r=[.5,.5],a=(0,ue.Z)(e)?Zd(n,e.toLocaleLowerCase(),r):e;if(!i&&(0,ue.Z)(e))return a;const[o,s]=a||r;return[t.min[0]+Vc(t)*o,t.min[1]+Zc(t)*s]}function pm(t){if(!t)return{};const e=t.getPorts();return(t.attributes.ports||[]).forEach(((n,i)=>{var r;const{key:a,placement:o}=n;gm(n)&&(e[r=a||i]||(e[r]=xd(t.getShape("key").getBounds(),o)))})),e}function gm(t){const{r:e}=t;return!e||0===Number(e)}function mm(t){return Gc(t)?t:t.getPosition()}function vm(t,e,n,i){const r=pm(t);if(n)return r[n];const a=Object.values(r);if(0===a.length)return;const o=a.map((t=>mm(t))),s=function(t,e){const n=pm(t);if(e)return[mm(n[e])];const i=Object.values(n);return i.length>0?i.map((t=>mm(t))):[t.getCenter()]}(e,i),[l]=function(t,e){let n=1/0,i=[t[0],e[0]];return t.forEach((t=>{e.forEach((e=>{const r=ad(t,e);rmm(t)===l))}function ym(t,e){return hm(t)||um(t)?bm(t,e):xm(t,e)}function xm(t,e){if(!t||!e)return[0,0,0];if(Gc(t))return t;if(t.attributes.linkToCenter)return t.getPosition();return Cd(Gc(e)?e:um(e)?e.getCenter():e.getPosition(),t.getBounds())}function bm(t,e){if(!t||!e)return[0,0,0];const n=Gc(e)?e:um(e)?e.getCenter():e.getPosition();return t.getIntersectPoint(n)||t.getCenter()}function _m(t,e="bottom",n=0,i=0,r=!1){const a=e.split("-"),[o,s]=xd(t,e),l=a.includes("left")?"right":a.includes("right")?"left":"center";let u=a.includes("top")?"bottom":a.includes("bottom")?"top":"middle";return r&&(u="top"===u?"bottom":"bottom"===u?"top":u),{transform:[["translate",o+n,s+i]],textBaseline:u,textAlign:l}}function Em(t,e){"update"in t?t.update(e):t.attr(e)}function wm(t){return Zd(t,"__to_be_destroyed__",!1)}var Tm=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};class Sm extends $h{constructor(t,e){super(t,Object.assign({},Sm.defaultOptions,e)),this.onCollapseExpand=t=>Tm(this,void 0,void 0,(function*(){if(!this.validate(t))return;const{target:e}=t;if(!(um(n=e)||cm(n)||hm(n)))return;var n;const i=e.id,{model:r,graph:a}=this.context,o=r.getElementDataById(i);if(!o)return!1;const{onCollapse:s,onExpand:l,animation:u}=this.options;Vd(o)?(yield a.expandElement(i,u),null==l||l(i)):(yield a.collapseElement(i,u),null==s||s(i))})),this.bindEvents()}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}bindEvents(){const{graph:t}=this.context,{trigger:e}=this.options;t.on(`node:${e}`,this.onCollapseExpand),t.on(`combo:${e}`,this.onCollapseExpand)}unbindEvents(){const{graph:t}=this.context,{trigger:e}=this.options;t.off(`node:${e}`,this.onCollapseExpand),t.off(`combo:${e}`,this.onCollapseExpand)}validate(t){if(this.destroyed)return!1;const{enable:e}=this.options;return(0,en.Z)(e)?e(t):!!e}destroy(){this.unbindEvents(),super.destroy()}}Sm.defaultOptions={enable:!0,animation:!0,trigger:lc.DBLCLICK};var Mm={},Cm=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};const Am="g6-create-edge-assist-node-id";class Om extends $h{constructor(t,e){super(t,Object.assign({},Om.defaultOptions,e)),this.drop=t=>Cm(this,void 0,void 0,(function*(){const{targetType:e}=t;["combo","node"].includes(e)&&this.source?yield this.handleCreateEdge(t):yield this.cancelEdge()})),this.handleCreateEdge=t=>Cm(this,void 0,void 0,(function*(){var e,n,i;if(!this.validate(t))return;const{graph:r,canvas:a,batch:o,element:s}=this.context,{style:l}=this.options;if(this.source)return this.createEdge(t),void(yield this.cancelEdge());o.startBatch(),a.setCursor("crosshair"),this.source=this.getSelectedNodeIDs([t.target.id])[0];const u=r.getElementData(this.source);r.addNodeData([{id:Am,style:{visibility:"hidden",ports:[{key:"port-1",placement:[.5,.5]}],x:null===(e=u.style)||void 0===e?void 0:e.x,y:null===(n=u.style)||void 0===n?void 0:n.y}}]),r.addEdgeData([{id:"g6-create-edge-assist-edge-id",source:this.source,target:Am,style:Object.assign({pointerEvents:"none"},l)}]),yield null===(i=s.draw({animation:!1}))||void 0===i?void 0:i.finished})),this.updateAssistEdge=t=>Cm(this,void 0,void 0,(function*(){var e;if(!this.source)return;const{model:n,element:i}=this.context;n.translateNodeTo(Am,[t.canvas.x,t.canvas.y]),yield null===(e=i.draw({animation:!1,silence:!0}))||void 0===e?void 0:e.finished})),this.createEdge=t=>{var e,n;const{graph:i}=this.context,{style:r,onFinish:a,onCreate:o}=this.options;if(void 0===(null===(e=t.target)||void 0===e?void 0:e.id)||void 0===this.source)return;const s=null===(n=this.getSelectedNodeIDs([t.target.id]))||void 0===n?void 0:n[0];var l;const u=o({id:`${this.source}-${s}-${Mm[l=l||"g"]?Mm[l]+=1:Mm[l]=1,l+Mm[l]}`,source:this.source,target:s,style:r});i.addEdgeData([u]),a(u)},this.cancelEdge=()=>Cm(this,void 0,void 0,(function*(){var t;if(!this.source)return;const{graph:e,element:n,batch:i}=this.context;e.removeNodeData([Am]),this.source=void 0,yield null===(t=n.draw({animation:!1}))||void 0===t?void 0:t.finished,i.endBatch()})),this.bindEvents()}update(t){super.update(t),this.bindEvents()}bindEvents(){const{graph:t}=this.context,{trigger:e}=this.options;this.unbindEvents(),"click"===e?(t.on(fc.CLICK,this.handleCreateEdge),t.on(sc.CLICK,this.handleCreateEdge),t.on(oc.CLICK,this.cancelEdge),t.on(cc.CLICK,this.cancelEdge)):(t.on(fc.DRAG_START,this.handleCreateEdge),t.on(sc.DRAG_START,this.handleCreateEdge),t.on(lc.POINTER_UP,this.drop)),t.on(lc.POINTER_MOVE,this.updateAssistEdge)}getSelectedNodeIDs(t){return Array.from(new Set(this.context.graph.getElementDataByState("node",this.options.state).map((t=>t.id)).concat(t)))}validate(t){if(this.destroyed)return!1;const{enable:e}=this.options;return(0,en.Z)(e)?e(t):!!e}unbindEvents(){const{graph:t}=this.context;t.off(fc.CLICK,this.handleCreateEdge),t.off(sc.CLICK,this.handleCreateEdge),t.off(oc.CLICK,this.cancelEdge),t.off(cc.CLICK,this.cancelEdge),t.off(fc.DRAG_START,this.handleCreateEdge),t.off(sc.DRAG_START,this.handleCreateEdge),t.off(lc.POINTER_UP,this.drop),t.off(lc.POINTER_MOVE,this.updateAssistEdge)}destroy(){this.unbindEvents(),super.destroy()}}Om.defaultOptions={animation:!0,enable:!0,style:{},trigger:"drag",onCreate:t=>t,onFinish:()=>{}};var Nm=function(t,e,n){var i;return function(){var r=this,a=arguments,o=function(){i=null,n||t.apply(r,a)},s=n&&!i;clearTimeout(i),i=setTimeout(o,e),s&&t.apply(r,a)}},Pm=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};class Lm extends $h{constructor(t,e){super(t,Object.assign({},Lm.defaultOptions,e)),this.isDragging=!1,this.onDragStart=t=>{this.validate(t)&&(this.isDragging=!0,this.context.canvas.setCursor("grabbing"))},this.onDrag=t=>{if(!this.isDragging)return;const{x:e,y:n}=t.movement;0!=(e|n)&&this.translate([e,n],!1)},this.onDragEnd=()=>{var t,e;this.isDragging=!1,this.context.canvas.setCursor(this.defaultCursor),null===(e=(t=this.options).onFinish)||void 0===e||e.call(t)},this.invokeOnFinish=Nm((()=>{var t,e;null===(e=(t=this.options).onFinish)||void 0===e||e.call(t)}),300),this.shortcut=new Rd(t.graph),this.bindEvents(),this.defaultCursor=this.context.canvas.getConfig().cursor||"default"}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}bindEvents(){const{trigger:t}=this.options;if((0,nn.Z)(t)){const{up:e=[],down:n=[],left:i=[],right:r=[]}=t;this.shortcut.bind(e,(t=>this.onTranslate([0,1],t))),this.shortcut.bind(n,(t=>this.onTranslate([0,-1],t))),this.shortcut.bind(i,(t=>this.onTranslate([1,0],t))),this.shortcut.bind(r,(t=>this.onTranslate([-1,0],t)))}else{const{graph:t}=this.context;t.on(lc.DRAG_START,this.onDragStart),t.on(lc.DRAG,this.onDrag),t.on(lc.DRAG_END,this.onDragEnd)}}onTranslate(t,e){return Pm(this,void 0,void 0,(function*(){if(!this.validate(e))return;const{sensitivity:n}=this.options,i=-1*n;yield this.translate(nd(t,i),this.options.animation),this.invokeOnFinish()}))}translate(t,e){return Pm(this,void 0,void 0,(function*(){t=this.clampByDirection(t),t=this.clampByRange(t),yield this.context.graph.translateBy(t,e)}))}clampByDirection([t,e]){const{direction:n}=this.options;return"x"===n?e=0:"y"===n&&(t=0),[t,e]}clampByRange([t,e]){const{viewport:n,canvas:i}=this.context,[r,a]=i.getSize(),[o,s,l,u]=Uc(this.options.range),c=[a*o,r*s,a*l,r*u],h=qc(Yc(n.getCanvasCenter()),c),d=ed(n.getViewportCenter(),[t,e,0]);if(!Kc(d,h)){const{min:[n,i],max:[r,a]}=h;(d[0]0||d[0]>r&&t<0)&&(t=0),(d[1]0||d[1]>a&&e<0)&&(e=0)}return[t,e]}validate(t){if(this.destroyed)return!1;const{enable:e}=this.options;return"function"==typeof e?e(t):!!e}unbindEvents(){this.shortcut.unbindAll();const{graph:t}=this.context;t.off(lc.DRAG_START,this.onDragStart),t.off(lc.DRAG,this.onDrag),t.off(lc.DRAG_END,this.onDragEnd)}destroy(){this.shortcut.destroy(),this.unbindEvents(),this.context.canvas.setCursor(this.defaultCursor),super.destroy()}}Lm.defaultOptions={enable:t=>!("targetType"in t)||"canvas"===t.targetType,sensitivity:10,direction:"both",range:1/0};var Rm=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};class Dm extends $h{constructor(t,e){super(t,Object.assign({},Dm.defaultOptions,e)),this.enable=!1,this.enableElements=["node","combo"],this.target=[],this.shadowOrigin=[0,0],this.hiddenEdges=[],this.isDragging=!1,this.onDrop=t=>Rm(this,void 0,void 0,(function*(){var e;if("link"!==this.options.dropEffect)return;const{model:n,element:i}=this.context,r=t.target.id;this.target.forEach((t=>{const e=n.getParentData(t,pc);e&&Dh(e)===r&&n.refreshComboData(r),n.setParent(t,r,pc)})),yield null===(e=null==i?void 0:i.draw({animation:!0}))||void 0===e?void 0:e.finished})),this.setCursor=t=>{if(this.isDragging)return;const{type:e}=t,{canvas:n}=this.context,{cursor:i}=this.options;e===lc.POINTER_ENTER?n.setCursor((null==i?void 0:i.grab)||"grab"):n.setCursor((null==i?void 0:i.default)||"default")},this.onDragStart=this.onDragStart.bind(this),this.onDrag=this.onDrag.bind(this),this.onDragEnd=this.onDragEnd.bind(this),this.onDrop=this.onDrop.bind(this),this.bindEvents()}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}bindEvents(){const{graph:t,canvas:e}=this.context,n=e.getLayer().getContextService().$canvas;n&&(n.addEventListener("blur",this.onDragEnd),n.addEventListener("contextmenu",this.onDragEnd)),this.enableElements.forEach((e=>{t.on(`${e}:${lc.DRAG_START}`,this.onDragStart),t.on(`${e}:${lc.DRAG}`,this.onDrag),t.on(`${e}:${lc.DRAG_END}`,this.onDragEnd),t.on(`${e}:${lc.POINTER_ENTER}`,this.setCursor),t.on(`${e}:${lc.POINTER_LEAVE}`,this.setCursor)})),["link"].includes(this.options.dropEffect)&&(t.on(sc.DROP,this.onDrop),t.on(oc.DROP,this.onDrop))}getSelectedNodeIDs(t){return Array.from(new Set(this.context.graph.getElementDataByState("node",this.options.state).map((t=>t.id)).concat(t)))}getDelta(t){const e=this.context.graph.getZoom();return id([t.dx,t.dy],e)}onDragStart(t){var e;if(this.enable=this.validate(t),!this.enable)return;const{batch:n,canvas:i}=this.context;i.setCursor((null===(e=this.options.cursor)||void 0===e?void 0:e.grabbing)||"grabbing"),this.isDragging=!0,n.startBatch(),this.target=this.getSelectedNodeIDs([t.target.id]),this.hideEdge(),this.context.graph.frontElement(this.target),this.options.shadow&&this.createShadow(this.target)}onDrag(t){if(!this.enable)return;const e=this.getDelta(t);this.options.shadow?this.moveShadow(e):this.moveElement(this.target,e)}onDragEnd(){var t,e,n;if(this.enable=!1,this.options.shadow){if(!this.shadow)return;this.shadow.style.visibility="hidden";const{x:t=0,y:e=0}=this.shadow.attributes,[n,i]=ed([+t,+e],this.shadowOrigin);this.moveElement(this.target,[n,i])}this.showEdges(),null===(e=(t=this.options).onFinish)||void 0===e||e.call(t,this.target);const{batch:i,canvas:r}=this.context;i.endBatch(),r.setCursor((null===(n=this.options.cursor)||void 0===n?void 0:n.grab)||"grab"),this.isDragging=!1,this.target=[]}validate(t){if(this.destroyed)return!1;const{enable:e}=this.options;return(0,en.Z)(e)?e(t):!!e}moveElement(t,e){return Rm(this,void 0,void 0,(function*(){const{graph:n,model:i}=this.context,{dropEffect:r}=this.options;"move"===r&&t.forEach((t=>i.refreshComboData(t))),n.translateElementBy(Object.fromEntries(t.map((t=>[t,e]))),!1)}))}moveShadow(t){if(!this.shadow)return;const{x:e=0,y:n=0}=this.shadow.attributes,[i,r]=t;this.shadow.attr({x:+e+i,y:+n+r})}createShadow(t){const e=Kd(this.options,"shadow"),n=$c(t.map((t=>this.context.element.getElement(t).getBounds()))),[i,r]=n.min;this.shadowOrigin=[i,r];const[a,o]=Wc(n),s={width:a,height:o,x:i,y:r};this.shadow?this.shadow.attr(Object.assign(Object.assign(Object.assign({},e),s),{visibility:"visible"})):(this.shadow=new kl({style:Object.assign(Object.assign(Object.assign({$layer:"transient"},e),s),{pointerEvents:"none"})}),this.context.canvas.appendChild(this.shadow))}showEdges(){this.options.shadow||0===this.hiddenEdges.length||(this.context.graph.showElement(this.hiddenEdges),this.hiddenEdges=[])}hideEdge(){const{hideEdge:t,shadow:e}=this.options;if("none"===t||e)return;const{graph:n}=this.context;this.hiddenEdges="all"===t?n.getEdgeData().map(Dh):Array.from(new Set(this.target.map((e=>n.getRelatedEdgesData(e,t).map(Dh))).flat())),n.hideElement(this.hiddenEdges)}unbindEvents(){const{graph:t,canvas:e}=this.context,n=e.getLayer().getContextService().$canvas;n&&(n.removeEventListener("blur",this.onDragEnd),n.removeEventListener("contextmenu",this.onDragEnd)),this.enableElements.forEach((e=>{t.off(`${e}:${lc.DRAG_START}`,this.onDragStart),t.off(`${e}:${lc.DRAG}`,this.onDrag),t.off(`${e}:${lc.DRAG_END}`,this.onDragEnd),t.off(`${e}:${lc.POINTER_ENTER}`,this.setCursor),t.off(`${e}:${lc.POINTER_LEAVE}`,this.setCursor)})),t.off(`combo:${lc.DROP}`,this.onDrop),t.off(`canvas:${lc.DROP}`,this.onDrop)}destroy(){var t;this.unbindEvents(),null===(t=this.shadow)||void 0===t||t.destroy(),super.destroy()}}Dm.defaultOptions={animation:!0,enable:t=>["node","combo"].includes(t.targetType),dropEffect:"move",state:"selected",hideEdge:"none",shadow:!1,shadowZIndex:100,shadowFill:"#F3F9FF",shadowFillOpacity:.5,shadowStroke:"#1890FF",shadowStrokeOpacity:.9,shadowLineDash:[5,5],cursor:{default:"default",grab:"grab",grabbing:"grabbing"}};var km=n(56354);class Im{constructor(t,e){this.context=t,this.options=e||{}}}var Bm=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))},Fm=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const e=t.data._isCombo?i.combos:i.nodes,{x:n,y:r,z:a=0}=t.data;null==e||e.push({id:t.id,style:{x:n,y:r,z:a}})})),n.forEach((t=>{const{id:e,source:n,target:r,data:{points:a=[],controlPoints:o=a.slice(1,a.length-1)}}=t;i.edges.push({id:e,source:n,target:r,style:Object.assign({},(null==o?void 0:o.length)?{controlPoints:o.map(bd)}:{})})})),i}function Gm(t,e,...n){if(e in t)return t[e](...n);if("instance"in t){const i=t.instance;if(e in i)return i[e](...n)}return null}function jm(t,e){if(e in t)return t[e];if("instance"in t){const n=t.instance;if(e in n)return n[e]}return null}var Um=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};var Hm=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};class Vm extends $h{constructor(t,e){super(t,Object.assign({},Vm.defaultOptions,e)),this.isZoomEvent=t=>Boolean(t.data&&"scale"in t.data),this.relatedEdgeToUpdate=new Set,this.zoom=this.context.graph.getZoom(),this.fixElementSize=t=>Hm(this,void 0,void 0,(function*(){if(!this.validate(t))return;const{graph:e}=this.context,{state:n,nodeFilter:i,edgeFilter:r,comboFilter:a}=this.options,o=(n?e.getElementDataByState("node",n):e.getNodeData()).filter(i),s=(n?e.getElementDataByState("edge",n):e.getEdgeData()).filter(r),l=(n?e.getElementDataByState("combo",n):e.getComboData()).filter(a),u=this.isZoomEvent(t)?this.zoom=Math.max(.01,Math.min(t.data.scale,10)):this.zoom,c=[...o,...l];c.length>0&&c.forEach((t=>this.fixNodeLike(t,u))),this.updateRelatedEdges(),s.length>0&&s.forEach((t=>this.fixEdge(t,u)))})),this.cachedStyles=new Map,this.getOriginalFieldValue=(t,e,n)=>{var i;const r=this.cachedStyles.get(t)||[],a=(null===(i=r.find((t=>t.shape===e)))||void 0===i?void 0:i.style)||{};return n in a||(a[n]=e.attributes[n],this.cachedStyles.set(t,[...r.filter((t=>t.shape!==e)),{shape:e,style:a}])),a[n]},this.scaleEntireElement=(t,e,n)=>{e.setLocalScale(1/n);const i=this.cachedStyles.get(t)||[];i.push({shape:e}),this.cachedStyles.set(t,i)},this.scaleSpecificShapes=(t,e,n)=>{const i=function(t){const e=[],n=t=>{(null==t?void 0:t.children.length)&&t.children.forEach((t=>{e.push(t),n(t)}))};return n(t),e}(t);(Array.isArray(n)?n:[n]).forEach((n=>{const{shape:r,fields:a}=n,o="function"==typeof r?r(i):t.getShape(r);o&&(a?a.forEach((n=>{const i=this.getOriginalFieldValue(t.id,o,n);(0,oe.Z)(i)&&(o.style[n]=i/e)})):this.scaleEntireElement(t.id,o,e))}))},this.skipIfExceedViewport=t=>{const{viewport:e}=this.context;return!(null==e?void 0:e.isInViewport(t.getRenderBounds(),!1,30))},this.fixNodeLike=(t,e)=>{const n=Dh(t),{element:i,model:r}=this.context,a=i.getElement(n);if(!a||this.skipIfExceedViewport(a))return;r.getRelatedEdgesData(n).forEach((t=>this.relatedEdgeToUpdate.add(Dh(t))));const o=this.options[a.type];o?this.scaleSpecificShapes(a,e,o):this.scaleEntireElement(n,a,e)},this.fixEdge=(t,e)=>{const n=Dh(t),i=this.context.element.getElement(n);if(!i||this.skipIfExceedViewport(i))return;const r=this.options.edge;if(!r)return i.style.transformOrigin="center",void this.scaleEntireElement(n,i,e);this.scaleSpecificShapes(i,e,r)},this.updateRelatedEdges=()=>{const{element:t}=this.context;this.relatedEdgeToUpdate.size>0&&this.relatedEdgeToUpdate.forEach((e=>{const n=t.getElement(e);null==n||n.update({})})),this.relatedEdgeToUpdate.clear()},this.resetTransform=t=>Hm(this,void 0,void 0,(function*(){var e;(null===(e=t.data)||void 0===e?void 0:e.firstRender)||(this.options.reset?this.restoreCachedStyles():this.fixElementSize({data:{scale:this.zoom}}))})),this.bindEvents()}restoreCachedStyles(){if(this.cachedStyles.size>0){this.cachedStyles.forEach((t=>{t.forEach((({shape:t,style:e})=>{if(vf(e))t.setLocalScale(1);else{if(this.options.state)return;Object.entries(e).forEach((([e,n])=>t.style[e]=n))}}))}));const{graph:t,element:e}=this.context,n=Object.keys(Object.fromEntries(this.cachedStyles)).filter((e=>e&&"node"===t.getElementType(e)));if(n.length>0){const i=new Set;n.forEach((e=>{t.getRelatedEdgesData(e).forEach((t=>i.add(Dh(t))))})),i.forEach((t=>{const n=null==e?void 0:e.getElement(t);null==n||n.update({})}))}}}bindEvents(){const{graph:t}=this.context;t.on(hc.AFTER_DRAW,this.resetTransform),t.on(hc.AFTER_TRANSFORM,this.fixElementSize)}unbindEvents(){const{graph:t}=this.context;t.off(hc.AFTER_DRAW,this.resetTransform),t.off(hc.AFTER_TRANSFORM,this.fixElementSize)}validate(t){if(this.destroyed)return!1;const{enable:e}=this.options;return(0,en.Z)(e)?e(t):!!e}destroy(){this.unbindEvents(),super.destroy()}}Vm.defaultOptions={enable:t=>t.data.scale<1,nodeFilter:()=>!0,edgeFilter:()=>!0,comboFilter:()=>!0,edge:[{shape:"key",fields:["lineWidth"]},{shape:"halo",fields:["lineWidth"]},{shape:"label"}],reset:!1};var Zm=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};class Wm extends $h{constructor(t,e){super(t,Object.assign({},Wm.defaultOptions,e)),this.focus=t=>Zm(this,void 0,void 0,(function*(){if(!this.validate(t))return;const{graph:e}=this.context;yield e.focusElement(t.target.id,this.options.animation)})),this.bindEvents()}bindEvents(){const{graph:t}=this.context;this.unbindEvents(),Bd.forEach((e=>{t.on(`${e}:${lc.CLICK}`,this.focus)}))}validate(t){if(this.destroyed)return!1;const{enable:e}=this.options;return(0,en.Z)(e)?e(t):!!e}unbindEvents(){const{graph:t}=this.context;Bd.forEach((e=>{t.off(`${e}:${lc.CLICK}`,this.focus)}))}destroy(){this.unbindEvents(),super.destroy()}}Wm.defaultOptions={animation:{easing:"ease-in",duration:500},enable:!0};class Xm extends $h{constructor(t,e){super(t,Object.assign({},Xm.defaultOptions,e)),this.isFrozen=!1,this.toggleFrozen=t=>{this.isFrozen="dragstart"===t.type},this.hoverElement=t=>{if(!this.validate(t))return;const e=t.type===lc.POINTER_ENTER;this.updateElementsState(t,e);const{onHover:n,onHoverEnd:i}=this.options;e?null==n||n(t):null==i||i(t)},this.updateElementsState=(t,e)=>{if(!this.options.state&&!this.options.inactiveState)return;const{graph:n}=this.context,{state:i,animation:r,inactiveState:a}=this.options,o=this.getActiveIds(t),s={};if(i&&Object.assign(s,this.getElementsState(o,i,e)),a){const t=Ih(n.getData(),!0).filter((t=>!o.includes(t)));Object.assign(s,this.getElementsState(t,a,e))}n.setElementState(s,r)},this.getElementsState=(t,e,n)=>{const{graph:i}=this.context,r={};return t.forEach((t=>{const a=i.getElementState(t);r[t]=n?a.includes(e)?a:[...a,e]:a.filter((t=>t!==e))})),r},this.bindEvents()}bindEvents(){const{graph:t}=this.context;this.unbindEvents(),Bd.forEach((e=>{t.on(`${e}:${lc.POINTER_ENTER}`,this.hoverElement),t.on(`${e}:${lc.POINTER_LEAVE}`,this.hoverElement)}));const e=this.context.canvas.document;e.addEventListener(`${lc.DRAG_START}`,this.toggleFrozen),e.addEventListener(`${lc.DRAG_END}`,this.toggleFrozen)}getActiveIds(t){const{graph:e}=this.context,{degree:n,direction:i}=this.options,r=t.target.id;return n?zd(e,t.targetType,r,"function"==typeof n?n(t):n,i):[r]}validate(t){if(this.destroyed||this.isFrozen||wm(t.target)||this.context.graph.isCollapsingExpanding)return!1;const{enable:e}=this.options;return(0,en.Z)(e)?e(t):!!e}unbindEvents(){const{graph:t}=this.context;Bd.forEach((e=>{t.off(`${e}:${lc.POINTER_ENTER}`,this.hoverElement),t.off(`${e}:${lc.POINTER_LEAVE}`,this.hoverElement)}));const e=this.context.canvas.document;e.removeEventListener(`${lc.DRAG_START}`,this.toggleFrozen),e.removeEventListener(`${lc.DRAG_END}`,this.toggleFrozen)}destroy(){this.unbindEvents(),super.destroy()}}Xm.defaultOptions={animation:!1,enable:!0,degree:0,direction:"both",state:"active",inactiveState:void 0};class Ym extends $h{constructor(t,e){super(t,Object.assign({},Ym.defaultOptions,e)),this.hiddenShapes=[],this.isVisible=!0,this.setElementsVisibility=(t,e,n)=>{t.filter(Boolean).forEach((t=>{"hidden"!==e||t.isVisible()?"visible"===e&&this.hiddenShapes.includes(t)?this.hiddenShapes.splice(this.hiddenShapes.indexOf(t),1):Xh(t,e,!1,n):this.hiddenShapes.push(t)}))},this.filterShapes=(t,e)=>{if((0,en.Z)(e))return n=>!e(t,n);const n=null==e?void 0:e[t];return t=>!t.className||!(null==n?void 0:n.includes(t.className))},this.hideShapes=t=>{if(!this.validate(t)||!this.isVisible)return;const{element:e}=this.context,{shapes:n={}}=this.options;this.setElementsVisibility(e.getNodes(),"hidden",this.filterShapes("node",n)),this.setElementsVisibility(e.getEdges(),"hidden",this.filterShapes("edge",n)),this.setElementsVisibility(e.getCombos(),"hidden",this.filterShapes("combo",n)),this.isVisible=!1},this.showShapes=Nm((t=>{if(!this.validate(t)||this.isVisible)return;const{element:e}=this.context;this.setElementsVisibility(e.getNodes(),"visible"),this.setElementsVisibility(e.getEdges(),"visible"),this.setElementsVisibility(e.getCombos(),"visible"),this.isVisible=!0}),this.options.debounce),this.bindEvents()}bindEvents(){const{graph:t}=this.context;t.on(hc.BEFORE_TRANSFORM,this.hideShapes),t.on(hc.AFTER_TRANSFORM,this.showShapes)}unbindEvents(){const{graph:t}=this.context;t.off(hc.BEFORE_TRANSFORM,this.hideShapes),t.off(hc.AFTER_TRANSFORM,this.showShapes)}validate(t){if(this.destroyed)return!1;const{enable:e}=this.options;return(0,en.Z)(e)?e(t):!!e}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){this.unbindEvents(),super.destroy()}}Ym.defaultOptions={enable:!0,debounce:200,shapes:t=>"node"===t};var qm=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};class $m extends $h{constructor(t,e){super(t,Object.assign({},$m.defaultOptions,e)),this.onWheel=t=>qm(this,void 0,void 0,(function*(){this.options.preventDefault&&t.preventDefault();const e=t.deltaX,n=t.deltaY;yield this.scroll([-e,-n],t)})),this.shortcut=new Rd(t.graph),this.bindEvents()}update(t){super.update(t),this.bindEvents()}bindEvents(){var t,e;const{trigger:n}=this.options;if(this.shortcut.unbindAll(),(0,nn.Z)(n)){null===(t=this.graphDom)||void 0===t||t.removeEventListener(lc.WHEEL,this.onWheel);const{up:e=[],down:i=[],left:r=[],right:a=[]}=n;this.shortcut.bind(e,(t=>this.scroll([0,-10],t))),this.shortcut.bind(i,(t=>this.scroll([0,10],t))),this.shortcut.bind(r,(t=>this.scroll([-10,0],t))),this.shortcut.bind(a,(t=>this.scroll([10,0],t)))}else null===(e=this.graphDom)||void 0===e||e.addEventListener(lc.WHEEL,this.onWheel,{passive:!1})}get graphDom(){return this.context.graph.getCanvas().getContextService().getDomElement()}formatDisplacement(t){const{sensitivity:e}=this.options;return t=nd(t,e),t=this.clampByDirection(t),t=this.clampByRange(t)}clampByDirection([t,e]){const{direction:n}=this.options;return"x"===n?e=0:"y"===n&&(t=0),[t,e]}clampByRange([t,e]){const{viewport:n,canvas:i}=this.context,[r,a]=i.getSize(),[o,s,l,u]=Uc(this.options.range),c=[a*o,r*s,a*l,r*u],h=qc(Yc(n.getCanvasCenter()),c),d=ed(n.getViewportCenter(),[t,e,0]);if(!Kc(d,h)){const{min:[n,i],max:[r,a]}=h;(d[0]0||d[0]>r&&t<0)&&(t=0),(d[1]0||d[1]>a&&e<0)&&(e=0)}return[t,e]}scroll(t,e){return qm(this,void 0,void 0,(function*(){if(!this.validate(e))return;const{onFinish:n}=this.options,i=this.context.graph,r=this.formatDisplacement(t);yield i.translateBy(r,!1),null==n||n()}))}validate(t){if(this.destroyed)return!1;const{enable:e}=this.options;return(0,en.Z)(e)?e(t):!!e}destroy(){var t;this.shortcut.destroy(),null===(t=this.graphDom)||void 0===t||t.removeEventListener(lc.WHEEL,this.onWheel),super.destroy()}}$m.defaultOptions={enable:!0,sensitivity:1,preventDefault:!0,range:1/0};var Km=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};class Qm extends $h{constructor(t,e){super(t,Object.assign({},Qm.defaultOptions,e)),this.zoom=(t,e,n)=>Km(this,void 0,void 0,(function*(){if(!this.validate(e))return;const{graph:i}=this.context;let r;"viewport"in e&&(r=bd(e.viewport));const{sensitivity:a,onFinish:o}=this.options,s=1+ce(t,-50,50)*a/100,l=i.getZoom();yield i.zoomTo(l*s,n,r),null==o||o()})),this.onReset=()=>Km(this,void 0,void 0,(function*(){yield this.context.graph.zoomTo(1,this.options.animation)})),this.preventDefault=t=>{this.options.preventDefault&&t.preventDefault()},this.shortcut=new Rd(t.graph),this.bindEvents()}update(t){super.update(t),this.bindEvents()}bindEvents(){var t;const{trigger:e}=this.options;if(this.shortcut.unbindAll(),Array.isArray(e)&&(null===(t=this.context.canvas.getContainer())||void 0===t||t.addEventListener(lc.WHEEL,this.preventDefault),this.shortcut.bind([...e,lc.WHEEL],(t=>{const{deltaX:e,deltaY:n}=t;this.zoom(-(null!=n?n:e),t,!1)}))),"object"==typeof e){const{zoomIn:t=[],zoomOut:n=[],reset:i=[]}=e;this.shortcut.bind(t,(t=>this.zoom(10,t,this.options.animation))),this.shortcut.bind(n,(t=>this.zoom(-10,t,this.options.animation))),this.shortcut.bind(i,this.onReset)}}validate(t){if(this.destroyed)return!1;const{enable:e}=this.options;return(0,en.Z)(e)?e(t):!!e}destroy(){var t;this.shortcut.destroy(),null===(t=this.context.canvas.getContainer())||void 0===t||t.removeEventListener(lc.WHEEL,this.preventDefault),super.destroy()}}Qm.defaultOptions={animation:{duration:200},enable:!0,sensitivity:1,trigger:[],preventDefault:!0};var Jm=n(13722),tv=n(7499),ev=n(64589),nv=n(70709),iv=n(73510),rv=n(31392),av=n(14742),ov=n(71636),sv=n(93712),lv=n(79189),uv=n(93786),cv=n(8421),hv=n(16589),dv=n(61649);function fv(t){var e,n,i,r=t||1;function a(t,a){++e>r&&(i=n,o(1),++e),n[t]=a}function o(t){e=0,n=Object.create(null),t||(i=Object.create(null))}return o(),{clear:o,has:function(t){return void 0!==n[t]||void 0!==i[t]},get:function(t){var e=n[t];return void 0!==e?e:void 0!==(e=i[t])?(a(t,e),e):void 0},set:function(t,e){void 0!==n[t]?n[t]=e:a(t,e)}}}var pv=new Map;function gv(t,e,n){void 0===n&&(n=128);return function(){for(var i=[],r=0;rsuper.update}});return Sv(this,void 0,void 0,(function*(){e.update.call(this,t),Object.assign(this.$element.style,xv(this.options,["key","type"]))}))}destroy(){super.destroy(),this.$element.remove()}}function Cv(t,e,n,i,r,a){const o=n-t,s=i-e;let l=r-t,u=a-e,c=l*o+u*s,h=0;c<=0?h=0:(l=o-l,u=s-u,c=l*o+u*s,h=c<=0?0:c*c/(o*o+s*s));const d=l*l+u*u-h;return d<0?0:d}function Av(t,e,n,i){return(t-n)*(t-n)+(e-i)*(e-i)}function Ov(t,e,n,i,r){return Av(t,e,n,i)this.y1&&e>=this.y2)return!1;if(t>this.x1&&t>=this.x2)return!1;if(tthis.x2+n)return!1}else if(tthis.x1+n)return!1;if(this.y1this.y2+n)return!1}else if(ethis.y1+n)return!1;return!0}}!function(t){t[t.POINT=1]="POINT",t[t.PARALLEL=2]="PARALLEL",t[t.COINCIDENT=3]="COINCIDENT",t[t.NONE=4]="NONE"}(wv||(wv={}));class Lv{constructor(t,e=0,n=0){this.state=t,this.x=e,this.y=n}}function Rv(t,e){const n=(e.x2-e.x1)*(t.y1-e.y1)-(e.y2-e.y1)*(t.x1-e.x1),i=(t.x2-t.x1)*(t.y1-e.y1)-(t.y2-t.y1)*(t.x1-e.x1),r=(e.y2-e.y1)*(t.x2-t.x1)-(e.x2-e.x1)*(t.y2-t.y1);if(r){const e=n/r,a=i/r;return 0<=e&&e<=1&&0<=a&&a<=1?new Lv(wv.POINT,t.x1+e*(t.x2-t.x1),t.y1+e*(t.y2-t.y1)):new Lv(wv.NONE)}return new Lv(0===n||0===i?wv.COINCIDENT:wv.PARALLEL)}function Dv(t,e){const n=(e.x2-e.x1)*(t.y1-e.y1)-(e.y2-e.y1)*(t.x1-e.x1),i=(t.x2-t.x1)*(t.y1-e.y1)-(t.y2-t.y1)*(t.x1-e.x1),r=(e.y2-e.y1)*(t.x2-t.x1)-(e.x2-e.x1)*(t.y2-t.y1);if(r){const t=n/r,e=i/r;if(0<=t&&t<=1&&0<=e&&e<=1)return t}return Number.POSITIVE_INFINITY}function kv(t,e,n){const i=new Set;return t.width<=0?(i.add(Tv.LEFT),i.add(Tv.RIGHT)):et.x+t.width&&i.add(Tv.RIGHT),t.height<=0?(i.add(Tv.TOP),i.add(Tv.BOTTOM)):nt.y+t.height&&i.add(Tv.BOTTOM),i}function Iv(t,e){let n=e.x1,i=e.y1;const r=e.x2,a=e.y2,o=Array.from(kv(t,r,a));if(0===o.length)return!0;let s=kv(t,n,i);for(;0!==s.size;){for(const t of o)if(s.has(t))return!1;if(s.has(Tv.RIGHT)||s.has(Tv.LEFT)){let e=t.x;s.has(Tv.RIGHT)&&(e+=t.width),i+=(e-n)*(a-i)/(r-n),n=e}else{let e=t.y;s.has(Tv.BOTTOM)&&(e+=t.height),n+=(e-i)*(r-n)/(a-i),i=e}s=kv(t,n,i)}return!0}function Bv(t,e){let n=Number.POSITIVE_INFINITY,i=0;function r(t,r,a,o){let s=Dv(e,new Pv(t,r,a,o));s=Math.abs(s-.5),s>=0&&s<=1&&(i++,s1?n:(r(t.x,t.y2,t.x2,t.y2),i>1?n:(r(t.x2,t.y,t.x2,t.y2),0===i?-1:n))}function Fv(t,e){let n=0;const i=Rv(t,new Pv(e.x,e.y,e.x2,e.y));n+=i.state===wv.POINT?1:0;const r=Rv(t,new Pv(e.x,e.y,e.x,e.y2));n+=r.state===wv.POINT?1:0;const a=Rv(t,new Pv(e.x,e.y2,e.x2,e.y2));n+=a.state===wv.POINT?1:0;const o=Rv(t,new Pv(e.x2,e.y,e.x2,e.y2));return n+=o.state===wv.POINT?1:0,{top:i,left:r,bottom:a,right:o,count:n}}!function(t){t[t.LEFT=0]="LEFT",t[t.TOP=1]="TOP",t[t.RIGHT=2]="RIGHT",t[t.BOTTOM=3]="BOTTOM"}(Tv||(Tv={}));class zv{constructor(t,e,n,i){this.x=t,this.y=e,this.width=n,this.height=i}get x2(){return this.x+this.width}get y2(){return this.y+this.height}get cx(){return this.x+this.width/2}get cy(){return this.y+this.height/2}get radius(){return Math.max(this.width,this.height)/2}static from(t){return new zv(t.x,t.y,t.width,t.height)}equals(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height}clone(){return new zv(this.x,this.y,this.width,this.height)}add(t){const e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.x2,t.x+t.width),r=Math.max(this.y2,t.y+t.height);this.x=e,this.y=n,this.width=i-e,this.height=r-n}addPoint(t){const e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.x2,t.x),r=Math.max(this.y2,t.y);this.x=e,this.y=n,this.width=i-e,this.height=r-n}toString(){return`Rectangle[x=${this.x}, y=${this.y}, w=${this.width}, h=${this.height}]`}draw(t){t.rect(this.x,this.y,this.width,this.height)}containsPt(t,e){return t>=this.x&&t<=this.x2&&e>=this.y&&e<=this.y2}get area(){return this.width*this.height}intersects(t){return!(this.area<=0||t.width<=0||t.height<=0)&&(t.x+t.width>this.x&&t.y+t.height>this.y&&t.x=this.width?this.width-1:t}boundY(t){return t=this.height?this.height-1:t}scaleX(t){return this.boundX(Math.floor((t-this.pixelX)/this.pixelGroup))}scaleY(t){return this.boundY(Math.floor((t-this.pixelY)/this.pixelGroup))}scale(t){const e=this.scaleX(t.x),n=this.scaleY(t.y),i=this.boundX(Math.ceil((t.x+t.width-this.pixelX)/this.pixelGroup)),r=this.boundY(Math.ceil((t.y+t.height-this.pixelY)/this.pixelGroup));return new zv(e,n,i-e,r-n)}invertScaleX(t){return Math.round(t*this.pixelGroup+this.pixelX)}invertScaleY(t){return Math.round(t*this.pixelGroup+this.pixelY)}addPadding(t,e){const n=Math.ceil(e/this.pixelGroup),i=this.boundX(t.x-n),r=this.boundY(t.y-n),a=this.boundX(t.x2+n),o=this.boundY(t.y2+n);return new zv(i,r,a-i,o-r)}get(t,e){return t<0||e<0||t>=this.width||e>=this.height?Number.NaN:this.area[t+e*this.width]}inc(t,e,n){t<0||e<0||t>=this.width||e>=this.height||(this.area[t+e*this.width]+=n)}set(t,e,n){t<0||e<0||t>=this.width||e>=this.height||(this.area[t+e*this.width]=n)}incArea(t,e){if(t.width<=0||t.height<=0||0===e)return;const n=this.width,i=t.width,r=Math.max(0,t.i),a=Math.max(0,t.j),o=Math.min(t.i+t.width,n),s=Math.min(t.j+t.height,this.height);if(!(s<=0||o<=0||r>=n||s>=this.height))for(let l=a;lMath.min(t,e)),Number.POSITIVE_INFINITY),i=this.area.reduce(((t,e)=>Math.max(t,e)),Number.NEGATIVE_INFINITY),r=t=>(t-n)/(i-n);t.scale(this.pixelGroup,this.pixelGroup);for(let e=0;ee?"black":"white",t.fillRect(n,i,1,1)}t.restore()}}}function Uv(t,e){const n=t=>({x:t.x-e,y:t.y-e,width:t.width+2*e,height:t.height+2*e});return Array.isArray(t)?t.map(n):n(t)}function Hv(t,e,n){return Vv(Object.assign(Nv(t),{distSquare:(e,n)=>Cv(t.x1,t.y1,t.x2,t.y2,e,n)}),e,n)}function Vv(t,e,n){const i=Uv(t,n),r=e.scale(i),a=e.createSub(r,i);return function(t,e,n,i){const r=n*n;for(let a=0;at.distSquare(e,n))),a}function Zv(t,e){return{x:t,y:e}}function Wv(t,e,n,i){if(0===t.length)return[];const r=function(t){if(t.length<2)return t;let e=0,n=0;return t.forEach((t=>{e+=t.cx,n+=t.cy})),e/=t.length,n/=t.length,t.map((t=>{const i=e-t.cx,r=n-t.cy;return[t,i*i+r*r]})).sort(((t,e)=>t[1]-e[1])).map((t=>t[0]))}(t);return r.map(((t,a)=>{const o=r.slice(0,a);return function(t,e,n,i,r){const a=Zv(e.cx,e.cy),o=function(t,e,n){let i=Number.POSITIVE_INFINITY;return e.reduce(((e,r)=>{const a=Av(t.x,t.y,r.cx,r.cy);if(a>i)return e;const o=new Pv(t.x,t.y,r.cx,r.cy),s=function(t,e){return t.reduce(((t,n)=>Iv(n,e)&&function(t,e){function n(t,n,i,r){let a=Dv(e,new Pv(t,n,i,r));return a=Math.abs(a-.5),a>=0&&a<=1?1:0}let i=n(t.x,t.y,t.x2,t.y);return i+=n(t.x,t.y,t.x,t.y2),i>1||(i+=n(t.x,t.y2,t.x2,t.y2),i>1||(i+=n(t.x2,t.y,t.x2,t.y2),i>0))}(n,e)?t+1:t),0)}(n,o);return a*(s+1)*(s+1)0;){const t=a.pop(),n=qv(e,t),s=n?Fv(t,n):null;if(!n||!s||2!==s.count){o||r.push(t);continue}let l=i,u=$v(n,l,s,!0),c=Yv(u,a)||Yv(u,r),h=Xv(u,e);for(;!c&&h&&l>=1;)l/=1.5,u=$v(n,l,s,!0),c=Yv(u,a)||Yv(u,r),h=Xv(u,e);if(!u||c||h||(a.push(new Pv(t.x1,t.y1,u.x,u.y)),a.push(new Pv(u.x,u.y,t.x2,t.y2)),o=!0),o)continue;l=i,u=$v(n,l,s,!1);let d=Yv(u,a)||Yv(u,r);for(h=Xv(u,e);!d&&h&&l>=1;)l/=1.5,u=$v(n,l,s,!1),d=Yv(u,a)||Yv(u,r),h=Xv(u,e);u&&!d&&(a.push(new Pv(t.x1,t.y1,u.x,u.y)),a.push(new Pv(u.x,u.y,t.x2,t.y2)),o=!0),o||r.push(t)}for(;a.length>0;)r.push(a.pop());return r}(new Pv(a.x,a.y,o.cx,o.cy),t,i,r);return function(t,e){const n=[];for(;t.length>0;){const i=t.pop();if(0===t.length){n.push(i);break}const r=t.pop(),a=new Pv(i.x1,i.y1,r.x2,r.y2);qv(e,a)?(n.push(i),t.push(r)):t.push(a)}return n}(s,t)}(e,t,o,n,i)})).flat()}function Xv(t,e){return e.some((e=>e.containsPt(t.x,t.y)))}function Yv(t,e){return e.some((e=>!!Ov(e.x1,e.y1,t.x,t.y,.001)||!!Ov(e.x2,e.y2,t.x,t.y,.001)))}function qv(t,e){let n=Number.POSITIVE_INFINITY,i=null;for(const r of t){if(!Iv(r,e))continue;const t=Bv(r,e);t>=0&&ts.y?Zv(t.x-e,t.y-e):Zv(t.x2+e,t.y-e):a.yo.x?Zv(t.x-e,t.y-e):Zv(t.x-e,t.y2+e):r.xs.y?Zv(t.x2+e,t.y2+e):Zv(t.x-e,t.y2+e):a.yo.x?Zv(t.x2+e,t.y2+e):Zv(t.x2+e,t.y-e):r.xi)return!1}return!0}function Qv(t,e){switch(t){case-2:return(((3-e)*e-3)*e+1)/6;case-1:return((3*e-6)*e*e+4)/6;case 0:return(((-3*e+3)*e+3)*e+1)/6;case 1:return e*e*e/6;default:throw new Error("unknown error")}}class Jv{constructor(t=[],e=!0){this.points=t,this.closed=e}get(t){const e=t,n=this.points.length;return t<0?this.closed?this.get(t+n):this.points[0]:t>=n?this.closed?this.get(t-n):this.points[n-1]:this.points[e]}get length(){return this.points.length}toString(t=1/0){const e=this.points;if(0===e.length)return"";const n="function"==typeof t?t:function(t){if(!Number.isFinite(t))return t=>t;if(0===t)return Math.round;const e=Math.pow(10,t);return t=>Math.round(t*e)/e}(t);let i="M";for(const t of e)i+=`${n(t.x)},${n(t.y)} L`;return i=i.slice(0,-1),this.closed&&(i+=" Z"),i}draw(t){const e=this.points;if(0!==e.length){t.beginPath(),t.moveTo(e[0].x,e[0].y);for(const n of e)t.lineTo(n.x,n.y);this.closed&&t.closePath()}}sample(t){return function(t=8){return e=>{let n=t,i=e.length;if(n>1)for(i=Math.floor(e.length/n);i<3&&n>1;)n-=1,i=Math.floor(e.length/n);const r=[];for(let t=0,a=0;a{if(t<0||e.length<3)return e;const n=[];let i=0;const r=t*t;for(;i{if(n.length<3)return n;const i=[],r=n.closed,a=n.length+3-1+(r?0:2);i.push(e(n,2-(r?0:2),0));for(let o=2-(r?0:2);oe.containsPt(t.cx,t.cy)&&this.withinArea(t.cx,t.cy)))}withinArea(t,e){if(0===this.length)return!1;let n=0;const i=this.points[0],r=new Pv(i.x,i.y,i.x,i.y);for(let i=1;ie?r+a:r}function a(t,e){let n=0;return n=r(t,e,n,1),n=r(t+1,e,n,2),n=r(t,e+1,n,4),n=r(t+1,e+1,n,8),Number.isNaN(n)?-1:n}let o=1;function s(e,n){let r=e,s=n,l=t.invertScaleX(r),u=t.invertScaleY(s);for(let e=0;ery(e.raw,t)));return!(e<0)&&(this.members.splice(e,1),this.dirty.add(ay.MEMBERS),!0)}removeNonMember(t){const e=this.nonMembers.findIndex((e=>ry(e.raw,t)));return!(e<0)&&(this.nonMembers.splice(e,1),this.dirty.add(ay.NON_MEMBERS),!0)}removeEdge(t){const e=this.edges.findIndex((e=>e.obj.equals(t)));return!(e<0)&&(this.edges.splice(e,1),this.dirty.add(ay.NON_MEMBERS),!0)}pushNonMember(...t){if(0!==t.length){this.dirty.add(ay.NON_MEMBERS);for(const e of t)this.nonMembers.push({raw:e,obj:iy(e)?Gv.from(e):zv.from(e),area:null})}}pushEdge(...t){if(0!==t.length){this.dirty.add(ay.EDGES);for(const e of t)this.edges.push({raw:e,obj:Pv.from(e),area:null})}}update(){const t=this.dirty.has(ay.MEMBERS),e=this.dirty.has(ay.NON_MEMBERS);let n=this.dirty.has(ay.EDGES);this.dirty.clear();const i=this.members.map((t=>t.obj));if(this.o.virtualEdges&&(t||e)){const t=Wv(i,this.nonMembers.map((t=>t.obj)),this.o.maxRoutingIterations,this.o.morphBuffer),e=new Map(this.virtualEdges.map((t=>[t.obj.toString(),t.area])));this.virtualEdges=t.map((t=>{var n;return{raw:t,obj:t,area:null!==(n=e.get(t.toString()))&&void 0!==n?n:null}})),n=!0}let r=!1;if(t||n){const t=function(t,e){if(0===t.length)return new zv(0,0,0,0);const n=zv.from(t[0]);for(const e of t)n.add(e);for(const t of e)n.add(Nv(t));return n}(i,this.virtualEdges.concat(this.edges).map((t=>t.obj))),e=Math.max(this.o.edgeR1,this.o.nodeR1)+this.o.morphBuffer,n=zv.from(Uv(t,e));n.equals(this.activeRegion)||(r=!0,this.activeRegion=n)}if(r){const t=Math.ceil(this.activeRegion.width/this.o.pixelGroup),e=Math.ceil(this.activeRegion.height/this.o.pixelGroup);this.activeRegion.x!==this.potentialArea.pixelX||this.activeRegion.y!==this.potentialArea.pixelY?(this.potentialArea=jv.fromPixelRegion(this.activeRegion,this.o.pixelGroup),this.members.forEach((t=>t.area=null)),this.nonMembers.forEach((t=>t.area=null)),this.edges.forEach((t=>t.area=null)),this.virtualEdges.forEach((t=>t.area=null))):t===this.potentialArea.width&&e===this.potentialArea.height||(this.potentialArea=jv.fromPixelRegion(this.activeRegion,this.o.pixelGroup))}const a=new Map,o=t=>{if(t.area){const e=`${t.obj.width}x${t.obj.height}x${t.obj instanceof zv?"R":"C"}`;a.set(e,t.area)}},s=t=>{if(t.area)return;const e=`${t.obj.width}x${t.obj.height}x${t.obj instanceof zv?"R":"C"}`;if(a.has(e)){const n=a.get(e);return void(t.area=this.potentialArea.copy(n,{x:t.obj.x-this.o.nodeR1,y:t.obj.y-this.o.nodeR1}))}const n=t.obj instanceof zv?function(t,e,n){const i=e.scale(t),r=e.addPadding(i,n),a=e.createSub(r,{x:t.x-n,y:t.y-n}),o=i.x-r.x,s=i.y-r.y,l=r.x2-i.x2,u=r.y2-i.y2,c=r.width-o-l,h=r.height-s-u,d=n*n;a.fillArea({x:o,y:s,width:c+1,height:h+1},d);const f=[0],p=Math.max(s,o,l,u);{const r=e.invertScaleX(i.x+i.width/2);for(let a=1;a{this.activeRegion.intersects(t.obj)?s(t):t.area=null})),this.edges.forEach((t=>{t.area||(t.area=Hv(t.obj,this.potentialArea,this.o.edgeR1))})),this.virtualEdges.forEach((t=>{t.area||(t.area=Hv(t.obj,this.potentialArea,this.o.edgeR1))}))}drawMembers(t){for(const e of this.members)e.obj.draw(t)}drawNonMembers(t){for(const e of this.nonMembers)e.obj.draw(t)}drawEdges(t){for(const e of this.edges)e.obj.draw(t)}drawPotentialArea(t,e=!0){this.potentialArea.draw(t,e)}compute(){if(0===this.members.length)return new Jv([]);this.dirty.size>0&&this.update();const{o:t,potentialArea:e}=this,n=this.members.map((t=>t.area)),i=this.virtualEdges.concat(this.edges).map((t=>t.area)),r=this.nonMembers.filter((t=>null!=t.area)).map((t=>t.area)),a=this.members.map((t=>t.obj));return function(t,e,n,i,r,a={}){const o=Object.assign({},ny,a);let s=o.threshold,l=o.memberInfluenceFactor,u=o.edgeInfluenceFactor,c=o.nonMemberInfluenceFactor;const h=(o.nodeR0-o.nodeR1)*(o.nodeR0-o.nodeR1),d=(o.edgeR0-o.edgeR1)*(o.edgeR0-o.edgeR1);for(let a=0;a0))break;c*=.8}}return new Jv([])}(e,n,i,r,(t=>t.containsElements(a)),t)}}var sy=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const{style:t,bubbleSetOptions:e}=this.parseOptions();ec(this.bubbleSetOptions,e)||this.init(),this.bubbleSetOptions=Object.assign({},e);const n=Object.assign(Object.assign({},t),{d:this.getPath()});this.shape?this.shape.update(n):(this.shape=new Cf({style:n}),this.context.canvas.appendChild(this.shape))},this.updateBubbleSetsPath=t=>{if(!this.shape)return;const e=Dh(t.data);[...this.options.members,...this.options.avoidMembers].includes(e)&&this.shape.update(Object.assign(Object.assign({},this.parseOptions().style),{d:this.getPath(e)}))},this.getPath=t=>{const{graph:e}=this.context,n=this.options.members,i=[...this.members.keys()],r=this.options.avoidMembers,a=[...this.avoidMembers.keys()];if(!t&&ec(n,i)&&ec(r,a))return this.path;const{enter:o=[],exit:s=[]}=Zh(i,n,(t=>t)),{enter:l=[],exit:u=[]}=Zh(a,r,(t=>t));t&&(s.push(t),o.push(t));const c=(t,n,i)=>{t.forEach((t=>{const r=i?this.members:this.avoidMembers,a=i?"pushMember":"pushNonMember",o=i?"removeMember":"removeNonMember";if(n){let n;"edge"===e.getElementType(t)?([n]=cy(e,t),this.bubbleSets.pushEdge(n)):([n]=uy(e,t),this.bubbleSets[a](n)),r.set(t,n)}else{const n=r.get(t);n&&("edge"===e.getElementType(t)?this.bubbleSets.removeEdge(n):this.bubbleSets[o](n),r.delete(t))}}))};c(s,!1,!0),c(o,!0,!0),c(u,!1,!1),c(l,!0,!1);const h=this.bubbleSets.compute().sample(8).simplify(0).bSplines().simplify(0);return this.path=Sf(h.points.map(bd)),this.path},this.bindEvents(),this.bubbleSets=new oy(this.options)}bindEvents(){this.context.graph.on(hc.AFTER_RENDER,this.drawBubbleSets),this.context.graph.on(hc.AFTER_ELEMENT_UPDATE,this.updateBubbleSetsPath)}init(){this.bubbleSets=new oy(this.options),this.members=new Map,this.avoidMembers=new Map}parseOptions(){const t=this.options,{type:e,key:n,members:i,avoidMembers:r}=t,a=sy(t,["type","key","members","avoidMembers"]),o=Object.keys(a).reduce(((t,e)=>(e in ny?t.bubbleSetOptions[e]=a[e]:t.style[e]=a[e],t)),{style:{},bubbleSetOptions:{}});return Object.assign({type:e,key:n,members:i,avoidMembers:r},o)}addMember(t){const e=Array.isArray(t)?t:[t];e.some((t=>this.options.avoidMembers.includes(t)))&&(this.options.avoidMembers=this.options.avoidMembers.filter((t=>!e.includes(t)))),this.options.members=[...new Set([...this.options.members,...e])],this.drawBubbleSets()}removeMember(t){const e=Array.isArray(t)?t:[t];this.options.members=this.options.members.filter((t=>!e.includes(t))),this.drawBubbleSets()}updateMember(t){this.options.members=(0,en.Z)(t)?t(this.options.members):t,this.drawBubbleSets()}getMember(){return this.options.members}addAvoidMember(t){const e=Array.isArray(t)?t:[t];e.some((t=>this.options.members.includes(t)))&&(this.options.members=this.options.members.filter((t=>!e.includes(t)))),this.options.avoidMembers=[...new Set([...this.options.avoidMembers,...e])],this.drawBubbleSets()}removeAvoidMember(t){const e=Array.isArray(t)?t:[t];this.options.avoidMembers.some((t=>e.includes(t)))&&(this.options.avoidMembers=this.options.avoidMembers.filter((t=>!e.includes(t))),this.drawBubbleSets())}updateAvoidMember(t){this.options.avoidMembers=Array.isArray(t)?t:[t],this.drawBubbleSets()}getAvoidMember(){return this.options.avoidMembers}destroy(){this.context.graph.off(hc.AFTER_RENDER,this.drawBubbleSets),this.context.graph.off(hc.AFTER_ELEMENT_UPDATE,this.updateBubbleSetsPath),this.shape.destroy(),super.destroy()}}ly.defaultOptions=Object.assign({members:[],avoidMembers:[],fill:"lightblue",fillOpacity:.2,stroke:"blue",strokeOpacity:.2},ny);const uy=(t,e)=>(Array.isArray(e)?e:[e]).map((e=>{const n=t.getElementRenderBounds(e);return new zv(n.min[0],n.min[1],Vc(n),Zc(n))})),cy=(t,e)=>(Array.isArray(e)?e:[e]).map((e=>{const n=t.getEdgeData(e),i=t.getElementPosition(n.source),r=t.getElementPosition(n.target);return Pv.from({x1:i[0],y1:i[1],x2:r[0],y2:r[1]})}));var hy=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};class dy extends bv{constructor(t,e){super(t,Object.assign({},dy.defaultOptions,e)),this.targetElement=null,this.onTriggerEvent=t=>{var e;null===(e=t.preventDefault)||void 0===e||e.call(t),this.show(t)},this.onMenuItemClick=t=>{const{onClick:e,trigger:n}=this.options;if(t.target instanceof HTMLElement&&t.target.className.includes("g6-contextmenu-li")){const n=t.target.getAttribute("value");null==e||e(n,t.target,this.targetElement),this.hide()}"click"!==n&&this.hide()},this.initElement(),this.update(e)}initElement(){this.$element=_v("contextmenu",!1,{zIndex:"99"});const{className:t}=this.options;t&&this.$element.classList.add(t);this.context.canvas.getContainer().appendChild(this.$element),Ev("g6-contextmenu-css","style",{},"\n .g6-contextmenu {\n font-size: 12px;\n background-color: rgba(255, 255, 255, 0.96);\n border-radius: 4px;\n overflow: hidden;\n box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 12px 0px;\n transition: visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1) 0s, left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s;\n }\n\n .g6-contextmenu-ul {\n max-width: 256px;\n min-width: 96px;\n list-style: none;\n padding: 0;\n margin: 0;\n }\n\n .g6-contextmenu-li {\n padding: 8px 12px;\n cursor: pointer;\n user-select: none;\n }\n\n .g6-contextmenu-li:hover {\n background-color: #f5f5f5;\n cursor: pointer;\n }\n",document.head)}show(t){return hy(this,void 0,void 0,(function*(){const{enable:e,offset:n}=this.options;if("function"==typeof e&&!e(t)||!e)return void this.hide();const i=yield this.getDOMContent(t);i instanceof HTMLElement?(this.$element.innerHTML="",this.$element.appendChild(i)):this.$element.innerHTML=i;const r=this.context.graph.getCanvas().getContainer().getBoundingClientRect();this.$element.style.left=`${t.client.x-r.left+n[0]}px`,this.$element.style.top=`${t.client.y-r.top+n[1]}px`,this.$element.style.display="block",this.targetElement=t.target}))}hide(){this.$element.style.display="none",this.targetElement=null}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){this.unbindEvents(),super.destroy(),this.$element.remove()}getDOMContent(t){return hy(this,void 0,void 0,(function*(){const{getContent:e,getItems:n}=this.options;return n?`\n
    \n ${(yield n(t)).map((t=>`
  • ${t.name}
  • `)).join("")}\n
\n `:yield e(t)}))}bindEvents(){const{graph:t}=this.context,{trigger:e}=this.options;t.on(`canvas:${e}`,this.onTriggerEvent),t.on(`node:${e}`,this.onTriggerEvent),t.on(`edge:${e}`,this.onTriggerEvent),t.on(`combo:${e}`,this.onTriggerEvent),document.addEventListener("click",this.onMenuItemClick)}unbindEvents(){const{graph:t}=this.context,{trigger:e}=this.options;t.off(`canvas:${e}`,this.onTriggerEvent),t.off(`node:${e}`,this.onTriggerEvent),t.off(`edge:${e}`,this.onTriggerEvent),t.off(`combo:${e}`,this.onTriggerEvent),document.removeEventListener("click",this.onMenuItemClick)}}dy.defaultOptions={trigger:"contextmenu",offset:[4,4],loadingContent:'
Loading...
',getContent:()=>"It is a empty context menu.",enable:()=>!0};class fy extends bv{constructor(t,e){super(t,Object.assign({},fy.defaultOptions,e)),this.edgeBundles={},this.edgePoints={},this.onBundle=()=>{const{model:t,element:e}=this.context,n=t.getEdgeData();this.divideEdges(this.options.divisions);const{cycles:i,iterRate:r,divRate:a}=this.options;let{lambda:o,divisions:s,iterations:l}=this.options;for(let t=0;t{var n;if(e.source===e.target)return;const i=Dh(e);t[i]=this.getEdgeForces(e,s,o);for(let e=0;e{const n=Dh(t),i=e.getElement(n);null==i||i.update({d:Pg(this.edgePoints[n])})}))},this.bindEvents()}get nodeMap(){const t=this.context.model.getNodeData();return Object.fromEntries(t.map((t=>[Dh(t),cd(md(t))])))}divideEdges(t){this.context.model.getEdgeData().forEach((e=>{var n;const i=Dh(e);(n=this.edgePoints)[i]||(n[i]=[]);const r=this.nodeMap[e.source],a=this.nodeMap[e.target];if(1===t)this.edgePoints[i].push(r),this.edgePoints[i].push(id(td(r,a),2)),this.edgePoints[i].push(a);else{const e=(0===this.edgePoints[i].length?ad(r,a):by(this.edgePoints[i]))/(t+1);let n=e;const o=[r];for(let t=1;tn;){const t=n/s,i=td(r,nd(ed(a,r),t));o.push(i),s-=n,n=e}n-=s}o.push(a),this.edgePoints[i]=o}}))}getVectorPosition(t){const e=this.nodeMap[t.source],n=this.nodeMap[t.target],[i,r]=ed(n,e);return{source:e,target:n,vx:i,vy:r,length:ad(e,n)}}measureEdgeCompatibility(t,e){const n=this.getVectorPosition(t),i=this.getVectorPosition(e);return py(n,i)*gy(n,i)*my(n,i)*xy(n,i)}getEdgeBundles(){const t={},e=this.options.bundleThreshold,n=this.context.model.getEdgeData();return n.forEach(((i,r)=>{n.forEach(((n,a)=>{var o,s;if(a<=r)return;this.measureEdgeCompatibility(i,n)>=e&&(t[o=Dh(i)]||(t[o]=[]),t[Dh(i)].push(n),t[s=Dh(n)]||(t[s]=[]),t[Dh(n)].push(i))}))})),t}getSpringForce(t,e){const{pre:n,cur:i,next:r}=t;return nd(ed(td(n,r),nd(i,2)),e)}getElectrostaticForce(t,e){vf(this.edgeBundles)&&(this.edgeBundles=this.getEdgeBundles());const n=this.edgeBundles[Dh(e)];let i=[0,0];return null==n||n.forEach((n=>{const r=this.edgePoints[Dh(n)][t],a=this.edgePoints[Dh(e)][t],o=ed(r,a),s=ad(r,a);i=td(i,nd(o,1/s))})),i}getEdgeForces(t,e,n){const i=this.nodeMap[t.source],r=this.nodeMap[t.target],a=this.options.K/(ad(i,r)*(e+1)),o=[[0,0]],s=Dh(t);for(let i=1;i{return Math.abs((n=[t.vx,t.vy],i=[e.vx,e.vy],n.reduce(((t,e,n)=>t+e*i[n]),0)/(t.length*e.length)));var n,i},gy=(t,e)=>{const n=(t.length+e.length)/2;return 2/(n/Math.min(t.length,e.length)+Math.max(t.length,e.length)/n)},my=(t,e)=>{const n=(t.length+e.length)/2;return n/(n+ad(id(td(t.source,t.target),2),id(td(e.source,e.target),2)))},vy=(t,e)=>{if(e.source[0]===e.target[0])return[e.source[0],t[1]];if(e.source[1]===e.target[1])return[t[0],e.source[1]];const n=(e.source[1]-e.target[1])/(e.source[0]-e.target[0]),i=(n*n*e.source[0]+n*(t[1]-e.source[1])+t[0])/(n*n+1);return[i,n*(i-e.source[0])+e.source[1]]},yy=(t,e)=>{const n=vy(e.source,t),i=vy(e.target,t),r=id(td(n,i),2),a=id(td(t.source,t.target),2);return 0===ad(n,i)?0:Math.max(0,1-2*ad(a,r)/ad(n,i))},xy=(t,e)=>Math.min(yy(t,e),yy(e,t)),by=t=>{let e=0;for(let n=1;n{if("drag"===this.options.trigger&&this.isLensOn)return;const e=bd(t.canvas);this.renderLens(e),this.renderFocusElements()},this.renderLens=t=>{const e=Object.assign({},_y,this.options.style);this.isLensOn||(this.lens=new Bf({style:e}),this.canvas.appendChild(this.lens)),Object.assign(e,_d(t),{size:2*this.r}),this.lens.update(e)},this.getFilterData=()=>{const{filter:t}=this.options,{model:e}=this.context,n=e.getData();if(!t)return n;const{nodes:i,edges:r,combos:a}=n;return{nodes:i.filter((e=>t(Dh(e),"node"))),edges:r.filter((e=>t(Dh(e),"edge"))),combos:a.filter((e=>t(Dh(e),"combo")))}},this.getFocusElements=t=>{const{nodes:e,edges:n}=this.getFilterData(),i=e.filter((e=>ad(md(e),t)Dh(t)));return{nodes:i,edges:n.filter((t=>{const{source:e,target:n}=t,i=r.includes(e),a=r.includes(n);switch(this.options.nodeType){case"both":return i&&a;case"either":return i!==a;case"source":return i&&!a;case"target":return!i&&a;default:return!1}}))}},this.renderFocusElements=()=>{const{element:t,graph:e}=this.context;if(!this.isLensOn)return;const n=this.lens.getCenter(),{nodes:i,edges:r}=this.getFocusElements(n),a=new Set,o=n=>{const i=Dh(n);a.add(i);const r=t.getElement(i);if(!r)return;const o=this.shapes.get(i)||r.cloneNode();o.setPosition(r.getPosition()),o.id=r.id,this.shapes.has(i)?Object.entries(r.attributes).forEach((([t,e])=>{o.style[t]!==e&&(o.style[t]=e)})):(this.canvas.appendChild(o),this.shapes.set(i,o));const s=e.getElementType(i),l=this.getElementStyle(s,n);o.update(l)};i.forEach(o),r.forEach(o),this.shapes.forEach(((t,e)=>{a.has(e)||(t.destroy(),this.shapes.delete(e))}))},this.scaleRByWheel=t=>{var e;this.options.preventDefault&&t.preventDefault();const{clientX:n,clientY:i,deltaX:r,deltaY:a}=t,{graph:o,canvas:s}=this.context,l=o.getCanvasByClient([n,i]),u=null===(e=this.lens)||void 0===e?void 0:e.getCenter();if(!this.isLensOn||ad(l,u)>this.r)return;const{maxR:c,minR:h}=this.options,d=r+a>0?1/.95:.95,f=Math.min(...s.getSize())/2;this.r=Math.max(h||0,Math.min(c||f,this.r*d)),this.renderLens(u),this.renderFocusElements()},this.isLensDragging=!1,this.onDragStart=t=>{var e;const n=bd(t.canvas),i=null===(e=this.lens)||void 0===e?void 0:e.getCenter();!this.isLensOn||ad(n,i)>this.r||(this.isLensDragging=!0)},this.onDrag=t=>{if(!this.isLensDragging)return;const e=bd(t.canvas);this.renderLens(e),this.renderFocusElements()},this.onDragEnd=()=>{this.isLensDragging=!1},this.bindEvents()}get canvas(){return this.context.canvas.getLayer("transient")}get isLensOn(){return this.lens&&!this.lens.destroyed}getElementStyle(t,e){const n="node"===t?this.options.nodeStyle:this.options.edgeStyle;return"function"==typeof n?n(e):n}get graphDom(){return this.context.graph.getCanvas().getContextService().getDomElement()}bindEvents(){var t;const{graph:e}=this.context,{trigger:n,scaleRBy:i}=this.options,r=e.getCanvas().getLayer();["click","drag"].includes(n)&&r.addEventListener(lc.CLICK,this.onEdgeFilter),"pointermove"===n?r.addEventListener(lc.POINTER_MOVE,this.onEdgeFilter):"drag"===n&&(r.addEventListener(lc.DRAG_START,this.onDragStart),r.addEventListener(lc.DRAG,this.onDrag),r.addEventListener(lc.DRAG_END,this.onDragEnd)),"wheel"===i&&(null===(t=this.graphDom)||void 0===t||t.addEventListener(lc.WHEEL,this.scaleRByWheel,{passive:!1}))}unbindEvents(){var t;const{graph:e}=this.context,{trigger:n,scaleRBy:i}=this.options,r=e.getCanvas().getLayer();["click","drag"].includes(n)&&r.removeEventListener(lc.CLICK,this.onEdgeFilter),"pointermove"===n?r.removeEventListener(lc.POINTER_MOVE,this.onEdgeFilter):"drag"===n&&(r.removeEventListener(lc.DRAG_START,this.onDragStart),r.removeEventListener(lc.DRAG,this.onDrag),r.removeEventListener(lc.DRAG_END,this.onDragEnd)),"wheel"===i&&(null===(t=this.graphDom)||void 0===t||t.removeEventListener(lc.WHEEL,this.scaleRByWheel))}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){this.unbindEvents(),this.isLensOn&&this.lens.destroy(),this.shapes.forEach(((t,e)=>{t.destroy(),this.shapes.delete(e)})),super.destroy()}}Ey.defaultOptions={trigger:"pointermove",r:60,nodeType:"both",filter:()=>!0,style:{lineWidth:2},nodeStyle:{label:!1},edgeStyle:{label:!0},scaleRBy:"wheel",preventDefault:!0};const wy={fill:"#ccc",fillOpacity:.1,lineWidth:2,stroke:"#000",strokeOpacity:.8,labelFontSize:12};class Ty extends bv{constructor(t,e){super(t,Object.assign({},Ty.defaultOptions,e)),this.r=this.options.r,this.d=this.options.d,this.onCreateFisheye=t=>{if("drag"===this.options.trigger&&this.isLensOn)return;const e=bd(t.canvas);this.onMagnify(e)},this.onMagnify=t=>{t.some(isNaN)||(this.renderLens(t),this.renderFocusElements())},this.renderLens=t=>{const e=Object.assign({},wy,this.options.style);this.isLensOn||(this.lens=new Bf({style:e}),this.canvas.appendChild(this.lens)),Object.assign(e,_d(t),{size:2*this.r,label:this.options.showDPercent,labelText:this.getDPercent()}),this.lens.update(e)},this.getDPercent=()=>{const{minD:t,maxD:e}=this.options;return`${Math.round((this.d-t)/(e-t)*100)}%`},this.prevMagnifiedStyleMap=new Map,this.prevOriginStyleMap=new Map,this.renderFocusElements=()=>{if(!this.isLensOn)return;const{graph:t}=this.context,e=this.lens.getCenter(),n=(this.d+1)*this.r,i=new Map,r=new Map;t.getNodeData().forEach((a=>{const o=md(a),s=ad(o,e);if(s>this.r)return;const l=n*s/(this.d*s+this.r),[u,c]=o,[h,d]=e,f=[h+l*((u-h)/s),d+l*((c-d)/s)],p=Dh(a),g=this.getNodeStyle(a),m=(0,rg.Z)(t.getElementRenderStyle(p),Object.keys(g));i.set(p,Object.assign(Object.assign({},_d(f)),g)),r.set(p,Object.assign(Object.assign({},_d(o)),m))})),this.updateStyle(i,r)},this.getNodeStyle=t=>{const{nodeStyle:e}=this.options;return"function"==typeof e?e(t):e},this.updateStyle=(t,e)=>{const{graph:n,element:i}=this.context,{enter:r,exit:a,keep:o}=Zh(Array.from(this.prevMagnifiedStyleMap.keys()),Array.from(t.keys()),(t=>t)),s=new Set,l=(t,e)=>{const r=i.getElement(t);null==r||r.update(e),n.getRelatedEdgesData(t).forEach((t=>{s.add(Dh(t))}))};[...r,...o].forEach((e=>{l(e,t.get(e))})),a.forEach((t=>{l(t,this.prevOriginStyleMap.get(t)),this.prevOriginStyleMap.delete(t)})),s.forEach((t=>{const e=i.getElement(t);null==e||e.update({})})),this.prevMagnifiedStyleMap=t,e.forEach(((t,e)=>{this.prevOriginStyleMap.has(e)||this.prevOriginStyleMap.set(e,t)}))},this.isWheelValid=t=>{if(this.options.preventDefault&&t.preventDefault(),!this.isLensOn)return!1;const{clientX:e,clientY:n}=t;return!(ad(this.context.graph.getCanvasByClient([e,n]),this.lens.getCenter())>this.r)},this.scaleR=t=>{const{maxR:e,minR:n}=this.options,i=t?1/.95:.95,r=Math.min(...this.context.canvas.getSize())/2;this.r=Math.max(n||0,Math.min(e||r,this.r*i))},this.scaleD=t=>{const{maxD:e,minD:n}=this.options,i=t?this.d+.1:this.d-.1;this.d=Math.max(n,Math.min(e,i))},this.scaleRByWheel=t=>{if(!this.isWheelValid(t))return;const{deltaX:e,deltaY:n}=t;this.scaleR(e+n>0);const i=this.lens.getCenter();this.onMagnify(i)},this.scaleDByWheel=t=>{if(!this.isWheelValid(t))return;const{deltaX:e,deltaY:n}=t;this.scaleD(e+n>0);const i=this.lens.getCenter();this.onMagnify(i)},this.isDragValid=t=>{if(this.options.preventDefault&&t.preventDefault(),!this.isLensOn)return!1;return!(ad(bd(t.canvas),this.lens.getCenter())>this.r)},this.isLensDragging=!1,this.onDragStart=t=>{this.isDragValid(t)&&(this.isLensDragging=!0)},this.onDrag=t=>{if(!this.isLensDragging)return;const e=bd(t.canvas);this.onMagnify(e)},this.onDragEnd=()=>{this.isLensDragging=!1},this.scaleRByDrag=t=>{if(!this.isLensDragging)return;const{dx:e,dy:n}=t;this.scaleR(e-n>0);const i=this.lens.getCenter();this.onMagnify(i)},this.scaleDByDrag=t=>{if(!this.isLensDragging)return;const{dx:e,dy:n}=t;this.scaleD(e-n>0);const i=this.lens.getCenter();this.onMagnify(i)},this.bindEvents()}get canvas(){return this.context.canvas.getLayer("transient")}get isLensOn(){return this.lens&&!this.lens.destroyed}get graphDom(){return this.context.graph.getCanvas().getContextService().getDomElement()}bindEvents(){var t;const{graph:e}=this.context,{trigger:n,scaleRBy:i,scaleDBy:r}=this.options,a=e.getCanvas().getLayer();if(["click","drag"].includes(n)&&a.addEventListener(lc.CLICK,this.onCreateFisheye),"pointermove"===n&&a.addEventListener(lc.POINTER_MOVE,this.onCreateFisheye),"drag"===n||"drag"===i||"drag"===r){a.addEventListener(lc.DRAG_START,this.onDragStart),a.addEventListener(lc.DRAG_END,this.onDragEnd);const t="drag"===n?this.onDrag:"drag"===i?this.scaleRByDrag:this.scaleDByDrag;a.addEventListener(lc.DRAG,t)}if("wheel"===i||"wheel"===r){const e="wheel"===i?this.scaleRByWheel:this.scaleDByWheel;null===(t=this.graphDom)||void 0===t||t.addEventListener(lc.WHEEL,e,{passive:!1})}}unbindEvents(){var t;const{graph:e}=this.context,{trigger:n,scaleRBy:i,scaleDBy:r}=this.options,a=e.getCanvas().getLayer();if(["click","drag"].includes(n)&&a.removeEventListener(lc.CLICK,this.onCreateFisheye),"pointermove"===n&&a.removeEventListener(lc.POINTER_MOVE,this.onCreateFisheye),"drag"===n||"drag"===i||"drag"===r){a.removeEventListener(lc.DRAG_START,this.onDragStart),a.removeEventListener(lc.DRAG_END,this.onDragEnd);const t="drag"===n?this.onDrag:"drag"===i?this.scaleRByDrag:this.scaleDByDrag;a.removeEventListener(lc.DRAG,t)}if("wheel"===i||"wheel"===r){const e="wheel"===i?this.scaleRByWheel:this.scaleDByWheel;null===(t=this.graphDom)||void 0===t||t.removeEventListener(lc.WHEEL,e)}}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){var t;this.unbindEvents(),this.isLensOn&&(null===(t=this.lens)||void 0===t||t.destroy()),this.prevMagnifiedStyleMap.clear(),this.prevOriginStyleMap.clear(),super.destroy()}}Ty.defaultOptions={trigger:"pointermove",r:120,d:1.5,maxD:5,minD:0,showDPercent:!0,style:{},nodeStyle:{label:!0},preventDefault:!0};class Sy extends bv{constructor(t,e){super(t,Object.assign({},Sy.defaultOptions,e)),this.$el=this.context.canvas.getContainer(),this.graphSize=[0,0],this.onFullscreenChange=()=>{var t,e,n,i;const r=!!document.fullscreenElement;this.options.autoFit&&this.setGraphSize(r),r?null===(e=(t=this.options).onEnter)||void 0===e||e.call(t):null===(i=(n=this.options).onExit)||void 0===i||i.call(n)},this.shortcut=new Rd(t.graph),this.bindEvents(),this.style=document.createElement("style"),document.head.appendChild(this.style),this.style.innerHTML="\n :not(:root):fullscreen::backdrop {\n background: transparent;\n }\n "}bindEvents(){this.unbindEvents(),this.shortcut.unbindAll();const{request:t=[],exit:e=[]}=this.options.trigger;this.shortcut.bind(t,this.request),this.shortcut.bind(e,this.exit);["webkitfullscreenchange","mozfullscreenchange","fullscreenchange","MSFullscreenChange"].forEach((t=>{document.addEventListener(t,this.onFullscreenChange,!1)}))}unbindEvents(){this.shortcut.unbindAll();["webkitfullscreenchange","mozfullscreenchange","fullscreenchange","MSFullscreenChange"].forEach((t=>{document.removeEventListener(t,this.onFullscreenChange,!1)}))}setGraphSize(t=!0){var e,n;let i,r;t?(i=(null===(e=globalThis.screen)||void 0===e?void 0:e.width)||0,r=(null===(n=globalThis.screen)||void 0===n?void 0:n.height)||0,this.graphSize=this.context.graph.getSize()):[i,r]=this.graphSize,this.context.graph.setSize(i,r),this.context.graph.render()}request(){!document.fullscreenElement&&(document.fullscreenEnabled||Reflect.get(document,"webkitFullscreenEnabled")||Reflect.get(document,"mozFullscreenEnabled")||Reflect.get(document,"msFullscreenEnabled"))&&this.$el.requestFullscreen().catch((t=>{bc.warn(`Error attempting to enable full-screen: ${t.message} (${t.name})`)}))}exit(){document.fullscreenElement&&document.exitFullscreen()}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){this.exit(),this.style.remove(),super.destroy()}}Sy.defaultOptions={trigger:{},autoFit:!0};class My extends bv{constructor(t,e){super(t,Object.assign({},My.defaultOptions,e)),this.$element=_v("grid-line",!0),this.offset=[0,0],this.onTransform=t=>{if(!this.options.follow)return;const{data:{translate:e}}=t;e&&this.updateOffset(e)};this.context.canvas.getContainer().prepend(this.$element),this.updateStyle(),this.bindEvents()}update(t){super.update(t),this.updateStyle()}bindEvents(){const{graph:t}=this.context;t.on(hc.AFTER_TRANSFORM,this.onTransform)}updateStyle(){const{size:t,stroke:e,lineWidth:n,border:i,borderLineWidth:r,borderStroke:a,borderStyle:o}=this.options;Object.assign(this.$element.style,{border:i?`${r}px ${o} ${a}`:"none",backgroundImage:`linear-gradient(${e} ${n}px, transparent ${n}px), linear-gradient(90deg, ${e} ${n}px, transparent ${n}px)`,backgroundSize:`${t}px ${t}px`})}updateOffset(t){var e,n;this.offset=(e=td(this.offset,t),n=this.options.size,e.map((t=>t%n))),this.$element.style.backgroundPosition=`${this.offset[0]}px ${this.offset[1]}px`}destroy(){this.context.graph.off(hc.AFTER_TRANSFORM,this.onTransform),this.$element.remove(),super.destroy()}}My.defaultOptions={border:!0,borderLineWidth:1,borderStroke:"#eee",borderStyle:"solid",lineWidth:1,size:20,stroke:"#eee"};var Cy=n(49336);function Ay(t){const e={Added:new Map,Updated:new Map,Removed:new Map};return t.forEach((t=>{const{type:n,value:i}=t,r=Dh(i);if("NodeAdded"===n||"EdgeAdded"===n||"ComboAdded"===n)e.Added.set(r,t);else if("NodeUpdated"===n||"EdgeUpdated"===n||"ComboUpdated"===n)if(e.Added.has(r))e.Added.set(r,{type:n.replace("Updated","Added"),value:i});else if(e.Updated.has(r)){const{original:t}=e.Updated.get(r);e.Updated.set(r,{type:n,value:i,original:t})}else e.Removed.has(r)||e.Updated.set(r,t);else"NodeRemoved"!==n&&"EdgeRemoved"!==n&&"ComboRemoved"!==n||(e.Added.has(r)?e.Added.delete(r):e.Updated.has(r)?(e.Updated.delete(r),e.Removed.set(r,t)):e.Removed.set(r,t))})),[...Array.from(e.Added.values()),...Array.from(e.Updated.values()),...Array.from(e.Removed.values())]}function Oy(t){const{NodeAdded:e=[],NodeUpdated:n=[],NodeRemoved:i=[],EdgeAdded:r=[],EdgeUpdated:a=[],EdgeRemoved:o=[],ComboAdded:s=[],ComboUpdated:l=[],ComboRemoved:u=[]}=Bc(t,(t=>t.type));return{add:{nodes:e,edges:r,combos:s},update:{nodes:n,edges:a,combos:l},remove:{nodes:i,edges:o,combos:u}}}function Ny(t,e){for(const n in t)(0,nn.Z)(t[n])&&!Array.isArray(t[n])&&null!==t[n]?(e[n]||(e[n]={}),Ny(t[n],e[n])):void 0===e[n]&&(e[n]=Tc(n))}function Py(t,e=!1,n){const i={animation:e,current:{add:{},update:{},remove:{}},original:{add:{},update:{},remove:{}}},{add:r,update:a,remove:o}=Oy(Ay(t));return["nodes","edges","combos"].forEach((t=>{a[t]&&a[t].forEach((e=>{var r,a;const o=Object.assign({},e.value);let s=Object.assign({},e.original);if(n){const t=n.graph.getElementType(Dh(e.original)),i="edge"===t?"stroke":"fill",r=n.element.getElementComputedStyle(t,e.original);s=Object.assign(Object.assign({},e.original),{style:Object.assign({[i]:r[i]},e.original.style)})}Ny(o,s),(r=i.current.update)[t]||(r[t]=[]),i.current.update[t].push(o),(a=i.original.update)[t]||(a[t]=[]),i.original.update[t].push(s)})),r[t]&&r[t].forEach((e=>{var n,r;const a=Object.assign({},e.value);(n=i.current.add)[t]||(n[t]=[]),i.current.add[t].push(a),(r=i.original.remove)[t]||(r[t]=[]),i.original.remove[t].push(a)})),o[t]&&o[t].forEach((e=>{var n,r;const a=Object.assign({},e.value);(n=i.current.remove)[t]||(n[t]=[]),i.current.remove[t].push(a),(r=i.original.add)[t]||(r[t]=[]),i.original.add[t].push(a)}))})),i}class Ly extends bv{constructor(t,e){super(t,Object.assign({},Ly.defaultOptions,e)),this.batchChanges=null,this.batchAnimation=!1,this.undoStack=[],this.redoStack=[],this.freezed=!1,this.executeCommand=(t,e=!0)=>{var n,i,r;this.freezed=!0,null===(i=(n=this.options).executeCommand)||void 0===i||i.call(n,t);const a=e?t.original:t.current;this.context.graph.addData(a.add),this.context.graph.updateData(a.update),this.context.graph.removeData(Ih(a.remove,!1)),null===(r=this.context.element)||void 0===r||r.draw({silence:!0,animation:t.animation}),this.freezed=!1},this.addCommand=t=>{var e;if(!this.freezed){if(t.type===hc.AFTER_DRAW){const{dataChanges:n=[],animation:i=!0}=t.data;if(null===(e=this.context.batch)||void 0===e?void 0:e.isBatching){if(!this.batchChanges)return;return this.batchChanges.push(n),void(this.batchAnimation&&(this.batchAnimation=i))}this.batchChanges=[n],this.batchAnimation=i}this.undoStackPush(Py(this.batchChanges.flat(),this.batchAnimation,this.context)),this.notify(dc.ADD,this.undoStack[this.undoStack.length-1])}},this.initBatchCommand=t=>{const{initiate:e}=t.data;if(this.batchAnimation=!1,e)this.batchChanges=[];else{this.undoStack.pop()||(this.batchChanges=null)}},this.emitter=new Cy.Z;const{graph:n}=this.context;n.on(hc.AFTER_DRAW,this.addCommand),n.on(hc.BATCH_START,this.initBatchCommand),n.on(hc.BATCH_END,this.addCommand)}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}undo(){var t,e,n,i;const r=this.undoStack.pop();if(r){this.executeCommand(r);if(!1===(null===(e=(t=this.options).beforeAddCommand)||void 0===e?void 0:e.call(t,r,!1)))return;this.redoStack.push(r),null===(i=(n=this.options).afterAddCommand)||void 0===i||i.call(n,r,!1),this.notify(dc.UNDO,r)}return this}redo(){const t=this.redoStack.pop();return t&&(this.executeCommand(t,!1),this.undoStackPush(t),this.notify(dc.REDO,t)),this}undoAndCancel(){const t=this.undoStack.pop();return t&&(this.executeCommand(t,!1),this.redoStack=[],this.notify(dc.CANCEL,t)),this}undoStackPush(t){var e,n,i,r;const{stackSize:a}=this.options;0!==a&&this.undoStack.length>=a&&this.undoStack.shift();!1!==(null===(n=(e=this.options).beforeAddCommand)||void 0===n?void 0:n.call(e,t,!0))&&(this.undoStack.push(t),null===(r=(i=this.options).afterAddCommand)||void 0===r||r.call(i,t,!0))}clear(){this.undoStack=[],this.redoStack=[],this.batchChanges=null,this.batchAnimation=!1,this.notify(dc.CLEAR,null)}notify(t,e){this.emitter.emit(t,{cmd:e}),this.emitter.emit(dc.CHANGE,{cmd:e})}on(t,e){this.emitter.on(t,e)}destroy(){const{graph:t}=this.context;t.off(hc.AFTER_DRAW,this.addCommand),t.off(hc.BATCH_START,this.initBatchCommand),t.off(hc.BATCH_END,this.addCommand),this.emitter.off(),super.destroy(),this.undoStack=[],this.redoStack=[]}}Ly.defaultOptions={stackSize:0};var Ry=n(76117),Dy=n.n(Ry);const ky=(t,e,n)=>{if("sharp"===n)return[["M",t[0]-e,t[1]-e],["L",t[0]+e,t[1]-e],["L",t[0]+e,t[1]+e],["L",t[0]-e,t[1]+e],["Z"]];const i=[e,e,0,0,0];return[["M",t[0],t[1]-e],["A",...i,t[0],t[1]+e],["A",...i,t[0],t[1]-e]]},Iy=(t,e,n)=>{const i=[e,e,0,0,0],r="sharp"===n?td(t[0],rd(sd(ed(t[0],t[1])),e)):t[0],a="sharp"===n?td(t[1],rd(sd(ed(t[1],t[0])),e)):t[1],o=rd(sd(ud(ed(r,a),!1)),e),s=rd(o,-1),l=td(r,o),u=td(a,o),c=td(a,s),h=td(r,s);return"sharp"===n?[["M",l[0],l[1]],["L",u[0],u[1]],["L",c[0],c[1]],["L",h[0],h[1]],["Z"]]:[["M",l[0],l[1]],["L",u[0],u[1]],["A",...i,c[0],c[1]],["L",h[0],h[1]],["A",...i,l[0],l[1]]]},By=(t,e)=>{const n=Nd(t).map(((n,i)=>{const r=(i-2+t.length)%t.length,a=(i-1+t.length)%t.length,o=(i+1)%t.length,s=t[r],l=t[a],u=t[o],c=ed(s,l),h=ed(l,n),d=ed(n,u),f=(t,e)=>ld(t,e,!0)rd(sd(ud(t,!1)),e),v=m(h);return[{p:cd(td(l,p?m(c):v)),concave:p&&l},{p:cd(td(n,g?m(d):v)),concave:g&&n}]})),i=[e,e,0,0,0],r=n.findIndex(((t,e)=>!(n[(e-1+n.length)%n.length][0].concave||n[(e-1+n.length)%n.length][1].concave||t[0].concave||t[0].concave||t[1].concave))),a=n.slice(r).concat(n.slice(0,r));let o=[];return a.flatMap(((t,e)=>{const r=[],s=a[n.length-1];return 0===e&&r.push(["M",...s[1].p]),t[0].concave?o.push(t[0].p,t[1].p):r.push(["A",...i,...t[0].p]),t[1].concave?o.unshift(t[1].p):r.push(["L",...t[1].p]),3===o.length&&(r.pop(),r.push(["C",...o.flat()]),o=[]),r}))},Fy=(t,e)=>{const n=Nd(t).map(((e,n)=>({p:e,v:sd(ed(t[(n+1)%t.length],e))})));return n.forEach(((i,r)=>{const a=r>0?r-1:t.length-1,o=n[a].v,s=sd(td(o,rd(i.v,ld(o,i.v,!0)t.p)))},zy=(t,e)=>{const n=t.map(((n,i)=>{const r=t[0===i?t.length-1:i-1],a=hd(rd(sd(ud(ed(r,n),!1)),e));return[td(r,a),td(n,a)]})),i=n.flat();return i.map(((t,e)=>{if(e%2==0)return null;return pd([i[(e-1)%i.length],i[e%i.length]],[i[(e+1)%i.length],i[(e+2)%i.length]],!0)})).filter(Boolean).map(((t,e)=>[0===e?"M":"L",t[0],t[1]])).concat([["Z"]])};var Gy=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{if(this.shape){const t=!ec(this.optionsCache,this.options);this.shape.update(this.getHullStyle(t))}else this.shape=new Cf({style:this.getHullStyle()}),this.context.canvas.appendChild(this.shape);this.optionsCache=Object.assign({},this.options)},this.updateHullPath=t=>{this.shape&&this.options.members.includes(Dh(t.data))&&this.shape.update({d:this.getHullPath(!0)})},this.getHullPath=(t=!1)=>{const{graph:e}=this.context,n=this.getMember();if(0===n.length)return"";const i=n.map((t=>e.getNodeData(t))),r=Dy()(i.map(md),this.options.concavity).slice(1).reverse(),a=r.flatMap((t=>i.filter((e=>ec(md(e),t))).map(Dh)));return ec(a,this.hullMemberIds)&&!t||(this.hullMemberIds=a,this.path=function(t,e,n){if(1===t.length)return ky(t[0],e,n);if(2===t.length)return Iy(t,e,n);switch(n){case"smooth":return Fy(t,e);case"sharp":return zy(t,e);default:return By(t,e)}}(r,this.getPadding(),this.options.corner)),this.path},this.bindEvents()}bindEvents(){this.context.graph.on(hc.AFTER_RENDER,this.drawHull),this.context.graph.on(hc.AFTER_ELEMENT_UPDATE,this.updateHullPath)}getHullStyle(t){const e=this.options,{members:n,padding:i,corner:r}=e,a=Gy(e,["members","padding","corner"]);return Object.assign(Object.assign({},a),{d:this.getHullPath(t)})}getPadding(){const{graph:t}=this.context,e=this.hullMemberIds.reduce(((e,n)=>{const{halfExtents:i}=t.getElementRenderBounds(n),r=Math.max(i[0],i[1]);return Math.max(e,r)}),0);return e+this.options.padding}addMember(t){const e=Array.isArray(t)?t:[t];this.options.members=[...new Set([...this.options.members,...e])],this.shape.update({d:this.getHullPath()})}removeMember(t){const e=Array.isArray(t)?t:[t];this.options.members=this.options.members.filter((t=>!e.includes(t))),e.some((t=>this.hullMemberIds.includes(t)))&&this.shape.update({d:this.getHullPath()})}updateMember(t){this.options.members=(0,en.Z)(t)?t(this.options.members):t,this.shape.update(this.getHullStyle(!0))}getMember(){return this.options.members}destroy(){this.context.graph.off(hc.AFTER_DRAW,this.drawHull),this.shape.destroy(),this.hullMemberIds=[],super.destroy()}}function Uy(t,e){e(t),t.children&&t.children.forEach((function(t){t&&Uy(t,e)}))}function Hy(t){Zy(t,!0)}function Vy(t){Zy(t,!1)}function Zy(t,e){var n=e?"visible":"hidden";Uy(t,(function(t){t.attr("visibility",n)}))}jy.defaultOptions={members:[],padding:10,corner:"rounded",concavity:1/0,fill:"lightblue",fillOpacity:.2,labelOpacity:1,stroke:"blue",strokeOpacity:.2};var Wy=function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=5),Object.entries(e).forEach((function(r){var a=(0,he.CR)(r,2),o=a[0],s=a[1],l=t;Object.prototype.hasOwnProperty.call(e,o)&&(s?(0,vv.Z)(s)?((0,vv.Z)(t[o])||(l[o]={}),n="A"&&n<="Z"};function ex(t,e,n){void 0===n&&(n=!1);var i={};return Object.entries(t).forEach((function(t){var r=(0,he.CR)(t,2),a=r[0],o=r[1];if("className"===a||"class"===a);else if(tx(a,"show")&&tx(Jy(a,"show"),e)!==n)a===function(t,e){return"".concat(e).concat(Qy(t))}(e,"show")?i[a]=o:i[a.replace(new RegExp(Qy(e)),"")]=o;else if(!tx(a,"show")&&tx(a,e)!==n){var s=Jy(a,e);"filter"===s&&"function"==typeof o||(i[s]=o)}})),i}function nx(t,e){return Object.entries(t).reduce((function(t,n){var i=(0,he.CR)(n,2),r=i[0],a=i[1];return r.startsWith("show")?t["show".concat(e).concat(r.slice(4))]=a:t["".concat(e).concat(Qy(r))]=a,t}),{})}function ix(t,e){void 0===e&&(e=["x","y","class","className"]);var n=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],i={},r={};return Object.entries(t).forEach((function(t){var a=(0,he.CR)(t,2),o=a[0],s=a[1];e.includes(o)||(-1!==n.indexOf(o)?r[o]=s:i[o]=s)})),[i,r]}var rx=function(t){function e(e){void 0===e&&(e={});var n=e.style,i=(0,he._T)(e,["style"]);return t.call(this,(0,he.pi)({style:(0,he.pi)({text:"",fill:"black",fontFamily:"sans-serif",fontSize:16,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1,textAlign:"start",textBaseline:"middle"},n)},i))||this}return(0,he.ZT)(e,t),Object.defineProperty(e.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=qy(this)),this._offscreen},enumerable:!1,configurable:!0}),e.prototype.disconnectedCallback=function(){var t;null===(t=this._offscreen)||void 0===t||t.destroy()},e}(Bl);var ax=function(){function t(t,n,i,r,a,o,s){void 0===t&&(t=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r=null),void 0===a&&(a=[null,null,null,null,null]),void 0===o&&(o=[]),void 0===s&&(s=[]),e.add(this),this._elements=Array.from(t),this._data=n,this._parent=i,this._document=r,this._enter=a[0],this._update=a[1],this._exit=a[2],this._merge=a[3],this._split=a[4],this._transitions=o,this._facetElements=s}var e,n,i;return t.prototype.selectAll=function(t){var e="string"==typeof t?this._parent.querySelectorAll(t):t;return new n(e,null,this._elements[0],this._document)},t.prototype.selectFacetAll=function(t){var e="string"==typeof t?this._parent.querySelectorAll(t):t;return new n(this._elements,null,this._parent,this._document,void 0,void 0,e)},t.prototype.select=function(t){var e="string"==typeof t?this._parent.querySelectorAll(t)[0]||null:t;return new n([e],null,e,this._document)},t.prototype.append=function(t){var e=this,i="function"==typeof t?t:function(){return e.createElement(t)},r=[];if(null!==this._data){for(var a=0;a=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom},t}();var lx=function(t,e){var n=function(t){return"".concat(e,"-").concat(t)},i=Object.fromEntries(Object.entries(t).map((function(t){var e=(0,he.CR)(t,2),i=e[0],r=e[1],a=n(r);return[i,{name:a,class:".".concat(a),id:"#".concat(a),toString:function(){return a}}]})));return Object.assign(i,{prefix:n}),i};function ux(t){if((0,oe.Z)(t))return[t,t,t,t];if((0,Fe.Z)(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}function cx(t,e,n,i,r){return void 0===i&&(i=!0),void 0===r&&(r=function(t){t.node().removeChildren()}),t?n(e):(i&&r(e),null)}var hx=lx({text:"text"},"title");function dx(t){return/\S+-\S+/g.test(t)?t.split("-").map((function(t){return t[0]})):t.length>2?[t[0]]:t.split("")}function fx(t,e){var n=Object.entries(e).reduce((function(e,n){var i=(0,he.CR)(n,2),r=i[0],a=i[1];return t.node().attr(r)||(e[r]=a),e}),{});t.styles(n)}var px=function(t){function e(e){return t.call(this,e,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return(0,he.ZT)(e,t),e.prototype.getAvailableSpace=function(){var t=this.attributes,e=t.width,n=t.height,i=t.position,r=t.spacing,a=t.inset,o=this.querySelector(hx.text.class);if(!o)return new sx(0,0,+e,+n);var s=o.getBBox(),l=s.width,u=s.height,c=(0,he.CR)(ux(r),4),h=c[0],d=c[1],f=c[2],p=c[3],g=(0,he.CR)([0,0,+e,+n],4),m=g[0],v=g[1],y=g[2],x=g[3],b=dx(i);if(b.includes("i"))return new sx(m,v,y,x);b.forEach((function(t,i){var r,a,o,s;"t"===t&&(r=(0,he.CR)(0===i?[u+f,+n-u-f]:[0,+n],2),v=r[0],x=r[1]),"r"===t&&(a=(0,he.CR)([+e-l-p],1),y=a[0]),"b"===t&&(o=(0,he.CR)([+n-u-h],1),x=o[0]),"l"===t&&(s=(0,he.CR)(0===i?[l+d,+e-l-d]:[0,+e],2),m=s[0],y=s[1])}));var _=(0,he.CR)(ux(a),4),E=_[0],w=_[1],T=_[2],S=_[3],M=(0,he.CR)([S+w,E+T],2),C=M[0],A=M[1];return new sx(m+S,v+E,y-C,x-A)},e.prototype.getBBox=function(){return this.title?this.title.getBBox():new sx(0,0,0,0)},e.prototype.render=function(t,e){var n=this,i=(t.width,t.height,t.position,t.spacing,(0,he._T)(t,["width","height","position","spacing"])),r=(0,he.CR)(ix(i),1)[0],a=function(t){var e,n,i,r,a=t,o=a.width,s=a.height,l=a.position,u=(0,he.CR)([+o/2,+s/2],2),c=u[0],h=u[1],d=(0,he.CR)([+c,+h,"center","middle"],4),f=d[0],p=d[1],g=d[2],m=d[3],v=dx(l);return v.includes("l")&&(f=(e=(0,he.CR)([0,"start"],2))[0],g=e[1]),v.includes("r")&&(f=(n=(0,he.CR)([+o,"end"],2))[0],g=n[1]),v.includes("t")&&(p=(i=(0,he.CR)([0,"top"],2))[0],m=i[1]),v.includes("b")&&(p=(r=(0,he.CR)([+s,"bottom"],2))[0],m=r[1]),{x:f,y:p,textAlign:g,textBaseline:m}}(t),o=a.x,s=a.y,l=a.textAlign,u=a.textBaseline;cx(!!i.text,ox(e),(function(t){n.title=t.maybeAppendByClassName(hx.text,"text").styles(r).call(fx,{x:o,y:s,textAlign:l,textBaseline:u}).node()}))},e}(Ky),gx=function(){};function mx(t,e){return(0,en.Z)(t)?t.apply(void 0,(0,he.ev)([],(0,he.CR)(e),!1)):t}function vx(t){if(!t)return{enter:!1,update:!1,exit:!1};var e=["enter","update","exit"],n=Object.fromEntries(Object.entries(t).filter((function(t){var n=(0,he.CR)(t,1)[0];return!e.includes(n)})));return Object.fromEntries(e.map((function(e){return function(t){return"boolean"!=typeof t&&"enter"in t&&"update"in t&&"exit"in t}(t)?!1===t[e]?[e,!1]:[e,(0,he.pi)((0,he.pi)({},t[e]),n)]:[e,n]})))}function yx(t,e){t?t.finished.then(e):e()}function xx(t,e){"update"in t?t.update(e):t.attr(e)}function bx(t,e,n){return 0===e.length?null:n?t.animate(e,n):(xx(t,{style:e.slice(-1)[0]}),null)}function _x(t,e,n){var i={},r={};return Object.entries(e).forEach((function(e){var n=(0,he.CR)(e,2),a=n[0],o=n[1];if(!(0,le.Z)(o)){var s=t.style[a]||t.parsedStyle[a]||0;s!==o&&(i[a]=s,r[a]=o)}})),n?bx(t,[i,r],(0,he.pi)({fill:"both"},n)):(xx(t,r),null)}function Ex(t,e,n){void 0===n&&(n=!1);var i=t.getBBox(),r=i.width,a=i.height,o=e/Math.max(r,a);return n&&(t.style.transform="scale(".concat(o,")")),o}var wx=function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]]},Tx=wx,Sx=function(t,e,n){return[["M",t,e+n],["L",t,e-n]]},Mx=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},Cx=Mx;var Ax=lx({prevBtnGroup:"prev-btn-group",prevBtn:"prev-btn",nextBtnGroup:"next-btn-group",nextBtn:"next-btn",pageInfoGroup:"page-info-group",pageInfo:"page-info",playWindow:"play-window",contentGroup:"content-group",controller:"controller",clipPath:"clip-path"},"navigator"),Ox=function(t){function e(e){var n,i,r,a=t.call(this,e,{x:0,y:0,animate:{easing:"linear",duration:200,fill:"both"},buttonCursor:"pointer",buttonFill:"black",buttonD:(n=0,i=0,r=6,[["M",n-r,i-r],["L",n+r,i],["L",n-r,i+r],["Z"]]),buttonSize:12,controllerPadding:5,controllerSpacing:5,formatter:function(t,e){return"".concat(t,"/").concat(e)},defaultPage:0,loop:!1,orientation:"horizontal",pageNumFill:"black",pageNumFontSize:12,pageNumTextAlign:"start",pageNumTextBaseline:"middle"})||this;return a.playState="idle",a.contentGroup=a.appendChild(new wl({class:Ax.contentGroup.name})),a.playWindow=a.contentGroup.appendChild(new wl({class:Ax.playWindow.name})),a.innerCurrPage=a.defaultPage,a}return(0,he.ZT)(e,t),Object.defineProperty(e.prototype,"defaultPage",{get:function(){var t=this.attributes.defaultPage;return ce(t,0,Math.max(this.pageViews.length-1,0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.playWindow.children},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"controllerShape",{get:function(){return this.totalPages>1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageShape",{get:function(){var t=this.pageViews,e=(0,he.CR)(function(t){var e;return(null===(e=t[0])||void 0===e?void 0:e.map((function(e,n){return t.map((function(t){return t[n]}))})))||[]}(t.map((function(t){var e=t.getBBox();return[e.width,e.height]}))).map((function(t){return Math.max.apply(Math,(0,he.ev)([],(0,he.CR)(t),!1))})),2),n=e[0],i=e[1],r=this.attributes,a=r.pageWidth,o=void 0===a?n:a,s=r.pageHeight;return{pageWidth:o,pageHeight:void 0===s?i:s}},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(e.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var e=t.prototype.getBBox.call(this),n=e.x,i=e.y,r=this.controllerShape,a=this.pageShape,o=a.pageWidth,s=a.pageHeight;return new sx(n,i,o+r.width,s)},e.prototype.goTo=function(t){var e=this,n=this.attributes.animate,i=this,r=i.currPage,a=i.playState,o=i.playWindow,s=i.pageViews;if("idle"!==a||t<0||s.length<=0||t>=s.length)return null;s[r].setLocalPosition(0,0),this.prepareFollowingPage(t);var l=(0,he.CR)(this.getFollowingPageDiff(t),2),u=l[0],c=l[1];this.playState="running";var h=bx(o,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-u,", ").concat(-c,")")}],n);return yx(h,(function(){e.innerCurrPage=t,e.playState="idle",e.setVisiblePages([t]),e.updatePageInfo()})),h},e.prototype.prev=function(){var t=this.attributes.loop,e=this.pageViews.length,n=this.currPage;if(!t&&n<=0)return null;var i=t?(n-1+e)%e:ce(n-1,0,e);return this.goTo(i)},e.prototype.next=function(){var t=this.attributes.loop,e=this.pageViews.length,n=this.currPage;if(!t&&n>=e-1)return null;var i=t?(n+1)%e:ce(n+1,0,e);return this.goTo(i)},e.prototype.renderClipPath=function(t){var e=this.pageShape,n=e.pageWidth,i=e.pageHeight;n&&i?(this.clipPath=t.maybeAppendByClassName(Ax.clipPath,"rect").styles({width:n,height:i}),this.contentGroup.attr("clipPath",this.clipPath.node())):this.contentGroup.style.clipPath=void 0},e.prototype.setVisiblePages=function(t){this.playWindow.children.forEach((function(e,n){t.includes(n)?Hy(e):Vy(e)}))},e.prototype.adjustControllerLayout=function(){var t=this,e=t.prevBtnGroup,n=t.nextBtnGroup,i=t.pageInfoGroup,r=this.attributes,a=r.orientation,o=r.controllerPadding,s=i.getBBox(),l=s.width,u=(s.height,(0,he.CR)("horizontal"===a?[-180,0]:[-90,90],2)),c=u[0],h=u[1];e.setLocalEulerAngles(c),n.setLocalEulerAngles(h);var d=e.getBBox(),f=d.width,p=d.height,g=n.getBBox(),m=g.width,v=g.height,y=Math.max(f,l,m),x="horizontal"===a?{offset:[[0,0],[f/2+o,0],[f+l+2*o,0]],textAlign:"start"}:{offset:[[y/2,-p-o],[y/2,0],[y/2,v+o]],textAlign:"center"},b=(0,he.CR)(x.offset,3),_=(0,he.CR)(b[0],2),E=_[0],w=_[1],T=(0,he.CR)(b[1],2),S=T[0],M=T[1],C=(0,he.CR)(b[2],2),A=C[0],O=C[1],N=x.textAlign,P=i.querySelector("text");P&&(P.style.textAlign=N),e.setLocalPosition(E,w),i.setLocalPosition(S,M),n.setLocalPosition(A,O)},e.prototype.updatePageInfo=function(){var t,e=this,n=e.currPage,i=e.pageViews,r=e.attributes.formatter;i.length<2||(null===(t=this.pageInfoGroup.querySelector(Ax.pageInfo.class))||void 0===t||t.attr("text",r(n+1,i.length)),this.adjustControllerLayout())},e.prototype.getFollowingPageDiff=function(t){var e=this.currPage;if(e===t)return[0,0];var n=this.attributes.orientation,i=this.pageShape,r=i.pageWidth,a=i.pageHeight,o=t=2,s=t.maybeAppendByClassName(Ax.controller,"g");if(Zy(s.node(),o),o){var l=ex(this.attributes,"button"),u=ex(this.attributes,"pageNum"),c=(0,he.CR)(ix(l),2),h=c[0],d=c[1],f=h.size,p=(0,he._T)(h,["size"]),g=!s.select(Ax.prevBtnGroup.class).node(),m=s.maybeAppendByClassName(Ax.prevBtnGroup,"g").styles(d);this.prevBtnGroup=m.node();var v=m.maybeAppendByClassName(Ax.prevBtn,"path"),y=s.maybeAppendByClassName(Ax.nextBtnGroup,"g").styles(d);this.nextBtnGroup=y.node(),[v,y.maybeAppendByClassName(Ax.nextBtn,"path")].forEach((function(t){t.styles((0,he.pi)((0,he.pi)({},p),{transformOrigin:"center"})),Ex(t.node(),f,!0)}));var x=s.maybeAppendByClassName(Ax.pageInfoGroup,"g");this.pageInfoGroup=x.node(),x.maybeAppendByClassName(Ax.pageInfo,"text").styles(u),this.updatePageInfo(),s.node().setLocalPosition(r+n,a/2),g&&(this.prevBtnGroup.addEventListener("click",(function(){e.prev()})),this.nextBtnGroup.addEventListener("click",(function(){e.next()})))}},e.prototype.render=function(t,e){var n=t.x,i=void 0===n?0:n,r=t.y,a=void 0===r?0:r;this.attr("transform","translate(".concat(i,", ").concat(a,")"));var o=ox(e);this.renderClipPath(o),this.renderController(o),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},e.prototype.bindEvents=function(){var t=this,e=Nm((function(){return t.render(t.attributes,t)}),50);this.playWindow.addEventListener(Ss.INSERTED,e),this.playWindow.addEventListener(Ss.REMOVED,e)},e}(Ky);function Nx(t){var e=function(t){var e="default";if((0,nn.Z)(t)&&t instanceof Image)e="image";else if((0,en.Z)(t))e="symbol";else if((0,ue.Z)(t)){var n=new RegExp("data:(image|text)");e=t.match(n)?"base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(t)?"url":"symbol"}return e}(t);return["base64","url","image"].includes(e)?"image":t&&"symbol"===e?"path":null}var Px=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,he.ZT)(e,t),e.prototype.render=function(t,n){var i=t.x,r=void 0===i?0:i,a=t.y,o=void 0===a?0:a,s=this.getSubShapeStyle(t),l=s.symbol,u=s.size,c=void 0===u?16:u,h=(0,he._T)(s,["symbol","size"]),d=Nx(l);cx(!!d,ox(n),(function(t){t.maybeAppendByClassName("marker",d).attr("className","marker ".concat(d,"-marker")).call((function(t){if("image"===d){var n=2*c;t.styles({img:l,width:n,height:n,x:r-c,y:o-c})}else{n=c/2;var i=(0,en.Z)(l)?l:e.getSymbol(l);t.styles((0,he.pi)({d:null==i?void 0:i(r,o,n)},h))}}))}))},e.MARKER_SYMBOL_MAP=new Map,e.registerSymbol=function(t,n){e.MARKER_SYMBOL_MAP.set(t,n)},e.getSymbol=function(t){return e.MARKER_SYMBOL_MAP.get(t)},e.getSymbols=function(){return Array.from(e.MARKER_SYMBOL_MAP.keys())},e}(Ky);Px.registerSymbol("cross",(function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]})),Px.registerSymbol("hyphen",(function(t,e,n){return[["M",t-n,e],["L",t+n,e]]})),Px.registerSymbol("line",Sx),Px.registerSymbol("plus",(function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]})),Px.registerSymbol("tick",(function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]})),Px.registerSymbol("circle",wx),Px.registerSymbol("point",Tx),Px.registerSymbol("bowtie",(function(t,e,n){var i=n-1.5;return[["M",t-n,e-i],["L",t+n,e+i],["L",t+n,e-i],["L",t-n,e+i],["Z"]]})),Px.registerSymbol("hexagon",(function(t,e,n){var i=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+i,e-n/2],["L",t+i,e+n/2],["L",t,e+n],["L",t-i,e+n/2],["L",t-i,e-n/2],["Z"]]})),Px.registerSymbol("square",(function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]})),Px.registerSymbol("diamond",(function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]})),Px.registerSymbol("triangle",(function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["Z"]]})),Px.registerSymbol("triangle-down",(function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]})),Px.registerSymbol("line",Sx),Px.registerSymbol("dot",Mx),Px.registerSymbol("dash",Cx),Px.registerSymbol("smooth",(function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]})),Px.registerSymbol("hv",(function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]})),Px.registerSymbol("vh",(function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]})),Px.registerSymbol("hvh",(function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]})),Px.registerSymbol("vhv",(function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}));Px.registerSymbol("hiddenHandle",(function(t,e,n){var i=1.4*n;return[["M",t-n,e-i],["L",t+n,e-i],["L",t+n,e+i],["L",t-n,e+i],["Z"]]})),Px.registerSymbol("verticalHandle",(function(t,e,n){var i=1.4*n,r=n/2,a=n/6,o=t+.4*i;return[["M",t,e],["L",o,e+r],["L",t+i,e+r],["L",t+i,e-r],["L",o,e-r],["Z"],["M",o,e+a],["L",t+i-2,e+a],["M",o,e-a],["L",t+i-2,e-a]]})),Px.registerSymbol("horizontalHandle",(function(t,e,n){var i=1.4*n,r=n/2,a=n/6,o=e+.4*i;return[["M",t,e],["L",t-r,o],["L",t-r,e+i],["L",t+r,e+i],["L",t+r,o],["Z"],["M",t-a,o],["L",t-a,e+i-2],["M",t+a,o],["L",t+a,e+i-2]]}));var Lx,Rx;function Dx(t,e,n){return void 0===t&&(t="horizontal"),"horizontal"===t?e:n}function kx(t){var e=t.getLocalBounds(),n=e.min,i=e.max,r=(0,he.CR)([n,i],2),a=(0,he.CR)(r[0],2),o=a[0],s=a[1],l=(0,he.CR)(r[1],2),u=l[0],c=l[1];return{x:o,y:s,width:u-o,height:c-s,left:o,bottom:c,top:s,right:u}}function Ix(t,e){var n=(0,he.CR)(t,2),i=n[0],r=n[1],a=(0,he.CR)(e,2),o=a[0],s=a[1];return i!==o&&r===s}function Bx(t){return"function"==typeof t?t():(0,ue.Z)(t)||(0,oe.Z)(t)?new rx({style:{text:String(t)}}):t}var Fx=gv((function(t,e){var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,a=e.fontStyle,o=e.fontVariant;return Rx?Rx(t,n):(Lx||(Lx=al.offscreenCanvasCreator.getOrCreateContext(void 0)),Lx.font=[a,o,r,"".concat(n,"px"),i].join(" "),Lx.measureText(t).width)}),(function(t,e){return[t,Object.values(e||zx(t)).join()].join("")}),4096),zx=function(t){var e=t.style.fontFamily||"sans-serif",n=t.style.fontWeight||"normal",i=t.style.fontStyle||"normal",r=t.style.fontVariant,a=t.style.fontSize;return{fontSize:a="object"==typeof a?a.value:a,fontFamily:e,fontWeight:n,fontStyle:i,fontVariant:r}};function Gx(t){return"text"===t.nodeName?t:"g"===t.nodeName&&1===t.children.length&&"text"===t.children[0].nodeName?t.children[0]:null}function jx(t,e){var n=Gx(t);n&&n.attr(e)}function Ux(t,e,n){void 0===n&&(n="..."),jx(t,{wordWrap:!0,wordWrapWidth:e,maxLines:1,textOverflow:n})}var Hx=lx({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item");var Vx=function(t){function e(e){return t.call(this,e,{span:[1,1],marker:function(){return new xl({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this}return(0,he.ZT)(e,t),Object.defineProperty(e.prototype,"showValue",{get:function(){var t=this.attributes.valueText;return!!t&&("string"==typeof t||"number"==typeof t?""!==t:"function"==typeof t||""!==t.attr("text"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actualSpace",{get:function(){var t=this.labelGroup,e=this.valueGroup,n=this.attributes.markerSize,i=t.node().getBBox(),r=i.width,a=i.height,o=e.node().getBBox(),s=o.width,l=o.height;return{markerWidth:n,labelWidth:r,valueWidth:s,height:Math.max(n,a,l)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"span",{get:function(){var t=this.attributes.span;if(!t)return[1,1];var e=(0,he.CR)(ux(t),2),n=e[0],i=e[1],r=this.showValue?i:0,a=n+r;return[n/a,r/a]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var t,e=this.attributes,n=e.markerSize,i=e.width,r=this.actualSpace,a=r.markerWidth,o=r.height,s=this.actualSpace,l=s.labelWidth,u=s.valueWidth,c=(0,he.CR)(this.spacing,2),h=c[0],d=c[1];if(i){var f=i-n-h-d,p=(0,he.CR)(this.span,2),g=p[0],m=p[1];l=(t=(0,he.CR)([g*f,m*f],2))[0],u=t[1]}return{width:a+l+u+h+d,height:o,markerWidth:a,labelWidth:l,valueWidth:u}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){var t=this.attributes.spacing;if(!t)return[0,0];var e=(0,he.CR)(ux(t),2),n=e[0],i=e[1];return this.showValue?[n,i]:[n,0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){var t=this.shape,e=t.markerWidth,n=t.labelWidth,i=t.valueWidth,r=t.width,a=t.height,o=(0,he.CR)(this.spacing,2),s=o[0];return{height:a,width:r,markerWidth:e,labelWidth:n,valueWidth:i,position:[e/2,e+s,e+n+s+o[1]]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleSize",{get:function(){var t=function(t){var e=t.querySelector(Hx.marker.class);return e?e.style:{}}(this.markerGroup.node()),e=this.attributes,n=e.markerSize,i=e.markerStrokeWidth,r=void 0===i?t.strokeWidth:i,a=e.markerLineWidth,o=void 0===a?t.lineWidth:a,s=e.markerStroke,l=void 0===s?t.stroke:s,u=+(r||o||(l?1:0))*Math.sqrt(2),c=this.markerGroup.node().getBBox(),h=c.width,d=c.height;return(1-u/Math.max(h,d))*n},enumerable:!1,configurable:!0}),e.prototype.renderMarker=function(t){var e=this,n=this.attributes.marker,i=ex(this.attributes,"marker");this.markerGroup=t.maybeAppendByClassName(Hx.markerGroup,"g").style("zIndex",0),cx(!!n,this.markerGroup,(function(){var t,r=e.markerGroup.node(),a=null===(t=r.childNodes)||void 0===t?void 0:t[0],o="string"==typeof n?new Px({style:{symbol:n},className:Hx.marker.name}):n();a?o.nodeName===a.nodeName?a instanceof Px?a.update((0,he.pi)((0,he.pi)({},i),{symbol:n})):(!function(t,e){var n,i,r=e.attributes;try{for(var a=(0,he.XA)(Object.entries(r)),o=a.next();!o.done;o=a.next()){var s=(0,he.CR)(o.value,2),l=s[0],u=s[1];"id"!==l&&"className"!==l&&t.attr(l,u)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}}(a,o),ox(a).styles(i)):(a.remove(),ox(o).attr("className",Hx.marker.name).styles(i),r.appendChild(o)):(o instanceof Px||ox(o).attr("className",Hx.marker.name).styles(i),r.appendChild(o)),e.markerGroup.node().scale(1/e.markerGroup.node().getScale()[0]);var s=Ex(e.markerGroup.node(),e.scaleSize,!0);e.markerGroup.node().style._transform="scale(".concat(s,")")}))},e.prototype.renderLabel=function(t){var e=ex(this.attributes,"label"),n=e.text,i=(0,he._T)(e,["text"]);this.labelGroup=t.maybeAppendByClassName(Hx.labelGroup,"g").style("zIndex",0),this.labelGroup.maybeAppendByClassName(Hx.label,(function(){return Bx(n)})).styles(i)},e.prototype.renderValue=function(t){var e=this,n=ex(this.attributes,"value"),i=n.text,r=(0,he._T)(n,["text"]);this.valueGroup=t.maybeAppendByClassName(Hx.valueGroup,"g").style("zIndex",0),cx(this.showValue,this.valueGroup,(function(){e.valueGroup.maybeAppendByClassName(Hx.value,(function(){return Bx(i)})).styles(r)}))},e.prototype.renderBackground=function(t){var e=this.shape,n=e.width,i=e.height,r=ex(this.attributes,"background");this.background=t.maybeAppendByClassName(Hx.backgroundGroup,"g").style("zIndex",-1),this.background.maybeAppendByClassName(Hx.background,"rect").styles((0,he.pi)({width:n,height:i},r))},e.prototype.adjustLayout=function(){var t=this.layout,e=t.labelWidth,n=t.valueWidth,i=t.height,r=(0,he.CR)(t.position,3),a=r[0],o=r[1],s=r[2],l=i/2;this.markerGroup.styles({transform:"translate(".concat(a,", ").concat(l,")").concat(this.markerGroup.node().style._transform)}),this.labelGroup.styles({transform:"translate(".concat(o,", ").concat(l,")")}),Ux(this.labelGroup.select(Hx.label.class).node(),Math.ceil(e)),this.showValue&&(this.valueGroup.styles({transform:"translate(".concat(s,", ").concat(l,")")}),Ux(this.valueGroup.select(Hx.value.class).node(),Math.ceil(n)))},e.prototype.render=function(t,e){var n=ox(e),i=t.x,r=void 0===i?0:i,a=t.y,o=void 0===a?0:a;n.styles({transform:"translate(".concat(r,", ").concat(o,")")}),this.renderMarker(n),this.renderLabel(n),this.renderValue(n),this.renderBackground(n),this.adjustLayout()},e}(Ky),Zx=lx({page:"item-page",navigator:"navigator",item:"item"},"items"),Wx=function(t,e,n){return void 0===n&&(n=!0),t?e(t):n},Xx=function(t){function e(e){var n=t.call(this,e,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:gx,mouseenter:gx,mouseleave:gx})||this;return n.navigatorShape=[0,0],n}return(0,he.ZT)(e,t),Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){var t=this.attributes,e=t.gridRow,n=t.gridCol,i=t.data;if(!e&&!n)throw new Error("gridRow and gridCol can not be set null at the same time");return e&&n?[e,n]:e?[e,i.length]:[i.length,n]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderData",{get:function(){var t=this.attributes,e=t.data,n=t.layout,i=ex(this.attributes,"item"),r=e.map((function(t,r){var a=t.id,o=void 0===a?r:a,s=t.label,l=t.value;return{id:"".concat(o),index:r,style:(0,he.pi)({layout:n,labelText:s,valueText:l},Object.fromEntries(Object.entries(i).map((function(n){var i=(0,he.CR)(n,2);return[i[0],mx(i[1],[t,r,e])]}))))}}));return r},enumerable:!1,configurable:!0}),e.prototype.getGridLayout=function(){var t=this,e=this.attributes,n=e.orientation,i=e.width,r=e.rowPadding,a=e.colPadding,o=(0,he.CR)(this.navigatorShape,1)[0],s=(0,he.CR)(this.grid,2),l=s[0],u=s[1],c=u*l,h=0;return this.pageViews.children.map((function(e,s){var d,f,p=Math.floor(s/c),g=s%c,m=t.ifHorizontal(u,l),v=[Math.floor(g/m),g%m];"vertical"===n&&v.reverse();var y=(0,he.CR)(v,2),x=y[0],b=y[1],_=(i-o-(u-1)*a)/u,E=e.getBBox().height,w=(0,he.CR)([0,0],2),T=w[0],S=w[1];return"horizontal"===n?(T=(d=(0,he.CR)([h,x*(E+r)],2))[0],S=d[1],h=b===u-1?0:h+_+a):(T=(f=(0,he.CR)([b*(_+a),h],2))[0],S=f[1],h=x===l-1?0:h+E+r),{page:p,index:s,row:x,col:b,pageIndex:g,width:_,height:E,x:T,y:S}}))},e.prototype.getFlexLayout=function(){var t=this.attributes,e=t.width,n=t.height,i=t.rowPadding,r=t.colPadding,a=(0,he.CR)(this.navigatorShape,1)[0],o=(0,he.CR)(this.grid,2),s=o[0],l=o[1],u=(0,he.CR)([e-a,n],2),c=u[0],h=u[1],d=(0,he.CR)([0,0,0,0,0,0,0,0],8),f=d[0],p=d[1],g=d[2],m=d[3],v=d[4],y=d[5],x=d[6],b=d[7];return this.pageViews.children.map((function(t,e){var n,a,o,u,d=t.getBBox(),_=d.width,E=d.height,w=0===x?0:r,T=x+w+_;return T<=c&&Wx(v,(function(t){return t0?(this.navigatorShape=[55,0],t.call(this)):e},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(t,e){return Dx(this.attributes.orientation,t,e)},e.prototype.flattenPage=function(t){t.querySelectorAll(Zx.item.class).forEach((function(e){t.appendChild(e)})),t.querySelectorAll(Zx.page.class).forEach((function(e){t.removeChild(e).destroy()}))},e.prototype.renderItems=function(t){var e=this.attributes,n=e.click,i=e.mouseenter,r=e.mouseleave;this.flattenPage(t);var a=this.dispatchCustomEvent.bind(this);ox(t).selectAll(Zx.item.class).data(this.renderData,(function(t){return t.id})).join((function(t){return t.append((function(t){var e=t.style;return new Vx({style:e})})).attr("className",Zx.item.name).on("click",(function(){null==n||n(this),a("itemClick",{item:this})})).on("pointerenter",(function(){null==i||i(this),a("itemMouseenter",{item:this})})).on("pointerleave",(function(){null==r||r(this),a("itemMouseleave",{item:this})}))}),(function(t){return t.each((function(t){var e=t.style;this.update(e)}))}),(function(t){return t.remove()}))},e.prototype.relayoutNavigator=function(){var t,e=this.attributes,n=e.layout,i=e.width,r=(null===(t=this.pageViews.children[0])||void 0===t?void 0:t.getBBox().height)||0,a=(0,he.CR)(this.navigatorShape,2),o=a[0],s=a[1];this.navigator.update("grid"===n?{pageWidth:i-o,pageHeight:r-s}:{})},e.prototype.adjustLayout=function(){var t,e,n=this,i=Object.entries((t=this.itemsLayout,e="page",t.reduce((function(t,n){return(t[n[e]]=t[n[e]]||[]).push(n),t}),{}))).map((function(t){var e=(0,he.CR)(t,2);return{page:e[0],layouts:e[1]}})),r=(0,he.ev)([],(0,he.CR)(this.navigator.getContainer().children),!1);i.forEach((function(t){var e=t.layouts,i=n.pageViews.appendChild(new wl({className:Zx.page.name}));e.forEach((function(t){var e=t.x,n=t.y,a=t.index,o=t.width,s=t.height,l=r[a];i.appendChild(l),Wd(l,"__layout__",t),l.update({x:e,y:n,width:o,height:s})}))})),this.relayoutNavigator()},e.prototype.renderNavigator=function(t){var e=this.attributes.orientation,n=ex(this.attributes,"nav"),i=Xy({orientation:e},n),r=this;return t.selectAll(Zx.navigator.class).data(["nav"]).join((function(t){return t.append((function(){return new Ox({style:i})})).attr("className",Zx.navigator.name).each((function(){r.navigator=this}))}),(function(t){return t.each((function(){this.update(i)}))}),(function(t){return t.remove()})),this.navigator},e.prototype.getBBox=function(){return this.navigator.getBBox()},e.prototype.render=function(t,e){var n=this.attributes.data;if(n&&0!==n.length){var i=this.renderNavigator(ox(e));this.renderItems(i.getContainer()),this.adjustLayout()}},e.prototype.dispatchCustomEvent=function(t,e){var n=new gs(t,{detail:e});this.dispatchEvent(n)},e}(Ky),Yx=lx({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),qx={showLabel:!0,formatter:function(t){return t.toString()},markerSize:25,markerStroke:"#c5c5c5",markerFill:"#fff",markerLineWidth:1,labelFontSize:12,labelFill:"#c5c5c5",labelText:"",orientation:"vertical",spacing:0},$x=(function(t){function e(e){return t.call(this,e,qx)||this}(0,he.ZT)(e,t),e.prototype.render=function(t,e){var n=ox(e).maybeAppendByClassName(Yx.markerGroup,"g");this.renderMarker(n);var i=ox(e).maybeAppendByClassName(Yx.labelGroup,"g");this.renderLabel(i)},e.prototype.renderMarker=function(t){var e=this,n=this.attributes,i=n.orientation,r=n.markerSymbol,a=void 0===r?Dx(i,"horizontalHandle","verticalHandle"):r;cx(!!a,t,(function(t){var n=ex(e.attributes,"marker"),i=(0,he.pi)({symbol:a},n);e.marker=t.maybeAppendByClassName(Yx.marker,(function(){return new Px({style:i})})).update(i)}))},e.prototype.renderLabel=function(t){var e=this,n=this.attributes,i=n.showLabel,r=n.orientation,a=n.spacing,o=void 0===a?0:a,s=n.formatter;cx(i,t,(function(t){var n,i=ex(e.attributes,"label"),a=i.text,l=(0,he._T)(i,["text"]),u=(null===(n=t.select(Yx.marker.class))||void 0===n?void 0:n.node().getBBox())||{},c=u.width,h=void 0===c?0:c,d=u.height,f=void 0===d?0:d,p=(0,he.CR)(Dx(r,[0,f+o,"center","top"],[h+o,0,"start","middle"]),4),g=p[0],m=p[1],v=p[2],y=p[3];t.maybeAppendByClassName(Yx.label,"text").styles((0,he.pi)((0,he.pi)({},l),{x:g,y:m,text:s(a).toString(),textAlign:v,textBaseline:y}))}))}}(Ky),{showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12}),Kx=Xy({},$x,{}),Qx=(Xy({},$x,nx(qx,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroundFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"}),lx({title:"title",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend")),Jx=function(t){function e(e){return t.call(this,e,Kx)||this}return(0,he.ZT)(e,t),e.prototype.renderTitle=function(t,e,n){var i=this.attributes,r=i.showTitle,a=i.titleText,o=ex(this.attributes,"title"),s=(0,he.CR)(ix(o),2),l=s[0],u=s[1];this.titleGroup=t.maybeAppendByClassName(Qx.titleGroup,"g").styles(u);var c=(0,he.pi)((0,he.pi)({width:e,height:n},l),{text:r?a:""});this.title=this.titleGroup.maybeAppendByClassName(Qx.title,(function(){return new px({style:c})})).update(c)},e.prototype.renderItems=function(t,e){var n=e.x,i=e.y,r=e.width,a=e.height,o=ex(this.attributes,"title",!0),s=(0,he.CR)(ix(o),2),l=s[0],u=s[1],c=(0,he.pi)((0,he.pi)({},l),{width:r,height:a,x:0,y:0});this.itemsGroup=t.maybeAppendByClassName(Qx.itemsGroup,"g").styles((0,he.pi)((0,he.pi)({},u),{transform:"translate(".concat(n,", ").concat(i,")")}));var h=this;this.itemsGroup.selectAll(Qx.items.class).data(["items"]).join((function(t){return t.append((function(){return new Xx({style:c})})).attr("className",Qx.items.name).each((function(){h.items=ox(this)}))}),(function(t){return t.update(c)}),(function(t){return t.remove()}))},e.prototype.adjustLayout=function(){if(this.attributes.showTitle){var t=this.title.node().getAvailableSpace(),e=t.x,n=t.y;this.itemsGroup.node().style.transform="translate(".concat(e,", ").concat(n,")")}},Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes,e=t.showTitle,n=t.width,i=t.height;return e?this.title.node().getAvailableSpace():new sx(0,0,n,i)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var e,n,i=null===(e=this.title)||void 0===e?void 0:e.node(),r=null===(n=this.items)||void 0===n?void 0:n.node();return i&&r?function(t,e){var n=t.attributes,i=n.position,r=n.spacing,a=n.inset,o=n.text,s=t.getBBox(),l=e.getBBox(),u=dx(i),c=(0,he.CR)(ux(o?r:0),4),h=c[0],d=c[1],f=c[2],p=c[3],g=(0,he.CR)(ux(a),4),m=g[0],v=g[1],y=g[2],x=g[3],b=(0,he.CR)([p+d,h+f],2),_=b[0],E=b[1],w=(0,he.CR)([x+v,m+y],2),T=w[0],S=w[1];if("l"===u[0])return new sx(s.x,s.y,l.width+s.width+_+T,Math.max(l.height+S,s.height));if("t"===u[0])return new sx(s.x,s.y,Math.max(l.width+T,s.width),l.height+s.height+E+S);var M=(0,he.CR)([e.attributes.width||l.width,e.attributes.height||l.height],2),C=M[0],A=M[1];return new sx(l.x,l.y,C+s.width+_+T,A+s.height+E+S)}(i,r):t.prototype.getBBox.call(this)},e.prototype.render=function(t,e){var n=this.attributes,i=n.width,r=n.height,a=n.x,o=void 0===a?0:a,s=n.y,l=void 0===s?0:s,u=ox(e);e.style.transform="translate(".concat(o,", ").concat(l,")"),this.renderTitle(u,i,r),this.renderItems(u,this.availableSpace),this.adjustLayout()},e}(Ky);function tb(t){const{width:e,height:n,renderer:i,containerStyle:r}=t,a=function(t){var e;const{container:n,className:i,graphCanvas:r}=t;if(n)return"string"==typeof n?document.getElementById(n):n;const a=_v(i,!1);return null===(e=r.getContainer())||void 0===e||e.appendChild(a),a}(t),[o,s]=function(t){const{width:e,height:n,placement:i,graphCanvas:r}=t,[a,o]=r.getSize(),[s,l]=gd(i);return[s*(a-e),l*(o-n)]}(t);Object.assign(a.style,Object.assign({position:"absolute",left:o+"px",top:s+"px",width:e+"px",height:n+"px"},r));return[a,new Kl({width:e,height:n,container:a,renderer:i||new ig})]}var eb=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const{graph:t}=this.context;t.on(hc.AFTER_DRAW,this.createElement)},this.changeState=(t,e)=>{const{graph:n}=this.context,{typePrefix:i}=this,r=Zd(t,[i,"id"]),a=Zd(t,[i,"style","labelText"]),[o]=r.split("__"),s=this.fieldMap[o].get(a)||[];n.setElementState(Object.fromEntries(null==s?void 0:s.map((t=>[t,e]))))},this.click=t=>{if("hover"===this.options.trigger)return;const e=Zd(t,[this.typePrefix,"id"]);this.selectedItems.includes(e)?(this.selectedItems=this.selectedItems.filter((t=>t!==e)),this.changeState(t,[])):(this.selectedItems.push(e),this.changeState(t,"selected"))},this.mouseleave=t=>{"click"!==this.options.trigger&&(this.selectedItems=[],this.changeState(t,[]))},this.mouseenter=t=>{if("click"===this.options.trigger)return;const e=Zd(t,[this.typePrefix,"id"]);this.selectedItems.includes(e)?this.selectedItems=this.selectedItems.filter((t=>t!==e)):(this.selectedItems.push(e),this.changeState(t,"active"))},this.setFieldMap=(t,e,n)=>{if(!t)return;const i=this.fieldMap[n];if(i)if(i.has(t)){const n=i.get(t);n&&(n.push(e),i.set(t,n))}else i.set(t,[e])},this.getEvents=()=>({mouseenter:this.mouseenter,mouseleave:this.mouseleave,click:this.click}),this.getMarkerData=(t,e)=>{if(!t)return[];const{model:n,element:i}=this.context,{nodes:r,edges:a,combos:o}=n.getData(),s={},l=e=>(0,en.Z)(t)?t(e):t,u={node:"circle",edge:"line",combo:"rect"},c={circle:"circle",ellipse:"circle",image:"bowtie",rect:"square",star:"cross",triangle:"triangle",diamond:"diamond",cubic:"dot",line:"hyphen",polyline:"hyphen",quadratic:"hv","cubic-horizontal":"hyphen","cubic-vertical":"line"},h=(t,e)=>{t.forEach((t=>{const{id:n}=t,r=Zd(t,["data",l(t)]),a=(null==i?void 0:i.getElementType(e,t))||"circle",o=((t,e)=>null==i?void 0:i.getElementComputedStyle(t,e))(e,t),h=("edge"===e?null==o?void 0:o.stroke:null==o?void 0:o.fill)||"#1783ff";n&&r&&r.replace(/\s+/g,"")&&(this.setFieldMap(r,n,e),s[r]||(s[r]={id:`${e}__${n}`,label:r,marker:c[a]||u[e],elementType:e,lineWidth:1,stroke:h,fill:h}))}))};switch(e){case"node":h(r,"node");break;case"edge":h(a,"edge");break;case"combo":h(o,"combo");break;default:return[]}return Object.values(s)},this.createElement=()=>{if(this.draw)return void this.updateElement();const t=this.options,{width:e,height:n,nodeField:i,edgeField:r,comboField:a,trigger:o,position:s,container:l,containerStyle:u,className:c}=t,h=eb(t,["width","height","nodeField","edgeField","comboField","trigger","position","container","containerStyle","className"]),d=this.getMarkerData(i,"node"),f=this.getMarkerData(r,"edge"),p=this.getMarkerData(a,"combo"),g=[...d,...p,...f],m=Object.assign({width:e,height:n,data:g,itemMarkerLineWidth:({lineWidth:t})=>t,itemMarker:({marker:t})=>t,itemMarkerStroke:({stroke:t})=>t,itemMarkerFill:({fill:t})=>t,gridCol:d.length},h,this.getEvents()),v=new Jx({className:"legend",style:m});this.category=v;this.upsertCanvas().appendChild(v),this.draw=!0},this.bindEvents()}update(t){super.update(t),this.clear(),this.createElement()}clear(){var t,e;null===(t=this.canvas)||void 0===t||t.destroy(),null===(e=this.container)||void 0===e||e.remove(),this.canvas=void 0,this.container=void 0,this.draw=!1}updateElement(){this.category&&this.category.update({itemMarkerOpacity:({id:t})=>!this.selectedItems.length||this.selectedItems.includes(t)?1:.5,itemLabelOpacity:({id:t})=>!this.selectedItems.length||this.selectedItems.includes(t)?1:.5})}upsertCanvas(){if(this.canvas)return this.canvas;const t=this.context.canvas,[e,n]=t.getSize(),{width:i=e,height:r=n,position:a,container:o,containerStyle:s,className:l}=this.options,[u,c]=tb({width:i,height:r,graphCanvas:t,container:o,containerStyle:s,placement:a,className:"legend"});return this.container=u,l&&u.classList.add(l),this.canvas=c,this.canvas}destroy(){this.clear(),this.context.graph.off(hc.AFTER_DRAW,this.createElement),super.destroy()}}nb.defaultOptions={position:"bottom",trigger:"hover",orientation:"horizontal",layout:"flex",itemSpacing:4,rowPadding:10,colPadding:10,itemMarkerSize:16,itemLabelFontSize:16,width:240,height:160};class ib extends bv{constructor(t,e){super(t,Object.assign({},ib.defaultOptions,e)),this.onDraw=t=>{var e;(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.render)||this.onRender()},this.shapes=new Map,this.landmarkMap=new Map,this.mask=null,this.isMaskDragging=!1,this.onMaskDragStart=t=>{this.mask&&(this.isMaskDragging=!0,this.mask.setPointerCapture(t.pointerId),this.mask.addEventListener("pointermove",this.onMaskDrag),this.mask.addEventListener("pointerup",this.onMaskDragEnd),this.mask.addEventListener("pointercancel",this.onMaskDragEnd))},this.onMaskDrag=t=>{if(!this.mask||!this.isMaskDragging)return;const{size:[e,n]}=this.options,{movementX:i,movementY:r}=t,{left:a,top:o,width:s,height:l}=this.mask.style,[,,u,c]=this.maskBBox;let h=parseInt(a)+i,d=parseInt(o)+r,f=parseInt(s),p=parseInt(l);h<0&&(h=0),d<0&&(d=0),h+f>e&&(h=ab(e-f,0)),d+p>n&&(d=ab(n-p,0)),f0?(h=ab(h-i,0),f=rb(f+i,e)):i<0&&(f=rb(f-i,e))),p0?(d=ab(d-r,0),p=rb(p+r,n)):r<0&&(p=rb(p-r,n))),Object.assign(this.mask.style,{left:h+"px",top:d+"px",width:f+"px",height:p+"px"});const g=parseInt(a)-h,m=parseInt(o)-d;if(0===g&&0===m)return;const v=this.context.canvas.getCamera().getZoom()/this.canvas.getCamera().getZoom();this.context.graph.translateBy([g*v,m*v],!1)},this.onMaskDragEnd=t=>{this.mask&&(this.isMaskDragging=!1,this.mask.releasePointerCapture(t.pointerId),this.mask.removeEventListener("pointermove",this.onMaskDrag),this.mask.removeEventListener("pointerup",this.onMaskDragEnd),this.mask.removeEventListener("pointercancel",this.onMaskDragEnd))},this.onTransform=Fc((()=>{this.isMaskDragging||(this.updateMask(),this.setCamera())}),32,{leading:!0}),this.setOnRender(),this.bindEvents()}update(t){this.unbindEvents(),super.update(t),"delay"in t&&this.setOnRender(),this.bindEvents()}setOnRender(){this.onRender=Nm((()=>{this.renderMinimap(),this.renderMask()}),this.options.delay,!0)}bindEvents(){const{graph:t}=this.context;t.on(hc.AFTER_DRAW,this.onDraw),t.on(hc.AFTER_RENDER,this.onRender),t.on(hc.AFTER_TRANSFORM,this.onTransform)}unbindEvents(){const{graph:t}=this.context;t.off(hc.AFTER_DRAW,this.onDraw),t.off(hc.AFTER_RENDER,this.onRender),t.off(hc.AFTER_TRANSFORM,this.onTransform)}renderMinimap(){const t=this.getElements(),e=this.initCanvas();this.setShapes(e,t)}getElements(){const{filter:t}=this.options,{model:e}=this.context,n=e.getData();if(!t)return n;const{nodes:i,edges:r,combos:a}=n;return{nodes:i.filter((e=>t(Dh(e),"node"))),edges:r.filter((e=>t(Dh(e),"edge"))),combos:a.filter((e=>t(Dh(e),"combo")))}}setShapes(t,e){const{nodes:n,edges:i,combos:r}=e,{shape:a}=this.options,{element:o}=this.context;if("key"===a){const e=new Set,a=n=>{const i=Dh(n);e.add(i);const r=o.getElement(i);if(!r)return;const a=r.getShape("key"),s=this.shapes.get(i)||a.cloneNode();s.setPosition(a.getPosition()),r.style.zIndex&&(s.style.zIndex=r.style.zIndex),s.id=r.id,this.shapes.has(i)?Object.entries(a.attributes).forEach((([t,e])=>{s.style[t]!==e&&(s.style[t]=e)})):(t.appendChild(s),this.shapes.set(i,s))};return i.forEach(a),r.forEach(a),n.forEach(a),void this.shapes.forEach(((n,i)=>{e.has(i)||(t.removeChild(n),this.shapes.delete(i))}))}const s=(t,e)=>{const n=o.getElement(t).getPosition();return e.setPosition(n),e};t.removeChildren(),i.forEach((e=>t.appendChild(a(Dh(e),"edge")))),r.forEach((e=>{t.appendChild(s(Dh(e),a(Dh(e),"combo")))})),n.forEach((e=>{t.appendChild(s(Dh(e),a(Dh(e),"node")))}))}initCanvas(){const{renderer:t,size:[e,n]}=this.options;if(this.canvas){const{width:i,height:r}=this.canvas.getConfig();e===i&&n===r||this.canvas.resize(e,n),t&&this.canvas.setRenderer(t)}else{const{className:i,position:r,container:a,containerStyle:o}=this.options,[s,l]=tb({renderer:t,width:e,height:n,placement:r,className:"minimap",container:a,containerStyle:o,graphCanvas:this.context.canvas});i&&s.classList.add(i),this.container=s,this.canvas=l}return this.setCamera(),this.canvas}createLandmark(t,e,n){const i=`${t.join(",")}-${e.join(",")}-${n}`;if(this.landmarkMap.has(i))return this.landmarkMap.get(i);const r=this.canvas.getCamera().createLandmark(i,{position:t,focalPoint:e,zoom:n});return this.landmarkMap.set(i,r),r}setCamera(){var t;const{canvas:e}=this.context,n=null===(t=this.canvas)||void 0===t?void 0:t.getCamera();if(!n)return;const{size:[i,r],padding:a}=this.options,[o,s,l,u]=Uc(a),{min:c,max:h,center:d}=e.getBounds("elements"),f=(i-u-s)/(h[0]-c[0]),p=(r-o-l)/(h[1]-c[1]),g=Math.min(f,p),m=this.createLandmark(d,d,g);n.gotoLandmark(m,0)}get maskBBox(){const{canvas:t}=this.context,e=t.getSize(),n=t.getCanvasByViewport([0,0]),i=t.getCanvasByViewport(e),r=this.canvas.canvas2Viewport(_d(n)),a=this.canvas.canvas2Viewport(_d(i)),o=a.x-r.x,s=a.y-r.y;return[r.x,r.y,o,s]}calculateMaskBBox(){const{size:[t,e]}=this.options;let[n,i,r,a]=this.maskBBox;return n<0&&(r=rb(r+n,t),n=0),i<0&&(a=rb(a+i,e),i=0),n+r>t&&(r=ab(t-n,0)),i+a>e&&(a=ab(e-i,0)),[rb(n,t),rb(i,e),ab(r,0),ab(a,0)]}renderMask(){const{maskStyle:t}=this.options;this.mask||(this.mask=document.createElement("div"),this.mask.addEventListener("pointerdown",this.onMaskDragStart)),this.container.appendChild(this.mask),Object.assign(this.mask.style,Object.assign(Object.assign({},t),{cursor:"move",position:"absolute",pointerEvents:"auto"})),this.updateMask()}updateMask(){if(!this.mask)return;const[t,e,n,i]=this.calculateMaskBBox();Object.assign(this.mask.style,{top:e+"px",left:t+"px",width:n+"px",height:i+"px"})}destroy(){var t;this.unbindEvents(),this.canvas.destroy(),null===(t=this.mask)||void 0===t||t.remove(),super.destroy()}}ib.defaultOptions={size:[240,160],shape:"key",padding:10,position:"right-bottom",maskStyle:{border:"1px solid #ddd",background:"rgba(0, 0, 0, 0.1)"},containerStyle:{border:"1px solid #ddd",background:"#fff"},delay:128};const rb=(t,e)=>Math.min(t,e),ab=(t,e)=>Math.max(t,e);var ob=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};const sb={x1:0,y1:0,x2:0,y2:0,visibility:"hidden"};class lb extends bv{constructor(t,e){super(t,Object.assign({},lb.defaultOptions,e)),this.initSnapline=()=>{const t=this.context.canvas.getLayer("transient");this.horizontalLine||(this.horizontalLine=t.appendChild(new Al({style:Object.assign(Object.assign({},sb),this.options.horizontalLineStyle)}))),this.verticalLine||(this.verticalLine=t.appendChild(new Al({style:Object.assign(Object.assign({},sb),this.options.verticalLineStyle)})))},this.isHorizontalSticking=!1,this.isVerticalSticking=!1,this.enableStick=!0,this.autoSnapToLine=(t,e,n)=>ob(this,void 0,void 0,(function*(){const{verticalX:i,horizontalY:r}=n,{tolerance:a}=this.options,{min:[o,s],max:[l,u],center:[c,h]}=e;let d=0,f=0;null!==i&&(ub(l,i){const{target:e}=t,n=.5;if(this.isHorizontalSticking||this.isVerticalSticking){const[i,r]=this.getDelta(t);if(this.isHorizontalSticking&&this.isVerticalSticking&&Math.abs(i)<=n&&Math.abs(r)<=n)return this.context.graph.translateElementBy({[e.id]:[-i,-r]},!1),!1;if(this.isHorizontalSticking&&Math.abs(r)<=n)return this.context.graph.translateElementBy({[e.id]:[0,-r]},!1),!1;if(this.isVerticalSticking&&Math.abs(i)<=n)return this.context.graph.translateElementBy({[e.id]:[-i,0]},!1),!1;this.isHorizontalSticking=!1,this.isVerticalSticking=!1,this.enableStick=!1,setTimeout((()=>{this.enableStick=!0}),200)}return this.enableStick},this.calcSnaplineMetadata=(t,e)=>{const{tolerance:n,shape:i}=this.options,{min:[r,a],max:[o,s],center:[l,u]}=e;let c=null,h=null,d=null,f=null,p=null,g=null;return this.getNodes().some((e=>{if(ec(t.id,e.id))return!1;const m=cb(e,i).getRenderBounds(),{min:[v,y],max:[x,b],center:[_,E]}=m;return null===c&&(ub(_,l){this.initSnapline()},this.onDrag=t=>ob(this,void 0,void 0,(function*(){const{target:e}=t;if(this.options.autoSnap){if(!this.enableSnap(t))return}const n=cb(e,this.options.shape).getRenderBounds(),i=this.calcSnaplineMetadata(e,n);this.hideSnapline(),null===i.verticalX&&null===i.horizontalY||this.updateSnapline(i),this.options.autoSnap&&(yield this.autoSnapToLine(e.id,n,i))})),this.onDragEnd=()=>{this.hideSnapline()},this.bindEvents()}getNodes(){var t;const{filter:e}=this.options,n=((null===(t=this.context.element)||void 0===t?void 0:t.getNodes())||[]).filter((t=>{var e;return"hidden"!==Zd(t,["style","visibility"])&&(null===(e=this.context.viewport)||void 0===e?void 0:e.isInViewport(t.getRenderBounds()))}));return e?n.filter((t=>e(t))):n}hideSnapline(){this.horizontalLine.style.visibility="hidden",this.verticalLine.style.visibility="hidden"}getLineWidth(t){const{lineWidth:e}=this.options[`${t}LineStyle`];return+(e||sb.lineWidth||1)/this.context.graph.getZoom()}updateSnapline(t){const{verticalX:e,verticalMinY:n,verticalMaxY:i,horizontalY:r,horizontalMinX:a,horizontalMaxX:o}=t,[s,l]=this.context.canvas.getSize(),{offset:u}=this.options;null!==r?Object.assign(this.horizontalLine.style,{x1:u===1/0?0:a-u,y1:r,x2:u===1/0?s:o+u,y2:r,visibility:"visible",lineWidth:this.getLineWidth("horizontal")}):this.horizontalLine.style.visibility="hidden",null!==e?Object.assign(this.verticalLine.style,{x1:e,y1:u===1/0?0:n-u,x2:e,y2:u===1/0?l:i+u,visibility:"visible",lineWidth:this.getLineWidth("vertical")}):this.verticalLine.style.visibility="hidden"}getDelta(t){const e=this.context.graph.getZoom();return id([t.dx,t.dy],e)}bindEvents(){return ob(this,void 0,void 0,(function*(){const{graph:t}=this.context;t.on(fc.DRAG_START,this.onDragStart),t.on(fc.DRAG,this.onDrag),t.on(fc.DRAG_END,this.onDragEnd)}))}unbindEvents(){const{graph:t}=this.context;t.off(fc.DRAG_START,this.onDragStart),t.off(fc.DRAG,this.onDrag),t.off(fc.DRAG_END,this.onDragEnd)}destroyElements(){var t,e;null===(t=this.horizontalLine)||void 0===t||t.destroy(),null===(e=this.verticalLine)||void 0===e||e.destroy()}destroy(){this.destroyElements(),this.unbindEvents(),super.destroy()}}lb.defaultOptions={tolerance:5,offset:20,autoSnap:!0,shape:"key",verticalLineStyle:{stroke:"#1783FF"},horizontalLineStyle:{stroke:"#1783FF"},filter:()=>!0};const ub=(t,e)=>Math.abs(t-e),cb=(t,e)=>"function"==typeof e?e(t):t.getShape(e);function hb(t,e){var n={YYYY:t.getFullYear(),MM:t.getMonth()+1,DD:t.getDate(),HH:t.getHours(),mm:t.getMinutes(),ss:t.getSeconds()},i=e;return Object.keys(n).forEach((function(t){var e=n[t];i=i.replace(t,"YYYY"===t?"".concat(e):"".concat(e).padStart(2,"0"))})),i}var db={data:[],animate:{enter:!1,update:{duration:100,easing:"ease-in-out-sine",fill:"both"},exit:{duration:100,fill:"both"}},showArrow:!0,showGrid:!0,showLabel:!0,showLine:!0,showTick:!0,showTitle:!0,showTrunc:!1,dataThreshold:100,lineLineWidth:1,lineStroke:"black",crossPadding:10,titleFill:"black",titleFontSize:12,titlePosition:"lb",titleSpacing:0,titleTextAlign:"center",titleTextBaseline:"middle",lineArrow:function(){return new Nl({style:{d:[["M",10,10],["L",-10,0],["L",10,-10],["L",0,0],["L",10,10],["Z"]],fill:"black",transformOrigin:"center"}})},labelAlign:"parallel",labelDirection:"positive",labelFontSize:12,labelSpacing:0,gridConnect:"line",gridControlAngles:[],gridDirection:"positive",gridLength:0,gridType:"segment",lineArrowOffset:15,lineArrowSize:10,tickDirection:"positive",tickLength:5,tickLineWidth:1,tickStroke:"black",labelOverlap:[]},fb=((0,Qh.Z)({},db,{style:{type:"arc"}}),(0,Qh.Z)({},db,{style:{}}),lx({mainGroup:"main-group",gridGroup:"grid-group",grid:"grid",lineGroup:"line-group",line:"line",tickGroup:"tick-group",tick:"tick",tickItem:"tick-item",labelGroup:"label-group",label:"label",labelItem:"label-item",titleGroup:"title-group",title:"title",lineFirst:"line-first",lineSecond:"line-second"},"axis"));function pb(t,e){return[t[0]*e,t[1]*e]}function gb(t,e){return[t[0]+e[0],t[1]+e[1]]}function mb(t,e){return[t[0]-e[0],t[1]-e[1]]}function vb(t,e){return[Math.min(t[0],e[0]),Math.min(t[1],e[1])]}function yb(t,e){return[Math.max(t[0],e[0]),Math.max(t[1],e[1])]}function xb(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function bb(t){if(0===t[0]&&0===t[1])return[0,0];var e=Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2));return[t[0]/e,t[1]/e]}function _b(t){return t*Math.PI/180}function Eb(t){return Number((180*t/Math.PI).toPrecision(5))}function wb(t,e){return t.style.opacity||(t.style.opacity=1),_x(t,{opacity:0},e)}var Tb=["$el","cx","cy","d","dx","dy","fill","fillOpacity","filter","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","height","img","increasedLineWidthForHitTesting","innerHTML","isBillboard","billboardRotation","isSizeAttenuation","isClosed","isOverflowing","leading","letterSpacing","lineDash","lineHeight","lineWidth","markerEnd","markerEndOffset","markerMid","markerStart","markerStartOffset","maxLines","metrics","miterLimit","offsetX","offsetY","opacity","path","points","r","radius","rx","ry","shadowColor","src","stroke","strokeOpacity","text","textAlign","textBaseline","textDecorationColor","textDecorationLine","textDecorationStyle","textOverflow","textPath","textPathSide","textPathStartOffset","transform","transformOrigin","visibility","width","wordWrap","wordWrapWidth","x","x1","x2","y","y1","y2","z1","z2","zIndex"];function Sb(t){return Tb.includes(t)}function Mb(t){var e={};for(var n in t)Sb(n)&&(e[n]=t[n]);return e}var Cb=lx({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");function Ab(t){return t.reduce((function(t,e,n){return t.push((0,he.ev)([0===n?"M":"L"],(0,he.CR)(e),!1)),t}),[])}function Ob(t,e,n){return"surround"===e.type?function(t,e,n){var i=e.connect,r=void 0===i?"line":i,a=e.center;if("line"===r)return Ab(t);if(!a)return[];var o=xb(t[0],a),s=n?0:1;return t.reduce((function(t,e,n){return 0===n?t.push((0,he.ev)(["M"],(0,he.CR)(e),!1)):t.push((0,he.ev)(["A",o,o,0,0,s],(0,he.CR)(e),!1)),t}),[])}(t,e,n):Ab(t)}function Nb(t,e,n){var i=n.type,r=n.connect,a=n.center,o=n.closed?[["Z"]]:[],s=(0,he.CR)([Ob(t,n),Ob(e.slice().reverse(),n,!0)],2),l=s[0],u=s[1],c=(0,he.CR)([t[0],e.slice(-1)[0]],2),h=c[0],d=c[1],f=function(t,e){return[l,t,u,e,o].flat()};if("line"===r||"surround"===i)return f([(0,he.ev)(["L"],(0,he.CR)(d),!1)],[(0,he.ev)(["L"],(0,he.CR)(h),!1)]);if(!a)throw new Error("Arc grid need to specified center");var p=(0,he.CR)([xb(d,a),xb(h,a)],2),g=p[0],m=p[1];return f([(0,he.ev)(["A",g,g,0,0,1],(0,he.CR)(d),!1),(0,he.ev)(["L"],(0,he.CR)(d),!1)],[(0,he.ev)(["A",m,m,0,0,0],(0,he.CR)(h),!1),(0,he.ev)(["L"],(0,he.CR)(h),!1)])}var Pb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,he.ZT)(e,t),e.prototype.render=function(t,e){t.type,t.center,t.areaFill,t.closed;var n=(0,he._T)(t,["type","center","areaFill","closed"]),i=function(t){var e=t.data,n=void 0===e?[]:e;return t.closed?n.map((function(t){var e=t.points,n=(0,he.CR)(e,1)[0];return(0,he.pi)((0,he.pi)({},t),{points:(0,he.ev)((0,he.ev)([],(0,he.CR)(e),!1),[n],!1)})})):n}(t),r=ox(e).maybeAppendByClassName(Cb.lineGroup,"g"),a=ox(e).maybeAppendByClassName(Cb.regionGroup,"g"),o=function(t,e,n,i){var r=n.animate,a=n.isBillboard,o=e.map((function(t,e){return{id:t.id||"grid-line-".concat(e),d:Ob(t.points,n)}}));return t.selectAll(Cb.line.class).data(o,(function(t){return t.id})).join((function(t){return t.append("path").each((function(t,e){var n=mx(Mb((0,he.pi)({d:t.d},i)),[t,e,o]);this.attr((0,he.pi)({class:Cb.line.name,stroke:"#D9D9D9",lineWidth:1,lineDash:[4,4],isBillboard:a},n))}))}),(function(t){return t.transition((function(t,e){return _x(this,mx(Mb((0,he.pi)({d:t.d},i)),[t,e,o]),r.update)}))}),(function(t){return t.transition((function(){var t=this,e=wb(this,r.exit);return yx(e,(function(){return t.remove()})),e}))})).transitions()}(r,i,t,n),s=function(t,e,n){var i=n.animate,r=n.connect,a=n.areaFill;if(e.length<2||!a||!r)return[];for(var o=Array.isArray(a)?a:[a,"transparent"],s=function(t){return o[t%o.length]},l=[],u=0;u180?1:0,E=t>e?0:1;return"M".concat(p,",").concat(g,",A").concat(s,",").concat(l,",0,").concat(_,",").concat(E,",").concat(v,",").concat(y)}function Zb(t,e,n,i){var r=e.startAngle,a=e.endAngle,o=e.center,s=e.radius;return t.selectAll(fb.line.class).data([{d:Vb.apply(void 0,(0,he.ev)((0,he.ev)([r,a],(0,he.CR)(o),!1),[s],!1))}],(function(t,e){return e})).join((function(t){return t.append("path").attr("className",fb.line.name).styles(e).styles({d:function(t){return t.d}})}),(function(t){return t.transition((function(){var t=this,e=function(t,e,n,i){if(!i)return t.attr("__keyframe_data__",n),null;var r=i.duration,a=void 0===r?0:r,o=Lb(e,n),s=Math.ceil(+a/16),l=new Array(s).fill(0).map((function(t,e,n){return{__keyframe_data__:o(e/(n.length-1))}}));return t.animate(l,(0,he.pi)({fill:"both"},i))}(this,function(t){var e=t.attributes,n=e.startAngle,i=e.endAngle,r=e.center,a=e.radius;return(0,he.ev)((0,he.ev)([n,i],(0,he.CR)(r),!1),[a],!1)}(this),(0,he.ev)((0,he.ev)([r,a],(0,he.CR)(o),!1),[s],!1),i.update);if(e){var n=function(){var e=Zd(t.attributes,"__keyframe_data__");t.style.d=Vb.apply(void 0,(0,he.ev)([],(0,he.CR)(e),!1))};e.onframe=n,e.onfinish=n}return e})).styles(e)}),(function(t){return t.remove()})).styles(n).transitions()}function Wb(t){var e=(0,he.CR)(t,2),n=(0,he.CR)(e[0],2),i=n[0],r=n[1],a=(0,he.CR)(e[1],2);return{x1:i,y1:r,x2:a[0],y2:a[1]}}function Xb(t,e,n,i){var r=e.showTrunc,a=e.startPos,o=e.endPos,s=e.truncRange,l=e.lineExtension,u=(0,he.CR)([a,o],2),c=(0,he.CR)(u[0],2),h=c[0],d=c[1],f=(0,he.CR)(u[1],2),p=f[0],g=f[1],m=(0,he.CR)(l?function(t,e,n){void 0===n&&(n=[0,0]);var i=(0,he.CR)([t,e,n],3),r=(0,he.CR)(i[0],2),a=r[0],o=r[1],s=(0,he.CR)(i[1],2),l=s[0],u=s[1],c=(0,he.CR)(i[2],2),h=c[0],d=c[1],f=(0,he.CR)([l-a,u-o],2),p=f[0],g=f[1],m=Math.sqrt(Math.pow(p,2)+Math.pow(g,2)),v=(0,he.CR)([-h/m,d/m],2),y=v[0],x=v[1];return[y*p,y*g,x*p,x*g]}(a,o,l):new Array(4).fill(0),4),v=m[0],y=m[1],x=m[2],b=m[3],_=function(e){return t.selectAll(fb.line.class).data(e,(function(t,e){return e})).join((function(t){return t.append("line").attr("className",(function(t){return"".concat(fb.line.name," ").concat(t.className)})).styles(n).transition((function(t){return _x(this,Wb(t.line),!1)}))}),(function(t){return t.styles(n).transition((function(t){return _x(this,Wb(t.line),i.update)}))}),(function(t){return t.remove()})).transitions()};if(!r||!s)return _([{line:[[h+v,d+y],[p+x,g+b]],className:fb.line.name}]);var E=(0,he.CR)(s,2),w=E[0],T=E[1],S=p-h,M=g-d,C=(0,he.CR)([h+S*w,d+M*w],2),A=C[0],O=C[1],N=(0,he.CR)([h+S*T,d+M*T],2),P=N[0],L=N[1],R=_([{line:[[h+v,d+y],[A,O]],className:fb.lineFirst.name},{line:[[P,L],[p+x,g+b]],className:fb.lineSecond.name}]);return function(t,e){e.truncRange,e.truncShape,e.lineExtension}(0,e),R}function Yb(t,e,n){var i,r=e.type,a=ex(e,"line");return i="linear"===r?Xb(t,e,Rb(a,"arrow"),n):Zb(t,e,Rb(a,"arrow"),n),function(t,e,n,i){var r,a=n.showArrow,o=n.showTrunc,s=n.lineArrow,l=n.lineArrowOffset,u=n.lineArrowSize;if(r="arc"===e?t.select(fb.line.class):o?t.select(fb.lineSecond.class):t.select(fb.line.class),!a||!s||"arc"===n.type&&Hb(n.startAngle,n.endAngle)){var c=r.node();c&&(c.style.markerEnd=void 0)}else{var h=Bx(s);h.attr(i),Ex(h,u,!0),r.style("markerEnd",h).style("markerEndOffset",-l)}}(t,r,e,a),i}function qb(t){var e=t.type,n=t.gridCenter;return"linear"===e?n:n||t.center}function $b(t,e){var n=e.gridLength;return t.map((function(t,i){var r=t.value,a=(0,he.CR)(Gb(r,e),2),o=a[0],s=a[1],l=(0,he.CR)(pb(function(t,e){return Fb(t,e.gridDirection,e)}(r,e),n),2);return{id:i,points:[[o,s],[o+l[0],s+l[1]]]}}))}function Kb(t,e,n,i){var r=ex(n,"grid"),a=r.type,o=r.areaFill,s=qb(n),l=kb(e,n.gridFilter),u="segment"===a?$b(l,n):function(t,e){var n=e.gridControlAngles,i=qb(e);if(!i)throw new Error("grid center is not provide");if(t.length<2)throw new Error("Invalid grid data");if(!n||0===n.length)throw new Error("Invalid gridControlAngles");var r=(0,he.CR)(i,2),a=r[0],o=r[1];return t.map((function(t,i){var r=t.value,s=(0,he.CR)(Gb(r,e),2),l=s[0],u=s[1],c=(0,he.CR)([l-a,u-o],2),h=c[0],d=c[1],f=[];return n.forEach((function(t){var e=_b(t),n=(0,he.CR)([Math.cos(e),Math.sin(e)],2),i=n[0],r=n[1],s=h*i-d*r+a,l=h*r+d*i+o;f.push([s,l])})),{points:f,id:i}}))}(l,n),c=(0,he.pi)((0,he.pi)({},r),{center:s,areaFill:(0,en.Z)(o)?l.map((function(t,e){return mx(o,[t,e,l])})):o,animate:i,data:u});return t.selectAll(fb.grid.class).data([1]).join((function(t){return t.append((function(){return new Pb({style:c})})).attr("className",fb.grid.name)}),(function(t){return t.transition((function(){return this.update(c)}))}),(function(t){return t.remove()})).transitions()}function Qb(t,e,n,i,r){return void 0===i&&(i=!0),void 0===r&&(r=!1),!!(i&&t===e||r&&t===n)||t>e&&t0,m=i-l,v=r-u,y=c*v-h*m;if(y<0===g)return!1;var x=d*v-f*m;return x<0!==g&&(y>p!==g&&x>p!==g)}function s_(t,e){return[[t[0],t[1],t[2],t[3]],[t[2],t[3],t[4],t[5]],[t[4],t[5],t[6],t[7]],[t[6],t[7],t[0],t[1]]].some((function(t){return o_(e,t)}))}function l_(t,e,n){var i,r,a=e.crossPadding,o=new Set,s=null,l=function(t,e){var n=t.type,i=t.labelDirection,r=t.crossSize;if(!r)return!1;if("arc"===n){var a=t.center,o=t.radius,s=(0,he.CR)(a,2),l=s[0],u=s[1],c="negative"===i?0:r,h=-o-c,d=o+c,f=(0,he.CR)(ux(e),4),p=f[0],g=f[1],m=f[2],v=f[3];return new e_(l+h-v,u+h-p,l+d+g,u+d+m)}var y=(0,he.CR)(t.startPos,2),x=y[0],b=y[1],_=(0,he.CR)(t.endPos,2),E=_[0],w=_[1],T=(0,he.CR)(Ub(t)?[-e,0,e,0]:[0,e,0,-e],4),S=T[0],M=T[1],C=T[2],A=T[3],O=pb(zb(0,t),r),N=new e_(x,b,E,w);return N.x1+=A,N.y1+=S,N.x2+=M+O[0],N.y2+=C+O[1],N}(e,a),u=function(t){return!l||function(t,e,n){var i=t.x1,r=t.x2,a=t.y1,o=t.y2;return a_([[i,a],[r,a],[r,o],[i,o]],n_(e,n))}(l,t)},c=function(t,e){return!t||!t.firstChild||!function(t,e,n){var i,r,a=n_(t,n).flat(1),o=n_(e,n).flat(1),s=[[a[0],a[1],a[2],a[3]],[a[0],a[1],a[4],a[5]],[a[4],a[5],a[6],a[7]],[a[2],a[3],a[6],a[7]]];try{for(var l=(0,he.XA)(s),u=l.next();!u.done;u=l.next())if(s_(o,u.value))return!0}catch(t){i={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}return!1}(t.firstChild,e.firstChild,ux(n))};try{for(var h=(0,he.XA)(t),d=h.next();!d.done;d=h.next()){var f=d.value;u(f)?!s||c(s,f)?s=f:(o.add(s),o.add(f)):o.add(f)}}catch(t){i={error:t}}finally{try{d&&!d.done&&(r=h.return)&&r.call(h)}finally{if(i)throw i.error}}return Array.from(o)}function u_(t,e){return void 0===e&&(e={}),(0,le.Z)(t)?0:"number"==typeof t?t:Math.floor(Fx(t,e))}var c_=function(t,e){var n=e.seq,i=void 0===n?2:n;return t.filter((function(t,e){return!(e%i)||(Vy(t),!1)}))};var h_=new Map([["hide",function(t,e,n,i){var r=t.length,a=e.keepHeader,o=e.keepTail;if(!(r<=1||2===r&&a&&o)){var s,l,u,c=c_,h=function(t){return t.forEach(i.show),t},d=2,f=t.slice(),p=t.slice(),g=Math.min.apply(Math,(0,he.ev)([1],(0,he.CR)(t.map((function(t){return t.getBBox().width}))),!1));if("linear"===n.type&&(jb(n)||Ub(n))){var m=kx(t[0]).left,v=kx(t[r-1]).right,y=Math.abs(v-m)||1;d=Math.max(Math.floor(r*g/y),d)}for(a&&(s=f.splice(0,1)[0]),o&&(l=f.splice(-1,1)[0],f.reverse()),h(f);dg+p;b-=p){var _=x(b);if("object"==typeof _)return _.value}}}],["wrap",function(t,e,n,i){var r=e.wordWrapWidth,a=void 0===r?50:r,o=e.maxLines,s=void 0===o?3:o,l=e.recoverWhenFailed,u=void 0===l||l,c=e.margin,h=void 0===c?[0,0,0,0]:c,d=t.map((function(t){return t.attr("maxLines")||1})),f=Math.min.apply(Math,(0,he.ev)([],(0,he.CR)(d),!1)),p=function(t){var e=t.type,n=t.labelDirection;return"linear"===e&&jb(t)?"negative"===n?"bottom":"top":"middle"}(n),g=function(e){return t.forEach((function(t,n){var r=Array.isArray(e)?e[n]:e;i.wrap(t,a,r,p)}))};if(!(f>s)){for(var m=f;m<=s;m++)if(g(m),l_(t,n,h).length<1)return;u&&g(d)}}]]);function d_(){for(var t=[],e=0;e1)})(t,e,r)&&(null==a||a(t,i,e,n))}))}(this.node().childNodes,t,{hide:Vy,show:Hy,rotate:function(e,n){!function(t,e,n){e.setLocalEulerAngles(t);var i=m_(e.__data__.value,t,n),r=e.querySelector(fb.labelItem.class);r&&y_(r,i)}(+n,e,t)},ellipsis:function(t,e,n){t&&Ux(t,e||1/0,n)},wrap:function(t,e,n){var i,r;t&&(void 0===(i=n)&&(i=2),void 0===r&&(r="top"),jx(t,{wordWrap:!0,wordWrapWidth:e,maxLines:i,textBaseline:r}))},getTextShape:function(t){return t.querySelector("text")}})}function b_(t,e,n,i,r){var a=n.indexOf(e),o=ox(t).append(function(t,e,n,i){var r=i.labelFormatter;return(0,en.Z)(r)?function(){return Bx(mx(r,[t,e,n,zb(t.value,i)]))}:function(){return Bx(t.label||"")}}(e,a,n,r)).attr("className",fb.labelItem.name).node(),s=(0,he.CR)(ix(Db(i,[e,a,n])),2),l=s[0],u=s[1],c=u.transform,h=(0,he._T)(u,["transform"]);Jb(o,c);var d=g_(e,o,r);return o.getLocalEulerAngles()||o.setLocalEulerAngles(d),y_(o,(0,he.pi)((0,he.pi)({},m_(e.value,d,r)),l)),t.attr(h),o}function __(t,e,n,i){var r=kb(e,n.labelFilter),a=ex(n,"label");return t.selectAll(fb.label.class).data(r,(function(t,e){return e})).join((function(i){return i.append("g").attr("className",fb.label.name).transition((function(t){b_(this,t,e,a,n);var i=v_(t,e,n),r=i.x,o=i.y;return this.style.transform="translate(".concat(r,", ").concat(o,")"),null})).call((function(){x_.call(t,n)}))}),(function(r){return r.transition((function(t){var r=function(t,e,n,i){if(void 0===i&&(i="destroy"),function(t,e){return"text"===t.nodeName&&"text"===e.nodeName&&t.attributes.text===e.attributes.text}(t,e))return t.remove(),[null];var r=function(){"destroy"===i?t.destroy():"hide"===i&&Vy(t),e.isVisible()&&Hy(e)};if(!n)return r(),[null];var a=n.duration,o=void 0===a?0:a,s=n.delay,l=void 0===s?0:s,u=Math.ceil(+o/2),c=+o/4,h=(0,he.CR)(t.getGeometryBounds().center,2),d=h[0],f=h[1],p=(0,he.CR)(e.getGeometryBounds().center,2),g=p[0],m=p[1],v=(0,he.CR)([(d+g)/2-d,(f+m)/2-f],2),y=v[0],x=v[1],b=t.style.opacity,_=void 0===b?1:b,E=e.style.opacity,w=void 0===E?1:E,T=t.style.transform||"",S=e.style.transform||"",M=t.animate([{opacity:_,transform:"translate(0, 0) ".concat(T)},{opacity:0,transform:"translate(".concat(y,", ").concat(x,") ").concat(T)}],(0,he.pi)((0,he.pi)({fill:"both"},n),{duration:l+u+c})),C=e.animate([{opacity:0,transform:"translate(".concat(-y,", ").concat(-x,") ").concat(S),offset:.01},{opacity:w,transform:"translate(0, 0) ".concat(S)}],(0,he.pi)((0,he.pi)({fill:"both"},n),{duration:u+c,delay:l+u-c}));return yx(C,r),[M,C]}(this.querySelector(fb.labelItem.class),b_(this,t,e,a,n),i.update),o=v_(t,e,n),s=o.x,l=o.y,u=_x(this,{transform:"translate(".concat(s,", ").concat(l,")")},i.update);return(0,he.ev)((0,he.ev)([],(0,he.CR)(r),!1),[u],!1)})).call((function(e){var i,r,a=Zd(e,"_transitions").flat().filter(t_);r=function(){x_.call(t,n)},0===(i=a).length?r():Promise.all(i.map((function(t){return null==t?void 0:t.finished}))).then(r)}))}),(function(t){return t.transition((function(){var t=this,e=wb(this.childNodes[0],i.exit);return yx(e,(function(){return ox(t).remove()})),e}))})).transitions()}function E_(t,e){return Fb(t,e.tickDirection,e)}function w_(t,e,n,i,r){var a=r.tickLength,o=(0,he.CR)(function(t,e){var n=(0,he.CR)(t,2);return[[0,0],[n[0]*e,n[1]*e]]}(i,mx(a,[t,e,n])),2),s=(0,he.CR)(o[0],2),l=s[0],u=s[1],c=(0,he.CR)(o[1],2);return{x1:l,x2:c[0],y1:u,y2:c[1]}}function T_(t,e,n,i,r,a){var o=function(t,e,n,i,r){var a=r.tickFormatter,o=E_(e.value,r),s="line";return(0,en.Z)(a)&&(s=function(){return mx(a,[e,n,i,o])}),t.append(s).attr("className",fb.tickItem.name)}(ox(this),t,e,n,i);!function(t,e,n,i,r,a,o){var s=E_(t.value,a),l=w_(t,e,n,s,a),u=l.x1,c=l.x2,h=l.y1,d=l.y2,f=(0,he.CR)(ix(Db(o,[t,e,n,s])),2),p=f[0],g=f[1];"line"===i.node().nodeName&&i.styles((0,he.pi)({x1:u,x2:c,y1:h,y2:d},p)),r.attr(g),i.styles(p)}(t,e,n,o,this,i,r);var s=(0,he.CR)(Gb(t.value,i),2),l=s[0],u=s[1];return _x(this,{transform:"translate(".concat(l,", ").concat(u,")")},a)}function S_(t,e,n,i,r){var a=ex(i,"title"),o=(0,he.CR)(ix(a),2),s=o[0],l=o[1],u=l.transform,c=l.transformOrigin,h=(0,he._T)(l,["transform","transformOrigin"]);e.styles(h);var d=u||function(t,e,n){var i=2*t.getGeometryBounds().halfExtents[1];if("vertical"===e){if("left"===n)return"rotate(-90) translate(0, ".concat(i/2,")");if("right"===n)return"rotate(-90) translate(0, -".concat(i/2,")")}return""}(t.node(),s.direction,s.position);t.styles((0,he.pi)((0,he.pi)({},s),{transformOrigin:c})),Jb(t.node(),d);var f=function(t,e,n){var i=n.titlePosition,r=void 0===i?"lb":i,a=n.titleSpacing,o=dx(r),s=t.node().getLocalBounds(),l=(0,he.CR)(s.min,2),u=l[0],c=l[1],h=(0,he.CR)(s.halfExtents,2),d=h[0],f=h[1],p=(0,he.CR)(e.node().getLocalBounds().halfExtents,2),g=p[0],m=p[1],v=(0,he.CR)([u+d,c+f],2),y=v[0],x=v[1],b=(0,he.CR)(ux(a),4),_=b[0],E=b[1],w=b[2],T=b[3];if(["start","end"].includes(r)&&"linear"===n.type){var S=n.startPos,M=n.endPos,C=(0,he.CR)("start"===r?[S,M]:[M,S],2),A=C[0],O=C[1],N=bb([-O[0]+A[0],-O[1]+A[1]]),P=(0,he.CR)(pb(N,_),2),L=P[0],R=P[1];return{x:A[0]+L,y:A[1]+R}}return o.includes("t")&&(x-=f+m+_),o.includes("r")&&(y+=d+g+E),o.includes("l")&&(y-=d+g+T),o.includes("b")&&(x+=f+m+w),{x:y,y:x}}(ox(n._offscreen||n.querySelector(fb.mainGroup.class)),e,i),p=f.x,g=f.y;return _x(e.node(),{transform:"translate(".concat(p,", ").concat(g,")")},r)}function M_(t,e,n,i){var r=t.showLine,a=t.showTick,o=t.showLabel,s=cx(r,e.maybeAppendByClassName(fb.lineGroup,"g"),(function(e){return Yb(e,t,i)}))||[],l=cx(a,e.maybeAppendByClassName(fb.tickGroup,"g"),(function(e){return function(t,e,n,i){var r=kb(e,n.tickFilter),a=ex(n,"tick");return t.selectAll(fb.tick.class).data(r,(function(t){return t.id||t.label})).join((function(t){return t.append("g").attr("className",fb.tick.name).transition((function(t,e){return T_.call(this,t,e,r,n,a,!1)}))}),(function(t){return t.transition((function(t,e){return this.removeChildren(),T_.call(this,t,e,r,n,a,i.update)}))}),(function(t){return t.transition((function(){var t=this,e=wb(this.childNodes[0],i.exit);return yx(e,(function(){return t.remove()})),e}))})).transitions()}(e,n,t,i)}))||[],u=cx(o,e.maybeAppendByClassName(fb.labelGroup,"g"),(function(e){return __(e,n,t,i)}))||[];return(0,he.ev)((0,he.ev)((0,he.ev)([],(0,he.CR)(s),!1),(0,he.CR)(l),!1),(0,he.CR)(u),!1).filter((function(t){return!!t}))}var C_=function(t){function e(e){return t.call(this,e,db)||this}return(0,he.ZT)(e,t),e.prototype.render=function(t,e,n){var i=this,r=t.titleText,a=t.data,o=t.animate,s=t.showTitle,l=t.showGrid,u=t.dataThreshold,c=t.truncRange,h=function(t,e){if(t.length<=e)return t;for(var n=Math.floor(t.length/e),i=[],r=0;rc[0]&&e(n-t)/(e-t):t=>.5}function R_(t,...e){return e.reduce(((t,e)=>n=>t(e(n))),t)}var D_=n(75196),k_=n.n(D_);function I_(t,e,n){let i=n;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function B_(t){const e=k_().get(t);if(!e)return null;const{model:n,value:i}=e;return"rgb"===n?i:"hsl"===n?function(t){const e=t[0]/360,n=t[1]/100,i=t[2]/100,r=t[3];if(0===n)return[255*i,255*i,255*i,r];const a=i<.5?i*(1+n):i+n-i*n,o=2*i-a;return[255*I_(o,a,e+1/3),255*I_(o,a,e),255*I_(o,a,e-1/3),r]}(i):null}const F_=(t,e)=>n=>t*(1-n)+e*n,z_=(t,e)=>"number"==typeof t&&"number"==typeof e?F_(t,e):"string"==typeof t&&"string"==typeof e?((t,e)=>{const n=B_(t),i=B_(e);return null===n||null===i?n?()=>t:()=>e:t=>{const e=new Array(4);for(let r=0;r<4;r+=1){const a=n[r],o=i[r];e[r]=a*(1-t)+o*t}const[r,a,o,s]=e;return`rgba(${Math.round(r)}, ${Math.round(a)}, ${Math.round(o)}, ${s})`}})(t,e):()=>t,G_=(t,e)=>{const n=F_(t,e);return t=>Math.round(n(t))};function j_(t){return!(Qe(t)||(e=t,null===e)||Number.isNaN(t));var e}const U_=Math.sqrt(50),H_=Math.sqrt(10),V_=Math.sqrt(2);function Z_(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),a=i/10**r;return r>=0?(a>=U_?10:a>=H_?5:a>=V_?2:1)*10**r:-(10**-r)/(a>=U_?10:a>=H_?5:a>=V_?2:1)}const W_=(t,e,n=5)=>{const i=[t,e];let r,a=0,o=i.length-1,s=i[a],l=i[o];return l0?(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,r=Z_(s,l,n)):r<0&&(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,r=Z_(s,l,n)),r>0?(i[a]=Math.floor(s/r)*r,i[o]=Math.ceil(l/r)*r):r<0&&(i[a]=Math.ceil(s*r)/r,i[o]=Math.floor(l*r)/r),i};const X_=(t,e,n)=>{const[i,r]=t,[a,o]=e;let s,l;return i{const i=Math.min(t.length,e.length)-1,r=new Array(i),a=new Array(i),o=t[0]>t[i],s=o?[...t].reverse():t,l=o?[...e].reverse():e;for(let t=0;t{const n=function(t,e,n,i,r){let a=n||0,o=i||t.length;const s=r||(t=>t);for(;ae?o=n:a=n+1}return a}(t,e,1,i)-1,o=r[n];return R_(a[n],o)(e)}},q_=(t,e,n,i)=>(Math.min(t.length,e.length)>2?Y_:X_)(t,e,i?G_:n);class $_ extends P_{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:F_,tickCount:5}}map(t){return j_(t)?this.output(t):this.options.unknown}invert(t){return j_(t)?this.input(t):this.options.unknown}nice(){if(!this.options.nice)return;const[t,e,n,...i]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(t,e,n,...i)}getTicks(){const{tickMethod:t}=this.options,[e,n,i,...r]=this.getTickMethodOptions();return t(e,n,i,...r)}getTickMethodOptions(){const{domain:t,tickCount:e}=this.options;return[t[0],t[t.length-1],e]}chooseNice(){return W_}rescale(){this.nice();const[t,e]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t)),this.composeInput(t,e,this.chooseClamp(e))}chooseClamp(t){const{clamp:e,range:n}=this.options,i=this.options.domain.map(t),r=Math.min(i.length,n.length);return e?function(t,e){const n=ee?t:e;return t=>Math.min(Math.max(n,t),i)}(i[0],i[r-1]):N_}composeOutput(t,e){const{domain:n,range:i,round:r,interpolate:a}=this.options,o=q_(n.map(t),i,a,r);this.output=R_(o,e,t)}composeInput(t,e,n){const{domain:i,range:r}=this.options,a=q_(r,i.map(t),F_);this.input=R_(e,n,a)}}const K_=(t,e,n)=>{let i,r,a=t,o=e;if(a===o&&n>0)return[a];let s=Z_(a,o,n);if(0===s||!Number.isFinite(s))return[];if(s>0){a=Math.ceil(a/s),o=Math.floor(o/s),r=new Array(i=Math.ceil(o-a+1));for(let t=0;t`${t}`:"object"==typeof t?t=>JSON.stringify(t):t=>t}class oE extends P_{getDefaultOptions(){return{domain:[],range:[],unknown:nE}}constructor(t){super(t)}map(t){return 0===this.domainIndexMap.size&&iE(this.domainIndexMap,this.getDomain(),this.domainKey),rE({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return 0===this.rangeIndexMap.size&&iE(this.rangeIndexMap,this.getRange(),this.rangeKey),rE({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){const[e]=this.options.domain,[n]=this.options.range;if(this.domainKey=aE(e),this.rangeKey=aE(n),!this.rangeIndexMap)return this.rangeIndexMap=new Map,void(this.domainIndexMap=new Map);t&&!t.range||this.rangeIndexMap.clear(),(!t||t.domain||t.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new oE(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:t,compare:e}=this.options;return this.sortedDomain=e?[...t].sort(e):t,this.sortedDomain}}function sE(t){return Math.round(1e12*t)/1e12}function lE(t){const{domain:e,range:n,paddingOuter:i,paddingInner:r,flex:a,round:o,align:s}=t,l=e.length,u=function(t,e){const n=e-t.length;return n>0?[...t,...new Array(n).fill(1)]:n<0?t.slice(0,e):t}(a,l),[c,h]=n,d=h-c,f=d/(2/l*i+1-1/l*r),p=f*r/l,g=f-l*p,m=function(t){const e=Math.min(...t);return t.map((t=>t/e))}(u),v=g/m.reduce(((t,e)=>t+e)),y=new eE(e.map(((t,e)=>{const n=m[e]*v;return[t,o?Math.floor(n):n]}))),x=new eE(e.map(((t,e)=>{const n=m[e]*v+p;return[t,o?Math.floor(n):n]}))),b=Array.from(x.values()).reduce(((t,e)=>t+e)),_=c+(d-(b-b/l*r))*s;let E=o?Math.round(_):_;const w=new Array(l);for(let t=0;t0?t:e}getPaddingOuter(){const{padding:t,paddingOuter:e}=this.options;return t>0?t:e}rescale(){super.rescale();const{align:t,domain:e,range:n,round:i,flex:r}=this.options,{adjustedRange:a,valueBandWidth:o,valueStep:s}=function(t){var e;const{domain:n}=t,i=n.length;if(0===i)return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};if(null===(e=t.flex)||void 0===e?void 0:e.length)return lE(t);const{range:r,paddingOuter:a,paddingInner:o,round:s,align:l}=t;let u,c,h=r[0];const d=r[1]-h,f=2*a,p=i-o;u=d/Math.max(1,f+p),s&&(u=Math.floor(u)),h+=(d-u*(i-o))*l,c=u*(1-o),s&&(h=Math.round(h),c=Math.round(c));const g=new Array(i).fill(0).map(((t,e)=>h+e*u));return{valueStep:u,valueBandWidth:c,adjustedRange:g}}({align:t,range:n,round:i,flex:r,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:e});this.valueStep=s,this.valueBandWidth=o,this.adjustedRange=a}}var cE=function(t){function e(e){var n=this,i=e.style,r=(0,he._T)(e,["style"]);return(n=t.call(this,(0,Qh.Z)({},{type:"column"},(0,he.pi)({style:i},r)))||this).columnsGroup=new wl({name:"columns"}),n.appendChild(n.columnsGroup),n.render(),n}return(0,he.ZT)(e,t),e.prototype.render=function(){var t=this.attributes,e=t.columns,n=t.x,i=t.y;this.columnsGroup.style.transform="translate(".concat(n,", ").concat(i,")"),ox(this.columnsGroup).selectAll(".column").data(e.flat()).join((function(t){return t.append("rect").attr("className","column").each((function(t){this.attr(t)}))}),(function(t){return t.each((function(t){this.attr(t)}))}),(function(t){return t.remove()}))},e.prototype.update=function(t){this.attr(Xy({},this.attributes,t)),this.render()},e.prototype.clear=function(){this.removeChildren()},e}(yl),hE=function(t){function e(e){var n=this,i=e.style,r=(0,he._T)(e,["style"]);return(n=t.call(this,(0,Qh.Z)({},{type:"lines"},(0,he.pi)({style:i},r)))||this).linesGroup=n.appendChild(new wl),n.areasGroup=n.appendChild(new wl),n.render(),n}return(0,he.ZT)(e,t),e.prototype.render=function(){var t=this.attributes,e=t.lines,n=t.areas,i=t.x,r=t.y;this.style.transform="translate(".concat(i,", ").concat(r,")"),e&&this.renderLines(e),n&&this.renderAreas(n)},e.prototype.clear=function(){this.linesGroup.removeChildren(),this.areasGroup.removeChildren()},e.prototype.update=function(t){this.attr(Xy({},this.attributes,t)),this.render()},e.prototype.renderLines=function(t){ox(this.linesGroup).selectAll(".line").data(t).join((function(t){return t.append("path").attr("className","line").each((function(t){this.attr(t)}))}),(function(t){return t.each((function(t){this.attr(t)}))}),(function(t){return t.remove()}))},e.prototype.renderAreas=function(t){ox(this.linesGroup).selectAll(".area").data(t).join((function(t){return t.append("path").attr("className","area").each((function(t){this.attr(t)}))}),(function(t){return t.each((function(t){this.style(t)}))}),(function(t){return t.remove()}))},e}(yl);function dE(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var i=!!e,r=[],a=0,o=t.length;ai&&(n=a,i=o)}return n}};function yE(t){return 0===t.length?[0,0]:[ze(mE(t,(function(t){return ze(t)||0}))),Ge(vE(t,(function(t){return Ge(t)||0})))]}function xE(t){for(var e=(0,zc.Z)(t),n=e[0].length,i=(0,he.CR)([Array(n).fill(0),Array(n).fill(0)],2),r=i[0],a=i[1],o=0;o=0?(s[l]+=r[l],r[l]=s[l]):(s[l]+=a[l],a[l]=s[l]);return e}var bE=function(t){function e(e){return t.call(this,e,{type:"line",x:0,y:0,width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return(0,he.ZT)(e,t),Object.defineProperty(e.prototype,"rawData",{get:function(){var t=this.attributes.data;if(!t||0===(null==t?void 0:t.length))return[[]];var e=(0,zc.Z)(t);return(0,oe.Z)(e[0])?[e]:e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.attributes.isStack?xE(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseline",{get:function(){var t=this.scales.y,e=(0,he.CR)(t.getOptions().domain||[0,0],2),n=e[0],i=e[1];return i<0?t.map(i):t.map(n<0?0:n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerShape",{get:function(){var t=this.attributes;return{width:t.width,height:t.height}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linesStyle",{get:function(){var t=this,e=this.attributes,n=e.type,i=e.isStack,r=e.smooth;if("line"!==n)throw new Error("linesStyle can only be used in line type");var a=ex(this.attributes,"area"),o=ex(this.attributes,"line"),s=this.containerShape.width,l=this.data;if(0===l[0].length)return{lines:[],areas:[]};var u=this.scales,c=function(t,e){var n,i=e.x,r=e.y,a=(0,he.CR)(r.getOptions().range||[0,0],2),o=a[0],s=a[1];return s>o&&(n=(0,he.CR)([o,s],2),s=n[0],o=n[1]),t.map((function(t){return t.map((function(t,e){return[i.map(e),ce(r.map(t),s,o)]}))}))}(l,{type:"line",x:u.x,y:u.y}),h=[];if(a){var d=this.baseline;h=i?r?function(t,e,n){for(var i=[],r=t.length-1;r>=0;r-=1){var a=t[r],o=pE(a),s=void 0;if(0===r)s=gE(o,e,n);else{var l=pE(t[r-1],!0),u=a[0];l[0][0]="L",s=(0,he.ev)((0,he.ev)((0,he.ev)([],(0,he.CR)(o),!1),(0,he.CR)(l),!1),[(0,he.ev)(["M"],(0,he.CR)(u),!1),["Z"]],!1)}i.push(s)}return i}(c,s,d):function(t,e,n){for(var i=[],r=t.length-1;r>=0;r-=1){var a=fE(t[r]),o=void 0;if(0===r)o=gE(a,e,n);else{var s=fE(t[r-1],!0);s[0][0]="L",o=(0,he.ev)((0,he.ev)((0,he.ev)([],(0,he.CR)(a),!1),(0,he.CR)(s),!1),[["Z"]],!1)}i.push(o)}return i}(c,s,d):function(t,e,n,i){return t.map((function(t){return gE(e?pE(t):fE(t),n,i)}))}(c,r,s,d)}return{lines:c.map((function(e,n){return(0,he.pi)({stroke:t.getColor(n),d:r?pE(e):fE(e)},o)})),areas:h.map((function(e,n){return(0,he.pi)({d:e,fill:t.getColor(n)},a)}))}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnsStyle",{get:function(){var t=this,e=ex(this.attributes,"column"),n=this.attributes,i=n.isStack,r=n.type,a=n.scale;if("column"!==r)throw new Error("columnsStyle can only be used in column type");var o=this.containerShape.height,s=this.rawData;if(!s)return{columns:[]};i&&(s=xE(s));var l=this.createScales(s),u=l.x,c=l.y,h=(0,he.CR)(yE(s),2),d=h[0],f=h[1],p=new Q_({domain:[0,f-(d>0?0:d)],range:[0,o*a]}),g=u.getBandWidth(),m=this.rawData;return{columns:s.map((function(n,r){return n.map((function(n,a){var o=g/s.length;return(0,he.pi)((0,he.pi)({fill:t.getColor(r)},e),i?{x:u.map(a),y:c.map(n),width:g,height:p.map(m[r][a])}:{x:u.map(a)+o*r,y:n>=0?c.map(n):c.map(0),width:o,height:p.map(Math.abs(n))})}))}))}},enumerable:!1,configurable:!0}),e.prototype.render=function(t,e){var n,i,r;(n=e,i=".container",r="rect",n.querySelector(i)?ox(n).select(i):ox(n).append(r)).attr("className","container").node();var a=t.type,o=t.x,s=t.y,l="spark".concat(a),u=(0,he.pi)({x:o,y:s},"line"===a?this.linesStyle:this.columnsStyle);ox(e).selectAll(".spark").data([a]).join((function(t){return t.append((function(t){return"line"===t?new hE({className:l,style:u}):new cE({className:l,style:u})})).attr("className","spark ".concat(l))}),(function(t){return t.update(u)}),(function(t){return t.remove()}))},e.prototype.getColor=function(t){var e=this.attributes.color;return(0,Fe.Z)(e)?e[t%e.length]:(0,en.Z)(e)?e.call(null,t):e},e.prototype.createScales=function(t){var e,n,i=this.attributes,r=i.type,a=i.scale,o=i.range,s=void 0===o?[]:o,l=i.spacing,u=this.containerShape,c=u.width,h=u.height,d=(0,he.CR)(yE(t),2),f=d[0],p=d[1],g=new Q_({domain:[null!==(e=s[0])&&void 0!==e?e:f,null!==(n=s[1])&&void 0!==n?n:p],range:[h,h*(1-a)]});return"line"===r?{type:r,x:new Q_({domain:[0,t[0].length-1],range:[0,c]}),y:g}:{type:r,x:new uE({domain:t[0].map((function(t,e){return e})),range:[0,c],paddingInner:l,paddingOuter:l/2,align:.5}),y:g}},e.tag="sparkline",e}(Ky),_E={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},EE={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},wE={x:0,y:0,orientation:"horizontal",showLabel:!0,type:"start"},TE=lx({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider"),SE=lx({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),ME=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,he.ZT)(e,t),e.prototype.render=function(t,e){var n=t.x,i=t.y,r=t.size,a=void 0===r?10:r,o=t.radius,s=void 0===o?a/4:o,l=t.orientation,u=(0,he._T)(t,["x","y","size","radius","orientation"]),c=a,h=2.4*c,d=ox(e).maybeAppendByClassName(SE.iconRect,"rect").styles((0,he.pi)((0,he.pi)({},u),{width:c,height:h,radius:s,x:n-c/2,y:i-h/2,transformOrigin:"center"})),f=n+1/3*c-c/2,p=n+2/3*c-c/2,g=i+1/4*h-h/2,m=i+3/4*h-h/2;d.maybeAppendByClassName("".concat(SE.iconLine,"-1"),"line").styles((0,he.pi)({x1:f,x2:f,y1:g,y2:m},u)),d.maybeAppendByClassName("".concat(SE.iconLine,"-2"),"line").styles((0,he.pi)({x1:p,x2:p,y1:g,y2:m},u)),"vertical"===l&&(d.node().style.transform="rotate(90)")},e}(Ky),CE=function(t){function e(e){return t.call(this,e,wE)||this}return(0,he.ZT)(e,t),e.prototype.renderLabel=function(t){var e=this,n=this.attributes,i=n.x,r=n.y,a=n.showLabel,o=ex(this.attributes,"label"),s=o.x,l=void 0===s?0:s,u=o.y,c=void 0===u?0:u,h=o.transform,d=o.transformOrigin,f=(0,he._T)(o,["x","y","transform","transformOrigin"]),p=(0,he.CR)(ix(f,[]),2),g=p[0],m=p[1],v=ox(t).maybeAppendByClassName(SE.labelGroup,"g").styles(m),y=(0,he.pi)((0,he.pi)({},EE),g),x=y.text,b=(0,he._T)(y,["text"]);cx(!!a,v,(function(t){e.label=t.maybeAppendByClassName(SE.label,"text").styles((0,he.pi)((0,he.pi)({},b),{x:i+l,y:r+c,transform:h,transformOrigin:d,text:"".concat(x)})),e.label.on("mousedown",(function(t){t.stopPropagation()})),e.label.on("touchstart",(function(t){t.stopPropagation()}))}))},e.prototype.renderIcon=function(t){var e=this.attributes,n=e.x,i=e.y,r=e.orientation,a=e.type,o=(0,he.pi)((0,he.pi)({x:n,y:i,orientation:r},_E),ex(this.attributes,"icon")),s=this.attributes.iconShape,l=void 0===s?function(){return new ME({style:o})}:s;ox(t).maybeAppendByClassName(SE.iconGroup,"g").selectAll(SE.icon.class).data([l]).join((function(t){return t.append("string"==typeof l?l:function(){return l(a)}).attr("className",SE.icon.name)}),(function(t){return t.update(o)}),(function(t){return t.remove()}))},e.prototype.render=function(t,e){this.renderIcon(e),this.renderLabel(e)},e}(Ky),AE=function(t){function e(e){var n=t.call(this,e,(0,he.pi)((0,he.pi)((0,he.pi)({x:0,y:0,animate:{duration:100,fill:"both"},brushable:!0,formatter:function(t){return t.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},nx(wE,"handle")),nx(_E,"handleIcon")),nx(EE,"handleLabel")))||this;return n.range=[0,1],n.onDragStart=function(t){return function(e){e.stopPropagation(),n.target=t,n.prevPos=n.getOrientVal(A_(e));var i=n.availableSpace,r=i.x,a=i.y,o=n.getBBox(),s=o.x,l=o.y;n.selectionStartPos=n.getRatio(n.prevPos-n.getOrientVal([r,a])-n.getOrientVal([+s,+l])),n.selectionWidth=0,document.addEventListener("pointermove",n.onDragging),document.addEventListener("pointerup",n.onDragEnd)}},n.onDragging=function(t){var e=n.attributes,i=e.slidable,r=e.brushable,a=e.type;t.stopPropagation();var o=n.getOrientVal(A_(t)),s=o-n.prevPos;if(s){var l=n.getRatio(s);switch(n.target){case"start":i&&n.setValuesOffset(l);break;case"end":i&&n.setValuesOffset(0,l);break;case"selection":i&&n.setValuesOffset(l,l);break;case"track":if(!r)return;n.selectionWidth+=l,"range"===a?n.innerSetValues([n.selectionStartPos,n.selectionStartPos+n.selectionWidth].sort(),!0):n.innerSetValues([0,n.selectionStartPos+n.selectionWidth],!0)}n.prevPos=o}},n.onDragEnd=function(){document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointerup",n.onDragEnd),n.target="",n.updateHandlesPosition(!1)},n.onValueChange=function(t){var e=n.attributes,i=e.onChange,r=e.type,a="range"===r?t:t[1],o="range"===r?n.getValues():n.getValues()[1],s=new gs("valuechange",{detail:{oldValue:a,value:o}});n.dispatchEvent(s),null==i||i(o)},n.selectionStartPos=0,n.selectionWidth=0,n.prevPos=0,n.target="",n}return(0,he.ZT)(e,t),Object.defineProperty(e.prototype,"values",{get:function(){return this.attributes.values},set:function(t){this.attributes.values=this.clampValues(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sparklineStyle",{get:function(){if("horizontal"!==this.attributes.orientation)return null;var t=ex(this.attributes,"sparkline");return(0,he.pi)((0,he.pi)({zIndex:0},this.availableSpace),t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var t=this.attributes,e=t.trackLength,n=t.trackSize,i=(0,he.CR)(this.getOrientVal([[e,n],[n,e]]),2);return{width:i[0],height:i[1]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes,e=(t.x,t.y,t.padding),n=(0,he.CR)(ux(e),4),i=n[0],r=n[1],a=n[2],o=n[3],s=this.shape;return{x:o,y:i,width:s.width-(o+r),height:s.height-(i+a)}},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.values},e.prototype.setValues=function(t,e){void 0===t&&(t=[0,0]),void 0===e&&(e=!1),this.attributes.values=t;var n=!1!==e&&this.attributes.animate;this.updateSelectionArea(n),this.updateHandlesPosition(n)},e.prototype.updateSelectionArea=function(t){var e=this.calcSelectionArea();this.foregroundGroup.selectAll(TE.selection.class).each((function(n,i){_x(this,e[i],t)}))},e.prototype.updateHandlesPosition=function(t){this.attributes.showHandle&&(this.startHandle&&_x(this.startHandle,this.getHandleStyle("start"),t),this.endHandle&&_x(this.endHandle,this.getHandleStyle("end"),t))},e.prototype.innerSetValues=function(t,e){void 0===t&&(t=[0,0]),void 0===e&&(e=!1);var n=this.values,i=this.clampValues(t);this.attributes.values=i,this.setValues(i),e&&this.onValueChange(n)},e.prototype.renderTrack=function(t){var e=this.attributes,n=e.x,i=e.y,r=ex(this.attributes,"track");this.trackShape=ox(t).maybeAppendByClassName(TE.track,"rect").styles((0,he.pi)((0,he.pi)({x:n,y:i},this.shape),r))},e.prototype.renderBrushArea=function(t){var e=this.attributes,n=e.x,i=e.y,r=e.brushable;this.brushArea=ox(t).maybeAppendByClassName(TE.brushArea,"rect").styles((0,he.pi)({x:n,y:i,fill:"transparent",cursor:r?"crosshair":"default"},this.shape))},e.prototype.renderSparkline=function(t){var e=this,n=this.attributes,i=n.x,r=n.y;cx("horizontal"===n.orientation,ox(t).maybeAppendByClassName(TE.sparklineGroup,"g"),(function(t){var n=(0,he.pi)((0,he.pi)({},e.sparklineStyle),{x:i,y:r});t.maybeAppendByClassName(TE.sparkline,(function(){return new bE({style:n})})).update(n)}))},e.prototype.renderHandles=function(){var t,e=this,n=this.attributes,i=n.showHandle,r=n.type,a=i?"range"===r?["start","end"]:["end"]:[],o=this;null===(t=this.foregroundGroup)||void 0===t||t.selectAll(TE.handle.class).data(a.map((function(t){return{type:t}})),(function(t){return t.type})).join((function(t){return t.append((function(t){var n=t.type;return new CE({style:e.getHandleStyle(n)})})).each((function(t){var e=t.type;this.attr("class","".concat(TE.handle.name," ").concat(e,"-handle"));var n="".concat(e,"Handle");o[n]=this,this.addEventListener("pointerdown",o.onDragStart(e))}))}),(function(t){return t.each((function(t){var e=t.type;this.update(o.getHandleStyle(e))}))}),(function(t){return t.each((function(t){var e=t.type,n="".concat(e,"Handle");o[n]=void 0})).remove()}))},e.prototype.renderSelection=function(t){var e=this.attributes,n=e.x,i=e.y,r=e.type,a=e.selectionType;this.foregroundGroup=ox(t).maybeAppendByClassName(TE.foreground,"g");var o=ex(this.attributes,"selection"),s=function(t){return t.style("visibility",(function(t){return t.show?"visible":"hidden"})).style("cursor",(function(t){return"select"===a?"grab":"invert"===a?"crosshair":"default"})).styles((0,he.pi)((0,he.pi)({},o),{transform:"translate(".concat(n,", ").concat(i,")")}))},l=this;this.foregroundGroup.selectAll(TE.selection.class).data("value"===r?[]:this.calcSelectionArea().map((function(t,e){return{style:(0,he.pi)({},t),index:e,show:"select"===a?1===e:1!==e}})),(function(t){return t.index})).join((function(t){return t.append("rect").attr("className",TE.selection.name).call(s).each((function(t,e){var n=this;1===e?(l.selectionShape=ox(this),this.on("pointerdown",(function(t){n.attr("cursor","grabbing"),l.onDragStart("selection")(t)})),l.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),l.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),l.dispatchCustomEvent(this,"click","selectionClick"),this.addEventListener("pointerdown",(function(){n.attr("cursor","grabbing")})),this.addEventListener("pointerup",(function(){n.attr("cursor","pointer")})),this.addEventListener("pointerover",(function(){n.attr("cursor","pointer")}))):this.on("pointerdown",l.onDragStart("track"))}))}),(function(t){return t.call(s)}),(function(t){return t.remove()})),this.updateSelectionArea(!1),this.renderHandles()},e.prototype.render=function(t,e){this.renderTrack(e),this.renderSparkline(e),this.renderBrushArea(e),this.renderSelection(e)},e.prototype.clampValues=function(t,e){var n;void 0===e&&(e=4);var i=(0,he.CR)(this.range,2),r=i[0],a=i[1],o=(0,he.CR)(this.getValues().map((function(t){return O_(t,e)})),2),s=o[0],l=o[1],u=Array.isArray(t)?t:[s,null!=t?t:l],c=(0,he.CR)((u||[s,l]).map((function(t){return O_(t,e)})),2),h=c[0],d=c[1];if("value"===this.attributes.type)return[0,ce(d,r,a)];h>d&&(h=(n=(0,he.CR)([d,h],2))[0],d=n[1]);var f=d-h;return f>a-r?[r,a]:ha?l===a&&s===h?[h,a]:[a-f,a]:[h,d]},e.prototype.calcSelectionArea=function(t){var e=(0,he.CR)(this.clampValues(t),2),n=e[0],i=e[1],r=this.availableSpace,a=r.x,o=r.y,s=r.width,l=r.height;return this.getOrientVal([[{y:o,height:l,x:a,width:n*s},{y:o,height:l,x:n*s+a,width:(i-n)*s},{y:o,height:l,x:i*s,width:(1-i)*s}],[{x:a,width:s,y:o,height:n*l},{x:a,width:s,y:n*l+o,height:(i-n)*l},{x:a,width:s,y:i*l,height:(1-i)*l}]])},e.prototype.calcHandlePosition=function(t){var e=this.attributes.handleIconOffset,n=this.availableSpace,i=n.x,r=n.y,a=n.width,o=n.height,s=(0,he.CR)(this.clampValues(),2),l=s[0],u=s[1],c="start"===t?-e:e,h=("start"===t?l:u)*this.getOrientVal([a,o])+c;return{x:i+this.getOrientVal([h,a/2]),y:r+this.getOrientVal([o/2,h])}},e.prototype.inferTextStyle=function(t){return"horizontal"===this.attributes.orientation?{}:"start"===t?{transformOrigin:"left center",transform:"rotate(90)",textAlign:"start"}:"end"===t?{transformOrigin:"right center",transform:"rotate(90)",textAlign:"end"}:{}},e.prototype.calcHandleText=function(t){var e,n=this.attributes,i=n.type,r=n.orientation,a=n.formatter,o=n.autoFitLabel,s=ex(this.attributes,"handle"),l=ex(s,"label"),u=s.spacing,c=this.getHandleSize(),h=this.clampValues(),d=a("start"===t?h[0]:h[1]),f=new rx({style:(0,he.pi)((0,he.pi)((0,he.pi)({},l),this.inferTextStyle(t)),{text:d})}),p=f.getBBox(),g=p.width,m=p.height;if(f.destroy(),!o){if("value"===i)return{text:d,x:0,y:-m-u};var v=u+c+("horizontal"===r?g/2:0);return(e={text:d})["horizontal"===r?"x":"y"]="start"===t?-v:v,e}var y=0,x=0,b=this.availableSpace,_=b.width,E=b.height,w=this.calcSelectionArea()[1],T=w.x,S=w.y,M=w.width,C=w.height,A=u+c;if("horizontal"===r){var O=A+g/2;if("start"===t)y=T-A-g>0?-O:O;else y=_-T-M-A>g?O:-O}else{var N=m+A;x="start"===t?S-c>m?-N:A:E-(S+C)-c>m?N:-A}return{x:y,y:x,text:d}},e.prototype.getHandleLabelStyle=function(t){var e=ex(this.attributes,"handleLabel");return(0,he.pi)((0,he.pi)((0,he.pi)({},e),this.calcHandleText(t)),this.inferTextStyle(t))},e.prototype.getHandleIconStyle=function(){var t=this.attributes.handleIconShape,e=ex(this.attributes,"handleIcon"),n=this.getOrientVal(["ew-resize","ns-resize"]),i=this.getHandleSize();return(0,he.pi)({cursor:n,shape:t,size:i},e)},e.prototype.getHandleStyle=function(t){var e=this.attributes,n=e.x,i=e.y,r=e.showLabel,a=e.showLabelOnInteraction,o=e.orientation,s=this.calcHandlePosition(t),l=s.x,u=s.y,c=this.calcHandleText(t),h=r;return!r&&a&&(h=!!this.target),(0,he.pi)((0,he.pi)((0,he.pi)({},nx(this.getHandleIconStyle(),"icon")),nx((0,he.pi)((0,he.pi)({},this.getHandleLabelStyle(t)),c),"label")),{transform:"translate(".concat(l+n,", ").concat(u+i,")"),orientation:o,showLabel:h,type:t,zIndex:3})},e.prototype.getHandleSize=function(){var t=this.attributes,e=t.handleIconSize,n=t.width,i=t.height;return e||Math.floor((this.getOrientVal([+i,+n])+4)/2.4)},e.prototype.getOrientVal=function(t){var e=(0,he.CR)(t,2),n=e[0],i=e[1];return"horizontal"===this.attributes.orientation?n:i},e.prototype.setValuesOffset=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!1);var i=this.attributes.type,r=(0,he.CR)(this.getValues(),2),a=[r[0]+("range"===i?t:0),r[1]+e].sort();n?this.setValues(a):this.innerSetValues(a,!0)},e.prototype.getRatio=function(t){var e=this.availableSpace,n=e.width,i=e.height;return t/this.getOrientVal([n,i])},e.prototype.dispatchCustomEvent=function(t,e,n){var i=this;t.on(e,(function(t){t.stopPropagation(),i.dispatchEvent(new gs(n,{detail:t}))}))},e.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var t=this.brushArea;this.dispatchCustomEvent(t,"click","trackClick"),this.dispatchCustomEvent(t,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(t,"pointerleave","trackMouseleave"),t.on("pointerdown",this.onDragStart("track"))},e.prototype.onScroll=function(t){if(this.attributes.scrollable){var e=t.deltaX,n=t.deltaY||e,i=this.getRatio(n);this.setValuesOffset(i,i,!0)}},e.tag="slider",e}(Ky),OE={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(t){return t.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},NE=lx({background:"background",labelGroup:"label-group",label:"label"},"indicator"),PE=function(t){function e(e){var n=t.call(this,e,OE)||this;return n.point=[0,0],n.group=n.appendChild(new wl({})),n.isMutationObserved=!0,n}return(0,he.ZT)(e,t),e.prototype.renderBackground=function(){if(this.label){var t=this.attributes,e=t.position,n=t.padding,i=(0,he.CR)(ux(n),4),r=i[0],a=i[1],o=i[2],s=i[3],l=this.label.node().getLocalBounds(),u=l.min,c=l.max,h=new sx(u[0]-s,u[1]-r,c[0]+a-u[0]+s,c[1]+o-u[1]+r),d=this.getPath(e,h),f=ex(this.attributes,"background");this.background=ox(this.group).maybeAppendByClassName(NE.background,"path").styles((0,he.pi)((0,he.pi)({},f),{d:d})),this.group.appendChild(this.label.node())}},e.prototype.renderLabel=function(){var t=this.attributes,e=t.formatter,n=t.labelText,i=ex(this.attributes,"label"),r=(0,he.CR)(ix(i),2),a=r[0],o=r[1],s=(a.text,(0,he._T)(a,["text"]));(this.label=ox(this.group).maybeAppendByClassName(NE.labelGroup,"g").styles(o),n)&&this.label.maybeAppendByClassName(NE.label,(function(){return Bx(e(n))})).style("text",e(n).toString()).selectAll("text").styles(s)},e.prototype.adjustLayout=function(){var t=(0,he.CR)(this.point,2),e=t[0],n=t[1],i=this.attributes,r=i.x,a=i.y;this.group.attr("transform","translate(".concat(r-e,", ").concat(a-n,")"))},e.prototype.getPath=function(t,e){var n=this.attributes.radius,i=e.x,r=e.y,a=e.width,o=e.height,s=[["M",i+n,r],["L",i+a-n,r],["A",n,n,0,0,1,i+a,r+n],["L",i+a,r+o-n],["A",n,n,0,0,1,i+a-n,r+o],["L",i+n,r+o],["A",n,n,0,0,1,i,r+o-n],["L",i,r+n],["A",n,n,0,0,1,i+n,r],["Z"]],l={top:4,right:6,bottom:0,left:2}[t],u=this.createCorner([s[l].slice(-2),s[l+1].slice(-2)]);return s.splice.apply(s,(0,he.ev)([l+1,1],(0,he.CR)(u),!1)),s[0][0]="M",s},e.prototype.createCorner=function(t,e){void 0===e&&(e=10);var n=Ix.apply(void 0,(0,he.ev)([],(0,he.CR)(t),!1)),i=(0,he.CR)(t,2),r=(0,he.CR)(i[0],2),a=r[0],o=r[1],s=(0,he.CR)(i[1],2),l=s[0],u=s[1],c=(0,he.CR)(n?[l-a,[a,l]]:[u-o,[o,u]],2),h=c[0],d=(0,he.CR)(c[1],2),f=d[0],p=d[1],g=h/2,m=e*(h/Math.abs(h)),v=m/2,y=m*Math.sqrt(3)/2*.8,x=(0,he.CR)([f,f+g-v,f+g,f+g+v,p],5),b=x[0],_=x[1],E=x[2],w=x[3],T=x[4];return n?(this.point=[E,o-y],[["L",b,o],["L",_,o],["L",E,o-y],["L",w,o],["L",T,o]]):(this.point=[a+y,E],[["L",a,b],["L",a,_],["L",a+y,E],["L",a,w],["L",a,T]])},e.prototype.applyVisibility=function(){"hidden"===this.attributes.visibility?Vy(this):Hy(this)},e.prototype.bindEvents=function(){this.label.on(Ss.BOUNDS_CHANGED,this.renderBackground)},e.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},e}(Ky),LE=function(t){function e(n){var i=t.call(this,Xy({},e.defaultOptions,n))||this;return i.hoverColor="#f5f5f5",i.selectedColor="#e6f7ff",i.background=i.appendChild(new kl({})),i.label=i.background.appendChild(new wl({})),i}return(0,he.ZT)(e,t),Object.defineProperty(e.prototype,"padding",{get:function(){return ux(this.style.padding)},enumerable:!1,configurable:!0}),e.prototype.renderLabel=function(){var t=this.style,e=t.label,n=t.value,i=ex(this.attributes,"label");ox(this.label).maybeAppend(".label",(function(){return Bx(e)})).attr("className","label").styles(i),this.label.attr("__data__",n)},e.prototype.renderBackground=function(){var t=this.label.getBBox(),e=(0,he.CR)(this.padding,4),n=e[0],i=e[1],r=e[2],a=e[3],o=t.width,s=t.height,l=o+a+i,u=s+n+r,c=ex(this.attributes,"background"),h=this.style,d=h.width,f=void 0===d?0:d,p=h.height,g=void 0===p?0:p,m=h.selected;this.background.attr((0,he.pi)((0,he.pi)({},c),{width:Math.max(l,f),height:Math.max(u,g),fill:m?this.selectedColor:"#fff"})),this.label.attr({transform:"translate(".concat(a,", ").concat((u-s)/2,")")})},e.prototype.render=function(){this.renderLabel(),this.renderBackground()},e.prototype.bindEvents=function(){var t=this;this.addEventListener("pointerenter",(function(){t.style.selected||t.background.attr("fill",t.hoverColor)})),this.addEventListener("pointerleave",(function(){t.style.selected||t.background.attr("fill",t.style.backgroundFill)}));var e=this;this.addEventListener("click",(function(){var n=t.style,i=n.label,r=n.value,a=n.onClick;null==a||a(r,{label:i,value:r},e)}))},e.defaultOptions={style:{value:"",label:"",cursor:"pointer"}},e}(Ky),RE=function(t){function e(n){var i,r,a=t.call(this,Xy({},e.defaultOptions,n))||this;a.currentValue=null===(i=e.defaultOptions.style)||void 0===i?void 0:i.defaultValue,a.isPointerInSelect=!1,a.select=a.appendChild(new kl({className:"select",style:{cursor:"pointer",width:0,height:0}})),a.dropdown=a.appendChild(new kl({className:"dropdown"}));var o=a.style.defaultValue;return o&&(null===(r=a.style.options)||void 0===r?void 0:r.some((function(t){return t.value===o})))&&(a.currentValue=o),a}return(0,he.ZT)(e,t),e.prototype.setValue=function(t){this.currentValue=t,this.render()},e.prototype.getValue=function(){return this.currentValue},Object.defineProperty(e.prototype,"dropdownPadding",{get:function(){return ux(this.style.dropdownPadding)},enumerable:!1,configurable:!0}),e.prototype.renderSelect=function(){var t,e=this,n=this.style,i=n.x,r=n.y,a=n.width,o=n.height,s=n.bordered,l=n.showDropdownIcon,u=ex(this.attributes,"select"),c=ex(this.attributes,"placeholder");this.select.attr((0,he.pi)((0,he.pi)({x:i,y:r,width:a,height:o},u),{fill:"#fff",strokeWidth:s?1:0}));var h=this.dropdownPadding;l&&ox(this.select).maybeAppend(".dropdown-icon","path").style("d","M-5,-3.5 L0,3.5 L5,-3.5").style("transform","translate(".concat(i+a-10-h[1]-h[3],", ").concat(r+o/2,")")).style("lineWidth",1).style("stroke",this.select.style.stroke);var d=null===(t=this.style.options)||void 0===t?void 0:t.find((function(t){return t.value===e.currentValue})),f=(0,he.pi)({x:i+h[3]},c);ox(this.select).selectAll(".placeholder").data(d?[]:[1]).join((function(t){return t.append("text").attr("className","placeholder").styles(f).style("y",(function(){var t=this.getBBox();return r+(o-t.height)/2}))}),(function(t){return t.styles(f)}),(function(t){return t.remove()}));var p=ex(this.attributes,"optionLabel"),g=(0,he.pi)({x:i+h[3]},p);ox(this.select).selectAll(".value").data(d?[d]:[]).join((function(t){return t.append((function(t){return Bx(t.label)})).attr("className","value").styles(g).style("y",(function(){var t=this.getBBox();return r+(o-t.height)/2}))}),(function(t){return t.styles(g)}),(function(t){return t.remove()}))},e.prototype.renderDropdown=function(){var t,e,n=this,i=this.style,r=i.x,a=i.y,o=i.width,s=i.height,l=i.options,u=i.onSelect,c=i.open,h=ex(this.attributes,"dropdown"),d=ex(this.attributes,"option"),f=this.dropdownPadding;ox(this.dropdown).maybeAppend(".dropdown-container","g").attr("className","dropdown-container").selectAll(".dropdown-item").data(l,(function(t){return t.value})).join((function(t){return t.append((function(t){return new LE({className:"dropdown-item",style:(0,he.pi)((0,he.pi)((0,he.pi)({},t),d),{width:o-f[1]-f[3],selected:t.value===n.currentValue,onClick:function(t,e,i){n.setValue(t),null==u||u(t,e,i),n.dispatchEvent(new gs("change",{detail:{value:t,option:e,item:i}})),Vy(n.dropdown)}})})})).each((function(t,e){var n,i=(null===(n=this.parentNode)||void 0===n?void 0:n.children).reduce((function(t,n,i){return ie.time?1:0}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"space",{get:function(){var t=this.attributes,e=t.x,n=t.y,i=t.width,r=t.height,a=t.type,o=t.controllerHeight,s=ce(+r-o,0,+r),l=new sx(e,n+ +r-o,+i,o),u=0,c="time"===a?10:s;return{axisBBox:"chart"===a?new sx(e,n+s-(u=35),+i,u):new sx,controllerBBox:l,timelineBBox:new sx(e,n+("time"===a?s:s-c),+i,c-u)}},enumerable:!1,configurable:!0}),e.prototype.setBySliderValues=function(t){var e,n,i=this.data,r=(0,he.CR)(Array.isArray(t)?t:[0,t],2),a=r[0],o=r[1],s=i.length,l=i[Math.floor(a*s)],u=i[Math.ceil(o*s)-(Array.isArray(t)?0:1)];this.states.values=[null!==(e=null==l?void 0:l.time)&&void 0!==e?e:i[0].time,null!==(n=null==u?void 0:u.time)&&void 0!==n?n:1/0]},e.prototype.setByTimebarValues=function(t){var e,n,i,r=this.data,a=(0,he.CR)(Array.isArray(t)?t:[void 0,t],2),o=a[0],s=a[1],l=r.find((function(t){return t.time===o})),u=r.find((function(t){return t.time===s}));this.states.values=[null!==(e=null==l?void 0:l.time)&&void 0!==e?e:null===(n=r[0])||void 0===n?void 0:n.time,null!==(i=null==u?void 0:u.time)&&void 0!==i?i:1/0]},e.prototype.setByIndex=function(t){var e,n,i,r,a=this.data,o=(0,he.CR)(t,2),s=o[0],l=o[1];this.states.values=[null!==(n=null===(e=a[s])||void 0===e?void 0:e.time)&&void 0!==n?n:a[0].time,null!==(r=null===(i=this.data[l])||void 0===i?void 0:i.time)&&void 0!==r?r:1/0]},Object.defineProperty(e.prototype,"sliderValues",{get:function(){var t,e=this.states,n=e.values,i=e.selectionType,r=(0,he.CR)(Array.isArray(n)?n:[void 0,n],2),a=r[0],o=r[1],s=this.data,l=s.length,u="value"===i;return[(t=s.findIndex((function(t){return t.time===a})),u?0:t>-1?t/l:0),function(){if(o===1/0)return 1;var t=s.findIndex((function(t){return t.time===o}));return t>-1?t/l:u?.5:1}()]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){var t=this.states,e=t.values,n=t.selectionType,i=(0,he.CR)(Array.isArray(e)?e:[this.data[0].time,e],2),r=i[0],a=i[1];return"value"===n?a:[r,a]},enumerable:!1,configurable:!0}),e.prototype.getDatumByRatio=function(t){var e=this.data,n=e.length;return e[Math.floor(t*(n-1))]},Object.defineProperty(e.prototype,"chartHandleIconShape",{get:function(){var t=this.states.selectionType,e=this.space.timelineBBox.height;return"range"===t?function(t){return new ew({style:{type:t,height:e,iconSize:e/6}})}:function(){return new Al({style:{x1:0,y1:-e/2,x2:0,y2:e/2,lineWidth:2,stroke:"#c8c8c8"}})}},enumerable:!1,configurable:!0}),e.prototype.getChartStyle=function(t){var e=this,n=t.x,i=t.y,r=t.width,a=t.height,o=this.states,s=o.selectionType,l=o.chartType,u=this.data,c=this.attributes,h=c.type,d=c.labelFormatter,f=ex(this.attributes,"chart"),p=(f.type,(0,he._T)(f,["type"])),g="range"===s;if("time"===h)return(0,he.pi)({handleIconShape:function(){return new tw({})},selectionFill:"#2e7ff8",selectionFillOpacity:1,showLabelOnInteraction:!0,handleLabelDy:g?-15:0,autoFitLabel:g,handleSpacing:g?-15:0,trackFill:"#edeeef",trackLength:r,trackOpacity:.5,trackRadius:a/2,trackSize:a/2,type:s,values:this.sliderValues,formatter:function(t){if(d)return d(t);var n=e.getDatumByRatio(t).time;return"number"==typeof n?iw(n):hb(n,"YYYY-MM-DD HH:mm:ss")},transform:"translate(".concat(n,", ").concat(i,")"),zIndex:1},p);var m="range"===s?5:0,v=u.map((function(t){return t.value}));return(0,he.pi)({handleIconOffset:m,handleIconShape:this.chartHandleIconShape,selectionFill:"#fff",selectionFillOpacity:.5,selectionType:"invert",sparklineSpacing:.1,sparklineColumnLineWidth:0,sparklineColor:"#d4e5fd",sparklineAreaOpacity:1,sparklineAreaLineWidth:0,sparklineData:v,sparklineType:l,sparklineScale:.8,trackLength:r,trackSize:a,type:s,values:this.sliderValues,transform:"translate(".concat(n,", ").concat(i,")"),zIndex:1},p)},e.prototype.renderChart=function(t){void 0===t&&(t=this.space.timelineBBox),this.timeline.update(this.getChartStyle(t))},e.prototype.updateSelection=function(){this.timeline.setValues(this.sliderValues,!0),this.handleSliderChange(this.sliderValues)},e.prototype.getAxisStyle=function(t){var e=this.data,n=this.attributes,i=n.interval,r=n.labelFormatter,a=ex(this.attributes,"axis"),o=t.x,s=t.y,l=t.width,u=(0,he.ev)((0,he.ev)([],(0,he.CR)(e),!1),[{time:0}],!1).map((function(t,e,n){var i=t.time;return{label:"".concat(i),value:e/(n.length-1),time:i}})),c=(0,he.pi)({startPos:[o,s],endPos:[o+l,s],data:u,labelFilter:function(t,e){return ei?"value"===o?[0,0]:"acc"===s?[a(n),a(n)]:[0,a(r-n)]:n<0?"acc"===s?[0,a(r)]:[a(n+i-r),i]:[a(n),a(r)]}(f);return this.setByIndex(g),this.updateSelection(),g},e.prototype.internalBackward=function(t){var e,n,i=this.moveSelection("backward",t);return t||(null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onBackward)||void 0===n||n.call(e),this.dispatchOnChange()),i},e.prototype.backward=function(){this.internalBackward()},e.prototype.internalPlay=function(t){var e,n,i=this,r=this.data,a=this.attributes.loop,o=this.states.speed,s=void 0===o?1:o;this.playInterval=window.setInterval((function(){i.internalForward()[1]!==r.length||a||(i.internalPause(),i.renderController())}),1e3/s),this.states.state="play",!t&&(null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onPlay)||void 0===n||n.call(e))},e.prototype.play=function(){this.internalPlay()},e.prototype.internalPause=function(t){var e,n;clearInterval(this.playInterval),this.states.state="pause",!t&&(null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onPause)||void 0===n||n.call(e))},e.prototype.pause=function(){this.internalPause()},e.prototype.internalForward=function(t){var e,n,i=this.moveSelection("forward",t);return t||(null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onForward)||void 0===n||n.call(e),this.dispatchOnChange()),i},e.prototype.forward=function(){this.internalForward()},e.prototype.handleSpeedChange=function(t){var e,n;this.states.speed=t,"play"===this.states.state&&(this.internalPause(!0),this.internalPlay(!0)),null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onSpeedChange)||void 0===n||n.call(e,t)},e.prototype.handleSelectionTypeChange=function(t){var e,n;this.states.selectionType=t,this.renderChart(),null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onSelectionTypeChange)||void 0===n||n.call(e,t)},e.prototype.handleChartTypeChange=function(t){var e,n;this.states.chartType=t,this.renderChart(),null===(n=null===(e=this.attributes)||void 0===e?void 0:e.onChartTypeChange)||void 0===n||n.call(e,t)},e.prototype.render=function(){var t=this.space,e=t.axisBBox,n=t.controllerBBox,i=t.timelineBBox;this.renderController(n),this.renderAxis(e),this.renderChart(i),"play"===this.states.state&&this.internalPlay()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.internalPause(!0)},e.defaultOptions={style:{x:0,y:0,axisLabelFill:"#6e6e6e",axisLabelTextAlign:"left",axisLabelTextBaseline:"top",axisLabelTransform:"translate(5, -12)",axisLineLineWidth:1,axisLineStroke:"#cacdd1",axisTickLength:15,axisTickLineWidth:1,axisTickStroke:"#cacdd1",chartShowLabel:!1,chartType:"line",controllerAlign:"center",controllerHeight:40,data:[],interval:"day",loop:!1,playMode:"acc",selectionType:"range",type:"time"}},e}(Ky);var aw=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))},ow=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{var t;const e=Object.assign(Object.assign({x:h[0]/2-s/2,y:d,onChange:t=>{const e=((0,Fe.Z)(t)?t:[t,t]).map((t=>function(t){return t instanceof Date}(t)?t.getTime():t));"modify"===this.options.mode?this.filterElements(e):this.hiddenElements(e),null==n||n(e)}},c),{data:r.map((t=>(0,oe.Z)(t)?{time:t,value:0}:t)),width:s,height:l,type:i});this.timebar?this.timebar.update(e):(this.timebar=new rw({style:e}),null===(t=this.canvas)||void 0===t||t.appendChild(this.timebar))}))}upsertCanvas(){if(this.canvas)return this.canvas;const{className:t,height:e,position:n}=this.options,i=this.context.canvas,[r]=i.getSize(),[a,,o]=this.padding,[s,l]=tb({width:r,height:e+a+o,graphCanvas:i,className:"timebar",placement:n});return this.container=s,t&&s.classList.add(t),this.canvas=l,this.canvas}filterElements(t){return aw(this,void 0,void 0,(function*(){var e;if(!this.originalData)return;const{elementTypes:n,getTime:i}=this.options,{graph:r,element:a}=this.context,o=uw(this.originalData);n.forEach((e=>{const n=`${e}s`;o[n]=(this.originalData[n]||[]).filter((e=>{const n=i(e);return!!cw(n,t)}))}));const s=[...o.nodes,...o.combos].map((t=>Dh(t)));o.edges=o.edges.filter((t=>{const e=t.source,n=t.target;return s.includes(e)&&s.includes(n)})),r.setData(o),yield null===(e=a.draw({animation:!1,silence:!0}))||void 0===e?void 0:e.finished}))}hiddenElements(t){const{graph:e}=this.context,{elementTypes:n,getTime:i}=this.options,r=[],a=[];n.forEach((e=>{var n;const o=`${e}s`;((null===(n=this.originalData)||void 0===n?void 0:n[o])||[]).forEach((e=>{const n=Dh(e),o=i(e);cw(o,t)?a.push(n):r.push(n)}))})),e.hideElement(r,!1),e.showElement(a,!1)}destroy(){var t,e,n;const{graph:i}=this.context;this.originalData&&i.setData(Object.assign({},this.originalData)),null===(t=this.timebar)||void 0===t||t.destroy(),null===(e=this.canvas)||void 0===e||e.destroy(),null===(n=this.container)||void 0===n||n.remove(),this.originalData=void 0,this.container=void 0,this.timebar=void 0,this.canvas=void 0,super.destroy()}}lw.defaultOptions={position:"bottom",enable:!0,timebarType:"time",className:"g6-timebar",width:450,height:60,zIndex:3,elementTypes:["node"],padding:10,mode:"modify",getTime:t=>hw(t,sw,void 0),loop:!1};const uw=t=>{const{nodes:e=[],edges:n=[],combos:i=[]}=t;return{nodes:[...e],edges:[...n],combos:[...i]}},cw=(t,e)=>{if((0,oe.Z)(e))return t===e;const[n,i]=e;return t>=n&&t<=i},hw=(t,e,n)=>{var i;for(let n=0;n{const{onClick:e}=this.options;if(t.target instanceof Element&&t.target.className.includes("g6-toolbar-item")){const n=t.target.getAttribute("value");null==e||e(n,t.target)}};const n=this.context.canvas.getContainer();this.$element.style.display="flex",n.appendChild(this.$element),Ev("g6-toolbar-css","style",{},"\n .g6-toolbar {\n position: absolute;\n z-index: 100;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);\n opacity: 0.65;\n }\n .g6-toolbar .g6-toolbar-item {\n display: inline-block;\n width: 16px;\n height: 16px;\n padding: 4px;\n cursor: pointer;\n box-sizing: content-box;\n }\n\n .g6-toolbar .g6-toolbar-item:hover {\n background-color: #f0f0f0;\n }\n\n .g6-toolbar .g6-toolbar-item svg {\n display: inline-block;\n width: 100%;\n height: 100%;\n pointer-events: none;\n }\n",document.head),Ev("g6-toolbar-svgicon","div",{display:"none"},'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),this.$element.addEventListener("click",this.onToolbarItemClick),this.update(e)}update(t){const e=Object.create(null,{update:{get:()=>super.update}});return dw(this,void 0,void 0,(function*(){e.update.call(this,t);const{className:n,position:i,style:r}=this.options;this.$element.className=`g6-toolbar ${n||""}`,Object.assign(this.$element.style,r,function(t){const e={top:"unset",right:"unset",bottom:"unset",left:"unset"};return t.split("-").forEach((t=>{e[t]="8px"})),e.flexDirection=t.startsWith("top")||t.startsWith("bottom")?"row":"column",e}(i)),this.$element.innerHTML=yield this.getDOMContent()}))}destroy(){this.$element.removeEventListener("click",this.onToolbarItemClick),this.$element.remove(),super.destroy()}getDOMContent(){return dw(this,void 0,void 0,(function*(){return(yield this.options.getItems()).map((t=>`\n
\n \n
`)).join("")}))}}function pw(t){var e=document.createElement("div");e.innerHTML=t;var n=e.childNodes[0];return n&&e.contains(n)&&e.removeChild(n),n}fw.defaultOptions={position:"top-left"};var gw=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t},mw=function(t,e){null!=e?t.replaceChildren?Array.isArray(e)?t.replaceChildren.apply(t,(0,he.ev)([],(0,he.CR)(e),!1)):t.replaceChildren(e):(t.innerHTML="",Array.isArray(e)?e.forEach((function(e){return t.appendChild(e)})):t.appendChild(e)):t.innerHTML=""};function vw(t){return void 0===t&&(t=""),{CONTAINER:"".concat(t,"tooltip"),TITLE:"".concat(t,"tooltip-title"),LIST:"".concat(t,"tooltip-list"),LIST_ITEM:"".concat(t,"tooltip-list-item"),NAME:"".concat(t,"tooltip-list-item-name"),MARKER:"".concat(t,"tooltip-list-item-marker"),NAME_LABEL:"".concat(t,"tooltip-list-item-name-label"),VALUE:"".concat(t,"tooltip-list-item-value"),CROSSHAIR_X:"".concat(t,"tooltip-crosshair-x"),CROSSHAIR_Y:"".concat(t,"tooltip-crosshair-y")}}var yw={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"};function xw(t){var e;void 0===t&&(t="");var n=vw(t);return(e={})[".".concat(n.CONTAINER)]={position:"absolute",visibility:"visible","z-index":8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)","background-color":"rgba(255, 255, 255, 0.96)","box-shadow":"0 6px 12px 0 rgba(0, 0, 0, 0.12)","border-radius":"4px",color:"rgba(0, 0, 0, 0.65)","font-size":"12px","line-height":"20px",padding:"12px","min-width":"120px","max-width":"360px","font-family":"Roboto-Regular"},e[".".concat(n.TITLE)]={color:"rgba(0, 0, 0, 0.45)"},e[".".concat(n.LIST)]={margin:"0px","list-style-type":"none",padding:"0px"},e[".".concat(n.LIST_ITEM)]={"list-style-type":"none",display:"flex","line-height":"2em","align-items":"center","justify-content":"space-between","white-space":"nowrap"},e[".".concat(n.MARKER)]={width:"8px",height:"8px","border-radius":"50%",display:"inline-block","margin-right":"4px"},e[".".concat(n.NAME)]={display:"flex","align-items":"center","max-width":"216px"},e[".".concat(n.NAME_LABEL)]=(0,he.pi)({flex:1},yw),e[".".concat(n.VALUE)]=(0,he.pi)({display:"inline-block",float:"right",flex:1,"text-align":"right","min-width":"28px","margin-left":"30px",color:"rgba(0, 0, 0, 0.85)"},yw),e[".".concat(n.CROSSHAIR_X)]={position:"absolute",width:"1px","background-color":"rgba(0, 0, 0, 0.25)"},e[".".concat(n.CROSSHAIR_Y)]={position:"absolute",height:"1px","background-color":"rgba(0, 0, 0, 0.25)"},e}var bw=function(t){function e(e){var n,i,r=this,a=null===(i=null===(n=e.style)||void 0===n?void 0:n.template)||void 0===i?void 0:i.prefixCls,o=vw(a);return(r=t.call(this,e,{data:[],x:0,y:0,visibility:"visible",title:"",position:"bottom-right",offset:[5,5],enterable:!1,container:{x:0,y:0},bounding:null,template:{prefixCls:"",container:'
'),title:'
'),item:'
  • \n \n \n {name}\n \n {value}\n
  • ')},style:xw(a)})||this).timestamp=-1,r.prevCustomContentKey=r.attributes.contentKey,r.initShape(),r.render(r.attributes,r),r}return(0,he.ZT)(e,t),Object.defineProperty(e.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.element},Object.defineProperty(e.prototype,"elementSize",{get:function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HTMLTooltipItemsElements",{get:function(){var t=this.attributes,e=t.data,n=t.template;return e.map((function(t,e){var i=t.name,r=void 0===i?"":i,a=t.color,o=void 0===a?"black":a,s=t.index,l=(0,he._T)(t,["name","color","index"]),u=(0,he.pi)({name:r,color:o,index:null!=s?s:e},l);return pw(gw(n.item,u))}))},enumerable:!1,configurable:!0}),e.prototype.render=function(t,e){this.renderHTMLTooltipElement(),this.updatePosition()},e.prototype.destroy=function(){var e;null===(e=this.element)||void 0===e||e.remove(),t.prototype.destroy.call(this)},e.prototype.show=function(t,e){var n=this;if(void 0!==t&&void 0!==e){var i=function(){n.attributes.x=null!=t?t:n.attributes.x,n.attributes.y=null!=e?e:n.attributes.y,n.updatePosition()};"hidden"===this.element.style.visibility?this.closeTransition(i):i()}this.element.style.visibility="visible"},e.prototype.hide=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.attributes.enterable&&this.isCursorEntered(t,e)||(this.element.style.visibility="hidden")},e.prototype.initShape=function(){var t=this.attributes.template;this.element=pw(t.container),this.id&&this.element.setAttribute("id",this.id)},e.prototype.renderCustomContent=function(){if(void 0===this.prevCustomContentKey||this.prevCustomContentKey!==this.attributes.contentKey){this.prevCustomContentKey=this.attributes.contentKey;var t=this.attributes.content;t&&("string"==typeof t?this.element.innerHTML=t:mw(this.element,t))}},e.prototype.renderHTMLTooltipElement=function(){var t,e,n=this.attributes,i=n.template,r=n.title,a=n.enterable,o=n.style,s=n.content,l=vw(i.prefixCls),u=this.element;if(this.element.style.pointerEvents=a?"auto":"none",s)this.renderCustomContent();else{r?(u.innerHTML=i.title,u.getElementsByClassName(l.TITLE)[0].innerHTML=r):null===(e=null===(t=u.getElementsByClassName(l.TITLE))||void 0===t?void 0:t[0])||void 0===e||e.remove();var c=this.HTMLTooltipItemsElements,h=document.createElement("ul");h.className=l.LIST,mw(h,c);var d=this.element.querySelector(".".concat(l.LIST));d?d.replaceWith(h):u.appendChild(h)}!function(t,e){Object.entries(e).forEach((function(e){var n=(0,he.CR)(e,2),i=n[0],r=n[1];(0,he.ev)([t],(0,he.CR)(t.querySelectorAll(i)),!1).filter((function(t){return t.matches(i)})).forEach((function(t){t&&(t.style.cssText+=Object.entries(r).reduce((function(t,e){return"".concat(t).concat(e.join(":"),";")}),""))}))}))}(u,o)},e.prototype.getRelativeOffsetFromCursor=function(t){var e=this.attributes,n=e.position,i=e.offset,r=(t||n).split("-"),a={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},o=this.elementSize,s=o.width,l=o.height,u=[-s/2,-l/2];return r.forEach((function(t){var e=(0,he.CR)(u,2),n=e[0],r=e[1],o=(0,he.CR)(a[t],2),c=o[0],h=o[1];u=[n+(s/2+i[0])*c,r+(l/2+i[1])*h]})),u},e.prototype.setOffsetPosition=function(t){var e=(0,he.CR)(t,2),n=e[0],i=e[1],r=this.attributes,a=r.x,o=void 0===a?0:a,s=r.y,l=void 0===s?0:s,u=r.container,c=u.x,h=u.y;this.element.style.left="".concat(+o+c+n,"px"),this.element.style.top="".concat(+l+h+i,"px")},e.prototype.updatePosition=function(){var t=this.attributes.showDelay,e=void 0===t?60:t,n=Date.now();this.timestamp>0&&n-this.timestampm+s.width,top:pv+s.height},x=[];l.split("-").forEach((function(t){y[t]?x.push(g[t]):x.push(t)}));var b=x.join("-");return this.getRelativeOffsetFromCursor(b)},e.prototype.isCursorEntered=function(t,e){if(this.element){var n=this.element.getBoundingClientRect(),i=n.x,r=n.y,a=n.width,o=n.height;return new sx(i,r,a,o).isPointIn(t,e)}return!1},e.prototype.closeTransition=function(t){var e=this,n=this.element.style.transition;this.element.style.transition="none",t(),setTimeout((function(){e.element.style.transition=n}),10)},e.tag="tooltip",e}(Ky);class _w extends bv{constructor(t,e){super(t,Object.assign({},_w.defaultOptions,e)),this.currentTarget=null,this.tooltipElement=null,this.container=null,this.isEnable=t=>{const{enable:e}=this.options;return"function"==typeof e?e(t):e},this.onClick=t=>{const{target:{id:e}}=t;this.currentTarget===e?(this.hide(t),this.currentTarget=null):(this.currentTarget=e,this.show(t))},this.onPointerMove=t=>{const{target:e}=t;this.currentTarget&&e.id!==this.currentTarget&&this.show(t)},this.onPointerLeave=t=>{this.hide(t),this.currentTarget=null},this.onCanvasMove=t=>{this.hide(t),this.currentTarget=null},this.onPointerEnter=t=>{this.show(t)},this.showById=t=>{const e={target:{id:t}};this.show(e)},this.getElementData=(t,e)=>{const{model:n}=this.context;switch(e){case"node":return n.getNodeData([t]);case"edge":return n.getEdgeData([t]);case"combo":return n.getComboData([t]);default:return[]}},this.show=t=>{const{client:e,target:{id:n}}=t;if(wm(t.target))return;if(!this.tooltipElement||!this.isEnable(t))return;const i=this.context.graph.getElementType(n),{getContent:r,title:a}=this.options;this.currentTarget=n;const o=this.getElementData(n,i);let s,l;if(e)s=e.x,l=e.y;else{const t=Zd(o,"0.style",{x:0,y:0});s=t.x,l=t.y}let u={};if(r)u.content=r(t,o);else{const t=this.context.graph.getElementRenderStyle(n),e="node"===i?t.fill:t.stroke;u={title:a||i,data:o.map((t=>({name:"ID",value:t.id||`${t.source} -> ${t.target}`,color:e})))}}this.tooltipElement.update(Object.assign(Object.assign(Object.assign({},this.tooltipStyleProps),{x:s,y:l,style:{".tooltip":{visibility:"visible"}}}),u))},this.hide=t=>{var e;if(!t)return void(null===(e=this.tooltipElement)||void 0===e||e.hide());if(!this.tooltipElement)return;if(!this.currentTarget)return;const{client:{x:n,y:i}}=t;this.tooltipElement.hide(n,i)},this.initTooltip=()=>{var t;const e=new bw({className:"tooltip",style:this.tooltipStyleProps});return null===(t=this.container)||void 0===t||t.appendChild(e.HTMLTooltipElement),e},this.render(),this.bindEvents()}getEvents(){return"click"===this.options.trigger?{"node:click":this.onClick,"edge:click":this.onClick,"combo:click":this.onClick,"canvas:click":this.onPointerLeave,contextmenu:this.onPointerLeave,drag:this.onPointerLeave}:{"node:pointerenter":this.onPointerEnter,"node:pointermove":this.onPointerMove,"canvas:pointermove":this.onCanvasMove,"edge:pointerenter":this.onPointerEnter,"edge:pointermove":this.onPointerMove,"combo:pointerenter":this.onPointerEnter,"combo:pointermove":this.onPointerMove,contextmenu:this.onPointerLeave,"node:drag":this.onPointerLeave}}update(t){var e;this.unbindEvents(),super.update(t),this.tooltipElement&&(null===(e=this.container)||void 0===e||e.removeChild(this.tooltipElement.HTMLTooltipElement)),this.tooltipElement=this.initTooltip(),this.bindEvents()}render(){const{canvas:t}=this.context,e=t.getContainer();e&&(this.container=e,this.tooltipElement=this.initTooltip())}unbindEvents(){const{graph:t}=this.context,e=this.getEvents();Object.keys(e).forEach((n=>{t.off(n,e[n])}))}bindEvents(){const{graph:t}=this.context,e=this.getEvents();Object.keys(e).forEach((n=>{t.on(n,e[n])}))}get tooltipStyleProps(){const{canvas:t}=this.context,{center:e}=t.getBounds(),n=t.getContainer(),{top:i,left:r}=n.getBoundingClientRect(),{style:a,position:o,enterable:s,container:l={x:-r,y:-i},title:u,offset:c}=this.options,[h,d]=e,[f,p]=t.getSize();return{x:h,y:d,container:l,title:u,bounding:{x:0,y:0,width:f,height:p},position:o,enterable:s,offset:c,style:a}}destroy(){var t;this.unbindEvents(),this.tooltipElement&&(null===(t=this.container)||void 0===t||t.removeChild(this.tooltipElement.HTMLTooltipElement)),super.destroy()}}_w.defaultOptions={trigger:"hover",position:"top-right",enterable:!1,enable:!0,offset:[10,10],style:{".tooltip":{visibility:"hidden"}}};var Ew=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};let ww;function Tw(t,e){ww||(ww=document.createElement("canvas")),ww.width=t,ww.height=e;return ww.getContext("2d").clearRect(0,0,t,e),ww}var Sw=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))},Mw=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);rsuper.update}});return Sw(this,void 0,void 0,(function*(){e.update.call(this,t);const n=this.options,{width:i,height:r,text:a,imageURL:o}=n,s=Mw(n,["width","height","text","imageURL"]);Object.keys(s).forEach((e=>{e.startsWith("background")&&(this.$element.style[e]=t[e])}));const l=o?yield function(t,e,n,i){return Ew(this,void 0,void 0,(function*(){const r=Tw(t,e),a=r.getContext("2d"),{rotate:o,opacity:s}=i;o&&a.rotate(o),s&&(a.globalAlpha=s);const l=new Image;return l.crossOrigin="anonymous",l.src=n,new Promise((n=>{l.onload=function(){const i=t>l.width?(t-l.width)/2:0,o=e>l.height?(e-l.height)/2:0;a.drawImage(l,0,0,l.width,l.height,i,o,t-2*i,e-2*o),n(r.toDataURL())}}))}))}(i,r,o,s):yield function(t,e,n,i){return Ew(this,void 0,void 0,(function*(){const r=Tw(t,e),a=r.getContext("2d"),{rotate:o,opacity:s,textFill:l,textFontSize:u,textFontFamily:c,textFontVariant:h,textFontWeight:d,textAlign:f,textBaseline:p}=i;return a.textAlign=f,a.textBaseline=p,a.translate(t/2,e/2),a.font=`${u}px ${c} ${h} ${d}`,o&&a.rotate(o),s&&(a.globalAlpha=s),l&&(a.fillStyle=l,a.fillText(`${n}`,0,0)),r.toDataURL()}))}(i,r,a,s);this.$element.style.backgroundImage=`url(${l})`}))}destroy(){super.destroy(),this.$element.remove()}}Cw.defaultOptions={width:200,height:100,opacity:.2,rotate:Math.PI/12,text:"",textFill:"#000",textFontSize:16,textAlign:"center",textBaseline:"middle",backgroundRepeat:"repeat"};var Aw=function(){function t(e){(0,o.Z)(this,t),this.dragndropPluginOptions=e}return(0,s.Z)(t,[{key:"apply",value:function(e){var n=this,i=e.renderingService,r=e.renderingContext.root.ownerDocument,a=r.defaultView,o=function(t){var e=t.target,i=e===r,o=i&&n.dragndropPluginOptions.isDocumentDraggable?r:e.closest&&e.closest("[draggable=true]");if(o){var s=!1,l=t.timeStamp,u=[t.clientX,t.clientY],c=null,h=[t.clientX,t.clientY],d=function(){var t=(0,li.Z)((0,si.Z)().mark((function t(a){var d,f,p,g,m,v;return(0,si.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s){t.next=8;break}if(d=a.timeStamp-l,f=se([a.clientX,a.clientY],u),!(d<=n.dragndropPluginOptions.dragstartTimeThreshold||f<=n.dragndropPluginOptions.dragstartDistanceThreshold)){t.next=5;break}return t.abrupt("return");case 5:a.type="dragstart",o.dispatchEvent(a),s=!0;case 8:if(a.type="drag",a.dx=a.clientX-h[0],a.dy=a.clientY-h[1],o.dispatchEvent(a),h=[a.clientX,a.clientY],i){t.next=21;break}return p="pointer"===n.dragndropPluginOptions.overlap?[a.canvasX,a.canvasY]:e.getBounds().center,t.next=17,r.elementsFromPoint(p[0],p[1]);case 17:g=t.sent,m=g[g.indexOf(e)+1],v=(null==m?void 0:m.closest("[droppable=true]"))||(n.dragndropPluginOptions.isDocumentDroppable?r:null),c!==v&&(c&&(a.type="dragleave",a.target=c,c.dispatchEvent(a)),v&&(a.type="dragenter",a.target=v,v.dispatchEvent(a)),(c=v)&&(a.type="dragover",a.target=c,c.dispatchEvent(a)));case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();a.addEventListener("pointermove",d);var f=function(t){if(s){t.detail={preventClick:!0};var e=t.clone();c&&(e.type="drop",e.target=c,c.dispatchEvent(e)),e.type="dragend",o.dispatchEvent(e),s=!1}a.removeEventListener("pointermove",d)};e.addEventListener("pointerup",f,{once:!0}),e.addEventListener("pointerupoutside",f,{once:!0})}};i.hooks.init.tap(t.tag,(function(){a.addEventListener("pointerdown",o)})),i.hooks.destroy.tap(t.tag,(function(){a.removeEventListener("pointerdown",o)}))}}])}();Aw.tag="Dragndrop";var Ow=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)(this,e),(t=d(this,e)).name="dragndrop",t.options=n,t}return(0,f.Z)(e,t),(0,s.Z)(e,[{key:"init",value:function(){this.addRenderingPlugin(new Aw((0,a.Z)({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}},{key:"setOptions",value:function(t){Object.assign(this.plugins[0].dragndropPluginOptions,t)}}])}(mi),Nw=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))},Pw=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r[t,new Kl(Object.assign(Object.assign({},o),{supportsMutipleCanvasesInOneContainer:a,renderer:l[t],background:a?"background"===t?i:void 0:i}))])));Iw(u),this.extends={config:this.config,renderer:n,renderers:l,layers:u}}get ready(){return Promise.all(Object.entries(this.getLayers()).map((([,t])=>t.ready)))}resize(t,e){Object.assign(this.extends.config,{width:t,height:e}),Object.values(this.getLayers()).forEach((n=>{const i=n.getCamera(),r=i.getPosition(),a=i.getFocalPoint();n.resize(t,e),i.setPosition(r),i.setFocalPoint(a)}))}getBounds(t){return $c(Object.values(this.getLayers()).map((e=>t?e.getRoot().childNodes.find((e=>e.classList.includes(t))):e.getRoot())).filter((t=>(null==t?void 0:t.childNodes.length)>0)).map((t=>t.getBounds())))}getContainer(){const t=this.extends.config.container;return"string"==typeof t?document.getElementById(t):t}getSize(){return[this.extends.config.width||0,this.extends.config.height||0]}appendChild(t,e){var n;const i=(null===(n=t.style)||void 0===n?void 0:n.$layer)||"main";return this.getLayer(i).appendChild(t,e)}setRenderer(t){if(t===this.extends.renderer)return;const e=kw(t,this.config.enableMultiLayer?Rw:Lw);this.extends.renderers=e,Object.entries(e).forEach((([t,e])=>this.getLayer(t).setRenderer(e))),Iw(this.getLayers())}getCanvasByViewport(t){return bd(this.getLayer().viewport2Canvas(_d(t)))}getViewportByCanvas(t){return bd(this.getLayer().canvas2Viewport(_d(t)))}getViewportByClient(t){return bd(this.getLayer().client2Viewport(_d(t)))}getClientByViewport(t){return bd(this.getLayer().viewport2Client(_d(t)))}getClientByCanvas(t){return this.getClientByViewport(this.getViewportByCanvas(t))}getCanvasByClient(t){const e=this.getLayer(),n=e.client2Viewport(_d(t));return bd(e.viewport2Canvas(n))}toDataURL(){return Nw(this,arguments,void 0,(function*(t={}){const e=globalThis.devicePixelRatio||1,{mode:n="viewport"}=t,i=Pw(t,["mode"]);let[r,a,o,s]=[0,0,0,0];if("viewport"===n)[o,s]=this.getSize();else if("overall"===n){const t=this.getBounds(),e=Wc(t);[r,a]=t.min,[o,s]=e}const l=pw('
    '),u=new Kl({width:o,height:s,renderer:new ig,devicePixelRatio:e,container:l,background:this.extends.config.background});yield u.ready,u.appendChild(this.getLayer("background").getRoot().cloneNode(!0)),u.appendChild(this.getRoot().cloneNode(!0));const c=this.getLayer("label").getRoot().cloneNode(!0),h=u.viewport2Canvas({x:0,y:0}),d=this.getCanvasByViewport([0,0]);c.translate([d[0]-h.x,d[1]-h.y]),c.scale(1/this.getCamera().getZoom()),u.appendChild(c),u.appendChild(this.getLayer("transient").getRoot().cloneNode(!0));const f=this.getCamera(),p=u.getCamera();if("viewport"===n)p.setZoom(f.getZoom()),p.setPosition(f.getPosition()),p.setFocalPoint(f.getFocalPoint());else if("overall"===n){const[t,e,n]=p.getPosition(),[i,o,s]=p.getFocalPoint();p.setPosition([t+r,e+a,n]),p.setFocalPoint([i+r,o+a,s])}const g=u.getContextService();return new Promise((t=>{u.addEventListener(Zl.RERENDER,(()=>Nw(this,void 0,void 0,(function*(){yield new Promise((t=>setTimeout(t,300)));const e=yield g.toDataURL(i);t(e)}))))}))}))}destroy(){Object.values(this.getLayers()).forEach((t=>{t.getCamera().cancelLandmarkAnimation(),t.destroy()}))}}function kw(t,e){return Object.fromEntries(e.map((e=>{const n=(null==t?void 0:t(e))||new ig;return"main"===e?n.registerPlugin(new Ow({isDocumentDraggable:!0,isDocumentDroppable:!0,dragstartDistanceThreshold:10,dragstartTimeThreshold:100})):n.unregisterPlugin(n.getPlugin("dom-interaction")),[e,n]})))}function Iw(t){Object.entries(t).forEach((([t,e])=>{const n=e.getContextService().getDomElement();(null==n?void 0:n.style)&&(n.style.gridArea="1 / 1 / 2 / 2",n.style.outline="none",n.tabIndex=1,"main"!==t&&(n.style.pointerEvents="none")),(null==n?void 0:n.parentElement)&&(n.parentElement.style.display="grid")}))}const Bw=t=>t?parseInt(t):0;function Fw(t){if(!t)return[0,0];let e=640,n=480;const[i,r]=function(t){const e=getComputedStyle(t),n=t.clientWidth||Bw(e.width),i=t.clientHeight||Bw(e.height);return[n-(Bw(e.paddingLeft)+Bw(e.paddingRight)),i-(Bw(e.paddingTop)+Bw(e.paddingBottom))]}(t);e=i||e,n=r||n;return[Math.max((0,oe.Z)(e)?e:1,1),Math.max((0,oe.Z)(n)?n:1,1)]}class zw{constructor(t){this.type=t}}class Gw extends zw{constructor(t,e){super(t),this.data=e}}class jw extends zw{constructor(t,e,n,i){super(t),this.animationType=e,this.animation=n,this.data=i}}class Uw extends zw{constructor(t,e,n){super(t),this.elementType=e,this.data=n}}class Hw extends zw{constructor(t,e){super(t),this.data=e}}function Vw(t,e){t.emit(e.type,e)}function Zw(t){var e;return(null===(e=null==t?void 0:t.style)||void 0===e?void 0:e.zIndex)||0}const Ww="cachedStyle",Xw=t=>`__${t}__`;function Yw(t,e){return Zd(t,[Ww,Xw(e)])}class qw{constructor(t){this.tasks=[],this.animations=new Set,this.context=t}getTasks(){const t=[...this.tasks];return this.tasks=[],t}add(t,e){this.tasks.push([t,e])}animate(t,e,n){var i,r,a;null===(i=null==e?void 0:e.before)||void 0===i||i.call(e);const o=this.getTasks().map((([e,i])=>{var r,a,o;const{element:s,elementType:l,stage:u}=e,c=Mc(this.context.options,l,u,t);null===(r=null==i?void 0:i.before)||void 0===r||r.call(i);const h=c.length?Oc(s,this.inferStyle(e,n),c):null;return h?(null===(a=null==i?void 0:i.beforeAnimate)||void 0===a||a.call(i,h),h.finished.then((()=>{var t,e;null===(t=null==i?void 0:i.afterAnimate)||void 0===t||t.call(i,h),null===(e=null==i?void 0:i.after)||void 0===e||e.call(i),this.animations.delete(h)}))):null===(o=null==i?void 0:i.after)||void 0===o||o.call(i),h})).filter(Boolean);o.forEach((t=>this.animations.add(t)));const s=Ec(o);return s?(null===(r=null==e?void 0:e.beforeAnimate)||void 0===r||r.call(e,s),s.finished.then((()=>{var t,n;null===(t=null==e?void 0:e.afterAnimate)||void 0===t||t.call(e,s),null===(n=null==e?void 0:e.after)||void 0===n||n.call(e),this.release()}))):null===(a=null==e?void 0:e.after)||void 0===a||a.call(e),s}inferStyle(t,e){var n,i;const{element:r,elementType:a,stage:o,originalStyle:s,updatedStyle:l={}}=t;t.modifiedStyle||(t.modifiedStyle=Object.assign(Object.assign({},s),l));const{modifiedStyle:u}=t,c={},h={};if("enter"===o)Object.assign(c,{opacity:0});else if("exit"===o)Object.assign(h,{opacity:0});else if("show"===o)Object.assign(c,{opacity:0}),Object.assign(h,{opacity:null!==(n=Yw(r,"opacity"))&&void 0!==n?n:Tc("opacity")});else if("hide"===o)Object.assign(c,{opacity:null!==(i=Yw(r,"opacity"))&&void 0!==i?i:Tc("opacity")}),Object.assign(h,{opacity:0});else if("collapse"===o){const{collapse:t}=e||{},{target:n,descendants:i,position:o}=t;if("node"===a){if(i.includes(r.id)){const[t,e,n]=o;Object.assign(h,{x:t,y:e,z:n})}}else if("combo"===a){if(r.id===n||i.includes(r.id)){const[t,e]=o;Object.assign(h,{x:t,y:e,childrenNode:s.childrenNode})}}else"edge"===a&&Object.assign(h,{sourceNode:u.sourceNode,targetNode:u.targetNode})}else if("expand"===o){const{expand:t}=e||{},{target:n,descendants:i,position:o}=t;if("node"===a){if(r.id===n||i.includes(r.id)){const[t,e,n]=o;Object.assign(c,{x:t,y:e,z:n})}}else if("combo"===a){if(r.id===n||i.includes(r.id)){const[t,e,n]=o;Object.assign(c,{x:t,y:e,z:n,childrenNode:u.childrenNode})}}else"edge"===a&&Object.assign(c,{sourceNode:u.sourceNode,targetNode:u.targetNode})}return[Object.keys(c).length>0?Object.assign({},s,c):s,Object.keys(h).length>0?Object.assign({},u,h):u]}stop(){this.animations.forEach((t=>t.cancel()))}clear(){this.tasks=[]}release(){var t,e;const{canvas:n}=this.context,i=null===(e=null===(t=n.document)||void 0===t?void 0:t.timeline)||void 0===e?void 0:e.animationsWithPromises;i&&(n.document.timeline.animationsWithPromises=i.filter((t=>"finished"!==t.playState)))}destroy(){this.stop(),this.animations.clear(),this.tasks=[]}}class $w{constructor(t){this.batchCount=0,this.context=t}emit(t){const{graph:e}=this.context;e.emit(t.type,t)}startBatch(t=!0){this.batchCount++,1===this.batchCount&&this.emit(new Gw(hc.BATCH_START,{initiate:t}))}endBatch(){this.batchCount--,0===this.batchCount&&this.emit(new Gw(hc.BATCH_END))}get isBatching(){return this.batchCount>0}destroy(){this.context=null}}class Kw extends Yh{constructor(t){super(t),this.currentTarget=null,this.currentTargetType=null,this.category="behavior",this.forwardCanvasEvents=t=>{const{target:e}=t,n=function(t){if(!t)return null;if(t instanceof zl)return{type:"canvas",element:t};let e=t;for(;e;){if(um(e))return{type:"node",element:e};if(cm(e))return{type:"edge",element:e};if(hm(e))return{type:"combo",element:e};e=e.parentElement}return null}(e);if(!n)return;const{graph:i,canvas:r}=this.context,{type:a,element:o}=n;if("destroyed"in o&&(wm(o)||o.destroyed))return;const{type:s,detail:l,button:u}=t,c=Object.assign(Object.assign({},t),{target:o,targetType:a,originalTarget:e});s===lc.POINTER_MOVE&&(this.currentTarget!==o&&(this.currentTarget&&i.emit(`${this.currentTargetType}:${lc.POINTER_LEAVE}`,Object.assign(Object.assign({},c),{type:lc.POINTER_LEAVE,target:this.currentTarget,targetType:this.currentTargetType})),o&&(Object.assign(c,{type:lc.POINTER_ENTER}),i.emit(`${a}:${lc.POINTER_ENTER}`,c))),this.currentTarget=o,this.currentTargetType=a),s===lc.CLICK&&2===u||(i.emit(`${a}:${s}`,c),i.emit(s,c)),s===lc.CLICK&&2===l&&(Object.assign(c,{type:lc.DBLCLICK}),i.emit(`${a}:${lc.DBLCLICK}`,c),i.emit(lc.DBLCLICK,c)),s===lc.POINTER_DOWN&&2===u&&(Object.assign(c,{type:lc.CONTEXT_MENU,preventDefault:()=>{var t;null===(t=r.getContainer())||void 0===t||t.addEventListener(lc.CONTEXT_MENU,(t=>t.preventDefault()),{once:!0})}}),i.emit(`${a}:${lc.CONTEXT_MENU}`,c),i.emit(lc.CONTEXT_MENU,c))},this.forwardContainerEvents=t=>{this.context.graph.emit(t.type,t)},this.forwardEvents(),this.setBehaviors(this.context.options.behaviors||[])}setBehaviors(t){this.setExtensions(t)}forwardEvents(){const t=this.context.canvas.getContainer();t&&[uc.KEY_DOWN,uc.KEY_UP].forEach((e=>{t.addEventListener(e,this.forwardContainerEvents)}));const e=this.context.canvas.document;e&&[lc.CLICK,lc.DBLCLICK,lc.POINTER_OVER,lc.POINTER_LEAVE,lc.POINTER_ENTER,lc.POINTER_MOVE,lc.POINTER_OUT,lc.POINTER_DOWN,lc.POINTER_UP,lc.CONTEXT_MENU,lc.DRAG_START,lc.DRAG,lc.DRAG_END,lc.DRAG_ENTER,lc.DRAG_OVER,lc.DRAG_LEAVE,lc.DROP,lc.WHEEL].forEach((t=>{e.addEventListener(t,this.forwardCanvasEvents)}))}destroy(){const t=this.context.canvas.getContainer();t&&[uc.KEY_DOWN,uc.KEY_UP].forEach((e=>{t.removeEventListener(e,this.forwardContainerEvents)})),this.context.canvas.document.removeAllEventListeners(),super.destroy()}}var Qw=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);rt.length===e.length&&t.every(((t,n)=>t===e[n])),d=(t,e)=>{const n=Object.keys(t),i=Object.keys(e);return n.length===i.length&&n.every((n=>t[n]===e[n]))};return!!d(o,Qw(e,["states","data","style","children"]))&&(!!h(a,c)&&(!!h(n,s)&&(!!d(i,l)&&!!d(r,u))))}var nT=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r0}silence(t){this.isTraceless=!0,t(),this.isTraceless=!1}isCombo(t){return this.comboIds.has(t)||this.latestRemovedComboIds.has(t)}getData(){return{nodes:this.getNodeData(),edges:this.getEdgeData(),combos:this.getComboData()}}getNodeData(t){return this.model.getAllNodes().reduce(((e,n)=>{const i=rT(n);return this.isCombo(Dh(i))||(void 0===t||t.includes(Dh(i)))&&e.push(i),e}),[])}getEdgeDatum(t){return rT(this.model.getEdge(t))}getEdgeData(t){return this.model.getAllEdges().reduce(((e,n)=>{const i=rT(n);return(void 0===t||t.includes(Dh(i)))&&e.push(i),e}),[])}getComboData(t){return this.model.getAllNodes().reduce(((e,n)=>{const i=rT(n);return this.isCombo(Dh(i))?((void 0===t||t.includes(Dh(i)))&&e.push(i),e):e}),[])}getRootsData(t=gc){return this.model.getRoots(t).map(rT)}getAncestorsData(t,e){const{model:n}=this;return n.hasNode(t)&&n.hasTreeStructure(e)?n.getAncestors(t,e).map(rT):[]}getDescendantsData(t){const e=this.getElementDataById(t),n=[];return Fd(e,(t=>{t!==e&&n.push(t)}),(t=>this.getChildrenData(Dh(t))),"TB"),n}getParentData(t,e){const{model:n}=this;if(!e)return void bc.warn("The hierarchy structure key is not specified");if(!n.hasNode(t)||!n.hasTreeStructure(e))return;const i=n.getParent(t,e);return i?rT(i):void 0}getChildrenData(t){const e="node"===this.getElementType(t)?gc:pc,{model:n}=this;return n.hasNode(t)&&n.hasTreeStructure(e)?n.getChildren(t,e).map(rT):[]}getElementsDataByType(t){return"node"===t?this.getNodeData():"edge"===t?this.getEdgeData():"combo"===t?this.getComboData():[]}getElementDataById(t){return"edge"===this.getElementType(t)?this.getEdgeDatum(t):this.getNodeLikeDatum(t)}getNodeLikeDatum(t){return rT(this.model.getNode(t))}getNodeLikeData(t){return this.model.getAllNodes().reduce(((e,n)=>{const i=rT(n);return t?t.includes(Dh(i))&&e.push(i):e.push(i),e}),[])}getElementDataByState(t,e){return this.getElementsDataByType(t).filter((t=>{var n;return null===(n=t.states)||void 0===n?void 0:n.includes(e)}))}getElementState(t){var e;return(null===(e=this.getElementDataById(t))||void 0===e?void 0:e.states)||[]}hasNode(t){return this.model.hasNode(t)&&!this.isCombo(t)}hasEdge(t){return this.model.hasEdge(t)}hasCombo(t){return this.model.hasNode(t)&&this.isCombo(t)}getRelatedEdgesData(t,e="both"){return this.model.getRelatedEdges(t,e).map(rT)}getNeighborNodesData(t){return this.model.getNeighbors(t).map(rT)}setData(t){const{nodes:e=[],edges:n=[],combos:i=[]}=t,{nodes:r,edges:a,combos:o}=this.getData(),s=Zh(r,e,(t=>Dh(t)),eT),l=Zh(a,n,(t=>Dh(t)),eT),u=Zh(o,i,(t=>Dh(t)),eT);this.batch((()=>{const t={nodes:s.enter,edges:l.enter,combos:u.enter};this.addData(t),this.computeZIndex(t,"add",!0);const e={nodes:s.update,edges:l.update,combos:u.update};this.updateData(e),this.computeZIndex(e,"update",!0);const n={nodes:s.exit.map(Dh),edges:l.exit.map(Dh),combos:u.exit.map(Dh)};this.removeData(n)}))}addData(t){const{nodes:e,edges:n,combos:i}=t;this.batch((()=>{this.addComboData(i),this.addNodeData(e),this.addEdgeData(n)})),this.computeZIndex(t,"add")}addNodeData(t=[]){t.length&&(this.model.addNodes(t.map((t=>(this.pushChange({value:t,type:rc.NodeAdded}),iT(t))))),this.updateNodeLikeHierarchy(t),this.computeZIndex({nodes:t},"add"))}addEdgeData(t=[]){t.length&&(this.model.addEdges(t.map((t=>(this.pushChange({value:t,type:rc.EdgeAdded}),iT(t))))),this.computeZIndex({edges:t},"add"))}addComboData(t=[]){if(!t.length)return;const{model:e}=this;e.hasTreeStructure(pc)||e.attachTreeStructure(pc),e.addNodes(t.map((t=>(this.comboIds.add(Dh(t)),this.pushChange({value:t,type:rc.ComboAdded}),iT(t))))),this.updateNodeLikeHierarchy(t),this.computeZIndex({combos:t},"add")}addChildrenData(t,e){const n=this.getNodeLikeDatum(t),i=e.map(Dh);this.addNodeData(e),this.updateNodeData([{id:t,children:[...n.children||[],...i]}]),this.addEdgeData(i.map((e=>({source:t,target:e}))))}computeZIndex(t,e,n=!1){!n&&this.isBatching()||this.batch((()=>{const{nodes:n=[],edges:i=[],combos:r=[]}=t;r.forEach((t=>{var n,i,r;const a=Dh(t);if("add"===e&&(0,oe.Z)(null===(n=t.style)||void 0===n?void 0:n.zIndex))return;if("update"===e&&!("combo"in t))return;const o=this.getParentData(a,pc),s=o?(null!==(r=null===(i=o.style)||void 0===i?void 0:i.zIndex)&&void 0!==r?r:0)+1:0;this.preventUpdateNodeLikeHierarchy((()=>{this.updateComboData([{id:a,style:{zIndex:s}}])}))})),n.forEach((t=>{var n,i,r;const a=Dh(t);if("add"===e&&(0,oe.Z)(null===(n=t.style)||void 0===n?void 0:n.zIndex))return;if("update"===e&&!("combo"in t)&&!("children"in t))return;let o=0;const s=this.getParentData(a,pc);if(s)o=((null===(i=s.style)||void 0===i?void 0:i.zIndex)||0)+1;else{const t=this.getParentData(a,gc);t&&(o=(null===(r=null==t?void 0:t.style)||void 0===r?void 0:r.zIndex)||0)}this.preventUpdateNodeLikeHierarchy((()=>{this.updateNodeData([{id:a,style:{zIndex:o}}])}))})),i.forEach((t=>{var e,n,i,r,a;if((0,oe.Z)(null===(e=t.style)||void 0===e?void 0:e.zIndex))return;let{id:o,source:s,target:l}=t;if(o){const t=this.getEdgeDatum(o);s=t.source,l=t.target}else o=Dh(t);if(!s||!l)return;const u=(null===(i=null===(n=this.getNodeLikeDatum(s))||void 0===n?void 0:n.style)||void 0===i?void 0:i.zIndex)||0,c=(null===(a=null===(r=this.getNodeLikeDatum(l))||void 0===r?void 0:r.style)||void 0===a?void 0:a.zIndex)||0;this.updateEdgeData([{id:Dh(t),style:{zIndex:Math.max(u,c)-1}}])}))}))}getFrontZIndex(t){var e;const n=this.getElementType(t),i=this.getElementDataById(t),r=this.getData();if(Object.assign(r,{[`${n}s`]:r[`${n}s`].filter((e=>Dh(e)!==t))}),"combo"===n&&!Vd(i)){const e=new Set(this.getAncestorsData(t,pc).map(Dh));r.nodes=r.nodes.filter((t=>!e.has(Dh(t)))),r.combos=r.combos.filter((t=>!e.has(Dh(t)))),r.edges=r.edges.filter((({source:t,target:n})=>!e.has(t)&&!e.has(n)))}return Math.max((null===(e=i.style)||void 0===e?void 0:e.zIndex)||0,0,...Object.values(r).flat().map((t=>{var e;return((null===(e=null==t?void 0:t.style)||void 0===e?void 0:e.zIndex)||0)+1})))}updateNodeLikeHierarchy(t){if(!this.enableUpdateNodeLikeHierarchy)return;const{model:e}=this;t.forEach((t=>{const n=Dh(t);kh(t)&&(e.hasTreeStructure(pc)||e.attachTreeStructure(pc),this.setParent(n,kh(t),pc));const i=t.children||[];if(i.length){e.hasTreeStructure(gc)||e.attachTreeStructure(gc);const t=i.filter((t=>e.hasNode(t)));t.forEach((t=>this.setParent(t,n,gc))),t.length!==i.length&&this.updateNodeData([{id:n,children:t}])}}))}preventUpdateNodeLikeHierarchy(t){this.enableUpdateNodeLikeHierarchy=!1,t(),this.enableUpdateNodeLikeHierarchy=!0}updateData(t){const{nodes:e,edges:n,combos:i}=t;this.batch((()=>{this.updateNodeData(e),this.updateComboData(i),this.updateEdgeData(n)})),this.computeZIndex(t,"update")}updateNodeData(t=[]){if(!t.length)return;const{model:e}=this;this.batch((()=>{const n=[];t.forEach((t=>{const i=Dh(t),r=rT(e.getNode(i));if(eT(r,t))return;const a=Jw(r,t);this.pushChange({value:a,original:r,type:rc.NodeUpdated}),e.mergeNodeData(i,a),n.push(a)})),this.updateNodeLikeHierarchy(n)})),this.computeZIndex({nodes:t},"update")}refreshData(){const{nodes:t,edges:e,combos:n}=this.getData();t.forEach((t=>{this.pushChange({value:t,original:t,type:rc.NodeUpdated})})),e.forEach((t=>{this.pushChange({value:t,original:t,type:rc.EdgeUpdated})})),n.forEach((t=>{this.pushChange({value:t,original:t,type:rc.ComboUpdated})}))}syncNodeDatum(t){const{model:e}=this,n=Dh(t),i=Jw(rT(e.getNode(n)),t);e.mergeNodeData(n,i)}updateEdgeData(t=[]){if(!t.length)return;const{model:e}=this;this.batch((()=>{t.forEach((t=>{const n=Dh(t),i=rT(e.getEdge(n));if(eT(i,t))return;t.source&&i.source!==t.source&&e.updateEdgeSource(n,t.source),t.target&&i.target!==t.target&&e.updateEdgeTarget(n,t.target);const r=Jw(i,t);this.pushChange({value:r,original:i,type:rc.EdgeUpdated}),e.mergeEdgeData(n,r)}))})),this.computeZIndex({edges:t},"update")}updateComboData(t=[]){if(!t.length)return;const{model:e}=this;e.batch((()=>{const n=[];t.forEach((t=>{const i=Dh(t),r=rT(e.getNode(i));if(eT(r,t))return;const a=Jw(r,t);this.pushChange({value:a,original:r,type:rc.ComboUpdated}),e.mergeNodeData(i,a),n.push(a)})),this.updateNodeLikeHierarchy(n)})),this.computeZIndex({combos:t},"update")}setParent(t,e,n,i=!0){if(t===e)return;const r=kh(this.getNodeLikeDatum(t));if(r!==e&&n===pc){const n={id:t,combo:e};this.isCombo(t)?this.syncComboDatum(n):this.syncNodeDatum(n)}this.model.setParent(t,e,n),i&&n===pc&&function(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var i=0,r=t.length;i{void 0!==t&&this.refreshComboData(t)}))}refreshComboData(t){const e=this.getComboData([t])[0],n=this.getAncestorsData(t,pc);e&&this.pushChange({value:e,original:e,type:rc.ComboUpdated}),n.forEach((t=>{this.pushChange({value:t,original:t,type:rc.ComboUpdated})}))}syncComboDatum(t){const{model:e}=this,n=Dh(t);if(!e.hasNode(n))return;const i=Jw(rT(e.getNode(n)),t);e.mergeNodeData(n,i)}getElementPosition(t){return md(this.getElementDataById(t))}translateNodeLikeBy(t,e){this.isCombo(t)?this.translateComboBy(t,e):this.translateNodeBy(t,e)}translateNodeLikeTo(t,e){this.isCombo(t)?this.translateComboTo(t,e):this.translateNodeTo(t,e)}translateNodeBy(t,e){const n=td(this.getElementPosition(t),[...e,0].slice(0,3));this.translateNodeTo(t,n)}translateNodeTo(t,e){const[n=0,i=0,r=0]=e;this.preventUpdateNodeLikeHierarchy((()=>{this.updateNodeData([{id:t,style:{x:n,y:i,z:r}}])}))}translateComboBy(t,e){const[n=0,i=0,r=0]=e;if([n,i,r].some(isNaN)||[n,i,r].every((t=>0===t)))return;const a=this.getComboData([t])[0];if(!a)return;const o=new Set;Fd(a,(t=>{const e=Dh(t);if(o.has(e))return;o.add(e);const[a,s,l]=md(t),u=Jw(t,{style:{x:a+n,y:s+i,z:l+r}});this.pushChange({value:u,original:t,type:this.isCombo(e)?rc.ComboUpdated:rc.NodeUpdated}),this.model.mergeNodeData(e,u)}),(t=>this.getChildrenData(Dh(t))),"BT")}translateComboTo(t,e){var n;if(e.some(isNaN))return;const[i=0,r=0,a=0]=e,o=null===(n=this.getComboData([t]))||void 0===n?void 0:n[0];if(!o)return;const[s,l,u]=md(o),c=i-s,h=r-l,d=a-u;Fd(o,(t=>{const e=Dh(t),[n,i,r]=md(t),a=Jw(t,{style:{x:n+c,y:i+h,z:r+d}});this.pushChange({value:a,original:t,type:this.isCombo(e)?rc.ComboUpdated:rc.NodeUpdated}),this.model.mergeNodeData(e,a)}),(t=>this.getChildrenData(Dh(t))),"BT")}removeData(t){const{nodes:e,edges:n,combos:i}=t;this.batch((()=>{this.removeEdgeData(n),this.removeNodeData(e),this.removeComboData(i),this.latestRemovedComboIds=new Set(i)}))}removeNodeData(t=[]){t.length&&this.batch((()=>{t.forEach((t=>{this.removeEdgeData(this.getRelatedEdgesData(t).map(Dh)),this.pushChange({value:this.getNodeData([t])[0],type:rc.NodeRemoved}),this.removeNodeLikeHierarchy(t)})),this.model.removeNodes(t)}))}removeEdgeData(t=[]){t.length&&(t.forEach((t=>this.pushChange({value:this.getEdgeData([t])[0],type:rc.EdgeRemoved}))),this.model.removeEdges(t))}removeComboData(t=[]){t.length&&this.batch((()=>{t.forEach((t=>{this.pushChange({value:this.getComboData([t])[0],type:rc.ComboRemoved}),this.removeNodeLikeHierarchy(t),this.comboIds.delete(t)})),this.model.removeNodes(t)}))}removeNodeLikeHierarchy(t){if(this.model.hasTreeStructure(pc)){const e=kh(this.getNodeLikeDatum(t));this.setParent(t,void 0,pc,!1),this.model.getChildren(t,pc).forEach((t=>{const n=rT(t),i=Dh(n);this.setParent(Dh(n),e,pc,!1);const r=Jw(n,{id:Dh(n),combo:e});this.pushChange({value:r,original:n,type:this.isCombo(i)?rc.ComboUpdated:rc.NodeUpdated}),this.model.mergeNodeData(Dh(n),r)})),Qe(e)||this.refreshComboData(e)}}getElementType(t){if(this.model.hasNode(t))return this.isCombo(t)?"combo":"node";if(this.model.hasEdge(t))return"edge";throw new Error(xc(`Unknown element type of id: ${t}`))}destroy(){const{model:t}=this,e=t.getAllNodes(),n=t.getAllEdges();t.removeEdges(n.map((t=>t.id))),t.removeNodes(e.map((t=>t.id))),this.context={}}}var oT=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};class sT{constructor(t){this.elementMap={},this.shapeTypeMap={},this.paletteStyle={},this.defaultStyle={},this.stateStyle={},this.visibilityCache=new WeakMap,this.context=t}init(){if(!this.container){const{canvas:t}=this.context;this.container=t.appendChild(new wl({className:"elements"}))}}emit(t,e){e.silence||Vw(this.context.graph,t)}forEachElementData(t){Bd.forEach((e=>{const n=this.context.model.getElementsDataByType(e);t(e,n)}))}getElementType(t,e){var n;const{options:i,graph:r}=this.context,a=(null===(n=i[t])||void 0===n?void 0:n.type)||e.type;return a?"string"==typeof a?a:a.call(r,e):"edge"===t?"line":"circle"}getTheme(t){return _c(this.context.options)[t]||{}}getThemeStyle(t){return this.getTheme(t).style||{}}getThemeStateStyle(t,e){const{state:n={}}=this.getTheme(t);return Object.assign({},...e.map((t=>n[t]||{})))}computePaletteStyle(){const{options:t}=this.context;this.paletteStyle={},this.forEachElementData(((e,n)=>{var i,r;const a=Object.assign({},lf(null===(i=this.getTheme(e))||void 0===i?void 0:i.palette),lf(null===(r=t[e])||void 0===r?void 0:r.palette));(null==a?void 0:a.field)&&Object.assign(this.paletteStyle,function(t,e){if(!e)return{};const{type:n,color:i,field:r,invert:a}=e,o=t=>{const e="string"==typeof i?yc("palette",i):i;if("function"==typeof e){const n={};return t.forEach((([t,i])=>{n[t]=e(a?1-i:i)})),n}if(Array.isArray(e)){const n=a?[...e].reverse():e,i={};return t.forEach((([t,r])=>{i[t]=n[r%e.length]})),i}return{}},s=(t,e)=>{var n;return"string"==typeof t?null===(n=e.data)||void 0===n?void 0:n[t]:null==t?void 0:t(e)};if("group"===n){const e=Bc(t,(t=>{if(!r)return"default";const e=s(r,t);return e?String(e):"default"})),n=o(Object.keys(e).map(((t,e)=>[t,e]))),i={};return Object.entries(e).forEach((([t,e])=>{e.forEach((e=>{i[Dh(e)]=n[t]}))})),i}if("value"===n){const[e,n]=t.reduce((([t,e],n)=>{const i=s(r,n);if("number"!=typeof i)throw new Error(xc(`Palette field ${r} is not a number`));return[Math.min(t,i),Math.max(e,i)]}),[1/0,-1/0]),i=n-e;return o(t.map((t=>[t.id,(s(r,t)-e)/i])))}}(n,a))}))}getPaletteStyle(t,e){const n=this.paletteStyle[e];return n?"edge"===t?{stroke:n}:{fill:n}:{}}computeElementDefaultStyle(t,e){var n;const{options:i}=this.context,r=(null===(n=i[t])||void 0===n?void 0:n.style)||{};"transform"in r&&Array.isArray(r.transform)&&(r.transform=[...r.transform]),this.defaultStyle[Dh(e.datum)]=nf(r,e)}computeElementsDefaultStyle(t){const{graph:e}=this.context;this.forEachElementData(((n,i)=>{const r=i.length;for(let a=0;athis.getElementStateStyle(t,e,n))))}computeElementsStatesStyle(t){const{graph:e}=this.context;this.forEachElementData(((n,i)=>{const r=i.length;for(let a=0;athis.elementMap[t]))}getEdges(){return this.context.model.getEdgeData().map((t=>this.elementMap[Dh(t)]))}getCombos(){return this.context.model.getComboData().map((({id:t})=>this.elementMap[t]))}getElementComputedStyle(t,e){const n=Dh(e),i=this.getThemeStyle(t),r=this.getPaletteStyle(t,n),a=e.style||{},o=this.getDefaultStyle(n),s=this.getThemeStateStyle(t,this.getElementState(n)),l=this.getStateStyle(n),u=Object.assign({},i,r,a,o,s,l);if("combo"===t){const t=this.context.model.getChildrenData(n),e=!!u.collapsed?[]:t.map(Dh).filter((t=>this.getElement(t)));Object.assign(u,{childrenNode:e,childrenData:t})}return u}draw(t={animation:!0}){this.init();const e=this.computeChangesAndDrawData(t);if(!e)return null;const{type:n="draw",stage:i=n,animation:r,silence:a}=t,{dataChanges:o,drawData:s}=e;this.markDestroyElement(s),this.computeStyle(i);const{add:l,update:u,remove:c}=s;return this.destroyElements(c,t),this.createElements(l,t),this.updateElements(u,t),this.context.animation.animate(r,a?{}:{before:()=>this.emit(new Gw(hc.BEFORE_DRAW,{dataChanges:o,animation:r,stage:i,render:"render"===n}),t),beforeAnimate:e=>this.emit(new jw(hc.BEFORE_ANIMATE,ac.DRAW,e,s),t),afterAnimate:e=>this.emit(new jw(hc.AFTER_ANIMATE,ac.DRAW,e,s),t),after:()=>this.emit(new Gw(hc.AFTER_DRAW,{dataChanges:o,animation:r,stage:i,render:"render"===n,firstRender:!1===this.context.graph.rendered}),t)})}computeChangesAndDrawData(t){const{model:e}=this.context,n=e.getChanges(),i=Ay(n);if(0===i.length)return null;const{NodeAdded:r=[],NodeUpdated:a=[],NodeRemoved:o=[],EdgeAdded:s=[],EdgeUpdated:l=[],EdgeRemoved:u=[],ComboAdded:c=[],ComboUpdated:h=[],ComboRemoved:d=[]}=Bc(i,(t=>t.type)),f=t=>new Map(t.map((t=>{const e=t.value;return[Dh(e),e]}))),p={add:{nodes:f(r),edges:f(s),combos:f(c)},update:{nodes:f(a),edges:f(l),combos:f(h)},remove:{nodes:f(o),edges:f(u),combos:f(d)}},g=this.transformData(p,t);return e.clearChanges(),{dataChanges:n,drawData:g}}transformData(t,e){const n=this.context.transform.getTransformInstance();return Object.values(n).reduce(((t,n)=>n.beforeDraw(t,e)),t)}createElement(t,e,n){var i;const r=Dh(e);if(this.getElement(r))return;const a=this.getElementType(t,e),o=this.getElementComputedStyle(t,e),s=yc(t,a);if(!s)return bc.warn(`The element ${a} of ${t} is not registered.`);this.emit(new Uw(hc.BEFORE_ELEMENT_CREATE,t,e),n);const l=this.container.appendChild(new s({id:r,context:this.context,style:Object.assign({},o)}));this.shapeTypeMap[r]=a,this.elementMap[r]=l;const{stage:u="enter"}=n;null===(i=this.context.animation)||void 0===i||i.add({element:l,elementType:t,stage:u,originalStyle:Object.assign({},l.attributes),updatedStyle:o},{after:()=>{var i;this.emit(new Uw(hc.AFTER_ELEMENT_CREATE,t,e),n),null===(i=l.onCreate)||void 0===i||i.call(l)}})}createElements(t,e){const{nodes:n,edges:i,combos:r}=t;[["node",n],["combo",r],["edge",i]].forEach((([t,n])=>{n.forEach((n=>this.createElement(t,n,e)))}))}getUpdateStageStyle(t,e,n){const{stage:i="update"}=n;if("translate"===i){if("node"===t||"combo"===t){const{style:{x:t=0,y:n=0,z:i=0}={}}=e;return{x:t,y:n,z:i}}return{}}return this.getElementComputedStyle(t,e)}updateElement(t,e,n){var i;const r=Dh(e),{stage:a="update"}=n,o=this.getElement(r);if(!o)return()=>null;this.emit(new Uw(hc.BEFORE_ELEMENT_UPDATE,t,e),n);const s=this.getElementType(t,e),l=this.getUpdateStageStyle(t,e,n);this.shapeTypeMap[r]!==s&&(o.destroy(),delete this.shapeTypeMap[r],delete this.elementMap[r],this.createElement(t,e,{animation:!1,silence:!0}));const u="visibility"!==a?a:"hidden"===l.visibility?"hide":"show";"hide"===u&&delete l.visibility,null===(i=this.context.animation)||void 0===i||i.add({element:o,elementType:t,stage:u,originalStyle:Object.assign({},o.attributes),updatedStyle:l},{before:()=>{const t=this.elementMap[r];"collapse"!==a&&Em(t,l),"visibility"===a&&(function(t,e){return Xw(e)in(Zd(t,Ww)||{})}(t,"opacity")||function(t,e){const n=Array.isArray(e)?e:[e];Zd(t,Ww)||Wd(t,Ww,{}),n.forEach((e=>{Wd(Zd(t,Ww),Xw(e),t.attributes[e])}))}(t,"opacity"),this.visibilityCache.set(t,"show"===u?"visible":"hidden"),"show"===u&&Xh(t,"visible"))},after:()=>{var i;const o=this.elementMap[r];"collapse"===a&&Em(o,l),"hide"===u&&Xh(o,this.visibilityCache.get(o)),this.emit(new Uw(hc.AFTER_ELEMENT_UPDATE,t,e),n),null===(i=o.onUpdate)||void 0===i||i.call(o)}})}updateElements(t,e){const{nodes:n,edges:i,combos:r}=t;[["node",n],["combo",r],["edge",i]].forEach((([t,n])=>{n.forEach((n=>this.updateElement(t,n,e)))}))}markDestroyElement(t){Object.values(t.remove).forEach((t=>{t.forEach((t=>{const e=Dh(t),n=this.getElement(e);n&&function(t){Wd(t,"__to_be_destroyed__",!0)}(n)}))}))}destroyElement(t,e,n){var i;const{stage:r="exit"}=n,a=Dh(e),o=this.elementMap[a];if(!o)return()=>null;this.emit(new Uw(hc.BEFORE_ELEMENT_DESTROY,t,e),n),null===(i=this.context.animation)||void 0===i||i.add({element:o,elementType:t,stage:r,originalStyle:Object.assign({},o.attributes),updatedStyle:{}},{after:()=>{var i;this.clearElement(a),o.destroy(),null===(i=o.onDestroy)||void 0===i||i.call(o),this.emit(new Uw(hc.AFTER_ELEMENT_DESTROY,t,e),n)}})}destroyElements(t,e){const{nodes:n,edges:i,combos:r}=t;[["combo",r],["edge",i],["node",n]].forEach((([t,n])=>{n.forEach((n=>this.destroyElement(t,n,e)))}))}clearElement(t){delete this.paletteStyle[t],delete this.defaultStyle[t],delete this.stateStyle[t],delete this.elementMap[t],delete this.shapeTypeMap[t]}collapseNode(t,e){return oT(this,void 0,void 0,(function*(){var n;const{model:i,layout:r}=this.context,a=this.computeChangesAndDrawData({stage:"collapse",animation:e});if(!a)return;this.markDestroyElement(a.drawData);const o=yield r.simulate();i.updateData(o);const s=this.computeChangesAndDrawData({stage:"collapse",animation:e});if(!s)return;const{drawData:l}=s,{add:u,remove:c,update:h}=l;this.markDestroyElement(l);const d={animation:e,stage:"collapse",data:l};this.destroyElements(c,d),this.createElements(u,d),this.updateElements(h,d),yield null===(n=this.context.animation.animate(e,{beforeAnimate:t=>this.emit(new jw(hc.BEFORE_ANIMATE,ac.COLLAPSE,t,l),d),afterAnimate:t=>this.emit(new jw(hc.AFTER_ANIMATE,ac.COLLAPSE,t,l),d)},{collapse:{target:t,descendants:Array.from(c.nodes).map((([,t])=>Dh(t))),position:md(h.nodes.get(t))}}))||void 0===n?void 0:n.finished}))}expandNode(t,e){return oT(this,void 0,void 0,(function*(){var n;const{model:i,layout:r}=this.context;if(!i.getAncestorsData(t,pc).every((t=>Vd(t))))return;const a=md(i.getNodeData([t])[0]),o=this.computeChangesAndDrawData({stage:"expand",animation:e});if(!o)return;const{drawData:{add:s}}=o;this.createElements(s,{animation:!1,stage:"expand",target:t}),this.context.animation.clear();const l=yield r.simulate();i.updateData(l),this.computeStyle("expand");const u=this.computeChangesAndDrawData({stage:"collapse",animation:e});if(!u)return;const{drawData:c}=u,{update:h}=c,d={animation:e,stage:"expand",data:c};s.edges.forEach((t=>h.edges.set(Dh(t),t))),s.nodes.forEach((t=>h.nodes.set(Dh(t),t))),this.updateElements(h,d),yield null===(n=this.context.animation.animate(e,{beforeAnimate:t=>this.emit(new jw(hc.BEFORE_ANIMATE,ac.EXPAND,t,c),d),afterAnimate:t=>this.emit(new jw(hc.AFTER_ANIMATE,ac.EXPAND,t,c),d)},{expand:{target:t,descendants:Array.from(s.nodes).map((([,t])=>Dh(t))),position:a}}))||void 0===n?void 0:n.finished}))}collapseCombo(t,e){return oT(this,void 0,void 0,(function*(){var n;const{model:i,element:r}=this.context;if(i.getAncestorsData(t,pc).some((t=>Vd(t))))return;const a=r.getElement(t),o=a.getComboPosition(Object.assign(Object.assign({},a.attributes),{collapsed:!0})),s=this.computeChangesAndDrawData({stage:"collapse",animation:e});if(!s)return;const{dataChanges:l,drawData:u}=s;this.markDestroyElement(u);const{update:c,remove:h}=u,d={animation:e,stage:"collapse",data:u};this.destroyElements(h,d),this.updateElements(c,d);const f=t=>Array.from(t).map((([,t])=>Dh(t)));yield null===(n=this.context.animation.animate(e,{before:()=>this.emit(new Gw(hc.BEFORE_DRAW,{dataChanges:l,animation:e}),d),beforeAnimate:t=>this.emit(new jw(hc.BEFORE_ANIMATE,ac.COLLAPSE,t,u),d),afterAnimate:t=>this.emit(new jw(hc.AFTER_ANIMATE,ac.COLLAPSE,t,u),d),after:()=>this.emit(new Gw(hc.AFTER_DRAW,{dataChanges:l,animation:e}),d)},{collapse:{target:t,descendants:[...f(h.nodes),...f(h.combos)],position:o}}))||void 0===n?void 0:n.finished}))}expandCombo(t,e){return oT(this,void 0,void 0,(function*(){var n;const{model:i}=this.context,r=md(i.getComboData([t])[0]);this.computeStyle("expand");const a=this.computeChangesAndDrawData({stage:"expand",animation:e});if(!a)return;const{dataChanges:o,drawData:s}=a,{add:l,update:u}=s,c={animation:e,stage:"expand",data:s,target:t};this.createElements(l,c),this.updateElements(u,c);const h=t=>Array.from(t).map((([,t])=>Dh(t)));yield null===(n=this.context.animation.animate(e,{before:()=>this.emit(new Gw(hc.BEFORE_DRAW,{dataChanges:o,animation:e}),c),beforeAnimate:t=>this.emit(new jw(hc.BEFORE_ANIMATE,ac.EXPAND,t,s),c),afterAnimate:t=>this.emit(new jw(hc.AFTER_ANIMATE,ac.EXPAND,t,s),c),after:()=>this.emit(new Gw(hc.AFTER_DRAW,{dataChanges:o,animation:e}),c)},{expand:{target:t,descendants:[...h(l.nodes),...h(l.combos)],position:r}}))||void 0===n?void 0:n.finished}))}destroy(){this.container.destroy(),this.elementMap={},this.shapeTypeMap={},this.defaultStyle={},this.stateStyle={},this.paletteStyle={},this.context={}}}const lT=Symbol("Comlink.proxy"),uT=Symbol("Comlink.endpoint"),cT=Symbol("Comlink.releaseProxy"),hT=Symbol("Comlink.finalizer"),dT=Symbol("Comlink.thrown"),fT=t=>"object"==typeof t&&null!==t||"function"==typeof t,pT=new Map([["proxy",{canHandle:t=>fT(t)&&t[lT],serialize(t){const{port1:e,port2:n}=new MessageChannel;return gT(t,e),[n,[n]]},deserialize(t){return t.start(),vT(t)}}],["throw",{canHandle:t=>fT(t)&&dT in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function gT(t,e=globalThis,n=["*"]){e.addEventListener("message",(function i(r){if(!r||!r.data)return;if(!function(t,e){for(const n of t){if(e===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}return!1}(n,r.origin))return void console.warn(`Invalid origin '${r.origin}' for comlink proxy`);const{id:a,type:o,path:s}=Object.assign({path:[]},r.data),l=(r.data.argumentList||[]).map(MT);let u;try{const e=s.slice(0,-1).reduce(((t,e)=>t[e]),t),n=s.reduce(((t,e)=>t[e]),t);switch(o){case"GET":u=n;break;case"SET":e[s.slice(-1)[0]]=MT(r.data.value),u=!0;break;case"APPLY":u=n.apply(e,l);break;case"CONSTRUCT":u=function(t){return Object.assign(t,{[lT]:!0})}(new n(...l));break;case"ENDPOINT":{const{port1:e,port2:n}=new MessageChannel;gT(t,n),u=function(t,e){return TT.set(t,e),t}(e,[e])}break;case"RELEASE":u=void 0;break;default:return}}catch(t){u={value:t,[dT]:0}}Promise.resolve(u).catch((t=>({value:t,[dT]:0}))).then((n=>{const[r,s]=ST(n);e.postMessage(Object.assign(Object.assign({},r),{id:a}),s),"RELEASE"===o&&(e.removeEventListener("message",i),mT(e),hT in t&&"function"==typeof t[hT]&&t[hT]())})).catch((t=>{const[n,i]=ST({value:new TypeError("Unserializable return value"),[dT]:0});e.postMessage(Object.assign(Object.assign({},n),{id:a}),i)}))})),e.start&&e.start()}function mT(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function vT(t,e){const n=new Map;return t.addEventListener("message",(function(t){const{data:e}=t;if(!e||!e.id)return;const i=n.get(e.id);if(i)try{i(e)}finally{n.delete(e.id)}})),ET(t,n,[],e)}function yT(t){if(t)throw new Error("Proxy has been released and is not useable")}function xT(t){return CT(t,new Map,{type:"RELEASE"}).then((()=>{mT(t)}))}const bT=new WeakMap,_T="FinalizationRegistry"in globalThis&&new FinalizationRegistry((t=>{const e=(bT.get(t)||0)-1;bT.set(t,e),0===e&&xT(t)}));function ET(t,e,n=[],i=function(){}){let r=!1;const a=new Proxy(i,{get(i,o){if(yT(r),o===cT)return()=>{!function(t){_T&&_T.unregister(t)}(a),xT(t),e.clear(),r=!0};if("then"===o){if(0===n.length)return{then:()=>a};const i=CT(t,e,{type:"GET",path:n.map((t=>t.toString()))}).then(MT);return i.then.bind(i)}return ET(t,e,[...n,o])},set(i,a,o){yT(r);const[s,l]=ST(o);return CT(t,e,{type:"SET",path:[...n,a].map((t=>t.toString())),value:s},l).then(MT)},apply(i,a,o){yT(r);const s=n[n.length-1];if(s===uT)return CT(t,e,{type:"ENDPOINT"}).then(MT);if("bind"===s)return ET(t,e,n.slice(0,-1));const[l,u]=wT(o);return CT(t,e,{type:"APPLY",path:n.map((t=>t.toString())),argumentList:l},u).then(MT)},construct(i,a){yT(r);const[o,s]=wT(a);return CT(t,e,{type:"CONSTRUCT",path:n.map((t=>t.toString())),argumentList:o},s).then(MT)}});return function(t,e){const n=(bT.get(e)||0)+1;bT.set(e,n),_T&&_T.register(t,e,t)}(a,t),a}function wT(t){const e=t.map(ST);return[e.map((t=>t[0])),(n=e.map((t=>t[1])),Array.prototype.concat.apply([],n))];var n}const TT=new WeakMap;function ST(t){for(const[e,n]of pT)if(n.canHandle(t)){const[i,r]=n.serialize(t);return[{type:"HANDLER",name:e,value:i},r]}return[{type:"RAW",value:t},TT.get(t)||[]]}function MT(t){switch(t.type){case"HANDLER":return pT.get(t.name).deserialize(t.value);case"RAW":return t.value}}function CT(t,e,n,i){return new Promise((r=>{const a=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");e.set(a,r),t.start&&t.start(),t.postMessage(Object.assign({id:a},n),i)}))}class AT extends Cy.Z{constructor(t,e,n){super(),this.graph=t,this.layout=e,this.options=n,this.spawnWorker()}spawnWorker(){this.proxy=vT(new Worker(new URL(n.p+n.u(46122),n.b),{type:void 0})),this.running&&(this.running=!1,this.execute())}execute(){var t;return(0,he.mG)(this,void 0,void 0,(function*(){if(this.running)return this;this.running=!0;const e=this.layout.options,{onTick:n}=e,i=(0,he._T)(e,["onTick"]),r={};Object.keys(i).forEach((t=>{(0,en.Z)(i[t])||(r[t]=i[t])}));const a={layout:{id:this.layout.id,options:r,iterations:null===(t=this.options)||void 0===t?void 0:t.iterations},nodes:this.graph.getAllNodes(),edges:this.graph.getAllEdges()},o=new Float32Array([0]),[s]=yield this.proxy.calculateLayout(a,[o]);return s}))}stop(){return this.running=!1,this.proxy.stopLayout(),this}kill(){this.proxy[cT]()}isRunning(){return this.running}}var OT=n(31350),NT=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))},PT=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);rt.afterLayout()))}simulate(){return NT(this,void 0,void 0,(function*(){if(!this.options)return{};const t=Array.isArray(this.options)?this.options:[this.options];let e={};for(const n of t){const i=t.indexOf(n),r=this.getLayoutData(n);e=yield this.stepLayout(r,Object.assign(Object.assign(Object.assign({},this.presetOptions),n),{animation:!1}),i)}return e}))}stepLayout(t,e,n){return NT(this,void 0,void 0,(function*(){return function(t){const{type:e}=t;return["compact-box","mindmap","dendrogram","indented"].includes(e)}(e)?yield this.treeLayout(t,e,n):yield this.graphLayout(t,e,n)}))}graphLayout(t,e,n){return NT(this,void 0,void 0,(function*(){const{animation:i,enableWorker:r,iterations:a=300}=e,o=this.initGraphLayout(e);if(!o)return{};if(this.instances[n]=o,this.instance=o,r){const e=o;return this.supervisor=new AT(e.graphData2LayoutModel(t),e.instance,{iterations:a}),zm(yield this.supervisor.execute())}if((0,OT.h)(o))return i?yield o.execute(t,{onTick:t=>{this.updateElementPosition(t,!1)}}):(o.execute(t),o.stop(),o.tick(a));const s=yield o.execute(t);if(i){const t=this.updateElementPosition(s,i);yield null==t?void 0:t.finished}return s}))}treeLayout(t,e,n){return NT(this,void 0,void 0,(function*(){const{type:n,animation:i}=e,r=yc("layout",n);if(!r)return{};const{nodes:a=[],edges:o=[]}=t,s=new km.k({nodes:a.map((t=>({id:Dh(t),data:t.data||{}}))),edges:o.map((t=>({id:Dh(t),source:t.source,target:t.target,data:t.data||{}})))});!function(t){if(t.hasTreeStructure(gc))return;t.attachTreeStructure(gc);const e=t.getAllEdges();for(const n of e){const{source:e,target:i}=n;t.setParent(i,e,gc)}}(s);const l={nodes:[],edges:[]},u={nodes:[],edges:[]};s.getRoots(gc).forEach((t=>{Fd(t,(t=>{t.children=s.getSuccessors(t.id)}),(t=>s.getSuccessors(t.id)),"TB");const n=r(t,e),{x:i,y:a,z:o=0}=n;Fd(n,(t=>{const{id:e,x:n,y:r,z:s=0}=t;l.nodes.push({id:e,style:{x:i,y:a,z:o}}),u.nodes.push({id:e,style:{x:n,y:r,z:s}})}),(t=>t.children),"TB")}));const c=this.inferTreeLayoutOffset(u);if(RT(u,c),i){RT(l,c),this.updateElementPosition(l,!1);const t=this.updateElementPosition(u,i);yield null==t?void 0:t.finished}return u}))}inferTreeLayoutOffset(t){var e;let[n,i]=[1/0,-1/0],[r,a]=[1/0,-1/0];null===(e=t.nodes)||void 0===e||e.forEach((t=>{const{x:e=0,y:o=0}=t.style||{};n=Math.min(n,e),i=Math.max(i,e),r=Math.min(r,o),a=Math.max(a,o)}));const{canvas:o}=this.context,s=o.getSize(),[l,u]=o.getCanvasByViewport([0,0]),[c,h]=o.getCanvasByViewport(s);if(n>=l&&i<=c&&r>=u&&a<=h)return[0,0];return[(l+c)/2-(n+i)/2,(u+h)/2-(r+a)/2]}stopLayout(){this.instance&&(0,OT.h)(this.instance)&&(this.instance.stop(),this.instance=void 0),this.supervisor&&(this.supervisor.stop(),this.supervisor=void 0),this.animationResult&&(this.animationResult.finish(),this.animationResult=void 0)}getLayoutData(t){const{nodeFilter:e=(()=>!0)}=t,{nodes:n,edges:i,combos:r}=this.context.model.getData(),a=t=>this.context.element.getElement(t),o=n.filter((t=>{const n=Dh(t),i=a(n);return!!i&&(!wm(i)&&e(t))})),s=new Map(o.map((t=>[Dh(t),t])));return{nodes:o,edges:i.filter((t=>{const{source:e,target:n}=t;return!(!s.has(e)||!s.has(n))})),combos:r}}initGraphLayout(t){var e;const{element:n,viewport:i}=this.context,{type:r,enableWorker:a,animation:o,iterations:s}=t,l=PT(t,["type","enableWorker","animation","iterations"]),[u,c]=i.getCanvasSize(),h=[u/2,c/2],d=null!==(e=null==t?void 0:t.nodeSize)&&void 0!==e?e:t=>{const e=null==n?void 0:n.getElement(t.id),{size:i}=(null==e?void 0:e.attributes)||{};return i},f=yc("layout",r);if(!f)return bc.warn(`The layout of ${r} is not registered.`);const p=Object.getPrototypeOf(f.prototype)===Im.prototype?f:function(t,e){return class extends Im{constructor(e,n){if(super(e,n),this.instance=new t({}),this.id=this.instance.id,"stop"in this.instance&&"tick"in this.instance){const t=this.instance;this.stop=t.stop.bind(t),this.tick=e=>zm(t.tick(e))}}execute(t,e){return Bm(this,void 0,void 0,(function*(){return zm(yield this.instance.execute(this.graphData2LayoutModel(t),this.transformOptions((0,Qh.Z)({},this.options,e))))}))}transformOptions(t){const{onTick:e}=t;return e?(t.onTick=t=>e(zm(t)),t):t}graphData2LayoutModel(t){const{nodes:n=[],edges:i=[],combos:r=[]}=t,a=n.map((t=>{const e=Dh(t),{data:n,style:i,combo:r}=t,a=Fm(t,["data","style","combo"]),o={id:e,data:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),{data:n}),r?{parentId:r}:{}),{style:i}),a)};return(null==i?void 0:i.x)&&Object.assign(o.data,{x:i.x}),(null==i?void 0:i.y)&&Object.assign(o.data,{y:i.y}),(null==i?void 0:i.z)&&Object.assign(o.data,{z:i.z}),o})),o=new Map(a.map((t=>[t.id,t]))),s=i.filter((t=>{const{source:e,target:n}=t;return o.has(e)&&o.has(n)})).map((t=>{const{source:e,target:n,data:i,style:r}=t;return{id:Dh(t),source:e,target:n,data:Object.assign({},i),style:Object.assign({},r)}})),l=r.map((t=>({id:Dh(t),data:Object.assign({_isCombo:!0},t.data),style:Object.assign({},t.style)}))),u=new km.k({nodes:[...a,...l],edges:s});return e.model.model.hasTreeStructure(pc)&&(u.attachTreeStructure(pc),a.forEach((t=>{const n=e.model.model.getParent(t.id,pc);n&&u.hasNode(n.id)&&u.setParent(t.id,n.id,pc)}))),u}}}(f,this.context),g=new p(this.context),m={nodeSize:d,width:u,height:c,center:h};switch(g.id){case"d3-force":case"d3-force-3d":Object.assign(m,{center:{x:u/2,y:c/2,z:0}})}return(0,Qh.Z)(g.options,m,l),g}updateElementPosition(t,e){const{model:n,element:i}=this.context;return i?(n.updateData(t),i.draw({animation:e,silence:!0})):null}destroy(){var t;this.stopLayout(),this.context={},null===(t=this.supervisor)||void 0===t||t.kill(),this.supervisor=void 0,this.instance=void 0,this.instances=[],this.animationResult=void 0}}const RT=(t,e)=>{var n;const[i,r]=e;null===(n=t.nodes)||void 0===n||n.forEach((t=>{if(t.style){const{x:e=0,y:n=0}=t.style;t.style.x=e+i,t.style.y=n+r}else t.style={x:i,y:r}}))};class DT extends Yh{constructor(t){super(t),this.category="plugin",this.setPlugins(this.context.options.plugins||[])}setPlugins(t){this.setExtensions(t)}getPluginInstance(t){const e=this.extensionMap[t];if(e)return e;bc.warn(`Cannot find the plugin ${t}, will try to find it by type.`);const n=this.extensions.find((e=>e.type===t));return n?this.extensionMap[n.key]:void 0}}const kT=["update-related-edges","collapse-expand-node","collapse-expand-combo","get-edge-actual-ends","arrange-draw-order"];class IT extends Yh{constructor(t){super(t),this.category="transform",this.setTransforms(this.context.options.transforms||[])}getTransforms(){}setTransforms(t){this.setExtensions([...kT.slice(0,kT.length-1),...t,kT[kT.length-1]])}getTransformInstance(t){return t?this.extensionMap[t]:this.extensionMap}}var BT=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};class FT{get padding(){return Uc(this.context.options.padding)}get paddingOffset(){const[t,e,n,i]=this.padding,[r,a,o]=[(i-e)/2,(t-n)/2,0];return[r,a,o]}constructor(t){this.landmarkCounter=0,this.context=t;const[e,n]=this.paddingOffset,{zoom:i,rotation:r,x:a=e,y:o=n}=t.options;this.transform({mode:"absolute",scale:i,translate:[a,o],rotate:r},!1)}get camera(){const{canvas:t}=this.context;return new Proxy(t.getCamera(),{get:(e,n)=>{const i=Object.entries(t.getLayers()).filter((([t])=>!["main"].includes(t))).map((([,t])=>t.getCamera())),r=e[n];if("function"==typeof r)return(...t)=>{const a=r.apply(e,t);return i.forEach((e=>{e[n].apply(e,t)})),a}}})}createLandmark(t){return this.camera.createLandmark("landmark-"+this.landmarkCounter++,t)}getAnimation(t){const e=Sc(this.context.options,t);return!!e&&(0,rg.Z)(Object.assign({},e),["easing","duration"])}getCanvasSize(){const{canvas:t}=this.context,{width:e=0,height:n=0}=t.getConfig();return[e,n]}getCanvasCenter(){const{canvas:t}=this.context,{width:e=0,height:n=0}=t.getConfig();return[e/2,n/2,0]}getViewportCenter(){const[t,e]=this.camera.getPosition();return[t,e,0]}getGraphCenter(){return this.context.graph.getViewportByCanvas(this.getCanvasCenter())}getZoom(){return this.camera.getZoom()}getRotation(){return this.camera.getRoll()}getTranslateOptions(t){const{camera:e}=this,{mode:n,translate:i=[]}=t,r=this.getZoom(),a=e.getPosition(),o=e.getFocalPoint(),[s,l]=this.getCanvasCenter(),[u=0,c=0,h=0]=i,d=id([-u,-c,-h],r);return"relative"===n?{position:td(a,d),focalPoint:td(o,d)}:{position:td([s,l,a[2]],d),focalPoint:td([s,l,o[2]],d)}}getRotateOptions(t){const{mode:e,rotate:n=0}=t;return{roll:"relative"===e?this.camera.getRoll()+n:n}}getZoomOptions(t){const{zoomRange:e}=this.context.options,n=this.camera.getZoom(),{mode:i,scale:r=1}=t;return ce("relative"===i?n*r:r,...e)}transform(t,e){return BT(this,void 0,void 0,(function*(){const{graph:n}=this.context,{translate:i,rotate:r,scale:a,origin:o}=t;this.cancelAnimation();const s=this.getAnimation(e);if(Vw(n,new Hw(hc.BEFORE_TRANSFORM,t)),!r&&a&&!i&&o&&!s)return this.camera.setZoomByViewportPoint(this.getZoomOptions(t),o),void Vw(n,new Hw(hc.AFTER_TRANSFORM,t));const l={};if(i&&Object.assign(l,this.getTranslateOptions(t)),(0,oe.Z)(r)&&Object.assign(l,this.getRotateOptions(t)),(0,oe.Z)(a)&&Object.assign(l,{zoom:this.getZoomOptions(t)}),s)return Vw(n,new jw(hc.BEFORE_ANIMATE,ac.TRANSFORM,null,t)),new Promise((e=>{this.transformResolver=e,this.camera.gotoLandmark(this.createLandmark(l),Object.assign(Object.assign({},s),{onfinish:()=>{Vw(n,new jw(hc.AFTER_ANIMATE,ac.TRANSFORM,null,t)),Vw(n,new Hw(hc.AFTER_TRANSFORM,t)),this.transformResolver=void 0,e()}}))}));this.camera.gotoLandmark(this.createLandmark(l),{duration:0}),Vw(n,new Hw(hc.AFTER_TRANSFORM,t))}))}fitView(t,e){return BT(this,void 0,void 0,(function*(){const[n,i,r,a]=this.padding,{when:o="always",direction:s="both"}=t||{},[l,u]=this.context.canvas.getSize(),c=l-a-i,h=u-n-r,d=this.context.canvas.getBounds(),f=this.getBBoxInViewport(d),[p,g]=Wc(f);if("overflow"===o&&!("x"===s&&p>=c||"y"===s&&g>=h||"both"===s&&p>=c&&g>=h))return yield this.fitCenter(e);const m=c/p,v=h/g,y="x"===s?m:"y"===s?v:Math.min(m,v),x=this.getAnimation(e);yield this.transform({mode:"relative",scale:y,translate:td(ed(this.getCanvasCenter(),this.getBBoxInViewport(d).center),id(this.paddingOffset,y))},x)}))}fitCenter(t){return BT(this,void 0,void 0,(function*(){const e=this.context.canvas.getBounds();yield this.focus(e,t)}))}focusElements(t,e){return BT(this,void 0,void 0,(function*(){const{element:n}=this.context;if(!n)return;const i=$c(t.map((t=>n.getElement(t).getRenderBounds())));yield this.focus(i,e)}))}focus(t,e){return BT(this,void 0,void 0,(function*(){const n=this.context.graph.getViewportByCanvas(t.center),i=ed(this.getCanvasCenter(),n);yield this.transform({mode:"relative",translate:td(i,this.paddingOffset)},e)}))}getBBoxInViewport(t){const{min:e,max:n}=t,{graph:i}=this.context,[r,a]=i.getViewportByCanvas(e),[o,s]=i.getViewportByCanvas(n),l=new Ti;return l.setMinMax([r,a,0],[o,s,0]),l}isInViewport(t,e=!1,n=0){const{graph:i}=this.context,r=this.getCanvasSize(),[a,o]=i.getCanvasByViewport([0,0]),[s,l]=i.getCanvasByViewport(r);let u=new Ti;return u.setMinMax([a,o,0],[s,l,0]),n&&(u=qc(u,n)),Gc(t)?Kc(t,u):e?function(t,e){const[n,i]=t.min,[r,a]=t.max,[o,s]=e.min,[l,u]=e.max;return n>=o&&r<=l&&i>=s&&a<=u}(t,u):u.intersects(t)}cancelAnimation(){var t,e;(null===(t=this.camera.landmarks)||void 0===t?void 0:t.length)&&this.camera.cancelLandmarkAnimation(),null===(e=this.transformResolver)||void 0===e||e.call(this)}}var zT=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};class GT extends Cy.Z{constructor(t){var e;super(),this.rendered=!1,this.destroyed=!1,this.context={model:new aT},this.isCollapsingExpanding=!1,this.onResize=Nm((()=>{this.resize()}),300),this.options=Object.assign({},GT.defaultOptions,t),this._setOptions(this.options,!0),this.context.graph=this,this.options.autoResize&&(null===(e=globalThis.addEventListener)||void 0===e||e.call(globalThis,"resize",this.onResize))}getOptions(){return this.options}setOptions(t){this._setOptions(t,!1)}_setOptions(t,e){if(this.updateCanvas(t),e){const{data:e}=t;return void(e&&this.addData(e))}Object.assign(this.options,t);const{behaviors:n,combo:i,data:r,edge:a,layout:o,node:s,plugins:l,theme:u,transforms:c}=t;n&&this.setBehaviors(n),r&&this.setData(r),s&&this.setNode(s),a&&this.setEdge(a),i&&this.setCombo(i),o&&this.setLayout(o),u&&this.setTheme(u),l&&this.setPlugins(l),c&&this.setTransforms(c)}getSize(){return this.context.canvas?this.context.canvas.getSize():[this.options.width||0,this.options.height||0]}setSize(t,e){t&&(this.options.width=t),e&&(this.options.height=e),this.resize(t,e)}setZoomRange(t){this.options.zoomRange=t}getZoomRange(){return this.options.zoomRange}setNode(t){this.options.node=t,this.context.model.refreshData()}setEdge(t){this.options.edge=t,this.context.model.refreshData()}setCombo(t){this.options.combo=t,this.context.model.refreshData()}getTheme(){return this.options.theme}setTheme(t){this.options.theme=(0,en.Z)(t)?t(this.getTheme()):t}setLayout(t){this.options.layout=(0,en.Z)(t)?t(this.getLayout()):t}getLayout(){return this.options.layout}setBehaviors(t){var e;this.options.behaviors=(0,en.Z)(t)?t(this.getBehaviors()):t,null===(e=this.context.behavior)||void 0===e||e.setBehaviors(this.options.behaviors)}updateBehavior(t){this.setBehaviors((e=>e.map((e=>"object"==typeof e&&e.key===t.key?Object.assign(Object.assign({},e),t):e))))}getBehaviors(){return this.options.behaviors||[]}setPlugins(t){var e;this.options.plugins=(0,en.Z)(t)?t(this.getPlugins()):t,null===(e=this.context.plugin)||void 0===e||e.setPlugins(this.options.plugins)}updatePlugin(t){this.setPlugins((e=>e.map((e=>"object"==typeof e&&e.key===t.key?Object.assign(Object.assign({},e),t):e))))}getPlugins(){return this.options.plugins||[]}getPluginInstance(t){return this.context.plugin.getPluginInstance(t)}setTransforms(t){var e;this.options.transforms=(0,en.Z)(t)?t(this.getTransforms()):t,null===(e=this.context.transform)||void 0===e||e.setTransforms(this.options.transforms)}updateTransform(t){this.setTransforms((e=>e.map((e=>"object"==typeof e&&e.key===t.key?Object.assign(Object.assign({},e),t):e)))),this.context.model.refreshData()}getTransforms(){return this.options.transforms||[]}getData(){return this.context.model.getData()}getElementData(t){return Array.isArray(t)?t.map((t=>this.context.model.getElementDataById(t))):this.context.model.getElementDataById(t)}getNodeData(t){var e;return void 0===t?this.context.model.getNodeData():Array.isArray(t)?this.context.model.getNodeData(t):null===(e=this.context.model.getNodeData([t]))||void 0===e?void 0:e[0]}getEdgeData(t){var e;return void 0===t?this.context.model.getEdgeData():Array.isArray(t)?this.context.model.getEdgeData(t):null===(e=this.context.model.getEdgeData([t]))||void 0===e?void 0:e[0]}getComboData(t){var e;return void 0===t?this.context.model.getComboData():Array.isArray(t)?this.context.model.getComboData(t):null===(e=this.context.model.getComboData([t]))||void 0===e?void 0:e[0]}setData(t){this.context.model.setData((0,en.Z)(t)?t(this.getData()):t)}addData(t){this.context.model.addData((0,en.Z)(t)?t(this.getData()):t)}addNodeData(t){this.context.model.addNodeData((0,en.Z)(t)?t(this.getNodeData()):t)}addEdgeData(t){this.context.model.addEdgeData((0,en.Z)(t)?t(this.getEdgeData()):t)}addComboData(t){this.context.model.addComboData((0,en.Z)(t)?t(this.getComboData()):t)}addChildrenData(t,e){this.context.model.addChildrenData(t,e)}updateData(t){this.context.model.updateData((0,en.Z)(t)?t(this.getData()):t)}updateNodeData(t){this.context.model.updateNodeData((0,en.Z)(t)?t(this.getNodeData()):t)}updateEdgeData(t){this.context.model.updateEdgeData((0,en.Z)(t)?t(this.getEdgeData()):t)}updateComboData(t){this.context.model.updateComboData((0,en.Z)(t)?t(this.getComboData()):t)}removeData(t){this.context.model.removeData((0,en.Z)(t)?t(this.getData()):t)}removeNodeData(t){this.context.model.removeNodeData((0,en.Z)(t)?t(this.getNodeData()):t)}removeEdgeData(t){this.context.model.removeEdgeData((0,en.Z)(t)?t(this.getEdgeData()):t)}removeComboData(t){this.context.model.removeComboData((0,en.Z)(t)?t(this.getComboData()):t)}getElementType(t){return this.context.model.getElementType(t)}getRelatedEdgesData(t,e="both"){return this.context.model.getRelatedEdgesData(t,e)}getNeighborNodesData(t){return this.context.model.getNeighborNodesData(t)}getAncestorsData(t,e){return this.context.model.getAncestorsData(t,e)}getParentData(t,e){return this.context.model.getParentData(t,e)}getChildrenData(t){return this.context.model.getChildrenData(t)}getDescendantsData(t){return this.context.model.getDescendantsData(t)}getElementDataByState(t,e){return this.context.model.getElementDataByState(t,e)}initCanvas(){return zT(this,void 0,void 0,(function*(){var t;if(this.context.canvas)return yield this.context.canvas.ready;const{container:e="container",width:n,height:i,renderer:r,cursor:a,background:o,canvas:s,devicePixelRatio:l=(null!==(t=globalThis.devicePixelRatio)&&void 0!==t?t:1)}=this.options;if(e instanceof Dw)this.context.canvas=e,a&&e.setCursor(a),r&&e.setRenderer(r),yield e.ready;else{const t=(0,ue.Z)(e)?document.getElementById(e):e,u=Fw(t);this.emit(hc.BEFORE_CANVAS_INIT,{container:t,width:n,height:i});const c=Object.assign(Object.assign({},s),{container:t,width:n||u[0],height:i||u[1],background:o,renderer:r,cursor:a,devicePixelRatio:l}),h=new Dw(c);this.context.canvas=h,yield h.ready,this.emit(hc.AFTER_CANVAS_INIT,{canvas:h})}}))}updateCanvas(t){var e,n;const{renderer:i,cursor:r,height:a,width:o}=t,s=this.context.canvas;s&&(i&&(this.emit(hc.BEFORE_RENDERER_CHANGE,{renderer:this.options.renderer}),s.setRenderer(i),this.emit(hc.AFTER_RENDERER_CHANGE,{renderer:i})),r&&s.setCursor(r),((0,oe.Z)(o)||(0,oe.Z)(a))&&this.setSize(null!==(e=null!=o?o:this.options.width)&&void 0!==e?e:0,null!==(n=null!=a?a:this.options.height)&&void 0!==n?n:0))}initRuntime(){this.context.options=this.options,this.context.batch||(this.context.batch=new $w(this.context)),this.context.plugin||(this.context.plugin=new DT(this.context)),this.context.viewport||(this.context.viewport=new FT(this.context)),this.context.transform||(this.context.transform=new IT(this.context)),this.context.element||(this.context.element=new sT(this.context)),this.context.animation||(this.context.animation=new qw(this.context)),this.context.layout||(this.context.layout=new LT(this.context)),this.context.behavior||(this.context.behavior=new Kw(this.context))}prepare(){return zT(this,void 0,void 0,(function*(){if(yield Promise.resolve(),this.destroyed)throw new Error(xc("The graph instance has been destroyed"));yield this.initCanvas(),this.initRuntime()}))}render(){return zT(this,void 0,void 0,(function*(){yield this.prepare(),Vw(this,new Gw(hc.BEFORE_RENDER));const t=this.context.element.draw({type:"render"});yield Promise.all([null==t?void 0:t.finished,this.context.layout.layout()]),yield this.autoFit(),this.rendered=!0,Vw(this,new Gw(hc.AFTER_RENDER))}))}draw(){return zT(this,void 0,void 0,(function*(){var t;yield this.prepare(),yield null===(t=this.context.element.draw())||void 0===t?void 0:t.finished}))}layout(){return zT(this,void 0,void 0,(function*(){yield this.context.layout.layout()}))}stopLayout(){this.context.layout.stopLayout()}clear(){return zT(this,void 0,void 0,(function*(){this.context.model.setData({}),yield this.draw()}))}destroy(){var t;Vw(this,new Gw(hc.BEFORE_DESTROY));const{layout:e,animation:n,element:i,model:r,canvas:a,behavior:o,plugin:s}=this.context;null==s||s.destroy(),null==o||o.destroy(),null==e||e.destroy(),null==n||n.destroy(),null==i||i.destroy(),r.destroy(),null==a||a.destroy(),this.options={},this.context={},this.off(),null===(t=globalThis.removeEventListener)||void 0===t||t.call(globalThis,"resize",this.onResize),this.destroyed=!0,Vw(this,new Gw(hc.AFTER_DESTROY))}getCanvas(){return this.context.canvas}resize(t,e){var n;const i=Fw(null===(n=this.context.canvas)||void 0===n?void 0:n.getContainer()),r=[t||i[0],e||i[1]];if(!this.context.canvas)return;const a=this.context.canvas.getSize();ec(r,a)||(Vw(this,new Gw(hc.BEFORE_SIZE_CHANGE,{size:r})),this.context.canvas.resize(...r),Vw(this,new Gw(hc.AFTER_SIZE_CHANGE,{size:r})))}fitView(t,e){return zT(this,void 0,void 0,(function*(){var n;yield null===(n=this.context.viewport)||void 0===n?void 0:n.fitView(t,e)}))}fitCenter(t){return zT(this,void 0,void 0,(function*(){var e;yield null===(e=this.context.viewport)||void 0===e?void 0:e.fitCenter(t)}))}autoFit(){return zT(this,void 0,void 0,(function*(){const{autoFit:t}=this.context.options;if(t)if((0,ue.Z)(t))"view"===t?yield this.fitView():"center"===t&&(yield this.fitCenter());else{const{type:e,animation:n}=t;"view"===e?yield this.fitView(t.options,n):"center"===e&&(yield this.fitCenter(n))}}))}focusElement(t,e){return zT(this,void 0,void 0,(function*(){var n;yield null===(n=this.context.viewport)||void 0===n?void 0:n.focusElements(Array.isArray(t)?t:[t],e)}))}zoomBy(t,e,n){return zT(this,void 0,void 0,(function*(){yield this.context.viewport.transform({mode:"relative",scale:t,origin:n},e)}))}zoomTo(t,e,n){return zT(this,void 0,void 0,(function*(){this.context.viewport.transform({mode:"absolute",scale:t,origin:n},e)}))}getZoom(){return this.context.viewport.getZoom()}rotateBy(t,e,n){return zT(this,void 0,void 0,(function*(){yield this.context.viewport.transform({mode:"relative",rotate:t,origin:n},e)}))}rotateTo(t,e,n){return zT(this,void 0,void 0,(function*(){yield this.context.viewport.transform({mode:"absolute",rotate:t,origin:n},e)}))}getRotation(){return this.context.viewport.getRotation()}translateBy(t,e){return zT(this,void 0,void 0,(function*(){yield this.context.viewport.transform({mode:"relative",translate:t},e)}))}translateTo(t,e){return zT(this,void 0,void 0,(function*(){yield this.context.viewport.transform({mode:"absolute",translate:t},e)}))}getPosition(){return ed([0,0],this.getCanvasByViewport([0,0]))}translateElementBy(t,e){return zT(this,arguments,void 0,(function*(t,e,n=!0){var i,r;const[a,o]=(0,nn.Z)(t)?[t,null===(i=e)||void 0===i||i]:[{[t]:e},n];Object.entries(a).forEach((([t,e])=>this.context.model.translateNodeLikeBy(t,e))),yield null===(r=this.context.element.draw({animation:o,stage:"translate"}))||void 0===r?void 0:r.finished}))}translateElementTo(t,e){return zT(this,arguments,void 0,(function*(t,e,n=!0){var i,r;const[a,o]=(0,nn.Z)(t)?[t,null===(i=e)||void 0===i||i]:[{[t]:e},n];Object.entries(a).forEach((([t,e])=>this.context.model.translateNodeLikeTo(t,e))),yield null===(r=this.context.element.draw({animation:o,stage:"translate"}))||void 0===r?void 0:r.finished}))}getElementPosition(t){return this.context.model.getElementPosition(t)}getElementRenderStyle(t){return xv(this.context.element.getElement(t).attributes,["context"])}setElementVisibility(t,e){return zT(this,arguments,void 0,(function*(t,e,n=!0){var i,r;const[a,o]=(0,nn.Z)(t)?[t,null===(i=e)||void 0===i||i]:[{[t]:e},n],s={nodes:[],edges:[],combos:[]};Object.entries(a).forEach((([t,e])=>{const n=this.getElementType(t);s[`${n}s`].push({id:t,style:{visibility:e}})}));const{model:l,element:u}=this.context;l.preventUpdateNodeLikeHierarchy((()=>{l.updateData(s)})),yield null===(r=u.draw({animation:o,stage:"visibility"}))||void 0===r?void 0:r.finished}))}showElement(t,e){return zT(this,void 0,void 0,(function*(){const n=Array.isArray(t)?t:[t];yield this.setElementVisibility(Object.fromEntries(n.map((t=>[t,"visible"]))),e)}))}hideElement(t,e){return zT(this,void 0,void 0,(function*(){const n=Array.isArray(t)?t:[t];yield this.setElementVisibility(Object.fromEntries(n.map((t=>[t,"hidden"]))),e)}))}getElementVisibility(t){var e,n;const i=this.context.element.getElement(t);return null!==(n=null===(e=null==i?void 0:i.style)||void 0===e?void 0:e.visibility)&&void 0!==n?n:"visible"}setElementZIndex(t,e){return zT(this,void 0,void 0,(function*(){var n;const i={nodes:[],edges:[],combos:[]},r=(0,nn.Z)(t)?t:{[t]:e};Object.entries(r).forEach((([t,e])=>{const n=this.getElementType(t);i[`${n}s`].push({id:t,style:{zIndex:e}})}));const{model:a,element:o}=this.context;a.preventUpdateNodeLikeHierarchy((()=>a.updateData(i))),yield null===(n=o.draw({animation:!1,stage:"zIndex"}))||void 0===n?void 0:n.finished}))}frontElement(t){return zT(this,void 0,void 0,(function*(){const e=Array.isArray(t)?t:[t],{model:n}=this.context,i={};e.map((t=>{const e=n.getFrontZIndex(t);if("combo"===n.getElementType(t)){const r=n.getAncestorsData(t,pc).at(-1)||this.getComboData(t),a=[r,...n.getDescendantsData(Dh(r))],o=e-Zw(r);a.forEach((t=>{i[Dh(t)]=this.getElementZIndex(Dh(t))+o}));const{internal:s}=kg(a.map(Dh),(t=>n.getRelatedEdgesData(t)));s.forEach((t=>{const e=Dh(t);i[e]=this.getElementZIndex(e)+o}))}else i[t]=e})),yield this.setElementZIndex(i)}))}getElementZIndex(t){return Zw(this.context.model.getElementDataById(t))}setElementState(t,e){return zT(this,arguments,void 0,(function*(t,e,n=!0){var i,r;const[a,o]=(0,nn.Z)(t)?[t,null===(i=e)||void 0===i||i]:[{[t]:e},n],s={nodes:[],edges:[],combos:[]};Object.entries(a).forEach((([t,e])=>{const n=this.getElementType(t);var i;s[`${n}s`].push({id:t,states:(i=e,i?Array.isArray(i)?i:[i]:[])})})),this.updateData(s),yield null===(r=this.context.element.draw({animation:o,stage:"state"}))||void 0===r?void 0:r.finished}))}getElementState(t){return this.context.model.getElementState(t)}getElementRenderBounds(t){return this.context.element.getElement(t).getRenderBounds()}collapseElement(t){return zT(this,arguments,void 0,(function*(t,e=!0){const{model:n,element:i}=this.context;if(Vd(n.getNodeLikeData([t])[0]))return;if(this.isCollapsingExpanding)return;const r=n.getElementType(t);yield this.frontElement(t),this.isCollapsingExpanding=!0,this.setElementCollapsibility(t,!0),"node"===r?yield i.collapseNode(t,e):"combo"===r&&(yield i.collapseCombo(t,e)),this.isCollapsingExpanding=!1}))}expandElement(t){return zT(this,arguments,void 0,(function*(t,e=!0){const{model:n,element:i}=this.context;if(!Vd(n.getNodeLikeData([t])[0]))return;if(this.isCollapsingExpanding)return;const r=n.getElementType(t);this.isCollapsingExpanding=!0,this.setElementCollapsibility(t,!1),"node"===r?yield i.expandNode(t,e):"combo"===r&&(yield i.expandCombo(t,e)),this.isCollapsingExpanding=!1}))}setElementCollapsibility(t,e){const n=this.getElementType(t);"node"===n?this.updateNodeData([{id:t,style:{collapsed:e}}]):"combo"===n&&this.updateComboData([{id:t,style:{collapsed:e}}])}toDataURL(){return zT(this,arguments,void 0,(function*(t={}){return this.context.canvas.toDataURL(t)}))}getCanvasByViewport(t){return this.context.canvas.getCanvasByViewport(t)}getViewportByCanvas(t){return this.context.canvas.getViewportByCanvas(t)}getClientByCanvas(t){return this.context.canvas.getClientByCanvas(t)}getCanvasByClient(t){return this.context.canvas.getCanvasByClient(t)}getViewportCenter(){return this.context.viewport.getViewportCenter()}getCanvasCenter(){return this.context.viewport.getCanvasCenter()}on(t,e,n){return super.on(t,e,n)}once(t,e){return super.once(t,e)}off(t,e){return super.off(t,e)}}GT.defaultOptions={autoResize:!1,theme:"light",rotation:0,zoom:1,zoomRange:[.01,10]};class jT extends qh{beforeDraw(t,e){return t}afterLayout(){}}function UT(t,e,n,i,r){const a=Dh(i),o=`${n}s`,s=r?i:t.add[o].get(a)||t.update[o].get(a)||t.remove[o].get(a)||i;Object.entries(t).forEach((([t,n])=>{e===t?n[o].set(a,s):n[o].delete(a)}))}function HT(t,e){return Object.keys(t).every((n=>t[n]===e[n]))}const VT=(t,e,n,i)=>{const r=`${n}s`,a=Dh(i);t.add[r].has(a)||t.update[r].has(a)||t[e][r].set(Dh(i),i)};const ZT=(t,e)=>{const{source:n,target:i}=e,r=t.getElementDataById(n),a=t.getElementDataById(i),o=Ig(r,(e=>t.getParentData(e,pc))),s=Ig(a,(e=>t.getParentData(e,pc))),l={sourceNode:Dh(o),targetNode:Dh(s)};return e.style?Object.assign(e.style,l):e.style=l,e};class WT extends jT{constructor(t,e){super(t,(0,Qh.Z)({},WT.defaultOptions,e)),this.assignSizeByCentrality=(t,e,n,i,r,a)=>{const o=[e,n],s=[i[0],r[0]],l=[i[1],r[1]],u=[i[2],r[2]],c=(t,e)=>{if("function"==typeof a)return a(t,o,e);switch(a){case"linear":return((t,e,n)=>{const[i,r]=e,[a,o]=n;return r===i?a:a+(t-i)/(r-i)*(o-a)})(t,o,e);case"log":return((t,e,n)=>{const[i,r]=e,[a,o]=n;return a+Math.log(t-i+1)/Math.log(r-i+1)*(o-a)})(t,o,e);case"pow":return((t,e,n,i=2)=>{const[r,a]=e,[o,s]=n;return o+Math.pow((t-r)/(a-r),i)*(s-o)})(t,o,e,2);case"sqrt":return((t,e,n)=>{const[i,r]=e,[a,o]=n;return a+Math.sqrt((t-i)/(r-i))*(o-a)})(t,o,e);default:return e[0]}};return[c(t,s),c(t,l),c(t,u)]}}beforeDraw(t){const{model:e}=this.context,n=e.getNodeData(),i=tf(this.options.maxSize),r=tf(this.options.minSize),a=this.getCentralities(this.options.centrality),o=a.size>0?Math.max(...a.values()):0,s=a.size>0?Math.min(...a.values()):0;return n.forEach((e=>{var n;const l=this.assignSizeByCentrality(a.get(Dh(e))||0,s,o,r,i,this.options.scale),u=null===(n=this.context.element)||void 0===n?void 0:n.getElement(Dh(e)),c={size:l};this.assignLabelStyle(c,l,e,u),u&&HT(c,u.attributes)||UT(t,u?"update":"add","node",(0,Qh.Z)(e,{style:c}),!0)})),t}assignLabelStyle(t,e,n,i){var r;const a=i?i.config.style:null===(r=this.context.element)||void 0===r?void 0:r.getElementComputedStyle("node",n);if(Object.assign(t,(0,rg.Z)(a,["labelFontSize","labelLineHeight"])),this.options.mapLabelSize){const n=this.getLabelSizeByNodeSize(e,1/0,Number(t.labelFontSize));Object.assign(t,{labelFontSize:n,labelLineHeight:n+Hc(t.labelPadding)})}return t}getLabelSizeByNodeSize(t,e,n){const i=Math.min(...t)/2,[r,a]=Array.isArray(this.options.mapLabelSize)?this.options.mapLabelSize:[n,e];return Math.min(a,Math.max(i,r))}getCentralities(t){const{model:e}=this.context,n=e.getData();if("function"==typeof t)return t(n);const i=e.getRelatedEdgesData.bind(e);return Bh(n,i,t)}}WT.defaultOptions={centrality:{type:"degree"},maxSize:80,minSize:20,scale:"linear",mapLabelSize:!1};class XT extends jT{constructor(t,e){super(t,Object.assign({},XT.defaultOptions,e))}get ref(){return this.context.model.getRootsData()[0]}afterLayout(){var t;const e=md(this.ref),{graph:n,model:i}=this.context;null===(t=i.getData().nodes)||void 0===t||t.forEach((t=>{if(Dh(t)===Dh(this.ref))return;const r=dd(ed(md(t),e)),a=Math.abs(r)>Math.PI/2,o=!t.children||0===t.children.length,s=(o?1:-1)*(tf(n.getElementRenderStyle(Dh(t)).size)[0]/2+this.options.offset),l=[["translate",s*Math.cos(r),s*Math.sin(r)],["rotate",a?Fi(r)+180:Fi(r)]];i.updateNodeData([{id:Dh(t),style:{labelTextAlign:a===o?"right":"left",labelTextBaseline:"middle",labelTransform:l}}])})),n.draw()}}XT.defaultOptions={offset:5};const YT=["top","top-right","right","right-bottom","bottom","bottom-left","left","left-top"];class qT extends jT{constructor(t,e){super(t,Object.assign({},qT.defaultOptions,e)),this.cacheMergeStyle=new Map,this.getAffectedParallelEdges=t=>{const{add:{edges:e},update:{nodes:n,edges:i,combos:r},remove:{edges:a}}=t,{model:o}=this.context,s=new Map,l=(t,e)=>{o.getRelatedEdgesData(e).forEach((t=>!s.has(Dh(t))&&s.set(Dh(t),t)))};n.forEach(l),r.forEach(l);const u=t=>{const e=o.getEdgeData().map((t=>ZT(o,t)));KT(t,e,!0).forEach((t=>!s.has(Dh(t))&&s.set(Dh(t),t)))};if(a.size&&a.forEach(u),e.size&&e.forEach(u),i.size){const t=Oy(Ay(o.getChanges())).update.edges;i.forEach((e=>{var n;u(e);const i=null===(n=t.find((t=>Dh(t.value)===Dh(e))))||void 0===n?void 0:n.original;i&&!QT(e,i)&&u(i)}))}vf(this.options.edges)||s.forEach(((t,e)=>!this.options.edges.includes(e)&&s.delete(e)));const c=o.getEdgeData().map(Dh);return new Map([...s].sort(((t,e)=>c.indexOf(t[0])-c.indexOf(e[0]))))},this.applyBundlingStyle=(t,e,n)=>{const{edgeMap:i,reverses:r}=$T(e);i.forEach((e=>{e.forEach(((e,i,a)=>{var o;const s=a.length,l=e.style||{};if(e.source===e.target){const t=YT.length;l.loopPlacement=YT[i%t],l.loopDist=Math.floor(i/t)*n+50}else if(1===s)l.curveOffset=0;else{const t=(i%2==0?1:-1)*(r[`${e.source}|${e.target}|${i}`]?-1:1);l.curveOffset=s%2==1?t*Math.ceil(i/2)*n*2:t*(Math.floor(i/2)*n*2+n)}const u=Object.assign(e,{type:"quadratic",style:l}),c=null===(o=this.context.element)||void 0===o?void 0:o.getElement(Dh(e));c&&HT(u.style,c.attributes)||UT(t,c?"update":"add","edge",u,!0)}))}))},this.resetEdgeStyle=t=>{const e=t.style||{},n=this.cacheMergeStyle.get(Dh(t))||{};return Object.keys(n).forEach((i=>{ec(e[i],n[i])&&(t[i]?e[i]=t[i]:delete e[i])})),Object.assign(t,{style:e})},this.applyMergingStyle=(t,e)=>{const{edgeMap:n,reverses:i}=$T(e);n.forEach((e=>{var n;if(1===e.length){const i=e[0],r=null===(n=this.context.element)||void 0===n?void 0:n.getElement(Dh(i)),a=this.resetEdgeStyle(i);return void(r&&HT(a,r.attributes)||UT(t,r?"update":"add","edge",a))}const r=e.map((({source:t,target:e,style:n={}},r)=>{const{startArrow:a,endArrow:o}=n,s={},[l,u]=i[`${t}|${e}|${r}`]?["endArrow","startArrow"]:["startArrow","endArrow"];return tn(a)&&(s[l]=a),tn(o)&&(s[u]=o),s})).reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{});e.forEach(((e,n,i)=>{var a;if(0!==n)return void UT(t,"remove","edge",e);const o=Object.assign({},(0,en.Z)(this.options.style)?this.options.style(i):this.options.style,{childrenData:i});this.cacheMergeStyle.set(Dh(e),o);const s=Object.assign(Object.assign({},e),{type:"line",style:Object.assign(Object.assign(Object.assign({},e.style),r),o)}),l=null===(a=this.context.element)||void 0===a?void 0:a.getElement(Dh(e));l&&HT(s.style,l.attributes)||UT(t,l?"update":"add","edge",s,!0)}))}))}}beforeDraw(t){const e=this.getAffectedParallelEdges(t);return 0===e.size||("bundle"===this.options.mode?this.applyBundlingStyle(t,e,this.options.distance):this.applyMergingStyle(t,e)),t}}qT.defaultOptions={mode:"bundle",distance:15};const $T=t=>{const e=new Map,n=new Set,i={};for(const[r,a]of t){if(n.has(r))continue;const{source:o,target:s}=a,l=`${o}-${s}`;e.has(l)||e.set(l,[]),e.get(l).push(a),n.add(r);for(const[r,u]of t)n.has(r)||QT(a,u)&&(e.get(l).push(u),n.add(r),o===u.target&&s===u.source&&(i[`${u.source}|${u.target}|${e.get(l).length-1}`]=!0))}return{edgeMap:e,reverses:i}},KT=(t,e,n)=>e.filter((e=>(n||Dh(e)!==Dh(t))&&QT(e,t))),QT=(t,e)=>{const{sourceNode:n,targetNode:i}=t.style||{},{sourceNode:r,targetNode:a}=e.style||{};return n===r&&i===a||n===a&&i===r};var JT=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{if(t.depth=e,!t.children)return t;const{children:n}=t,i=JT(t,["children"]);return Object.assign(Object.assign({},i),{children:n.map((t=>t.id))})}),getEdgeData:i=((t,e)=>({source:t.id,target:e.id})),getChildren:r=(t=>t.children||[])}=e||{},a=[],o=[];return Fd(t,((t,e)=>{a.push(n(t,e));const s=r(t);for(const e of s)o.push(i(t,e))}),(t=>r(t)),"TB"),{nodes:a,edges:o}}var eS=function(t,e,n,i){return new(n||(n=Promise))((function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((i=i.apply(t,e||[])).next())}))};class nS extends Im{constructor(){super(...arguments),this.id="fishbone"}getRoot(){const t=this.context.model.getRootsData();if(!(vf(t)||t.length>2))return t[0]}formatSize(t){const e="function"==typeof t?t:()=>t;return t=>tf(e(t))}doLayout(t,e){const{hGap:n,getRibSep:i,vGap:r,nodeSize:a,height:o}=e,{model:s}=this.context,l=this.formatSize(a);let u=l(t)[0]+i(t);const c=(t,e=0)=>{var i;return e+=n*((t.children||[]).length+1),null===(i=t.children)||void 0===i||i.forEach((t=>{var n;null===(n=s.getNodeLikeDatum(t).children)||void 0===n||n.forEach((t=>{const n=s.getNodeLikeDatum(t);e=c(n,e)}))})),e},h=t=>{if(1===t.depth)return u;const e=s.getParentData(t.id,"tree");if(aS(t)){const i=s.getParentData(e.id,"tree"),a=p(t)-p(i);return h(e)+a*n/r}{const n=(e.children||[]).indexOf(t.id),i=s.getNodeData((e.children||[]).slice(n));return d(e)-i.reduce(((t,e)=>t+c(e)),0)-l(e)[0]/2}},d=gv((t=>{if(rS(t))return l(t)[0]/2;const e=s.getParentData(t.id,"tree");if(aS(t))return h(t)+c(t)+l(t)[0]/2;{const i=p(t)-p(e),a=n/r;return h(t)+i*a}}),(t=>t.id)),f=t=>p(s.getParentData(t,"tree")),p=gv((t=>{if(rS(t))return o/2;if(aS(t)){const e=s.getParentData(t.id,"tree"),n=e.children.indexOf(t.id);if(0===n)return f(e.id)+r;const i=s.getNodeLikeDatum(e.children[n-1]);if(vf(i.children))return p(i)+r;const a=s.getDescendantsData(i.id);return Math.max(...a.map((t=>aS(t)?f(t.id):p(t))))+r}{if(vf(t.children))return f(t.id)+r;const e=s.getNodeLikeDatum(t.children.slice(-1)[0]);if(vf(e.children))return p(e)+r;const n=s.getDescendantsData(t.id).slice(-1)[0];return(aS(n)?f(n.id):p(n))+r}}),(t=>t.id));let g=0;const m={nodes:[],edges:[]},v=t=>{var e;null===(e=t.children)||void 0===e||e.forEach((t=>v(s.getNodeLikeDatum(t))));const n=p(t),r=d(t);if(m.nodes.push({id:t.id,x:r,y:n}),rS(t))return;const a=s.getRelatedEdgesData(t.id,"in")[0],o=[h(t),aS(t)?n:f(t.id)];m.edges.push({id:Dh(a),controlPoints:[o],relatedNodeId:t.id}),g=Math.max(g,r+i(t)),1===t.depth&&(u=g)};return v(t),m}placeAlterative(t,e){const n=(e.children||[]).filter(((t,e)=>e%2!=0));if(0===n.length)return t;const{model:i}=this.context,r=t.nodes.find((t=>t.id===e.id)).y,a=t=>{const e=i.getAncestorsData(t,"tree");if(vf(e))return!1;const r=1===e.length?t:e[e.length-2].id;return n.includes(r)};t.nodes.forEach((t=>{a(t.id)&&(t.y=2*r-t.y)})),t.edges.forEach((t=>{a(t.relatedNodeId)&&(t.controlPoints=t.controlPoints.map((t=>[t[0],2*r-t[1]])))}))}rightToLeft(t,e){return t.nodes.forEach((t=>t.x=e.width-t.x)),t.edges.forEach((t=>{t.controlPoints=t.controlPoints.map((t=>[e.width-t[0],t[1]]))})),t}execute(t,e){return eS(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign(Object.assign({},nS.defaultOptions),this.options),e),{direction:i,nodeSize:r}=n,a=this.getRoot();if(!a)return t;const o=this.formatSize(r);n.vGap||(n.vGap=Math.max(...(t.nodes||[]).map((t=>o(t)[1])))),n.hGap||(n.hGap=Math.max(...(t.nodes||[]).map((t=>o(t)[0]))));let s=this.doLayout(a,n);this.placeAlterative(s,a),"RL"===i&&(s=this.rightToLeft(s,n));const{model:l}=this.context,u=[],c=[];return s.nodes.forEach((t=>{const{id:e,x:n,y:i}=t,r=l.getNodeLikeDatum(e);u.push(iS(r,{x:n,y:i}))})),s.edges.forEach((t=>{const{id:e,controlPoints:n}=t,i=l.getEdgeDatum(e);c.push(iS(i,{controlPoints:n}))})),{nodes:u,edges:c}}))}}nS.defaultOptions={direction:"RL",getRibSep:()=>60};const iS=(t,e)=>Object.assign(Object.assign({},t),{style:Object.assign(Object.assign({},t.style||{}),e)}),rS=t=>0===t.depth,aS=t=>(t.depth||(t.depth=0))%2==0,oS=["#7E92B5","#F4664A","#FFBE3A"],sS={type:"group",color:["#1783FF","#00C9C9","#F08F56","#D580FF","#7863FF","#DB9D0D","#60C42D","#FF80CA","#2491B3","#17C76F"]},lS={type:"group",color:["#99ADD1","#1783FF","#00C9C9","#F08F56","#D580FF","#7863FF","#DB9D0D","#60C42D","#FF80CA","#2491B3","#17C76F"]};function uS(t){const{bgColor:e,textColor:n,nodeColor:i,nodeColorDisabled:r,nodeStroke:a,nodeHaloStrokeOpacityActive:o=.15,nodeHaloStrokeOpacitySelected:s=.25,nodeOpacityDisabled:l=.06,nodeIconOpacityInactive:u=.85,nodeOpacityInactive:c=.25,nodeBadgePalette:h=oS,nodePaletteOptions:d=sS,edgeColor:f,edgeColorDisabled:p,edgePaletteOptions:g=lS,comboColor:m,comboColorDisabled:v,comboStroke:y,comboStrokeDisabled:x,edgeColorInactive:b}=t;return{background:e,node:{palette:d,style:{donutOpacity:1,badgeBackgroundOpacity:1,badgeFill:"#fff",badgeFontSize:8,badgePadding:[0,4],badgePalette:h,fill:i,fillOpacity:1,halo:!1,iconFill:"#fff",iconOpacity:1,labelBackground:!1,labelBackgroundFill:e,labelBackgroundLineWidth:0,labelBackgroundOpacity:.75,labelFill:n,labelFillOpacity:.85,labelLineHeight:16,labelPadding:[0,2],labelFontSize:12,labelFontWeight:400,labelOpacity:1,labelOffsetY:2,lineWidth:0,portFill:i,portLineWidth:1,portStroke:a,portStrokeOpacity:.65,size:32,stroke:a,strokeOpacity:1,zIndex:2},state:{selected:{halo:!0,haloLineWidth:24,haloStrokeOpacity:s,labelFontSize:12,labelFontWeight:"bold",lineWidth:4,stroke:a},active:{halo:!0,haloLineWidth:12,haloStrokeOpacity:o},highlight:{labelFontWeight:"bold",lineWidth:4,stroke:a,strokeOpacity:.85},inactive:{badgeBackgroundOpacity:c,donutOpacity:c,fillOpacity:c,iconOpacity:u,labelFill:n,labelFillOpacity:c,strokeOpacity:c},disabled:{badgeBackgroundOpacity:.25,donutOpacity:l,fill:r,fillOpacity:l,iconFill:r,iconOpacity:.25,labelFill:n,labelFillOpacity:.25,strokeOpacity:l}},animation:{enter:"fade",exit:"fade",show:"fade",hide:"fade",expand:"node-expand",collapse:"node-collapse",update:[{fields:["x","y","fill","stroke"]}],translate:[{fields:["x","y"]}]}},edge:{palette:g,style:{badgeBackgroundFill:f,badgeFill:"#fff",badgeFontSize:8,badgeOffsetX:10,fillOpacity:1,halo:!1,haloLineWidth:12,haloStrokeOpacity:1,increasedLineWidthForHitTesting:2,labelBackground:!1,labelBackgroundFill:e,labelBackgroundLineWidth:0,labelBackgroundOpacity:.75,labelBackgroundPadding:[4,4,4,4],labelFill:n,labelFontSize:12,labelFontWeight:400,labelOpacity:1,labelPlacement:"center",labelTextBaseline:"middle",lineWidth:1,stroke:f,strokeOpacity:1,zIndex:1},state:{selected:{halo:!0,haloStrokeOpacity:.25,labelFontSize:14,labelFontWeight:"bold",lineWidth:3},active:{halo:!0,haloStrokeOpacity:.15},highlight:{labelFontWeight:"bold",lineWidth:3},inactive:{stroke:b,fillOpacity:.08,labelOpacity:.25,strokeOpacity:.08,badgeBackgroundOpacity:.25},disabled:{stroke:p,fillOpacity:.45,strokeOpacity:.45,labelOpacity:.25,badgeBackgroundOpacity:.45}},animation:{enter:"fade",exit:"fade",expand:"path-in",collapse:"path-out",show:"fade",hide:"fade",update:[{fields:["sourceNode","targetNode"]},{fields:["stroke"],shape:"key"}],translate:[{fields:["sourceNode","targetNode"]}]}},combo:{style:{collapsedMarkerFill:e,collapsedMarkerFontSize:12,collapsedMarkerFillOpacity:1,collapsedSize:32,collapsedFillOpacity:1,fill:m,halo:!1,haloLineWidth:12,haloStroke:y,haloStrokeOpacity:.25,labelBackground:!1,labelBackgroundFill:e,labelBackgroundLineWidth:0,labelBackgroundOpacity:.75,labelBackgroundPadding:[2,4,2,4],labelFill:n,labelFontSize:12,labelFontWeight:400,labelOpacity:1,lineDash:0,lineWidth:1,fillOpacity:.04,strokeOpacity:1,padding:10,stroke:y},state:{selected:{halo:!0,labelFontSize:14,labelFontWeight:700,lineWidth:4},active:{halo:!0},highlight:{labelFontWeight:700,lineWidth:4},inactive:{fillOpacity:.65,labelOpacity:.25,strokeOpacity:.65},disabled:{fill:v,fillOpacity:.25,labelOpacity:.25,stroke:x,strokeOpacity:.25}},animation:{enter:"fade",exit:"fade",show:"fade",hide:"fade",expand:"combo-expand",collapse:"combo-collapse",update:[{fields:["x","y"]},{fields:["fill","stroke","lineWidth"],shape:"key"}],translate:[{fields:["x","y"]}]}}}}const cS=uS({bgColor:"#000000",comboColor:"#fdfdfd",comboColorDisabled:"#d0e4ff",comboStroke:"#99add1",comboStrokeDisabled:"#969696",edgeColor:"#637088",edgeColorDisabled:"#637088",edgeColorInactive:"#D0E4FF",edgePaletteOptions:{type:"group",color:["#637088","#0F55A6","#008383","#9C5D38","#8B53A6","#4E40A6","#8F6608","#3E801D","#A65383","#175E75","#0F8248"]},nodeColor:"#1783ff",nodeColorDisabled:"#D0E4FF",nodeHaloStrokeOpacityActive:.25,nodeHaloStrokeOpacitySelected:.45,nodeIconOpacityInactive:.45,nodeOpacityDisabled:.25,nodeOpacityInactive:.45,nodeStroke:"#d0e4ff",textColor:"#ffffff"}),hS=uS({bgColor:"#ffffff",comboColor:"#99ADD1",comboColorDisabled:"#f0f0f0",comboStroke:"#99add1",comboStrokeDisabled:"#d9d9d9",edgeColor:"#99add1",edgeColorDisabled:"#d9d9d9",edgeColorInactive:"#1B324F",nodeColor:"#1783ff",nodeColorDisabled:"#1B324F",nodeHaloStrokeOpacityActive:.15,nodeHaloStrokeOpacitySelected:.25,nodeIconOpacityInactive:.85,nodeOpacityDisabled:.06,nodeOpacityInactive:.25,nodeStroke:"#000000",textColor:"#000000"}),dS={animation:{"combo-collapse":Dc,"combo-expand":kc,"node-collapse":Nc,"node-expand":Pc,"path-in":Lc,"path-out":Rc,fade:[{fields:["opacity"]}],translate:[{fields:["x","y"]}]},behavior:{"brush-select":Dd,"click-select":Hd,"collapse-expand":Sm,"create-edge":Om,"drag-canvas":Lm,"drag-element-force":class extends Dm{get forceLayoutInstance(){return this.context.layout.getLayoutInstance().find((t=>["d3-force","d3-force-3d"].includes(null==t?void 0:t.id)))}validate(t){return!!this.context.layout&&(this.forceLayoutInstance?super.validate(t):(bc.warn("DragElementForce only works with d3-force or d3-force-3d layout"),!1))}moveElement(t,e){return Um(this,void 0,void 0,(function*(){const n=this.forceLayoutInstance;this.context.graph.getNodeData(t).forEach(((i,r)=>{const{x:a=0,y:o=0}=i.style||{};n&&Gm(n,"setFixedPosition",t[r],[...td([+a,+o],e)])}))}))}onDragStart(t){if(this.enable=this.validate(t),!this.enable)return;this.target=this.getSelectedNodeIDs([t.target.id]),this.hideEdge(),this.context.graph.frontElement(this.target);const e=this.forceLayoutInstance;e&&jm(e,"simulation").alphaTarget(.3).restart(),this.context.graph.getNodeData(this.target).forEach((t=>{const{x:n=0,y:i=0}=t.style||{};e&&Gm(e,"setFixedPosition",Dh(t),[+n,+i])}))}onDrag(t){if(!this.enable)return;const e=this.getDelta(t);this.moveElement(this.target,e)}onDragEnd(){const t=this.forceLayoutInstance;t&&jm(t,"simulation").alphaTarget(0),this.context.graph.getNodeData(this.target).forEach((e=>{t&&Gm(t,"setFixedPosition",Dh(e),[null,null,null])}))}},"drag-element":Dm,"fix-element-size":Vm,"focus-element":Wm,"hover-activate":Xm,"lasso-select":class extends Dd{onPointerDown(t){if(!super.validate(t)||!super.isKeydown()||this.points)return;const{canvas:e}=this.context;this.pathShape=new Nl({id:"g6-lasso-select",style:this.options.style}),e.appendChild(this.pathShape),this.points=[kd(t)]}onPointerMove(t){var e;if(!this.points)return;const{immediately:n,mode:i}=this.options;this.points.push(kd(t)),null===(e=this.pathShape)||void 0===e||e.setAttribute("d",function(t,e=!0){const n=[];return t.forEach(((t,e)=>{n.push([0===e?"M":"L",...t])})),e&&n.push(["Z"]),n}(this.points)),n&&"default"===i&&this.points.length>2&&super.updateElementsStates(this.points)}onPointerUp(){this.points&&(this.points.length<2||super.updateElementsStates(this.points),this.clearLasso())}clearLasso(){var t;null===(t=this.pathShape)||void 0===t||t.remove(),this.pathShape=void 0,this.points=void 0}},"auto-adapt-label":Kh,"optimize-viewport-transform":Ym,"scroll-canvas":$m,"zoom-canvas":Qm},combo:{circle:class extends hg{constructor(t){super(t)}drawKeyShape(t,e){return this.upsert("key",xl,this.getKeyStyle(t),e)}getKeyStyle(t){const{collapsed:e}=t,n=super.getKeyStyle(t),[i]=this.getKeySize(t);return Object.assign(Object.assign(Object.assign({},n),e&&Kd(n,"collapsed")),{r:i/2})}getCollapsedKeySize(t){const[e,n]=tf(t.collapsedSize),i=Math.max(e,n)/2;return[2*i,2*i,0]}getExpandedKeySize(t){const e=this.getContentBBox(t),[n,i]=Wc(e),r=Math.sqrt(Math.pow(n,2)+Math.pow(i,2))/2;return[2*r,2*r,0]}getIntersectPoint(t,e=!1){return Cd(t,this.getShape("key").getBounds(),e)}},rect:class extends hg{constructor(t){super(t)}drawKeyShape(t,e){return this.upsert("key",kl,this.getKeyStyle(t),e)}getKeyStyle(t){const e=super.getKeyStyle(t),[n,i]=this.getKeySize(t);return Object.assign(Object.assign(Object.assign({},e),t.collapsed&&Kd(e,"collapsed")),{width:n,height:i,x:-n/2,y:-i/2})}}},edge:{cubic:Wg,line:$g,polyline:sm,quadratic:lm,"cubic-horizontal":Xg,"cubic-radial":Yg,"cubic-vertical":qg},layout:{"antv-dagre":tv.b,"combo-combined":nv.u,"compact-box":Jm.compactBox,"d3-force":rv.j,"force-atlas2":ov.E,circular:ev.S,concentric:iv.W,dagre:av.V,dendrogram:Jm.dendrogram,fishbone:nS,force:sv.y,fruchterman:lv.O,grid:uv.M,indented:Jm.indented,mds:cv.A,mindmap:Jm.mindmap,radial:hv.D,random:dv._},node:{circle:Bf,diamond:class extends Ff{constructor(t){super(t)}getPoints(t){const[e,n]=this.getSize(t);return function(t,e){return[[0,-e/2],[t/2,0],[0,e/2],[-t/2,0]]}(e,n)}},ellipse:Hf,hexagon:class extends Ff{constructor(t){super(t)}getOuterR(t){return t.outerR||Math.min(...this.getSize(t))/2}getPoints(t){return[[0,e=this.getOuterR(t)],[e*Math.sqrt(3)/2,e/2],[e*Math.sqrt(3)/2,-e/2],[0,-e],[-e*Math.sqrt(3)/2,-e/2],[-e*Math.sqrt(3)/2,e/2]];var e}getIconStyle(t){const e=super.getIconStyle(t),n=this.getOuterR(t)*Id;return!!e&&Object.assign({width:n,height:n},e)}},html:og,image:lg,rect:class extends If{constructor(t){super(t)}getKeyStyle(t){const[e,n]=this.getSize(t);return Object.assign(Object.assign({},super.getKeyStyle(t)),{width:e,height:n,x:-e/2,y:-n/2})}getIconStyle(t){const e=super.getIconStyle(t),{width:n,height:i}=this.getShape("key").attributes;return!!e&&Object.assign({width:n*Id,height:i*Id},e)}drawKeyShape(t,e){return this.upsert("key",kl,this.getKeyStyle(t),e)}},star:class extends Ff{constructor(t){super(t)}getInnerR(t){return t.innerR||3*this.getOuterR(t)/8}getOuterR(t){return Math.min(...this.getSize(t))/2}getPoints(t){return e=this.getOuterR(t),n=this.getInnerR(t),[[0,-e],[n*Math.cos(3*Math.PI/10),-n*Math.sin(3*Math.PI/10)],[e*Math.cos(Math.PI/10),-e*Math.sin(Math.PI/10)],[n*Math.cos(Math.PI/10),n*Math.sin(Math.PI/10)],[e*Math.cos(3*Math.PI/10),e*Math.sin(3*Math.PI/10)],[0,n],[-e*Math.cos(3*Math.PI/10),e*Math.sin(3*Math.PI/10)],[-n*Math.cos(Math.PI/10),n*Math.sin(Math.PI/10)],[-e*Math.cos(Math.PI/10),-e*Math.sin(Math.PI/10)],[-n*Math.cos(3*Math.PI/10),-n*Math.sin(3*Math.PI/10)]];var e,n}getIconStyle(t){const e=super.getIconStyle(t),n=2*this.getInnerR(t)*Id;return!!e&&Object.assign({width:n,height:n},e)}getPortXY(t,e){const{placement:n="top"}=e;return fm(this.getShape("key").getLocalBounds(),n,function(t,e){const n={};return n.top=[0,-t],n.left=[-t*Math.cos(Math.PI/10),-t*Math.sin(Math.PI/10)],n["left-bottom"]=[-t*Math.cos(3*Math.PI/10),t*Math.sin(3*Math.PI/10)],n.bottom=[0,e],n["right-bottom"]=[t*Math.cos(3*Math.PI/10),t*Math.sin(3*Math.PI/10)],n.right=n.default=[t*Math.cos(Math.PI/10),-t*Math.sin(Math.PI/10)],n}(this.getOuterR(t),this.getInnerR(t)),!1)}},donut:Gf,triangle:ug},palette:{spectral:["rgb(158, 1, 66)","rgb(213, 62, 79)","rgb(244, 109, 67)","rgb(253, 174, 97)","rgb(254, 224, 139)","rgb(255, 255, 191)","rgb(230, 245, 152)","rgb(171, 221, 164)","rgb(102, 194, 165)","rgb(50, 136, 189)","rgb(94, 79, 162)"],tableau:["rgb(78, 121, 167)","rgb(242, 142, 44)","rgb(225, 87, 89)","rgb(118, 183, 178)","rgb(89, 161, 79)","rgb(237, 201, 73)","rgb(175, 122, 161)","rgb(255, 157, 167)","rgb(156, 117, 95)","rgb(186, 176, 171)"],oranges:["rgb(255, 245, 235)","rgb(254, 230, 206)","rgb(253, 208, 162)","rgb(253, 174, 107)","rgb(253, 141, 60)","rgb(241, 105, 19)","rgb(217, 72, 1)","rgb(166, 54, 3)","rgb(127, 39, 4)"],greens:["rgb(247, 252, 245)","rgb(229, 245, 224)","rgb(199, 233, 192)","rgb(161, 217, 155)","rgb(116, 196, 118)","rgb(65, 171, 93)","rgb(35, 139, 69)","rgb(0, 109, 44)","rgb(0, 68, 27)"],blues:["rgb(247, 251, 255)","rgb(222, 235, 247)","rgb(198, 219, 239)","rgb(158, 202, 225)","rgb(107, 174, 214)","rgb(66, 146, 198)","rgb(33, 113, 181)","rgb(8, 81, 156)","rgb(8, 48, 107)"]},theme:{dark:cS,light:hS},plugin:{"bubble-sets":ly,"edge-bundling":fy,"edge-filter-lens":Ey,"grid-line":My,background:Mv,contextmenu:dy,fisheye:Ty,fullscreen:Sy,history:Ly,hull:jy,legend:nb,minimap:ib,snapline:lb,timebar:lw,toolbar:fw,tooltip:_w,watermark:Cw},transform:{"arrange-draw-order":class extends jT{beforeDraw(t){const{model:e}=this.context,n=t.add.combos,i=t=>{const n=[];return t.forEach(((t,i)=>{const r=e.getAncestorsData(i,"combo").map((t=>Dh(t))).reverse();n.push([i,t,r.length])})),new Map(n.sort((([,,t],[,,e])=>e-t)).map((([t,e])=>[t,e])))};return t.add.combos=i(n),t.update.combos=i(t.update.combos),t}},"collapse-expand-combo":class extends jT{beforeDraw(t,e){if("visibility"===e.stage)return t;if(!this.context.model.model.hasTreeStructure(pc))return t;const{model:n}=this.context,{add:i,update:r}=t,a=[...t.update.combos.entries(),...t.add.combos.entries()];for(;a.length;){const[e,o]=a.pop();if(Vd(o)){const o=n.getDescendantsData(e),s=o.map(Dh),{internal:l,external:u}=kg(s,(t=>n.getRelatedEdgesData(t)));o.forEach((e=>{const i=Dh(e),r=a.findIndex((([t])=>t===i));-1!==r&&a.splice(r,1);const o=n.getElementType(i);UT(t,"remove",o,e)})),l.forEach((e=>UT(t,"remove","edge",e))),u.forEach((t=>{var e;const n=Dh(t);(null===(e=this.context.element)||void 0===e?void 0:e.getElement(n))?r.edges.set(n,t):i.edges.set(n,t)}))}else{const i=n.getChildrenData(e),r=i.map(Dh),{edges:o}=kg(r,(t=>n.getRelatedEdgesData(t)));[...i,...o].forEach((e=>{var i;const r=Dh(e),o=n.getElementType(r),s=null===(i=this.context.element)||void 0===i?void 0:i.getElement(r);UT(t,s?"update":"add",o,e),"combo"===o&&a.push([r,e])}))}}return t}},"collapse-expand-node":class extends jT{getElement(t){return this.context.element.getElement(t)}handleExpand(t,e){if(VT(e,"add","node",t),Vd(t))return;const n=Dh(t);VT(e,"add","node",t);this.context.model.getRelatedEdgesData(n,"out").forEach((t=>{UT(e,"add","edge",t)}));this.context.model.getChildrenData(n).forEach((t=>{this.handleExpand(t,e)}))}beforeDraw(t){const{graph:e,model:n}=this.context;if(!n.model.hasTreeStructure(gc))return t;const{add:{nodes:i,edges:r},update:{nodes:a}}=t,o=new Map,s=new Map;i.forEach(((t,e)=>{Vd(t)&&o.set(e,t)})),r.forEach((t=>{if("node"!==e.getElementType(t.source))return;const n=e.getNodeData(t.source);Vd(n)&&o.set(t.source,n)})),a.forEach(((t,e)=>{const n=this.getElement(e);if(!n)return;const i=n.attributes.collapsed;Vd(t)?i||o.set(e,t):i&&s.set(e,t)}));const l=new Set;return o.forEach(((e,i)=>{n.getDescendantsData(i).forEach((e=>{const i=Dh(e);if(l.has(i))return;UT(t,"remove","node",e);n.getRelatedEdgesData(i).forEach((e=>{UT(t,"remove","edge",e)})),l.add(i)}))})),s.forEach(((e,i)=>{n.getAncestorsData(i,gc).some(Vd)?UT(t,"remove","node",e):this.handleExpand(e,t)})),t}},"get-edge-actual-ends":class extends jT{beforeDraw(t){const{add:e,update:n}=t,{model:i}=this.context;return[...e.edges.entries(),...n.edges.entries()].forEach((([,t])=>{ZT(i,t)})),t}},"map-node-size":WT,"place-radial-labels":XT,"process-parallel-edges":qT,"update-related-edges":class extends jT{beforeDraw(t,e){const{stage:n}=e;if("visibility"===n)return t;const{model:i}=this.context,{update:{nodes:r,edges:a,combos:o}}=t,s=(t,e)=>{i.getRelatedEdgesData(e).forEach((t=>!a.has(Dh(t))&&a.set(Dh(t),t)))};return r.forEach(s),o.forEach(s),t}}},shape:{circle:xl,ellipse:El,group:wl,html:Sl,image:Af,line:Al,path:Nl,polygon:Ll,polyline:Dl,rect:kl,text:Bl,label:_f,badge:Ef}};al.enableMassiveParsedStyleAssignOptimization=!0,Object.entries(dS).forEach((([t,e])=>{Object.entries(e).forEach((([e,n])=>{!function(t,e,n,i=!1){const r=vc[t][e];!i&&r?r!==n&&bc.warn(`The extension ${e} of ${t} has been registered before.`):Object.assign(vc[t],{[e]:n})}(t,e,n)}))}))},13722:function(t){var e;"undefined"!=typeof self&&self,e=function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e){t.exports={assign:Object.assign,getHeight:function(t,e,n,i){return void 0===i&&(i="height"),"center"===n?(t[i]+e[i])/2:t.height}}},function(t,e,n){var i=n(3),r=function(){function t(t,e){void 0===e&&(e={}),this.options=e,this.rootNode=i(t,e)}return t.prototype.execute=function(){throw new Error("please override this method")},t}();t.exports=r},function(t,e,n){var i=n(4),r=["LR","RL","TB","BT","H","V"],a=["LR","RL","H"],o=r[0];t.exports=function(t,e,n){var s=e.direction||o;if(e.isHorizontal=function(t){return a.indexOf(t)>-1}(s),s&&-1===r.indexOf(s))throw new TypeError("Invalid direction: "+s);if(s===r[0])n(t,e);else if(s===r[1])n(t,e),t.right2left();else if(s===r[2])n(t,e);else if(s===r[3])n(t,e),t.bottom2top();else if(s===r[4]||s===r[5]){var l=i(t,e),u=l.left,c=l.right;n(u,e),n(c,e),e.isHorizontal?u.right2left():u.bottom2top(),c.translate(u.x-c.x,u.y-c.y),t.x=u.x,t.y=c.y;var h=t.getBoundingBox();e.isHorizontal?h.top<0&&t.translate(0,-h.top):h.left<0&&t.translate(-h.left,0)}var d=e.fixedRoot;return void 0===d&&(d=!0),d&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),function(t,e){if(e.radial){var n=e.isHorizontal?["x","y"]:["y","x"],i=n[0],r=n[1],a={x:1/0,y:1/0},o={x:-1/0,y:-1/0},s=0;t.DFTraverse((function(t){s++;var e=t.x,n=t.y;a.x=Math.min(a.x,e),a.y=Math.min(a.y,n),o.x=Math.max(o.x,e),o.y=Math.max(o.y,n)}));var l=o[r]-a[r];if(0===l)return;var u=2*Math.PI/s;t.DFTraverse((function(e){var n=(e[r]-a[r])/l*(2*Math.PI-u)+u,o=e[i]-t[i];e.x=Math.cos(n)*o,e.y=Math.sin(n)*o}))}}(t,e),t}},function(t,e,n){var i=n(0),r={getId:function(t){return t.id||t.name},getPreH:function(t){return t.preH||0},getPreV:function(t){return t.preV||0},getHGap:function(t){return t.hgap||18},getVGap:function(t){return t.vgap||18},getChildren:function(t){return t.children},getHeight:function(t){return t.height||36},getWidth:function(t){var e=t.label||" ";return t.width||18*e.split("").length}};function a(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof a)return t;n.data=t;var i=e.getHGap(t),r=e.getVGap(t);return n.preH=e.getPreH(t),n.preV=e.getPreV(t),n.width=e.getWidth(t),n.height=e.getHeight(t),n.width+=n.preH,n.height+=n.preV,n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(i,r),n}i.assign(a.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){var n=this;n.hgap+=t,n.vgap+=e,n.width+=2*t,n.height+=2*e},eachNode:function(t){for(var e,n=[this];e=n.shift();)t(e),n=e.children.concat(n)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){for(var e,n=[this];e=n.shift();)t(e),n=n.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode((function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)})),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode((function(n){n.x+=t,n.y+=e,n.x+=n.preH,n.y+=n.preV}))},right2left:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.x=t.x-2*(t.x-e.left)-t.width})),t.translate(e.width,0)},bottom2top:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.y=t.y-2*(t.y-e.top)-t.height})),t.translate(0,e.height)}}),t.exports=function(t,e,n){void 0===e&&(e={});var o,s=new a(t,e=i.assign({},r,e)),l=[s];if(!n&&!t.collapsed)for(;o=l.shift();)if(!o.data.collapsed){var u=e.getChildren(o.data),c=u?u.length:0;if(o.children=new Array(c),u&&c)for(var h=0;hn.low&&(n=n.nxt);var s=r+i.prelim+i.w-(o+a.prelim);s>0&&(o+=s,u(t,e,n.index,s));var l=d(i),f=d(a);l<=f&&null!==(i=h(i))&&(r+=i.mod),l>=f&&null!==(a=c(a))&&(o+=a.mod)}!i&&a?function(t,e,n,i){var r=t.c[0].el;r.tl=n;var a=i-n.mod-t.c[0].msel;r.mod+=a,r.prelim-=a,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}(t,e,a,o):i&&!a&&function(t,e,n,i){var r=t.c[e].er;r.tr=n;var a=i-n.mod-t.c[e].mser;r.mod+=a,r.prelim-=a,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}(t,e,i,r)}function u(t,e,n,i){t.c[e].mod+=i,t.c[e].msel+=i,t.c[e].mser+=i,function(t,e,n,i){if(n!==e-1){var r=e-n;t.c[n+1].shift+=i/r,t.c[e].shift-=i/r,t.c[e].change-=i-i/r}}(t,e,n,i)}function c(t){return 0===t.cs?t.tl:t.c[0]}function h(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function d(t){return t.y+t.h}function f(t,e,n){for(;null!==n&&t>=n.low;)n=n.nxt;return{low:t,index:e,nxt:n}}s(t,i);var p=n.fromNode(t,i);return function t(e){if(0!==e.cs){t(e.c[0]);for(var n=f(d(e.c[0].el),0,null),i=1;is&&(s=e.depth);var n=e.children,i=n.length,a=new r(e.height,[]);return n.forEach((function(e,n){var r=t(e);a.children.push(r),0===n&&(a.leftChild=r),n===i-1&&(a.rightChild=r)})),a.originNode=e,a.isLeaf=e.isLeaf(),a}(t);return function t(e){if(e.isLeaf||0===e.children.length)e.drawingDepth=s;else{var n=e.children.map((function(e){return t(e)})),i=Math.min.apply(null,n);e.drawingDepth=i-1}return e.drawingDepth}(l),function t(i){i.x=i.drawingDepth*e.rankSep,i.isLeaf?(i.y=0,n&&(i.y=n.y+n.height+e.nodeSep,i.originNode.parent!==n.originNode.parent&&(i.y+=e.subTreeSep)),n=i):(i.children.forEach((function(e){t(e)})),i.y=(i.leftChild.y+i.rightChild.y)/2)}(l),o(l,t,e.isHorizontal),t}},function(t,e,n){function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}var r=n(1),a=n(11),o=n(4),s=n(0),l=["LR","RL","H"],u=l[0],c=function(t){function e(){return t.apply(this,arguments)||this}var n,r;return r=t,(n=e).prototype=Object.create(r.prototype),n.prototype.constructor=n,i(n,r),e.prototype.execute=function(){var t=this.options,e=this.rootNode;t.isHorizontal=!0;var n=t.indent,i=void 0===n?20:n,r=t.dropCap,s=void 0===r||r,c=t.direction,h=void 0===c?u:c,d=t.align;if(h&&-1===l.indexOf(h))throw new TypeError("Invalid direction: "+h);if(h===l[0])a(e,i,s,d);else if(h===l[1])a(e,i,s,d),e.right2left();else if(h===l[2]){var f=o(e,t),p=f.left,g=f.right;a(p,i,s,d),p.right2left(),a(g,i,s,d);var m=p.getBoundingBox();g.translate(m.width,0),e.x=g.x-e.width/2}return e},e}(r),h={};t.exports=function(t,e){return e=s.assign({},h,e),new c(t,e).execute()}},function(t,e,n){var i=n(0);t.exports=function(t,e,n,r){var a=null;t.eachNode((function(t){!function(t,e,n,r,a){var o=("function"==typeof n?n(t):n)*t.depth;if(!r)try{if(t.id===t.parent.children[0].id)return t.x+=o,void(t.y=e?e.y:0)}catch(t){}if(t.x+=o,e){if(t.y=e.y+i.getHeight(e,t,a),e.parent&&t.parent.id!==e.parent.id){var s=e.parent,l=s.y+i.getHeight(s,t,a);t.y=l>t.y?l:t.y}}else t.y=0}(t,a,e,n,r),a=t}))}},function(t,e,n){function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}var r=n(1),a=n(13),o=n(2),s=n(0),l=function(t){function e(){return t.apply(this,arguments)||this}var n,r;return r=t,(n=e).prototype=Object.create(r.prototype),n.prototype.constructor=n,i(n,r),e.prototype.execute=function(){return o(this.rootNode,this.options,a)},e}(r),u={};t.exports=function(t,e){return e=s.assign({},u,e),new l(t,e).execute()}},function(t,e,n){var i=n(0);function r(t,e){var n=0;return t.children.length?t.children.forEach((function(t){n+=r(t,e)})):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function a(t){var e=t.children,n=e.length;if(n){e.forEach((function(t){a(t)}));var i=e[0],r=e[n-1],o=r.y-i.y+r.height,s=0;if(e.forEach((function(t){s+=t.totalHeight})),o>t.height)t.y=i.y+o/2-t.height/2;else if(1!==e.length||t.height>s){var l=t.y+(t.height-o)/2-i.y;e.forEach((function(t){t.translate(0,l)}))}else t.y=(i.y+i.height/2+r.y+r.height/2)/2-t.height/2}}var o={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=i.assign({},o,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse((function(t){t.x=t.parent.x+t.parent.width})),t.parent=null,r(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode((function(t){var e=t.children,n=e.length;if(n){var i=e[0];if(i.startY=t.startY+t._subTreeSep,1===n)i.y=t.y+t.height/2-i.height/2;else{i.y=i.startY+i.totalHeight/2-i.height/2;for(var r=1;r{const{prefixCls:n,className:i,popupClassName:l,dropdownClassName:p,children:g,dataSource:m}=t,v=(0,a.Z)(g);let y;1===v.length&&(0,u.l$)(v[0])&&!f(v[0])&&([y]=v);const x=y?()=>y:void 0;let b;b=v.length&&f(v[0])?g:m?m.map((t=>{if((0,u.l$)(t))return t;switch(typeof t){case"string":return s.createElement(d,{key:t,value:t},t);case"object":{const{value:e}=t;return s.createElement(d,{key:e,value:e},t.text)}default:return}})):[];const{getPrefixCls:_}=s.useContext(c.E_),E=_("select",n);return s.createElement(h.default,Object.assign({ref:e,suffixIcon:null},(0,o.Z)(t,["dataSource","dropdownClassName"]),{prefixCls:E,popupClassName:l||p,className:r()(`${E}-auto-complete`,i),mode:h.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:x}),b)},g=s.forwardRef(p),m=(0,l.Z)(g);g.Option=d,g._InternalPanelDoNotUseOrYouWillBeFired=m,e.Z=g},28103:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var i=n(92310),r=n.n(i),a=n(59301),o=n(36355),s=n(17313),l=n(83116),u=n(37613);const c=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:r,textPaddingInline:a,orientationMargin:o,verticalMarginInline:l}=t;return{[e]:Object.assign(Object.assign({},(0,s.Wf)(t)),{borderBlockStart:`${r}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${t.dividerHorizontalWithTextGutterMargin}px 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:100*o+"%"},"&::after":{width:100-100*o+"%"}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:100-100*o+"%"},"&::after":{width:100*o+"%"}},[`${e}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:n}}})}};var h=(0,l.Z)("Divider",(t=>{const e=(0,u.TS)(t,{dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG,sizePaddingEdgeHorizontal:0});return[c(e)]}),(t=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:t.marginXS}))),d=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const{getPrefixCls:e,direction:n,divider:i}=a.useContext(o.E_),{prefixCls:s,type:l="horizontal",orientation:u="center",orientationMargin:c,className:f,rootClassName:p,children:g,dashed:m,plain:v,style:y}=t,x=d(t,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),b=e("divider",s),[_,E]=h(b),w=u.length>0?`-${u}`:u,T=!!g,S="left"===u&&null!=c,M="right"===u&&null!=c,C=r()(b,null==i?void 0:i.className,E,`${b}-${l}`,{[`${b}-with-text`]:T,[`${b}-with-text${w}`]:T,[`${b}-dashed`]:!!m,[`${b}-plain`]:!!v,[`${b}-rtl`]:"rtl"===n,[`${b}-no-default-orientation-margin-left`]:S,[`${b}-no-default-orientation-margin-right`]:M},f,p),A=a.useMemo((()=>"number"==typeof c?c:/^\d+$/.test(c)?Number(c):c),[c]),O=Object.assign(Object.assign({},S&&{marginLeft:A}),M&&{marginRight:A});return _(a.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},null==i?void 0:i.style),y)},x,{role:"separator"}),g&&"vertical"!==l&&a.createElement("span",{className:`${b}-inner-text`,style:O},g)))}},43428:function(t,e,n){"use strict";n.d(e,{Z:function(){return j}});var i=n(92310),r=n.n(i),a=n(57259),o=n(29043),s=n(43403),l=n(19171),u=n(59301),c=u.createContext(null),h=u.createContext({}),d=c,f=n(80962),p=n(5891),g=n(43167),m=n(20287),v=n(47413),y=n(83794);var x=function(t){var e=t.prefixCls,n=t.className,i=t.style,o=t.children,s=t.containerRef,l=t.id,c={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave,onClick:t.onClick,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp},d=u.useContext(h).panel,f=(0,y.useComposeRef)(d,s);return u.createElement(u.Fragment,null,u.createElement("div",(0,p.Z)({id:l,className:r()("".concat(e,"-content"),n),style:(0,a.Z)({},i),"aria-modal":"true",role:"dialog",ref:f},c),o))},b=n(85870);function _(t){return"string"==typeof t&&String(Number(t))===t?((0,b.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(t)):t}var E={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function w(t,e){var n,i,s,l,c=t.prefixCls,h=t.open,y=t.placement,b=t.inline,w=t.push,T=t.forceRender,S=t.autoFocus,M=t.keyboard,C=t.rootClassName,A=t.rootStyle,O=t.zIndex,N=t.className,P=t.id,L=t.style,R=t.motion,D=t.width,k=t.height,I=t.children,B=t.contentWrapperStyle,F=t.mask,z=t.maskClosable,G=t.maskMotion,j=t.maskClassName,U=t.maskStyle,H=t.afterOpenChange,V=t.onClose,Z=t.onMouseEnter,W=t.onMouseOver,X=t.onMouseLeave,Y=t.onClick,q=t.onKeyDown,$=t.onKeyUp,K=u.useRef(),Q=u.useRef(),J=u.useRef();u.useImperativeHandle(e,(function(){return K.current}));u.useEffect((function(){var t;h&&S&&(null===(t=K.current)||void 0===t||t.focus({preventScroll:!0}))}),[h]);var tt=u.useState(!1),et=(0,o.Z)(tt,2),nt=et[0],it=et[1],rt=u.useContext(d),at=null!==(n=null!==(i=null===(s=!1===w?{distance:0}:!0===w?{}:w||{})||void 0===s?void 0:s.distance)&&void 0!==i?i:null==rt?void 0:rt.pushDistance)&&void 0!==n?n:180,ot=u.useMemo((function(){return{pushDistance:at,push:function(){it(!0)},pull:function(){it(!1)}}}),[at]);u.useEffect((function(){var t,e;h?null==rt||null===(t=rt.push)||void 0===t||t.call(rt):null==rt||null===(e=rt.pull)||void 0===e||e.call(rt)}),[h]),u.useEffect((function(){return function(){var t;null==rt||null===(t=rt.pull)||void 0===t||t.call(rt)}}),[]);var st=F&&u.createElement(g.default,(0,p.Z)({key:"mask"},G,{visible:h}),(function(t,e){var n=t.className,i=t.style;return u.createElement("div",{className:r()("".concat(c,"-mask"),n,j),style:(0,a.Z)((0,a.Z)({},i),U),onClick:z&&h?V:void 0,ref:e})})),lt="function"==typeof R?R(y):R,ut={};if(nt&&at)switch(y){case"top":ut.transform="translateY(".concat(at,"px)");break;case"bottom":ut.transform="translateY(".concat(-at,"px)");break;case"left":ut.transform="translateX(".concat(at,"px)");break;default:ut.transform="translateX(".concat(-at,"px)")}"left"===y||"right"===y?ut.width=_(D):ut.height=_(k);var ct={onMouseEnter:Z,onMouseOver:W,onMouseLeave:X,onClick:Y,onKeyDown:q,onKeyUp:$},ht=u.createElement(g.default,(0,p.Z)({key:"panel"},lt,{visible:h,forceRender:T,onVisibleChanged:function(t){null==H||H(t)},removeOnLeave:!1,leavedClassName:"".concat(c,"-content-wrapper-hidden")}),(function(e,n){var i=e.className,o=e.style;return u.createElement("div",(0,p.Z)({className:r()("".concat(c,"-content-wrapper"),i),style:(0,a.Z)((0,a.Z)((0,a.Z)({},ut),o),B)},(0,v.Z)(t,{data:!0})),u.createElement(x,(0,p.Z)({id:P,containerRef:n,prefixCls:c,className:N,style:L},ct),I))})),dt=(0,a.Z)({},A);return O&&(dt.zIndex=O),u.createElement(d.Provider,{value:ot},u.createElement("div",{className:r()(c,"".concat(c,"-").concat(y),C,(l={},(0,f.Z)(l,"".concat(c,"-open"),h),(0,f.Z)(l,"".concat(c,"-inline"),b),l)),style:dt,tabIndex:-1,ref:K,onKeyDown:function(t){var e=t.keyCode,n=t.shiftKey;switch(e){case m.Z.TAB:var i;if(e===m.Z.TAB)if(n||document.activeElement!==J.current){if(n&&document.activeElement===Q.current){var r;null===(r=J.current)||void 0===r||r.focus({preventScroll:!0})}}else null===(i=Q.current)||void 0===i||i.focus({preventScroll:!0});break;case m.Z.ESC:V&&M&&(t.stopPropagation(),V(t))}}},st,u.createElement("div",{tabIndex:0,ref:Q,style:E,"aria-hidden":"true","data-sentinel":"start"}),ht,u.createElement("div",{tabIndex:0,ref:J,style:E,"aria-hidden":"true","data-sentinel":"end"})))}var T=u.forwardRef(w);var S=function(t){var e=t.open,n=void 0!==e&&e,i=t.prefixCls,r=void 0===i?"rc-drawer":i,c=t.placement,d=void 0===c?"right":c,f=t.autoFocus,p=void 0===f||f,g=t.keyboard,m=void 0===g||g,v=t.width,y=void 0===v?378:v,x=t.mask,b=void 0===x||x,_=t.maskClosable,E=void 0===_||_,w=t.getContainer,S=t.forceRender,M=t.afterOpenChange,C=t.destroyOnClose,A=t.onMouseEnter,O=t.onMouseOver,N=t.onMouseLeave,P=t.onClick,L=t.onKeyDown,R=t.onKeyUp,D=t.panelRef,k=u.useState(!1),I=(0,o.Z)(k,2),B=I[0],F=I[1];var z=u.useState(!1),G=(0,o.Z)(z,2),j=G[0],U=G[1];(0,l.Z)((function(){U(!0)}),[]);var H=!!j&&n,V=u.useRef(),Z=u.useRef();(0,l.Z)((function(){H&&(Z.current=document.activeElement)}),[H]);var W=u.useMemo((function(){return{panel:D}}),[D]);if(!S&&!B&&!H&&C)return null;var X={onMouseEnter:A,onMouseOver:O,onMouseLeave:N,onClick:P,onKeyDown:L,onKeyUp:R},Y=(0,a.Z)((0,a.Z)({},t),{},{open:H,prefixCls:r,placement:d,autoFocus:p,keyboard:m,width:y,mask:b,maskClosable:E,inline:!1===w,afterOpenChange:function(t){var e,n;(F(t),null==M||M(t),t||!Z.current||null!==(e=V.current)&&void 0!==e&&e.contains(Z.current))||(null===(n=Z.current)||void 0===n||n.focus({preventScroll:!0}))},ref:V},X);return u.createElement(h.Provider,{value:W},u.createElement(s.Z,{open:H||S||B,autoDestroy:!1,getContainer:w,autoLock:b&&(H||B)},u.createElement(T,Y)))},M=n(62892),C=n(36355),A=n(32441),O=n(47729);var N=t=>{const{prefixCls:e,title:n,footer:i,extra:a,closeIcon:o,closable:s,onClose:l,headerStyle:c,drawerStyle:h,bodyStyle:d,footerStyle:f,children:p}=t,g=u.useCallback((t=>u.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${e}-close`},t)),[l]),[m,v]=(0,O.Z)(s,o,g,void 0,!0),y=u.useMemo((()=>n||m?u.createElement("div",{style:c,className:r()(`${e}-header`,{[`${e}-header-close-only`]:m&&!n&&!a})},u.createElement("div",{className:`${e}-header-title`},v,n&&u.createElement("div",{className:`${e}-title`},n)),a&&u.createElement("div",{className:`${e}-extra`},a)):null),[m,v,a,c,e,n]),x=u.useMemo((()=>{if(!i)return null;const t=`${e}-footer`;return u.createElement("div",{className:t,style:f},i)}),[i,f,e]);return u.createElement("div",{className:`${e}-wrapper-body`,style:h},y,u.createElement("div",{className:`${e}-body`,style:d},p),x)},P=n(33234),L=n(83116),R=n(37613);var D=t=>{const{componentCls:e,motionDurationSlow:n}=t,i={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[e]:{[`${e}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${e}-panel-motion`]:{"&-left":[i,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[i,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[i,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[i,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const k=t=>{const{componentCls:e,zIndexPopup:n,colorBgMask:i,colorBgElevated:r,motionDurationSlow:a,motionDurationMid:o,padding:s,paddingLG:l,fontSizeLG:u,lineHeightLG:c,lineWidth:h,lineType:d,colorSplit:f,marginSM:p,colorIcon:g,colorIconHover:m,colorText:v,fontWeightStrong:y,footerPaddingBlock:x,footerPaddingInline:b}=t,_=`${e}-content-wrapper`;return{[e]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:r,[`&${e}-left`]:{boxShadow:t.boxShadowDrawerLeft},[`&${e}-right`]:{boxShadow:t.boxShadowDrawerRight},[`&${e}-top`]:{boxShadow:t.boxShadowDrawerUp},[`&${e}-bottom`]:{boxShadow:t.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${e}-mask`]:{position:"absolute",inset:0,zIndex:n,background:i,pointerEvents:"auto"},[_]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${_}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:t.boxShadowDrawerLeft},[`&-right > ${_}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:t.boxShadowDrawerRight},[`&-top > ${_}`]:{top:0,insetInline:0,boxShadow:t.boxShadowDrawerUp},[`&-bottom > ${_}`]:{bottom:0,insetInline:0,boxShadow:t.boxShadowDrawerDown},[`${e}-content`]:{width:"100%",height:"100%",overflow:"auto",background:r,pointerEvents:"auto"},[`${e}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${e}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${s}px ${l}px`,fontSize:u,lineHeight:c,borderBottom:`${h}px ${d} ${f}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${e}-extra`]:{flex:"none"},[`${e}-close`]:{display:"inline-block",marginInlineEnd:p,color:g,fontWeight:y,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${o}`,textRendering:"auto","&:focus, &:hover":{color:m,textDecoration:"none"}},[`${e}-title`]:{flex:1,margin:0,color:v,fontWeight:t.fontWeightStrong,fontSize:u,lineHeight:c},[`${e}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${e}-footer`]:{flexShrink:0,padding:`${x}px ${b}px`,borderTop:`${h}px ${d} ${f}`},"&-rtl":{direction:"rtl"}}}};var I=(0,L.Z)("Drawer",(t=>{const e=(0,R.TS)(t,{});return[k(e),D(e)]}),(t=>({zIndexPopup:t.zIndexPopupBase,footerPaddingBlock:t.paddingXS,footerPaddingInline:t.padding}))),B=n(11575),F=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const{rootClassName:e,width:n,height:i,size:a="default",mask:o=!0,push:s=z,open:l,afterOpenChange:c,onClose:h,prefixCls:d,getContainer:f,style:p,className:g,visible:m,afterVisibleChange:v}=t,y=F(t,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:x,getPrefixCls:b,direction:_,drawer:E}=u.useContext(C.E_),w=b("drawer",d),[T,O]=I(w),L=void 0===f&&x?()=>x(document.body):f,R=r()({"no-mask":!o,[`${w}-rtl`]:"rtl"===_},e,O);const D=u.useMemo((()=>null!=n?n:"large"===a?736:378),[n,a]),k=u.useMemo((()=>null!=i?i:"large"===a?736:378),[i,a]),G={motionName:(0,M.m)(w,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},j=(0,B.H)();return T(u.createElement(P.BR,null,u.createElement(A.Ux,{status:!0,override:!0},u.createElement(S,Object.assign({prefixCls:w,onClose:h,maskMotion:G,motion:t=>({motionName:(0,M.m)(w,`panel-motion-${t}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},y,{open:null!=l?l:m,mask:o,push:s,width:D,height:k,style:Object.assign(Object.assign({},null==E?void 0:E.style),p),className:r()(null==E?void 0:E.className,g),rootClassName:R,getContainer:L,afterOpenChange:null!=c?c:v,panelRef:j}),u.createElement(N,Object.assign({prefixCls:w},y,{onClose:h}))))))};G._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:e,style:n,className:i,placement:a="right"}=t,o=F(t,["prefixCls","style","className","placement"]),{getPrefixCls:s}=u.useContext(C.E_),l=s("drawer",e),[c,h]=I(l),d=r()(l,`${l}-pure`,`${l}-${a}`,h,i);return c(u.createElement("div",{className:d,style:n},u.createElement(N,Object.assign({prefixCls:l},o))))};var j=G},45411:function(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},75196:function(t,e,n){var i=n(45411),r=n(75029),a=Object.hasOwnProperty,o=Object.create(null);for(var s in i)a.call(i,s)&&(o[i[s]]=s);var l=t.exports={to:{},get:{}};function u(t,e,n){return Math.min(Math.max(e,t),n)}function c(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}l.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=l.get.hsl(t),n="hsl";break;case"hwb":e=l.get.hwb(t),n="hwb";break;default:e=l.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},l.get.rgb=function(t){if(!t)return null;var e,n,r,o=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=e[2],e=e[1],n=0;n<3;n++){var s=2*n;o[n]=parseInt(e.slice(s,s+2),16)}r&&(o[3]=parseInt(r,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(r=(e=e[1])[3],n=0;n<3;n++)o[n]=parseInt(e[n]+e[n],16);r&&(o[3]=parseInt(r+r,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(e[n+1],0);e[4]&&(e[5]?o[3]=.01*parseFloat(e[4]):o[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:a.call(i,e[1])?((o=i[e[1]])[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(e[5]?o[3]=.01*parseFloat(e[4]):o[3]=parseFloat(e[4]))}for(n=0;n<3;n++)o[n]=u(o[n],0,255);return o[3]=u(o[3],0,1),o},l.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var t=r(arguments);return"#"+c(t[0])+c(t[1])+c(t[2])+(t[3]<1?c(Math.round(255*t[3])):"")},l.to.rgb=function(){var t=r(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},l.to.rgb.percent=function(){var t=r(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+i+"%)":"rgba("+e+"%, "+n+"%, "+i+"%, "+t[3]+")"},l.to.hsl=function(){var t=r(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},l.to.hwb=function(){var t=r(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},l.to.keyword=function(t){return o[t.slice(0,3)]}},97774:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=Object.assign||function(t){for(var e=1;e0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r),t},s.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},s.cross=function(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t},s.lerp=function(t,e,n,i){var r=e[0],a=e[1];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t},s.random=function(t,e){e=e||1;var n=2*i()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},s.transformMat2=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t},s.transformMat2d=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},s.transformMat3=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t},s.transformMat4=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t},s.forEach=(o=s.create(),function(t,e,n,i,r,a){var s,l;for(e||(e=2),n||(n=0),l=i?Math.min(i*e+n,t.length):t.length,s=n;s0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t},l.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},l.cross=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[0],s=n[1],l=n[2];return t[0]=r*l-a*s,t[1]=a*o-i*l,t[2]=i*s-r*o,t},l.lerp=function(t,e,n,i){var r=e[0],a=e[1],o=e[2];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t[2]=o+i*(n[2]-o),t},l.random=function(t,e){e=e||1;var n=2*i()*Math.PI,r=2*i()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t},l.transformMat4=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[3]*i+n[7]*r+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*i+n[4]*r+n[8]*a+n[12])/o,t[1]=(n[1]*i+n[5]*r+n[9]*a+n[13])/o,t[2]=(n[2]*i+n[6]*r+n[10]*a+n[14])/o,t},l.transformMat3=function(t,e,n){var i=e[0],r=e[1],a=e[2];return t[0]=i*n[0]+r*n[3]+a*n[6],t[1]=i*n[1]+r*n[4]+a*n[7],t[2]=i*n[2]+r*n[5]+a*n[8],t},l.transformQuat=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[0],s=n[1],l=n[2],u=n[3],c=u*i+s*a-l*r,h=u*r+l*i-o*a,d=u*a+o*r-s*i,f=-o*i-s*r-l*a;return t[0]=c*u+f*-o+h*-l-d*-s,t[1]=h*u+f*-s+d*-o-c*-l,t[2]=d*u+f*-l+c*-s-h*-o,t},l.rotateX=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0],a[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),a[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},l.rotateY=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),a[1]=r[1],a[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},l.rotateZ=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),a[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),a[2]=r[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},l.forEach=function(){var t=l.create();return function(e,n,i,r,a,o){var s,l;for(n||(n=3),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s1?0:Math.acos(r)},l.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},void 0!==t&&(t.vec3=l);var u={create:function(){var t=new n(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},clone:function(t){var e=new n(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},fromValues:function(t,e,i,r){var a=new n(4);return a[0]=t,a[1]=e,a[2]=i,a[3]=r,a},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},set:function(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},subtract:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}};u.sub=u.subtract,u.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t},u.mul=u.multiply,u.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t},u.div=u.divide,u.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},u.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},u.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},u.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t},u.distance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(n*n+i*i+r*r+a*a)},u.dist=u.distance,u.squaredDistance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],a=e[3]-t[3];return n*n+i*i+r*r+a*a},u.sqrDist=u.squaredDistance,u.length=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return Math.sqrt(e*e+n*n+i*i+r*r)},u.len=u.length,u.squaredLength=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return e*e+n*n+i*i+r*r},u.sqrLen=u.squaredLength,u.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},u.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},u.normalize=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=n*n+i*i+r*r+a*a;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t[3]=e[3]*o),t},u.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},u.lerp=function(t,e,n,i){var r=e[0],a=e[1],o=e[2],s=e[3];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t[2]=o+i*(n[2]-o),t[3]=s+i*(n[3]-s),t},u.random=function(t,e){return e=e||1,t[0]=i(),t[1]=i(),t[2]=i(),t[3]=i(),u.normalize(t,t),u.scale(t,t,e),t},u.transformMat4=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3];return t[0]=n[0]*i+n[4]*r+n[8]*a+n[12]*o,t[1]=n[1]*i+n[5]*r+n[9]*a+n[13]*o,t[2]=n[2]*i+n[6]*r+n[10]*a+n[14]*o,t[3]=n[3]*i+n[7]*r+n[11]*a+n[15]*o,t},u.transformQuat=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[0],s=n[1],l=n[2],u=n[3],c=u*i+s*a-l*r,h=u*r+l*i-o*a,d=u*a+o*r-s*i,f=-o*i-s*r-l*a;return t[0]=c*u+f*-o+h*-l-d*-s,t[1]=h*u+f*-s+d*-o-c*-l,t[2]=d*u+f*-l+c*-s-h*-o,t},u.forEach=function(){var t=u.create();return function(e,n,i,r,a,o){var s,l;for(n||(n=4),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(l.cross(p,e,n),t[0]=p[0],t[1]=p[1],t[2]=p[2],t[3]=1+i,y.normalize(t,t))}),y.setAxes=(v=d.create(),function(t,e,n,i){return v[0]=n[0],v[3]=n[1],v[6]=n[2],v[1]=i[0],v[4]=i[1],v[7]=i[2],v[2]=-e[0],v[5]=-e[1],v[8]=-e[2],y.normalize(t,y.fromMat3(t,v))}),y.clone=u.clone,y.fromValues=u.fromValues,y.copy=u.copy,y.set=u.set,y.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},y.setAxisAngle=function(t,e,n){n*=.5;var i=Math.sin(n);return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=Math.cos(n),t},y.add=u.add,y.multiply=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=i*c+o*s+r*u-a*l,t[1]=r*c+o*l+a*s-i*u,t[2]=a*c+o*u+i*l-r*s,t[3]=o*c-i*s-r*l-a*u,t},y.mul=y.multiply,y.scale=u.scale,y.rotateX=function(t,e,n){n*=.5;var i=e[0],r=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+o*s,t[1]=r*l+a*s,t[2]=a*l-r*s,t[3]=o*l-i*s,t},y.rotateY=function(t,e,n){n*=.5;var i=e[0],r=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l-a*s,t[1]=r*l+o*s,t[2]=a*l+i*s,t[3]=o*l-r*s,t},y.rotateZ=function(t,e,n){n*=.5;var i=e[0],r=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+r*s,t[1]=r*l-i*s,t[2]=a*l+o*s,t[3]=o*l-a*s,t},y.calculateW=function(t,e){var n=e[0],i=e[1],r=e[2];return t[0]=n,t[1]=i,t[2]=r,t[3]=Math.sqrt(Math.abs(1-n*n-i*i-r*r)),t},y.dot=u.dot,y.lerp=u.lerp,y.slerp=function(t,e,n,i){var r,a,o,s,l,u=e[0],c=e[1],h=e[2],d=e[3],f=n[0],p=n[1],g=n[2],m=n[3];return(a=u*f+c*p+h*g+d*m)<0&&(a=-a,f=-f,p=-p,g=-g,m=-m),1-a>1e-6?(r=Math.acos(a),o=Math.sin(r),s=Math.sin((1-i)*r)/o,l=Math.sin(i*r)/o):(s=1-i,l=i),t[0]=s*u+l*f,t[1]=s*c+l*p,t[2]=s*h+l*g,t[3]=s*d+l*m,t},y.invert=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=n*n+i*i+r*r+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-i*s,t[2]=-r*s,t[3]=a*s,t},y.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},y.length=u.length,y.len=y.length,y.squaredLength=u.squaredLength,y.sqrLen=y.squaredLength,y.normalize=u.normalize,y.fromMat3=function(t,e){var n,i=e[0]+e[4]+e[8];if(i>0)n=Math.sqrt(i+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);var a=(r+1)%3,o=(r+2)%3;n=Math.sqrt(e[3*r+r]-e[3*a+a]-e[3*o+o]+1),t[r]=.5*n,n=.5/n,t[3]=(e[3*a+o]-e[3*o+a])*n,t[a]=(e[3*a+r]+e[3*r+a])*n,t[o]=(e[3*o+r]+e[3*r+o])*n}return t},y.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},void 0!==t&&(t.quat=y)}(n.exports)}()},function(t,e,n){"use strict";var i=n(24),r=n(46),a=n(5),o=n(6),s=n(7),l=n(17),u=n(28),c=n(13),h=n(0),d=n.n(h),f=n(29),p=n(53),g=n.n(p),m=n(54),v=n(106),y=n(107),x=n(113),b=n(114),_=n(3),E=n(68),w=n(37),T=n(69),S=n(116),M=n(70),C=n(71),A=n(72),O=n(36),N=n(30),P=n(23),L=n(4),R=n(117),D=n(50),k=n(118),I=n(119),B=n(120),F=n(9),z=n(67),G=n(49),j=n(15),U=n(52),H=n(121),V=n(126),Z=n(63),W=n(127),X=n(128),Y=n(129),q=n(130),$=n(131),K=n(132);function Q(t){return t instanceof HTMLCanvasElement||t instanceof HTMLImageElement||t instanceof Image}d.a.util.extend(u.a.prototype,H.a),s.a.import(V.a),s.a.import(Z.a),s.a.import(W.a),s.a.import(X.a),s.a.import(Y.a),s.a.import(q.a),s.a.import($.a),s.a.import(K.a);var J=f.a.prototype.addToScene,tt=f.a.prototype.removeFromScene;f.a.prototype.addToScene=function(t){if(J.call(this,t),this.__zr){var e=this.__zr;t.traverse((function(t){t.__zr=e,t.addAnimatorsToZr&&t.addAnimatorsToZr(e)}))}},f.a.prototype.removeFromScene=function(t){tt.call(this,t),t.traverse((function(t){var e=t.__zr;t.__zr=null,e&&t.removeAnimatorsFromZr&&t.removeAnimatorsFromZr(e)}))},l.a.prototype.setTextureImage=function(t,e,n,i){if(this.shader){var r,a,o=n.getZr(),s=this;return s.autoUpdateTextureStatus=!1,s.disableTexture(t),(a=e)&&"none"!==a&&(r=et.loadTexture(e,n,i,(function(e){s.enableTexture(t),o&&o.refresh()})),s.set(t,r)),r}};var et={};et.Renderer=r.a,et.Node=u.a,et.Mesh=i.a,et.Shader=s.a,et.Material=l.a,et.Texture=o.a,et.Texture2D=a.a,et.Geometry=c.a,et.SphereGeometry=E.a,et.PlaneGeometry=w.a,et.CubeGeometry=T.a,et.AmbientLight=S.a,et.DirectionalLight=M.a,et.PointLight=C.a,et.SpotLight=A.a,et.PerspectiveCamera=O.a,et.OrthographicCamera=N.a,et.Vector2=P.a,et.Vector3=L.a,et.Vector4=R.a,et.Quaternion=D.a,et.Matrix2=k.a,et.Matrix2d=I.a,et.Matrix3=B.a,et.Matrix4=F.a,et.Plane=z.a,et.Ray=G.a,et.BoundingBox=j.a,et.Frustum=U.a;var nt=m.a.createBlank("rgba(255,255,255,0)").image;function it(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))}function rt(t){if((t.wrapS===o.a.REPEAT||t.wrapT===o.a.REPEAT)&&t.image){var e=it(t.width),n=it(t.height);if(e!==t.width||n!==t.height){var i=document.createElement("canvas");i.width=e,i.height=n,i.getContext("2d").drawImage(t.image,0,0,e,n),t.image=i}}}et.loadTexture=function(t,e,n,i){"function"==typeof n&&(i=n,n={}),n=n||{};for(var r=Object.keys(n).sort(),a="",o=0;o3?e[3]=t[3]:e[3]=1,e):((e=d.a.color.parse(t||"#000",e)||[0,0,0,0])[0]/=255,e[1]/=255,e[2]/=255,e)},et.directionFromAlphaBeta=function(t,e){var n=t/180*Math.PI+Math.PI/2,i=-e/180*Math.PI+Math.PI/2,r=[],a=Math.sin(n);return r[0]=a*Math.cos(i),r[1]=-Math.cos(n),r[2]=a*Math.sin(i),r},et.getShadowResolution=function(t){var e=1024;switch(t){case"low":e=512;break;case"medium":break;case"high":e=2048;break;case"ultra":e=4096}return e},et.COMMON_SHADERS=["lambert","color","realistic","hatching"],et.createShader=function(t){var e=s.a.source(t+".vertex"),n=s.a.source(t+".fragment");e||console.error("Vertex shader of '%s' not exits",t),n||console.error("Fragment shader of '%s' not exits",t);var i=new s.a(e,n);return i.name=t,i},et.createMaterial=function(t,e){e instanceof Array||(e=[e]);var n=et.createShader(t),i=new l.a({shader:n});return e.forEach((function(t){"string"==typeof t&&i.define(t)})),i},et.setMaterialFromModel=function(t,e,n,i){e.autoUpdateTextureStatus=!1;var r=n.getModel(t+"Material"),a=r.get("detailTexture"),o=_.a.firstNotNull(r.get("textureTiling"),1),s=_.a.firstNotNull(r.get("textureOffset"),0);"number"==typeof o&&(o=[o,o]),"number"==typeof s&&(s=[s,s]);var l=o[0]>1||o[1]>1?et.Texture.REPEAT:et.Texture.CLAMP_TO_EDGE,u={anisotropic:8,wrapS:l,wrapT:l};if("realistic"===t){var c=r.get("roughness"),h=r.get("metalness");null!=h?isNaN(h)&&(e.setTextureImage("metalnessMap",h,i,u),h=_.a.firstNotNull(r.get("metalnessAdjust"),.5)):h=0,null!=c?isNaN(c)&&(e.setTextureImage("roughnessMap",c,i,u),c=_.a.firstNotNull(r.get("roughnessAdjust"),.5)):c=.5;var d=r.get("normalTexture");e.setTextureImage("detailMap",a,i,u),e.setTextureImage("normalMap",d,i,u),e.set({roughness:c,metalness:h,detailUvRepeat:o,detailUvOffset:s})}else if("lambert"===t)e.setTextureImage("detailMap",a,i,u),e.set({detailUvRepeat:o,detailUvOffset:s});else if("color"===t)e.setTextureImage("detailMap",a,i,u),e.set({detailUvRepeat:o,detailUvOffset:s});else if("hatching"===t){var f=r.get("hatchingTextures")||[];f.length<6&&console.error("Invalid hatchingTextures.");for(var p=0;p<6;p++)e.setTextureImage("hatch"+(p+1),f[p],i,{anisotropic:8,wrapS:et.Texture.REPEAT,wrapT:et.Texture.REPEAT});e.set({detailUvRepeat:o,detailUvOffset:s})}},et.updateVertexAnimation=function(t,e,n,i){var r=i.get("animation"),a=i.get("animationDurationUpdate"),o=i.get("animationEasingUpdate"),s=n.shadowDepthMaterial;if(r&&e&&a>0&&e.geometry.vertexCount===n.geometry.vertexCount){n.material.define("vertex","VERTEX_ANIMATION"),n.ignorePreZ=!0,s&&s.define("vertex","VERTEX_ANIMATION");for(var l=0;ln?n:t}a.add=function(t,e,n){return r.add(t.array,e.array,n.array),t._dirty=!0,t},a.set=function(t,e,n,i){r.set(t.array,e,n,i),t._dirty=!0},a.copy=function(t,e){return r.copy(t.array,e.array),t._dirty=!0,t},a.cross=function(t,e,n){return r.cross(t.array,e.array,n.array),t._dirty=!0,t},a.distance=a.dist=function(t,e){return r.distance(t.array,e.array)},a.divide=a.div=function(t,e,n){return r.divide(t.array,e.array,n.array),t._dirty=!0,t},a.dot=function(t,e){return r.dot(t.array,e.array)},a.len=function(t){return r.length(t.array)},a.lerp=function(t,e,n,i){return r.lerp(t.array,e.array,n.array,i),t._dirty=!0,t},a.min=function(t,e,n){return r.min(t.array,e.array,n.array),t._dirty=!0,t},a.max=function(t,e,n){return r.max(t.array,e.array,n.array),t._dirty=!0,t},a.multiply=a.mul=function(t,e,n){return r.multiply(t.array,e.array,n.array),t._dirty=!0,t},a.negate=function(t,e){return r.negate(t.array,e.array),t._dirty=!0,t},a.normalize=function(t,e){return r.normalize(t.array,e.array),t._dirty=!0,t},a.random=function(t,e){return r.random(t.array,e),t._dirty=!0,t},a.scale=function(t,e,n){return r.scale(t.array,e.array,n),t._dirty=!0,t},a.scaleAndAdd=function(t,e,n,i){return r.scaleAndAdd(t.array,e.array,n.array,i),t._dirty=!0,t},a.squaredDistance=a.sqrDist=function(t,e){return r.sqrDist(t.array,e.array)},a.squaredLength=a.sqrLen=function(t){return r.sqrLen(t.array)},a.subtract=a.sub=function(t,e,n){return r.subtract(t.array,e.array,n.array),t._dirty=!0,t},a.transformMat3=function(t,e,n){return r.transformMat3(t.array,e.array,n.array),t._dirty=!0,t},a.transformMat4=function(t,e,n){return r.transformMat4(t.array,e.array,n.array),t._dirty=!0,t},a.transformQuat=function(t,e,n){return r.transformQuat(t.array,e.array,n.array),t._dirty=!0,t};var u=Math.atan2,c=Math.asin,h=Math.abs;a.eulerFromQuat=function(t,e,n){t._dirty=!0,e=e.array;var i=t.array,r=e[0],a=e[1],o=e[2],s=e[3],h=r*r,d=a*a,f=o*o,p=s*s;switch(n=(n||"XYZ").toUpperCase()){case"XYZ":i[0]=u(2*(r*s-a*o),p-h-d+f),i[1]=c(l(2*(r*o+a*s),-1,1)),i[2]=u(2*(o*s-r*a),p+h-d-f);break;case"YXZ":i[0]=c(l(2*(r*s-a*o),-1,1)),i[1]=u(2*(r*o+a*s),p-h-d+f),i[2]=u(2*(r*a+o*s),p-h+d-f);break;case"ZXY":i[0]=c(l(2*(r*s+a*o),-1,1)),i[1]=u(2*(a*s-o*r),p-h-d+f),i[2]=u(2*(o*s-r*a),p-h+d-f);break;case"ZYX":i[0]=u(2*(r*s+o*a),p-h-d+f),i[1]=c(l(2*(a*s-r*o),-1,1)),i[2]=u(2*(r*a+o*s),p+h-d-f);break;case"YZX":i[0]=u(2*(r*s-o*a),p-h+d-f),i[1]=u(2*(a*s-r*o),p+h-d-f),i[2]=c(l(2*(r*a+o*s),-1,1));break;case"XZY":i[0]=u(2*(r*s+a*o),p-h+d-f),i[1]=u(2*(r*o+a*s),p+h-d-f),i[2]=c(l(2*(o*s-r*a),-1,1));break;default:console.warn("Unkown order: "+n)}return t},a.eulerFromMat3=function(t,e,n){var i=e.array,r=i[0],a=i[3],o=i[6],s=i[1],d=i[4],f=i[7],p=i[2],g=i[5],m=i[8],v=t.array;switch(n=(n||"XYZ").toUpperCase()){case"XYZ":v[1]=c(l(o,-1,1)),h(o)<.99999?(v[0]=u(-f,m),v[2]=u(-a,r)):(v[0]=u(g,d),v[2]=0);break;case"YXZ":v[0]=c(-l(f,-1,1)),h(f)<.99999?(v[1]=u(o,m),v[2]=u(s,d)):(v[1]=u(-p,r),v[2]=0);break;case"ZXY":v[0]=c(l(g,-1,1)),h(g)<.99999?(v[1]=u(-p,m),v[2]=u(-a,d)):(v[1]=0,v[2]=u(s,r));break;case"ZYX":v[1]=c(-l(p,-1,1)),h(p)<.99999?(v[0]=u(g,m),v[2]=u(s,r)):(v[0]=0,v[2]=u(-a,d));break;case"YZX":v[2]=c(l(s,-1,1)),h(s)<.99999?(v[0]=u(-f,d),v[1]=u(-p,r)):(v[0]=0,v[1]=u(o,m));break;case"XZY":v[2]=c(-l(a,-1,1)),h(a)<.99999?(v[0]=u(g,d),v[1]=u(o,r)):(v[0]=u(-f,m),v[1]=0);break;default:console.warn("Unkown order: "+n)}return t._dirty=!0,t},a.POSITIVE_X=new a(1,0,0),a.NEGATIVE_X=new a(-1,0,0),a.POSITIVE_Y=new a(0,1,0),a.NEGATIVE_Y=new a(0,-1,0),a.POSITIVE_Z=new a(0,0,1),a.NEGATIVE_Z=new a(0,0,-1),a.UP=new a(0,1,0),a.ZERO=new a(0,0,0),e.a=a},function(t,e,n){"use strict";var i=n(6),r=n(11),a=n(66).a.isPowerOfTwo,o=i.a.extend((function(){return{image:null,pixels:null,mipmaps:[]}}),{update:function(t){var e=t.gl;e.bindTexture(e.TEXTURE_2D,this._cache.get("webgl_texture")),this.updateCommon(t);var n=this.format,i=this.type;e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,this.getAvailableWrapS()),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,this.getAvailableWrapT()),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,this.getAvailableMagFilter()),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,this.getAvailableMinFilter());var a=t.getGLExtension("EXT_texture_filter_anisotropic");if(a&&this.anisotropic>1&&e.texParameterf(e.TEXTURE_2D,a.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),36193===i&&(t.getGLExtension("OES_texture_half_float")||(i=r.a.FLOAT)),this.mipmaps.length)for(var o=this.width,s=this.height,l=0;l=i.a.COMPRESSED_RGB_S3TC_DXT1_EXT?t.compressedTexImage2D(t.TEXTURE_2D,n,o,r,a,0,e.pixels):t.texImage2D(t.TEXTURE_2D,n,o,r,a,0,o,s,e.pixels)},generateMipmap:function(t){var e=t.gl;this.useMipmap&&!this.NPOT&&(e.bindTexture(e.TEXTURE_2D,this._cache.get("webgl_texture")),e.generateMipmap(e.TEXTURE_2D))},isPowerOfTwo:function(){var t,e;return this.image?(t=this.image.width,e=this.image.height):(t=this.width,e=this.height),a(t)&&a(e)},isRenderable:function(){return this.image?"CANVAS"===this.image.nodeName||"VIDEO"===this.image.nodeName||this.image.complete:!(!this.width||!this.height)},bind:function(t){t.gl.bindTexture(t.gl.TEXTURE_2D,this.getWebGLTexture(t))},unbind:function(t){t.gl.bindTexture(t.gl.TEXTURE_2D,null)},load:function(t,e){var n=new Image;e&&(n.crossOrigin=e);var i=this;return n.onload=function(){i.dirty(),i.trigger("success",i),n.onload=null},n.onerror=function(){i.trigger("error",i),n.onerror=null},n.src=t,this.image=n,this}});Object.defineProperty(o.prototype,"width",{get:function(){return this.image?this.image.width:this._width},set:function(t){this.image?console.warn("Texture from image can't set width"):(this._width!==t&&this.dirty(),this._width=t)}}),Object.defineProperty(o.prototype,"height",{get:function(){return this.image?this.image.height:this._height},set:function(t){this.image?console.warn("Texture from image can't set height"):(this._height!==t&&this.dirty(),this._height=t)}}),e.a=o},function(t,e,n){"use strict";var i=n(8),r=n(11),a=n(48),o=i.a.extend({width:512,height:512,type:r.a.UNSIGNED_BYTE,format:r.a.RGBA,wrapS:r.a.REPEAT,wrapT:r.a.REPEAT,minFilter:r.a.LINEAR_MIPMAP_LINEAR,magFilter:r.a.LINEAR,useMipmap:!0,anisotropic:1,flipY:!0,sRGB:!0,unpackAlignment:4,premultiplyAlpha:!1,dynamic:!1,NPOT:!1},(function(){this._cache=new a.a}),{getWebGLTexture:function(t){var e=t.gl,n=this._cache;return n.use(t.__uid__),n.miss("webgl_texture")&&n.put("webgl_texture",e.createTexture()),this.dynamic?this.update(t):n.isDirty()&&(this.update(t),n.fresh()),n.get("webgl_texture")},bind:function(){},unbind:function(){},dirty:function(){this._cache&&this._cache.dirtyAll()},update:function(t){},updateCommon:function(t){var e=t.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,this.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,this.unpackAlignment),this.format===r.a.DEPTH_COMPONENT&&(this.useMipmap=!1);var n=t.getGLExtension("EXT_sRGB");this.format!==o.SRGB||n||(this.format=o.RGB),this.format!==o.SRGB_ALPHA||n||(this.format=o.RGBA),this.NPOT=!this.isPowerOfTwo()},getAvailableWrapS:function(){return this.NPOT?r.a.CLAMP_TO_EDGE:this.wrapS},getAvailableWrapT:function(){return this.NPOT?r.a.CLAMP_TO_EDGE:this.wrapT},getAvailableMinFilter:function(){var t=this.minFilter;return this.NPOT||!this.useMipmap?t==r.a.NEAREST_MIPMAP_NEAREST||t==r.a.NEAREST_MIPMAP_LINEAR?r.a.NEAREST:t==r.a.LINEAR_MIPMAP_LINEAR||t==r.a.LINEAR_MIPMAP_NEAREST?r.a.LINEAR:t:t},getAvailableMagFilter:function(){return this.magFilter},nextHighestPowerOfTwo:function(t){--t;for(var e=1;e<32;e<<=1)t|=t>>e;return t+1},dispose:function(t){var e=this._cache;e.use(t.__uid__);var n=e.get("webgl_texture");n&&t.gl.deleteTexture(n),e.deleteContext(t.__uid__)},isRenderable:function(){},isPowerOfTwo:function(){}});Object.defineProperty(o.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t}}),Object.defineProperty(o.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t}}),o.BYTE=r.a.BYTE,o.UNSIGNED_BYTE=r.a.UNSIGNED_BYTE,o.SHORT=r.a.SHORT,o.UNSIGNED_SHORT=r.a.UNSIGNED_SHORT,o.INT=r.a.INT,o.UNSIGNED_INT=r.a.UNSIGNED_INT,o.FLOAT=r.a.FLOAT,o.HALF_FLOAT=36193,o.UNSIGNED_INT_24_8_WEBGL=34042,o.DEPTH_COMPONENT=r.a.DEPTH_COMPONENT,o.DEPTH_STENCIL=r.a.DEPTH_STENCIL,o.ALPHA=r.a.ALPHA,o.RGB=r.a.RGB,o.RGBA=r.a.RGBA,o.LUMINANCE=r.a.LUMINANCE,o.LUMINANCE_ALPHA=r.a.LUMINANCE_ALPHA,o.SRGB=35904,o.SRGB_ALPHA=35906,o.COMPRESSED_RGB_S3TC_DXT1_EXT=33776,o.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777,o.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778,o.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779,o.NEAREST=r.a.NEAREST,o.LINEAR=r.a.LINEAR,o.NEAREST_MIPMAP_NEAREST=r.a.NEAREST_MIPMAP_NEAREST,o.LINEAR_MIPMAP_NEAREST=r.a.LINEAR_MIPMAP_NEAREST,o.NEAREST_MIPMAP_LINEAR=r.a.NEAREST_MIPMAP_LINEAR,o.LINEAR_MIPMAP_LINEAR=r.a.LINEAR_MIPMAP_LINEAR,o.REPEAT=r.a.REPEAT,o.CLAMP_TO_EDGE=r.a.CLAMP_TO_EDGE,o.MIRRORED_REPEAT=r.a.MIRRORED_REPEAT,e.a=o},function(t,e,n){"use strict";var i=n(21),r=n(18),a=n(1),o=n.n(a),s=o.a.mat2,l=o.a.mat3,u=o.a.mat4,c=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\w\,]+)?(\[.*?\])?\s*(:\s*([\S\s]+?))?;/g,h=/attribute\s+(float|int|vec2|vec3|vec4)\s+(\w*)\s*(:\s*(\w+))?;/g,d=/#define\s+(\w+)?(\s+[\w-.]+)?\s*;?\s*\n/g,f={bool:"1i",int:"1i",sampler2D:"t",samplerCube:"t",float:"1f",vec2:"2f",vec3:"3f",vec4:"4f",ivec2:"2i",ivec3:"3i",ivec4:"4i",mat2:"m2",mat3:"m3",mat4:"m4"},p={bool:function(){return!0},int:function(){return 0},float:function(){return 0},sampler2D:function(){return null},samplerCube:function(){return null},vec2:function(){return[0,0]},vec3:function(){return[0,0,0]},vec4:function(){return[0,0,0,0]},ivec2:function(){return[0,0]},ivec3:function(){return[0,0,0]},ivec4:function(){return[0,0,0,0]},mat2:function(){return s.create()},mat3:function(){return l.create()},mat4:function(){return u.create()},array:function(){return[]}},g=["POSITION","NORMAL","BINORMAL","TANGENT","TEXCOORD","TEXCOORD_0","TEXCOORD_1","COLOR","JOINT","WEIGHT"],m=["SKIN_MATRIX","VIEWPORT_SIZE","VIEWPORT","DEVICEPIXELRATIO","WINDOW_SIZE","NEAR","FAR","TIME"],v=["WORLD","VIEW","PROJECTION","WORLDVIEW","VIEWPROJECTION","WORLDVIEWPROJECTION","WORLDINVERSE","VIEWINVERSE","PROJECTIONINVERSE","WORLDVIEWINVERSE","VIEWPROJECTIONINVERSE","WORLDVIEWPROJECTIONINVERSE","WORLDTRANSPOSE","VIEWTRANSPOSE","PROJECTIONTRANSPOSE","WORLDVIEWTRANSPOSE","VIEWPROJECTIONTRANSPOSE","WORLDVIEWPROJECTIONTRANSPOSE","WORLDINVERSETRANSPOSE","VIEWINVERSETRANSPOSE","PROJECTIONINVERSETRANSPOSE","WORLDVIEWINVERSETRANSPOSE","VIEWPROJECTIONINVERSETRANSPOSE","WORLDVIEWPROJECTIONINVERSETRANSPOSE"],y={},x={};function b(t,e){"object"==typeof t&&(e=t.fragment,t=t.vertex),this._shaderID=function(t,e){var n="vertex:"+t+"fragment:"+e;if(y[n])return y[n];var r=i.a.genGUID();return y[n]=r,x[r]={vertex:t,fragment:e},r}(t,e),this._vertexCode=b.parseImport(t),this._fragmentCode=b.parseImport(e),this.attributeSemantics={},this.matrixSemantics={},this.uniformSemantics={},this.matrixSemanticKeys=[],this.uniformTemplates={},this.attributes={},this.textures={},this.vertexDefines={},this.fragmentDefines={},this._parseAttributes(),this._parseUniforms(),this._parseDefines()}b.prototype={constructor:b,createUniforms:function(){var t={};for(var e in this.uniformTemplates){var n=this.uniformTemplates[e];t[e]={type:n.type,value:n.value()}}return t},_parseImport:function(){this._vertexCode=b.parseImport(this.vertex),this._fragmentCode=b.parseImport(this.fragment)},_parseUniforms:function(){var t={},e=this;function n(n,i,r,a,o,s){if(i&&r){var l,u=f[i],c=!0;if(u){if(e._uniformList.push(r),"sampler2D"!==i&&"samplerCube"!==i||(e.textures[r]={shaderType:"fragment",type:i}),a&&(u+="v"),s)if(g.indexOf(s)>=0)e.attributeSemantics[s]={symbol:r,type:u},c=!1;else if(v.indexOf(s)>=0){var h=!1,d=s;s.match(/TRANSPOSE$/)&&(h=!0,d=s.slice(0,-9)),e.matrixSemantics[s]={symbol:r,type:u,isTranspose:h,semanticNoTranspose:d},c=!1}else if(m.indexOf(s)>=0)e.uniformSemantics[s]={symbol:r,type:u},c=!1;else if("unconfigurable"===s)c=!1;else{if(!(l=e._parseDefaultValue(i,s)))throw new Error('Unkown semantic "'+s+'"');s=""}c&&(t[r]={type:u,value:a?p.array:l||p[i],semantic:s||null})}return["uniform",i,r,a].join(" ")+";\n"}}this._uniformList=[],this._vertexCode=this._vertexCode.replace(c,n),this._fragmentCode=this._fragmentCode.replace(c,n),e.matrixSemanticKeys=Object.keys(this.matrixSemantics),this.uniformTemplates=t},_parseDefaultValue:function(t,e){if("vec2"!==t&&"vec3"!==t&&"vec4"!==t)return"bool"===t?function(){return"true"===e.toLowerCase()}:"float"===t?function(){return parseFloat(e)}:"int"===t?function(){return parseInt(e)}:void 0;var n=/\[\s*(.*)\s*\]/.exec(e)[1];if(n){var i=n.split(/\s*,\s*/);return function(){return new r.a.Float32Array(i)}}},_parseAttributes:function(){var t={},e=this;this._vertexCode=this._vertexCode.replace(h,(function(n,i,r,a,o){if(i&&r){var s=1;switch(i){case"vec4":s=4;break;case"vec3":s=3;break;case"vec2":s=2;break;case"float":s=1}if(t[r]={type:"float",size:s,semantic:o||null},o){if(g.indexOf(o)<0)throw new Error('Unkown semantic "'+o+'"');e.attributeSemantics[o]={symbol:r,type:i}}}return["attribute",i,r].join(" ")+";\n"})),this.attributes=t},_parseDefines:function(){var t=this;function e(e,n,i){var r=t.fragmentDefines;return r[n]||(r[n]="false"!=i&&("true"==i||(i?isNaN(parseFloat(i))?i.trim():parseFloat(i):null))),""}this._vertexCode=this._vertexCode.replace(d,e),this._fragmentCode=this._fragmentCode.replace(d,e)},clone:function(){var t=x[this._shaderID];return new b(t.vertex,t.fragment)}},Object.defineProperty&&(Object.defineProperty(b.prototype,"shaderID",{get:function(){return this._shaderID}}),Object.defineProperty(b.prototype,"vertex",{get:function(){return this._vertexCode}}),Object.defineProperty(b.prototype,"fragment",{get:function(){return this._fragmentCode}}),Object.defineProperty(b.prototype,"uniforms",{get:function(){return this._uniformList}}));var _=/(@import)\s*([0-9a-zA-Z_\-\.]*)/g;b.parseImport=function(t){return t=t.replace(_,(function(t,e,n){return(t=b.source(n))?b.parseImport(t):(console.error('Shader chunk "'+n+'" not existed in library'),"")}))};var E=/(@export)\s*([0-9a-zA-Z_\-\.]*)\s*\n([\s\S]*?)@end/g;b.import=function(t){t.replace(E,(function(t,e,n,i){if(i=i.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+\x24)/g,"")){for(var r,a=n.split("."),o=b.codes,s=0;sa[0]&&(a[0]=s),l>a[1]&&(a[1]=l),h>a[2]&&(a[2]=h)}n._dirty=!0,i._dirty=!0}},dirty:function(){for(var t=this.getEnabledAttributes(),e=0;e=0){e||(e=d());var n=this.indices;return e[0]=n[3*t],e[1]=n[3*t+1],e[2]=n[3*t+2],e}},setTriangleIndices:function(t,e){var n=this.indices;n[3*t]=e[0],n[3*t+1]=e[1],n[3*t+2]=e[2]},isUseIndices:function(){return!!this.indices},initIndicesFromArray:function(t){var e,n=this.vertexCount>65535?o.a.Uint32Array:o.a.Uint16Array;if(t[0]&&t[0].length){var i=0;e=new n(3*t.length);for(var r=0;r=0&&(e.splice(n,1),delete this.attributes[t],!0)},getAttribute:function(t){return this.attributes[t]},getEnabledAttributes:function(){var t=this._enabledAttributes,e=this._attributeList;if(t)return t;for(var n=[],i=this.vertexCount,r=0;r65535&&(this.indices=new o.a.Uint32Array(this.indices));for(var t=this.attributes,e=this.indices,n=this.getEnabledAttributes(),i={},r=0;r=n.COLOR_ATTACHMENT0&&a<=n.COLOR_ATTACHMENT0+8&&r.push(a);i.drawBuffersEXT(r)}}this.trigger("beforerender",this,t);var o=this.clearDepth?n.DEPTH_BUFFER_BIT:0;if(n.depthMask(!0),this.clearColor){o|=n.COLOR_BUFFER_BIT,n.colorMask(!0,!0,!0,!0);var s=this.clearColor;Array.isArray(s)&&n.clearColor(s[0],s[1],s[2],s[3])}n.clear(o),this.blendWithPrevious?(n.enable(n.BLEND),this.material.transparent=!0):(n.disable(n.BLEND),this.material.transparent=!1),this.renderQuad(t),this.trigger("afterrender",this,t),e&&this.unbind(t,e)},renderQuad:function(t){d.material=this.material,t.renderPass([d],f)},dispose:function(t){}});e.a=p},function(t,e,n){"use strict";var i,r,a,o,s,l,u=n(4),c=n(1),h=n.n(c).a.vec3,d=h.copy,f=h.set,p=function(t,e){this.min=t||new u.a(1/0,1/0,1/0),this.max=e||new u.a(-1/0,-1/0,-1/0)};p.prototype={constructor:p,updateFromVertices:function(t){if(t.length>0){var e=this.min,n=this.max,i=e.array,r=n.array;d(i,t[0]),d(r,t[0]);for(var a=1;ar[0]&&(r[0]=o[0]),o[1]>r[1]&&(r[1]=o[1]),o[2]>r[2]&&(r[2]=o[2])}e._dirty=!0,n._dirty=!0}},union:function(t){var e=this.min,n=this.max;return h.min(e.array,e.array,t.min.array),h.max(n.array,n.array,t.max.array),e._dirty=!0,n._dirty=!0,this},intersection:function(t){var e=this.min,n=this.max;return h.max(e.array,e.array,t.min.array),h.min(n.array,n.array,t.max.array),e._dirty=!0,n._dirty=!0,this},intersectBoundingBox:function(t){var e=this.min.array,n=this.max.array,i=t.min.array,r=t.max.array;return!(e[0]>r[0]||e[1]>r[1]||e[2]>r[2]||n[0]=r[0]&&n[1]>=r[1]&&n[2]>=r[2]},containPoint:function(t){var e=this.min.array,n=this.max.array,i=t.array;return e[0]<=i[0]&&e[1]<=i[1]&&e[2]<=i[2]&&n[0]>=i[0]&&n[1]>=i[1]&&n[2]>=i[2]},isFinite:function(){var t=this.min.array,e=this.max.array;return isFinite(t[0])&&isFinite(t[1])&&isFinite(t[2])&&isFinite(e[0])&&isFinite(e[1])&&isFinite(e[2])},applyTransform:(i=h.create(),r=h.create(),a=h.create(),o=h.create(),s=h.create(),l=h.create(),function(t){var e=this.min.array,n=this.max.array,u=t.array;return i[0]=u[0]*e[0],i[1]=u[1]*e[0],i[2]=u[2]*e[0],r[0]=u[0]*n[0],r[1]=u[1]*n[0],r[2]=u[2]*n[0],a[0]=u[4]*e[1],a[1]=u[5]*e[1],a[2]=u[6]*e[1],o[0]=u[4]*n[1],o[1]=u[5]*n[1],o[2]=u[6]*n[1],s[0]=u[8]*e[2],s[1]=u[9]*e[2],s[2]=u[10]*e[2],l[0]=u[8]*n[2],l[1]=u[9]*n[2],l[2]=u[10]*n[2],e[0]=Math.min(i[0],r[0])+Math.min(a[0],o[0])+Math.min(s[0],l[0])+u[12],e[1]=Math.min(i[1],r[1])+Math.min(a[1],o[1])+Math.min(s[1],l[1])+u[13],e[2]=Math.min(i[2],r[2])+Math.min(a[2],o[2])+Math.min(s[2],l[2])+u[14],n[0]=Math.max(i[0],r[0])+Math.max(a[0],o[0])+Math.max(s[0],l[0])+u[12],n[1]=Math.max(i[1],r[1])+Math.max(a[1],o[1])+Math.max(s[1],l[1])+u[13],n[2]=Math.max(i[2],r[2])+Math.max(a[2],o[2])+Math.max(s[2],l[2])+u[14],this.min._dirty=!0,this.max._dirty=!0,this}),applyProjection:function(t){var e=this.min.array,n=this.max.array,i=t.array,r=e[0],a=e[1],o=e[2],s=n[0],l=n[1],u=e[2],c=n[0],h=n[1],d=n[2];if(1===i[15])e[0]=i[0]*r+i[12],e[1]=i[5]*a+i[13],n[2]=i[10]*o+i[14],n[0]=i[0]*c+i[12],n[1]=i[5]*h+i[13],e[2]=i[10]*d+i[14];else{var f=-1/o;e[0]=i[0]*r*f,e[1]=i[5]*a*f,n[2]=(i[10]*o+i[14])*f,f=-1/u,n[0]=i[0]*s*f,n[1]=i[5]*l*f,f=-1/d,e[2]=(i[10]*d+i[14])*f}return this.min._dirty=!0,this.max._dirty=!0,this},updateVertices:function(){if(!(t=this.vertices)){for(var t=[],e=0;e<8;e++)t[e]=h.fromValues(0,0,0);this.vertices=t}var n=this.min.array,i=this.max.array;return f(t[0],n[0],n[1],n[2]),f(t[1],n[0],i[1],n[2]),f(t[2],i[0],n[1],n[2]),f(t[3],i[0],i[1],n[2]),f(t[4],n[0],n[1],i[2]),f(t[5],n[0],i[1],i[2]),f(t[6],i[0],n[1],i[2]),f(t[7],i[0],i[1],i[2]),this},copy:function(t){var e=this.min,n=this.max;return d(e.array,t.min.array),d(n.array,t.max.array),e._dirty=!0,n._dirty=!0,this},clone:function(){var t=new p;return t.copy(this),t}},e.a=p},function(t,e,n){"use strict";e.a=function(t,e,n){return{seriesType:t,reset:function(t,e){var n=t.getData(),i=t.visualColorAccessPath.split(".");i[i.length-1]="opacity";var r=t.get(i);return n.setVisual("opacity",null==r?1:r),{dataEach:n.hasItemOption?function(t){var e=n.getItemModel(t).get(i);null!=e&&n.setItemVisual(t,"opacity",e)}:null}}}}},function(t,e,n){"use strict";var i=n(8),r=n(6),a=n(21),o=n(93).a.parseToFloat,s={};function l(t,e,n){var i=Object.keys(t);i.sort();for(var r=[],a=0;a=0},getEnabledUniforms:function(){return this._enabledUniforms},getTextureUniforms:function(){return this._textureUniforms},set:function(t,e){if("object"==typeof t)for(var n in t){var i=t[n];this.setUniform(n,i)}else this.setUniform(t,e)},get:function(t){var e=this.uniforms[t];if(e)return e.value},attachShader:function(t,e){var n=this.uniforms;this.uniforms=t.createUniforms(),this.shader=t;var i=this.uniforms;this._enabledUniforms=Object.keys(i),this._enabledUniforms.sort(),this._textureUniforms=this._enabledUniforms.filter((function(t){var e=this.uniforms[t].type;return"t"===e||"tv"===e}),this);var r=this.vertexDefines,o=this.fragmentDefines;if(this.vertexDefines=a.a.clone(t.vertexDefines),this.fragmentDefines=a.a.clone(t.fragmentDefines),e){for(var s in n)i[s]&&(i[s].value=n[s].value);a.a.defaults(this.vertexDefines,r),a.a.defaults(this.fragmentDefines,o)}var l={};for(var u in t.textures)l[u]={shaderType:t.textures[u].shaderType,type:t.textures[u].type,enabled:!(!e||!this._textureStatus[u])&&this._textureStatus[u].enabled};this._textureStatus=l,this._programKey=""},clone:function(){var t=new this.constructor({name:this.name,shader:this.shader});for(var e in this.uniforms)t.uniforms[e].value=this.uniforms[e].value;return t.depthTest=this.depthTest,t.depthMask=this.depthMask,t.transparent=this.transparent,t.blend=this.blend,t.vertexDefines=a.a.clone(this.vertexDefines),t.fragmentDefines=a.a.clone(this.fragmentDefines),t.enableTexture(this.getEnabledTextures()),t.precision=this.precision,t},define:function(t,e,n){var i=this.vertexDefines,r=this.fragmentDefines;"vertex"!==t&&"fragment"!==t&&"both"!==t&&arguments.length<3&&(n=e,e=t,t="both"),n=null!=n?n:null,"vertex"!==t&&"both"!==t||i[e]!==n&&(i[e]=n,this._programKey=""),"fragment"!==t&&"both"!==t||r[e]!==n&&(r[e]=n,"both"!==t&&(this._programKey=""))},undefine:function(t,e){"vertex"!==t&&"fragment"!==t&&"both"!==t&&arguments.length<2&&(e=t,t="both"),"vertex"!==t&&"both"!==t||this.isDefined("vertex",e)&&(delete this.vertexDefines[e],this._programKey=""),"fragment"!==t&&"both"!==t||this.isDefined("fragment",e)&&(delete this.fragmentDefines[e],"both"!==t&&(this._programKey=""))},isDefined:function(t,e){switch(t){case"vertex":return void 0!==this.vertexDefines[e];case"fragment":return void 0!==this.fragmentDefines[e]}},getDefine:function(t,e){switch(t){case"vertex":return this.vertexDefines[e];case"fragment":return this.fragmentDefines[e]}},enableTexture:function(t){if(Array.isArray(t))for(var e=0;e=n.x&&e>=n.y&&t<=n.x+n.width&&e<=n.y+n.height};var v=new h.a;m.prototype.castRay=function(t,e,n){var i=this.layer.renderer,r=i.viewport;return i.viewport=this.viewport,i.screenToNDC(t,e,v),this.camera.castRay(v,n),i.viewport=r,n},m.prototype.prepareRender=function(){this.scene.update(),this.camera.update(),this._needsSortProgressively=!1;for(var t=0;t30},m.prototype._doRender=function(t,e,n){var i,r=this.scene,a=this.camera;n=n||0,this._updateTransparent(t,r,a,n),e||(this._shadowMapPass.kernelPCF=this._pcfKernels[0],this._shadowMapPass.render(t,r,a,!0)),this._updateShadowPCFKernel(n),t.gl.clearColor(0,0,0,0),this._enablePostEffect&&(this.needsTemporalSS()&&this._temporalSS.jitterProjection(t,a),this._compositor.updateNormal(t,r,a,this._temporalSS.getFrame())),this._updateSSAO(t,r,a,this._temporalSS.getFrame()),this._enablePostEffect?((i=this._compositor.getSourceFrameBuffer()).bind(t),t.gl.clear(t.gl.DEPTH_BUFFER_BIT|t.gl.COLOR_BUFFER_BIT),t.render(r,a,!0,!0),i.unbind(t),this.needsTemporalSS()&&e?(this._compositor.composite(t,a,this._temporalSS.getSourceFrameBuffer(),this._temporalSS.getFrame()),t.setViewport(this.viewport),this._temporalSS.render(t)):(t.setViewport(this.viewport),this._compositor.composite(t,a,null,0))):this.needsTemporalSS()&&e?((i=this._temporalSS.getSourceFrameBuffer()).bind(t),t.saveClear(),t.clearBit=t.gl.DEPTH_BUFFER_BIT|t.gl.COLOR_BUFFER_BIT,t.render(r,a,!0,!0),t.restoreClear(),i.unbind(t),t.setViewport(this.viewport),this._temporalSS.render(t)):(t.setViewport(this.viewport),t.render(r,a,!0,!0))},m.prototype._updateTransparent=function(t,e,n,i){for(var r=new c.a,a=new u.a,o=n.getWorldPosition(),s=0;sthis.camera.far||t65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(t){this.triangleCount!==t&&(this.indices=0===t?null:this.vertexCount>65535?new Uint32Array(3*t):new Uint16Array(3*t))},_getCubicCurveApproxStep:function(t,e,n,i){return 1/(l.dist(t,e)+l.dist(n,e)+l.dist(i,n)+1)*this.segmentScale},getCubicCurveVertexCount:function(t,e,n,i){var r=this._getCubicCurveApproxStep(t,e,n,i),a=Math.ceil(1/r);return this.useNativeLine?2*a:2*a+2},getCubicCurveTriangleCount:function(t,e,n,i){var r=this._getCubicCurveApproxStep(t,e,n,i),a=Math.ceil(1/r);return this.useNativeLine?0:2*a},getLineVertexCount:function(){return this.getPolylineVertexCount(u)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(u)},getPolylineVertexCount:function(t){var e;return e="number"==typeof t?t:"number"!=typeof t[0]?t.length:t.length/3,this.useNativeLine?2*(e-1):2*(e-1)+2},getPolylineTriangleCount:function(t){var e;return e="number"==typeof t?t:"number"!=typeof t[0]?t.length:t.length/3,this.useNativeLine?0:2*Math.max(e-1,0)},addCubicCurve:function(t,e,n,i,r,a){null==a&&(a=1);var o=t[0],s=t[1],l=t[2],u=e[0],c=e[1],h=e[2],d=n[0],f=n[1],p=n[2],g=i[0],m=i[1],v=i[2],y=this._getCubicCurveApproxStep(t,e,n,i),x=y*y,b=x*y,_=3*y,E=3*x,w=6*x,T=6*b,S=o-2*u+d,M=s-2*c+f,C=l-2*h+p,A=3*(u-d)-o+g,O=3*(c-f)-s+m,N=3*(h-p)-l+v,P=o,L=s,R=l,D=(u-o)*_+S*E+A*b,k=(c-s)*_+M*E+O*b,I=(h-l)*_+C*E+N*b,B=S*w+A*T,F=M*w+O*T,z=C*w+N*T,G=A*T,j=O*T,U=N*T,H=0,V=0,Z=Math.ceil(1/y),W=new Float32Array(3*(Z+1)),X=(W=[],0);for(V=0;V1&&(P=D>0?Math.min(P,g):Math.max(P,g),L=k>0?Math.min(L,m):Math.max(L,m),R=I>0?Math.min(R,v):Math.max(R,v));return this.addPolyline(W,r,a)},addLine:function(t,e,n,i){return this.addPolyline([t,e],n,i)},addPolyline:function(t,e,n,i,r){if(t.length){var a="number"!=typeof t[0];if(null==r&&(r=a?t.length:t.length/3),!(r<2)){null==i&&(i=0),null==n&&(n=1),this._itemVertexOffsets.push(this._vertexOffset);var o,s,l=(a="number"!=typeof t[0])?"number"!=typeof e[0]:e.length/4===r,u=this.attributes.position,c=this.attributes.positionPrev,h=this.attributes.positionNext,d=this.attributes.color,f=this.attributes.offset,p=this.indices,g=this._vertexOffset;n=Math.max(n,.01);for(var m=i;m1&&(u.copy(g,g-1),d.copy(g,g-1),g++):(m0&&(h.set(g-2,o),h.set(g-1,o)),u.set(g,o),u.set(g+1,o),d.set(g,s),d.set(g+1,s),f.set(g,n/2),f.set(g+1,-n/2),g+=2),this.useNativeLine)d.set(g,s),u.set(g,o),g++;else if(m>0){var x=3*this._triangleOffset;(p=this.indices)[x]=g-4,p[x+1]=g-3,p[x+2]=g-2,p[x+3]=g-3,p[x+4]=g-1,p[x+5]=g-2,this._triangleOffset+=2}}if(!this.useNativeLine){var b=this._vertexOffset,_=this._vertexOffset+2*r;c.copy(b,b+2),c.copy(b+1,b+3),h.copy(_-1,_-3),h.copy(_-2,_-4)}return this._vertexOffset=g,this._vertexOffset}}},setItemColor:function(t,e){for(var n=this._itemVertexOffsets[t],i=t0)},render:function(t,e,n){var r=t.gl;if(this.skeleton){this.skeleton.update();var a=this.skeleton.getSubSkinMatrices(this.__uid__,this.joints);n.setUniformOfSemantic(r,"SKIN_MATRIX",a)}return i.a.prototype.render.call(this,t,e,n)},getSkinMatricesTexture:function(){return this._skinMatricesTexture=this._skinMatricesTexture||new a.a({type:r.a.FLOAT,minFilter:r.a.NEAREST,magFilter:r.a.NEAREST,useMipmap:!1,flipY:!1}),this._skinMatricesTexture}});o.POINTS=r.a.POINTS,o.LINES=r.a.LINES,o.LINE_LOOP=r.a.LINE_LOOP,o.LINE_STRIP=r.a.LINE_STRIP,o.TRIANGLES=r.a.TRIANGLES,o.TRIANGLE_STRIP=r.a.TRIANGLE_STRIP,o.TRIANGLE_FAN=r.a.TRIANGLE_FAN,o.BACK=r.a.BACK,o.FRONT=r.a.FRONT,o.FRONT_AND_BACK=r.a.FRONT_AND_BACK,o.CW=r.a.CW,o.CCW=r.a.CCW,e.a=o},function(t,e,n){"use strict";var i=n(6),r=n(11),a=n(21),o=n(66).a.isPowerOfTwo,s=["px","nx","py","ny","pz","nz"],l=i.a.extend((function(){return{image:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},pixels:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},mipmaps:[]}}),{update:function(t){var e=t.gl;e.bindTexture(e.TEXTURE_CUBE_MAP,this._cache.get("webgl_texture")),this.updateCommon(t);var n=this.format,i=this.type;e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_WRAP_S,this.getAvailableWrapS()),e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_WRAP_T,this.getAvailableWrapT()),e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MAG_FILTER,this.getAvailableMagFilter()),e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MIN_FILTER,this.getAvailableMinFilter());var a=t.getGLExtension("EXT_texture_filter_anisotropic");if(a&&this.anisotropic>1&&e.texParameterf(e.TEXTURE_CUBE_MAP,a.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),36193===i&&(t.getGLExtension("OES_texture_half_float")||(i=r.a.FLOAT)),this.mipmaps.length)for(var o=this.width,s=this.height,l=0;l0&&console.warn("Found multiple camera in one scene. Use the fist one."),this._cameraList.push(t)),t.name&&(this._nodeRepository[t.name]=t)},removeFromScene:function(t){if(t instanceof a.a){var e=this._cameraList.indexOf(t);e>=0&&this._cameraList.splice(e,1)}t.name&&delete this._nodeRepository[t.name]},getNode:function(t){return this._nodeRepository[t]},cloneNode:function(t){var e=t.clone(),n={},i=function(r,a){r.skeleton&&(a.skeleton=r.skeleton.clone(t,e),a.joints=r.joints.slice()),r.material&&(n[r.material.__uid__]={oldMat:r.material});for(var o=0;o0&&this._updateRenderList(i)}},_updateLightUniforms:function(){var t=this.lights;t.sort(h);var e=this._lightUniforms;for(var n in e)for(var i in e[n])e[n][i].value.length=0;for(var r=0;r0?t[e].value=new Float32Array(t[e].value):t[e].value=null;this.indices&&this.indices.length>0&&(this.indices=this.vertexCount>65535?new Uint32Array(this.indices):new Uint16Array(this.indices)),this.dirty()}}},function(t,e,n){"use strict";var i=n(2),r=n(57),a=n(56),o=n(0),s=n.n(o);function l(){}l.prototype={constructor:l,setScene:function(t){this._scene=t,this._skybox&&this._skybox.attachScene(this._scene)},initLight:function(t){this._lightRoot=t,this.mainLight=new i.a.DirectionalLight({shadowBias:.005}),this.ambientLight=new i.a.AmbientLight,t.add(this.mainLight),t.add(this.ambientLight)},dispose:function(){this._lightRoot&&(this._lightRoot.remove(this.mainLight),this._lightRoot.remove(this.ambientLight))},updateLight:function(t){var e=this.mainLight,n=this.ambientLight,r=t.getModel("light"),a=r.getModel("main"),o=r.getModel("ambient");e.intensity=a.get("intensity"),n.intensity=o.get("intensity"),e.color=i.a.parseColor(a.get("color")).slice(0,3),n.color=i.a.parseColor(o.get("color")).slice(0,3);var s=a.get("alpha")||0,l=a.get("beta")||0;e.position.setArray(i.a.directionFromAlphaBeta(s,l)),e.lookAt(i.a.Vector3.ZERO),e.castShadow=a.get("shadow"),e.shadowResolution=i.a.getShadowResolution(a.get("shadowQuality"))},updateAmbientCubemap:function(t,e,n){var a=e.getModel("light.ambientCubemap"),o=a.get("texture");if(o){this._cubemapLightsCache=this._cubemapLightsCache||{};var s=this._cubemapLightsCache[o];if(!s){var l=this;s=this._cubemapLightsCache[o]=i.a.createAmbientCubemap(a.option,t,n,(function(){l._skybox instanceof r.a&&l._skybox.setEnvironmentMap(s.specular.cubemap),n.getZr().refresh()}))}this._lightRoot.add(s.diffuse),this._lightRoot.add(s.specular),this._currentCubemapLights=s}else this._currentCubemapLights&&(this._lightRoot.remove(this._currentCubemapLights.diffuse),this._lightRoot.remove(this._currentCubemapLights.specular),this._currentCubemapLights=null)},updateSkybox:function(t,e,n){var o=e.get("environment"),l=this;function u(){return l._skybox instanceof a.a||(l._skybox&&l._skybox.dispose(t),l._skybox=new a.a),l._skybox}if(o&&"none"!==o)if("auto"===o)if(this._currentCubemapLights){var c=(l._skybox instanceof r.a||(l._skybox&&l._skybox.dispose(t),l._skybox=new r.a),l._skybox),h=this._currentCubemapLights.specular.cubemap;c.setEnvironmentMap(h),this._scene&&c.attachScene(this._scene),c.material.set("lod",2)}else this._skybox&&this._skybox.detachScene();else if("object"==typeof o&&o.colorStops||"string"==typeof o&&s.a.color.parse(o)){var d=u(),f=new i.a.Texture2D({anisotropic:8,flipY:!1});d.setEnvironmentMap(f);var p=f.image=document.createElement("canvas");p.width=p.height=16;var g=p.getContext("2d");new s.a.graphic.Rect({shape:{x:0,y:0,width:16,height:16},style:{fill:o}}).brush(g),d.attachScene(this._scene)}else d=u(),f=i.a.loadTexture(o,n,{anisotropic:8,flipY:!1}),d.setEnvironmentMap(f),d.attachScene(this._scene);else this._skybox&&this._skybox.detachScene(this._scene),this._skybox=null;var m=e.coordinateSystem;if(this._skybox)if(!m||!m.viewGL||"auto"===o||o.match&&o.match(/.hdr$/))this._skybox.material.undefine("fragment","SRGB_DECODE");else{var v=m.viewGL.isLinearSpace()?"define":"undefine";this._skybox.material[v]("fragment","SRGB_DECODE")}}},e.a=l},function(t,e,n){"use strict";var i=n(0),r=n.n(i);e.a=function(t,e,n){var i=t.getData(),a=t.getRawValue(e),o=r.a.util.isArray(a)?function(t){var a=[],o=function(t,e){var n=[];return r.a.util.each(t.dimensions,(function(i){var r=t.getDimensionInfo(i),a=r.otherDims[e];null!=a&&!1!==a&&(n[a]=r.name)})),n}(i,"tooltip");function s(t,e){var o=i.getDimensionInfo(e);if(o&&!1!==o.otherDims.tooltip){var s=o.type,l="- "+(o.tooltipName||o.name)+": "+("ordinal"===s?t+"":"time"===s?n?"":r.a.format.formatTime("yyyy/MM/dd hh:mm:ss",t):r.a.format.addCommas(t));l&&a.push(r.a.format.encodeHTML(l))}}return o.length?r.a.util.each(o,(function(t){s(i.get(t,e),t)})):r.a.util.each(t,s),"
    "+a.join("
    ")}(a):r.a.format.encodeHTML(r.a.format.addCommas(a)),s=i.getName(e),l=i.getItemVisual(e,"color");r.a.util.isObject(l)&&l.colorStops&&(l=(l.colorStops[0]||{}).color),l=l||"transparent";var u=r.a.format.getTooltipMarker(l),c=t.name;return"\0-"===c&&(c=""),c=c?r.a.format.encodeHTML(c)+(n?": ":"
    "):"",n?u+c+o:c+u+(s?r.a.format.encodeHTML(s)+": "+o:o)}},function(t,e,n){"use strict";var i=n(51),r=i.a.extend({fov:50,aspect:1,near:.1,far:2e3},{updateProjectionMatrix:function(){var t=this.fov/180*Math.PI;this.projectionMatrix.perspective(t,this.aspect,this.near,this.far)},decomposeProjectionMatrix:function(){var t=this.projectionMatrix.array,e=2*Math.atan(1/t[5]);this.fov=e/Math.PI*180,this.aspect=t[5]/t[0],this.near=t[14]/(t[10]-1),this.far=t[14]/(t[10]+1)},clone:function(){var t=i.a.prototype.clone.call(this);return t.fov=this.fov,t.aspect=this.aspect,t.near=this.near,t.far=this.far,t}});e.a=r},function(t,e,n){"use strict";var i=n(13),r=n(15),a=i.a.extend({dynamic:!1,widthSegments:1,heightSegments:1},(function(){this.build()}),{build:function(){for(var t=this.heightSegments,e=this.widthSegments,n=this.attributes,i=[],a=[],o=[],s=[],l=0;l<=t;l++)for(var u=l/t,c=0;c<=e;c++){var h=c/e;if(i.push([2*h-1,2*u-1,0]),a&&a.push([h,u]),o&&o.push([0,0,1]),c0&&this._notFirst?this.animateTo({alpha:c,beta:h,center:d,distance:a,targetOrthographicSize:s,easing:u.animationEasingUpdate,duration:u.animationDurationUpdate}):(this.setDistance(a),this.setAlpha(c),this.setBeta(h),this.setCenter(d),this.setOrthographicSize(s)),this._notFirst=!0,this._validateProperties()},_validateProperties:function(){null==s[this.panMouseButton]&&console.error("Unkown panMouseButton %s. It should be left|middle|right",this.panMouseButton),null==s[this.rotateMouseButton]&&console.error("Unkown rotateMouseButton %s. It should be left|middle|right",this.rotateMouseButton),"cw"!==this.autoRotateDirection&&"ccw"!==this.autoRotateDirection&&console.error("Unkown autoRotateDirection %s. It should be cw|ccw",this.autoRotateDirection)},animateTo:function(t){var e=this.zr,n=this,i={},r={};return null!=t.distance&&(i.distance=this.getDistance(),r.distance=t.distance),null!=t.orthographicSize&&(i.orthographicSize=this.getOrthographicSize(),r.orthographicSize=t.orthographicSize),null!=t.alpha&&(i.alpha=this.getAlpha(),r.alpha=t.alpha),null!=t.beta&&(i.beta=this.getBeta(),r.beta=t.beta),null!=t.center&&(i.center=this.getCenter(),r.center=t.center),this._addAnimator(e.animation.animate(i).when(t.duration||1e3,r).during((function(){null!=i.alpha&&n.setAlpha(i.alpha),null!=i.beta&&n.setBeta(i.beta),null!=i.distance&&n.setDistance(i.distance),null!=i.center&&n.setCenter(i.center),null!=i.orthographicSize&&n.setOrthographicSize(i.orthographicSize),n._needsUpdate=!0}))).start(t.easing||"linear")},stopAllAnimation:function(){for(var t=0;t0},_update:function(t){if(this._rotating){var e=("cw"===this.autoRotateDirection?1:-1)*this.autoRotateSpeed/180*Math.PI;this._phi-=e*t/1e3,this._needsUpdate=!0}else this._rotateVelocity.len()>0&&(this._needsUpdate=!0);(Math.abs(this._zoomSpeed)>.1||this._panVelocity.len()>0)&&(this._needsUpdate=!0),this._needsUpdate&&(t=Math.min(t,50),this._updateDistanceOrSize(t),this._updatePan(t),this._updateRotate(t),this._updateTransform(),this.getCamera().update(),this.zr&&this.zr.refresh(),this.trigger("update"),this._needsUpdate=!1)},_updateRotate:function(t){var e=this._rotateVelocity;this._phi=e.y*t/20+this._phi,this._theta=e.x*t/20+this._theta,this.setAlpha(this.getAlpha()),this.setBeta(this.getBeta()),this._vectorDamping(e,Math.pow(this.damping,t/16))},_updateDistanceOrSize:function(t){"perspective"===this._projection?this._setDistance(this._distance+this._zoomSpeed*t/20):this._setOrthoSize(this._orthoSize+this._zoomSpeed*t/20),this._zoomSpeed*=Math.pow(this.damping,t/16)},_setDistance:function(t){this._distance=Math.max(Math.min(t,this.maxDistance),this.minDistance)},_setOrthoSize:function(t){this._orthoSize=Math.max(Math.min(t,this.maxOrthographicSize),this.minOrthographicSize);var e=this.getCamera(),n=this._orthoSize,i=n/this.viewGL.viewport.height*this.viewGL.viewport.width;e.left=-i/2,e.right=i/2,e.top=n/2,e.bottom=-n/2},_updatePan:function(t){var e=this._panVelocity,n=this._distance,i=this.getCamera(),r=i.worldTransform.y,a=i.worldTransform.x;this._center.scaleAndAdd(a,-e.x*n/200).scaleAndAdd(r,-e.y*n/200),this._vectorDamping(e,0)},_updateTransform:function(){var t=this.getCamera(),e=new a.a,n=this._theta+Math.PI/2,i=this._phi+Math.PI/2,r=Math.sin(n);e.x=r*Math.cos(i),e.y=-Math.cos(n),e.z=r*Math.sin(i),t.position.copy(this._center).scaleAndAdd(e,this._distance),t.rotation.identity().rotateY(-this._phi).rotateX(-this._theta)},_startCountingStill:function(){clearTimeout(this._stillTimeout);var t=this.autoRotateAfterStill,e=this;!isNaN(t)&&t>0&&(this._stillTimeout=setTimeout((function(){e._rotating=!0}),1e3*t))},_vectorDamping:function(t,e){var n=t.len();(n*=e)<1e-4&&(n=0),t.normalize().scale(n)},_decomposeTransform:function(){if(this.getCamera()){this.getCamera().updateWorldTransform();var t=this.getCamera().worldTransform.z,e=Math.asin(t.y),n=Math.atan2(t.x,t.z);this._theta=e,this._phi=-n,this.setBeta(this.getBeta()),this.setAlpha(this.getAlpha()),this.getCamera().aspect?this._setDistance(this.getCamera().position.dist(this._center)):this._setOrthoSize(this.getCamera().top-this.getCamera().bottom)}},_mouseDownHandler:function(t){if(!t.target&&!this._isAnimating()){var e=t.offsetX,n=t.offsetY;this.viewGL&&!this.viewGL.containPoint(e,n)||(this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler),t.event.targetTouches?1===t.event.targetTouches.length&&(this._mode="rotate"):t.event.button===s[this.rotateMouseButton]?this._mode="rotate":t.event.button===s[this.panMouseButton]?this._mode="pan":this._mode="",this._rotateVelocity.set(0,0),this._rotating=!1,this.autoRotate&&this._startCountingStill(),this._mouseX=t.offsetX,this._mouseY=t.offsetY)}},_mouseMoveHandler:function(t){if(!(t.target&&t.target.__isGLToZRProxy||this._isAnimating())){var e=l(this.panSensitivity),n=l(this.rotateSensitivity);"rotate"===this._mode?(this._rotateVelocity.y=(t.offsetX-this._mouseX)/this.zr.getHeight()*2*n[0],this._rotateVelocity.x=(t.offsetY-this._mouseY)/this.zr.getWidth()*2*n[1]):"pan"===this._mode&&(this._panVelocity.x=(t.offsetX-this._mouseX)/this.zr.getWidth()*e[0]*400,this._panVelocity.y=(-t.offsetY+this._mouseY)/this.zr.getHeight()*e[1]*400),this._mouseX=t.offsetX,this._mouseY=t.offsetY,t.event.preventDefault()}},_mouseWheelHandler:function(t){if(!this._isAnimating()){var e=t.event.wheelDelta||-t.event.detail;this._zoomHandler(t,e)}},_pinchHandler:function(t){this._isAnimating()||(this._zoomHandler(t,t.pinchScale>1?1:-1),this._mode="")},_zoomHandler:function(t,e){if(0!==e){var n,i=t.offsetX,r=t.offsetY;this.viewGL&&!this.viewGL.containPoint(i,r)||(n="perspective"===this._projection?Math.max(Math.max(Math.min(this._distance-this.minDistance,this.maxDistance-this._distance))/20,.5):Math.max(Math.max(Math.min(this._orthoSize-this.minOrthographicSize,this.maxOrthographicSize-this._orthoSize))/20,.5),this._zoomSpeed=(e>0?-1:1)*n*this.zoomSensitivity,this._rotating=!1,this.autoRotate&&"rotate"===this._mode&&this._startCountingStill(),t.event.preventDefault())}},_mouseUpHandler:function(){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_isRightMouseButtonUsed:function(){return"right"===this.rotateMouseButton||"right"===this.panMouseButton},_contextMenuHandler:function(t){this._isRightMouseButtonUsed()&&t.preventDefault()},_addAnimator:function(t){var e=this._animators;return e.push(t),t.done((function(){var n=e.indexOf(t);n>=0&&e.splice(n,1)})),t}});Object.defineProperty(u.prototype,"autoRotate",{get:function(t){return this._autoRotate},set:function(t){this._autoRotate=t,this._rotating=t}}),e.a=u},function(t,e,n){"use strict";e.a="@export ecgl.lines3D.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec3 position: POSITION;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(position, 1.0);\n v_Color = a_Color;\n}\n\n@end\n\n@export ecgl.lines3D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n}\n@end\n\n\n\n@export ecgl.lines3D.clipNear\n\nvec4 clipNear(vec4 p1, vec4 p2) {\n float n = (p1.w - near) / (p1.w - p2.w);\n return vec4(mix(p1.xy, p2.xy, n), -near, near);\n}\n\n@end\n\n@export ecgl.lines3D.expandLine\n#ifdef VERTEX_ANIMATION\n vec4 prevProj = worldViewProjection * vec4(mix(prevPositionPrev, positionPrev, percent), 1.0);\n vec4 currProj = worldViewProjection * vec4(mix(prevPosition, position, percent), 1.0);\n vec4 nextProj = worldViewProjection * vec4(mix(prevPositionNext, positionNext, percent), 1.0);\n#else\n vec4 prevProj = worldViewProjection * vec4(positionPrev, 1.0);\n vec4 currProj = worldViewProjection * vec4(position, 1.0);\n vec4 nextProj = worldViewProjection * vec4(positionNext, 1.0);\n#endif\n\n if (currProj.w < 0.0) {\n if (nextProj.w > 0.0) {\n currProj = clipNear(currProj, nextProj);\n }\n else if (prevProj.w > 0.0) {\n currProj = clipNear(currProj, prevProj);\n }\n }\n\n vec2 prevScreen = (prevProj.xy / abs(prevProj.w) + 1.0) * 0.5 * viewport.zw;\n vec2 currScreen = (currProj.xy / abs(currProj.w) + 1.0) * 0.5 * viewport.zw;\n vec2 nextScreen = (nextProj.xy / abs(nextProj.w) + 1.0) * 0.5 * viewport.zw;\n\n vec2 dir;\n float len = offset;\n if (position == positionPrev) {\n dir = normalize(nextScreen - currScreen);\n }\n else if (position == positionNext) {\n dir = normalize(currScreen - prevScreen);\n }\n else {\n vec2 dirA = normalize(currScreen - prevScreen);\n vec2 dirB = normalize(nextScreen - currScreen);\n\n vec2 tanget = normalize(dirA + dirB);\n\n float miter = 1.0 / max(dot(tanget, dirA), 0.5);\n len *= miter;\n dir = tanget;\n }\n\n dir = vec2(-dir.y, dir.x) * len;\n currScreen += dir;\n\n currProj.xy = (currScreen / viewport.zw - 0.5) * 2.0 * abs(currProj.w);\n@end\n\n\n@export ecgl.meshLines3D.vertex\n\nattribute vec3 position: POSITION;\nattribute vec3 positionPrev;\nattribute vec3 positionNext;\nattribute float offset;\nattribute vec4 a_Color : COLOR;\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute vec3 prevPositionPrev;\nattribute vec3 prevPositionNext;\nuniform float percent : 1.0;\n#endif\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\nuniform float near : NEAR;\n\nvarying vec4 v_Color;\n\n@import ecgl.common.wireframe.vertexHeader\n\n@import ecgl.lines3D.clipNear\n\nvoid main()\n{\n @import ecgl.lines3D.expandLine\n\n gl_Position = currProj;\n\n v_Color = a_Color;\n\n @import ecgl.common.wireframe.vertexMain\n}\n@end\n\n\n@export ecgl.meshLines3D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end"},function(t,e,n){var i=n(12),r=n(75),a=n(78).parsePercent,o=n(149),s=i.each,l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function c(t,e,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var m=f.width+(g?-g.x+f.x:0);(c=a+m)>i||l.newline?(a=0,c=m,o+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);(h=o+v)>r||l.newline?(a+=s+n,o=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===t?a=c+n:o=h+n)}))}var h=c,d=i.curry(c,"vertical"),f=i.curry(c,"horizontal");function p(t,e,n){n=o.normalizeCssArray(n||0);var i=e.width,s=e.height,l=a(t.left,i),u=a(t.top,s),c=a(t.right,i),h=a(t.bottom,s),d=a(t.width,i),f=a(t.height,s),p=n[2]+n[0],g=n[1]+n[3],m=t.aspect;switch(isNaN(d)&&(d=i-c-g-l),isNaN(f)&&(f=s-h-p-u),null!=m&&(isNaN(d)&&isNaN(f)&&(m>i/s?d=.8*i:f=.8*s),isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(l)&&(l=i-c-d-g),isNaN(u)&&(u=s-h-f-p),t.left||t.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-g}switch(t.top||t.bottom){case"middle":case"center":u=s/2-f/2-n[0];break;case"bottom":u=s-f-p}l=l||0,u=u||0,isNaN(d)&&(d=i-g-l-(c||0)),isNaN(f)&&(f=s-p-u-(h||0));var v=new r(l+n[3],u+n[0],d,f);return v.margin=n,v}function g(t,e){return e&&t&&s(l,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}e.LOCATION_PARAMS=l,e.HV_NAMES=u,e.box=h,e.vbox=d,e.hbox=f,e.getAvailableSize=function(t,e,n){var i=e.width,r=e.height,s=a(t.x,i),l=a(t.y,r),u=a(t.x2,i),c=a(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=i),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),n=o.normalizeCssArray(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}},e.getLayoutRect=p,e.positionElement=function(t,e,n,a,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],u=o&&o.boundingMode||"all";if(s||l){var c;if("raw"===u)c="group"===t.type?new r(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(c=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(c=c.clone()).applyTransform(h)}e=p(i.defaults({width:c.width,height:c.height},e),n,a);var d=t.position,f=s?e.x-c.x:0,g=l?e.y-c.y:0;t.attr("position","raw"===u?[f,g]:[d[0]+f,d[1]+g])}},e.sizeCalculable=function(t,e){return null!=t[u[e][0]]||null!=t[u[e][1]]&&null!=t[u[e][2]]},e.mergeLayoutParam=function(t,e,n){!i.isObject(n)&&(n={});var r=n.ignoreSize;!i.isArray(r)&&(r=[r,r]);var a=l(u[0],0),o=l(u[1],1);function l(n,i){var a={},o=0,l={},u=0;if(s(n,(function(e){l[e]=t[e]})),s(n,(function(t){c(e,t)&&(a[t]=l[t]=e[t]),h(a,t)&&o++,h(l,t)&&u++})),r[i])return h(e,n[1])?l[n[2]]=null:h(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&o){if(o>=2)return a;for(var d=0;d0&&(this.outputs[t].keepLastFrame?(this._prevOutputTextures[t]&&this._compositor.releaseTexture(this._prevOutputTextures[t]),this._prevOutputTextures[t]=this._outputTextures[t]):this._compositor.releaseTexture(this._outputTextures[t]))}});e.a=i},function(t,e,n){"use strict";e.a=function(t,e){for(var n=0,i=1/e,r=t;r>0;)n+=i*(r%e),r=Math.floor(r/e),i/=e;return n}},function(t,e,n){"use strict";var i=n(0),r=n.n(i);e.a=function(t,e,n){n=n||t.getSource();var i=e||r.a.getCoordinateSystemDimensions(t.get("coordinateSystem"))||["x","y","z"],a=r.a.helper.createDimensions(n,{dimensionsDefine:n.dimensionsDefine||t.get("dimensions"),encodeDefine:n.encodeDefine||t.get("encode"),coordDimensions:i.map((function(e){var n=t.getReferringComponents(e+"Axis3D")[0];return{type:n&&"category"===n.get("type")?"ordinal":"float",name:e,stackable:"z"===e}}))});"cartesian3D"===t.get("coordinateSystem")&&a.forEach((function(e){if(i.indexOf(e.coordDim)>=0){var n=t.getReferringComponents(e.coordDim+"Axis3D")[0];n&&"category"===n.get("type")&&(e.ordinalMeta=n.getOrdinalMeta())}}));var o=new r.a.List(a,t);return o.initData(n),o}},function(t,e){t.exports=function(t,e,n){return{seriesType:t,performRawSeries:!0,reset:function(t,i,r){var a=t.getData(),o=t.get("symbol")||e,s=t.get("symbolSize");if(a.setVisual({legendSymbol:n||o,symbol:o,symbolSize:s}),!i.isSeriesFiltered(t)){var l="function"==typeof s;return{dataEach:a.hasItemOption||l?function(e,n){if("function"==typeof s){var i=t.getRawValue(n),r=t.getDataParams(n);e.setItemVisual(n,"symbolSize",s(i,r))}if(e.hasItemOption){var a=e.getItemModel(n),o=a.getShallow("symbol",!0),l=a.getShallow("symbolSize",!0);null!=o&&e.setItemVisual(n,"symbol",o),null!=l&&e.setItemVisual(n,"symbolSize",l)}}:null}}}}}},function(t,e,n){"use strict";var i=n(8),r=n(92),a=n(11),o=(n(18),n(15)),s=n(9),l=n(17),u=n(23),c=n(96),h=n(7),d=n(98),f=n(63),p=n(1),g=n.n(p);h.a.import(d.a),h.a.import(f.a);var m=g.a.mat4,v=g.a.vec3,y=m.create,x={};function b(t){return t.material}function _(){}var E,w,T=i.a.extend((function(){return{canvas:null,_width:100,_height:100,devicePixelRatio:window.devicePixelRatio||1,clearColor:[0,0,0,0],clearBit:17664,alpha:!0,depth:!0,stencil:!1,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!1,throwError:!0,gl:null,viewport:{},__currentFrameBuffer:null,_viewportStack:[],_clearStack:[],_sceneRendering:null}}),(function(){this.canvas||(this.canvas=document.createElement("canvas"));var t=this.canvas;try{var e={alpha:this.alpha,depth:this.depth,stencil:this.stencil,antialias:this.antialias,premultipliedAlpha:this.premultipliedAlpha,preserveDrawingBuffer:this.preserveDrawingBuffer};if(this.gl=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),!this.gl)throw new Error;this._glinfo=new r.a(this.gl),this.gl.targetRenderer&&console.error("Already created a renderer"),this.gl.targetRenderer=this,this.resize()}catch(t){throw"Error creating WebGL Context "+t}this._programMgr=new c.a(this)}),{resize:function(t,e){var n=this.canvas,i=this.devicePixelRatio;null!=t?(n.style.width=t+"px",n.style.height=e+"px",n.width=t*i,n.height=e*i,this._width=t,this._height=e):(this._width=n.width/i,this._height=n.height/i),this.setViewport(0,0,this._width,this._height)},getWidth:function(){return this._width},getHeight:function(){return this._height},getViewportAspect:function(){var t=this.viewport;return t.width/t.height},setDevicePixelRatio:function(t){this.devicePixelRatio=t,this.resize(this._width,this._height)},getDevicePixelRatio:function(){return this.devicePixelRatio},getGLExtension:function(t){return this._glinfo.getExtension(t)},getGLParameter:function(t){return this._glinfo.getParameter(t)},setViewport:function(t,e,n,i,r){if("object"==typeof t){var a=t;t=a.x,e=a.y,n=a.width,i=a.height,r=a.devicePixelRatio}r=r||this.devicePixelRatio,this.gl.viewport(t*r,e*r,n*r,i*r),this.viewport={x:t,y:e,width:n,height:i,devicePixelRatio:r}},saveViewport:function(){this._viewportStack.push(this.viewport)},restoreViewport:function(){this._viewportStack.length>0&&this.setViewport(this._viewportStack.pop())},saveClear:function(){this._clearStack.push({clearBit:this.clearBit,clearColor:this.clearColor})},restoreClear:function(){if(this._clearStack.length>0){var t=this._clearStack.pop();this.clearColor=t.clearColor,this.clearBit=t.clearBit}},bindSceneRendering:function(t){this._sceneRendering=t},render:function(t,e,n,i){var r=this.gl,a=this.clearColor;if(this.clearBit){r.colorMask(!0,!0,!0,!0),r.depthMask(!0);var o=this.viewport,s=!1,l=o.devicePixelRatio;(o.width!==this._width||o.height!==this._height||l&&l!==this.devicePixelRatio||o.x||o.y)&&(s=!0,r.enable(r.SCISSOR_TEST),r.scissor(o.x*l,o.y*l,o.width*l,o.height*l)),r.clearColor(a[0],a[1],a[2],a[3]),r.clear(this.clearBit),s&&r.disable(r.SCISSOR_TEST)}if(n||t.update(!1),e=e||t.getMainCamera()){e.getScene()||e.update(!0),this._sceneRendering=t,t.viewBoundingBoxLastFrame.min.set(1/0,1/0,1/0),t.viewBoundingBoxLastFrame.max.set(-1/0,-1/0,-1/0);var u=this.cullRenderList(t.opaqueList,t,e),c=this.cullRenderList(t.transparentList,t,e),h=t.material;t.trigger("beforerender",this,t,e),i?(this.renderPreZ(u,t,e),r.depthFunc(r.LEQUAL)):r.depthFunc(r.LESS);for(var d=y(),f=v.create(),p=0;p0){var s=t[r-1],l=s.joints?s.joints.length:0;if((a.joints.length?a.joints.length:0)===l&&a.material===s.material&&a.lightGroup===s.lightGroup){a.__program=s.__program;continue}}var u=this._programMgr.getProgram(a,o,e);this.validateProgram(u),a.__program=u}},cullRenderList:function(t,e,n){for(var i=[],r=0;r0&&E.min.array[2]<0&&(E.max.array[2]=-1e-20),E.applyProjection(w);var o=E.min.array,s=E.max.array;if(s[0]<-1||o[0]>1||s[1]<-1||o[1]>1||s[2]<-1||o[2]>1)return!0}return!1}),disposeScene:function(t){this.disposeNode(t,!0,!0),t.dispose()},disposeNode:function(t,e,n){t.getParent()&&t.getParent().remove(t),t.traverse((function(t){t.geometry&&e&&t.geometry.dispose(this),t.dispose&&t.dispose(this)}),this)},disposeGeometry:function(t){t.dispose(this)},disposeTexture:function(t){t.dispose(this)},disposeFrameBuffer:function(t){t.dispose(this)},dispose:function(){},screenToNDC:function(t,e,n){n||(n=new u.a),e=this._height-e;var i=this.viewport,r=n.array;return r[0]=(t-i.x)/i.width,r[0]=2*r[0]-1,r[1]=(e-i.y)/i.height,r[1]=2*r[1]-1,n}});T.opaqueSortCompare=T.prototype.opaqueSortCompare=function(t,e){return t.renderOrder===e.renderOrder?t.__program===e.__program?t.material===e.material?t.geometry.__uid__-e.geometry.__uid__:t.material.__uid__-e.material.__uid__:t.__program&&e.__program?t.__program.__uid__-e.__program.__uid__:0:t.renderOrder-e.renderOrder},T.transparentSortCompare=T.prototype.transparentSortCompare=function(t,e){return t.renderOrder===e.renderOrder?t.__depth===e.__depth?t.__program===e.__program?t.material===e.material?t.geometry.__uid__-e.geometry.__uid__:t.material.__uid__-e.material.__uid__:t.__program&&e.__program?t.__program.__uid__-e.__program.__uid__:0:t.__depth-e.__depth:t.renderOrder-e.renderOrder};var S={IDENTITY:y(),WORLD:y(),VIEW:y(),PROJECTION:y(),WORLDVIEW:y(),VIEWPROJECTION:y(),WORLDVIEWPROJECTION:y(),WORLDINVERSE:y(),VIEWINVERSE:y(),PROJECTIONINVERSE:y(),WORLDVIEWINVERSE:y(),VIEWPROJECTIONINVERSE:y(),WORLDVIEWPROJECTIONINVERSE:y(),WORLDTRANSPOSE:y(),VIEWTRANSPOSE:y(),PROJECTIONTRANSPOSE:y(),WORLDVIEWTRANSPOSE:y(),VIEWPROJECTIONTRANSPOSE:y(),WORLDVIEWPROJECTIONTRANSPOSE:y(),WORLDINVERSETRANSPOSE:y(),VIEWINVERSETRANSPOSE:y(),PROJECTIONINVERSETRANSPOSE:y(),WORLDVIEWINVERSETRANSPOSE:y(),VIEWPROJECTIONINVERSETRANSPOSE:y(),WORLDVIEWPROJECTIONINVERSETRANSPOSE:y()};T.COLOR_BUFFER_BIT=a.a.COLOR_BUFFER_BIT,T.DEPTH_BUFFER_BIT=a.a.DEPTH_BUFFER_BIT,T.STENCIL_BUFFER_BIT=a.a.STENCIL_BUFFER_BIT,e.a=T},function(t,e,n){"use strict";function i(t,e){this.action=t,this.context=e}var r={trigger:function(t){if(this.hasOwnProperty("__handlers__")&&this.__handlers__.hasOwnProperty(t)){var e=this.__handlers__[t],n=e.length,i=-1,r=arguments;switch(r.length){case 1:for(;++iu)){var h=Math.sqrt(u-s),d=o-h,f=o+h;return i||(i=new l.a),d<0?f<0?null:(c.scaleAndAdd(i.array,r,a,f),i):(c.scaleAndAdd(i.array,r,a,d),i)}}}(),intersectBoundingBox:function(t,e){var n,i,r,a,o,s,u=this.direction.array,h=this.origin.array,d=t.min.array,f=t.max.array,p=1/u[0],g=1/u[1],m=1/u[2];if(p>=0?(n=(d[0]-h[0])*p,i=(f[0]-h[0])*p):(i=(d[0]-h[0])*p,n=(f[0]-h[0])*p),g>=0?(r=(d[1]-h[1])*g,a=(f[1]-h[1])*g):(a=(d[1]-h[1])*g,r=(f[1]-h[1])*g),n>a||r>i)return null;if((r>n||n!=n)&&(n=r),(a=0?(o=(d[2]-h[2])*m,s=(f[2]-h[2])*m):(s=(d[2]-h[2])*m,o=(f[2]-h[2])*m),n>s||o>i)return null;if((o>n||n!=n)&&(n=o),(s=0?n:i;return e||(e=new l.a),c.scaleAndAdd(e.array,h,u,v),e},intersectTriangle:(i=c.create(),r=c.create(),a=c.create(),o=c.create(),function(t,e,n,s,u,d){var f=this.direction.array,p=this.origin.array;t=t.array,e=e.array,n=n.array,c.sub(i,e,t),c.sub(r,n,t),c.cross(o,r,f);var g=c.dot(i,o);if(s){if(g>-1e-5)return null}else if(g>-1e-5&&g1)return null;c.cross(o,i,a);var v=c.dot(f,o)/g;if(v<0||v>1||m+v>1)return null;c.cross(o,i,r);var y=-c.dot(a,o)/g;return y<0?null:(u||(u=new l.a),d&&l.a.set(d,1-m-v,m,v),c.scaleAndAdd(u.array,p,f,y),u)}),applyTransform:function(t){l.a.add(this.direction,this.direction,this.origin),l.a.transformMat4(this.origin,this.origin,t),l.a.transformMat4(this.direction,this.direction,t),l.a.sub(this.direction,this.direction,this.origin),l.a.normalize(this.direction,this.direction)},copy:function(t){l.a.copy(this.origin,t.origin),l.a.copy(this.direction,t.direction)},clone:function(){var t=new d;return t.copy(this),t}},e.a=d},function(t,e,n){"use strict";var i,r,a=n(1),o=n.n(a),s=o.a.quat,l=function(t,e,n,i){t=t||0,e=e||0,n=n||0,i=void 0===i?1:i,this.array=s.fromValues(t,e,n,i),this._dirty=!0};l.prototype={constructor:l,add:function(t){return s.add(this.array,this.array,t.array),this._dirty=!0,this},calculateW:function(){return s.calculateW(this.array,this.array),this._dirty=!0,this},set:function(t,e,n,i){return this.array[0]=t,this.array[1]=e,this.array[2]=n,this.array[3]=i,this._dirty=!0,this},setArray:function(t){return this.array[0]=t[0],this.array[1]=t[1],this.array[2]=t[2],this.array[3]=t[3],this._dirty=!0,this},clone:function(){return new l(this.x,this.y,this.z,this.w)},conjugate:function(){return s.conjugate(this.array,this.array),this._dirty=!0,this},copy:function(t){return s.copy(this.array,t.array),this._dirty=!0,this},dot:function(t){return s.dot(this.array,t.array)},fromMat3:function(t){return s.fromMat3(this.array,t.array),this._dirty=!0,this},fromMat4:(i=o.a.mat3,r=i.create(),function(t){return i.fromMat4(r,t.array),i.transpose(r,r),s.fromMat3(this.array,r),this._dirty=!0,this}),identity:function(){return s.identity(this.array),this._dirty=!0,this},invert:function(){return s.invert(this.array,this.array),this._dirty=!0,this},len:function(){return s.len(this.array)},length:function(){return s.length(this.array)},lerp:function(t,e,n){return s.lerp(this.array,t.array,e.array,n),this._dirty=!0,this},mul:function(t){return s.mul(this.array,this.array,t.array),this._dirty=!0,this},mulLeft:function(t){return s.multiply(this.array,t.array,this.array),this._dirty=!0,this},multiply:function(t){return s.multiply(this.array,this.array,t.array),this._dirty=!0,this},multiplyLeft:function(t){return s.multiply(this.array,t.array,this.array),this._dirty=!0,this},normalize:function(){return s.normalize(this.array,this.array),this._dirty=!0,this},rotateX:function(t){return s.rotateX(this.array,this.array,t),this._dirty=!0,this},rotateY:function(t){return s.rotateY(this.array,this.array,t),this._dirty=!0,this},rotateZ:function(t){return s.rotateZ(this.array,this.array,t),this._dirty=!0,this},rotationTo:function(t,e){return s.rotationTo(this.array,t.array,e.array),this._dirty=!0,this},setAxes:function(t,e,n){return s.setAxes(this.array,t.array,e.array,n.array),this._dirty=!0,this},setAxisAngle:function(t,e){return s.setAxisAngle(this.array,t.array,e),this._dirty=!0,this},slerp:function(t,e,n){return s.slerp(this.array,t.array,e.array,n),this._dirty=!0,this},sqrLen:function(){return s.sqrLen(this.array)},squaredLength:function(){return s.squaredLength(this.array)},fromEuler:function(t,e){return l.fromEuler(this,t,e)},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var u=Object.defineProperty;if(u){var c=l.prototype;u(c,"x",{get:function(){return this.array[0]},set:function(t){this.array[0]=t,this._dirty=!0}}),u(c,"y",{get:function(){return this.array[1]},set:function(t){this.array[1]=t,this._dirty=!0}}),u(c,"z",{get:function(){return this.array[2]},set:function(t){this.array[2]=t,this._dirty=!0}}),u(c,"w",{get:function(){return this.array[3]},set:function(t){this.array[3]=t,this._dirty=!0}})}l.add=function(t,e,n){return s.add(t.array,e.array,n.array),t._dirty=!0,t},l.set=function(t,e,n,i,r){s.set(t.array,e,n,i,r),t._dirty=!0},l.copy=function(t,e){return s.copy(t.array,e.array),t._dirty=!0,t},l.calculateW=function(t,e){return s.calculateW(t.array,e.array),t._dirty=!0,t},l.conjugate=function(t,e){return s.conjugate(t.array,e.array),t._dirty=!0,t},l.identity=function(t){return s.identity(t.array),t._dirty=!0,t},l.invert=function(t,e){return s.invert(t.array,e.array),t._dirty=!0,t},l.dot=function(t,e){return s.dot(t.array,e.array)},l.len=function(t){return s.length(t.array)},l.lerp=function(t,e,n,i){return s.lerp(t.array,e.array,n.array,i),t._dirty=!0,t},l.slerp=function(t,e,n,i){return s.slerp(t.array,e.array,n.array,i),t._dirty=!0,t},l.multiply=l.mul=function(t,e,n){return s.multiply(t.array,e.array,n.array),t._dirty=!0,t},l.rotateX=function(t,e,n){return s.rotateX(t.array,e.array,n),t._dirty=!0,t},l.rotateY=function(t,e,n){return s.rotateY(t.array,e.array,n),t._dirty=!0,t},l.rotateZ=function(t,e,n){return s.rotateZ(t.array,e.array,n),t._dirty=!0,t},l.setAxisAngle=function(t,e,n){return s.setAxisAngle(t.array,e.array,n),t._dirty=!0,t},l.normalize=function(t,e){return s.normalize(t.array,e.array),t._dirty=!0,t},l.squaredLength=l.sqrLen=function(t){return s.sqrLen(t.array)},l.fromMat3=function(t,e){return s.fromMat3(t.array,e.array),t._dirty=!0,t},l.setAxes=function(t,e,n,i){return s.setAxes(t.array,e.array,n.array,i.array),t._dirty=!0,t},l.rotationTo=function(t,e,n){return s.rotationTo(t.array,e.array,n.array),t._dirty=!0,t},l.fromEuler=function(t,e,n){t._dirty=!0,e=e.array;var i=t.array,r=Math.cos(e[0]/2),a=Math.cos(e[1]/2),o=Math.cos(e[2]/2),s=Math.sin(e[0]/2),l=Math.sin(e[1]/2),u=Math.sin(e[2]/2);switch(n=(n||"XYZ").toUpperCase()){case"XYZ":i[0]=s*a*o+r*l*u,i[1]=r*l*o-s*a*u,i[2]=r*a*u+s*l*o,i[3]=r*a*o-s*l*u;break;case"YXZ":i[0]=s*a*o+r*l*u,i[1]=r*l*o-s*a*u,i[2]=r*a*u-s*l*o,i[3]=r*a*o+s*l*u;break;case"ZXY":i[0]=s*a*o-r*l*u,i[1]=r*l*o+s*a*u,i[2]=r*a*u+s*l*o,i[3]=r*a*o-s*l*u;break;case"ZYX":i[0]=s*a*o-r*l*u,i[1]=r*l*o+s*a*u,i[2]=r*a*u-s*l*o,i[3]=r*a*o+s*l*u;break;case"YZX":i[0]=s*a*o+r*l*u,i[1]=r*l*o+s*a*u,i[2]=r*a*u-s*l*o,i[3]=r*a*o-s*l*u;break;case"XZY":i[0]=s*a*o-r*l*u,i[1]=r*l*o-s*a*u,i[2]=r*a*u+s*l*o,i[3]=r*a*o+s*l*u}},e.a=l},function(t,e,n){"use strict";var i,r=n(28),a=n(9),o=n(52),s=n(49),l=n(1),u=n.n(l),c=u.a.vec3,h=u.a.vec4,d=r.a.extend((function(){return{projectionMatrix:new a.a,invProjectionMatrix:new a.a,viewMatrix:new a.a,frustum:new o.a}}),(function(){this.update(!0)}),{update:function(t){r.a.prototype.update.call(this,t),a.a.invert(this.viewMatrix,this.worldTransform),this.updateProjectionMatrix(),a.a.invert(this.invProjectionMatrix,this.projectionMatrix),this.frustum.setFromProjection(this.projectionMatrix)},setViewMatrix:function(t){a.a.copy(this.viewMatrix,t),a.a.invert(this.worldTransform,t),this.decomposeWorldTransform()},decomposeProjectionMatrix:function(){},setProjectionMatrix:function(t){a.a.copy(this.projectionMatrix,t),a.a.invert(this.invProjectionMatrix,t),this.decomposeProjectionMatrix()},updateProjectionMatrix:function(){},castRay:(i=h.create(),function(t,e){var n=void 0!==e?e:new s.a,r=t.array[0],a=t.array[1];return h.set(i,r,a,-1,1),h.transformMat4(i,i,this.invProjectionMatrix.array),h.transformMat4(i,i,this.worldTransform.array),c.scale(n.origin.array,i,1/i[3]),h.set(i,r,a,1,1),h.transformMat4(i,i,this.invProjectionMatrix.array),h.transformMat4(i,i,this.worldTransform.array),c.scale(i,i,1/i[3]),c.sub(n.direction.array,i,n.origin.array),c.normalize(n.direction.array,n.direction.array),n.direction._dirty=!0,n.origin._dirty=!0,n})});e.a=d},function(t,e,n){"use strict";n(4);var i,r=n(15),a=n(67),o=n(1),s=n.n(o).a.vec3,l=s.set,u=s.copy,c=s.transformMat4,h=Math.min,d=Math.max,f=function(){this.planes=[];for(var t=0;t<6;t++)this.planes.push(new a.a);for(this.boundingBox=new r.a,this.vertices=[],t=0;t<8;t++)this.vertices[t]=s.fromValues(0,0,0)};f.prototype={setFromProjection:function(t){var e=this.planes,n=t.array,i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],u=n[5],c=n[6],h=n[7],d=n[8],f=n[9],p=n[10],g=n[11],m=n[12],v=n[13],y=n[14],x=n[15];l(e[0].normal.array,o-i,h-s,g-d),e[0].distance=-(x-m),e[0].normalize(),l(e[1].normal.array,o+i,h+s,g+d),e[1].distance=-(x+m),e[1].normalize(),l(e[2].normal.array,o+r,h+u,g+f),e[2].distance=-(x+v),e[2].normalize(),l(e[3].normal.array,o-r,h-u,g-f),e[3].distance=-(x-v),e[3].normalize(),l(e[4].normal.array,o-a,h-c,g-p),e[4].distance=-(x-y),e[4].normalize(),l(e[5].normal.array,o+a,h+c,g+p),e[5].distance=-(x+y),e[5].normalize();var b=this.boundingBox;if(0===x){var _=u/i,E=-y/(p-1),w=-y/(p+1),T=-w/u,S=-E/u;b.min.set(-T*_,-T,w),b.max.set(T*_,T,E);var M=this.vertices;l(M[0],-T*_,-T,w),l(M[1],-T*_,T,w),l(M[2],T*_,-T,w),l(M[3],T*_,T,w),l(M[4],-S*_,-S,E),l(M[5],-S*_,S,E),l(M[6],S*_,-S,E),l(M[7],S*_,S,E)}else{var C=(-1-m)/i,A=(1-m)/i,O=(1-v)/u,N=(-1-v)/u,P=(-1-y)/p,L=(1-y)/p;b.min.set(Math.min(C,A),Math.min(N,O),Math.min(L,P)),b.max.set(Math.max(A,C),Math.max(O,N),Math.max(P,L));var R=b.min.array,D=b.max.array;M=this.vertices,l(M[0],R[0],R[1],R[2]),l(M[1],R[0],D[1],R[2]),l(M[2],D[0],R[1],R[2]),l(M[3],D[0],D[1],R[2]),l(M[4],R[0],R[1],D[2]),l(M[5],R[0],D[1],D[2]),l(M[6],D[0],R[1],D[2]),l(M[7],D[0],D[1],D[2])}},getTransformedBoundingBox:(i=s.create(),function(t,e){var n=this.vertices,r=e.array,a=t.min,o=t.max,s=a.array,l=o.array,f=n[0];c(i,f,r),u(s,i),u(l,i);for(var p=1;p<8;p++)f=n[p],c(i,f,r),s[0]=h(i[0],s[0]),s[1]=h(i[1],s[1]),s[2]=h(i[2],s[2]),l[0]=d(i[0],l[0]),l[1]=d(i[1],l[1]),l[2]=d(i[2],l[2]);return a._dirty=!0,o._dirty=!0,t})},e.a=f},function(t,e){var n=function(){this.head=null,this.tail=null,this._len=0},i=n.prototype;i.insert=function(t){var e=new r(t);return this.insertEntry(e),e},i.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},i.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},i.len=function(){return this._len},i.clear=function(){this.head=this.tail=null,this._len=0};var r=function(t){this.value=t,this.next,this.prev},a=function(t){this._list=new n,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},o=a.prototype;o.put=function(t,e){var n=this._list,i=this._map,a=null;if(null==i[t]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return a},o.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},o.clear=function(){this._list.clear(),this._map={}};var s=a;t.exports=s},function(t,e,n){"use strict";var i=n(5),r=n(25),a=n(102),o=n(55),s=n(56),l=n(29),u=n(104),c=n(105),h={loadTexture:function(t,e,n,a){if("function"==typeof e?(a=n=e,e={}):e=e||{},"string"==typeof t){if(t.match(/.hdr$/)||"hdr"===e.fileType)return o=new i.a({width:0,height:0,sRGB:!1}),h._fetchTexture(t,(function(t){c.a.parseRGBE(t,o,e.exposure),o.dirty(),n&&n(o)}),a),o;t.match(/.dds$/)||"dds"===e.fileType?(o=new i.a({width:0,height:0}),h._fetchTexture(t,(function(t){u.a.parse(t,o),o.dirty(),n&&n(o)}),a)):((o=new i.a).load(t),o.success(n),o.error(a))}else if("object"==typeof t&&void 0!==t.px){var o;(o=new r.a).load(t),o.success(n),o.error(a)}return o},loadPanorama:function(t,e,n,i,r,a){var o=this;"function"==typeof i?(a=r=i,i={}):i=i||{},h.loadTexture(e,i,(function(e){e.flipY=i.flipY||!1,o.panoramaToCubeMap(t,e,n,i),e.dispose(t),r&&r(n)}),a)},panoramaToCubeMap:function(t,e,n,i){var r=new o.a,a=new s.a({scene:new l.a});return a.material.set("diffuseMap",e),(i=i||{}).encodeRGBM&&a.material.define("fragment","RGBM_ENCODE"),n.sRGB=e.sRGB,r.texture=n,r.render(t,a.scene),r.texture=null,r.dispose(t),n},heightToNormal:function(t,e){var n=document.createElement("canvas"),i=n.width=t.width,r=n.height=t.height,a=n.getContext("2d");a.drawImage(t,0,0,i,r),e=e||!1;for(var o=a.getImageData(0,0,i,r),s=a.createImageData(i,r),l=0;l20)return console.warn("Given image is not a height map"),t}var d,f,p,g;l%(4*i)==0?(d=o.data[l],p=o.data[l+4]):l%(4*i)==4*(i-1)?(d=o.data[l-4],p=o.data[l]):(d=o.data[l-4],p=o.data[l+4]),l<4*i?(f=o.data[l],g=o.data[l+4*i]):l>i*(r-1)*4?(f=o.data[l-4*i],g=o.data[l]):(f=o.data[l-4*i],g=o.data[l+4*i]),s.data[l]=d-p+127,s.data[l+1]=f-g+127,s.data[l+2]=255,s.data[l+3]=255}return a.putImageData(s,0,0),n},isHeightImage:function(t,e,n){if(!t||!t.width||!t.height)return!1;var i=document.createElement("canvas"),r=i.getContext("2d"),a=e||32;n=n||20,i.width=i.height=a,r.drawImage(t,0,0,a,a);for(var o=r.getImageData(0,0,a,a),s=0;sn)return!1}return!0},_fetchTexture:function(t,e,n){a.a.get({url:t,responseType:"arraybuffer",onload:e,onerror:n})},createChessboard:function(t,e,n,r){t=t||512,e=e||64,n=n||"black",r=r||"white";var a=Math.ceil(t/e),o=document.createElement("canvas");o.width=t,o.height=t;var s=o.getContext("2d");s.fillStyle=r,s.fillRect(0,0,t,t),s.fillStyle=n;for(var l=0;l0?this.material.define("fragment","LOD"):this.material.undefine("fragment","LOD"),t.renderPass([this],e)}});e.a=l},function(t,e,n){"use strict";var i=n(2),r=n(143),a=n(144);i.a.Shader.import(a.a),e.a=i.a.Mesh.extend((function(){return{geometry:new r.a({dynamic:!0}),material:new i.a.Material({shader:i.a.createShader("ecgl.labels"),transparent:!0,depthMask:!1}),culling:!1,castShadow:!1,ignorePicking:!0}}))},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(2),o=n(186),s=n(22),l=n(3),u=n(1),c=n.n(u),h=n(60),d=n(61),f=n(40),p=c.a.vec3;function g(t){this.rootNode=new a.a.Node,this._triangulationResults={},this._shadersMap=a.a.COMMON_SHADERS.reduce((function(t,e){return t[e]=a.a.createShader("ecgl."+e),t}),{}),this._linesShader=a.a.createShader("ecgl.meshLines3D");var e={};a.a.COMMON_SHADERS.forEach((function(t){e[t]=new a.a.Material({shader:a.a.createShader("ecgl."+t)})})),this._groundMaterials=e,this._groundMesh=new a.a.Mesh({geometry:new a.a.PlaneGeometry({dynamic:!0}),castShadow:!1,renderNormal:!0,$ignorePicking:!0}),this._groundMesh.rotation.rotateX(-Math.PI/2),this._labelsBuilder=new d.a(512,512,t),this._labelsBuilder.getMesh().renderOrder=100,this._labelsBuilder.getMesh().material.depthTest=!1,this.rootNode.add(this._labelsBuilder.getMesh()),this._initMeshes(),this._api=t}a.a.Shader.import(f.a),g.prototype={constructor:g,extrudeY:!0,update:function(t,e,n,i,r){var a=t.getData();null==i&&(i=0),null==r&&(r=a.count()),this._startIndex=i,this._endIndex=r-1,this._triangulation(t,i,r);var o=this._getShader(t.get("shading"));this._prepareMesh(t,o,n,i,r),this.rootNode.updateWorldTransform(),this._updateRegionMesh(t,n,i,r);var s=t.coordinateSystem;"geo3D"===s.type&&this._updateGroundPlane(t,s,n);var l=this;this._labelsBuilder.updateData(a,i,r),this._labelsBuilder.getLabelPosition=function(t,e,n){var i=a.getName(t),r=n;if("geo3D"===s.type)return u=s.getRegion(i).center,s.dataToPoint([u[0],u[1],r]);var o=l._triangulationResults[t-l._startIndex],u=l.extrudeY?[(o.max[0]+o.min[0])/2,o.max[1]+r,(o.max[2]+o.min[2])/2]:[(o.max[0]+o.min[0])/2,(o.max[1]+o.min[1])/2,o.max[2]+r]},this._data=a,this._labelsBuilder.updateLabels(),this._updateDebugWireframe(t),this._lastHoverDataIndex=0},_initMeshes:function(){this.rootNode.removeAll();var t,e=this,n=(t=new a.a.Mesh({name:"Polygon",material:new a.a.Material({shader:e._shadersMap.lambert}),culling:!1,geometry:new a.a.Geometry({sortTriangles:!0,dynamic:!0}),ignorePicking:!0,renderNormal:!0}),r.a.util.extend(t.geometry,h.a),t),i=new a.a.Mesh({material:new a.a.Material({shader:this._linesShader}),castShadow:!1,ignorePicking:!0,$ignorePicking:!0,geometry:new s.a({useNativeLine:!1})});this.rootNode.add(n),this.rootNode.add(i),n.material.define("both","VERTEX_COLOR"),n.material.define("fragment","DOUBLE_SIDED"),this._polygonMesh=n,this._linesMesh=i,this.rootNode.add(this._groundMesh)},_getShader:function(t){var e=this._shadersMap[t];return e||(console.warn("Unkown shading "+t),e=this._shadersMap.lambert),e.__shading=t,e},_prepareMesh:function(t,e,n,i,r){for(var o=0,s=0,l=0,u=0,c=i;c65535?new Uint32Array(3*s):new Uint16Array(3*s),f.material.shader!==e&&f.material.attachShader(e,!0),a.a.setMaterialFromModel(e.__shading,f.material,t,n),l>0&&(this._linesMesh.geometry.resetOffset(),this._linesMesh.geometry.setVertexCount(l),this._linesMesh.geometry.setTriangleCount(u)),this._dataIndexOfVertex=new Uint32Array(o),this._vertexRangeOfDataIndex=new Uint32Array(2*(r-i))},_updateRegionMesh:function(t,e,n,i){for(var r=t.getData(),o=0,s=0,u=!1,c=this._polygonMesh,h=this._linesMesh,d=n;d0;T&&(w*=e.getDevicePixelRatio(),this._updateLinesGeometry(h.geometry,t,d,b,w,t.coordinateSystem.transform)),h.invisible=!T,h.material.set({color:y})}(c=this._polygonMesh).material.transparent=u,c.material.depthMask=!u,c.geometry.updateBoundingBox(),c.material.get("normalMap")&&c.geometry.generateTangents(),c.seriesIndex=t.seriesIndex,c.on("mousemove",this._onmousemove,this),c.on("mouseout",this._onmouseout,this)},_updateDebugWireframe:function(t){var e=t.getModel("debug.wireframe");if(e.get("show")){var n=a.a.parseColor(e.get("lineStyle.color")||"rgba(0,0,0,0.5)"),i=l.a.firstNotNull(e.get("lineStyle.width"),1),r=this._polygonMesh;r.geometry.generateBarycentric(),r.material.define("both","WIREFRAME_TRIANGLE"),r.material.set("wireframeLineColor",n),r.material.set("wireframeLineWidth",i)}},_onmousemove:function(t){var e=this._dataIndexOfVertex[t.triangle[0]];null==e&&(e=-1),e!==this._lastHoverDataIndex&&(this.downplay(this._lastHoverDataIndex),this.highlight(e)),this._lastHoverDataIndex=e,this._polygonMesh.dataIndex=e},_onmouseover:function(t){if(t.target){var e=t.target.eventData?this._data.indexOfName(t.target.eventData.name):t.target.dataIndex;null!=e&&(this.highlight(e),this._labelsBuilder.updateLabels([e]))}},_onmouseout:function(t){t.target&&(this.downplay(this._lastHoverDataIndex),this._lastHoverDataIndex=-1,this._polygonMesh.dataIndex=-1)},_updateGroundPlane:function(t,e,n){var i=t.getModel("groundPlane",t);if(this._groundMesh.invisible=!i.get("show",!0),!this._groundMesh.invisible){var r=t.get("shading"),o=this._groundMaterials[r];o||(console.warn("Unkown shading "+r),o=this._groundMaterials.lambert),a.a.setMaterialFromModel(r,o,i,n),o.get("normalMap")&&this._groundMesh.geometry.generateTangents(),this._groundMesh.material=o,this._groundMesh.material.set("color",a.a.parseColor(i.get("color"))),this._groundMesh.scale.set(e.size[0],e.size[2],1)}},_triangulation:function(t,e,n){this._triangulationResults=[];for(var i=[1/0,1/0,1/0],r=[-1/0,-1/0,-1/0],a=t.coordinateSystem,s=e;s1?i:0,P[j][v]=C.points[H+2],l.set(r+j,P[j]),s?(k[0]=(C.points[H]*y[0]-x[0])/_,k[1]=(C.points[H+2]*y[v]-x[v])/_):(k[0]=(U?I:I+G)/_,k[1]=(P[j][m]*y[m]-x[m])/_),c.set(r+j,k)}for(p.sub(L,P[1],P[0]),p.sub(R,P[3],P[0]),p.cross(D,L,R),p.normalize(D,D),j=0;j<4;j++)u.set(r+j,D),f&&h.set(r+j,o);for(j=0;j<6;j++)g[3*a+j]=N[j]+r;r+=4,a+=2,I+=G}}return e.dirty(),{vertexOffset:r,triangleOffset:a}},_getRegionLinesInfo:function(t,e,n){var i=0,r=0;return e.getRegionModel(t).getModel("itemStyle").get("borderWidth")>0&&e.getRegionPolygonCoords(t).forEach((function(t){var e=t.exterior,a=t.interiors;i+=n.getPolylineVertexCount(e),r+=n.getPolylineTriangleCount(e);for(var o=0;othis._endIndex)){e-=this._startIndex;for(var i=this._vertexRangeOfDataIndex[2*e];i=2e4},doSortTriangles:function(t,e){var n=this.indices;if(0===e){var i=this.attributes.position;t=t.array,this._triangleZList&&this._triangleZList.length===this.triangleCount||(this._triangleZList=new Float32Array(this.triangleCount),this._sortedTriangleIndices=new Uint32Array(this.triangleCount),this._indicesTmp=new n.constructor(n.length),this._triangleZListTmp=new Float32Array(this.triangleCount));for(var r,u=0,c=0;c0,n={},i=0;i2?(m=this._updateSymbolSprite(t,p,d,f),u.enableTexture("sprite")):u.disableTexture("sprite"),h.position.init(r-i);var v=[];if(g){u.undefine("VERTEX_SIZE"),u.undefine("VERTEX_COLOR");var y=l.getVisual("color"),x=l.getVisual("opacity");a.a.parseColor(y,v),v[3]*=x,u.set({color:v,u_Size:d.maxSize*this._sizeScale})}else u.set({color:[1,1,1,1]}),u.define("VERTEX_SIZE"),u.define("VERTEX_COLOR"),h.size.init(r-i),h.color.init(r-i),this._originalOpacity=new Float32Array(r-i);for(var b=l.getLayout("points"),_=h.position.value,E=0;E1?(s[0]=n.maxSize,s[1]=n.maxSize/n.aspect):(s[1]=n.maxSize,s[0]=n.maxSize*n.aspect),s[0]=s[0]||1,s[1]=s[1]||1,this._symbolType===n.type&&(r=this._symbolSize,a=s,r&&a&&r[0]===a[0]&&r[1]===a[1])&&this._lineWidth===e.lineWidth||(o.a.createSymbolSprite(n.type,s,{fill:"#fff",lineWidth:e.lineWidth,stroke:"transparent",shadowColor:"transparent",minMargin:Math.min(s[0]/2,10)},this._spriteImageCanvas),o.a.createSDFFromCanvas(this._spriteImageCanvas,Math.min(this._spriteImageCanvas.width,32),20,this._mesh.material.get("sprite").image),this._symbolType=n.type,this._symbolSize=s,this._lineWidth=e.lineWidth),this._spriteImageCanvas.width/n.maxSize*i},_updateMaterial:function(t,e){var n="lighter"===t.get("blendMode")?a.a.additiveBlend:null,i=this._mesh.material;i.blend=n,i.set("lineWidth",e.lineWidth/20);var r=a.a.parseColor(e.stroke);i.set("strokeColor",r),i.transparent=!0,i.depthMask=!1,i.depthTest=!this.is2D,i.sortVertices=!this.is2D},_updateLabelBuilder:function(t,e,n){var i=t.getData(),r=this._mesh.geometry,a=r.attributes.position.value,o=(e=this._startDataIndex,this._mesh.sizeScale);this._labelsBuilder.updateData(i,e,n),this._labelsBuilder.getLabelPosition=function(t,n,i){var r=3*(t-e);return[a[r],a[r+1],a[r+2]]},this._labelsBuilder.getLabelDistance=function(t,n,i){return r.attributes.size.get(t-e)/o/2+i},this._labelsBuilder.updateLabels()},_updateAnimation:function(t){a.a.updateVertexAnimation([["prevPosition","position"],["prevSize","size"]],this._prevMesh,this._mesh,t)},_updateHandler:function(t,e,n){var i,r=t.getData(),a=this._mesh,o=this,s=-1,l=t.coordinateSystem&&"cartesian3D"===t.coordinateSystem.type;l&&(i=t.coordinateSystem.model),a.seriesIndex=t.seriesIndex,a.off("mousemove"),a.off("mouseout"),a.on("mousemove",(function(e){var u=e.vertexIndex+o._startDataIndex;u!==s&&(this.highlightOnMouseover&&(this.downplay(r,s),this.highlight(r,u),this._labelsBuilder.updateLabels([u])),l&&n.dispatchAction({type:"grid3DShowAxisPointer",value:[r.get(t.coordDimToDataDim("x")[0],u),r.get(t.coordDimToDataDim("y")[0],u),r.get(t.coordDimToDataDim("z")[0],u)],grid3DIndex:i.componentIndex})),a.dataIndex=u,s=u}),this),a.on("mouseout",(function(t){var e=t.vertexIndex+o._startDataIndex;this.highlightOnMouseover&&(this.downplay(r,e),this._labelsBuilder.updateLabels()),s=-1,a.dataIndex=-1,l&&n.dispatchAction({type:"grid3DHideAxisPointer",grid3DIndex:i.componentIndex})}),this)},updateLayout:function(t,e,n){var i=t.getData();if(this._mesh){var r=this._mesh.geometry.attributes.position.value,a=i.getLayout("points");if(this.is2D)for(var o=0;othis._endDataIndex||ethis._endDataIndex||e.05&&(a=!0),f!==o&&(s=!0),o=f,i=h}return a&&console.warn("Different symbol width / height ratio will be ignored."),s&&console.warn("Different symbol type will be ignored."),{maxSize:l,type:o,aspect:i}}},e.a=h},function(t,e,n){"use strict";e.a="@export clay.prez.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nattribute vec3 position : POSITION;\n@import clay.chunk.skinning_header\nvoid main()\n{\n vec3 skinnedPosition = position;\n#ifdef SKINNING\n @import clay.chunk.skin_matrix\n skinnedPosition = (skinMatrixWS * vec4(position, 1.0)).xyz;\n#endif\n gl_Position = worldViewProjection * vec4(skinnedPosition, 1.0);\n}\n@end\n@export clay.prez.fragment\nvoid main()\n{\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n}\n@end"},function(t,e,n){"use strict";var i,r=n(28),a=n(11),o=0,s=null,l=!0,u=function(){this.triangleCount=0,this.vertexCount=0,this.drawCallCount=0};function c(t,e,n){this.availableAttributes=t,this.availableAttributeSymbols=e,this.indicesBuffer=n,this.vao=null}var h,d=r.a.extend({material:null,geometry:null,mode:a.a.TRIANGLES,_drawCache:null,_renderInfo:null},(function(){this._drawCache={},this._renderInfo=new u}),{__program:null,lightGroup:0,renderOrder:0,lineWidth:1,culling:!0,cullFace:a.a.BACK,frontFace:a.a.CCW,frustumCulling:!0,receiveShadow:!0,castShadow:!0,ignorePicking:!1,ignorePreZ:!1,ignoreGBuffer:!1,isRenderable:function(){return this.geometry&&this.material&&this.material.shader&&!this.invisible&&this.geometry.vertexCount>0},beforeRender:function(t){},afterRender:function(t,e){},getBoundingBox:function(t,e){return e=r.a.prototype.getBoundingBox.call(this,t,e),this.geometry&&this.geometry.boundingBox&&e.union(this.geometry.boundingBox),e},render:function(t,e,n){var r=t.gl,u=(e=e||this.material).shader,h=this.geometry,d=this.mode,f=h.vertexCount,p=(h.isUseIndices(),t.getGLExtension("OES_element_index_uint")&&f>65535?r.UNSIGNED_INT:r.UNSIGNED_SHORT),g=t.getGLExtension("OES_vertex_array_object"),m=!h.dynamic,v=this._renderInfo;v.vertexCount=f,v.triangleCount=0,v.drawCallCount=0;var y=!1;if(((i=t.__uid__+"-"+h.__uid__+"-"+n.__uid__)!==o||g&&m||h._cache.isDirty("any"))&&(y=!0),o=i,y){var x=this._drawCache[i];if(!x){var b=h.getBufferChunks(t);if(!b)return;x=[];for(var _=0;_>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t},nearestPowerOfTwo:function(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))}};e.a=i},function(t,e,n){"use strict";var i,r,a,o,s=n(4),l=n(1),u=n.n(l),c=u.a.vec3,h=u.a.mat4,d=u.a.vec4,f=function(t,e){this.normal=t||new s.a(0,1,0),this.distance=e||0};f.prototype={constructor:f,distanceToPoint:function(t){return c.dot(t.array,this.normal.array)-this.distance},projectPoint:function(t,e){e||(e=new s.a);var n=this.distanceToPoint(t);return c.scaleAndAdd(e.array,t.array,this.normal.array,-n),e._dirty=!0,e},normalize:function(){var t=1/c.len(this.normal.array);c.scale(this.normal.array,t),this.distance*=t},intersectFrustum:function(t){for(var e=t.vertices,n=this.normal.array,i=c.dot(e[0].array,n)>this.distance,r=1;r<8;r++)if(c.dot(e[r].array,n)>this.distance!=i)return!0},intersectLine:(o=c.create(),function(t,e,n){var i=this.distanceToPoint(t),r=this.distanceToPoint(e);if(i>0&&r>0||i<0&&r<0)return null;var a=this.normal.array,l=this.distance,u=t.array;c.sub(o,e.array,t.array),c.normalize(o,o);var h=c.dot(a,o);if(0===h)return null;n||(n=new s.a);var d=(c.dot(a,u)-l)/h;return c.scaleAndAdd(n.array,u,o,-d),n._dirty=!0,n}),applyTransform:(i=h.create(),r=d.create(),a=d.create(),a[3]=1,function(t){t=t.array,c.scale(a,this.normal.array,this.distance),d.transformMat4(a,a,t),this.distance=c.dot(a,this.normal.array),h.invert(i,t),h.transpose(i,i),r[3]=0,c.copy(r,this.normal.array),d.transformMat4(r,r,i),c.copy(this.normal.array,r)}),copy:function(t){c.copy(this.normal.array,t.normal.array),this.normal._dirty=!0,this.distance=t.distance},clone:function(){var t=new f;return t.copy(this),t}},e.a=f},function(t,e,n){"use strict";var i=n(13),r=n(15),a=i.a.extend({dynamic:!1,widthSegments:40,heightSegments:20,phiStart:0,phiLength:2*Math.PI,thetaStart:0,thetaLength:Math.PI,radius:1},(function(){this.build()}),{build:function(){var t=this.heightSegments,e=this.widthSegments,n=this.attributes.position,i=this.attributes.texcoord0,a=this.attributes.normal,o=(e+1)*(t+1);n.init(o),i.init(o),a.init(o);var s,l,u,c,h,d,f,p,g,m,v,y=o>65535?Uint32Array:Uint16Array,x=this.indices=new y(e*t*6),b=this.radius,_=this.phiStart,E=this.phiLength,w=this.thetaStart,T=this.thetaLength,S=[],M=[],C=0,A=1/(b=this.radius);for(f=0;f<=t;f++)for(d=0;d<=e;d++)c=d/e,h=f/t,s=-b*Math.cos(_+c*E)*Math.sin(w+h*T),l=b*Math.cos(w+h*T),u=b*Math.sin(_+c*E)*Math.sin(w+h*T),S[0]=s,S[1]=l,S[2]=u,M[0]=c,M[1]=h,n.set(C,S),i.set(C,M),S[0]*=A,S[1]*=A,S[2]*=A,a.set(C,S),C++;var O=e+1,N=0;for(f=0;fo&&(r=this._x=0,a+=this._rowHeight+l,this._y=a,this._rowHeight=0),this._x+=e+l,this._rowHeight=Math.max(this._rowHeight,n),a+n+l>s)return null;t.position[0]+=this.offsetX*this.dpr+r,t.position[1]+=this.offsetY*this.dpr+a,this._zr.add(t);var u=[this.offsetX/this.width,this.offsetY/this.height];return[[r/o+u[0],a/s+u[1]],[(r+e)/o+u[0],(a+n)/s+u[1]]]},_fitElement:function(t,e,n){var i=t.getBoundingRect(),r=e/i.width,a=n/i.height;t.position=[-i.x*r,-i.y*a],t.scale=[r,a],t.update()}},s.prototype={clear:function(){for(var t=0;t=t)){var r=(n+this._nodeWidth)*this._dpr,a=(i+this._nodeHeight)*this._dpr;try{this._zr.resize({width:r,height:a})}catch(t){this._canvas.width=r,this._canvas.height=a}var s=new o(this._zr,n,i,this._nodeWidth,this._nodeHeight,this._gap,this._dpr);return this._textureAtlasNodes.push(s),s}console.error("Too much labels. Some will be ignored.")},add:function(t,e,n){if(this._coords[t.id])return console.warn("Element already been add"),this._coords[t.id];var i=this._getCurrentNode().add(t,e,n);if(!i){var r=this._expand();if(!r)return;i=r.add(t,e,n)}return this._coords[t.id]=i,i},getCoordsScale:function(){var t=this._dpr;return[this._nodeWidth/this._canvas.width*t,this._nodeHeight/this._canvas.height*t]},getCoords:function(t){return this._coords[t]}},e.a=s},function(t,e,n){"use strict";e.a=function(t,e,n){var i,r=t.scale;return"ordinal"===r.type&&("function"==typeof n?(i=r.getTicks()[e],!n(i,r.getLabel(i))):e%(n+1))}},function(t,e,n){var i,r,a,o,s=n(76),l=n(77),u=s.applyTransform,c=Math.min,h=Math.max;function d(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}d.prototype={constructor:d,union:function(t){var e=c(t.x,this.x),n=c(t.y,this.y);this.width=h(t.x+t.width,this.x+this.width)-e,this.height=h(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},applyTransform:(i=[],r=[],a=[],o=[],function(t){if(t){i[0]=a[0]=this.x,i[1]=o[1]=this.y,r[0]=o[0]=this.x+this.width,r[1]=a[1]=this.y+this.height,u(i,i,t),u(r,r,t),u(a,a,t),u(o,o,t),this.x=c(i[0],r[0],a[0],o[0]),this.y=c(i[1],r[1],a[1],o[1]);var e=h(i[0],r[0],a[0],o[0]),n=h(i[1],r[1],a[1],o[1]);this.width=e-this.x,this.height=n-this.y}}),calculateTransform:function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=l.create();return l.translate(r,r,[-e.x,-e.y]),l.scale(r,r,[n,i]),l.translate(r,r,[t.x,t.y]),r},intersect:function(t){if(!t)return!1;t instanceof d||(t=d.create(t));var e=this,n=e.x,i=e.x+e.width,r=e.y,a=e.y+e.height,o=t.x,s=t.x+t.width,l=t.y,u=t.y+t.height;return!(i=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new d(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},d.create=function(t){return new d(t.x,t.y,t.width,t.height)};var f=d;t.exports=f},function(t,e){var n="undefined"==typeof Float32Array?Array:Float32Array;function i(t){return Math.sqrt(a(t))}var r=i;function a(t){return t[0]*t[0]+t[1]*t[1]}var o=a;function s(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var l=s;function u(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var c=u;e.create=function(t,e){var i=new n(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.clone=function(t){var e=new n(2);return e[0]=t[0],e[1]=t[1],e},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},e.sub=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},e.len=i,e.length=r,e.lenSquare=a,e.lengthSquare=o,e.mul=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},e.div=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.normalize=function(t,e){var n=i(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t},e.distance=s,e.dist=l,e.distanceSquare=u,e.distSquare=c,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.lerp=function(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t},e.applyTransform=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},function(t,e){var n="undefined"==typeof Float32Array?Array:Float32Array;function i(){var t=new n(6);return r(t),t}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}e.create=i,e.identity=r,e.copy=a,e.mul=function(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],a=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t},e.translate=function(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t},e.rotate=function(t,e,n){var i=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=i*c+o*u,t[1]=-i*u+o*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*a+u*l,t[5]=c*l-u*a,t},e.scale=function(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t},e.invert=function(t,e){var n=e[0],i=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=n*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-o*r)*l,t[5]=(a*r-n*s)*l,t):null},e.clone=function(t){var e=i();return a(e,t),e}},function(t,e,n){var i=n(12),r=1e-4,a=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function o(t){return Math.floor(Math.log(t)/Math.LN10)}e.linearMap=function(t,e,n,i){var r=e[1]-e[0],a=n[1]-n[0];if(0===r)return 0===a?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*a+n[0]},e.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?(n=t,n.replace(/^\s+/,"").replace(/\s+$/,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n},e.round=function(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t},e.asc=function(t){return t.sort((function(t,e){return t-e})),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},e.getPrecisionSafe=function(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var r=e.indexOf(".");return r<0?0:e.length-1-r},e.getPixelPrecision=function(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),a=Math.round(n(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20},e.getPercentWithPrecision=function(t,e,n){if(!t[e])return 0;var r=i.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;for(var a=Math.pow(10,n),o=i.map(t,(function(t){return(isNaN(t)?0:t)/r*a*100})),s=100*a,l=i.map(o,(function(t){return Math.floor(t)})),u=i.reduce(l,(function(t,e){return t+e}),0),c=i.map(o,(function(t,e){return t-l[e]}));uh&&(h=c[f],d=f);++l[d],c[d]=0,++u}return l[e]/a},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-1e-4&&t=-20?+t.toFixed(n<0?-n:0):t},e.reformIntervals=function(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i=0}},function(t,e,n){"use strict";var i=n(5),r=n(11),a=n(21),o=function(){this._pool={},this._allocatedTextures=[]};o.prototype={constructor:o,get:function(t){var e=u(t);this._pool.hasOwnProperty(e)||(this._pool[e]=[]);var n=this._pool[e];if(!n.length){var r=new i.a(t);return this._allocatedTextures.push(r),r}return n.pop()},put:function(t){var e=u(t);this._pool.hasOwnProperty(e)||(this._pool[e]=[]),this._pool[e].push(t)},clear:function(t){for(var e=0;eh&&u.push({pivot:Math.floor((c+h)/2),left:h,right:c}),h=s[l].pivot+1,(c=s[l].right)>h&&u.push({pivot:Math.floor((c+h)/2),left:h,right:c})}s=this._parts=u}else for(l=0;l65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(t){this.triangleCount!==t&&(this.indices=0===t?null:this.vertexCount>65535?new Uint32Array(3*t):new Uint16Array(3*t))},_getCubicCurveApproxStep:function(t,e,n,i){return 1/(g.dist(t,e)+g.dist(n,e)+g.dist(i,n)+1)*this.segmentScale},getCubicCurveVertexCount:function(t,e,n,i){var r=this._getCubicCurveApproxStep(t,e,n,i),a=Math.ceil(1/r);return this.useNativeLine?2*a:2*a+2},getCubicCurveTriangleCount:function(t,e,n,i){var r=this._getCubicCurveApproxStep(t,e,n,i),a=Math.ceil(1/r);return this.useNativeLine?0:2*a},getLineVertexCount:function(){return this.getPolylineVertexCount(m)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(m)},getPolylineVertexCount:function(t){var e;return e="number"==typeof t?t:"number"!=typeof t[0]?t.length:t.length/2,this.useNativeLine?2*(e-1):2*(e-1)+2},getPolylineTriangleCount:function(t){var e;return e="number"==typeof t?t:"number"!=typeof t[0]?t.length:t.length/2,this.useNativeLine?0:2*(e-1)},addCubicCurve:function(t,e,n,i,r,a){null==a&&(a=1);var o=t[0],s=t[1],l=e[0],u=e[1],c=n[0],h=n[1],d=i[0],f=i[1],p=this._getCubicCurveApproxStep(t,e,n,i),g=p*p,m=g*p,v=3*p,y=3*g,x=6*g,b=6*m,_=o-2*l+c,E=s-2*u+h,w=3*(l-c)-o+d,T=3*(u-h)-s+f,S=o,M=s,C=(l-o)*v+_*y+w*m,A=(u-s)*v+E*y+T*m,O=_*x+w*b,N=E*x+T*b,P=w*b,L=T*b,R=0,D=0,k=Math.ceil(1/p),I=new Float32Array(3*(k+1)),B=(I=[],0);for(D=0;D1&&(S=C>0?Math.min(S,d):Math.max(S,d),M=A>0?Math.min(M,f):Math.max(M,f));this.addPolyline(I,r,a)},addLine:function(t,e,n,i){this.addPolyline([t,e],n,i)},addPolyline:(i=g.create(),r=g.create(),a=g.create(),o=g.create(),s=[],l=[],u=[],function(t,e,n,c,h){if(t.length){var d="number"!=typeof t[0];if(null==h&&(h=d?t.length:t.length/2),!(h<2)){null==c&&(c=0),null==n&&(n=1),this._itemVertexOffsets.push(this._vertexOffset);for(var f,p=d?"number"!=typeof e[0]:e.length/4===h,m=this.attributes.position,v=this.attributes.color,y=this.attributes.offset,x=this.attributes.normal,b=this.indices,_=this._vertexOffset,E=0;E1&&(m.copy(_,_-1),v.copy(_,_-1),_++);else{var S;if(E0){g.sub(i,s,u),g.sub(r,l,s),g.normalize(i,i),g.normalize(r,r),g.add(o,i,r),g.normalize(o,o);var M=n/2*Math.min(1/g.dot(i,o),2);a[0]=-o[1],a[1]=o[0],S=M}else g.sub(i,l,s),g.normalize(i,i),a[0]=-i[1],a[1]=i[0],S=n/2;else g.sub(i,s,u),g.normalize(i,i),a[0]=-i[1],a[1]=i[0],S=n/2;x.set(_,a),x.set(_+1,a),y.set(_,S),y.set(_+1,-S),g.copy(u,s),m.set(_,s),m.set(_+1,s),v.set(_,f),v.set(_+1,f),_+=2}if(this.useNativeLine)v.set(_,f),m.set(_,s),_++;else if(E>0){var C=3*this._faceOffset;(b=this.indices)[C]=_-4,b[C+1]=_-3,b[C+2]=_-2,b[C+3]=_-3,b[C+4]=_-1,b[C+5]=_-2,this._faceOffset+=2}}this._vertexOffset=_}}}),setItemColor:function(t,e){for(var n=this._itemVertexOffsets[t],i=tt&&o=0&&this._viewsToDispose.splice(e,1),this.views.push(t),t.layer=this;var n=this.zr;t.scene.traverse((function(t){t.__zr=n,t.addAnimatorsToZr&&t.addAnimatorsToZr(n)}))}},h.prototype.removeView=function(t){if(t.layer===this){var e=this.views.indexOf(t);e>=0&&(this.views.splice(e,1),t.scene.traverse(d,this),t.layer=null,this._viewsToDispose.push(t))}},h.prototype.removeViewsAll=function(){this.views.forEach((function(t){t.scene.traverse(d,this),t.layer=null,this._viewsToDispose.push(t)}),this),this.views.length=0},h.prototype.resize=function(t,e){this.renderer.resize(t,e)},h.prototype.clear=function(){var t=this.renderer.gl;t.clearColor(0,0,0,0),t.depthMask(!0),t.colorMask(!0,!0,!0,!0),t.clear(t.DEPTH_BUFFER_BIT|t.COLOR_BUFFER_BIT)},h.prototype.clearDepth=function(){var t=this.renderer.gl;t.clear(t.DEPTH_BUFFER_BIT)},h.prototype.clearColor=function(){var t=this.renderer.gl;t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT)},h.prototype.needsRefresh=function(){this.zr.refresh()},h.prototype.refresh=function(){for(var t=0;t20)){t=t.event;var i=this.pickObject(t.offsetX,t.offsetY);i&&(this._dispatchEvent(t.type,t,i),this._dispatchDataEvent(t.type,t,i));var r=this._clickToSetFocusPoint(t);r&&r.view.setDOFFocusOnPoint(r.distance)&&this.zr.refresh()}}},h.prototype._clickToSetFocusPoint=function(t){for(var e=this.renderer,n=e.viewport,i=this.views.length-1;i>=0;i--){var r=this.views[i];if(r.hasDOF()&&r.containPoint(t.offsetX,t.offsetY)){this._picking.scene=r.scene,this._picking.camera=r.camera,e.viewport=r.viewport;var a=this._picking.pick(t.offsetX,t.offsetY,!0);if(a)return a.view=r,a}}e.viewport=n},h.prototype.onglobalout=function(t){var e=this._hovered;e&&this._dispatchEvent("mouseout",t,{target:e.target})},h.prototype.pickObject=function(t,e){for(var n=[],i=this.renderer,r=i.viewport,a=0;a=0&&(l.dataIndex=this._lastDataIndex,l.seriesIndex=this._lastSeriesIndex,this.zr.handler.dispatchToElement(u,"mouseout",e)),s=!0):null!=o&&o!==this._lastEventData&&(null!=this._lastEventData&&(l.eventData=this._lastEventData,this.zr.handler.dispatchToElement(u,"mouseout",e)),s=!0),this._lastEventData=o,this._lastDataIndex=r,this._lastSeriesIndex=a),l.eventData=o,l.dataIndex=r,l.seriesIndex=a,(null!=o||parseInt(r,10)>=0)&&(this.zr.handler.dispatchToElement(u,t,e),s&&this.zr.handler.dispatchToElement(u,"mouseover",e))},h.prototype._dispatchToView=function(t,e){for(var n=0;n255?255:t}function s(t){return t<0?0:t>1?1:t}function l(t){return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100*255):o(parseInt(t,10))}function u(t){return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100):s(parseFloat(t))}function c(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function d(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new i.a(20),g=null;function m(t,e){g&&f(g,e),g=p.put(t,g||e.slice())}function v(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=u(t[1]),r=u(t[2]),a=r<=.5?r*(i+1):r+i-r*i,s=2*r-a;return d(e=e||[],o(255*c(s,a,n+1/3)),o(255*c(s,a,n)),o(255*c(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}r.parse=function(t,e){if(t){e=e||[];var n=p.get(t);if(n)return f(e,n);var i,r=(t+="").replace(/ /g,"").toLowerCase();if(r in a)return f(e,a[r]),m(t,e),e;if("#"===r.charAt(0))return 4===r.length?(i=parseInt(r.substr(1),16))>=0&&i<=4095?(d(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,1),m(t,e),e):void d(e,0,0,0,1):7===r.length?(i=parseInt(r.substr(1),16))>=0&&i<=16777215?(d(e,(16711680&i)>>16,(65280&i)>>8,255&i,1),m(t,e),e):void d(e,0,0,0,1):void 0;var o=r.indexOf("("),s=r.indexOf(")");if(-1!==o&&s+1===r.length){var c=r.substr(0,o),h=r.substr(o+1,s-(o+1)).split(","),g=1;switch(c){case"rgba":if(4!==h.length)return void d(e,0,0,0,1);g=u(h.pop());case"rgb":return 3!==h.length?void d(e,0,0,0,1):(d(e,l(h[0]),l(h[1]),l(h[2]),g),m(t,e),e);case"hsla":return 4!==h.length?void d(e,0,0,0,1):(h[3]=u(h[3]),v(h,e),m(t,e),e);case"hsl":return 3!==h.length?void d(e,0,0,0,1):(v(h,e),m(t,e),e);default:return}}d(e,0,0,0,1)}},r.parseToFloat=function(t,e){if(e=r.parse(t,e))return e[0]/=255,e[1]/=255,e[2]/=255,e},r.lift=function(t,e){var n=r.parse(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0;return r.stringify(n,4===n.length?"rgba":"rgb")}},r.toHex=function(t){var e=r.parse(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},r.fastLerp=function(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),l=e[r],u=e[a],c=i-r;return n[0]=o(h(l[0],u[0],c)),n[1]=o(h(l[1],u[1],c)),n[2]=o(h(l[2],u[2],c)),n[3]=s(h(l[3],u[3],c)),n}},r.fastMapToColor=r.fastLerp,r.lerp=function(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),a=Math.floor(i),l=Math.ceil(i),u=r.parse(e[a]),c=r.parse(e[l]),d=i-a,f=r.stringify([o(h(u[0],c[0],d)),o(h(u[1],c[1],d)),o(h(u[2],c[2],d)),s(h(u[3],c[3],d))],"rgba");return n?{color:f,leftIndex:a,rightIndex:l,value:i}:f}},r.mapToColor=r.lerp,r.modifyHSL=function(t,e,n,i){if(t=r.parse(t))return t=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:a===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}(t),null!=e&&(t[0]=(a=e,(a=Math.round(a))<0?0:a>360?360:a)),null!=n&&(t[1]=u(n)),null!=i&&(t[2]=u(i)),r.stringify(v(t),"rgba");var a},r.modifyAlpha=function(t,e){if((t=r.parse(t))&&null!=e)return t[3]=s(e),r.stringify(t,"rgba")},r.stringify=function(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}},e.a=r},function(t,e,n){"use strict";var i=n(95),r=function(t){this._list=new i.a,this._map={},this._maxSize=t||10};r.prototype.setMaxSize=function(t){this._maxSize=t},r.prototype.put=function(t,e){if(void 0===this._map[t]){var n=this._list.length();if(n>=this._maxSize&&n>0){var i=this._list.head;this._list.remove(i),delete this._map[i.key]}var r=this._list.insert(e);r.key=t,this._map[t]=r}},r.prototype.get=function(t){var e=this._map[t];if(void 0!==e)return e!==this._list.tail&&(this._list.remove(e),this._list.insertEntry(e)),e.value},r.prototype.remove=function(t){var e=this._map[t];void 0!==e&&(delete this._map[t],this._list.remove(e))},r.prototype.clear=function(){this._list.clear(),this._map={}},e.a=r},function(t,e,n){"use strict";var i=function(){this.head=null,this.tail=null,this._length=0};i.prototype.insert=function(t){var e=new i.Entry(t);return this.insertEntry(e),e},i.prototype.insertAt=function(t,e){if(!(t<0)){for(var n=this.head,r=0;n&&r!=t;)n=n.next,r++;if(n){var a=new i.Entry(e),o=n.prev;o?(o.next=a,a.prev=o):this.head=a,a.next=n,n.prev=a}else this.insert(e)}},i.prototype.insertBeforeEntry=function(t,e){var n=new i.Entry(t),r=e.prev;r?(r.next=n,n.prev=r):this.head=n,n.next=e,e.prev=n,this._length++},i.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,this.tail=t):this.head=this.tail=t,this._length++},i.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._length--},i.prototype.removeAt=function(t){if(!(t<0)){for(var e=this.head,n=0;e&&n!=t;)e=e.next,n++;return e?(this.remove(e),e.value):void 0}},i.prototype.getHead=function(){if(this.head)return this.head.value},i.prototype.getTail=function(){if(this.tail)return this.tail.value},i.prototype.getAt=function(t){if(!(t<0)){for(var e=this.head,n=0;e&&n!=t;)e=e.next,n++;return e.value}},i.prototype.indexOf=function(t){for(var e=this.head,n=0;e;){if(e.value===t)return n;e=e.next,n++}},i.prototype.length=function(){return this._length},i.prototype.isEmpty=function(){return 0===this._length},i.prototype.forEach=function(t,e){for(var n=this.head,i=0,r=void 0!==e;n;)r?t.call(e,n.value,i):t(n.value,i),n=n.next,i++},i.prototype.clear=function(){this.tail=this.head=null,this._length=0},i.Entry=function(t){this.value=t,this.next=null,this.prev=null},e.a=i},function(t,e,n){"use strict";var i=n(97),r=/for\s*?\(int\s*?_idx_\s*\=\s*([\w-]+)\;\s*_idx_\s*<\s*([\w-]+);\s*_idx_\s*\+\+\s*\)\s*\{\{([\s\S]+?)(?=\}\})\}\}/g;function a(t,e,n){var i={};for(var a in n)i[a+"_COUNT"]=n[a];return t.replace(r,(function(t,n,r,a){var o="";isNaN(n)&&(n=n in e?e[n]:i[n]),isNaN(r)&&(r=r in e?e[r]:i[r]);for(var s=parseInt(n);s0&&i.push("#define "+r.toUpperCase()+"_COUNT "+a)}if(n)for(var o=0;o=0&&S[w]>1e-4&&(m.transformMat4(A,T,_[M[w]]),m.scaleAndAdd(C,C,A,S[w]));O.set(E,C)}}for(E=0;E=0&&(function(t){o(t,"itemStyle"),o(t,"lineStyle"),o(t,"areaStyle"),o(t,"label")}(e),"mapbox"===e.coordinateSystem&&(e.coordinateSystem="mapbox3D",t.mapbox3D=t.mapbox))})),s(t.xAxis3D),s(t.yAxis3D),s(t.zAxis3D),s(t.grid3D),o(t.geo3D)}},function(t,e,n){"use strict";e.a={get:function(t){var e=new XMLHttpRequest;e.open("get",t.url),e.responseType=t.responseType||"text",t.onprogress&&(e.onprogress=function(e){if(e.lengthComputable){var n=e.loaded/e.total;t.onprogress(n,e.loaded,e.total)}else t.onprogress(null)}),e.onload=function(n){e.status>=400?t.onerror&&t.onerror():t.onload&&t.onload(e.response)},t.onerror&&(e.onerror=t.onerror),e.send(null)}}},function(t,e,n){"use strict";e.a="@export clay.basic.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec2 uvRepeat : [1.0, 1.0];\nuniform vec2 uvOffset : [0.0, 0.0];\nattribute vec2 texcoord : TEXCOORD_0;\nattribute vec3 position : POSITION;\nattribute vec3 barycentric;\n@import clay.chunk.skinning_header\nvarying vec2 v_Texcoord;\nvarying vec3 v_Barycentric;\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\nvoid main()\n{\n vec3 skinnedPosition = position;\n#ifdef SKINNING\n @import clay.chunk.skin_matrix\n skinnedPosition = (skinMatrixWS * vec4(position, 1.0)).xyz;\n#endif\n v_Texcoord = texcoord * uvRepeat + uvOffset;\n v_Barycentric = barycentric;\n gl_Position = worldViewProjection * vec4(skinnedPosition, 1.0);\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n}\n@end\n@export clay.basic.fragment\nvarying vec2 v_Texcoord;\nuniform sampler2D diffuseMap;\nuniform vec3 color : [1.0, 1.0, 1.0];\nuniform vec3 emission : [0.0, 0.0, 0.0];\nuniform float alpha : 1.0;\n#ifdef ALPHA_TEST\nuniform float alphaCutoff: 0.9;\n#endif\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\nuniform float lineWidth : 0.0;\nuniform vec4 lineColor : [0.0, 0.0, 0.0, 0.6];\nvarying vec3 v_Barycentric;\n@import clay.util.edge_factor\n@import clay.util.rgbm\n@import clay.util.srgb\n@import clay.util.ACES\nvoid main()\n{\n#ifdef RENDER_TEXCOORD\n gl_FragColor = vec4(v_Texcoord, 1.0, 1.0);\n return;\n#endif\n gl_FragColor = vec4(color, alpha);\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n#endif\n#ifdef DIFFUSEMAP_ENABLED\n vec4 tex = decodeHDR(texture2D(diffuseMap, v_Texcoord));\n#ifdef SRGB_DECODE\n tex = sRGBToLinear(tex);\n#endif\n#if defined(DIFFUSEMAP_ALPHA_ALPHA)\n gl_FragColor.a = tex.a;\n#endif\n gl_FragColor.rgb *= tex.rgb;\n#endif\n gl_FragColor.rgb += emission;\n if( lineWidth > 0.)\n {\n gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor(lineWidth)) * lineColor.a);\n }\n#ifdef ALPHA_TEST\n if (gl_FragColor.a < alphaCutoff) {\n discard;\n }\n#endif\n#ifdef TONEMAPPING\n gl_FragColor.rgb = ACESToneMapping(gl_FragColor.rgb);\n#endif\n#ifdef SRGB_ENCODE\n gl_FragColor = linearTosRGB(gl_FragColor);\n#endif\n gl_FragColor = encodeHDR(gl_FragColor);\n}\n@end"},function(t,e,n){"use strict";var i=n(6),r=n(5);function a(t){return t.charCodeAt(0)+(t.charCodeAt(1)<<8)+(t.charCodeAt(2)<<16)+(t.charCodeAt(3)<<24)}n(25);var o=a("DXT1"),s=a("DXT3"),l=a("DXT5"),u={parse:function(t,e){var n=new Int32Array(t,0,31);if(542327876!==n[0])return null;if(4&!n(20))return null;var a,u,c=n(21),h=n[4],d=n[3],f=512&n[28],p=131072&n[2];switch(c){case o:a=8,u=i.a.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case s:a=16,u=i.a.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case l:a=16,u=i.a.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}var g=n[1]+4,m=f?6:1,v=1;p&&(v=Math.max(1,n[7]));for(var y=[],x=0;x0){var r=Math.pow(2,t[3]-128-8+i);e[n+0]=t[0]*r,e[n+1]=t[1]*r,e[n+2]=t[2]*r}else e[n+0]=0,e[n+1]=0,e[n+2]=0;return e[n+3]=1,e}function s(t,e,n,i){for(var r,a,o=0,s=0,l=i;l>0;)if(t[s][0]=e[n++],t[s][1]=e[n++],t[s][2]=e[n++],t[s][3]=e[n++],1===t[s][0]&&1===t[s][1]&&1===t[s][2]){for(var u=t[s][3]<>>0;u>0;u--)r=t[s-1],(a=t[s])[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3],s++,l--;o+=8}else s++,l--,o=0;return n}function l(t,e,n,i){if(i<8|i>32767)return s(t,e,n,i);if(2!=(r=e[n++]))return s(t,e,n-1,i);if(t[0][1]=e[n++],t[0][2]=e[n++],r=e[n++],(t[0][2]<<8>>>0|r)>>>0!==i)return null;for(var r=0;r<4;r++)for(var a=0;a128){o=(127&o)>>>0;for(var l=e[n++];o--;)t[a++][r]=l}else for(;o--;)t[a++][r]=e[n++]}return n}var u={parseRGBE:function(t,e,n){null==n&&(n=0);var s=new Uint8Array(t),u=s.length;if("#?"===function(t,e,n){for(var i="",r=e;r=u)){c+=2;for(var h="";c=0||(o.forEach((function(e){t.on(e,this[s(e)],this)}),this),this._meshes.push(t))},detachFromMesh:function(t){var e=this._meshes.indexOf(t);e>=0&&this._meshes.splice(e,1),o.forEach((function(e){t.off(e,this[s(e)])}),this)},dispose:function(){this._meshes.forEach((function(t){this.detachFromMesh(t)}),this)}},e.a=m},function(t,e,n){"use strict";var i=n(19),r=n(108),a=i.a.extend({cubemap:null,castShadow:!1,_normalDistribution:null,_brdfLookup:null},{type:"AMBIENT_CUBEMAP_LIGHT",prefilter:function(t,e){this._brdfLookup||(this._normalDistribution=r.a.generateNormalDistribution(),this._brdfLookup=r.a.integrateBRDF(t,this._normalDistribution));var n=this.cubemap;if(!n.__prefiltered){var i=r.a.prefilterEnvironmentMap(t,n,{encodeRGBM:!0,width:e,height:e},this._normalDistribution,this._brdfLookup);this.cubemap=i.environmentMap,this.cubemap.__prefiltered=!0,n.dispose(t)}},uniformTemplates:{ambientCubemapLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}},ambientCubemapLightCubemap:{type:"t",value:function(t){return t.cubemap}},ambientCubemapLightBRDFLookup:{type:"t",value:function(t){return t._brdfLookup}}}});e.a=a},function(t,e,n){"use strict";var i=n(5),r=n(25),a=n(6),o=n(10),s=n(14),l=n(17),u=n(7),c=n(57),h=n(29),d=n(55),f=n(18),p=n(54),g=n(111),m=n(112),v={},y=["px","nx","py","ny","pz","nz"];v.prefilterEnvironmentMap=function(t,e,n,s,g){g&&s||(s=v.generateNormalDistribution(),g=v.integrateBRDF(t,s));var x=(n=n||{}).width||64,b=n.height||64,_=n.type||e.type,E=new r.a({width:x,height:b,type:_,flipY:!1,mipmaps:[]});E.isPowerOfTwo()||console.warn("Width and height must be power of two to enable mipmap.");var w=Math.min(x,b),T=Math.log(w)/Math.log(2)+1,S=new l.a({shader:new u.a({vertex:u.a.source("clay.skybox.vertex"),fragment:m.a})});S.set("normalDistribution",s),n.encodeRGBM&&S.define("fragment","RGBM_ENCODE"),n.decodeRGBM&&S.define("fragment","RGBM_DECODE");var M,C=new h.a;if(e instanceof i.a){var A=new r.a({width:x,height:b,type:_===a.a.FLOAT?a.a.HALF_FLOAT:_});p.a.panoramaToCubeMap(t,e,A,{encodeRGBM:n.decodeRGBM}),e=A}(M=new c.a({scene:C,material:S})).material.set("environmentMap",e);var O=new d.a({texture:E});n.encodeRGBM&&(_=E.type=a.a.UNSIGNED_BYTE);for(var N=new i.a({width:x,height:b,type:_}),P=new o.a({depthBuffer:!1}),L=f.a[_===a.a.UNSIGNED_BYTE?"Uint8Array":"Float32Array"],R=0;R>>16)>>>0;l=(((16711935&(l=((252645135&(l=((858993459&(l=((1431655765&l)<<1|(2863311530&l)>>>1)>>>0))<<2|(3435973836&l)>>>2)>>>0))<<4|(4042322160&l)>>>4)>>>0))<<8|(4278255360&l)>>>8)>>>0)/4294967296;for(var u=0;u=0&&l.splice(t,1)})),l.push(u),this.__zr&&this.__zr.animation.addAnimator(u),u},stopAnimation:function(t){this._animators=this._animators||[];for(var e=this._animators,n=e.length,i=0;i.5?e:t}function h(t,e,n,i,r){var a=t.length;if(1==r)for(var o=0;or)t.length=r;else for(var a=i;a=0&&!(C[n]<=e);n--);n=Math.min(n,b-2)}else{for(n=G;ne);n++);n=Math.min(n-1,b-2)}G=n,j=e;var i=C[n+1]-C[n];if(0!==i)if(k=(e-C[n])/i,x)if(B=A[n],I=A[0===n?n:n-1],F=A[n>b-2?b-1:n+1],z=A[n>b-3?b-1:n+2],w)p(I,B,F,z,k,k*k,k*k*k,m(t,s),M);else{if(T)r=p(I,B,F,z,k,k*k,k*k*k,U,1),r=v(U);else{if(S)return c(B,F,k);r=g(I,B,F,z,k,k*k,k*k*k)}y(t,s,r)}else if(w)h(A[n],A[n+1],k,m(t,s),M);else{var r;if(T)h(A[n],A[n+1],k,U,1),r=v(U);else{if(S)return c(A[n],A[n+1],k);r=u(A[n],A[n+1],k)}y(t,s,r)}},ondestroy:n});return e&&"spline"!==e&&(H.easing=e),H}}}var x=function(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||s,this._setter=i||l,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};x.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:m(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t255?255:t}function o(t){return t<0?0:t>1?1:t}function s(t){return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100*255):a(parseInt(t,10))}function l(t){return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100):o(parseFloat(t))}function u(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function c(t,e,n){return t+(e-t)*n}function h(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new i(20),p=null;function g(t,e){p&&d(p,e),p=f.put(t,p||e.slice())}function m(t,e){if(t){e=e||[];var n=f.get(t);if(n)return d(e,n);var i,a=(t+="").replace(/ /g,"").toLowerCase();if(a in r)return d(e,r[a]),g(t,e),e;if("#"===a.charAt(0))return 4===a.length?(i=parseInt(a.substr(1),16))>=0&&i<=4095?(h(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,1),g(t,e),e):void h(e,0,0,0,1):7===a.length?(i=parseInt(a.substr(1),16))>=0&&i<=16777215?(h(e,(16711680&i)>>16,(65280&i)>>8,255&i,1),g(t,e),e):void h(e,0,0,0,1):void 0;var o=a.indexOf("("),u=a.indexOf(")");if(-1!==o&&u+1===a.length){var c=a.substr(0,o),p=a.substr(o+1,u-(o+1)).split(","),m=1;switch(c){case"rgba":if(4!==p.length)return void h(e,0,0,0,1);m=l(p.pop());case"rgb":return 3!==p.length?void h(e,0,0,0,1):(h(e,s(p[0]),s(p[1]),s(p[2]),m),g(t,e),e);case"hsla":return 4!==p.length?void h(e,0,0,0,1):(p[3]=l(p[3]),v(p,e),g(t,e),e);case"hsl":return 3!==p.length?void h(e,0,0,0,1):(v(p,e),g(t,e),e);default:return}}h(e,0,0,0,1)}}function v(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=l(t[1]),r=l(t[2]),o=r<=.5?r*(i+1):r+i-r*i,s=2*r-o;return h(e=e||[],a(255*u(s,o,n+1/3)),a(255*u(s,o,n)),a(255*u(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),s=Math.ceil(i),l=e[r],u=e[s],h=i-r;return n[0]=a(c(l[0],u[0],h)),n[1]=a(c(l[1],u[1],h)),n[2]=a(c(l[2],u[2],h)),n[3]=o(c(l[3],u[3],h)),n}}var x=y;function b(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),s=Math.ceil(i),l=m(e[r]),u=m(e[s]),h=i-r,d=E([a(c(l[0],u[0],h)),a(c(l[1],u[1],h)),a(c(l[2],u[2],h)),o(c(l[3],u[3],h))],"rgba");return n?{color:d,leftIndex:r,rightIndex:s,value:i}:d}}var _=b;function E(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}e.parse=m,e.lift=function(t,e){var n=m(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0;return E(n,4===n.length?"rgba":"rgb")}},e.toHex=function(t){var e=m(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},e.fastLerp=y,e.fastMapToColor=x,e.lerp=b,e.mapToColor=_,e.modifyHSL=function(t,e,n,i){if(t=m(t))return t=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:a===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}(t),null!=e&&(t[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(t[1]=l(n)),null!=i&&(t[2]=l(i)),E(v(t),"rgba");var r},e.modifyAlpha=function(t,e){if((t=m(t))&&null!=e)return t[3]=o(e),E(t,"rgba")},e.stringify=E},function(t,e,n){"use strict";e.a="\n@export clay.util.rand\nhighp float rand(vec2 uv) {\n const highp float a = 12.9898, b = 78.233, c = 43758.5453;\n highp float dt = dot(uv.xy, vec2(a,b)), sn = mod(dt, 3.141592653589793);\n return fract(sin(sn) * c);\n}\n@end\n@export clay.util.calculate_attenuation\nuniform float attenuationFactor : 5.0;\nfloat lightAttenuation(float dist, float range)\n{\n float attenuation = 1.0;\n attenuation = dist*dist/(range*range+1.0);\n float att_s = attenuationFactor;\n attenuation = 1.0/(attenuation*att_s+1.0);\n att_s = 1.0/(att_s+1.0);\n attenuation = attenuation - att_s;\n attenuation /= 1.0 - att_s;\n return clamp(attenuation, 0.0, 1.0);\n}\n@end\n@export clay.util.edge_factor\nfloat edgeFactor(float width)\n{\n vec3 d = fwidth(v_Barycentric);\n vec3 a3 = smoothstep(vec3(0.0), d * width, v_Barycentric);\n return min(min(a3.x, a3.y), a3.z);\n}\n@end\n@export clay.util.encode_float\nvec4 encodeFloat(const in float depth)\n{\n const vec4 bitShifts = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0);\n const vec4 bit_mask = vec4(0.0, 1.0/256.0, 1.0/256.0, 1.0/256.0);\n vec4 res = fract(depth * bitShifts);\n res -= res.xxyz * bit_mask;\n return res;\n}\n@end\n@export clay.util.decode_float\nfloat decodeFloat(const in vec4 color)\n{\n const vec4 bitShifts = vec4(1.0/(256.0*256.0*256.0), 1.0/(256.0*256.0), 1.0/256.0, 1.0);\n return dot(color, bitShifts);\n}\n@end\n@export clay.util.float\n@import clay.util.encode_float\n@import clay.util.decode_float\n@end\n@export clay.util.rgbm_decode\nvec3 RGBMDecode(vec4 rgbm, float range) {\n return range * rgbm.rgb * rgbm.a;\n}\n@end\n@export clay.util.rgbm_encode\nvec4 RGBMEncode(vec3 color, float range) {\n if (dot(color, color) == 0.0) {\n return vec4(0.0);\n }\n vec4 rgbm;\n color /= range;\n rgbm.a = clamp(max(max(color.r, color.g), max(color.b, 1e-6)), 0.0, 1.0);\n rgbm.a = ceil(rgbm.a * 255.0) / 255.0;\n rgbm.rgb = color / rgbm.a;\n return rgbm;\n}\n@end\n@export clay.util.rgbm\n@import clay.util.rgbm_decode\n@import clay.util.rgbm_encode\nvec4 decodeHDR(vec4 color)\n{\n#if defined(RGBM_DECODE) || defined(RGBM)\n return vec4(RGBMDecode(color, 51.5), 1.0);\n#else\n return color;\n#endif\n}\nvec4 encodeHDR(vec4 color)\n{\n#if defined(RGBM_ENCODE) || defined(RGBM)\n return RGBMEncode(color.xyz, 51.5);\n#else\n return color;\n#endif\n}\n@end\n@export clay.util.srgb\nvec4 sRGBToLinear(in vec4 value) {\n return vec4(mix(pow(value.rgb * 0.9478672986 + vec3(0.0521327014), vec3(2.4)), value.rgb * 0.0773993808, vec3(lessThanEqual(value.rgb, vec3(0.04045)))), value.w);\n}\nvec4 linearTosRGB(in vec4 value) {\n return vec4(mix(pow(value.rgb, vec3(0.41666)) * 1.055 - vec3(0.055), value.rgb * 12.92, vec3(lessThanEqual(value.rgb, vec3(0.0031308)))), value.w);\n}\n@end\n@export clay.chunk.skinning_header\n#ifdef SKINNING\nattribute vec3 weight : WEIGHT;\nattribute vec4 joint : JOINT;\nuniform mat4 skinMatrix[JOINT_COUNT] : SKIN_MATRIX;\nmat4 getSkinMatrix(float idx) {\n return skinMatrix[int(idx)];\n}\n#endif\n@end\n@export clay.chunk.skin_matrix\nmat4 skinMatrixWS = getSkinMatrix(joint.x) * weight.x;\nif (weight.y > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.y) * weight.y;\n}\nif (weight.z > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.z) * weight.z;\n}\nfloat weightW = 1.0-weight.x-weight.y-weight.z;\nif (weightW > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.w) * weightW;\n}\n@end\n@export clay.util.parallax_correct\nvec3 parallaxCorrect(in vec3 dir, in vec3 pos, in vec3 boxMin, in vec3 boxMax) {\n vec3 first = (boxMax - pos) / dir;\n vec3 second = (boxMin - pos) / dir;\n vec3 further = max(first, second);\n float dist = min(further.x, min(further.y, further.z));\n vec3 fixedPos = pos + dir * dist;\n vec3 boxCenter = (boxMax + boxMin) * 0.5;\n return normalize(fixedPos - boxCenter);\n}\n@end\n@export clay.util.clamp_sample\nvec4 clampSample(const in sampler2D texture, const in vec2 coord)\n{\n#ifdef STEREO\n float eye = step(0.5, coord.x) * 0.5;\n vec2 coordClamped = clamp(coord, vec2(eye, 0.0), vec2(0.5 + eye, 1.0));\n#else\n vec2 coordClamped = clamp(coord, vec2(0.0), vec2(1.0));\n#endif\n return texture2D(texture, coordClamped);\n}\n@end\n@export clay.util.ACES\nvec3 ACESToneMapping(vec3 color)\n{\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\n@end"},function(t,e,n){"use strict";e.a="\n@export ecgl.common.transformUniforms\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE;\nuniform mat4 world : WORLD;\n@end\n\n@export ecgl.common.attributes\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\nattribute vec3 normal : NORMAL;\n@end\n\n@export ecgl.common.uv.header\nuniform vec2 uvRepeat : [1.0, 1.0];\nuniform vec2 uvOffset : [0.0, 0.0];\nuniform vec2 detailUvRepeat : [1.0, 1.0];\nuniform vec2 detailUvOffset : [0.0, 0.0];\n\nvarying vec2 v_Texcoord;\nvarying vec2 v_DetailTexcoord;\n@end\n\n@export ecgl.common.uv.main\nv_Texcoord = texcoord * uvRepeat + uvOffset;\nv_DetailTexcoord = texcoord * detailUvRepeat + detailUvOffset;\n@end\n\n@export ecgl.common.uv.fragmentHeader\nvarying vec2 v_Texcoord;\nvarying vec2 v_DetailTexcoord;\n@end\n\n\n@export ecgl.common.albedo.main\n\n vec4 albedoTexel = vec4(1.0);\n#ifdef DIFFUSEMAP_ENABLED\n albedoTexel = texture2D(diffuseMap, v_Texcoord);\n #ifdef SRGB_DECODE\n albedoTexel = sRGBToLinear(albedoTexel);\n #endif\n#endif\n\n#ifdef DETAILMAP_ENABLED\n vec4 detailTexel = texture2D(detailMap, v_DetailTexcoord);\n #ifdef SRGB_DECODE\n detailTexel = sRGBToLinear(detailTexel);\n #endif\n albedoTexel.rgb = mix(albedoTexel.rgb, detailTexel.rgb, detailTexel.a);\n albedoTexel.a = detailTexel.a + (1.0 - detailTexel.a) * albedoTexel.a;\n#endif\n\n@end\n\n@export ecgl.common.wireframe.vertexHeader\n\n#ifdef WIREFRAME_QUAD\nattribute vec4 barycentric;\nvarying vec4 v_Barycentric;\n#elif defined(WIREFRAME_TRIANGLE)\nattribute vec3 barycentric;\nvarying vec3 v_Barycentric;\n#endif\n\n@end\n\n@export ecgl.common.wireframe.vertexMain\n\n#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE)\n v_Barycentric = barycentric;\n#endif\n\n@end\n\n\n@export ecgl.common.wireframe.fragmentHeader\n\nuniform float wireframeLineWidth : 1;\nuniform vec4 wireframeLineColor: [0, 0, 0, 0.5];\n\n#ifdef WIREFRAME_QUAD\nvarying vec4 v_Barycentric;\nfloat edgeFactor () {\n vec4 d = fwidth(v_Barycentric);\n vec4 a4 = smoothstep(vec4(0.0), d * wireframeLineWidth, v_Barycentric);\n return min(min(min(a4.x, a4.y), a4.z), a4.w);\n}\n#elif defined(WIREFRAME_TRIANGLE)\nvarying vec3 v_Barycentric;\nfloat edgeFactor () {\n vec3 d = fwidth(v_Barycentric);\n vec3 a3 = smoothstep(vec3(0.0), d * wireframeLineWidth, v_Barycentric);\n return min(min(a3.x, a3.y), a3.z);\n}\n#endif\n\n@end\n\n\n@export ecgl.common.wireframe.fragmentMain\n\n#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE)\n if (wireframeLineWidth > 0.) {\n vec4 lineColor = wireframeLineColor;\n#ifdef SRGB_DECODE\n lineColor = sRGBToLinear(lineColor);\n#endif\n\n gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor()) * lineColor.a);\n }\n#endif\n@end\n\n\n\n\n@export ecgl.common.bumpMap.header\n\n#ifdef BUMPMAP_ENABLED\nuniform sampler2D bumpMap;\nuniform float bumpScale : 1.0;\n\n\nvec3 bumpNormal(vec3 surfPos, vec3 surfNormal, vec3 baseNormal)\n{\n vec2 dSTdx = dFdx(v_Texcoord);\n vec2 dSTdy = dFdy(v_Texcoord);\n\n float Hll = bumpScale * texture2D(bumpMap, v_Texcoord).x;\n float dHx = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdx).x - Hll;\n float dHy = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdy).x - Hll;\n\n vec3 vSigmaX = dFdx(surfPos);\n vec3 vSigmaY = dFdy(surfPos);\n vec3 vN = surfNormal;\n\n vec3 R1 = cross(vSigmaY, vN);\n vec3 R2 = cross(vN, vSigmaX);\n\n float fDet = dot(vSigmaX, R1);\n\n vec3 vGrad = sign(fDet) * (dHx * R1 + dHy * R2);\n return normalize(abs(fDet) * baseNormal - vGrad);\n\n}\n#endif\n\n@end\n\n@export ecgl.common.normalMap.vertexHeader\n\n#ifdef NORMALMAP_ENABLED\nattribute vec4 tangent : TANGENT;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@end\n\n@export ecgl.common.normalMap.vertexMain\n\n#ifdef NORMALMAP_ENABLED\n if (dot(tangent, tangent) > 0.0) {\n v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz);\n v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w);\n }\n#endif\n\n@end\n\n\n@export ecgl.common.normalMap.fragmentHeader\n\n#ifdef NORMALMAP_ENABLED\nuniform sampler2D normalMap;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@end\n\n@export ecgl.common.normalMap.fragmentMain\n#ifdef NORMALMAP_ENABLED\n if (dot(v_Tangent, v_Tangent) > 0.0) {\n vec3 normalTexel = texture2D(normalMap, v_DetailTexcoord).xyz;\n if (dot(normalTexel, normalTexel) > 0.0) { N = normalTexel * 2.0 - 1.0;\n mat3 tbn = mat3(v_Tangent, v_Bitangent, v_Normal);\n N = normalize(tbn * N);\n }\n }\n#endif\n@end\n\n\n\n@export ecgl.common.vertexAnimation.header\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute vec3 prevNormal;\nuniform float percent;\n#endif\n\n@end\n\n@export ecgl.common.vertexAnimation.main\n\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n vec3 norm = mix(prevNormal, normal, percent);\n#else\n vec3 pos = position;\n vec3 norm = normal;\n#endif\n\n@end\n\n\n@export ecgl.common.ssaoMap.header\n#ifdef SSAOMAP_ENABLED\nuniform sampler2D ssaoMap;\nuniform vec4 viewport : VIEWPORT;\n#endif\n@end\n\n@export ecgl.common.ssaoMap.main\n float ao = 1.0;\n#ifdef SSAOMAP_ENABLED\n ao = texture2D(ssaoMap, (gl_FragCoord.xy - viewport.xy) / viewport.zw).r;\n#endif\n@end\n\n\n\n\n@export ecgl.common.diffuseLayer.header\n\n#if (LAYER_DIFFUSEMAP_COUNT > 0)\nuniform float layerDiffuseIntensity[LAYER_DIFFUSEMAP_COUNT];\nuniform sampler2D layerDiffuseMap[LAYER_DIFFUSEMAP_COUNT];\n#endif\n\n@end\n\n@export ecgl.common.emissiveLayer.header\n\n#if (LAYER_EMISSIVEMAP_COUNT > 0)\nuniform float layerEmissionIntensity[LAYER_EMISSIVEMAP_COUNT];\nuniform sampler2D layerEmissiveMap[LAYER_EMISSIVEMAP_COUNT];\n#endif\n\n@end\n\n@export ecgl.common.layers.header\n@import ecgl.common.diffuseLayer.header\n@import ecgl.common.emissiveLayer.header\n@end\n\n@export ecgl.common.diffuseLayer.main\n\n#if (LAYER_DIFFUSEMAP_COUNT > 0)\n for (int _idx_ = 0; _idx_ < LAYER_DIFFUSEMAP_COUNT; _idx_++) {{\n float intensity = layerDiffuseIntensity[_idx_];\n vec4 texel2 = texture2D(layerDiffuseMap[_idx_], v_Texcoord);\n #ifdef SRGB_DECODE\n texel2 = sRGBToLinear(texel2);\n #endif\n albedoTexel.rgb = mix(albedoTexel.rgb, texel2.rgb * intensity, texel2.a);\n albedoTexel.a = texel2.a + (1.0 - texel2.a) * albedoTexel.a;\n }}\n#endif\n\n@end\n\n@export ecgl.common.emissiveLayer.main\n\n#if (LAYER_EMISSIVEMAP_COUNT > 0)\n for (int _idx_ = 0; _idx_ < LAYER_EMISSIVEMAP_COUNT; _idx_++)\n {{\n vec4 texel2 = texture2D(layerEmissiveMap[_idx_], v_Texcoord) * layerEmissionIntensity[_idx_];\n #ifdef SRGB_DECODE\n texel2 = sRGBToLinear(texel2);\n #endif\n float intensity = layerEmissionIntensity[_idx_];\n gl_FragColor.rgb += texel2.rgb * texel2.a * intensity;\n }}\n#endif\n\n@end\n"},function(t,e,n){"use strict";e.a="@export ecgl.color.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\n@import ecgl.common.uv.header\n\nattribute vec2 texcoord : TEXCOORD_0;\nattribute vec3 position: POSITION;\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nuniform float percent : 1.0;\n#endif\n\nvoid main()\n{\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n#else\n vec3 pos = position;\n#endif\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n @import ecgl.common.uv.main\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n\n}\n\n@end\n\n@export ecgl.color.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n\nuniform sampler2D diffuseMap;\nuniform sampler2D detailMap;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n@import ecgl.common.layers.header\n\n@import ecgl.common.uv.fragmentHeader\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color);\n#else\n gl_FragColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n gl_FragColor *= albedoTexel;\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n\n}\n@end"},function(t,e,n){"use strict";e.a="/**\n * http: */\n\n@export ecgl.lambert.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n\n@import ecgl.common.attributes\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.vertexAnimation.header\n\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nvoid main()\n{\n @import ecgl.common.uv.main\n\n @import ecgl.common.vertexAnimation.main\n\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz);\n v_WorldPosition = (world * vec4(pos, 1.0)).xyz;\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n}\n\n@end\n\n\n@export ecgl.lambert.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform sampler2D diffuseMap;\nuniform sampler2D detailMap;\n\n@import ecgl.common.layers.header\n\nuniform float emissionIntensity: 1.0;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color);\n#else\n gl_FragColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n gl_FragColor *= sRGBToLinear(v_Color);\n #else\n gl_FragColor *= v_Color;\n #endif\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n gl_FragColor *= albedoTexel;\n\n vec3 N = v_Normal;\n#ifdef DOUBLE_SIDED\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n vec3 diffuseColor = vec3(0.0, 0.0, 0.0);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++)\n {\n diffuseColor += ambientLightColor[i] * ambientFactor * ao;\n }\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n diffuseColor += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao;\n }}\n#endif\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++)\n {\n vec3 lightDirection = -directionalLightDirection[i];\n vec3 lightColor = directionalLightColor[i];\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[i];\n }\n#endif\n\n float ndl = dot(N, normalize(lightDirection)) * shadowContrib;\n\n diffuseColor += lightColor * clamp(ndl, 0.0, 1.0);\n }\n#endif\n\n gl_FragColor.rgb *= diffuseColor;\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end"},function(t,e,n){"use strict";e.a="@export ecgl.realistic.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n@import ecgl.common.attributes\n\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef NORMALMAP_ENABLED\nattribute vec4 tangent : TANGENT;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@import ecgl.common.vertexAnimation.header\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nvoid main()\n{\n\n @import ecgl.common.uv.main\n\n @import ecgl.common.vertexAnimation.main\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz);\n v_WorldPosition = (world * vec4(pos, 1.0)).xyz;\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n#ifdef NORMALMAP_ENABLED\n v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz);\n v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w);\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n\n}\n\n@end\n\n\n\n@export ecgl.realistic.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n#define PI 3.14159265358979\n#define ROUGHNESS_CHANEL 0\n#define METALNESS_CHANEL 1\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform sampler2D diffuseMap;\n\nuniform sampler2D detailMap;\nuniform sampler2D metalnessMap;\nuniform sampler2D roughnessMap;\n\n@import ecgl.common.layers.header\n\nuniform float emissionIntensity: 1.0;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nuniform float metalness : 0.0;\nuniform float roughness : 0.5;\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT\n@import clay.header.ambient_cubemap_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n@import ecgl.common.normalMap.fragmentHeader\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import clay.util.rgbm\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nvec3 F_Schlick(float ndv, vec3 spec) {\n return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0);\n}\n\nfloat D_Phong(float g, float ndh) {\n float a = pow(8192.0, g);\n return (a + 2.0) / 8.0 * pow(ndh, a);\n}\n\nvoid main()\n{\n vec4 albedoColor = color;\n\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n albedoColor *= sRGBToLinear(v_Color);\n #else\n albedoColor *= v_Color;\n #endif\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n albedoColor *= albedoTexel;\n\n float m = metalness;\n\n#ifdef METALNESSMAP_ENABLED\n float m2 = texture2D(metalnessMap, v_DetailTexcoord)[METALNESS_CHANEL];\n m = clamp(m2 + (m - 0.5) * 2.0, 0.0, 1.0);\n#endif\n\n vec3 baseColor = albedoColor.rgb;\n albedoColor.rgb = baseColor * (1.0 - m);\n vec3 specFactor = mix(vec3(0.04), baseColor, m);\n\n float g = 1.0 - roughness;\n\n#ifdef ROUGHNESSMAP_ENABLED\n float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL];\n g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0);\n#endif\n\n vec3 N = v_Normal;\n\n#ifdef DOUBLE_SIDED\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n@import ecgl.common.normalMap.fragmentMain\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n vec3 diffuseTerm = vec3(0.0);\n vec3 specularTerm = vec3(0.0);\n\n float ndv = clamp(dot(N, V), 0.0, 1.0);\n vec3 fresnelTerm = F_Schlick(ndv, specFactor);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_LIGHT_COUNT; _idx_++)\n {{\n diffuseTerm += ambientLightColor[_idx_] * ambientFactor * ao;\n }}\n#endif\n\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n diffuseTerm += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao;\n }}\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++)\n {{\n vec3 L = -directionalLightDirection[_idx_];\n vec3 lc = directionalLightColor[_idx_];\n\n vec3 H = normalize(L + V);\n float ndl = clamp(dot(N, normalize(L)), 0.0, 1.0);\n float ndh = clamp(dot(N, H), 0.0, 1.0);\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[_idx_];\n }\n#endif\n\n vec3 li = lc * ndl * shadowContrib;\n\n diffuseTerm += li;\n specularTerm += li * fresnelTerm * D_Phong(g, ndh);\n }}\n#endif\n\n\n#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT\n vec3 L = reflect(-V, N);\n L = vec3(L.x, L[NORMAL_UP_AXIS], L[NORMAL_FRONT_AXIS]);\n float rough2 = clamp(1.0 - g, 0.0, 1.0);\n float bias2 = rough2 * 5.0;\n vec2 brdfParam2 = texture2D(ambientCubemapLightBRDFLookup[0], vec2(rough2, ndv)).xy;\n vec3 envWeight2 = specFactor * brdfParam2.x + brdfParam2.y;\n vec3 envTexel2;\n for(int _idx_ = 0; _idx_ < AMBIENT_CUBEMAP_LIGHT_COUNT; _idx_++)\n {{\n envTexel2 = RGBMDecode(textureCubeLodEXT(ambientCubemapLightCubemap[_idx_], L, bias2), 51.5);\n specularTerm += ambientCubemapLightColor[_idx_] * envTexel2 * envWeight2 * ao;\n }}\n#endif\n\n gl_FragColor.rgb = albedoColor.rgb * diffuseTerm + specularTerm;\n gl_FragColor.a = albedoColor.a;\n\n#ifdef SRGB_ENCODE\n gl_FragColor = linearTosRGB(gl_FragColor);\n#endif\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end"},function(t,e,n){"use strict";e.a="@export ecgl.hatching.vertex\n\n@import ecgl.realistic.vertex\n\n@end\n\n\n@export ecgl.hatching.fragment\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform vec4 color : [0.0, 0.0, 0.0, 1.0];\nuniform vec4 paperColor : [1.0, 1.0, 1.0, 1.0];\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nuniform sampler2D hatch1;\nuniform sampler2D hatch2;\nuniform sampler2D hatch3;\nuniform sampler2D hatch4;\nuniform sampler2D hatch5;\nuniform sampler2D hatch6;\n\nfloat shade(in float tone) {\n vec4 c = vec4(1. ,1., 1., 1.);\n float step = 1. / 6.;\n vec2 uv = v_DetailTexcoord;\n if (tone <= step / 2.0) {\n c = mix(vec4(0.), texture2D(hatch6, uv), 12. * tone);\n }\n else if (tone <= step) {\n c = mix(texture2D(hatch6, uv), texture2D(hatch5, uv), 6. * tone);\n }\n if(tone > step && tone <= 2. * step){\n c = mix(texture2D(hatch5, uv), texture2D(hatch4, uv) , 6. * (tone - step));\n }\n if(tone > 2. * step && tone <= 3. * step){\n c = mix(texture2D(hatch4, uv), texture2D(hatch3, uv), 6. * (tone - 2. * step));\n }\n if(tone > 3. * step && tone <= 4. * step){\n c = mix(texture2D(hatch3, uv), texture2D(hatch2, uv), 6. * (tone - 3. * step));\n }\n if(tone > 4. * step && tone <= 5. * step){\n c = mix(texture2D(hatch2, uv), texture2D(hatch1, uv), 6. * (tone - 4. * step));\n }\n if(tone > 5. * step){\n c = mix(texture2D(hatch1, uv), vec4(1.), 6. * (tone - 5. * step));\n }\n\n return c.r;\n}\n\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n vec4 inkColor = sRGBToLinear(color);\n#else\n vec4 inkColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n inkColor *= sRGBToLinear(v_Color);\n #else\n inkColor *= v_Color;\n #endif\n#endif\n\n vec3 N = v_Normal;\n#ifdef DOUBLE_SIDED\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float tone = 0.0;\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++)\n {\n tone += dot(ambientLightColor[i], w) * ambientFactor * ao;\n }\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n tone += dot(calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_], w) * ao;\n }}\n#endif\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++)\n {\n vec3 lightDirection = -directionalLightDirection[i];\n float lightTone = dot(directionalLightColor[i], w);\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[i];\n }\n#endif\n\n float ndl = dot(N, normalize(lightDirection)) * shadowContrib;\n\n tone += lightTone * clamp(ndl, 0.0, 1.0);\n }\n#endif\n\n gl_FragColor = mix(inkColor, paperColor, shade(clamp(tone, 0.0, 1.0)));\n }\n@end\n"},function(t,e,n){"use strict";e.a="@export ecgl.sm.depth.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec3 position : POSITION;\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nuniform float percent : 1.0;\n#endif\n\nvarying vec4 v_ViewPosition;\n\nvoid main(){\n\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n#else\n vec3 pos = position;\n#endif\n\n v_ViewPosition = worldViewProjection * vec4(pos, 1.0);\n gl_Position = v_ViewPosition;\n\n}\n@end\n\n\n\n@export ecgl.sm.depth.fragment\n\n@import clay.sm.depth.fragment\n\n@end"},function(t,e,n){"use strict";n(134),n(138),n(139),n(145);var i=n(0),r=n.n(i);r.a.registerAction({type:"grid3DChangeCamera",event:"grid3dcamerachanged",update:"series:updateCamera"},(function(t,e){e.eachComponent({mainType:"grid3D",query:t},(function(e){e.setView(t)}))})),r.a.registerAction({type:"grid3DShowAxisPointer",event:"grid3dshowaxispointer",update:"grid3D:showAxisPointer"},(function(t,e){})),r.a.registerAction({type:"grid3DHideAxisPointer",event:"grid3dhideaxispointer",update:"grid3D:hideAxisPointer"},(function(t,e){}))},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(135),o=r.a.extendComponentModel({type:"cartesian3DAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid3D",index:this.option.gridIndex,id:this.option.gridId})[0]}});function s(t,e){return e.type||(e.data?"category":"value")}r.a.helper.mixinAxisModelCommonMethods(o),Object(a.a)("x",o,s,{name:"X"}),Object(a.a)("y",o,s,{name:"Y"}),Object(a.a)("z",o,s,{name:"Z"})},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(136),o=n(137),s=n.n(o),l=["value","category","time","log"];e.a=function(t,e,n,i){r.a.util.each(l,(function(o){e.extend({type:t+"Axis3D."+o,__ordinalMeta:null,mergeDefaultAndTheme:function(e,i){var a=i.getTheme();r.a.util.merge(e,a.get(o+"Axis3D")),r.a.util.merge(e,this.getDefaultOption()),e.type=n(t,e)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=s.a.createByAxisModel(this))},getCategories:function(){if("category"===this.option.type)return this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:r.a.util.merge(r.a.util.clone(a.a[o+"Axis3D"]),i||{},!0)})})),e.superClass.registerSubTypeDefaulter(t+"Axis3D",r.a.util.curry(n,t))}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a={show:!0,grid3DIndex:0,inverse:!1,name:"",nameLocation:"middle",nameTextStyle:{fontSize:16},nameGap:20,axisPointer:{},axisLine:{},axisTick:{},axisLabel:{},splitArea:{}},o=r.a.util.merge({boundaryGap:!0,axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"},axisPointer:{label:{show:!1}}},a),s=r.a.util.merge({boundaryGap:[0,0],splitNumber:5,axisPointer:{label:{}}},a),l=r.a.util.defaults({scale:!0,min:"dataMin",max:"dataMax"},s),u=r.a.util.defaults({logBase:10},s);u.scale=!0,e.a={categoryAxis3D:o,valueAxis3D:s,timeAxis3D:l,logAxis3D:u}},function(t,e,n){var i=n(12),r=i.createHashMap,a=i.isObject,o=i.map;function s(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}s.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&o(n,c);return new s({categories:i,needCollect:!i,deduplication:!1!==e.dedplication})};var l=s.prototype;function u(t){return t._map||(t._map=r(t.categories))}function c(t){return a(t)&&null!=t.value?t.value:t+""}l.getOrdinal=function(t){return u(this).get(t)},l.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=u(this);return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e};var h=s;t.exports=h},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(38),o=n(31),s=n(32),l=r.a.extendComponentModel({type:"grid3D",dependencies:["xAxis3D","yAxis3D","zAxis3D"],defaultOption:{show:!0,zlevel:-10,left:0,top:0,width:"100%",height:"100%",environment:"auto",boxWidth:100,boxHeight:100,boxDepth:100,axisPointer:{show:!0,lineStyle:{color:"rgba(0, 0, 0, 0.8)",width:1},label:{show:!0,formatter:null,margin:8,textStyle:{fontSize:14,color:"#fff",backgroundColor:"rgba(0,0,0,0.5)",padding:3,borderRadius:3}}},axisLine:{show:!0,lineStyle:{color:"#333",width:2,type:"solid"}},axisTick:{show:!0,inside:!1,length:3,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}},light:{main:{alpha:30,beta:40},ambient:{intensity:.4}},viewControl:{alpha:20,beta:40,autoRotate:!1,distance:200,minDistance:40,maxDistance:400}}});r.a.util.merge(l.prototype,a.a),r.a.util.merge(l.prototype,o.a),r.a.util.merge(l.prototype,s.a)},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(2),o=n(39),s=n(22),l=n(3),u=n(73),c=n(34),h=n(140),d=n(142),f=n(58),p=n(40),g=l.a.firstNotNull;a.a.Shader.import(p.a),["x","y","z"].forEach((function(t){r.a.extendComponentView({type:t+"Axis3D"})}));var m={x:0,y:2,z:1};r.a.extendComponentView({type:"grid3D",__ecgl__:!0,init:function(t,e){var n=new a.a.Material({shader:a.a.createShader("ecgl.color"),depthMask:!1,transparent:!0}),i=new a.a.Material({shader:a.a.createShader("ecgl.meshLines3D"),depthMask:!1,transparent:!0});n.define("fragment","DOUBLE_SIDED"),n.define("both","VERTEX_COLOR"),this.groupGL=new a.a.Node,this._control=new o.a({zr:e.getZr()}),this._control.init(),this._faces=[["y","z","x",-1,"left"],["y","z","x",1,"right"],["x","y","z",-1,"bottom"],["x","y","z",1,"top"],["x","z","y",-1,"far"],["x","z","y",1,"near"]].map((function(t){var e=new h.a(t,i,n);return this.groupGL.add(e.rootNode),e}),this),this._axes=["x","y","z"].map((function(t){var e=new d.a(t,i);return this.groupGL.add(e.rootNode),e}),this);var r=e.getDevicePixelRatio();this._axisLabelSurface=new u.a({width:256,height:256,devicePixelRatio:r}),this._axisLabelSurface.onupdate=function(){e.getZr().refresh()},this._axisPointerLineMesh=new a.a.Mesh({geometry:new s.a({useNativeLine:!1}),material:i,castShadow:!1,ignorePicking:!0,renderOrder:3}),this.groupGL.add(this._axisPointerLineMesh),this._axisPointerLabelsSurface=new u.a({width:128,height:128,devicePixelRatio:r}),this._axisPointerLabelsMesh=new f.a({ignorePicking:!0,renderOrder:4,castShadow:!1}),this._axisPointerLabelsMesh.material.set("textureAtlas",this._axisPointerLabelsSurface.getTexture()),this.groupGL.add(this._axisPointerLabelsMesh),this._lightRoot=new a.a.Node,this._sceneHelper=new c.a,this._sceneHelper.initLight(this._lightRoot)},render:function(t,e,n){this._model=t,this._api=n;var i=t.coordinateSystem;i.viewGL.add(this._lightRoot),t.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL);var r=this._control;r.setViewGL(i.viewGL);var a=t.getModel("viewControl");r.setFromViewControlModel(a,0),this._axisLabelSurface.clear();var o=["x","y","z"].reduce((function(e,n){var r=i.getAxis(n),a=r.model;return e[n]=g(a.get("axisLabel.interval"),t.get("axisLabel.interval")),"ordinal"===r.scale.type&&(null!=e[n]&&"auto"!=e[n]||(e[n]=Math.floor(r.scale.getTicks().length/8))),e}),{});r.off("update"),t.get("show")&&(this._faces.forEach((function(i){i.update(o,t,e,n)}),this),this._axes.forEach((function(e){e.update(t,o,this._axisLabelSurface,n)}),this)),r.on("update",this._onCameraChange.bind(this,t,n),this),this._sceneHelper.setScene(i.viewGL.scene),this._sceneHelper.updateLight(t),i.viewGL.setPostEffect(t.getModel("postEffect"),n),i.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling")),this._initMouseHandler(t)},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n)},showAxisPointer:function(t,e,n,i){this._doShowAxisPointer(),this._updateAxisPointer(i.value)},hideAxisPointer:function(t,e,n,i){this._doHideAxisPointer()},_initMouseHandler:function(t){var e=t.coordinateSystem.viewGL;t.get("show")&&t.get("axisPointer.show")?e.on("mousemove",this._updateAxisPointerOnMousePosition,this):e.off("mousemove",this._updateAxisPointerOnMousePosition)},_updateAxisPointerOnMousePosition:function(t){if(!t.target){for(var e,n=this._model.coordinateSystem,i=n.viewGL,r=i.castRay(t.offsetX,t.offsetY,new a.a.Ray),o=0;oi[1]?0:1,s=this._faces[2*n+o],l=this._faces[2*n+1-o];s.rootNode.invisible=!0,l.rootNode.invisible=!1}},_updateAxisLinePosition:function(){var t=this._model.coordinateSystem,e=t.getAxis("x"),n=t.getAxis("y"),i=t.getAxis("z"),r=i.getExtentMax(),a=i.getExtentMin(),o=e.getExtentMin(),s=e.getExtentMax(),l=n.getExtentMax(),u=n.getExtentMin(),c=this._axes[0].rootNode,h=this._axes[1].rootNode,d=this._axes[2].rootNode,f=this._faces,p=f[4].rootNode.invisible?u:l,g=f[2].rootNode.invisible?r:a,m=f[0].rootNode.invisible?o:s,v=f[2].rootNode.invisible?r:a,y=f[0].rootNode.invisible?s:o,x=f[4].rootNode.invisible?u:l;c.rotation.identity(),h.rotation.identity(),d.rotation.identity(),f[4].rootNode.invisible&&(this._axes[0].flipped=!0,c.rotation.rotateX(Math.PI)),f[0].rootNode.invisible&&(this._axes[1].flipped=!0,h.rotation.rotateZ(Math.PI)),f[4].rootNode.invisible&&(this._axes[2].flipped=!0,d.rotation.rotateY(Math.PI)),c.position.set(0,g,p),h.position.set(m,v,0),d.position.set(y,0,x),c.update(),h.update(),d.update(),this._updateAxisLabelAlign()},_updateAxisLabelAlign:function(){var t=this._control.getCamera(),e=[new a.a.Vector4,new a.a.Vector4],n=new a.a.Vector4;this.groupGL.getWorldPosition(n),n.w=1,n.transformMat4(t.viewMatrix).transformMat4(t.projectionMatrix),n.x/=n.w,n.y/=n.w,this._axes.forEach((function(i){for(var r=i.axisLineCoords,a=(i.labelsMesh.geometry,0);an.y?"bottom":"top"):(s="middle",o=c>n.x?"left":"right"),i.setSpriteAlign(o,s,this._api)}),this)},_doShowAxisPointer:function(){this._axisPointerLineMesh.invisible&&(this._axisPointerLineMesh.invisible=!1,this._axisPointerLabelsMesh.invisible=!1,this._api.getZr().refresh())},_doHideAxisPointer:function(){this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!0,this._axisPointerLabelsMesh.invisible=!0,this._api.getZr().refresh())},_updateAxisPointer:function(t){var e=this._model.coordinateSystem,n=e.dataToPoint(t),i=this._axisPointerLineMesh.geometry,r=this._model.getModel("axisPointer"),o=this._api.getDevicePixelRatio();function s(t){return l.a.firstNotNull(t.model.get("axisPointer.show"),r.get("show"))}function u(t){var e=t.model.getModel("axisPointer",r).getModel("lineStyle"),n=a.a.parseColor(e.get("color")),i=g(e.get("width"),1),o=g(e.get("opacity"),1);return n[3]*=o,{color:n,lineWidth:i}}i.convertToDynamicArray(!0);for(var c=0;c0&&t.rotation.rotateY(Math.PI),e.normal.z=-i)}(this.rootNode,this.plane,l,this.faceInfo[3])},d.prototype._updateSplitLines=function(t,e,n,i,o){var s=o.getDevicePixelRatio();e.forEach((function(o,l){var h=o.model,d=e[1-l].getExtent();if(!o.scale.isBlank()){var f=h.getModel("splitLine",n.getModel("splitLine"));if(f.get("show")){var p=f.getModel("lineStyle"),g=p.get("color"),m=c(p.get("opacity"),1),v=c(p.get("width"),1),y=f.get("interval");null!=y&&"auto"!==y||(y=i[o.dim]),g=r.a.util.isArray(g)?g:[g];for(var x=o.getTicksCoords(),b=0,_=0;_65535?new Uint32Array(3*i):new Uint16Array(3*i))},getQuadVertexCount:function(){return 4},getQuadTriangleCount:function(){return 2},addQuad:(i=d.create(),r=d.create(),a=d.create(),o=[0,3,1,3,2,1],function(t,e){var n=this.attributes.position,s=this.attributes.normal,l=this.attributes.color;d.sub(i,t[1],t[0]),d.sub(r,t[2],t[1]),d.cross(a,i,r),d.normalize(a,a);for(var u=0;u<4;u++)n.set(this._vertexOffset+u,t[u]),l.set(this._vertexOffset+u,e),s.set(this._vertexOffset+u,a);var c=3*this._faceOffset;for(u=0;u<6;u++)this.indices[c+u]=o[u]+this._vertexOffset;this._vertexOffset+=4,this._faceOffset+=2})});u.a.util.defaults(f.prototype,c.a),e.a=f},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(2),o=n(22),s=n(3),l=n(58),u=n(74),c=s.a.firstNotNull,h={x:0,y:2,z:1};function d(t,e){var n=new a.a.Mesh({geometry:new o.a({useNativeLine:!1}),material:e,castShadow:!1,ignorePicking:!0,renderOrder:2}),i=new l.a;i.material.depthMask=!1;var r=new a.a.Node;r.add(n),r.add(i),this.rootNode=r,this.dim=t,this.linesMesh=n,this.labelsMesh=i,this.axisLineCoords=null,this.labelElements=[]}var f={x:"y",y:"x",z:"y"};d.prototype.update=function(t,e,n,i){var o=t.coordinateSystem.getAxis(this.dim),s=e[this.dim],l=this.linesMesh.geometry,d=this.labelsMesh.geometry;l.convertToDynamicArray(!0),d.convertToDynamicArray(!0);var p=o.model,g=o.getExtent(),m=i.getDevicePixelRatio(),v=p.getModel("axisLine",t.getModel("axisLine")),y=p.getModel("axisTick",t.getModel("axisTick")),x=p.getModel("axisLabel",t.getModel("axisLabel")),b=v.get("lineStyle.color");if(v.get("show")){var _=v.getModel("lineStyle"),E=[0,0,0];(L=[0,0,0])[R=h[o.dim]]=g[0],E[R]=g[1],this.axisLineCoords=[L,E];var w=a.a.parseColor(b),T=c(_.get("width"),1),S=c(_.get("opacity"),1);w[3]*=S,l.addLine(L,E,w,T*m)}if(y.get("show")){var M=y.getModel("lineStyle"),C=a.a.parseColor(c(M.get("color"),b));T=c(M.get("width"),1),C[3]*=c(M.get("opacity"),1);var A=o.getTicksCoords();null!=(B=y.get("interval"))&&"auto"!==B||(B=s);for(var O=y.get("length"),N=0;N65535?new Uint32Array(3*n):new Uint16Array(3*n))},setSpriteAlign:function(t,e,n,i,r){var a,o,s,l;switch(null==n&&(n="left"),null==i&&(i="top"),r=r||0,n){case"left":a=r,s=e[0]+r;break;case"center":case"middle":a=-e[0]/2,s=e[0]/2;break;case"right":a=-e[0]-r,s=-r}switch(i){case"bottom":o=r,l=e[1]+r;break;case"middle":o=-e[1]/2,l=e[1]/2;break;case"top":o=-e[1]-r,l=-r}var u=4*t,c=this.attributes.offset;c.set(u,[a,l]),c.set(u+1,[s,l]),c.set(u+2,[s,o]),c.set(u+3,[a,o])},addSprite:function(t,e,n,i,r,a){var o=this._vertexOffset;this.setSprite(this._vertexOffset/4,t,e,n,i,r,a);for(var l=0;l/g,">").replace(/"/g,""").replace(/'/g,"'")}var l=["a","b","c","d","e","f","g"],u=function(t,e){return"{"+t+(null==e?"":e)+"}"},c=function(t){return t<10?"0"+t:t},h=r.truncateText,d=r.getBoundingRect;e.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")},e.toCamelCase=function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},e.normalizeCssArray=o,e.encodeHTML=s,e.formatTpl=function(t,e,n){i.isArray(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],o=0;o':'':""},e.formatTime=function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=a.parseDate(e),r=n?"UTC":"",o=i["get"+r+"FullYear"](),s=i["get"+r+"Month"]()+1,l=i["get"+r+"Date"](),u=i["get"+r+"Hours"](),h=i["get"+r+"Minutes"](),d=i["get"+r+"Seconds"]();return t=t.replace("MM",c(s)).replace("M",s).replace("yyyy",o).replace("yy",o%100).replace("dd",c(l)).replace("d",l).replace("hh",c(u)).replace("h",u).replace("mm",c(h)).replace("m",h).replace("ss",c(d)).replace("s",d)},e.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},e.truncateText=h,e.getTextRect=d},function(t,e,n){var i=n(75),r=n(151),a=n(12),o=a.getContext,s=a.extend,l=a.retrieve2,u=a.retrieve3,c={},h=0,d=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,f="12px sans-serif",p={};function g(t,e){var n=t+":"+(e=e||f);if(c[n])return c[n];for(var i=(t+"").split("\n"),r=0,a=0,o=i.length;a5e3&&(h=0,c={}),h++,c[n]=r,r}function m(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function v(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function y(t,e,n,i,r){if(!e)return"";var a=(t+"").split("\n");r=x(e,n,i,r);for(var o=0,s=a.length;o=a;u++)o-=a;var c=g(n);return c>o&&(n="",c=0),o=t-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=o,i.containerWidth=t,i}function b(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var a=g(t,i);if(a<=n)return t;for(var o=0;;o++){if(a<=r||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?_(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;a=g(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function _(t,e,n,i){for(var r=0,a=0,o=t.length;al)t="",a=[];else if(null!=u)for(var c=x(u-(n?n[1]+n[3]:0),e,i.ellipsis,{minChar:i.minChar,placeholder:i.placeholder}),h=0,d=a.length;ha&&M(n,t.substring(a,o)),M(n,i[2],i[1]),a=d.lastIndex}ax)return{lines:[],width:0,height:0};B.textWidth=g(B.text,O);var P=C.textWidth,L=null==P||"auto"===P;if("string"==typeof P&&"%"===P.charAt(P.length-1))B.percentWidth=P,f.push(B),P=0;else{if(L){P=B.textWidth;var R=C.textBackgroundColor,D=R&&R.image;D&&(D=r.findExistImage(D),r.isImageReady(D)&&(P=Math.max(P,D.width*N/D.height)))}var k=A?A[1]+A[3]:0;P+=k;var I=null!=v?v-T:null;null!=I&&I4){console.warn("Support at most 4 cascade");continue}v.shadowCascade>1&&(o=v.shadowCascade),this.renderDirectionalLightShadow(t,e,n,v,this._opaqueCasters,p,c,u)}else v instanceof h.a?this.renderSpotLightShadow(t,e,v,this._opaqueCasters,l,s):v instanceof f.a&&this.renderPointLightShadow(t,e,v,this._opaqueCasters,g);this._shadowMapNumber[v.type]++}for(var y in this._shadowMapNumber){var x=this._shadowMapNumber[y],b=y+"_SHADOWMAP_COUNT";for(m=0;m0?_.define("fragment",b,x):_.isDefined("fragment",b)&&_.undefine("fragment",b))}for(m=0;m0){var w=u.map(C);if(E.directionalLightShadowMaps={value:u,type:"tv"},E.directionalLightMatrices={value:c,type:"m4v"},E.directionalLightShadowMapSizes={value:w,type:"1fv"},o){var T=p.slice(),S=p.slice();T.pop(),S.shift(),T.reverse(),S.reverse(),c.reverse(),E.shadowCascadeClipsNear={value:T,type:"1fv"},E.shadowCascadeClipsFar={value:S,type:"1fv"}}}if(s.length>0){var M=s.map(C);(E=e.shadowUniforms).spotLightShadowMaps={value:s,type:"tv"},E.spotLightMatrices={value:l,type:"m4v"},E.spotLightShadowMapSizes={value:M,type:"1fv"}}g.length>0&&(E.pointLightShadowMaps={value:g,type:"tv"})}function C(t){return t.height}},renderDirectionalLightShadow:(A=new s.a,O=new l.a,N=new o.a,P=new l.a,L=new l.a,R=new l.a,D=new l.a,function(t,e,n,i,r,a,o,s){var c=this._getDepthMaterial(i),h={getMaterial:function(t){return t.shadowDepthMaterial||c},sortCompare:u.a.opaqueSortCompare};if(!e.viewBoundingBoxLastFrame.isFinite()){var d=e.getBoundingBox();e.viewBoundingBoxLastFrame.copy(d).applyTransform(n.viewMatrix)}var f=Math.min(-e.viewBoundingBoxLastFrame.min.z,n.far),p=Math.max(-e.viewBoundingBoxLastFrame.max.z,n.near),g=this._getDirectionalLightCamera(i,e,n),m=R.array;D.copy(g.projectionMatrix),M.invert(L.array,g.worldTransform.array),M.multiply(L.array,L.array,n.worldTransform.array),M.multiply(m,D.array,L.array);for(var v=[],y=n instanceof x.a,b=(n.near+n.far)/(n.near-n.far),_=2*n.near*n.far/(n.near-n.far),E=0;E<=i.shadowCascade;E++){var w=p*Math.pow(f/p,E/i.shadowCascade),T=p+(f-p)*E/i.shadowCascade,S=w*i.cascadeSplitLogFactor+T*(1-i.cascadeSplitLogFactor);v.push(S),a.push(-(-S*b+_)/-S)}var C=this._getTexture(i,i.shadowCascade);s.push(C);var I=t.viewport,B=t.gl;for(this._frameBuffer.attach(C),this._frameBuffer.bind(t),B.clear(B.COLOR_BUFFER_BIT|B.DEPTH_BUFFER_BIT),E=0;E=0||(this.nodes.push(t),this._dirty=!0)},removeNode:function(t){"string"==typeof t&&(t=this.getNodeByName(t));var e=this.nodes.indexOf(t);e>=0&&(this.nodes.splice(e,1),this._dirty=!0)},getNodeByName:function(t){for(var e=0;e=n.COLOR_ATTACHMENT0&&h<=n.COLOR_ATTACHMENT0+8&&c.push(h);u.drawBuffersEXT(c)}t.saveClear(),t.clearBit=r.a.DEPTH_BUFFER_BIT|r.a.COLOR_BUFFER_BIT,e=t.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ),t.restoreClear(),i.unbind(t)}else e=t.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ);this.trigger("afterrender",e),this._rendering=!1,this._rendered=!0}});e.a=o},function(t,e,n){"use strict";var i=n(42).a.extend((function(){return{texture:null,outputs:{color:{}}}}),(function(){}),{getOutput:function(t,e){return this.texture},beforeFrame:function(){},afterFrame:function(){}});e.a=i},function(t,e,n){"use strict";var i=n(14),r=n(42),a=r.a.extend((function(){return{name:"",inputs:{},outputs:null,shader:"",inputLinks:{},outputLinks:{},pass:null,_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}}),(function(){var t=new i.a({fragment:this.shader});this.pass=t}),{render:function(t,e){this.trigger("beforerender",t),this._rendering=!0;var n=t.gl;for(var i in this.inputLinks){var r=(h=this.inputLinks[i]).node.getOutput(t,h.pin);this.pass.setUniform(i,r)}if(this.outputs){this.pass.outputs={};var a={};for(var o in this.outputs){var s=this.updateParameter(o,t);isNaN(s.width)&&this.updateParameter(o,t);var l=this.outputs[o],u=this._compositor.allocateTexture(s);this._outputTextures[o]=u,"string"==typeof(c=l.attachment||n.COLOR_ATTACHMENT0)&&(c=n[c]),a[c]=u}for(var c in this._compositor.getFrameBuffer().bind(t),a)this._compositor.getFrameBuffer().attach(a[c],c);this.pass.render(t),this._compositor.getFrameBuffer().updateMipmap(t.gl)}else this.pass.outputs=null,this._compositor.getFrameBuffer().unbind(t),this.pass.render(t,e);for(var i in this.inputLinks){var h;(h=this.inputLinks[i]).node.removeReference(h.pin)}this._rendering=!1,this._rendered=!0,this.trigger("afterrender",t)},updateParameter:function(t,e){var n,i,r=this.outputs[t],a=r.parameters,o=r._parametersCopy;if(o||(o=r._parametersCopy={}),a)for(var s in a)"width"!==s&&"height"!==s&&(o[s]=a[s]);return n=a.width instanceof Function?a.width.call(this,e):a.width,i=a.height instanceof Function?a.height.call(this,e):a.height,o.width===n&&o.height===i||this._outputTextures[t]&&this._outputTextures[t].dispose(e),o.width=n,o.height=i,o},setParameter:function(t,e){this.pass.setUniform(t,e)},getParameter:function(t){return this.pass.getUniform(t)},setParameters:function(t){for(var e in t)this.setParameter(e,t[e])},define:function(t,e){this.pass.material.define("fragment",t,e)},undefine:function(t){this.pass.material.undefine("fragment",t)},removeReference:function(t){this._outputReferences[t]--,0===this._outputReferences[t]&&(this.outputs[t].keepLastFrame?(this._prevOutputTextures[t]&&this._compositor.releaseTexture(this._prevOutputTextures[t]),this._prevOutputTextures[t]=this._outputTextures[t]):this._compositor.releaseTexture(this._outputTextures[t]))},clear:function(){r.a.prototype.clear.call(this),this.pass.material.disableTexturesAll()}});e.a=a},function(t,e,n){"use strict";var i=n(9),r=n(4),a=n(5),o=n(6),s=n(14),l=n(7),u=n(10),c=n(43),h=n(163);function d(t){for(var e=new Uint8Array(t*t*4),n=0,i=new r.a,a=0;a=this._haltonSequence.length},render:function(t,e,n){var i=this._blendPass;0===this._frame?(i.setUniform("weight1",0),i.setUniform("weight2",1)):(i.setUniform("weight1",.9),i.setUniform("weight2",.1)),i.setUniform("texture1",this._prevFrameTex),i.setUniform("texture2",e||this._sourceTex),this._blendFb.attach(this._outputTex),this._blendFb.bind(t),i.render(t),this._blendFb.unbind(t),n||(this._outputPass.setUniform("texture",this._outputTex),this._outputPass.render(t));var r=this._prevFrameTex;this._prevFrameTex=this._outputTex,this._outputTex=r,this._frame++},dispose:function(t){this._sourceFb.dispose(t),this._blendFb.dispose(t),this._prevFrameTex.dispose(t),this._outputTex.dispose(t),this._sourceTex.dispose(t),this._outputPass.dispose(t),this._blendPass.dispose(t)}},e.a=u},function(t,e,n){"use strict";var i=n(0),r=n.n(i);n(184),n(185),n(82),r.a.registerAction({type:"geo3DChangeCamera",event:"geo3dcamerachanged",update:"series:updateCamera"},(function(t,e){e.eachComponent({mainType:"geo3D",query:t},(function(e){e.setView(t)}))}))},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(38),o=n(31),s=n(32),l=n(26),u=n(80),c=r.a.extendComponentModel({type:"geo3D",layoutMode:"box",coordinateSystem:null,optionUpdated:function(){var t=this.option;t.regions=this.getFilledRegions(t.regions,t.map);var e=r.a.helper.completeDimensions(["value"],t.data,{encodeDef:this.get("encode"),dimsDef:this.get("dimensions")}),n=new r.a.List(e,this);n.initData(t.regions);var i={};n.each((function(t){var e=n.getName(t),r=n.getItemModel(t);i[e]=r})),this._regionModelMap=i,this._data=n},getData:function(){return this._data},getRegionModel:function(t){var e=this.getData().getName(t);return this._regionModelMap[e]||new r.a.Model(null,this)},getRegionPolygonCoords:function(t){var e=this.getData().getName(t),n=this.coordinateSystem.getRegion(e);return n?n.geometries:[]},getFormattedLabel:function(t,e){var n=this._data.getName(t),i=this.getRegionModel(n),r=i.get("normal"===e?["label","formatter"]:["emphasis","label","formatter"]);null==r&&(r=i.get(["label","formatter"]));var a={name:n};if("function"==typeof r)return a.status=e,r(a);if("string"==typeof r){var o=a.seriesName;return r.replace("{a}",null!=o?o:"")}return n},defaultOption:{regions:[]}});r.a.util.merge(c.prototype,u.a),r.a.util.merge(c.prototype,a.a),r.a.util.merge(c.prototype,o.a),r.a.util.merge(c.prototype,s.a),r.a.util.merge(c.prototype,l.a)},function(t,e,n){"use strict";var i=n(59),r=n(0),a=n.n(r),o=n(2),s=n(39),l=n(34);a.a.extendComponentView({type:"geo3D",__ecgl__:!0,init:function(t,e){this._geo3DBuilder=new i.a(e),this.groupGL=new o.a.Node,this._lightRoot=new o.a.Node,this._sceneHelper=new l.a(this._lightRoot),this._sceneHelper.initLight(this._lightRoot),this._control=new s.a({zr:e.getZr()}),this._control.init()},render:function(t,e,n){this.groupGL.add(this._geo3DBuilder.rootNode);var i=t.coordinateSystem;if(i&&i.viewGL){i.viewGL.add(this._lightRoot),t.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL);var r=this._control;r.setViewGL(i.viewGL);var a=t.getModel("viewControl");r.setFromViewControlModel(a,0),this._sceneHelper.setScene(i.viewGL.scene),this._sceneHelper.updateLight(t),i.viewGL.setPostEffect(t.getModel("postEffect"),n),i.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling")),this._geo3DBuilder.update(t,e,n,0,t.getData().count());var o=i.viewGL.isLinearSpace()?"define":"undefine";this._geo3DBuilder.rootNode.traverse((function(t){t.material&&t.material[o]("fragment","SRGB_DECODE")})),r.off("update"),r.on("update",(function(){n.dispatchAction({type:"geo3DChangeCamera",alpha:r.getAlpha(),beta:r.getBeta(),distance:r.getDistance(),center:r.getCenter(),from:this.uid,geo3DId:t.id})}))}},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n)},dispose:function(){this._control.dispose()}})},function(t,e,n){"use strict";function i(t,e,n){n=n||2;var i,s,l,u,c,f,g,m=e&&e.length,v=m?e[0]*n:t.length,y=r(t,0,v,n,!0),x=[];if(!y)return x;if(m&&(y=function(t,e,n,i){var o,s,l,u=[];for(o=0,s=e.length;o80*n){i=l=t[0],s=u=t[1];for(var b=n;bl&&(l=c),f>u&&(u=f);g=Math.max(l-i,u-s)}return o(y,x,n,i,s,g),x}function r(t,e,n,i,r){var a,o;if(r===S(t,e,n,i)>0)for(a=e;a=e;a-=i)o=E(a,t[a],t[a+1],o);return o&&y(o,o.next)&&(w(o),o=o.next),o}function a(t,e){if(!t)return t;e||(e=t);var n,i=t;do{if(n=!1,i.steiner||!y(i,i.next)&&0!==v(i.prev,i,i.next))i=i.next;else{if(w(i),(i=e=i.prev)===i.next)return null;n=!0}}while(n||i!==e);return e}function o(t,e,n,i,r,h,d){if(t){!d&&h&&function(t,e,n,i){var r=t;do{null===r.z&&(r.z=f(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,n,i,r,a,o,s,l,u=1;do{for(n=t,t=null,a=null,o=0;n;){for(o++,i=n,s=0,e=0;e0||l>0&&i;)0!==s&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,s--):(r=i,i=i.nextZ,l--),a?a.nextZ=r:t=r,r.prevZ=a,a=r;n=i}a.nextZ=null,u*=2}while(o>1)}(r)}(t,i,r,h);for(var p,g,m=t;t.prev!==t.next;)if(p=t.prev,g=t.next,h?l(t,i,r,h):s(t))e.push(p.i/n),e.push(t.i/n),e.push(g.i/n),w(t),t=g.next,m=g.next;else if((t=g)===m){d?1===d?o(t=u(t,e,n),e,n,i,r,h,2):2===d&&c(t,e,n,i,r,h):o(a(t),e,n,i,r,h,1);break}}}function s(t){var e=t.prev,n=t,i=t.next;if(v(e,n,i)>=0)return!1;for(var r=t.next.next;r!==t.prev;){if(g(e.x,e.y,n.x,n.y,i.x,i.y,r.x,r.y)&&v(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function l(t,e,n,i){var r=t.prev,a=t,o=t.next;if(v(r,a,o)>=0)return!1;for(var s=r.xa.x?r.x>o.x?r.x:o.x:a.x>o.x?a.x:o.x,c=r.y>a.y?r.y>o.y?r.y:o.y:a.y>o.y?a.y:o.y,h=f(s,l,e,n,i),d=f(u,c,e,n,i),p=t.nextZ;p&&p.z<=d;){if(p!==t.prev&&p!==t.next&&g(r.x,r.y,a.x,a.y,o.x,o.y,p.x,p.y)&&v(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(p=t.prevZ;p&&p.z>=h;){if(p!==t.prev&&p!==t.next&&g(r.x,r.y,a.x,a.y,o.x,o.y,p.x,p.y)&&v(p.prev,p,p.next)>=0)return!1;p=p.prevZ}return!0}function u(t,e,n){var i=t;do{var r=i.prev,a=i.next.next;!y(r,a)&&x(r,i,i.next,a)&&b(r,a)&&b(a,r)&&(e.push(r.i/n),e.push(i.i/n),e.push(a.i/n),w(i),w(i.next),i=t=a),i=i.next}while(i!==t);return i}function c(t,e,n,i,r,s){var l=t;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&m(l,u)){var c=_(l,u);return l=a(l,l.next),c=a(c,c.next),o(l,e,n,i,r,s),void o(c,e,n,i,r,s)}u=u.next}l=l.next}while(l!==t)}function h(t,e){return t.x-e.x}function d(t,e){if(e=function(t,e){var n,i=e,r=t.x,a=t.y,o=-1/0;do{if(a<=i.y&&a>=i.next.y&&i.next.y!==i.y){var s=i.x+(a-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=r&&s>o){if(o=s,s===r){if(a===i.y)return i;if(a===i.next.y)return i.next}n=i.x=i.x&&i.x>=c&&r!==i.x&&g(an.x)&&b(i,t)&&(n=i,d=l),i=i.next;return n}(t,e),e){var n=_(e,t);a(n,n.next)}}function f(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)/r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)/r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function p(t){var e=t,n=t;do{e.x=0&&(t-o)*(i-s)-(n-o)*(e-s)>=0&&(n-o)*(a-s)-(r-o)*(i-s)>=0}function m(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&x(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&b(t,e)&&b(e,t)&&function(t,e){var n=t,i=!1,r=(t.x+e.x)/2,a=(t.y+e.y)/2;do{n.y>a!=n.next.y>a&&n.next.y!==n.y&&r<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==t);return i}(t,e)}function v(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function y(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,n,i){return!!(y(t,e)&&y(n,i)||y(t,i)&&y(n,e))||v(t,e,n)>0!=v(t,e,i)>0&&v(n,i,t)>0!=v(n,i,e)>0}function b(t,e){return v(t.prev,t,t.next)<0?v(t,e,t.next)>=0&&v(t,t.prev,e)>=0:v(t,e,t.prev)<0||v(t,t.next,e)<0}function _(t,e){var n=new T(t.i,t.x,t.y),i=new T(e.i,e.x,e.y),r=t.next,a=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,a.next=i,i.prev=a,i}function E(t,e,n,i){var r=new T(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function w(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function T(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function S(t,e,n,i){for(var r=0,a=e,o=n-i;a0},_displacementChanged:!0,_displacementScale:0,updateDisplacementHash:function(){var t=this.getDisplacementTexture(),e=this.getDisplacemenScale();this._displacementChanged=this._displacementTexture!==t||this._displacementScale!==e,this._displacementTexture=t,this._displacementScale=e},isDisplacementChanged:function(){return this._displacementChanged}});r.a.util.merge(c.prototype,a.a),r.a.util.merge(c.prototype,o.a),r.a.util.merge(c.prototype,s.a),r.a.util.merge(c.prototype,l.a)},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(2),o=n(39),s=n(34),l=n(192),u=n(3);r.a.extendComponentView({type:"globe",__ecgl__:!0,_displacementScale:0,init:function(t,e){this.groupGL=new a.a.Node,this._sphereGeometry=new a.a.SphereGeometry({widthSegments:200,heightSegments:100,dynamic:!0}),this._overlayGeometry=new a.a.SphereGeometry({widthSegments:80,heightSegments:40}),this._planeGeometry=new a.a.PlaneGeometry,this._earthMesh=new a.a.Mesh({renderNormal:!0}),this._lightRoot=new a.a.Node,this._sceneHelper=new s.a,this._sceneHelper.initLight(this._lightRoot),this.groupGL.add(this._earthMesh),this._control=new o.a({zr:e.getZr()}),this._control.init(),this._layerMeshes={}},render:function(t,e,n){var i=t.coordinateSystem,r=t.get("shading");i.viewGL.add(this._lightRoot),t.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL),this._sceneHelper.setScene(i.viewGL.scene),i.viewGL.setPostEffect(t.getModel("postEffect"),n),i.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling"));var o=this._earthMesh;o.geometry=this._sphereGeometry;var s="ecgl."+r;o.material&&o.material.shader.name===s||(o.material=a.a.createMaterial(s)),a.a.setMaterialFromModel(r,o.material,t,n),["roughnessMap","metalnessMap","detailMap","normalMap"].forEach((function(t){var e=o.material.get(t);e&&(e.flipY=!1)})),o.material.set("color",a.a.parseColor(t.get("baseColor")));var l=.99*i.radius;o.scale.set(l,l,l);var u=o.material.setTextureImage("diffuseMap",t.get("baseTexture"),n,{flipY:!1,anisotropic:8});u&&u.surface&&u.surface.attachToMesh(o);var c=o.material.setTextureImage("bumpMap",t.get("heightTexture"),n,{flipY:!1,anisotropic:8});c&&c.surface&&c.surface.attachToMesh(o),o.material[t.get("postEffect.enable")?"define":"undefine"]("fragment","SRGB_DECODE"),this._updateLight(t,n),this._displaceVertices(t,n),this._updateViewControl(t,n),this._updateLayers(t,n)},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n)},_updateLayers:function(t,e){var n=t.coordinateSystem,i=t.get("layers"),o=n.radius,s=[],l=[],c=[],h=[];r.a.util.each(i,(function(t){var i=new r.a.Model(t),d=i.get("type"),f=a.a.loadTexture(i.get("texture"),e,{flipY:!1,anisotropic:8});if(f.surface&&f.surface.attachToMesh(this._earthMesh),"blend"===d){var p=i.get("blendTo"),g=u.a.firstNotNull(i.get("intensity"),1);"emission"===p?(c.push(f),h.push(g)):(s.push(f),l.push(g))}else{var m=i.get("id"),v=this._layerMeshes[m];v||(v=this._layerMeshes[m]=new a.a.Mesh({geometry:this._overlayGeometry,castShadow:!1,ignorePicking:!0})),"lambert"===i.get("shading")?(v.material=v.__lambertMaterial||new a.a.Material({autoUpdateTextureStatus:!1,shader:a.a.createShader("ecgl.lambert"),transparent:!0,depthMask:!1}),v.__lambertMaterial=v.material):(v.material=v.__colorMaterial||new a.a.Material({autoUpdateTextureStatus:!1,shader:a.a.createShader("ecgl.color"),transparent:!0,depthMask:!1}),v.__colorMaterial=v.material),v.material.enableTexture("diffuseMap");var y=i.get("distance"),x=o+(null==y?n.radius/100:y);v.scale.set(x,x,x),o=x;var b=this._blankTexture||(this._blankTexture=a.a.createBlankTexture("rgba(255, 255, 255, 0)"));v.material.set("diffuseMap",b),a.a.loadTexture(i.get("texture"),e,{flipY:!1,anisotropic:8},(function(t){t.surface&&t.surface.attachToMesh(v),v.material.set("diffuseMap",t),e.getZr().refresh()})),i.get("show")?this.groupGL.add(v):this.groupGL.remove(v)}}),this);var d=this._earthMesh.material;d.define("fragment","LAYER_DIFFUSEMAP_COUNT",s.length),d.define("fragment","LAYER_EMISSIVEMAP_COUNT",c.length),d.set("layerDiffuseMap",s),d.set("layerDiffuseIntensity",l),d.set("layerEmissiveMap",c),d.set("layerEmissionIntensity",h);var f=t.getModel("debug.wireframe");if(f.get("show")){d.define("both","WIREFRAME_TRIANGLE");var p=a.a.parseColor(f.get("lineStyle.color")||"rgba(0,0,0,0.5)"),g=u.a.firstNotNull(f.get("lineStyle.width"),1);d.set("wireframeLineWidth",g),d.set("wireframeLineColor",p)}else d.undefine("both","WIREFRAME_TRIANGLE")},_updateViewControl:function(t,e){var n=t.coordinateSystem,i=t.getModel("viewControl"),r=(n.viewGL.camera,this),a=this._control;a.setViewGL(n.viewGL);var o,s,l=i.get("targetCoord");null!=l&&(s=l[0]+90,o=l[1]),a.setFromViewControlModel(i,{baseDistance:n.radius,alpha:o,beta:s}),a.off("update"),a.on("update",(function(){e.dispatchAction({type:"globeChangeCamera",alpha:a.getAlpha(),beta:a.getBeta(),distance:a.getDistance()-n.radius,center:a.getCenter(),from:r.uid,globeId:t.id})}))},_displaceVertices:function(t,e){var n=t.get("displacementQuality"),i=t.get("debug.wireframe.show"),r=t.coordinateSystem;if(t.isDisplacementChanged()||n!==this._displacementQuality||i!==this._showDebugWireframe){this._displacementQuality=n,this._showDebugWireframe=i;var a=this._sphereGeometry,o={low:100,medium:200,high:400,ultra:800}[n]||200,s=o/2;(a.widthSegments!==o||i)&&(a.widthSegments=o,a.heightSegments=s,a.build()),this._doDisplaceVertices(a,r),i&&a.generateBarycentric()}},_doDisplaceVertices:function(t,e){var n=t.attributes.position.value,i=t.attributes.texcoord0.value,r=t.__originalPosition;r&&r.length===n.length||((r=new Float32Array(n.length)).set(n),t.__originalPosition=r);for(var a=e.displacementWidth,o=e.displacementHeight,s=e.displacementData,l=0;l0&&f>0||d<0&&f<0)),m=["x","y","z"].map((function(e){return t.coordDimToDataDim(e)[0]}));n.each(m,(function(t,r,a,s){var l=n.get(m[2],s,!0),u=n.stackedOn?l-a:g?0:p[0],c=e.dataToPoint([t,r,u]),h=e.dataToPoint([t,r,l]),d=o.dist(c,h),f=[0,h[1]0&&(p++,h[3]<.99&&(g=!0))}})),s.geometry.setBarCount(p);var m=n.getLayout("orient"),v=this._barIndexOfData=new Int32Array(n.count());p=0,n.each((function(t){if(n.hasValue(t)){var e=n.getItemLayout(t),i=e[0],r=e[1],a=e[2],s=4*t;h[0]=d[s++],h[1]=d[s++],h[2]=d[s++],h[3]=d[s++],h[3]>0&&(o._barMesh.geometry.addBar(i,r,m,a,h,t),v[t]=p++)}else v[t]=-1})),s.geometry.dirty(),s.geometry.updateBoundingBox();var y=s.material;y.transparent=g,y.depthMask=!g,s.geometry.sortTriangles=g,this._initHandler(t,e)},_initHandler:function(t,e){var n=t.getData(),i=this._barMesh,r="cartesian3D"===t.coordinateSystem.type;i.seriesIndex=t.seriesIndex;var a=-1;i.off("mousemove"),i.off("mouseout"),i.on("mousemove",(function(t){var o=i.geometry.getDataIndexOfVertex(t.triangle[0]);o!==a&&(this._downplay(a),this._highlight(o),this._labelsBuilder.updateLabels([o]),r&&e.dispatchAction({type:"grid3DShowAxisPointer",value:[n.get("x",o),n.get("y",o),n.get("z",o,!0)]})),a=o,i.dataIndex=o}),this),i.on("mouseout",(function(t){this._downplay(a),this._labelsBuilder.updateLabels(),a=-1,i.dataIndex=-1,r&&e.dispatchAction({type:"grid3DHideAxisPointer"})}),this)},_highlight:function(t){var e=this._data;if(e){var n=this._barIndexOfData[t];if(!(n<0)){var i=e.getItemModel(t).getModel("emphasis.itemStyle"),o=i.get("color"),s=i.get("opacity");if(null==o){var l=e.getItemVisual(t,"color");o=r.a.color.lift(l,-.4)}null==s&&(s=e.getItemVisual(t,"opacity"));var u=a.a.parseColor(o);u[3]*=s,this._barMesh.geometry.setColor(n,u),this._api.getZr().refresh()}}},_downplay:function(t){var e=this._data;if(e){var n=this._barIndexOfData[t];if(!(n<0)){var i=e.getItemVisual(t,"color"),r=e.getItemVisual(t,"opacity"),o=a.a.parseColor(i);o[3]*=r,this._barMesh.geometry.setColor(n,o),this._api.getZr().refresh()}}},highlight:function(t,e,n,i){this._toggleStatus("highlight",t,e,n,i)},downplay:function(t,e,n,i){this._toggleStatus("downplay",t,e,n,i)},_toggleStatus:function(t,e,n,i,a){var l=e.getData(),u=o.a.queryDataIndex(l,a),c=this;null!=u?r.a.util.each(s.a.normalizeToArray(u),(function(e){"highlight"===t?this._highlight(e):this._downplay(e)}),this):l.each((function(e){"highlight"===t?c._highlight(e):c._downplay(e)}))},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}})},function(t,e,n){"use strict";var i,r,a,o,s,l,u,c,h=n(0),d=n.n(h),f=n(33),p=n(60),g=n(13),m=n(1),v=n.n(m),y=v.a.vec3,x=v.a.mat3,b=g.a.extend((function(){return{attributes:{position:new g.a.Attribute("position","float",3,"POSITION"),normal:new g.a.Attribute("normal","float",3,"NORMAL"),color:new g.a.Attribute("color","float",4,"COLOR"),prevPosition:new g.a.Attribute("prevPosition","float",3),prevNormal:new g.a.Attribute("prevNormal","float",3)},dynamic:!0,enableNormal:!1,bevelSize:1,bevelSegments:0,_dataIndices:null,_vertexOffset:0,_triangleOffset:0}}),{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0},setBarCount:function(t){var e=this.enableNormal,n=this.getBarVertexCount()*t,i=this.getBarTriangleCount()*t;this.vertexCount!==n&&(this.attributes.position.init(n),e?this.attributes.normal.init(n):this.attributes.normal.value=null,this.attributes.color.init(n)),this.triangleCount!==i&&(this.indices=n>65535?new Uint32Array(3*i):new Uint16Array(3*i),this._dataIndices=new Uint32Array(n))},getBarVertexCount:function(){var t=this.bevelSize>0?this.bevelSegments:0;return t>0?this._getBevelBarVertexCount(t):this.enableNormal?24:8},getBarTriangleCount:function(){var t=this.bevelSize>0?this.bevelSegments:0;return t>0?this._getBevelBarTriangleCount(t):12},_getBevelBarVertexCount:function(t){return 4*(t+1)*(t+1)*2},_getBevelBarTriangleCount:function(t){return(4*t+3+1)*(2*t+1)*2+4},setColor:function(t,e){for(var n=this.getBarVertexCount(),i=n*(t+1),r=n*t;r0&&this.bevelSegments>0)this._addBevelBar(t,h,g,m,this.bevelSize,this.bevelSegments,v);else{y.copy(r,h),y.normalize(r,r),y.cross(a,g,r),y.normalize(a,a),y.cross(i,r,a),y.normalize(a,a),y.negate(o,i),y.negate(s,r),y.negate(l,a),e(u[0],t,i,m[0]/2),e(u[0],u[0],a,m[2]/2),e(u[1],t,i,m[0]/2),e(u[1],u[1],l,m[2]/2),e(u[2],t,o,m[0]/2),e(u[2],u[2],l,m[2]/2),e(u[3],t,o,m[0]/2),e(u[3],u[3],a,m[2]/2),e(n,t,r,m[1]),e(u[4],n,i,m[0]/2),e(u[4],u[4],a,m[2]/2),e(u[5],n,i,m[0]/2),e(u[5],u[5],l,m[2]/2),e(u[6],n,o,m[0]/2),e(u[6],u[6],l,m[2]/2),e(u[7],n,o,m[0]/2),e(u[7],u[7],a,m[2]/2);var _=this.attributes;if(this.enableNormal){c[0]=i,c[1]=o,c[2]=r,c[3]=s,c[4]=a,c[5]=l;for(var E=this._vertexOffset,w=0;w=0){var y=3*l,x=new u.a(this._points[y],this._points[y+1],this._points[y+2]);a.push({dataIndex:l,point:x,pointWorld:x.clone(),target:this._line3DMesh,distance:this._camera.getWorldPosition().dist(x)})}},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}})},function(t,e){e.containStroke=function(t,e,n,i,r,a,o){if(0===r)return!1;var s=r,l=0;if(o>e+s&&o>i+s||ot+s&&a>n+s||al?u.position[1]+=(c-l)/2:u.position[0]+=(c-s)/2;var h=u.getBoundingRect();return u.position[0]-=h.x,u.position[1]-=h.y,u.setStyle(n),u.update(),u.__size=c,u}(t,e,n),l=o.getMarginByStyle(n);return{image:a(s.__size,i,(function(t){s.brush(t)})),margin:l}},createSDFFromCanvas:function(t,e,n,i){return a(e,i,(function(e){var i=t.getContext("2d").getImageData(0,0,t.width,t.height);e.putImageData(function(t,e,n){var i=e.width,r=e.height,a=t.canvas.width,o=t.canvas.height,s=i/a,l=r/o;function u(t){return t<128?1:-1}function c(t,a){var o=1/0;t=Math.floor(t*s);for(var c=(a=Math.floor(a*l))*i+t,h=u(e.data[4*c]),d=Math.max(a-n,0);d=0;h--){var d,f=s[2*(d=this.geometry.indices?this.geometry.indices[h]:h)],p=s[2*d+1],g=this.geometry.attributes.size.get(d)/this.sizeScale/2;if(t>f-g*u&&tp-g*c&&e=2e4},doSortVertices:function(t,e){var n=this.indices,i=a.create();if(!n){n=this.indices=this.vertexCount>65535?new Uint32Array(this.vertexCount):new Uint16Array(this.vertexCount);for(var r=0;r.05);else for(r=0;r<3;r++)this._progressiveQuickSort(3*e+r);this.dirtyIndices()},_simpleSort:function(t){var e=this._zList,n=this.indices;function r(t,n){return e[n]-e[t]}t?Array.prototype.sort.call(n,r):i.a.sort(n,r,0,n.length-1)},_progressiveQuickSort:function(t){var e=this._zList,n=this.indices;this._quickSort=this._quickSort||new i.a,this._quickSort.step(n,(function(t,n){return e[n]-e[t]}),t)}}},function(t,e,n){"use strict";e.a="@export ecgl.sdfSprite.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform float elapsedTime : 0;\n\nattribute vec3 position : POSITION;\n\n#ifdef VERTEX_SIZE\nattribute float size;\n#else\nuniform float u_Size;\n#endif\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_FillColor: COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute float prevSize;\nuniform float percent : 1.0;\n#endif\n\n\n#ifdef POSITIONTEXTURE_ENABLED\nuniform sampler2D positionTexture;\n#endif\n\nvarying float v_Size;\n\nvoid main()\n{\n\n#ifdef POSITIONTEXTURE_ENABLED\n gl_Position = worldViewProjection * vec4(texture2D(positionTexture, position.xy).xy, -10.0, 1.0);\n#else\n\n #ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n #else\n vec3 pos = position;\n #endif\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n#endif\n\n#ifdef VERTEX_SIZE\n#ifdef VERTEX_ANIMATION\n v_Size = mix(prevSize, size, percent);\n#else\n v_Size = size;\n#endif\n#else\n v_Size = u_Size;\n#endif\n\n#ifdef VERTEX_COLOR\n v_Color = a_FillColor;\n #endif\n\n gl_PointSize = v_Size;\n}\n\n@end\n\n@export ecgl.sdfSprite.fragment\n\nuniform vec4 color: [1, 1, 1, 1];\nuniform vec4 strokeColor: [1, 1, 1, 1];\nuniform float smoothing: 0.07;\n\nuniform float lineWidth: 0.0;\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\nvarying float v_Size;\n\nuniform sampler2D sprite;\n\n@import clay.util.srgb\n\nvoid main()\n{\n gl_FragColor = color;\n\n vec4 _strokeColor = strokeColor;\n\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n #endif\n\n#ifdef SPRITE_ENABLED\n float d = texture2D(sprite, gl_PointCoord).r;\n gl_FragColor.a *= smoothstep(0.5 - smoothing, 0.5 + smoothing, d);\n\n if (lineWidth > 0.0) {\n float sLineWidth = lineWidth / 2.0;\n\n float outlineMaxValue0 = 0.5 + sLineWidth;\n float outlineMaxValue1 = 0.5 + sLineWidth + smoothing;\n float outlineMinValue0 = 0.5 - sLineWidth - smoothing;\n float outlineMinValue1 = 0.5 - sLineWidth;\n\n if (d <= outlineMaxValue1 && d >= outlineMinValue0) {\n float a = _strokeColor.a;\n if (d <= outlineMinValue1) {\n a = a * smoothstep(outlineMinValue0, outlineMinValue1, d);\n }\n else {\n a = a * smoothstep(outlineMaxValue1, outlineMaxValue0, d);\n }\n gl_FragColor.rgb = mix(gl_FragColor.rgb * gl_FragColor.a, _strokeColor.rgb, a);\n gl_FragColor.a = gl_FragColor.a * (1.0 - a) + a;\n }\n }\n#endif\n\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(gl_FragColor);\n#endif\n}\n@end"},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=(n(221),n(222),n(225),n(16));r.a.registerVisual(Object(a.a)("lines3D")),r.a.registerAction({type:"lines3DPauseEffect",event:"lines3deffectpaused",update:"series.lines3D:pauseEffect"},(function(){})),r.a.registerAction({type:"lines3DResumeEffect",event:"lines3deffectresumed",update:"series.lines3D:resumeEffect"},(function(){})),r.a.registerAction({type:"lines3DToggleEffect",event:"lines3deffectchanged",update:"series.lines3D:toggleEffect"},(function(){}))},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(1),o=n.n(a),s=o.a.vec3,l=o.a.vec2,u=s.normalize,c=s.cross,h=s.sub,d=s.add,f=s.create,p=f(),g=f(),m=f(),v=f(),y=[],x=[];function b(t,e){l.copy(y,t[0]),l.copy(x,t[1]);var n=[],i=n[0]=f(),r=n[1]=f(),a=n[2]=f(),o=n[3]=f();e.dataToPoint(y,i),e.dataToPoint(x,o),u(p,i),h(g,o,i),u(g,g),c(m,g,p),u(m,m),c(g,p,m),d(r,p,g),u(r,r),u(p,o),h(g,i,o),u(g,g),c(m,g,p),u(m,m),c(g,p,m),d(a,p,g),u(a,a),d(v,i,o),u(v,v);var b=s.dot(i,v),_=s.dot(v,r),E=(Math.max(s.len(i),s.len(o))-b)/_*2;return s.scaleAndAdd(r,i,r,E),s.scaleAndAdd(a,o,a,E),n}function _(t,e){for(var n=new Float32Array(3*t.length),i=0,r=[],a=0;a0&&r[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(r)+". Lines must have 2d coords array in data item.");e.push(r)})),{coordsList:e}}function w(t,e,n){var i=t.getData(),r=t.get("polyline"),a=E(i);i.setLayout("lineType",r?"polyline":"cubicBezier"),i.each((function(t){var o=a.coordsList[t],l=r?_(o,e):function(t,e,n){var i=[],r=i[0]=s.create(),a=i[1]=s.create(),o=i[2]=s.create(),l=i[3]=s.create();e.dataToPoint(t[0],r),e.dataToPoint(t[1],l);var u=s.dist(r,l);return s.lerp(a,r,l,.3),s.lerp(o,r,l,.3),s.scaleAndAdd(a,a,n,Math.min(.1*u,10)),s.scaleAndAdd(o,o,n,Math.min(.1*u,10)),i}(o,e,n);i.setItemLayout(t,l)}))}r.a.registerLayout((function(t,e){t.eachSeriesByType("lines3D",(function(t){var e=t.coordinateSystem;"globe"===e.type?function(t,e){var n=t.getData(),i=t.get("polyline");n.setLayout("lineType",i?"polyline":"cubicBezier");var r=E(n);n.each((function(t){var a=r.coordsList[t],o=i?_:b;n.setItemLayout(t,o(a,e))}))}(t,e):"geo3D"===e.type?w(t,e,[0,1,0]):"mapbox3D"===e.type&&w(t,e,[0,0,1])}))}))},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(2),o=n(22),s=n(223),l=n(40);a.a.Shader.import(l.a),r.a.extendChartView({type:"lines3D",__ecgl__:!0,init:function(t,e){this.groupGL=new a.a.Node,this._meshLinesMaterial=new a.a.Material({shader:a.a.createShader("ecgl.meshLines3D"),transparent:!0,depthMask:!1}),this._linesMesh=new a.a.Mesh({geometry:new o.a,material:this._meshLinesMaterial,$ignorePicking:!0}),this._trailMesh=new s.a},render:function(t,e,n){this.groupGL.add(this._linesMesh);var i=t.coordinateSystem,r=t.getData();if(i&&i.viewGL){i.viewGL.add(this.groupGL),this._updateLines(t,e,n);var o=i.viewGL.isLinearSpace()?"define":"undefine";this._linesMesh.material[o]("fragment","SRGB_DECODE"),this._trailMesh.material[o]("fragment","SRGB_DECODE")}var s=this._trailMesh;if(s.stopAnimation(),t.get("effect.show")){this.groupGL.add(s),s.updateData(r,n,this._linesMesh.geometry),s.__time=s.__time||0;var l=36e5;this._curveEffectsAnimator=s.animate("",{loop:!0}).when(l,{__time:l}).during((function(){s.setAnimationTime(s.__time)})).start()}else this.groupGL.remove(s),this._curveEffectsAnimator=null;this._linesMesh.material.blend=this._trailMesh.material.blend="lighter"===t.get("blendMode")?a.a.additiveBlend:null},pauseEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.pause()},resumeEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.resume()},toggleEffect:function(){var t=this._curveEffectsAnimator;t&&(t.isPaused()?t.resume():t.pause())},_updateLines:function(t,e,n){var i=t.getData(),r=t.coordinateSystem,o=this._linesMesh.geometry,s=t.get("polyline");o.expandLine=!0;var l=function(t){return null!=t.radius?t.radius:null!=t.size?Math.max(t.size[0],t.size[1],t.size[2]):100}(r);o.segmentScale=l/20;var u="lineStyle.width".split("."),c=n.getDevicePixelRatio(),h=0;i.each((function(t){var e=i.getItemModel(t).get(u);null==e&&(e=1),i.setItemVisual(t,"lineWidth",e),h=Math.max(e,h)})),o.useNativeLine=!1;var d=0,f=0;i.each((function(t){var e=i.getItemLayout(t);s?(d+=o.getPolylineVertexCount(e),f+=o.getPolylineTriangleCount(e)):(d+=o.getCubicCurveVertexCount(e[0],e[1],e[2],e[3]),f+=o.getCubicCurveTriangleCount(e[0],e[1],e[2],e[3]))})),o.setVertexCount(d),o.setTriangleCount(f),o.resetOffset();var p=[];i.each((function(t){var e=i.getItemLayout(t),n=i.getItemVisual(t,"color"),r=i.getItemVisual(t,"opacity"),l=i.getItemVisual(t,"lineWidth")*c;null==r&&(r=1),(p=a.a.parseColor(n,p))[3]*=r,s?o.addPolyline(e,p,l):o.addCubicCurve(e[0],e[1],e[2],e[3],p,l)})),o.dirty()},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}})},function(t,e,n){"use strict";var i=n(0),r=(n.n(i),n(2)),a=n(1),o=n.n(a),s=n(22),l=n(224),u=o.a.vec3;r.a.Shader.import(l.a),e.a=r.a.Mesh.extend((function(){var t=new r.a.Material({shader:new r.a.Shader(r.a.Shader.source("ecgl.trail2.vertex"),r.a.Shader.source("ecgl.trail2.fragment")),transparent:!0,depthMask:!1}),e=new s.a({dynamic:!0});return e.createAttribute("dist","float",1),e.createAttribute("distAll","float",1),e.createAttribute("start","float",1),{geometry:e,material:t,culling:!1,$ignorePicking:!0}}),{updateData:function(t,e,n){var i=t.hostModel,a=this.geometry,o=i.getModel("effect"),s=o.get("trailWidth")*e.getDevicePixelRatio(),l=o.get("trailLength"),c=i.get("effect.constantSpeed"),h=1e3*i.get("effect.period"),d=null!=c;this.getScene()||console.error("TrailMesh must been add to scene before updateData"),d?this.material.set("speed",c/1e3):this.material.set("period",h),this.material[d?"define":"undefine"]("vertex","CONSTANT_SPEED");var f=i.get("polyline");a.trailLength=l,this.material.set("trailLength",l),a.resetOffset(),["position","positionPrev","positionNext"].forEach((function(t){a.attributes[t].value=n.attributes[t].value})),["dist","distAll","start","offset","color"].forEach((function(t){a.attributes[t].init(a.vertexCount)})),a.indices=n.indices;var p=[],g=o.get("trailColor"),m=o.get("trailOpacity"),v=null!=g,y=null!=m;this.updateWorldTransform();var x=this.worldTransform.x.len(),b=this.worldTransform.y.len(),_=this.worldTransform.z.len(),E=0,w=0;t.each((function(e){var i=t.getItemLayout(e),o=y?m:t.getItemVisual(e,"opacity"),l=t.getItemVisual(e,"color");null==o&&(o=1),(p=r.a.parseColor(v?g:l,p))[3]*=o;for(var c=f?n.getPolylineVertexCount(i):n.getCubicCurveVertexCount(i[0],i[1],i[2],i[3]),T=0,S=[],M=[],C=E;CE&&(T+=u.dist(S,M)),a.attributes.dist.set(C,T),u.copy(M,S);w=Math.max(w,T);var A=Math.random()*(d?T:h);for(C=E;C0?1:-1)*s/2),a.attributes.color.set(C,p);E+=c})),this.material.set("spotSize",.1*w*l),this.material.set("spotIntensity",o.get("spotIntensity")),a.dirty()},setAnimationTime:function(t){this.material.set("time",t)}})},function(t,e,n){"use strict";e.a="@export ecgl.trail2.vertex\nattribute vec3 position: POSITION;\nattribute vec3 positionPrev;\nattribute vec3 positionNext;\nattribute float offset;\nattribute float dist;\nattribute float distAll;\nattribute float start;\n\nattribute vec4 a_Color : COLOR;\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\nuniform float near : NEAR;\n\nuniform float speed : 0;\nuniform float trailLength: 0.3;\nuniform float time;\nuniform float period: 1000;\n\nuniform float spotSize: 1;\n\nvarying vec4 v_Color;\nvarying float v_Percent;\nvarying float v_SpotPercent;\n\n@import ecgl.common.wireframe.vertexHeader\n\n@import ecgl.lines3D.clipNear\n\nvoid main()\n{\n @import ecgl.lines3D.expandLine\n\n gl_Position = currProj;\n\n v_Color = a_Color;\n\n @import ecgl.common.wireframe.vertexMain\n\n#ifdef CONSTANT_SPEED\n float t = mod((speed * time + start) / distAll, 1. + trailLength) - trailLength;\n#else\n float t = mod((time + start) / period, 1. + trailLength) - trailLength;\n#endif\n\n float trailLen = distAll * trailLength;\n\n v_Percent = (dist - t * distAll) / trailLen;\n\n v_SpotPercent = spotSize / distAll;\n\n }\n@end\n\n\n@export ecgl.trail2.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform float spotIntensity: 5;\n\nvarying vec4 v_Color;\nvarying float v_Percent;\nvarying float v_SpotPercent;\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n if (v_Percent > 1.0 || v_Percent < 0.0) {\n discard;\n }\n\n float fade = v_Percent;\n\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n\n @import ecgl.common.wireframe.fragmentMain\n\n if (v_Percent > (1.0 - v_SpotPercent)) {\n gl_FragColor.rgb *= spotIntensity;\n }\n\n gl_FragColor.a *= fade;\n}\n\n@end"},function(t,e,n){"use strict";var i=n(0),r=n.n(i);r.a.extendSeriesModel({type:"series.lines3D",dependencies:["globe"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var n=new r.a.List(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var a=t.value;return null!=a?a instanceof Array?a[r]:a:void 0})),n},defaultOption:{coordinateSystem:"globe",globeIndex:0,geo3DIndex:0,zlevel:-10,polyline:!1,effect:{show:!1,period:4,trailWidth:4,trailLength:.2,spotIntensity:6},silent:!0,blendMode:"source-over",lineStyle:{width:1,opacity:.5}}})},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=(n(227),n(228),n(16));r.a.registerVisual(Object(a.a)("polygons3D"))},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(26);function o(t,e){for(var n=[],i=0;i0;this._updateSurfaceMesh(this._surfaceMesh,t,h,p);var g=this._surfaceMesh.material;p?(g.define("WIREFRAME_QUAD"),g.set("wireframeLineWidth",f),g.set("wireframeLineColor",a.a.parseColor(d.get("lineStyle.color")))):g.undefine("WIREFRAME_QUAD"),this._initHandler(t,n),this._updateAnimation(t)},_updateAnimation:function(t){a.a.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevSurfaceMesh,this._surfaceMesh,t)},_createSurfaceMesh:function(){var t=new a.a.Mesh({geometry:new a.a.Geometry({dynamic:!0,sortTriangles:!0}),shadowDepthMaterial:new a.a.Material({shader:new a.a.Shader(a.a.Shader.source("ecgl.sm.depth.vertex"),a.a.Shader.source("ecgl.sm.depth.fragment"))}),culling:!1,renderOrder:10,renderNormal:!0});return t.geometry.createAttribute("barycentric","float",4),t.geometry.createAttribute("prevPosition","float",3),t.geometry.createAttribute("prevNormal","float",3),r.a.util.extend(t.geometry,l.a),t},_initHandler:function(t,e){var n=t.getData(),i=this._surfaceMesh,r=t.coordinateSystem;i.seriesIndex=t.seriesIndex;var a=-1;i.off("mousemove"),i.off("mouseout"),i.on("mousemove",(function(t){var o=function(t,e){for(var n=1/0,r=-1,a=[],o=0;o=0){var s=[];i.geometry.attributes.position.get(o,s);for(var l=r.pointToData(s),c=1/0,h=-1,d=[],f=0;f65535?Uint32Array:Uint16Array)((m-1)*(v-1)*6),T=function(t,e,n){n[1]=t*v+e,n[0]=t*v+e+1,n[3]=(t+1)*v+e+1,n[2]=(t+1)*v+e},S=!1;if(c){var M=[],C=[],A=0;y?d.init(r.vertexCount):d.value=null;for(var O=[[],[],[]],N=[],P=[],L=u.create(),R=function(t,e,n){var i=3*e;return n[0]=t[i],n[1]=t[i+1],n[2]=t[i+2],n},D=new Float32Array(s.length),k=new Float32Array(s.length/3*4),I=0;I ")),a.value&&(c+=" : "+r.a.format.encodeHTML(a.value)),c}return s.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=(this.option.categories||[]).map((function(t){return null!=t.value?t:r.a.util.extend({value:0},t)})),e=new r.a.List(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t,!0)}))},setView:function(t){null!=t.zoom&&(this.option.zoom=t.zoom),null!=t.offset&&(this.option.offset=t.offset)},setNodePosition:function(t){for(var e=0;e "+v)),p++)}var y=r.a.helper.completeDimensions(["value"],t);(h=new r.a.List(y,n)).initData(t);var x=new r.a.List(["value"],n);return x.initData(f,d),a&&a(h,x),l()({mainData:h,struct:s,structAttr:"graph",datas:{node:h,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),s.update(),s}},function(t,e,n){n(85).__DEV__;var i=n(12),r=n(244).enableClassCheck;function a(t){return"_EC_"+t}var o=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},s=o.prototype;function l(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function u(t,e,n){this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}s.type="graph",s.isDirected=function(){return this._directed},s.addNode=function(t,e){t=t||""+e;var n=this._nodesMap;if(!n[a(t)]){var i=new l(t,e);return i.hostGraph=this,this.nodes.push(i),n[a(t)]=i,i}},s.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},s.getNodeById=function(t){return this._nodesMap[a(t)]},s.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if("number"==typeof t&&(t=this.nodes[t]),"number"==typeof e&&(e=this.nodes[e]),l.isInstance(t)||(t=i[a(t)]),l.isInstance(e)||(e=i[a(e)]),t&&e){var o=t.id+"-"+e.id;if(!r[o]){var s=new u(t,e,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),r[o]=s,s}}},s.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},s.getEdge=function(t,e){l.isInstance(t)&&(t=t.id),l.isInstance(e)&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},s.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r=0&&t.call(e,n[r],r)},s.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},s.breadthFirstTraverse=function(t,e,n,i){if(l.isInstance(e)||(e=this._nodesMap[a(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0})),r=0,a=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n,i){return this[t][e].getItemVisual(this.dataIndex,n,i)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};i.mixin(l,c("hostGraph","data")),i.mixin(u,c("hostGraph","edgeData")),o.Node=l,o.Edge=u,r(l),r(u);var h=o;t.exports=h},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){n(85).__DEV__;var i=n(12),r="___EC__COMPONENT__CONTAINER___";function a(t){var e={main:"",sub:""};return t&&(t=t.split("."),e.main=t[0]||"",e.sub=t[1]||""),e}var o=0;function s(t,e){var n=i.slice(arguments,2);return this.superClass.prototype[e].apply(t,n)}function l(t,e,n){return this.superClass.prototype[e].apply(t,n)}e.parseClassType=a,e.enableClassExtend=function(t,e){t.$constructor=t,t.extend=function(t){var e=this,n=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return i.extend(n.prototype,t),n.extend=this.extend,n.superCall=s,n.superApply=l,i.inherits(n,this),n.superClass=e,n}},e.enableClassCheck=function(t){var e=["__\0is_clz",o++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}},e.enableClassManagement=function(t,e){e=e||{};var n={};if(t.registerClass=function(t,e){if(e)if(function(t){i.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}(e),(e=a(e)).sub){if(e.sub!==r){var o=function(t){var e=n[t.main];return e&&e[r]||((e=n[t.main]={})[r]=!0),e}(e);o[e.sub]=t}}else n[e.main]=t;return t},t.getClass=function(t,e,i){var a=n[t];if(a&&a[r]&&(a=e?a[e]:null),i&&!a)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return a},t.getClassesByMainType=function(t){t=a(t);var e=[],o=n[t.main];return o&&o[r]?i.each(o,(function(t,n){n!==r&&e.push(t)})):e.push(o),e},t.hasClass=function(t){return t=a(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return i.each(n,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){t=a(t);var e=n[t.main];return e&&e[r]},t.parseClassType=a,e.registerWhenExtend){var o=t.extend;o&&(t.extend=function(e){var n=o.call(this,e);return t.registerClass(n,e.type)})}return t},e.setReadOnly=function(t,e){}},function(t,e,n){var i=n(12),r=i.each,a="\0__link_datas",o="\0__link_mainData";function s(t,e){if((r=this)[o]===r){var n=i.extend({},this[a]);n[this.dataType]=e,h(e,n,t)}else d(e,this.dataType,this[o],t);var r;return e}function l(t,e){return t.struct&&t.struct.update(this),e}function u(t,e){return r(e[a],(function(n,i){n!==e&&d(n.cloneShallow(),i,e,t)})),e}function c(t){var e=this[o];return null==t||null==e?e:e[a][t]}function h(t,e,n){t[a]={},r(e,(function(e,i){d(e,i,t,n)}))}function d(t,e,n,i){n[a][e]=t,t[o]=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=c}var f=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,h(e,n,t),r(n,(function(n){r(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,i.curry(s,t))}))})),e.wrapMethod("cloneShallow",i.curry(u,t)),r(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,i.curry(l,t))})),i.assert(n[e.dataType]===e)};t.exports=f},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(41),o=n.n(a),s=n(2),l=n(20),u=n(86),c=n(3),h=n(247),d=n(249),f=n(65),p=n.n(f),g=n(1),m=n.n(g),v=n(251),y=n(62),x=n(252),b=m.a.vec2;s.a.Shader.import(x.a);var _,E=1;r.a.extendChartView({type:"graphGL",__ecgl__:!0,init:function(t,e){this.groupGL=new s.a.Node,this.viewGL=new l.a("orthographic"),this.viewGL.camera.left=this.viewGL.camera.right=0,this.viewGL.add(this.groupGL),this._pointsBuilder=new y.a(!0,e),this._forceEdgesMesh=new s.a.Mesh({material:new s.a.Material({shader:s.a.createShader("ecgl.forceAtlas2.edges"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new s.a.Geometry({attributes:{node:new s.a.Geometry.Attribute("node","float",2),color:new s.a.Geometry.Attribute("color","float",4,"COLOR")},dynamic:!0,mainAttribute:"node"}),renderOrder:-1,mode:s.a.Mesh.LINES}),this._edgesMesh=new s.a.Mesh({material:new s.a.Material({shader:s.a.createShader("ecgl.meshLines2D"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new u.a({useNativeLine:!1,dynamic:!0}),renderOrder:-1,culling:!1}),this._layoutId=0,this._control=new v.a({zr:e.getZr(),viewGL:this.viewGL}),this._control.setTarget(this.groupGL),this._control.init(),this._clickHandler=this._clickHandler.bind(this)},render:function(t,e,n){this.groupGL.add(this._pointsBuilder.rootNode),this._model=t,this._api=n,this._initLayout(t,e,n),this._pointsBuilder.update(t,e,n),this._forceLayoutInstance instanceof h.a||this.groupGL.remove(this._forceEdgesMesh),this._updateCamera(t,n),this._control.off("update"),this._control.on("update",(function(){n.dispatchAction({type:"graphGLRoam",seriesId:t.id,zoom:this._control.getZoom(),offset:this._control.getOffset()}),this._pointsBuilder.updateView(this.viewGL.camera)}),this),this._control.setZoom(c.a.firstNotNull(t.get("zoom"),1)),this._control.setOffset(t.get("offset")||[0,0]);var i=this._pointsBuilder.getPointsMesh();if(i.off("mousemove",this._mousemoveHandler),i.off("mouseout",this._mouseOutHandler,this),n.getZr().off("click",this._clickHandler),this._pointsBuilder.highlightOnMouseover=!0,t.get("focusNodeAdjacency")){var r=t.get("focusNodeAdjacencyOn");"click"===r?n.getZr().on("click",this._clickHandler):"mouseover"===r?(i.on("mousemove",this._mousemoveHandler,this),i.on("mouseout",this._mouseOutHandler,this),this._pointsBuilder.highlightOnMouseover=!1):console.warn("Unkown focusNodeAdjacencyOn value s"+r)}this._lastMouseOverDataIndex=-1},_clickHandler:function(t){if(!this._layouting){var e=this._pointsBuilder.getPointsMesh().dataIndex;e>=0?this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:e}):this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id})}},_mousemoveHandler:function(t){if(!this._layouting){var e=this._pointsBuilder.getPointsMesh().dataIndex;e>=0?e!==this._lastMouseOverDataIndex&&this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:e}):this._mouseOutHandler(t),this._lastMouseOverDataIndex=e}},_mouseOutHandler:function(t){this._layouting||(this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id}),this._lastMouseOverDataIndex=-1)},_updateForceEdgesGeometry:function(t,e){var n=this._forceEdgesMesh.geometry,i=e.getEdgeData(),r=0,a=this._forceLayoutInstance,o=2*i.count();n.attributes.node.init(o),n.attributes.color.init(o),i.each((function(e){var o=t[e];n.attributes.node.set(r,a.getNodeUV(o.node1)),n.attributes.node.set(r+1,a.getNodeUV(o.node2));var l=i.getItemVisual(o.dataIndex,"color"),u=s.a.parseColor(l);u[3]*=c.a.firstNotNull(i.getItemVisual(o.dataIndex,"opacity"),1),n.attributes.color.set(r,u),n.attributes.color.set(r+1,u),r+=2})),n.dirty()},_updateMeshLinesGeometry:function(){var t=this._model.getEdgeData(),e=this._edgesMesh.geometry,n=(t=this._model.getEdgeData(),this._model.getData().getLayout("points"));e.resetOffset(),e.setVertexCount(t.count()*e.getLineVertexCount()),e.setTriangleCount(t.count()*e.getLineTriangleCount());var i=[],r=[],a=["lineStyle","width"];this._originalEdgeColors=new Float32Array(4*t.count()),this._edgeIndicesMap=new Float32Array(t.count()),t.each((function(o){var l=t.graph.getEdgeByIndex(o),u=2*l.node1.dataIndex,h=2*l.node2.dataIndex;i[0]=n[u],i[1]=n[u+1],r[0]=n[h],r[1]=n[h+1];var d=t.getItemVisual(l.dataIndex,"color"),f=s.a.parseColor(d);f[3]*=c.a.firstNotNull(t.getItemVisual(l.dataIndex,"opacity"),1);var p=t.getItemModel(l.dataIndex),g=c.a.firstNotNull(p.get(a),1)*this._api.getDevicePixelRatio();e.addLine(i,r,f,g);for(var m=0;m<4;m++)this._originalEdgeColors[4*l.dataIndex+m]=f[m];this._edgeIndicesMap[l.dataIndex]=o}),!1,this),e.dirty()},_updateForceNodesGeometry:function(t){for(var e=this._pointsBuilder.getPointsMesh(),n=[],i=0;i=f&&(l._syncNodePosition(t),d=0),n.getZr().refresh(),p()((function(){g(e)}))}))};p()((function(){l._forceLayoutInstanceToDispose&&(l._forceLayoutInstanceToDispose.dispose(r.layer.renderer),l._forceLayoutInstanceToDispose=null),g(u)})),this._layouting=!0}}else console.error("None layout don't have startLayout action")}},stopLayout:function(t,e,n,i){i&&null!=i.from&&i.from!==this.uid||(this._layoutId=0,this.groupGL.remove(this._forceEdgesMesh),this.groupGL.add(this._edgesMesh),this._forceLayoutInstance&&this.viewGL.layer&&(i&&i.beforeLayout||(this._syncNodePosition(t),this._updateAfterLayout(t,e,n)),this._api.getZr().refresh(),this._layouting=!1))},_syncNodePosition:function(t){var e=this._forceLayoutInstance.getNodePosition(this.viewGL.layer.renderer);t.getData().setLayout("points",e),t.setNodePosition(e)},_updateAfterLayout:function(t,e,n){this._updateMeshLinesGeometry(),this._pointsBuilder.removePositionTexture(),this._pointsBuilder.updateLayout(t,e,n),this._pointsBuilder.updateView(this.viewGL.camera),this._pointsBuilder.updateLabels(),this._pointsBuilder.showLabels()},focusNodeAdjacency:function(t,e,n,i){var r=this._model.getData();this._downplayAll();var a=i.dataIndex,o=r.graph,s=[],l=o.getNodeByIndex(a);s.push(l),l.edges.forEach((function(t){t.dataIndex<0||(t.node1!==l&&s.push(t.node1),t.node2!==l&&s.push(t.node2))}),this),this._pointsBuilder.fadeOutAll(.05),this._fadeOutEdgesAll(.05),s.forEach((function(t){this._pointsBuilder.highlight(r,t.dataIndex)}),this),this._pointsBuilder.updateLabels(s.map((function(t){return t.dataIndex})));var u=[];l.edges.forEach((function(t){t.dataIndex>=0&&(this._highlightEdge(t.dataIndex),u.push(t))}),this),this._focusNodes=s,this._focusEdges=u},unfocusNodeAdjacency:function(t,e,n,i){this._downplayAll(),this._pointsBuilder.fadeInAll(),this._fadeInEdgesAll(),this._pointsBuilder.updateLabels()},_highlightEdge:function(t){var e=this._model.getEdgeData().getItemModel(t),n=s.a.parseColor(e.get("emphasis.lineStyle.color")||e.get("lineStyle.color")),i=c.a.firstNotNull(e.get("emphasis.lineStyle.opacity"),e.get("lineStyle.opacity"),1);n[3]*=i,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[t],n)},_downplayAll:function(){this._focusNodes&&this._focusNodes.forEach((function(t){this._pointsBuilder.downplay(this._model.getData(),t.dataIndex)}),this),this._focusEdges&&this._focusEdges.forEach((function(t){this._downplayEdge(t.dataIndex)}),this)},_downplayEdge:function(t){var e=this._getColor(t,[]);this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[t],e)},_setEdgeFade:(_=[],function(t,e){this._getColor(t,_),_[3]*=e,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[t],_)}),_getColor:function(t,e){for(var n=0;n<4;n++)e[n]=this._originalEdgeColors[4*t+n];return e},_fadeOutEdgesAll:function(t){this._model.getData().graph.eachEdge((function(e){this._setEdgeFade(e.dataIndex,t)}),this)},_fadeInEdgesAll:function(){this._fadeOutEdgesAll(1)},_updateCamera:function(t,e){this.viewGL.setViewport(0,0,e.getWidth(),e.getHeight(),e.getDevicePixelRatio());for(var n=this.viewGL.camera,i=t.getData().getLayout("points"),r=b.create(1/0,1/0),a=b.create(-1/0,-1/0),o=[],s=0;sn.left&&un.top)){var c=Math.max(a[0]-r[0],10),h=c/e.getWidth()*e.getHeight();c*=1.4,h*=1.4,r[0]-=.2*c,n.left=r[0],n.top=l-h/2,n.bottom=l+h/2,n.right=c+r[0],n.near=0,n.far=100}},dispose:function(){var t=this.viewGL.layer.renderer;this._forceLayoutInstance&&this._forceLayoutInstance.dispose(t),this.groupGL.removeAll(),this._layoutId=-1},remove:function(){this.groupGL.removeAll(),this._control.dispose()}})},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(2),o=n(14),s=n(10),l=n(248);a.a.Shader.import(l.a);var u={repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null};function c(t){var e={type:a.a.Texture.FLOAT,minFilter:a.a.Texture.NEAREST,magFilter:a.a.Texture.NEAREST};this._positionSourceTex=new a.a.Texture2D(e),this._positionSourceTex.flipY=!1,this._positionTex=new a.a.Texture2D(e),this._positionPrevTex=new a.a.Texture2D(e),this._forceTex=new a.a.Texture2D(e),this._forcePrevTex=new a.a.Texture2D(e),this._weightedSumTex=new a.a.Texture2D(e),this._weightedSumTex.width=this._weightedSumTex.height=1,this._globalSpeedTex=new a.a.Texture2D(e),this._globalSpeedPrevTex=new a.a.Texture2D(e),this._globalSpeedTex.width=this._globalSpeedTex.height=1,this._globalSpeedPrevTex.width=this._globalSpeedPrevTex.height=1,this._nodeRepulsionPass=new o.a({fragment:a.a.Shader.source("ecgl.forceAtlas2.updateNodeRepulsion")}),this._positionPass=new o.a({fragment:a.a.Shader.source("ecgl.forceAtlas2.updatePosition")}),this._globalSpeedPass=new o.a({fragment:a.a.Shader.source("ecgl.forceAtlas2.calcGlobalSpeed")}),this._copyPass=new o.a({fragment:a.a.Shader.source("clay.compositor.output")});var n=function(t){t.blendEquation(t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE)};this._edgeForceMesh=new a.a.Mesh({geometry:new a.a.Geometry({attributes:{node1:new a.a.Geometry.Attribute("node1","float",2),node2:new a.a.Geometry.Attribute("node2","float",2),weight:new a.a.Geometry.Attribute("weight","float",1)},dynamic:!0,mainAttribute:"node1"}),material:new a.a.Material({transparent:!0,shader:a.a.createShader("ecgl.forceAtlas2.updateEdgeAttraction"),blend:n,depthMask:!1,depthText:!1}),mode:a.a.Mesh.POINTS}),this._weightedSumMesh=new a.a.Mesh({geometry:new a.a.Geometry({attributes:{node:new a.a.Geometry.Attribute("node","float",2)},dynamic:!0,mainAttribute:"node"}),material:new a.a.Material({transparent:!0,shader:a.a.createShader("ecgl.forceAtlas2.calcWeightedSum"),blend:n,depthMask:!1,depthText:!1}),mode:a.a.Mesh.POINTS}),this._framebuffer=new s.a({depthBuffer:!1}),this._dummyCamera=new a.a.OrthographicCamera({left:-1,right:1,top:1,bottom:-1,near:0,far:100}),this._globalSpeed=0}c.prototype.updateOption=function(t){for(var e in u)this[e]=u[e];var n=this._nodes.length;if(this.jitterTolerence=n>5e4?10:n>5e3?1:.1,this.scaling=n>100?2:10,t)for(var e in u)null!=t[e]&&(this[e]=t[e]);if(this.repulsionByDegree)for(var i=this._positionSourceTex.pixels,r=0;rt},c.prototype._swapTexture=function(){var t=this._positionPrevTex;this._positionPrevTex=this._positionTex,this._positionTex=t,t=this._forcePrevTex,this._forcePrevTex=this._forceTex,this._forceTex=t,t=this._globalSpeedPrevTex,this._globalSpeedPrevTex=this._globalSpeedTex,this._globalSpeedTex=t},c.prototype._initFromSource=function(t){this._framebuffer.attach(this._positionPrevTex),this._framebuffer.bind(t),this._copyPass.setUniform("texture",this._positionSourceTex),this._copyPass.render(t),t.gl.clearColor(0,0,0,0),this._framebuffer.attach(this._forcePrevTex),t.gl.clear(t.gl.COLOR_BUFFER_BIT),this._framebuffer.attach(this._globalSpeedPrevTex),t.gl.clear(t.gl.COLOR_BUFFER_BIT),this._framebuffer.unbind(t)},c.prototype._resize=function(t,e){["_positionSourceTex","_positionTex","_positionPrevTex","_forceTex","_forcePrevTex"].forEach((function(n){this[n].width=t,this[n].height=e,this[n].dirty()}),this)},c.prototype.dispose=function(t){this._framebuffer.dispose(t),this._copyPass.dispose(t),this._nodeRepulsionPass.dispose(t),this._positionPass.dispose(t),this._globalSpeedPass.dispose(t),this._edgeForceMesh.geometry.dispose(t),this._weightedSumMesh.geometry.dispose(t),this._positionSourceTex.dispose(t),this._positionTex.dispose(t),this._positionPrevTex.dispose(t),this._forceTex.dispose(t),this._forcePrevTex.dispose(t),this._weightedSumTex.dispose(t),this._globalSpeedTex.dispose(t),this._globalSpeedPrevTex.dispose(t)},r.a.ForceAtlas2GPU=c,e.a=c},function(t,e,n){"use strict";e.a="@export ecgl.forceAtlas2.updateNodeRepulsion\n\n#define NODE_COUNT 0\n\nuniform sampler2D positionTex;\n\nuniform vec2 textureSize;\nuniform float gravity;\nuniform float scaling;\nuniform vec2 gravityCenter;\n\nuniform bool strongGravityMode;\nuniform bool preventOverlap;\n\nvarying vec2 v_Texcoord;\n\nvoid main() {\n\n vec4 n0 = texture2D(positionTex, v_Texcoord);\n\n vec2 force = vec2(0.0);\n for (int i = 0; i < NODE_COUNT; i++) {\n vec2 uv = vec2(\n mod(float(i), textureSize.x) / (textureSize.x - 1.0),\n floor(float(i) / textureSize.x) / (textureSize.y - 1.0)\n );\n vec4 n1 = texture2D(positionTex, uv);\n\n vec2 dir = n0.xy - n1.xy;\n float d2 = dot(dir, dir);\n\n if (d2 > 0.0) {\n float factor = 0.0;\n if (preventOverlap) {\n float d = sqrt(d2);\n d = d - n0.w - n1.w;\n if (d > 0.0) {\n factor = scaling * n0.z * n1.z / (d * d);\n }\n else if (d < 0.0) {\n factor = scaling * 100.0 * n0.z * n1.z;\n }\n }\n else {\n factor = scaling * n0.z * n1.z / d2;\n }\n force += dir * factor;\n }\n }\n\n vec2 dir = gravityCenter - n0.xy;\n float d = 1.0;\n if (!strongGravityMode) {\n d = length(dir);\n }\n\n force += dir * n0.z * gravity / (d + 1.0);\n\n gl_FragColor = vec4(force, 0.0, 1.0);\n}\n@end\n\n@export ecgl.forceAtlas2.updateEdgeAttraction.vertex\n\nattribute vec2 node1;\nattribute vec2 node2;\nattribute float weight;\n\nuniform sampler2D positionTex;\nuniform float edgeWeightInfluence;\nuniform bool preventOverlap;\nuniform bool linLogMode;\n\nuniform vec2 windowSize: WINDOW_SIZE;\n\nvarying vec2 v_Force;\n\nvoid main() {\n\n vec4 n0 = texture2D(positionTex, node1);\n vec4 n1 = texture2D(positionTex, node2);\n\n vec2 dir = n1.xy - n0.xy;\n float d = length(dir);\n float w;\n if (edgeWeightInfluence == 0.0) {\n w = 1.0;\n }\n else if (edgeWeightInfluence == 1.0) {\n w = weight;\n }\n else {\n w = pow(weight, edgeWeightInfluence);\n }\n vec2 offset = vec2(1.0 / windowSize.x, 1.0 / windowSize.y);\n vec2 scale = vec2((windowSize.x - 1.0) / windowSize.x, (windowSize.y - 1.0) / windowSize.y);\n vec2 pos = node1 * scale * 2.0 - 1.0;\n gl_Position = vec4(pos + offset, 0.0, 1.0);\n gl_PointSize = 1.0;\n\n float factor;\n if (preventOverlap) {\n d = d - n1.w - n0.w;\n }\n if (d <= 0.0) {\n v_Force = vec2(0.0);\n return;\n }\n\n if (linLogMode) {\n factor = w * log(d) / d;\n }\n else {\n factor = w;\n }\n v_Force = dir * factor;\n}\n@end\n\n@export ecgl.forceAtlas2.updateEdgeAttraction.fragment\n\nvarying vec2 v_Force;\n\nvoid main() {\n gl_FragColor = vec4(v_Force, 0.0, 0.0);\n}\n@end\n\n@export ecgl.forceAtlas2.calcWeightedSum.vertex\n\nattribute vec2 node;\n\nvarying vec2 v_NodeUv;\n\nvoid main() {\n\n v_NodeUv = node;\n gl_Position = vec4(0.0, 0.0, 0.0, 1.0);\n gl_PointSize = 1.0;\n}\n@end\n\n@export ecgl.forceAtlas2.calcWeightedSum.fragment\n\nvarying vec2 v_NodeUv;\n\nuniform sampler2D positionTex;\nuniform sampler2D forceTex;\nuniform sampler2D forcePrevTex;\n\nvoid main() {\n vec2 force = texture2D(forceTex, v_NodeUv).rg;\n vec2 forcePrev = texture2D(forcePrevTex, v_NodeUv).rg;\n\n float mass = texture2D(positionTex, v_NodeUv).z;\n float swing = length(force - forcePrev) * mass;\n float traction = length(force + forcePrev) * 0.5 * mass;\n\n gl_FragColor = vec4(swing, traction, 0.0, 0.0);\n}\n@end\n\n@export ecgl.forceAtlas2.calcGlobalSpeed\n\nuniform sampler2D globalSpeedPrevTex;\nuniform sampler2D weightedSumTex;\nuniform float jitterTolerence;\n\nvoid main() {\n vec2 weightedSum = texture2D(weightedSumTex, vec2(0.5)).xy;\n float prevGlobalSpeed = texture2D(globalSpeedPrevTex, vec2(0.5)).x;\n float globalSpeed = jitterTolerence * jitterTolerence\n * weightedSum.y / weightedSum.x;\n if (prevGlobalSpeed > 0.0) {\n globalSpeed = min(globalSpeed / prevGlobalSpeed, 1.5) * prevGlobalSpeed;\n }\n gl_FragColor = vec4(globalSpeed, 0.0, 0.0, 1.0);\n}\n@end\n\n@export ecgl.forceAtlas2.updatePosition\n\nuniform sampler2D forceTex;\nuniform sampler2D forcePrevTex;\nuniform sampler2D positionTex;\nuniform sampler2D globalSpeedTex;\n\nvarying vec2 v_Texcoord;\n\nvoid main() {\n vec2 force = texture2D(forceTex, v_Texcoord).xy;\n vec2 forcePrev = texture2D(forcePrevTex, v_Texcoord).xy;\n vec4 node = texture2D(positionTex, v_Texcoord);\n\n float globalSpeed = texture2D(globalSpeedTex, vec2(0.5)).r;\n float swing = length(force - forcePrev);\n float speed = 0.1 * globalSpeed / (0.1 + globalSpeed * sqrt(swing));\n\n float df = length(force);\n if (df > 0.0) {\n speed = min(df * speed, 10.0) / df;\n\n gl_FragColor = vec4(node.xy + speed * force, node.zw);\n }\n else {\n gl_FragColor = node;\n }\n}\n@end\n\n@export ecgl.forceAtlas2.edges.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec2 node;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\nuniform sampler2D positionTex;\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(\n texture2D(positionTex, node).xy, -10.0, 1.0\n );\n v_Color = a_Color;\n}\n@end\n\n@export ecgl.forceAtlas2.edges.fragment\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nvarying vec4 v_Color;\nvoid main() {\n gl_FragColor = color * v_Color;\n}\n@end"},function(t,e,n){"use strict";var i=n(5),r=n(6),a=n(250).a.toString();a=a.slice(a.indexOf("{")+1,a.lastIndexOf("}"));var o={barnesHutOptimize:!0,barnesHutTheta:1.5,repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null},s=function(t){for(var e in o)this[e]=o[e];if(t)for(var e in t)this[e]=t[e];this._nodes=[],this._edges=[],this._disposed=!1,this._positionTex=new i.a({type:r.a.FLOAT,flipY:!1,minFilter:r.a.NEAREST,magFilter:r.a.NEAREST})};s.prototype.initData=function(t,e){var n=new Blob([a]),i=window.URL.createObjectURL(n);this._worker=new Worker(i),this._worker.onmessage=this._$onupdate.bind(this),this._nodes=t,this._edges=e,this._frame=0;for(var r=t.length,o=e.length,s=new Float32Array(2*r),l=new Float32Array(r),u=new Float32Array(r),c=new Float32Array(2*o),h=new Float32Array(o),d=0;d5e4?10:a>5e3?1:.1,e.scaling=a>100?2:10,e.barnesHutOptimize=a>1e3,t)for(var n in o)null!=t[n]&&(e[n]=t[n]);if(!e.gravityCenter){for(var s=[1/0,1/0],l=[-1/0,-1/0],u=0;ut},s.prototype.getNodePosition=function(t,e){if(e||(e=new Float32Array(2*this._nodes.length)),this._positionArr)for(var n=0;n=t&&this.bbox[1]<=e&&this.bbox[3]>=e},u.setBBox=function(t,e,n,i){this.bbox[0]=t,this.bbox[1]=e,this.bbox[2]=n,this.bbox[3]=i,this.size=(n-t+i-e)/2},u._newSubRegion=function(){var t=this.subRegions[this.nSubRegions];return t||(t=new l,this.subRegions[this.nSubRegions]=t),this.nSubRegions++,t},u._addNodeToSubRegion=function(t){var e=this.findSubRegion(t.position[0],t.position[1]),n=this.bbox;if(!e){var i=(n[0]+n[2])/2,r=(n[1]+n[3])/2,a=(n[2]-n[0])/2,o=(n[3]-n[1])/2,s=t.position[0]>=i?1:0,l=t.position[1]>=r?1:0;(e=this._newSubRegion()).setBBox(s*a+n[0],l*o+n[1],(s+1)*a+n[0],(l+1)*o+n[1])}e.addNode(t)},u._updateCenterOfMass=function(t){null==this.centerOfMass&&(this.centerOfMass=new Float32Array(2));var e=this.centerOfMass[0]*this.mass,n=this.centerOfMass[1]*this.mass;e+=t.position[0]*t.mass,n+=t.position[1]*t.mass,this.mass+=t.mass,this.centerOfMass[0]=e/this.mass,this.centerOfMass[1]=n/this.mass};var f,p=d.prototype;p.initNodes=function(t,e,n){var i=e.length;this.nodes.length=0;for(var r=void 0!==n,a=0;a0&&(this.strongGravityMode?this.applyNodeStrongGravity(c):this.applyNodeGravity(c))}for(l=0;l0&&(m=Math.min(m/this._globalSpeed,1.5)*this._globalSpeed),this._globalSpeed=m,l=0;l0&&(y=Math.min(x*y,10)/x,i(u.position,u.position,u.force,y))}},p.applyRegionToNodeRepulsion=(f=t(),function(t,e){if(t.node)this.applyNodeToNodeRepulsion(t.node,e,!0);else{a(f,e.position,t.centerOfMass);var n=f[0]*f[0]+f[1]*f[1];if(n>this.barnesHutTheta*t.size*t.size){var r=this.scaling*e.mass*t.mass/n;i(e.force,e.force,f,r)}else for(var o=0;o0)s=this.scaling*t.mass*n.mass/(l*l);else{if(!(l<0))return;s=100*this.scaling*t.mass*n.mass}}else s=this.scaling*t.mass*n.mass/o;i(t.force,t.force,e,s),i(n.force,n.force,e,-s)}}}}(),p.applyEdgeAttraction=function(){var e=t();return function(t){var r=t.source,o=t.target;a(e,r.position,o.position);var s,l,u=n(e);s=0===this.edgeWeightInfluence?1:1===this.edgeWeightInfluence?t.weight:Math.pow(t.weight,this.edgeWeightInfluence),this.preventOverlap&&(u=u-r.size-o.size)<=0||(l=this.linLogMode?-s*Math.log(u+1)/(u+1):-s,i(r.force,r.force,e,l),i(o.force,o.force,e,-l))}}(),p.applyNodeGravity=function(){var e=t();return function(t){a(e,this.gravityCenter,t.position);var r=n(e);i(t.force,t.force,e,this.gravity*t.mass/(r+1))}}(),p.applyNodeStrongGravity=function(){var e=t();return function(t){a(e,this.gravityCenter,t.position),i(t.force,t.force,e,this.gravity*t.mass)}}(),p.updateBBox=function(){for(var t=1/0,e=1/0,n=-1/0,i=-1/0,r=0;r0?1.1:.9,a=Math.max(Math.min(this._zoom*r,this.maxZoom),this.minZoom);r=a/this._zoom;var o=this._convertPos(n,i),s=(o.x-this._dx)*(r-1),l=(o.y-this._dy)*(r-1);this._dx-=s,this._dy-=l,this._zoom=a,this._needsUpdate=!0}}},dispose:function(){var t=this.zr;t.off("mousedown",this._mouseDownHandler),t.off("mousemove",this._mouseMoveHandler),t.off("mouseup",this._mouseUpHandler),t.off("mousewheel",this._mouseWheelHandler),t.off("globalout",this._mouseUpHandler),t.animation.off("frame",this._update)}}));e.a=r},function(t,e,n){"use strict";e.a="@export ecgl.lines2D.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec2 position: POSITION;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\n#ifdef POSITIONTEXTURE_ENABLED\nuniform sampler2D positionTexture;\n#endif\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(position, -10.0, 1.0);\n\n v_Color = a_Color;\n}\n\n@end\n\n@export ecgl.lines2D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\nvoid main()\n{\n gl_FragColor = color * v_Color;\n}\n@end\n\n\n@export ecgl.meshLines2D.vertex\n\nattribute vec2 position: POSITION;\nattribute vec2 normal;\nattribute float offset;\nattribute vec4 a_Color : COLOR;\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\n\nvarying vec4 v_Color;\nvarying float v_Miter;\n\nvoid main()\n{\n vec4 p2 = worldViewProjection * vec4(position + normal, -10.0, 1.0);\n gl_Position = worldViewProjection * vec4(position, -10.0, 1.0);\n\n p2.xy /= p2.w;\n gl_Position.xy /= gl_Position.w;\n\n vec2 N = normalize(p2.xy - gl_Position.xy);\n gl_Position.xy += N * offset / viewport.zw * 2.0;\n\n gl_Position.xy *= gl_Position.w;\n\n v_Color = a_Color;\n}\n@end\n\n\n@export ecgl.meshLines2D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\nvarying float v_Miter;\n\nvoid main()\n{\n gl_FragColor = color * v_Color;\n}\n\n@end"},function(t,e,n){"use strict";var i=n(0);n.n(i),n(254),n(258)},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(2),o=n(3),s=n(20),l=n(255);r.a.extendChartView({type:"flowGL",__ecgl__:!0,init:function(t,e){this.viewGL=new s.a("orthographic"),this.groupGL=new a.a.Node,this.viewGL.add(this.groupGL),this._particleSurface=new l.a;var n=new a.a.Mesh({geometry:new a.a.PlaneGeometry,material:new a.a.Material({shader:new a.a.Shader({vertex:a.a.Shader.source("ecgl.color.vertex"),fragment:a.a.Shader.source("ecgl.color.fragment")}),transparent:!0})});n.material.enableTexture("diffuseMap"),this.groupGL.add(n),this._planeMesh=n},render:function(t,e,n){var i=this._particleSurface;i.setParticleType(t.get("particleType")),i.setSupersampling(t.get("supersampling")),this._updateData(t,n),this._updateCamera(n.getWidth(),n.getHeight(),n.getDevicePixelRatio());var r=o.a.firstNotNull(t.get("particleDensity"),128);i.setParticleDensity(r,r);var s=this._planeMesh,l=+new Date,u=this,c=!0;s.__percent=0,s.stopAnimation(),s.animate("",{loop:!0}).when(1e5,{__percent:1}).during((function(){var t=+new Date,e=Math.min(t-l,20);l+=e,u._renderer&&(i.update(u._renderer,n,e/1e3,c),s.material.set("diffuseMap",i.getSurfaceTexture())),c=!1})).start();var h=t.getModel("itemStyle"),d=a.a.parseColor(h.get("color"));d[3]*=o.a.firstNotNull(h.get("opacity"),1),s.material.set("color",d),i.setColorTextureImage(t.get("colorTexture"),n),i.setParticleSize(t.get("particleSize")),i.particleSpeedScaling=t.get("particleSpeed"),i.motionBlurFactor=1-Math.pow(.1,t.get("particleTrail"))},updateTransform:function(t,e,n){this._updateData(t,n)},afterRender:function(t,e,n,i){var r=i.renderer;this._renderer=r},_updateData:function(t,e){var n=t.coordinateSystem,i=n.dimensions.map((function(e){return t.coordDimToDataDim(e)[0]})),r=t.getData(),a=r.getDataExtent(i[0]),o=r.getDataExtent(i[1]),s=t.get("gridWidth"),l=t.get("gridHeight");if(null==s||"auto"===s){var u=(a[1]-a[0])/(o[1]-o[0]);s=Math.round(Math.sqrt(u*r.count()))}null!=l&&"auto"!==l||(l=Math.ceil(r.count()/s));var c=this._particleSurface.vectorFieldTexture,h=c.pixels;if(h&&h.length===l*s*4)for(var d=0;d=359&&(r[0]>0&&(r[0]=0),a[0]0?t[t.length-1]:this._lastFrameTexture},setRegion:function(t){this._particlePass.setUniform("region",t)},resize:function(t,e){this._lastFrameTexture.width=t*this._supersampling,this._lastFrameTexture.height=e*this._supersampling,this._thisFrameTexture.width=t*this._supersampling,this._thisFrameTexture.height=e*this._supersampling,this._width=t,this._height=e},setParticleSize:function(t){var e=this._getParticleMesh();if(t<=2)return e.material.disableTexture("spriteTexture"),void(e.material.transparent=!1);this._spriteTexture||(this._spriteTexture=new l.a),this._spriteTexture.image&&this._spriteTexture.image.width===t||(this._spriteTexture.image=function(t){var e=document.createElement("canvas");e.width=e.height=t;var n=e.getContext("2d");return n.fillStyle="#fff",n.arc(t/2,t/2,t/2,0,2*Math.PI),n.fill(),e}(t),this._spriteTexture.dirty()),e.material.transparent=!0,e.material.enableTexture("spriteTexture"),e.material.set("spriteTexture",this._spriteTexture),this._particleSize=t},setGradientTexture:function(t){var e=this._getParticleMesh().material;e[t?"enableTexture":"disableTexture"]("gradientTexture"),e.setUniform("gradientTexture",t)},setColorTextureImage:function(t,e){this._getParticleMesh().material.setTextureImage("colorTexture",t,e,{flipY:!0})},setParticleType:function(t){this._particleType=t},clearFrame:function(t){var e=this._frameBuffer;e.attach(this._lastFrameTexture),e.bind(t),t.gl.clear(t.gl.DEPTH_BUFFER_BIT|t.gl.COLOR_BUFFER_BIT),e.unbind(t)},setSupersampling:function(t){this._supersampling=t,this.resize(this._width,this._height)},_updateDownsampleTextures:function(t,e){for(var n=this._downsampleTextures,i=Math.max(Math.floor(Math.log(this._supersampling/e.getDevicePixelRatio())/Math.log(2)),0),r=2,a=this._width*this._supersampling,o=this._height*this._supersampling,s=0;s65535?new Uint32Array(3*i):new Uint16Array(3*i))},addLine:function(t){var e=this._vertexOffset;this.attributes.position.set(e,[t[0],t[1],1]),this.attributes.position.set(e+1,[t[0],t[1],-1]),this.attributes.position.set(e+2,[t[0],t[1],2]),this.attributes.position.set(e+3,[t[0],t[1],-2]),this.setTriangleIndices(this._faceOffset++,[e,e+1,e+2]),this.setTriangleIndices(this._faceOffset++,[e+1,e+2,e+3]),this._vertexOffset+=4}}));e.a=a},function(t,e,n){"use strict";e.a="@export ecgl.vfParticle.particle.fragment\n\nuniform sampler2D particleTexture;\nuniform sampler2D spawnTexture;\nuniform sampler2D velocityTexture;\n\nuniform float deltaTime;\nuniform float elapsedTime;\n\nuniform float speedScaling : 1.0;\n\nuniform vec2 textureSize;\nuniform vec4 region : [0, 0, 1, 1];\nuniform float firstFrameTime;\n\nvarying vec2 v_Texcoord;\n\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, v_Texcoord);\n bool spawn = false;\n if (p.w <= 0.0) {\n p = texture2D(spawnTexture, fract(v_Texcoord + elapsedTime / 10.0));\n p.w -= firstFrameTime;\n spawn = true;\n }\n vec2 v = texture2D(velocityTexture, fract(p.xy * region.zw + region.xy)).xy;\n v = (v - 0.5) * 2.0;\n p.z = length(v);\n p.xy += v * deltaTime / 10.0 * speedScaling;\n p.w -= deltaTime;\n\n if (spawn || p.xy != fract(p.xy)) {\n p.z = 0.0;\n }\n p.xy = fract(p.xy);\n\n gl_FragColor = p;\n}\n@end\n\n@export ecgl.vfParticle.renderPoints.vertex\n\n#define PI 3.1415926\n\nattribute vec2 texcoord : TEXCOORD_0;\n\nuniform sampler2D particleTexture;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nuniform float size : 1.0;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, texcoord);\n\n if (p.w > 0.0 && p.z > 1e-5) {\n gl_Position = worldViewProjection * vec4(p.xy * 2.0 - 1.0, 0.0, 1.0);\n }\n else {\n gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0);\n }\n\n v_Mag = p.z;\n v_Uv = p.xy;\n\n gl_PointSize = size;\n}\n\n@end\n\n@export ecgl.vfParticle.renderPoints.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform sampler2D gradientTexture;\nuniform sampler2D colorTexture;\nuniform sampler2D spriteTexture;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n gl_FragColor = color;\n#ifdef SPRITETEXTURE_ENABLED\n gl_FragColor *= texture2D(spriteTexture, gl_PointCoord);\n if (color.a == 0.0) {\n discard;\n }\n#endif\n#ifdef GRADIENTTEXTURE_ENABLED\n gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5));\n#endif\n#ifdef COLORTEXTURE_ENABLED\n gl_FragColor *= texture2D(colorTexture, v_Uv);\n#endif\n}\n\n@end\n\n@export ecgl.vfParticle.renderLines.vertex\n\n#define PI 3.1415926\n\nattribute vec3 position : POSITION;\n\nuniform sampler2D particleTexture;\nuniform sampler2D prevParticleTexture;\n\nuniform float size : 1.0;\nuniform vec4 vp: VIEWPORT;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\n@import clay.util.rand\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, position.xy);\n vec4 p2 = texture2D(prevParticleTexture, position.xy);\n\n p.xy = p.xy * 2.0 - 1.0;\n p2.xy = p2.xy * 2.0 - 1.0;\n\n if (p.w > 0.0 && p.z > 1e-5) {\n vec2 dir = normalize(p.xy - p2.xy);\n vec2 norm = vec2(dir.y / vp.z, -dir.x / vp.w) * sign(position.z) * size;\n if (abs(position.z) == 2.0) {\n gl_Position = vec4(p.xy + norm, 0.0, 1.0);\n v_Uv = p.xy;\n v_Mag = p.z;\n }\n else {\n gl_Position = vec4(p2.xy + norm, 0.0, 1.0);\n v_Mag = p2.z;\n v_Uv = p2.xy;\n }\n gl_Position = worldViewProjection * gl_Position;\n }\n else {\n gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0);\n }\n}\n\n@end\n\n@export ecgl.vfParticle.renderLines.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform sampler2D gradientTexture;\nuniform sampler2D colorTexture;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n gl_FragColor = color;\n #ifdef GRADIENTTEXTURE_ENABLED\n gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5));\n#endif\n#ifdef COLORTEXTURE_ENABLED\n gl_FragColor *= texture2D(colorTexture, v_Uv);\n#endif\n}\n\n@end\n"},function(t,e,n){"use strict";var i=n(0),r=n.n(i);r.a.extendSeriesModel({type:"series.flowGL",dependencies:["geo","grid","bmap"],visualColorAccessPath:"itemStyle.color",getInitialData:function(t,e){var n=r.a.getCoordinateSystemDimensions(this.get("coordinateSystem"))||["x","y"];if(n.length>2)throw new Error("flowGL can only be used on 2d coordinate systems.");n.push("vx","vy");var i=r.a.helper.completeDimensions(n,this.getSource(),{encodeDef:this.get("encode"),dimsDef:this.get("dimensions")}),a=new r.a.List(i,this);return a.initData(this.getSource()),a},defaultOption:{coordinateSystem:"cartesian2d",zlevel:10,supersampling:1,particleType:"point",particleDensity:128,particleSize:1,particleSpeed:1,particleTrail:2,colorTexture:null,gridWidth:"auto",gridHeight:"auto",itemStyle:{color:"#fff",opacity:.8}}})},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=(n(260),n(261),n(16));r.a.registerVisual(Object(a.a)("linesGL"))},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(12),o=(n.n(a),r.a.extendSeriesModel({type:"series.linesGL",dependencies:["grid","geo"],visualColorAccessPath:"lineStyle.color",streamEnabled:!0,init:function(t){var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),o.superApply(this,"init",arguments)},mergeOption:function(t){var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),o.superApply(this,"mergeOption",arguments)},appendData:function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(a.concatArray)(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(a.concatArray)(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},_getCoordsFromItemModel:function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");if(!(n instanceof Array&&n.length>0&&n[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(n)+". Lines must have 2d coords array in data item.");return n},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;rn)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,o),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t,e){var n=new r.a.List(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var a=t.value;return null!=a?a instanceof Array?a[r]:a:void 0})),n},defaultOption:{coordinateSystem:"geo",zlevel:10,progressive:1e4,progressiveThreshold:5e4,blendMode:"source-over",lineStyle:{opacity:.8},postEffect:{enable:!1,colorCorrection:{exposure:0,brightness:0,contrast:1,saturation:1,enable:!0}}}}))},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(2),o=n(20),s=n(86),l=n(84),u=n(3);r.a.extendChartView({type:"linesGL",__ecgl__:!0,init:function(t,e){this.groupGL=new a.a.Node,this.viewGL=new o.a("orthographic"),this.viewGL.add(this.groupGL),this._glViewHelper=new l.a(this.viewGL),this._nativeLinesShader=a.a.createShader("ecgl.lines3D"),this._meshLinesShader=a.a.createShader("ecgl.meshLines3D"),this._linesMeshes=[],this._currentStep=0},render:function(t,e,n){this.groupGL.removeAll(),this._glViewHelper.reset(t,n);var i=this._linesMeshes[0];i||(i=this._linesMeshes[0]=this._createLinesMesh(t)),this._linesMeshes.length=1,this.groupGL.add(i),this._updateLinesMesh(t,i,0,t.getData().count()),this.viewGL.setPostEffect(t.getModel("postEffect"),n)},incrementalPrepareRender:function(t,e,n){this.groupGL.removeAll(),this._glViewHelper.reset(t,n),this._currentStep=0,this.viewGL.setPostEffect(t.getModel("postEffect"),n)},incrementalRender:function(t,e,n,i){var r=this._linesMeshes[this._currentStep];r||(r=this._createLinesMesh(e),this._linesMeshes[this._currentStep]=r),this._updateLinesMesh(e,r,t.start,t.end),this.groupGL.add(r),i.getZr().refresh(),this._currentStep++},updateTransform:function(t,e,n){t.coordinateSystem.getRoamTransform&&this._glViewHelper.updateTransform(t,n)},_createLinesMesh:function(t){return new a.a.Mesh({$ignorePicking:!0,material:new a.a.Material({shader:a.a.createShader("ecgl.lines3D"),transparent:!0,depthMask:!1,depthTest:!1}),geometry:new s.a({segmentScale:10,useNativeLine:!0,dynamic:!1}),mode:a.a.Mesh.LINES,culling:!1})},_updateLinesMesh:function(t,e,n,i){var r=t.getData();e.material.blend="lighter"===t.get("blendMode")?a.a.additiveBlend:null;var o=t.get("lineStyle.curveness")||0,s=t.get("polyline"),l=e.geometry,c=t.coordinateSystem,h=u.a.firstNotNull(t.get("lineStyle.width"),1);h>1?(e.material.shader!==this._meshLinesShader&&e.material.attachShader(this._meshLinesShader),e.mode=a.a.Mesh.TRIANGLES):(e.material.shader!==this._nativeLinesShader&&e.material.attachShader(this._nativeLinesShader),e.mode=a.a.Mesh.LINES),n=n||0,i=i||r.count(),l.resetOffset();var d=0,f=0,p=[],g=[],m=[],v=[],y=[],x=.3,b=.7;function _(){g[0]=p[0]*b+v[0]*x-(p[1]-v[1])*o,g[1]=p[1]*b+v[1]*x-(v[0]-p[0])*o,m[0]=p[0]*x+v[0]*b-(p[1]-v[1])*o,m[1]=p[1]*x+v[1]*b-(v[0]-p[0])*o}if(s||0!==o)for(var E=n;E=2&&e(n[n.length-2],n[n.length-1],t[i])<=0;)n.pop();n.push(t[i])}return n.pop(),n}(t),i=function(t){const n=t.reverse(),i=[];for(let t=0;t=2&&e(i[i.length-2],i[i.length-1],n[t])<=0;)i.pop();i.push(n[t])}return i.pop(),i}(t).concat(n);return i.push(t[0]),i}},11950:function(t){t.exports={toXy:function(t,e){return void 0===e?t.slice():t.map((function(t){return new Function("pt","return [pt"+e[0]+",pt"+e[1]+"];")(t)}))},fromXy:function(t,e){return void 0===e?t.slice():t.map((function(t){return new Function("pt","const o = {}; o"+e[0]+"= pt[0]; o"+e[1]+"= pt[1]; return o;")(t)}))}}},98204:function(t){function e(t,e){this._cells=[],this._cellSize=e,this._reverseCellSize=1/e;for(let e=0;eo&&r>s&&!u([t[0],e[c]],n)&&!u([t[1],e[c]],n)&&(o=i,s=r,a=e[c]);return a}function d(t,e,n,i,r){let a=!1;for(let o=0;od||n[1]>f));d>=n[0]&&f>=n[1]&&r.add(u),null!==p&&(t.splice(o+1,0,p),i.removePoint(p),a=!0)}return a?d(t,e,n,i,r):t}const f=Math.cos(90/(180/Math.PI)),p=.6;t.exports=function(t,e,n){let i=e||20;const s=function(t){const e=[t[0]];let n=t[0];for(let i=1;i=0;a--)t[a][0]i&&(i=t[a][0]),t[a][1]>r&&(r=t[a][1]);return[i-e,r-n]}(s),u=[l[0]*p,l[1]*p],c=o(s),h=s.filter((function(t){return c.indexOf(t)<0})),f=Math.ceil(1/(s.length/(l[0]*l[1]))),g=d(c,Math.pow(i,2),u,r(h,f),new Set);return n?a.fromXy(g,n):g}},86972:function(t){function e(t,e,n,i,r,a){const o=(a-e)*(n-t)-(i-e)*(r-t);return o>0||!(o<0)}t.exports=function(t,n){const i=t[0][0],r=t[0][1],a=t[1][0],o=t[1][1],s=n[0][0],l=n[0][1],u=n[1][0],c=n[1][1];return e(i,r,s,l,u,c)!==e(a,o,s,l,u,c)&&e(i,r,a,o,s,l)!==e(i,r,a,o,u,c)}},22948:function(t){t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},51581:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(e,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));u.ref=function(e){t.scrollComponent=e,l&&l(e)};var c=[n];return r&&(s?o?c.unshift(s):c.push(s):this.defaultLoader&&(o?c.unshift(this.defaultLoader):c.push(this.defaultLoader))),a.default.createElement(i,u,c)}}]),e}(r.Component);l.propTypes={children:o.default.node.isRequired,element:o.default.node,hasMore:o.default.bool,initialLoad:o.default.bool,isReverse:o.default.bool,loader:o.default.node,loadMore:o.default.func.isRequired,pageStart:o.default.number,ref:o.default.func,getScrollParent:o.default.func,threshold:o.default.number,useCapture:o.default.bool,useWindow:o.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},e.default=l,t.exports=e.default},26724:function(t,e,n){t.exports=n(51581)},75029:function(t,e,n){"use strict";var i=n(22948),r=Array.prototype.concat,a=Array.prototype.slice,o=t.exports=function(t){for(var e=[],n=0,o=t.length;n1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var i=this,r=arguments.length,a=new Array(r),o=0;o0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o}function h(){for(var t=0,e=0,n=arguments.length;e{e.has(r.id)||(e.add(r.id),t.push(r))}))}return!1}function i(t,e,r,n){if(r(t))return!0;e.add(t.id);for(const o of n(t.id))if(!e.has(o.id)&&i(o,e,r,n))return!0;return!1}const s=()=>!0;class a{graph;nodeFilter;edgeFilter;cacheEnabled;inEdgesMap=new Map;outEdgesMap=new Map;bothEdgesMap=new Map;allNodesMap=new Map;allEdgesMap=new Map;constructor(t){this.graph=t.graph;const e=t.nodeFilter||s,r=t.edgeFilter||s;this.nodeFilter=e,this.edgeFilter=t=>{const{source:n,target:o}=this.graph.getEdgeDetail(t.id);return!(!e(n)||!e(o))&&r(t,n,o)},"auto"===t.cache?(this.cacheEnabled=!0,this.startAutoCache()):"manual"===t.cache?this.cacheEnabled=!0:this.cacheEnabled=!1}clearCache=()=>{this.inEdgesMap.clear(),this.outEdgesMap.clear(),this.bothEdgesMap.clear(),this.allNodesMap.clear(),this.allEdgesMap.clear()};refreshCache=()=>{this.clearCache(),this.updateCache(this.graph.getAllNodes().map((t=>t.id)))};updateCache=t=>{const e=new Set;t.forEach((t=>{const r=this.bothEdgesMap.get(t);if(r&&r.forEach((t=>e.add(t.id))),this.hasNode(t)){const r=this.graph.getRelatedEdges(t,"in").filter(this.edgeFilter),n=this.graph.getRelatedEdges(t,"out").filter(this.edgeFilter),o=Array.from(new Set([...r,...n]));o.forEach((t=>e.add(t.id))),this.inEdgesMap.set(t,r),this.outEdgesMap.set(t,n),this.bothEdgesMap.set(t,o),this.allNodesMap.set(t,this.graph.getNode(t))}else this.inEdgesMap.delete(t),this.outEdgesMap.delete(t),this.bothEdgesMap.delete(t),this.allNodesMap.delete(t)})),e.forEach((t=>{this.hasEdge(t)?this.allEdgesMap.set(t,this.graph.getEdge(t)):this.allEdgesMap.delete(t)}))};startAutoCache(){this.refreshCache(),this.graph.on("changed",this.handleGraphChanged)}stopAutoCache(){this.graph.off("changed",this.handleGraphChanged)}handleGraphChanged=t=>{const e=new Set;t.changes.forEach((r=>{switch(r.type){case"NodeAdded":case"NodeRemoved":e.add(r.value.id);break;case"NodeDataUpdated":e.add(r.id);break;case"EdgeAdded":case"EdgeRemoved":e.add(r.value.source),e.add(r.value.target);break;case"EdgeUpdated":"source"!==r.propertyName&&"target"!==r.propertyName||(e.add(r.oldValue),e.add(r.newValue));break;case"EdgeDataUpdated":if(t.graph.hasEdge(r.id)){const n=t.graph.getEdge(r.id);e.add(n.source),e.add(n.target)}}})),this.updateCache(e)};checkNodeExistence(t){this.getNode(t)}hasNode(t){if(!this.graph.hasNode(t))return!1;const e=this.graph.getNode(t);return this.nodeFilter(e)}areNeighbors(t,e){return this.checkNodeExistence(t),this.getNeighbors(e).some((e=>e.id===t))}getNode(t){const e=this.graph.getNode(t);if(!this.nodeFilter(e))throw new Error("Node not found for id: "+t);return e}getRelatedEdges(t,e){if(this.checkNodeExistence(t),this.cacheEnabled)return"in"===e?this.inEdgesMap.get(t):"out"===e?this.outEdgesMap.get(t):this.bothEdgesMap.get(t);return this.graph.getRelatedEdges(t,e).filter(this.edgeFilter)}getDegree(t,e){return this.getRelatedEdges(t,e).length}getSuccessors(t){const e=this.getRelatedEdges(t,"out").map((t=>this.getNode(t.target)));return Array.from(new Set(e))}getPredecessors(t){const e=this.getRelatedEdges(t,"in").map((t=>this.getNode(t.source)));return Array.from(new Set(e))}getNeighbors(t){const e=this.getPredecessors(t),r=this.getSuccessors(t);return Array.from(new Set([...e,...r]))}hasEdge(t){if(!this.graph.hasEdge(t))return!1;const e=this.graph.getEdge(t);return this.edgeFilter(e)}getEdge(t){const e=this.graph.getEdge(t);if(!this.edgeFilter(e))throw new Error("Edge not found for id: "+t);return e}getEdgeDetail(t){const e=this.getEdge(t);return{edge:e,source:this.getNode(e.source),target:this.getNode(e.target)}}hasTreeStructure(t){return this.graph.hasTreeStructure(t)}getRoots(t){return this.graph.getRoots(t).filter(this.nodeFilter)}getChildren(t,e){return this.checkNodeExistence(t),this.graph.getChildren(t,e).filter(this.nodeFilter)}getParent(t,e){this.checkNodeExistence(t);const r=this.graph.getParent(t,e);return r&&this.nodeFilter(r)?r:null}getAllNodes(){return this.cacheEnabled?Array.from(this.allNodesMap.values()):this.graph.getAllNodes().filter(this.nodeFilter)}getAllEdges(){return this.cacheEnabled?Array.from(this.allEdgesMap.values()):this.graph.getAllEdges().filter(this.edgeFilter)}bfs(t,e,r="out"){const n={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[r];o([this.getNode(t)],new Set,e,n)}dfs(t,e,r="out"){const n={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[r];i(this.getNode(t),new Set,e,n)}}class u extends n.Z{nodeMap=new Map;edgeMap=new Map;inEdgesMap=new Map;outEdgesMap=new Map;bothEdgesMap=new Map;treeIndices=new Map;changes=[];batchCount=0;onChanged=()=>{};constructor(t){super(),t&&(t.nodes&&this.addNodes(t.nodes),t.edges&&this.addEdges(t.edges),t.tree&&this.addTree(t.tree),t.onChanged&&(this.onChanged=t.onChanged))}batch=t=>{this.batchCount+=1,t(),this.batchCount-=1,this.batchCount||this.commit()};commit(){const t=this.changes;this.changes=[];const e={graph:this,changes:t};this.emit("changed",e),this.onChanged(e)}reduceChanges(t){let e=[];return t.forEach((t=>{switch(t.type){case"NodeRemoved":{let r=!1;e=e.filter((e=>{if("NodeAdded"===e.type){const n=e.value.id===t.value.id;return n&&(r=!0),!n}return"NodeDataUpdated"===e.type?e.id!==t.value.id:"TreeStructureChanged"!==e.type||e.nodeId!==t.value.id})),r||e.push(t);break}case"EdgeRemoved":{let r=!1;e=e.filter((e=>{if("EdgeAdded"===e.type){const n=e.value.id===t.value.id;return n&&(r=!0),!n}return"EdgeDataUpdated"!==e.type&&"EdgeUpdated"!==e.type||e.id!==t.value.id})),r||e.push(t);break}case"NodeDataUpdated":case"EdgeDataUpdated":case"EdgeUpdated":{const r=e.findIndex((e=>e.type===t.type&&e.id===t.id&&(void 0===t.propertyName||e.propertyName===t.propertyName))),n=e[r];n?void 0!==t.propertyName?n.newValue=t.newValue:(e.splice(r,1),e.push(t)):e.push(t);break}case"TreeStructureDetached":e=e.filter((e=>"TreeStructureAttached"===e.type?e.treeKey!==t.treeKey:"TreeStructureChanged"!==e.type||e.treeKey!==t.treeKey)),e.push(t);break;case"TreeStructureChanged":{const r=e.find((e=>"TreeStructureChanged"===e.type&&e.treeKey===t.treeKey&&e.nodeId===t.nodeId));r?r.newParentId=t.newParentId:e.push(t);break}default:e.push(t)}})),e}checkNodeExistence(t){this.getNode(t)}hasNode(t){return this.nodeMap.has(t)}areNeighbors(t,e){return this.getNeighbors(e).some((e=>e.id===t))}getNode(t){const e=this.nodeMap.get(t);if(!e)throw new Error("Node not found for id: "+t);return e}getRelatedEdges(t,e){if(this.checkNodeExistence(t),"in"===e){const e=this.inEdgesMap.get(t);return Array.from(e)}if("out"===e){const e=this.outEdgesMap.get(t);return Array.from(e)}{const e=this.bothEdgesMap.get(t);return Array.from(e)}}getDegree(t,e){return this.getRelatedEdges(t,e).length}getSuccessors(t){const e=this.getRelatedEdges(t,"out").map((t=>this.getNode(t.target)));return Array.from(new Set(e))}getPredecessors(t){const e=this.getRelatedEdges(t,"in").map((t=>this.getNode(t.source)));return Array.from(new Set(e))}getNeighbors(t){const e=this.getPredecessors(t),r=this.getSuccessors(t);return Array.from(new Set([...e,...r]))}doAddNode(t){if(this.hasNode(t.id))throw new Error("Node already exists: "+t.id);this.nodeMap.set(t.id,t),this.inEdgesMap.set(t.id,new Set),this.outEdgesMap.set(t.id,new Set),this.bothEdgesMap.set(t.id,new Set),this.treeIndices.forEach((e=>{e.childrenMap.set(t.id,new Set)})),this.changes.push({type:"NodeAdded",value:t})}addNodes(t){this.batch((()=>{for(const e of t)this.doAddNode(e)}))}addNode(t){this.addNodes([t])}doRemoveNode(t){const e=this.getNode(t);this.bothEdgesMap.get(t)?.forEach((t=>this.doRemoveEdge(t.id))),this.nodeMap.delete(t),this.treeIndices.forEach((r=>{r.childrenMap.get(t)?.forEach((t=>{r.parentMap.delete(t.id)}));const n=r.parentMap.get(t);n&&r.childrenMap.get(n.id)?.delete(e),r.parentMap.delete(t),r.childrenMap.delete(t)})),this.bothEdgesMap.delete(t),this.inEdgesMap.delete(t),this.outEdgesMap.delete(t),this.changes.push({type:"NodeRemoved",value:e})}removeNodes(t){this.batch((()=>{t.forEach((t=>this.doRemoveNode(t)))}))}removeNode(t){this.removeNodes([t])}updateNodeDataProperty(t,e,r){const n=this.getNode(t);this.batch((()=>{const o=n.data[e],i=r;n.data[e]=i,this.changes.push({type:"NodeDataUpdated",id:t,propertyName:e,oldValue:o,newValue:i})}))}mergeNodeData(t,e){this.batch((()=>{Object.entries(e).forEach((([e,r])=>{this.updateNodeDataProperty(t,e,r)}))}))}updateNodeData(...t){const e=t[0],r=this.getNode(e);if("string"==typeof t[1])return void this.updateNodeDataProperty(e,t[1],t[2]);let n;if("function"==typeof t[1]){const e=t[1];n=e(r.data)}else"object"==typeof t[1]&&(n=t[1]);this.batch((()=>{const t=r.data,o=n;r.data=n,this.changes.push({type:"NodeDataUpdated",id:e,oldValue:t,newValue:o})}))}checkEdgeExistence(t){if(!this.hasEdge(t))throw new Error("Edge not found for id: "+t)}hasEdge(t){return this.edgeMap.has(t)}getEdge(t){return this.checkEdgeExistence(t),this.edgeMap.get(t)}getEdgeDetail(t){const e=this.getEdge(t);return{edge:e,source:this.getNode(e.source),target:this.getNode(e.target)}}doAddEdge(t){if(this.hasEdge(t.id))throw new Error("Edge already exists: "+t.id);this.checkNodeExistence(t.source),this.checkNodeExistence(t.target),this.edgeMap.set(t.id,t);const e=this.inEdgesMap.get(t.target),r=this.outEdgesMap.get(t.source),n=this.bothEdgesMap.get(t.source),o=this.bothEdgesMap.get(t.target);e.add(t),r.add(t),n.add(t),o.add(t),this.changes.push({type:"EdgeAdded",value:t})}addEdges(t){this.batch((()=>{for(const e of t)this.doAddEdge(e)}))}addEdge(t){this.addEdges([t])}doRemoveEdge(t){const e=this.getEdge(t),r=this.outEdgesMap.get(e.source),n=this.inEdgesMap.get(e.target),o=this.bothEdgesMap.get(e.source),i=this.bothEdgesMap.get(e.target);r.delete(e),n.delete(e),o.delete(e),i.delete(e),this.edgeMap.delete(t),this.changes.push({type:"EdgeRemoved",value:e})}removeEdges(t){this.batch((()=>{t.forEach((t=>this.doRemoveEdge(t)))}))}removeEdge(t){this.removeEdges([t])}updateEdgeSource(t,e){const r=this.getEdge(t);this.checkNodeExistence(e);const n=r.source,o=e;this.outEdgesMap.get(n).delete(r),this.bothEdgesMap.get(n).delete(r),this.outEdgesMap.get(o).add(r),this.bothEdgesMap.get(o).add(r),r.source=e,this.batch((()=>{this.changes.push({type:"EdgeUpdated",id:t,propertyName:"source",oldValue:n,newValue:o})}))}updateEdgeTarget(t,e){const r=this.getEdge(t);this.checkNodeExistence(e);const n=r.target,o=e;this.inEdgesMap.get(n).delete(r),this.bothEdgesMap.get(n).delete(r),this.inEdgesMap.get(o).add(r),this.bothEdgesMap.get(o).add(r),r.target=e,this.batch((()=>{this.changes.push({type:"EdgeUpdated",id:t,propertyName:"target",oldValue:n,newValue:o})}))}updateEdgeDataProperty(t,e,r){const n=this.getEdge(t);this.batch((()=>{const o=n.data[e],i=r;n.data[e]=i,this.changes.push({type:"EdgeDataUpdated",id:t,propertyName:e,oldValue:o,newValue:i})}))}updateEdgeData(...t){const e=t[0],r=this.getEdge(e);if("string"==typeof t[1])return void this.updateEdgeDataProperty(e,t[1],t[2]);let n;if("function"==typeof t[1]){const e=t[1];n=e(r.data)}else"object"==typeof t[1]&&(n=t[1]);this.batch((()=>{const t=r.data,o=n;r.data=n,this.changes.push({type:"EdgeDataUpdated",id:e,oldValue:t,newValue:o})}))}mergeEdgeData(t,e){this.batch((()=>{Object.entries(e).forEach((([e,r])=>{this.updateEdgeDataProperty(t,e,r)}))}))}checkTreeExistence(t){if(!this.hasTreeStructure(t))throw new Error("Tree structure not found for treeKey: "+t)}hasTreeStructure(t){return this.treeIndices.has(t)}attachTreeStructure(t){this.treeIndices.has(t)||(this.treeIndices.set(t,{parentMap:new Map,childrenMap:new Map}),this.batch((()=>{this.changes.push({type:"TreeStructureAttached",treeKey:t})})))}detachTreeStructure(t){this.checkTreeExistence(t),this.treeIndices.delete(t),this.batch((()=>{this.changes.push({type:"TreeStructureDetached",treeKey:t})}))}addTree(t,e){this.batch((()=>{this.attachTreeStructure(e);const r=[],n=Array.isArray(t)?t:[t];for(;n.length;){const t=n.shift();r.push(t),t.children&&n.push(...t.children)}this.addNodes(r),r.forEach((t=>{t.children?.forEach((r=>{this.setParent(r.id,t.id,e)}))}))}))}getRoots(t){return this.checkTreeExistence(t),this.getAllNodes().filter((e=>!this.getParent(e.id,t)))}getChildren(t,e){this.checkNodeExistence(t),this.checkTreeExistence(e);const r=this.treeIndices.get(e).childrenMap.get(t);return Array.from(r||[])}getParent(t,e){this.checkNodeExistence(t),this.checkTreeExistence(e);return this.treeIndices.get(e).parentMap.get(t)||null}getAncestors(t,e){const r=[];let n,o=this.getNode(t);for(;n=this.getParent(o.id,e);)r.push(n),o=n;return r}setParent(t,e,r){this.checkTreeExistence(r);const n=this.treeIndices.get(r),o=this.getNode(t),i=n.parentMap.get(t);if(i?.id===e)return;if(void 0===e)return i&&n.childrenMap.get(i.id)?.delete(o),void n.parentMap.delete(t);const s=this.getNode(e);n.parentMap.set(t,s),i&&n.childrenMap.get(i.id)?.delete(o);let a=n.childrenMap.get(s.id);a||(a=new Set,n.childrenMap.set(s.id,a)),a.add(o),this.batch((()=>{this.changes.push({type:"TreeStructureChanged",treeKey:r,nodeId:t,oldParentId:i?.id,newParentId:s.id})}))}dfsTree(t,e,r){return i(this.getNode(t),new Set,e,(t=>this.getChildren(t,r)))}bfsTree(t,e,r){return o([this.getNode(t)],new Set,e,(t=>this.getChildren(t,r)))}getAllNodes(){return Array.from(this.nodeMap.values())}getAllEdges(){return Array.from(this.edgeMap.values())}bfs(t,e,r="out"){const n={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[r];return o([this.getNode(t)],new Set,e,n)}dfs(t,e,r="out"){const n={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[r];return i(this.getNode(t),new Set,e,n)}clone(){const t=this.getAllNodes().map((t=>({...t,data:{...t.data}}))),e=this.getAllEdges().map((t=>({...t,data:{...t.data}}))),r=new u({nodes:t,edges:e});return this.treeIndices.forEach((({parentMap:t,childrenMap:e},n)=>{const o=new Map;t.forEach(((t,e)=>{o.set(e,r.getNode(t.id))}));const i=new Map;e.forEach(((t,e)=>{i.set(e,new Set(Array.from(t).map((t=>r.getNode(t.id)))))})),r.treeIndices.set(n,{parentMap:o,childrenMap:i})})),r}toJSON(){return JSON.stringify({nodes:this.getAllNodes(),edges:this.getAllEdges()})}createView(t){return new a({graph:this,...t})}}},7499:function(t,e,r){"use strict";r.d(e,{b:function(){return he}});var n=r(80813),o=r(56354),i=r(25719),s=r(23481);const a=(t,e)=>{if("next"!==t&&"prev"!==t)return e},u=t=>{t.prev.next=t.next,t.next.prev=t.prev,delete t.next,delete t.prev};class c{constructor(){const t={};t.prev=t,t.next=t.prev,this.shortcut=t}dequeue(){const t=this.shortcut,e=t.prev;if(e&&e!==t)return u(e),e}enqueue(t){const e=this.shortcut;t.prev&&t.next&&u(t),t.next=e.next,e.next.prev=t,e.next=t,t.prev=e}toString(){const t=[],e=this.shortcut;let r=e.prev;for(;r!==e;)t.push(JSON.stringify(r,a)),r=null==r?void 0:r.prev;return`[${t.join(", ")}]`}}class d extends c{}const h=()=>1,l=(t,e,r)=>{let n=[];const o=e[e.length-1],i=e[0];let s;for(;t.getAllNodes().length;){for(;s=i.dequeue();)f(t,e,r,s);for(;s=o.dequeue();)f(t,e,r,s);if(t.getAllNodes().length)for(let o=e.length-2;o>0;--o)if(s=e[o].dequeue(),s){n=n.concat(f(t,e,r,s,!0));break}}return n},f=(t,e,r,n,o)=>{var i,s;const a=[];return t.hasNode(n.v)&&(null===(i=t.getRelatedEdges(n.v,"in"))||void 0===i||i.forEach((n=>{const i=n.data.weight,s=t.getNode(n.source);o&&a.push({v:n.source,w:n.target,in:0,out:0}),void 0===s.data.out&&(s.data.out=0),s.data.out-=i,v(e,r,Object.assign({v:s.id},s.data))})),null===(s=t.getRelatedEdges(n.v,"out"))||void 0===s||s.forEach((n=>{const o=n.data.weight,i=n.target,s=t.getNode(i);void 0===s.data.in&&(s.data.in=0),s.data.in-=o,v(e,r,Object.assign({v:s.id},s.data))})),t.removeNode(n.v)),o?a:void 0},g=(t,e)=>{const r=new o.k;let n=0,i=0;t.getAllNodes().forEach((t=>{r.addNode({id:t.id,data:{v:t.id,in:0,out:0}})})),t.getAllEdges().forEach((t=>{const o=r.getRelatedEdges(t.source,"out").find((e=>e.target===t.target)),s=(null==e?void 0:e(t))||1;o?r.updateEdgeData(null==o?void 0:o.id,Object.assign(Object.assign({},o.data),{weight:o.data.weight+s})):r.addEdge({id:t.id,source:t.source,target:t.target,data:{weight:s}}),i=Math.max(i,r.getNode(t.source).data.out+=s),n=Math.max(n,r.getNode(t.target).data.in+=s)}));const s=[],a=i+n+3;for(let t=0;t{v(s,u,Object.assign({v:t.id},r.getNode(t.id).data))})),{buckets:s,zeroIdx:u,graph:r}},v=(t,e,r)=>{r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)},p=(t,e)=>{const r="greedy"===e?((t,e)=>{var r;if(t.getAllNodes().length<=1)return[];const n=g(t,e||h);return null===(r=l(n.graph,n.buckets,n.zeroIdx).map((e=>t.getRelatedEdges(e.v,"out").filter((({target:t})=>t===e.w)))))||void 0===r?void 0:r.flat()})(t,(t=>t.data.weight||1)):m(t);null==r||r.forEach((e=>{const r=e.data;t.removeEdge(e.id),r.forwardName=e.data.name,r.reversed=!0,t.addEdge({id:e.id,source:e.target,target:e.source,data:Object.assign({},r)})}))},m=t=>{const e=[],r={},n={},o=i=>{n[i]||(n[i]=!0,r[i]=!0,t.getRelatedEdges(i,"out").forEach((t=>{r[t.target]?e.push(t):o(t.target)})),delete r[i])};return t.getAllNodes().forEach((t=>o(t.id))),e},y=(t,e,r,n)=>{let o;do{o=`${n}${Math.random()}`}while(t.hasNode(o));return r.dummy=e,t.addNode({id:o,data:r}),o},w=t=>{const e=new o.k;return t.getAllNodes().forEach((r=>{t.getChildren(r.id).length||e.addNode(Object.assign({},r))})),t.getAllEdges().forEach((t=>{e.addEdge(t)})),e},x=(t,e)=>null==t?void 0:t.reduce(((t,r,n)=>(t[r]=e[n],t)),{}),b=(t,e)=>{const r=Number(t.x),n=Number(t.y),o=Number(e.x)-r,i=Number(e.y)-n;let s,a,u=Number(t.width)/2,c=Number(t.height)/2;return o||i?(Math.abs(i)*u>Math.abs(o)*c?(i<0&&(c=-c),s=c*o/i,a=c):(o<0&&(u=-u),s=u,a=u*i/o),{x:r+s,y:n+a}):{x:0,y:0}},E=t=>{const e=[],r=M(t)+1;for(let t=0;t{const r=t.data.rank;void 0!==r&&e[r]&&e[r].push(t.id)}));for(let n=0;n{return n=t.getNode(e).data.order,o=t.getNode(r).data.order,Number(n)-Number(o);var n,o}));return e},N=(t,e,r,n)=>{const o={width:0,height:0};return(0,i.Z)(r)&&(0,i.Z)(n)&&(o.rank=r,o.order=n),y(t,"border",o,e)},M=t=>{let e;return t.getAllNodes().forEach((t=>{const r=t.data.rank;void 0!==r&&(void 0===e||r>e)&&(e=r)})),e||(e=0),e},k=(t,e)=>t.reduce(((t,r)=>e(t)>e(r)?r:t)),_=(t,e,r,n,o,i)=>{n.includes(e.id)||(n.push(e.id),r||i.push(e.id),o(e.id).forEach((e=>_(t,e,r,n,o,i))),r&&i.push(e.id))},A=(t,e,r,n)=>{const o=Array.isArray(e)?e:[e],i=e=>n?t.getSuccessors(e):t.getNeighbors(e),s=[],a=[];return o.forEach((e=>{if(!t.hasNode(e.id))throw new Error(`Graph does not have node: ${e}`);_(t,e,"post"===r,a,i,s)})),s},S=(t,e,r,n,o,i)=>{const s={rank:i,borderType:e,width:0,height:0},a=o.data[e][i-1],u=y(t,"border",s,r);o.data[e][i]=u,t.setParent(u,n),a&&t.addEdge({id:`e${Math.random()}`,source:a,target:u,data:{weight:1}})},j=t=>{t.getAllNodes().forEach((t=>{O(t)})),t.getAllEdges().forEach((t=>{O(t)}))},O=t=>{const e=t.data.width;t.data.width=t.data.height,t.data.height=e},R=t=>{t.getAllNodes().forEach((t=>{I(t.data)})),t.getAllEdges().forEach((t=>{var e;null===(e=t.data.points)||void 0===e||e.forEach((t=>I(t))),t.data.hasOwnProperty("y")&&I(t.data)}))},I=t=>{(null==t?void 0:t.y)&&(t.y=-t.y)},z=t=>{t.getAllNodes().forEach((t=>{C(t.data)})),t.getAllEdges().forEach((t=>{var e;null===(e=t.data.points)||void 0===e||e.forEach((t=>C(t))),t.data.hasOwnProperty("x")&&C(t.data)}))},C=t=>{const e=t.x;t.x=t.y,t.y=e},D=(t,e,r,n,o,i,s)=>{const a=t.getChildren(s);if(!(null==a?void 0:a.length))return void(s!==e&&t.addEdge({id:`e${Math.random()}`,source:e,target:s,data:{weight:0,minlen:r}}));const u=N(t,"_bt"),c=N(t,"_bb"),d=t.getNode(s);t.setParent(u,s),d.data.borderTop=u,t.setParent(c,s),d.data.borderBottom=c,null==a||a.forEach((a=>{D(t,e,r,n,o,i,a.id);const d=a.data.borderTop?a.data.borderTop:a.id,h=a.data.borderBottom?a.data.borderBottom:a.id,l=a.data.borderTop?n:2*n,f=d!==h?1:o-i[s]+1;t.addEdge({id:`e${Math.random()}`,source:u,target:d,data:{minlen:f,weight:l,nestingEdge:!0}}),t.addEdge({id:`e${Math.random()}`,source:h,target:c,data:{minlen:f,weight:l,nestingEdge:!0}})})),t.getParent(s)||t.addEdge({id:`e${Math.random()}`,source:e,target:u,data:{weight:0,minlen:o+i[s]}})},T=t=>{const e={},r=(n,o)=>{const i=t.getChildren(n);null==i||i.forEach((t=>r(t.id,o+1))),e[n]=o};return t.getRoots().forEach((t=>r(t.id,1))),e},P=t=>{let e=0;return t.getAllEdges().forEach((t=>{e+=t.data.weight})),e},L="edge-label",F=(t,e,r)=>{let n=e.source,o=t.getNode(n).data.rank;const i=e.target,s=t.getNode(i).data.rank,a=e.data.labelRank;if(s===o+1)return;let u,c,d;for(t.removeEdge(e.id),d=0,++o;o{let e;for(;t.hasNode(e=`_root${Math.random()}`););return e},Z=(t,e,r)=>{const n=x(r,r.map(((t,e)=>e))),o=e.map((e=>{const r=t.getRelatedEdges(e,"out").map((t=>({pos:n[t.target]||0,weight:t.data.weight})));return null==r?void 0:r.sort(((t,e)=>t.pos-e.pos))})).flat().filter((t=>void 0!==t));let i=1;for(;i{if(t){let e=t.pos+i;a[e]+=t.weight;let r=0;for(;e>0;)e%2&&(r+=a[e+1]),e=e-1>>1,a[e]+=t.weight;u+=t.weight*r}})),u},G=(t,e)=>{let r=0;for(let n=1;n<(null==e?void 0:e.length);n+=1)r+=Z(t,e[n-1],e[n]);return r},B=t=>{const e={},r=t.getAllNodes(),n=r.map((t=>{var e;return null!==(e=t.data.rank)&&void 0!==e?e:-1/0})),o=Math.max(...n),i=[];for(let t=0;tt.getNode(e.id).data.rank-t.getNode(r.id).data.rank)),a=s.filter((e=>void 0!==t.getNode(e.id).data.fixorder)).sort(((e,r)=>t.getNode(e.id).data.fixorder-t.getNode(r.id).data.fixorder));return null==a||a.forEach((r=>{isNaN(t.getNode(r.id).data.rank)||i[t.getNode(r.id).data.rank].push(r.id),e[r.id]=!0})),null==s||s.forEach((r=>t.dfsTree(r.id,(t=>{if(e.hasOwnProperty(t.id))return!0;e[t.id]=!0,isNaN(t.data.rank)||i[t.data.rank].push(t.id)})))),i},U=t=>{var e,r;const n=[];for(;null==t?void 0:t.length;){const o=t.pop();n.push(o),null===(e=o.in.reverse())||void 0===e||e.forEach((t=>{return(e=o,t=>{t.merged||(void 0===t.barycenter||void 0===e.barycenter||t.barycenter>=e.barycenter)&&W(e,t)})(t);var e})),null===(r=o.out)||void 0===r||r.forEach((e=>{return(r=o,e=>{e.in.push(r),0==--e.indegree&&t.push(e)})(e);var r}))}const o=n.filter((t=>!t.merged)),i=["vs","i","barycenter","weight"];return o.map((t=>{const e={};return null==i||i.forEach((r=>{void 0!==t[r]&&(e[r]=t[r])})),e}))},W=(t,e)=>{var r;let n=0,o=0;t.weight&&(n+=t.barycenter*t.weight,o+=t.weight),e.weight&&(n+=e.barycenter*e.weight,o+=e.weight),t.vs=null===(r=e.vs)||void 0===r?void 0:r.concat(t.vs),t.barycenter=n/o,t.weight=o,t.i=Math.min(e.i,t.i),e.merged=!0};var $=(t,e)=>{var r,n,o;const i={};null==t||t.forEach(((t,e)=>{i[t.v]={i:e,indegree:0,in:[],out:[],vs:[t.v]};const r=i[t.v];void 0!==t.barycenter&&(r.barycenter=t.barycenter,r.weight=t.weight)})),null===(r=e.getAllEdges())||void 0===r||r.forEach((t=>{const e=i[t.source],r=i[t.target];void 0!==e&&void 0!==r&&(r.indegree++,e.out.push(i[t.target]))}));const s=null===(o=(n=Object.values(i)).filter)||void 0===o?void 0:o.call(n,(t=>!t.indegree));return U(s)};const Y=(t,e,r)=>{let n,o=r;for(;e.length&&(n=e[e.length-1]).i<=o;)e.pop(),null==t||t.push(n.vs),o++;return o},H=(t,e)=>(r,n)=>{if(void 0!==r.fixorder&&void 0!==n.fixorder)return r.fixorder-n.fixorder;if(r.barycentern.barycenter)return 1;if(e&&void 0!==r.order&&void 0!==n.order){if(r.ordern.order)return 1}return t?n.i-r.i:r.i-n.i},K=(t,e,r,n,o,i)=>{var s,a,u,c;let d=t.getChildren(e).map((t=>t.id));const h=t.getNode(e),l=h?h.data.borderLeft:void 0,f=h?h.data.borderRight:void 0,g={};l&&(d=null==d?void 0:d.filter((t=>t!==l&&t!==f)));const v=((t,e)=>e.map((e=>{const r=t.getRelatedEdges(e,"in");if(!(null==r?void 0:r.length))return{v:e};const n={sum:0,weight:0};return null==r||r.forEach((e=>{const r=t.getNode(e.source);n.sum+=e.data.weight*r.data.order,n.weight+=e.data.weight})),{v:e,barycenter:n.sum/n.weight,weight:n.weight}})))(t,d||[]);null==v||v.forEach((e=>{var o;if(null===(o=t.getChildren(e.v))||void 0===o?void 0:o.length){const o=K(t,e.v,r,n,i);g[e.v]=o,o.hasOwnProperty("barycenter")&&Q(e,o)}}));const p=$(v,r);J(p,g),null===(s=p.filter((t=>t.vs.length>0)))||void 0===s||s.forEach((e=>{const r=t.getNode(e.vs[0]);r&&(e.fixorder=r.data.fixorder,e.order=r.data.order)}));const m=((t,e,r,n)=>{const o=((t,e)=>{const r={lhs:[],rhs:[]};return null==t||t.forEach((t=>{e(t)?r.lhs.push(t):r.rhs.push(t)})),r})(t,(t=>{const e=t.hasOwnProperty("fixorder")&&!isNaN(t.fixorder);return n?!e&&t.hasOwnProperty("barycenter"):e||t.hasOwnProperty("barycenter")})),i=o.lhs,s=o.rhs.sort(((t,e)=>-t.i- -e.i)),a=[];let u=0,c=0,d=0;null==i||i.sort(H(!!e,!!r)),d=Y(a,s,d),null==i||i.forEach((t=>{var e;d+=null===(e=t.vs)||void 0===e?void 0:e.length,a.push(t.vs),u+=t.barycenter*t.weight,c+=t.weight,d=Y(a,s,d)}));const h={vs:a.flat()};return c&&(h.barycenter=u/c,h.weight=c),h})(p,n,o,i);if(l&&(m.vs=[l,m.vs,f].flat(),null===(a=t.getPredecessors(l))||void 0===a?void 0:a.length)){const e=t.getNode((null===(u=t.getPredecessors(l))||void 0===u?void 0:u[0].id)||""),r=t.getNode((null===(c=t.getPredecessors(f))||void 0===c?void 0:c[0].id)||"");m.hasOwnProperty("barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+e.data.order+r.data.order)/(m.weight+2),m.weight+=2}return m},J=(t,e)=>{null==t||t.forEach((t=>{var r;const n=null===(r=t.vs)||void 0===r?void 0:r.map((t=>e[t]?e[t].vs:t));t.vs=n.flat()}))},Q=(t,e)=>{void 0!==t.barycenter?(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight):(t.barycenter=e.barycenter,t.weight=e.weight)},X=(t,e,r)=>e.map((e=>((t,e,r)=>{const n=V(t),i=new o.k({tree:[{id:n,children:[],data:{}}]});return t.getAllNodes().forEach((o=>{const s=t.getParent(o.id);(o.data.rank===e||o.data.minRank<=e&&e<=o.data.maxRank)&&(i.hasNode(o.id)||i.addNode(Object.assign({},o)),(null==s?void 0:s.id)&&!i.hasNode(null==s?void 0:s.id)&&i.addNode(Object.assign({},s)),i.setParent(o.id,(null==s?void 0:s.id)||n),t.getRelatedEdges(o.id,r).forEach((e=>{const r=e.source===o.id?e.target:e.source;i.hasNode(r)||i.addNode(Object.assign({},t.getNode(r)));const n=i.getRelatedEdges(r,"out").find((({target:t})=>t===o.id)),s=void 0!==n?n.data.weight:0;n?i.updateEdgeData(n.id,Object.assign(Object.assign({},n.data),{weight:e.data.weight+s})):i.addEdge({id:e.id,source:r,target:o.id,data:{weight:e.data.weight+s}})})),o.data.hasOwnProperty("minRank")&&i.updateNodeData(o.id,Object.assign(Object.assign({},o.data),{borderLeft:o.data.borderLeft[e],borderRight:o.data.borderRight[e]})))})),i})(t,e,r))),tt=(t,e,r,n)=>{const i=new o.k;null==t||t.forEach((t=>{var o;const s=t.getRoots()[0].id,a=K(t,s,i,e,r,n);for(let e=0;e<(null===(o=a.vs)||void 0===o?void 0:o.length);e++){const r=t.getNode(a.vs[e]);r&&(r.data.order=e)}((t,e,r)=>{const n={};let o;null==r||r.forEach((r=>{let i,s,a=t.getParent(r);for(;a;){if(i=t.getParent(a.id),i?(s=n[i.id],n[i.id]=a.id):(s=o,o=a.id),s&&s!==a.id)return e.hasNode(s)||e.addNode({id:s,data:{}}),e.hasNode(a.id)||e.addNode({id:a.id,data:{}}),void(e.hasEdge(`e${s}-${a.id}`)||e.addEdge({id:`e${s}-${a.id}`,source:s,target:a.id,data:{}}));a=i}}))})(t,i,a.vs)}))},et=(t,e)=>{null==e||e.forEach((e=>{null==e||e.forEach(((e,r)=>{t.getNode(e).data.order=r}))}))},rt=(t,e)=>{const r=(t=>{const e={};let r=0;const n=o=>{const i=r;t.getChildren(o).forEach((t=>n(t.id))),e[o]={low:i,lim:r++}};return t.getRoots().forEach((t=>n(t.id))),e})(t);e.forEach((e=>{var n,o;let i=e,s=t.getNode(i);const a=s.data.originalEdge;if(!a)return;const u=((t,e,r,n)=>{var o,i;const s=[],a=[],u=Math.min(e[r].low,e[n].low),c=Math.max(e[r].lim,e[n].lim);let d,h;d=r;do{d=null===(o=t.getParent(d))||void 0===o?void 0:o.id,s.push(d)}while(d&&(e[d].low>u||c>e[d].lim));for(h=d,d=n;d&&d!==h;)a.push(d),d=null===(i=t.getParent(d))||void 0===i?void 0:i.id;return{lca:h,path:s.concat(a.reverse())}})(t,r,a.source,a.target),c=u.path,d=u.lca;let h=0,l=c[h],f=!0;for(;i!==a.target;){if(s=t.getNode(i),f){for(;l!==d&&(null===(n=t.getNode(l))||void 0===n?void 0:n.data.maxRank){const r={},n=(e,n)=>{let o=0,i=0;const s=e.length,a=null==n?void 0:n[(null==n?void 0:n.length)-1];return null==n||n.forEach(((e,u)=>{var c;const d=it(t,e),h=d?t.getNode(d.id).data.order:s;(d||e===a)&&(null===(c=n.slice(i,u+1))||void 0===c||c.forEach((e=>{var n;null===(n=t.getPredecessors(e))||void 0===n||n.forEach((n=>{var i;const s=t.getNode(n.id),a=s.data.order;!(a{const r={};function n(e,n){const o=function(t){return JSON.stringify(t.slice(1))}(e);n.get(o)||(!function(e,n,o,i,s){var a,u;let c;for(let d=n;d{const n=t.getNode(e.id);n.data.dummy&&(n.data.orders)&&st(r,e.id,c)})))}(...e),n.set(o,!0))}const o=(e,r)=>{let o,i=-1,s=0;const a=new Map;return null==r||r.forEach(((u,c)=>{var d;if("border"===(null===(d=t.getNode(u))||void 0===d?void 0:d.data.dummy)){const e=t.getPredecessors(u)||[];e.length&&(o=t.getNode(e[0].id).data.order,n([r,s,c,i,o],a),s=c,i=o)}n([r,s,r.length,o,e.length],a)})),r};return(null==e?void 0:e.length)&&e.reduce(o),r},it=(t,e)=>{var r,n;if(null===(r=t.getNode(e))||void 0===r?void 0:r.data.dummy)return null===(n=t.getPredecessors(e))||void 0===n?void 0:n.find((e=>t.getNode(e.id).data.dummy))},st=(t,e,r)=>{let n=e,o=r;if(n>o){const t=n;n=o,o=t}let i=t[n];i||(t[n]=i={}),i[o]=!0},at=(t,e,r)=>{let n=e,o=r;if(n>r){n=r,o=e}return!!t[n]},ut=(t,e,r,n)=>{const o={},i={},s={};return null==e||e.forEach((t=>{null==t||t.forEach(((t,e)=>{o[t]=t,i[t]=t,s[t]=e}))})),null==e||e.forEach((t=>{let e=-1;null==t||t.forEach((t=>{let a=n(t).map((t=>t.id));if(a.length){a=a.sort(((t,e)=>s[t]-s[e]));const n=(a.length-1)/2;for(let u=Math.floor(n),c=Math.ceil(n);u<=c;++u){const n=a[u];i[t]===t&&e{var a;const u={},c=dt(t,e,r,o,i,s),d=s?"borderLeft":"borderRight",h=(t,e)=>{let r=c.getAllNodes(),n=r.pop();const o={};for(;n;)o[n.id]?t(n.id):(o[n.id]=!0,r.push(n),r=r.concat(e(n.id))),n=r.pop()};return h((t=>{u[t]=(c.getRelatedEdges(t,"in")||[]).reduce(((t,e)=>Math.max(t,(u[e.source]||0)+e.data.weight)),0)}),c.getPredecessors.bind(c)),h((e=>{const r=(c.getRelatedEdges(e,"out")||[]).reduce(((t,e)=>Math.min(t,(u[e.target]||0)-e.data.weight)),Number.POSITIVE_INFINITY),n=t.getNode(e);r!==Number.POSITIVE_INFINITY&&n.data.borderType!==d&&(u[e]=Math.max(u[e],r))}),c.getSuccessors.bind(c)),null===(a=Object.values(n))||void 0===a||a.forEach((t=>{u[t]=u[r[t]]})),u},dt=(t,e,r,n,i,s)=>{const a=new o.k,u=gt(n,i,s);return null==e||e.forEach((e=>{let n;null==e||e.forEach((e=>{const o=r[e];if(a.hasNode(o)||a.addNode({id:o,data:{}}),n){const i=r[n],s=a.getRelatedEdges(i,"out").find((t=>t.target===o));s?a.updateEdgeData(s.id,Object.assign(Object.assign({},s.data),{weight:Math.max(u(t,e,n),s.data.weight||0)})):a.addEdge({id:`e${Math.random()}`,source:i,target:o,data:{weight:Math.max(u(t,e,n),0)}})}n=e}))})),a},ht=(t,e)=>k(Object.values(e),(e=>{var r;let n=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return null===(r=Object.keys(e))||void 0===r||r.forEach((r=>{const i=e[r],s=vt(t,r)/2;n=Math.max(i+s,n),o=Math.min(i-s,o)})),n-o}));function lt(t,e){const r=Object.values(e),n=Math.min(...r),o=Math.max(...r);["u","d"].forEach((r=>{["l","r"].forEach((i=>{const s=r+i,a=t[s];let u;if(a===e)return;const c=Object.values(a);u="l"===i?n-Math.min(...c):o-Math.max(...c),u&&(t[s]={},Object.keys(a).forEach((e=>{t[s][e]=a[e]+u})))}))}))}const ft=(t,e)=>{const r={};return Object.keys(t.ul).forEach((n=>{if(e)r[n]=t[e.toLowerCase()][n];else{const e=Object.values(t).map((t=>t[n]));r[n]=(e[0]+e[1])/2}})),r},gt=(t,e,r)=>(n,o,i)=>{const s=n.getNode(o),a=n.getNode(i);let u=0,c=0;if(u+=s.data.width/2,s.data.hasOwnProperty("labelpos"))switch((s.data.labelpos||"").toLowerCase()){case"l":c=-s.data.width/2;break;case"r":c=s.data.width/2}if(c&&(u+=r?c:-c),c=0,u+=(s.data.dummy?e:t)/2,u+=(a.data.dummy?e:t)/2,u+=a.data.width/2,a.data.labelpos)switch((a.data.labelpos||"").toLowerCase()){case"l":c=a.data.width/2;break;case"r":c=-a.data.width/2}return c&&(u+=r?c:-c),c=0,u},vt=(t,e)=>t.getNode(e).data.width||0,pt=(t,e)=>{var r;const n=w(t);((t,e)=>{const{ranksep:r=0}=e||{},n=E(t);let o=0;null==n||n.forEach((e=>{const n=e.map((e=>t.getNode(e).data.height)),i=Math.max(...n,0);null==e||e.forEach((e=>{t.getNode(e).data.y=o+i/2})),o+=i+r}))})(n,e);const o=((t,e)=>{const{align:r,nodesep:n=0,edgesep:o=0}=e||{},i=E(t),s=Object.assign(nt(t,i),ot(t,i)),a={};let u=[];["u","d"].forEach((e=>{u="u"===e?i:Object.values(i).reverse(),["l","r"].forEach((r=>{"r"===r&&(u=u.map((t=>Object.values(t).reverse())));const i=("u"===e?t.getPredecessors:t.getSuccessors).bind(t),c=ut(0,u,s,i),d=ct(t,u,c.root,c.align,n,o,"r"===r);"r"===r&&Object.keys(d).forEach((t=>d[t]=-d[t])),a[e+r]=d}))}));const c=ht(t,a);return c&<(a,c),ft(a,r)})(n,e);null===(r=Object.keys(o))||void 0===r||r.forEach((t=>{n.getNode(t).data.x=o[t]}))},mt=t=>{const e={},r=n=>{var o;const i=t.getNode(n);if(!i)return 0;if(e[n])return i.data.rank;let s;return e[n]=!0,null===(o=t.getRelatedEdges(n,"out"))||void 0===o||o.forEach((t=>{const e=r(t.target)-t.data.minlen;e&&(void 0===s||e0===t.getRelatedEdges(e.id,"in").length)).forEach((t=>r(t.id)))},yt=(t,e)=>t.getNode(e.target).data.rank-t.getNode(e.source).data.rank-e.data.minlen,wt=(t,e)=>{const r=n=>{e.getRelatedEdges(n,"both").forEach((o=>{const i=o.source,s=n===i?o.target:i;t.hasNode(s)||yt(e,o)||(t.addNode({id:s,data:{}}),t.addEdge({id:o.id,source:n,target:s,data:{}}),r(s))}))};return t.getAllNodes().forEach((t=>r(t.id))),t.getAllNodes().length},xt=(t,e)=>{const r=n=>{var o;null===(o=e.getRelatedEdges(n,"both"))||void 0===o||o.forEach((o=>{const i=o.source,s=n===i?o.target:i;t.hasNode(s)||void 0===e.getNode(s).data.layer&&yt(e,o)||(t.addNode({id:s,data:{}}),t.addEdge({id:o.id,source:n,target:s,data:{}}),r(s))}))};return t.getAllNodes().forEach((t=>r(t.id))),t.getAllNodes().length},bt=(t,e)=>k(e.getAllEdges(),(r=>t.hasNode(r.source)!==t.hasNode(r.target)?yt(e,r):1/0)),Et=(t,e,r)=>{t.getAllNodes().forEach((t=>{const n=e.getNode(t.id);n.data.rank||(n.data.rank=0),n.data.rank+=r}))},Nt=t=>{const e=(t=>{const e=new o.k;return t.getAllNodes().forEach((t=>{e.addNode(Object.assign({},t))})),t.getAllEdges().forEach((t=>{const r=e.getRelatedEdges(t.source,"out").find((e=>e.target===t.target));r?e.updateEdgeData(null==r?void 0:r.id,Object.assign(Object.assign({},r.data),{weight:r.data.weight+t.data.weight||0,minlen:Math.max(r.data.minlen,t.data.minlen||1)})):e.addEdge({id:t.id,source:t.source,target:t.target,data:{weight:t.data.weight||0,minlen:t.data.minlen||1}})})),e})(t);mt(e);const r=(t=>{const e=new o.k({tree:[]}),r=t.getAllNodes()[0],n=t.getAllNodes().length;let i,s;for(e.addNode(r);wt(e,t){let r=A(t,t.getAllNodes(),"post",!1);r=r.slice(0,(null==r?void 0:r.length)-1),r.forEach((r=>{kt(t,e,r)}))},kt=(t,e,r)=>{const n=t.getNode(r).data.parent;t.getRelatedEdges(r,"both").find((t=>t.target===n||t.source===n)).data.cutvalue=_t(t,e,r)},_t=(t,e,r)=>{const n=t.getNode(r).data.parent;let o=!0,i=e.getRelatedEdges(r,"out").find((t=>t.target===n)),s=0;return i||(o=!1,i=e.getRelatedEdges(n,"out").find((t=>t.target===r))),s=i.data.weight,e.getRelatedEdges(r,"both").forEach((e=>{const i=e.source===r,a=i?e.target:e.source;if(a!==n){const n=i===o,u=e.data.weight;if(s+=n?u:-u,zt(t,r,a)){const e=t.getRelatedEdges(r,"both").find((t=>t.source===a||t.target===a)).data.cutvalue;s+=n?-e:e}}})),s},At=(t,e=t.getAllNodes()[0].id)=>{St(t,{},1,e)},St=(t,e,r,n,o)=>{var i;const s=r;let a=r;const u=t.getNode(n);return e[n]=!0,null===(i=t.getNeighbors(n))||void 0===i||i.forEach((r=>{e[r.id]||(a=St(t,e,a,r.id,n))})),u.data.low=s,u.data.lim=a++,o?u.data.parent=o:delete u.data.parent,a},jt=t=>t.getAllEdges().find((t=>t.data.cutvalue<0)),Ot=(t,e,r)=>{let n=r.source,o=r.target;e.getRelatedEdges(n,"out").find((t=>t.target===o))||(n=r.target,o=r.source);const i=t.getNode(n),s=t.getNode(o);let a=i,u=!1;i.data.lim>s.data.lim&&(a=s,u=!0);const c=e.getAllEdges().filter((e=>u===Ct(t.getNode(e.source),a)&&u!==Ct(t.getNode(e.target),a)));return k(c,(t=>yt(e,t)))},Rt=(t,e,r,n)=>{const o=t.getRelatedEdges(r.source,"both").find((t=>t.source===r.target||t.target===r.target));o&&t.removeEdge(o.id),t.addEdge({id:`e${Math.random()}`,source:n.source,target:n.target,data:{}}),At(t),Mt(t,e),It(t,e)},It=(t,e)=>{const r=t.getAllNodes().find((t=>!t.data.parent));let n=A(t,r,"pre",!1);n=n.slice(1),n.forEach((r=>{const n=t.getNode(r).data.parent;let o=e.getRelatedEdges(r,"out").find((t=>t.target===n)),i=!1;!o&&e.hasNode(n)&&(o=e.getRelatedEdges(n,"out").find((t=>t.target===r)),i=!0),e.getNode(r).data.rank=(e.hasNode(n)&&e.getNode(n).data.rank||0)+(i?null==o?void 0:o.data.minlen:-(null==o?void 0:o.data.minlen))}))},zt=(t,e,r)=>t.getRelatedEdges(e,"both").find((t=>t.source===r||t.target===r)),Ct=(t,e)=>e.data.low<=t.data.lim&&t.data.lim<=e.data.lim,Dt=mt,Tt=t=>{(t=>{const e={};let r;const n=o=>{var i;const s=t.getNode(o);if(!s)return 0;if(e[o])return s.data.rank;let a;return e[o]=!0,null===(i=t.getRelatedEdges(o,"out"))||void 0===i||i.forEach((t=>{const e=n(t.target)-t.data.minlen;e&&(void 0===a||e0===t.getRelatedEdges(e.id,"in").length)).forEach((t=>{t&&n(t.id)})),void 0===r&&(r=0);const o={},i=(e,r)=>{var n;const s=t.getNode(e),a=isNaN(s.data.layer)?r:s.data.layer;(void 0===s.data.rank||s.data.rank{i(t.target,a+t.data.minlen)})))};t.getAllNodes().forEach((t=>{const e=t.data;e&&(isNaN(e.layer)?e.rank-=r:i(t.id,e.layer))}))})(t),(t=>{const e=new o.k({tree:[]}),r=t.getAllNodes()[0],n=t.getAllNodes().length;let i,s;for(e.addNode(r);xt(e,t){Nt(t)},Lt=(t,e)=>{const{acyclicer:r,ranker:n,rankdir:o="tb",nodeOrder:i,keepNodeOrder:s,align:a,nodesep:u=50,edgesep:c=20,ranksep:d=50}=e;re(t),p(t,r);const{nestingRoot:h,nodeRankFactor:l}=(t=>{const e=y(t,"root",{},"_root"),r=T(t);let n=Math.max(...Object.values(r));Math.abs(n)===1/0&&(n=1);const o=n-1,i=2*o+1;t.getAllEdges().forEach((t=>{t.data.minlen*=i}));const s=P(t)+1;return t.getRoots().forEach((n=>{D(t,e,i,s,o,r,n.id)})),{nestingRoot:e,nodeRankFactor:i}})(t);((t,e)=>{switch(e){case"network-simplex":Pt(t);break;case"tight-tree":default:Tt(t);break;case"longest-path":Dt(t)}})(w(t),n),Yt(t),((t,e=0)=>{const r=t.getAllNodes(),n=r.filter((t=>void 0!==t.data.rank)).map((t=>t.data.rank)),o=Math.min(...n),i=[];r.forEach((t=>{const e=(t.data.rank||0)-o;i[e]||(i[e]=[]),i[e].push(t.id)}));let s=0;for(let r=0;r{const r=t.getNode(e);r&&(r.data.rank=r.data.rank||0,r.data.rank+=s)})))}})(t,l),((t,e)=>{e&&t.removeNode(e),t.getAllEdges().forEach((e=>{e.data.nestingEdge&&t.removeEdge(e.id)}))})(t,h),(t=>{const e=t.getAllNodes().filter((t=>void 0!==t.data.rank)).map((t=>t.data.rank)),r=Math.min(...e);t.getAllNodes().forEach((t=>{t.data.hasOwnProperty("rank")&&r!==1/0&&(t.data.rank-=r)}))})(t),Ht(t),Kt(t);const f=[];((t,e)=>{t.getAllEdges().forEach((r=>F(t,r,e)))})(t,f),rt(t,f),(t=>{const e=r=>{const n=t.getChildren(r),o=t.getNode(r);if((null==n?void 0:n.length)&&n.forEach((t=>e(t.id))),o.data.hasOwnProperty("minRank")){o.data.borderLeft=[],o.data.borderRight=[];for(let e=o.data.minRank,n=o.data.maxRank+1;ee(t.id)))})(t),s&&((t,e)=>{const r=t.getAllNodes().filter((e=>{var r;return!(null===(r=t.getChildren(e.id))||void 0===r?void 0:r.length)})).map((t=>t.data.rank)),n=Math.max(...r),o=[];for(let t=0;t{const r=t.getNode(e);r&&!r.data.dummy&&(isNaN(r.data.rank)||(r.data.fixorder=o[r.data.rank].length,o[r.data.rank].push(e)))}))})(t,i),((t,e)=>{const r=M(t),n=[],o=[];for(let t=1;t-1;t--)o.push(t);const i=X(t,n,"in"),s=X(t,o,"out");let a=B(t);et(t,a);let u,c=Number.POSITIVE_INFINITY;for(let r=0,n=0;n<4;++r,++n){tt(r%2?i:s,r%4>=2,!1,e),a=E(t);const o=G(t,a);o=2,!0,e),a=E(t);const o=G(t,a);o{const r=e.toLowerCase();"lr"!==r&&"rl"!==r||j(t)})(t,o),pt(t,{align:a,nodesep:u,edgesep:c,ranksep:d}),oe(t),ee(t),((t,e)=>{e.forEach((e=>{let r=t.getNode(e);const{data:n}=r,o=n.originalEdge;let i;o&&t.addEdge(o);let s=e;for(;r.data.dummy;)i=t.getSuccessors(s)[0],t.removeNode(s),o.data.points.push({x:r.data.x,y:r.data.y}),r.data.dummy===L&&(o.data.x=r.data.x,o.data.y=r.data.y,o.data.width=r.data.width,o.data.height=r.data.height),s=i.id,r=t.getNode(s)}))})(t,f),Xt(t),((t,e)=>{const r=e.toLowerCase();"bt"!==r&&"rl"!==r||R(t),"lr"!==r&&"rl"!==r||(z(t),j(t))})(t,o);const{width:g,height:v}=Jt(t);return Qt(t),te(t),(t=>{t.getAllEdges().forEach((e=>{const r=e.data;if(r.reversed){t.removeEdge(e.id);const n=r.forwardName;delete r.reversed,delete r.forwardName,t.addEdge({id:e.id,source:e.target,target:e.source,data:Object.assign(Object.assign({},r),{forwardName:n})})}}))})(t),{width:g,height:v}},Ft=(t,e)=>{t.getAllNodes().forEach((r=>{const n=t.getNode(r.id);if(e.hasNode(r.id)){const t=e.getNode(r.id);n.data.fixorder=t.data._order,delete t.data._order}else delete n.data.fixorder}))},qt=(t,e)=>{t.getAllNodes().forEach((r=>{var n;const o=t.getNode(r.id);if(o){const t=e.getNode(r.id);o.data.x=t.data.x,o.data.y=t.data.y,o.data._order=t.data.order,o.data._rank=t.data.rank,(null===(n=e.getChildren(r.id))||void 0===n?void 0:n.length)&&(o.data.width=t.data.width,o.data.height=t.data.height)}})),t.getAllEdges().forEach((r=>{const n=t.getEdge(r.id),o=e.getEdge(r.id);n.data.points=o?o.data.points:[],o&&o.data.hasOwnProperty("x")&&(n.data.x=o.data.x,n.data.y=o.data.y)}))},Vt=["width","height","layer","fixorder"],Zt={width:0,height:0},Gt=["minlen","weight","width","height","labeloffset"],Bt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Ut=["labelpos"],Wt=t=>{const e=new o.k({tree:[]});return t.getAllNodes().forEach((r=>{const n=se(t.getNode(r.id).data),o=Object.assign(Object.assign({},Zt),n),i=ie(o,Vt);e.hasNode(r.id)||e.addNode({id:r.id,data:Object.assign({},i)});const a=t.hasTreeStructure("combo")?t.getParent(r.id,"combo"):t.getParent(r.id);(0,s.Z)(a)||(e.hasNode(a.id)||e.addNode(Object.assign({},a)),e.setParent(r.id,a.id))})),t.getAllEdges().forEach((r=>{const n=se(t.getEdge(r.id).data),o={};null==Ut||Ut.forEach((t=>{void 0!==n[t]&&(o[t]=n[t])})),e.addEdge({id:r.id,source:r.source,target:r.target,data:Object.assign({},Bt,ie(n,Gt),o)})})),e},$t=(t,e)=>{const{ranksep:r=0,rankdir:n}=e;return t.getAllNodes().forEach((t=>{isNaN(t.data.layer)||t.data.layer||(t.data.layer=0)})),t.getAllEdges().forEach((t=>{var e;t.data.minlen*=2,"c"!==(null===(e=t.data.labelpos)||void 0===e?void 0:e.toLowerCase())&&("TB"===n||"BT"===n?t.data.width+=t.data.labeloffset:t.data.height+=t.data.labeloffset)})),r/2},Yt=t=>{t.getAllEdges().forEach((e=>{if(e.data.width&&e.data.height){const r=t.getNode(e.source),n={e:e,rank:(t.getNode(e.target).data.rank-r.data.rank)/2+r.data.rank};y(t,"edge-proxy",n,"_ep")}}))},Ht=t=>{let e=0;return t.getAllNodes().forEach((r=>{var n,o;r.data.borderTop&&(r.data.minRank=null===(n=t.getNode(r.data.borderTop))||void 0===n?void 0:n.data.rank,r.data.maxRank=null===(o=t.getNode(r.data.borderBottom))||void 0===o?void 0:o.data.rank,e=Math.max(e,r.data.maxRank||-1/0))})),e},Kt=t=>{t.getAllNodes().forEach((e=>{"edge-proxy"===e.data.dummy&&(t.getEdge(e.data.e.id).data.labelRank=e.data.rank,t.removeNode(e.id))}))},Jt=(t,e)=>{let r,n,o=0,i=0;const{marginx:s=0,marginy:a=0}=e||{},u=t=>{if(!t.data)return;const e=t.data.x,s=t.data.y,a=t.data.width,u=t.data.height;isNaN(e)||isNaN(a)||(void 0===r&&(r=e-a/2),r=Math.min(r,e-a/2),o=Math.max(o,e+a/2)),isNaN(s)||isNaN(u)||(void 0===n&&(n=s-u/2),n=Math.min(n,s-u/2),i=Math.max(i,s+u/2))};return t.getAllNodes().forEach((t=>{u(t)})),t.getAllEdges().forEach((t=>{(null==t?void 0:t.data.hasOwnProperty("x"))&&u(t)})),r-=s,n-=a,t.getAllNodes().forEach((t=>{t.data.x-=r,t.data.y-=n})),t.getAllEdges().forEach((t=>{var e;null===(e=t.data.points)||void 0===e||e.forEach((t=>{t.x-=r,t.y-=n})),t.data.hasOwnProperty("x")&&(t.data.x-=r),t.data.hasOwnProperty("y")&&(t.data.y-=n)})),{width:o-r+s,height:i-n+a}},Qt=t=>{t.getAllEdges().forEach((e=>{const r=t.getNode(e.source),n=t.getNode(e.target);let o,i;e.data.points?(o=e.data.points[0],i=e.data.points[e.data.points.length-1]):(e.data.points=[],o={x:n.data.x,y:n.data.y},i={x:r.data.x,y:r.data.y}),e.data.points.unshift(b(r.data,o)),e.data.points.push(b(n.data,i))}))},Xt=t=>{t.getAllEdges().forEach((t=>{if(t.data.hasOwnProperty("x"))switch("l"!==t.data.labelpos&&"r"!==t.data.labelpos||(t.data.width-=t.data.labeloffset),t.data.labelpos){case"l":t.data.x-=t.data.width/2+t.data.labeloffset;break;case"r":t.data.x+=t.data.width/2+t.data.labeloffset}}))},te=t=>{t.getAllEdges().forEach((t=>{var e;t.data.reversed&&(null===(e=t.data.points)||void 0===e||e.reverse())}))},ee=t=>{t.getAllNodes().forEach((e=>{var r,n,o;if(null===(r=t.getChildren(e.id))||void 0===r?void 0:r.length){const r=t.getNode(e.id),i=t.getNode(r.data.borderTop),s=t.getNode(r.data.borderBottom),a=t.getNode(r.data.borderLeft[(null===(n=r.data.borderLeft)||void 0===n?void 0:n.length)-1]),u=t.getNode(r.data.borderRight[(null===(o=r.data.borderRight)||void 0===o?void 0:o.length)-1]);r.data.width=Math.abs((null==u?void 0:u.data.x)-(null==a?void 0:a.data.x))||10,r.data.height=Math.abs((null==s?void 0:s.data.y)-(null==i?void 0:i.data.y))||10,r.data.x=((null==a?void 0:a.data.x)||0)+r.data.width/2,r.data.y=((null==i?void 0:i.data.y)||0)+r.data.height/2}})),t.getAllNodes().forEach((e=>{"border"===e.data.dummy&&t.removeNode(e.id)}))},re=t=>{t.getAllEdges().forEach((e=>{if(e.source===e.target){const r=t.getNode(e.source);r.data.selfEdges||(r.data.selfEdges=[]),r.data.selfEdges.push(e),t.removeEdge(e.id)}}))},ne=t=>{const e=E(t);null==e||e.forEach((e=>{let r=0;null==e||e.forEach(((e,n)=>{var o;const i=t.getNode(e);i.data.order=n+r,null===(o=i.data.selfEdges)||void 0===o||o.forEach((e=>{y(t,"selfedge",{width:e.data.width,height:e.data.height,rank:i.data.rank,order:n+ ++r,e:e},"_se")})),delete i.data.selfEdges}))}))},oe=t=>{t.getAllNodes().forEach((e=>{const r=t.getNode(e.id);if("selfedge"===r.data.dummy){const n=t.getNode(r.data.e.source),o=n.data.x+n.data.width/2,i=n.data.y,s=r.data.x-o,a=n.data.height/2;t.hasEdge(r.data.e.id)?t.updateEdgeData(r.data.e.id,r.data.e.data):t.addEdge({id:r.data.e.id,source:r.data.e.source,target:r.data.e.target,data:r.data.e.data}),t.removeNode(e.id),r.data.e.data.points=[{x:o+2*s/3,y:i-a},{x:o+5*s/6,y:i-a},{y:i,x:o+s},{x:o+5*s/6,y:i+a},{x:o+2*s/3,y:i+a}],r.data.e.data.x=r.data.x,r.data.e.data.y=r.data.y}}))},ie=(t,e)=>{const r={};return null==e||e.forEach((e=>{void 0!==t[e]&&(r[e]=+t[e])})),r},se=(t={})=>{const e={};return Object.keys(t).forEach((r=>{e[r.toLowerCase()]=t[r]})),e};var ae=r(35714),ue=r(21361),ce=r(10259);const de={rankdir:"TB",nodesep:50,ranksep:50,edgeLabelSpace:!0,ranker:"tight-tree",controlPoints:!1,radial:!1,focusNode:null};class he{constructor(t={}){this.options=t,this.id="antv-dagre",this.options=Object.assign(Object.assign({},de),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.genericDagreLayout(!1,t,e)}))}assign(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){yield this.genericDagreLayout(!0,t,e)}))}genericDagreLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign({},this.options),r),{nodeSize:s,align:a,rankdir:u="TB",ranksep:c,nodesep:d,ranksepFunc:h,nodesepFunc:l,edgeLabelSpace:f,ranker:g,nodeOrder:v,begin:p,controlPoints:m,radial:y,sortByCombo:w,preset:x}=n,b=new o.k({tree:[]}),E=(0,ae.jE)(c||50,h),N=(0,ae.jE)(d||50,l);let M=N,k=E;"LR"!==u&&"RL"!==u||(M=E,k=N);const _=(0,ae.tO)(10,s,!1),A=e.getAllNodes(),S=e.getAllEdges();let j;A.forEach((t=>{const e=(0,ce._)(_(t)),r=k(t),n=M(t),o=e[0]+2*n,s=e[1]+2*r,a=t.data.layer;(0,i.Z)(a)?b.addNode({id:t.id,data:{width:o,height:s,layer:a}}):b.addNode({id:t.id,data:{width:o,height:s}})})),w&&(b.attachTreeStructure("combo"),A.forEach((t=>{const{parentId:e}=t.data;void 0!==e&&b.hasNode(e)&&b.setParent(t.id,e,"combo")}))),S.forEach((t=>{b.addEdge({id:t.id,source:t.source,target:t.target,data:{weight:t.data.weight||1}})})),(null==x?void 0:x.length)&&(j=new o.k({nodes:x})),((t,e)=>{const{edgeLabelSpace:r,keepNodeOrder:n,prevGraph:o,rankdir:i,ranksep:s}=e;!n&&o&&Ft(t,o);const a=Wt(t);let u;r&&(e.ranksep=$t(a,{rankdir:i,ranksep:s}));try{u=Lt(a,e)}catch(t){if("Not possible to find intersection inside of the rectangle"===t.message)return void console.error("The following error may be caused by improper layer setting, please make sure your manual layer setting does not violate the graph's structure:\n",t);throw t}qt(t,a)})(b,{prevGraph:j,edgeLabelSpace:f,keepNodeOrder:!!v,nodeOrder:v||[],acyclicer:"greedy",ranker:g,rankdir:u,nodesep:d,align:a});const O=[0,0];if(p){let t=1/0,e=1/0;b.getAllNodes().forEach((r=>{t>r.data.x&&(t=r.data.x),e>r.data.y&&(e=r.data.y)})),b.getAllEdges().forEach((r=>{var n;null===(n=r.data.points)||void 0===n||n.forEach((r=>{t>r.x&&(t=r.x),e>r.y&&(e=r.y)}))})),O[0]=p[0]-t,O[1]=p[1]-e}const R="LR"===u||"RL"===u;if(y);else{const t=new Set,e="BT"===u||"RL"===u?(t,e)=>e-t:(t,e)=>t-e;b.getAllNodes().forEach((e=>{e.data.x=e.data.x+O[0],e.data.y=e.data.y+O[1],t.add(R?e.data.x:e.data.y)}));const r=Array.from(t).sort(e),n=R?(t,e)=>t.x!==e.x:(t,e)=>t.y!==e.y,o=R?(t,e,r)=>{const n=Math.max(e.y,r.y),o=Math.min(e.y,r.y);return t.filter((t=>t.y<=n&&t.y>=o))}:(t,e,r)=>{const n=Math.max(e.x,r.x),o=Math.min(e.x,r.x);return t.filter((t=>t.x<=n&&t.x>=o))};b.getAllEdges().forEach(((t,e)=>{var i;f&&m&&"loop"!==t.data.type&&(t.data.controlPoints=le(null===(i=t.data.points)||void 0===i?void 0:i.map((({x:t,y:e})=>({x:t+O[0],y:e+O[1]}))),b.getNode(t.source),b.getNode(t.target),r,R,n,o))}))}let I=[];I=b.getAllNodes().map((t=>(0,ue.u)(t)));const z=b.getAllEdges();t&&(I.forEach((t=>{e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})})),z.forEach((t=>{e.mergeEdgeData(t.id,{controlPoints:t.data.controlPoints})})));return{nodes:I,edges:z}}))}}const le=(t,e,r,n,o,i,s)=>{let a=(null==t?void 0:t.slice(1,t.length-1))||[];if(e&&r){let{x:t,y:u}=e.data,{x:c,y:d}=r.data;if(o&&(t=e.data.y,u=e.data.x,c=r.data.y,d=r.data.x),d!==u&&t!==c){const h=n.indexOf(u),l=n[h+1];if(l){const t=a[0],e=o?{x:(u+l)/2,y:(null==t?void 0:t.y)||c}:{x:(null==t?void 0:t.x)||c,y:(u+l)/2};t&&!i(t,e)||a.unshift(e)}const f=n.indexOf(d),g=Math.abs(f-h);if(1===g)a=s(a,e.data,r.data),a.length||a.push(o?{x:(u+d)/2,y:t}:{x:t,y:(u+d)/2});else if(g>1){const e=n[f-1];if(e){const r=a[a.length-1],n=o?{x:(d+e)/2,y:(null==r?void 0:r.y)||c}:{x:(null==r?void 0:r.x)||t,y:(d+e)/2};r&&!i(r,n)||a.push(n)}}}}return a}},64589:function(t,e,r){"use strict";r.d(e,{S:function(){return u}});var n=r(80813),o=r(35714),i=r(21361),s=r(18949);const a={radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1};class u{constructor(t={}){this.options=t,this.id="circular",this.options=Object.assign(Object.assign({},a),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.genericCircularLayout(!1,t,e)}))}assign(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){yield this.genericCircularLayout(!0,t,e)}))}genericCircularLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign({},this.options),r),{width:a,height:u,center:h,divisions:l,startAngle:f=0,endAngle:g=2*Math.PI,angleRatio:v,ordering:p,clockwise:m,nodeSpacing:y,nodeSize:w}=n,x=e.getAllNodes(),b=e.getAllEdges(),[E,N,M]=d(a,u,h),k=null==x?void 0:x.length;if(!k||1===k)return(0,s.P)(e,t,M);const _=(g-f)/k;let{radius:A,startRadius:S,endRadius:j}=n;if(y){const t=(0,o.jE)(10,y),e=(0,o.tO)(10,w);let r=-1/0;x.forEach((t=>{const n=e(t);r{n+=0===o?r||10:(t(e)||0)+(r||10)})),A=n/(2*Math.PI)}else A||S||j?!S&&j?S=j:S&&!j&&(j=S):A=Math.min(N,E)/2;const O=_*v;let R=[];R="topology"===p?c(e,x):"topology-directed"===p?c(e,x,!0):"degree"===p?function(t,e){const r=[];return e.forEach(((t,e)=>{r.push((0,i.u)(t))})),r.sort(((e,r)=>t.getDegree(e.id,"both")-t.getDegree(r.id,"both"))),r}(e,x):x.map((t=>(0,i.u)(t)));const I=Math.ceil(k/l);for(let t=0;t{e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})}));return{nodes:R,edges:b}}))}}const c=(t,e,r=!1)=>{const n=[(0,i.u)(e[0])],o={},s=e.length;o[e[0].id]=!0;let a=0;return e.forEach(((u,c)=>{if(0!==c)if(c!==s-1&&t.getDegree(u.id,"both")===t.getDegree(e[c+1].id,"both")&&!t.areNeighbors(n[a].id,u.id)||o[u.id]){const c=r?t.getSuccessors(n[a].id):t.getNeighbors(n[a].id);let d=!1;for(let e=0;e{let n=t,o=e,i=r;return n||"undefined"==typeof window||(n=window.innerWidth),o||"undefined"==typeof window||(o=window.innerHeight),i||(i=[n/2,o/2]),[n,o,i]}},70709:function(t,e,r){"use strict";r.d(e,{u:function(){return m}});var n=r(80813),o=r(56354),i=r(25719),s=r(77817),a=r(85266),u=r(73510),c=r(93712),d=r(8421),h=r(31350),l=r(34748),f=r(23041),g=r(18949);const v={gForce:!0,force2:!0,d3force:!0,fruchterman:!0,forceAtlas2:!0,force:!0,"graphin-force":!0},p={center:[0,0],comboPadding:10,treeKey:"combo"};class m{constructor(t={}){this.options=t,this.id="comboCombined",this.options=Object.assign(Object.assign({},p),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.genericComboCombinedLayout(!1,t,e)}))}assign(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){yield this.genericComboCombinedLayout(!0,t,e)}))}genericComboCombinedLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,(function*(){const n=this.initVals(Object.assign(Object.assign({},this.options),r)),{center:i,treeKey:s,outerLayout:a}=n,h=e.getAllNodes().filter((t=>!t.data._isCombo)),f=e.getAllNodes().filter((t=>t.data._isCombo)),p=e.getAllEdges(),m=null==h?void 0:h.length;if(!m||1===m)return(0,g.P)(e,t,i);const w=[],x=new Map;h.forEach((t=>{x.set(t.id,t)}));const b=new Map;f.forEach((t=>{b.set(t.id,t)}));const E=new Map,N=this.getInnerGraphs(e,s,x,b,p,n,E);yield Promise.all(N);const M=new Map,k=[],_=new Map;let A=!0;e.getRoots(s).forEach((t=>{const r=E.get(t.id),n=b.get(t.id)||x.get(t.id),o={id:t.id,data:Object.assign(Object.assign({},t.data),{x:r.data.x||n.data.x,y:r.data.y||n.data.y,fx:r.data.fx||n.data.fx,fy:r.data.fy||n.data.fy,mass:r.data.mass||n.data.mass,size:r.data.size})};k.push(o),M.set(t.id,!0),isNaN(o.data.x)||0===o.data.x||isNaN(o.data.y)||0===o.data.y?(o.data.x=100*Math.random(),o.data.y=100*Math.random()):A=!1,(0,l._)(e,[t],(e=>{e.id!==t.id&&_.set(e.id,t.id)}),"TB",s)}));const S=[];let j;if(p.forEach((t=>{const e=_.get(t.source)||t.source,r=_.get(t.target)||t.target;e!==r&&M.has(e)&&M.has(r)&&S.push({id:t.id,source:e,target:r,data:{}})})),null==k?void 0:k.length){if(1===k.length)k[0].data.x=i[0],k[0].data.y=i[1];else{const t=new o.k({nodes:k,edges:S}),e=a||new c.y;if(A&&v[e.id]){const e=k.length<100?new d.A:new u.W;yield e.assign(t)}const r=Object.assign({center:i,kg:5,preventOverlap:!0,animate:!1},"force"===e.id?{gravity:1,factor:4,linkDistance:(t,e,r)=>(Math.max(...e.data.size)||32)/2+(Math.max(...r.data.size)||32)/2+200}:{});j=yield y(e,t,r)}E.forEach((t=>{var e;const r=j.nodes.find((e=>e.id===t.id));if(r){const{x:e,y:n}=r.data;t.data.visited=!0,t.data.x=e,t.data.y=n,w.push({id:t.id,data:{x:e,y:n}})}const{x:n,y:o}=t.data;null===(e=t.data.nodes)||void 0===e||e.forEach((t=>{w.push({id:t.id,data:{x:t.data.x+n,y:t.data.y+o}})}))})),E.forEach((({data:t})=>{const{x:e,y:r,visited:n,nodes:o}=t;null==o||o.forEach((t=>{if(!n){const n=w.find((e=>e.id===t.id));n.data.x+=e||0,n.data.y+=r||0}}))}))}t&&w.forEach((t=>{e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})}));return{nodes:w,edges:p}}))}initVals(t){const e=Object.assign({},t),{nodeSize:r,spacing:n,comboPadding:o}=t;let u,c,d;if(c=(0,i.Z)(n)?()=>n:(0,s.Z)(n)?n:()=>0,e.spacing=c,r)if((0,s.Z)(r))u=t=>{const e=r(t),n=c(t);if((0,f.k)(t.size)){return((t.size[0]>t.size[1]?t.size[0]:t.size[1])+n)/2}return((e||32)+n)/2};else if((0,f.k)(r)){const t=(r[0]>r[1]?r[0]:r[1])/2;u=e=>t+c(e)/2}else{const t=r/2;u=e=>t+c(e)/2}else u=t=>{const e=c(t);if(t.size){if((0,f.k)(t.size)){return((t.size[0]>t.size[1]?t.size[0]:t.size[1])+e)/2}if((0,a.Z)(t.size)){return((t.size.width>t.size.height?t.size.width:t.size.height)+e)/2}return(t.size+e)/2}return 32+e/2};return e.nodeSize=u,d=(0,i.Z)(o)?()=>o:(0,f.k)(o)?()=>Math.max.apply(null,o):(0,s.Z)(o)?o:()=>0,e.comboPadding=d,e}getInnerGraphs(t,e,r,s,a,c,d){const{nodeSize:h,comboPadding:g,spacing:v,innerLayout:p}=c,m=p||new u.W({}),w={center:[0,0],preventOverlap:!0,nodeSpacing:v},x=[],b=t=>{let e=(null==g?void 0:g(t))||10;return(0,f.k)(e)&&(e=Math.max(...e)),{size:e?[2*e,2*e]:[30,30],padding:e}};return t.getRoots(e).forEach((u=>{d.set(u.id,{id:u.id,data:{nodes:[],size:b(u).size}});let c=Promise.resolve();(0,l._)(t,[u],(u=>{var f;if(!u.data._isCombo)return;const{size:g,padding:v}=b(u);if(null===(f=t.getChildren(u.id,e))||void 0===f?void 0:f.length){const f=d.get(u.id);d.set(u.id,{id:u.id,data:Object.assign({nodes:[]},null==f?void 0:f.data)});const g=new Map,p=t.getChildren(u.id,e).map((t=>{if(t.data._isCombo)return d.has(t.id)||d.set(t.id,{id:t.id,data:Object.assign({},t.data)}),g.set(t.id,!0),d.get(t.id);const e=r.get(t.id)||s.get(t.id);return g.set(t.id,!0),{id:t.id,data:Object.assign(Object.assign({},e.data),t.data)}})),x={nodes:p,edges:a.filter((t=>g.has(t.source)&&g.has(t.target)))};let b=1/0;p.forEach((t=>{var e;let{size:r}=t.data;r||(r=(null===(e=d.get(t.id))||void 0===e?void 0:e.data.size)||(null==h?void 0:h(t))||[30,30]),(0,i.Z)(r)&&(r=[r,r]);const[n,o]=r;b>n&&(b=n),b>o&&(b=o),t.data.size=r})),c=c.then((()=>(0,n.mG)(this,void 0,void 0,(function*(){const t=new o.k(x);yield y(m,t,w,!0);const{minX:e,minY:r,maxX:n,maxY:i}=(0,l.H0)(p),s=(n+e)/2,a=(i+r)/2;x.nodes.forEach((t=>{t.data.x-=s,t.data.y-=a}));const c=[Math.max(n-e,b)+2*v,Math.max(i-r,b)+2*v];d.get(u.id).data.size=c,d.get(u.id).data.nodes=p}))))}else d.set(u.id,{id:u.id,data:Object.assign(Object.assign({},u.data),{size:g})});return!0}),"BT",e),x.push(c)})),x}}function y(t,e,r,o){var i;return(0,n.mG)(this,void 0,void 0,(function*(){return(0,h.h)(t)?(t.execute(e,r),t.stop(),t.tick(null!==(i=r.iterations)&&void 0!==i?i:300)):o?yield t.assign(e,r):yield t.execute(e,r)}))}},73510:function(t,e,r){"use strict";r.d(e,{W:function(){return f}});var n=r(80813),o=r(77817),i=r(25719),s=r(85266),a=r(18756),u=r(23041),c=r(21361),d=r(18949),h=r(10259);const l={nodeSize:30,nodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:1.5*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"};class f{constructor(t={}){this.options=t,this.id="concentric",this.options=Object.assign(Object.assign({},l),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.genericConcentricLayout(!1,t,e)}))}assign(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){yield this.genericConcentricLayout(!0,t,e)}))}genericConcentricLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign({},this.options),r),{center:l,width:f,height:g,sortBy:v,maxLevelDiff:p,sweep:m,clockwise:y,equidistant:w,preventOverlap:x,startAngle:b=1.5*Math.PI,nodeSize:E,nodeSpacing:N}=n,M=e.getAllNodes(),k=e.getAllEdges(),_=f||"undefined"==typeof window?f:window.innerWidth,A=g||"undefined"==typeof window?g:window.innerHeight,S=l||[_/2,A/2];if(!(null==M?void 0:M.length)||1===M.length)return(0,d.P)(e,t,S);const j=[];let O,R=0;(0,u.k)(E)?O=Math.max(E[0],E[1]):(0,o.Z)(E)?(O=-1/0,M.forEach((t=>{const e=Math.max(...(0,h._)(E(t)));e>O&&(O=e)}))):O=E,(0,u.k)(N)?R=Math.max(N[0],N[1]):(0,i.Z)(N)&&(R=N),M.forEach((t=>{const e=(0,c.u)(t);j.push(e);let r=O;const{data:n}=e;(0,u.k)(n.size)?r=Math.max(n.size[0],n.size[1]):(0,i.Z)(n.size)?r=n.size:(0,s.Z)(n.size)&&(r=Math.max(n.size.width,n.size.height)),O=Math.max(O,r),(0,o.Z)(N)&&(R=Math.max(N(t),R))}));const I={};j.forEach(((t,e)=>{I[t.id]=e}));let z=v;(0,a.Z)(z)&&void 0!==j[0].data[z]||(z="degree"),"degree"===z?j.sort(((t,r)=>e.getDegree(r.id,"both")-e.getDegree(t.id,"both"))):j.sort(((t,e)=>e.data[z]-t.data[z]));const C=j[0],D=(p||("degree"===z?e.getDegree(C.id,"both"):C.data[z]))/4,T=[{nodes:[]}];let P=T[0];j.forEach((t=>{if(P.nodes.length>0){const r="degree"===z?Math.abs(e.getDegree(P.nodes[0].id,"both")-e.getDegree(t.id,"both")):Math.abs(P.nodes[0].data[z]-t.data[z]);D&&r>=D&&(P={nodes:[]},T.push(P))}P.nodes.push(t)}));let L=O+R;if(!x){const t=T.length>0&&T[0].nodes.length>1,e=(Math.min(_,A)/2-L)/(T.length+(t?1:0));L=Math.min(L,e)}let F=0;if(T.forEach((t=>{const e=void 0===m?2*Math.PI-2*Math.PI/t.nodes.length:m;if(t.dTheta=e/Math.max(1,t.nodes.length-1),t.nodes.length>1&&x){const e=Math.cos(t.dTheta)-Math.cos(0),r=Math.sin(t.dTheta)-Math.sin(0),n=Math.sqrt(L*L/(e*e+r*r));F=Math.max(n,F)}t.r=F,F+=L})),w){let t=0,e=0;for(let r=0;r{0===n&&(e=r.r||0),r.r=e,e+=t}))}T.forEach((t=>{const e=t.dTheta||0,r=t.r||0;t.nodes.forEach(((t,n)=>{const o=b+(y?1:-1)*e*n;t.data.x=S[0]+r*Math.cos(o),t.data.y=S[1]+r*Math.sin(o)}))})),t&&j.forEach((t=>e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})));return{nodes:j,edges:k}}))}}},31392:function(t,e,r){"use strict";r.d(e,{j:function(){return A}});var n=r(80813),o=r(58212),i=r(84942);function s(t){return function(){return t}}function a(t){return 1e-6*(t()-.5)}function u(t){return t.index}function c(t,e){var r=t.get(e);if(!r)throw new Error("node not found: "+e);return r}function d(t){var e,r,n,o,i,d,h=u,l=function(t){return 1/Math.min(o[t.source.index],o[t.target.index])},f=s(30),g=1;function v(n){for(var o=0,s=t.length;o[h(t,e,n),t])));for(s=0,o=new Array(u);s(t=(1664525*t+1013904223)%g)/g}();function h(){v(),c.call("tick",e),r1?(null==r?a.delete(t):a.set(t,y(r)),e):a.get(t)},find:function(e,r,n){var o,i,s,a,u,c=0,d=t.length;for(null==n?n=1/0:n*=n,c=0;c1?(c.on(t,r),e):c.on(t)}}}function w(){var t,e,r,n,o,i=s(-30),u=1,c=1/0,d=.81;function l(r){var o,i=t.length,s=(0,h.Z)(t,v,p).visitAfter(g);for(n=r,o=0;o=c)){(t.data!==e||t.next)&&(0===l&&(v+=(l=a(r))*l),0===f&&(v+=(f=a(r))*f),vd+v||il+v||su.index){var p=d-c.x-c.vx,m=l-c.y-c.vy,y=p*p+m*m;yt.r&&(t.r=t[e].r)}function d(){if(e){var n,o,i=e.length;for(r=new Array(i),n=0;nt.id},manyBody:{},center:{x:0,y:0}},this.context={options:{},assign:!1,nodes:[],edges:[]},(0,o.Z)(this.options,t),this.options.forceSimulation&&(this.simulation=this.options.forceSimulation)}execute(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.genericLayout(!1,t,e)}))}assign(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){yield this.genericLayout(!0,t,e)}))}stop(){this.simulation.stop()}tick(t){return this.simulation.tick(t),this.getResult()}restart(){this.simulation.restart()}setFixedPosition(t,e){const r=this.context.nodes.find((e=>e.id===t));r&&e.forEach(((t,e)=>{if("number"==typeof t||null===t){r[["fx","fy","fz"][e]]=t}}))}getOptions(t){var e,r;const n=(0,o.Z)({},this.options,t);return n.collide&&void 0===(null===(e=n.collide)||void 0===e?void 0:e.radius)&&(n.collide=n.collide||{},n.collide.radius=null!==(r=n.nodeSize)&&void 0!==r?r:10),void 0===n.iterations&&(n.link&&void 0===n.link.iterations&&(n.iterations=n.link.iterations),n.collide&&void 0===n.collide.iterations&&(n.iterations=n.collide.iterations)),this.context.options=n,n}genericLayout(t,e,r){var o;return(0,n.mG)(this,void 0,void 0,(function*(){const n=this.getOptions(r),s=e.getAllNodes().map((({id:t,data:e})=>Object.assign(Object.assign({id:t},e),(0,i.Z)(e.data,this.config.inputNodeAttrs)))),a=e.getAllEdges().map((t=>Object.assign({},t)));Object.assign(this.context,{assign:t,nodes:s,edges:a,graph:e});const u=new Promise((t=>{this.resolver=t})),c=this.setSimulation(n);return c.nodes(s),null===(o=c.force("link"))||void 0===o||o.links(a),u}))}getResult(){const{assign:t,nodes:e,edges:r,graph:n}=this.context,o=e.map((t=>({id:t.id,data:Object.assign(Object.assign({},t.data),(0,i.Z)(t,this.config.outputNodeAttrs))}))),s=r.map((({id:t,source:e,target:r,data:n})=>({id:t,source:"object"==typeof e?e.id:e,target:"object"==typeof r?r.id:r,data:n})));return t&&o.forEach((t=>n.mergeNodeData(t.id,t.data))),{nodes:o,edges:s}}initSimulation(){return y()}setSimulation(t){const e=this.simulation||this.options.forceSimulation||this.initSimulation();return this.simulation||(this.simulation=e.on("tick",(()=>{var e;return null===(e=t.onTick)||void 0===e?void 0:e.call(t,this.getResult())})).on("end",(()=>{var t;return null===(t=this.resolver)||void 0===t?void 0:t.call(this,this.getResult())}))),S(e,this.config.simulationAttrs.map((e=>[e,t[e]]))),Object.entries(this.forceMap).forEach((([r,n])=>{const o=r;if(t[r]){let r=e.force(o);r||(r=n(),e.force(o,r)),S(r,Object.entries(t[o]))}else e.force(o,null)})),e}}const S=(t,e)=>e.reduce(((e,[r,n])=>e[r]&&void 0!==n?e[r].call(t,n):e),t)},14742:function(t,e,r){"use strict";r.d(e,{V:function(){return c}});var n=r(80813),o=r(25719),i=r(77817),s=r(92546),a=r.n(s),u=r(10259);class c{constructor(t){this.id="dagre",this.options={},Object.assign(this.options,c.defaultOptions,t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.genericDagreLayout(!1,t,Object.assign(Object.assign({},this.options),e))}))}assign(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){yield this.genericDagreLayout(!0,t,Object.assign(Object.assign({},this.options),e))}))}genericDagreLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,(function*(){const{nodeSize:c}=r,d=new s.graphlib.Graph;d.setGraph(r),d.setDefaultEdgeLabel((()=>({})));[...e.getAllNodes(),...e.getAllEdges()].some((({id:t})=>(0,o.Z)(t)))&&console.error("Dagre layout only support string id, it will convert number to string."),e.getAllNodes().forEach((t=>{const{id:e}=t,r=Object.assign({},t.data);if(void 0!==c){const[e,n]=(0,u._)((0,i.Z)(c)?c(t):c);Object.assign(r,{width:e,height:n})}d.setNode(e.toString(),r)})),e.getAllEdges().forEach((({id:t,source:e,target:r})=>{d.setEdge(e.toString(),r.toString(),{id:t})})),a().layout(d);const h={nodes:[],edges:[]};return d.nodes().forEach((r=>{const n=d.node(r);h.nodes.push({id:r,data:n}),t&&e.mergeNodeData(r,n)})),d.edges().forEach((r=>{const o=d.edge(r),{id:i}=o,s=(0,n._T)(o,["id"]),{v:a,w:u}=r;h.edges.push({id:i,source:a,target:u,data:s}),t&&e.mergeEdgeData(i,s)})),h}))}}c.defaultOptions={}},71636:function(t,e,r){"use strict";r.d(e,{E:function(){return f}});var n=r(80813),o=r(56354),i=r(25719),s=r(21361),a=r(35714),u=r(18949);class c{constructor(t){this.id=t.id||0,this.rx=t.rx,this.ry=t.ry,this.fx=0,this.fy=0,this.mass=t.mass,this.degree=t.degree,this.g=t.g||0}distanceTo(t){const e=this.rx-t.rx,r=this.ry-t.ry;return Math.hypot(e,r)}setPos(t,e){this.rx=t,this.ry=e}resetForce(){this.fx=0,this.fy=0}addForce(t){const e=t.rx-this.rx,r=t.ry-this.ry;let n=Math.hypot(e,r);n=n<1e-4?1e-4:n;const o=this.g*(this.degree+1)*(t.degree+1)/n;this.fx+=o*e/n,this.fy+=o*r/n}in(t){return t.contains(this.rx,this.ry)}add(t){const e=this.mass+t.mass,r=(this.rx*this.mass+t.rx*t.mass)/e,n=(this.ry*this.mass+t.ry*t.mass)/e,o=this.degree+t.degree;return new c({rx:r,ry:n,mass:e,degree:o})}}class d{constructor(t){this.xmid=t.xmid,this.ymid=t.ymid,this.length=t.length,this.massCenter=t.massCenter||[0,0],this.mass=t.mass||1}getLength(){return this.length}contains(t,e){const r=this.length/2;return t<=this.xmid+r&&t>=this.xmid-r&&e<=this.ymid+r&&e>=this.ymid-r}NW(){const t=this.xmid-this.length/4,e=this.ymid+this.length/4,r=this.length/2;return new d({xmid:t,ymid:e,length:r})}NE(){const t=this.xmid+this.length/4,e=this.ymid+this.length/4,r=this.length/2;return new d({xmid:t,ymid:e,length:r})}SW(){const t=this.xmid-this.length/4,e=this.ymid-this.length/4,r=this.length/2;return new d({xmid:t,ymid:e,length:r})}SE(){const t=this.xmid+this.length/4,e=this.ymid-this.length/4,r=this.length/2;return new d({xmid:t,ymid:e,length:r})}}class h{constructor(t){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,null!=t&&(this.quad=t)}insert(t){null!=this.body?this._isExternal()?(this.quad&&(this.NW=new h(this.quad.NW()),this.NE=new h(this.quad.NE()),this.SW=new h(this.quad.SW()),this.SE=new h(this.quad.SE())),this._putBody(this.body),this._putBody(t),this.body=this.body.add(t)):(this.body=this.body.add(t),this._putBody(t)):this.body=t}_putBody(t){this.quad&&(t.in(this.quad.NW())&&this.NW?this.NW.insert(t):t.in(this.quad.NE())&&this.NE?this.NE.insert(t):t.in(this.quad.SW())&&this.SW?this.SW.insert(t):t.in(this.quad.SE())&&this.SE&&this.SE.insert(t))}_isExternal(){return null==this.NW&&null==this.NE&&null==this.SW&&null==this.SE}updateForce(t){if(null!=this.body&&t!==this.body)if(this._isExternal())t.addForce(this.body);else{(this.quad?this.quad.getLength():0)/this.body.distanceTo(t)(0,s.u)(t,[c,d]))),p=n.filter((t=>{const{source:e,target:r}=t;return e!==r})),m=new o.k({nodes:v,edges:p}),y=this.getSizes(m,f);if(this.run(m,e,l,y,t,a),h){for(let t=0;t250&&(r.barnesHut=!0),void 0===a&&e>100&&(r.prune=!0),0!==u||a?0===u&&a&&(r.maxIteration=100,e<=200&&e>100?r.maxIteration=500:e>200&&(r.maxIteration=950)):(r.maxIteration=250,e<=200&&e>100?r.maxIteration=1e3:e>200&&(r.maxIteration=1200)),c||(r.kr=50,e>100&&e<=500?r.kr=20:e>500&&(r.kr=1)),d||(r.kg=20,e>100&&e<=500?r.kg=10:e>500&&(r.kg=1)),r}run(t,e,r,n,o,i){const{kr:s,barnesHut:a,onTick:u}=i,d=t.getAllNodes();let h=0,l=r;const f={},g={},v={};for(let e=0;e0;)h=this.oneStep(t,{iter:l,preventOverlapIters:50,krPrime:100,sg:h,forces:f,preForces:g,bodies:v,sizes:n},i),l--,null==u||u({nodes:d,edges:e.getAllEdges()});return t}oneStep(t,e,r){const{iter:n,preventOverlapIters:o,krPrime:i,sg:s,preForces:a,bodies:u,sizes:c}=e;let{forces:d}=e;const{preventOverlap:h,barnesHut:l}=r,f=t.getAllNodes();for(let t=0;to||!h)?this.getOptRepGraForces(t,d,u,r):this.getRepGraForces(t,n,o,d,i,c,r),this.updatePos(t,d,a,s,r)}getAttrForces(t,e,r,n,o,i){const{preventOverlap:s,dissuadeHubs:a,mode:u,prune:c}=i,d=t.getAllEdges();for(let i=0;i0&&(w=y,x=y),o[h][0]+=w*m[0],o[l][0]-=x*m[0],o[h][1]+=w*m[1],o[l][1]-=x*m[1]}return o}getOptRepGraForces(t,e,r,n){const{kg:o,center:i,prune:s}=n,a=t.getAllNodes(),u=a.length;let c=9e10,l=-9e10,f=9e10,g=-9e10;for(let e=0;e=l&&(l=o.x),o.x<=c&&(c=o.x),o.y>=g&&(g=o.y),o.y<=f&&(f=o.y))}const v=Math.max(l-c,g-f),p=new d({xmid:(l+c)/2,ymid:(g+f)/2,length:v,massCenter:i,mass:u}),m=new h(p);for(let e=0;e0&&(m=u*(v+1)*(d+1)/p),n[g.id][0]-=m*f[0],n[s.id][0]+=m*f[0],n[g.id][1]-=m*f[1],n[s.id][1]+=m*f[1]}const p=[g.data.x-d[0],g.data.y-d[1]],m=Math.hypot(p[0],p[1]);p[0]=p[0]/m,p[1]=p[1]/m;const y=c*(v+1);n[g.id][0]-=y*p[0],n[g.id][1]-=y*p[1]}return n}updatePos(t,e,r,n,o){const{ks:s,tao:a,prune:u,ksmax:c}=o,d=t.getAllNodes(),h=d.length,l=[],f=[];let g=0,v=0,p=n;for(let n=0;n1.5*m?1.5*m:p);for(let r=0;rg?g:h;const v=h*e[n][0],m=h*e[n][1];t.mergeNodeData(n,{x:o.x+v,y:o.y+m})}return p}}},93712:function(t,e,r){"use strict";r.d(e,{y:function(){return f}});var n=r(80813),o=r(56354),i=r(25719),s=r(35714),a=r(92730),u=r(81815);const c=.1;function d(t,e,r,n,o=2){const i=e/r,s=t.getAllNodes(),d=s.map(((t,e)=>{const{nodeStrength:r,x:n,y:o,z:s,size:a}=t.data;return{x:n,y:o,z:s,size:a,index:e,id:t.id,vx:0,vy:0,vz:0,weight:i*r}})),l=(2===o?(0,a.Z)(d,(t=>t.x),(t=>t.y)):(0,u.Z)(d,(t=>t.x),(t=>t.y),(t=>t.z))).visitAfter(h),f=new Map;return d.forEach((t=>{f.set(t.id,t),function(t,e,r){e.visit(((e,n,o,i,s)=>((t,e,r,n,o,i,s)=>{var a;if((null===(a=t.data)||void 0===a?void 0:a.id)===i.id)return;const u=[r,n,o][s-1],d=i.x-t.x||c,h=i.y-t.y||c,l=i.z-t.z||c,f=[d,h,l],g=u-e;let v=0;for(let t=0;t{const{id:r,data:o}=s[e],{mass:i=1}=o;n[r]={x:t.vx/i,y:t.vy/i,z:t.vz/i}})),n}function h(t){let e=0,r=0,n=0,o=0,i=0;const s=t.length;if(s){for(let a=0;athis.lastOptions.minMovement||e<1)&&ethis.lastGraph.mergeNodeData(t.id,{x:t.data.x,y:t.data.y,z:3===this.options.dimensions?t.data.z:void 0}))),e}genericForceLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign({},this.options),r),s=e.getAllNodes(),a=e.getAllEdges(),u=this.formatOptions(n,e),{dimensions:c,width:d,height:h,nodeSize:l,getMass:f,nodeStrength:g,edgeStrength:v,linkDistance:p}=u,m=s.map(((t,e)=>Object.assign(Object.assign({},t),{data:Object.assign(Object.assign({},t.data),{x:(0,i.Z)(t.data.x)?t.data.x:Math.random()*d,y:(0,i.Z)(t.data.y)?t.data.y:Math.random()*h,z:(0,i.Z)(t.data.z)?t.data.z:Math.random()*Math.sqrt(d*h),size:l(t)||30,mass:f(t),nodeStrength:g(t)})}))),w=a.map((t=>Object.assign(Object.assign({},t),{data:Object.assign(Object.assign({},t.data),{edgeStrength:v(t),linkDistance:p(t,e.getNode(t.source),e.getNode(t.target))})})));if(!(null==s?void 0:s.length))return this.lastResult={nodes:[],edges:a},{nodes:[],edges:a};const x={};s.forEach(((t,e)=>{x[t.id]={x:0,y:0,z:0}}));const b=new o.k({nodes:m,edges:w});this.formatCentripetal(u,b);const{maxIteration:E,minMovement:N,onTick:M}=u;if(this.lastLayoutNodes=m,this.lastLayoutEdges=w,this.lastAssign=t,this.lastGraph=e,this.lastCalcGraph=b,this.lastOptions=u,this.lastVelMap=x,"undefined"==typeof window)return;let k=0;return new Promise((r=>{this.timeInterval=window.setInterval((()=>{s&&this.running||r({nodes:y(e,m),edges:a}),this.runOneStep(b,e,k,x,u),this.updatePosition(e,b,x,u),t&&m.forEach((t=>e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y,z:3===c?t.data.z:void 0}))),null==M||M({nodes:y(e,m),edges:a}),k++,(k>=E||this.judgingDistance{let r=1;(0,i.Z)(null==t?void 0:t.data.mass)&&(r=null==t?void 0:t.data.mass);const n=e.getDegree(t.id,"both");return!n||n<5?r:5*n*r}),r.nodeSize=(0,s.uE)(t.nodeSize,t.nodeSpacing);const u=t.linkDistance?(0,s.jE)(1,t.linkDistance):t=>1+r.nodeSize(e.getNode(t.source))+r.nodeSize(e.getNode(t.target));return r.linkDistance=u,r.nodeStrength=(0,s.jE)(1,t.nodeStrength),r.edgeStrength=(0,s.jE)(1,t.edgeStrength),r}formatCentripetal(t,e){const{dimensions:r,centripetalOptions:n,center:o,clusterNodeStrength:i,leafCluster:s,clustering:a,nodeClusterBy:u}=t,c=e.getAllNodes(),d=n||{leaf:2,single:2,others:1,center:t=>({x:o[0],y:o[1],z:3===r?o[2]:void 0})};let h,l;if("function"!=typeof i&&(t.clusterNodeStrength=t=>i),s&&u&&(h=g(e,u),l=Array.from(new Set(null==c?void 0:c.map((t=>t.data[u]))))||[],t.centripetalOptions=Object.assign(d,{single:100,leaf:e=>{const{siblingLeaves:r,sameTypeLeaves:n}=h[e.id]||{};return(null==n?void 0:n.length)===(null==r?void 0:r.length)||1===(null==l?void 0:l.length)?1:t.clusterNodeStrength(e)},others:1,center:t=>{const r=e.getDegree(t.id,"both");if(!r)return{x:100,y:100,z:0};let n;if(1===r){const{sameTypeLeaves:e=[]}=h[t.id]||{};1===e.length?n=void 0:e.length>1&&(n=m(e))}else n=void 0;return{x:null==n?void 0:n.x,y:null==n?void 0:n.y,z:null==n?void 0:n.z}}})),a&&u){h||(h=g(e,u)),l||(l=Array.from(new Set(c.map((t=>t.data[u]))))),l=l.filter((t=>void 0!==t));const r={};l.forEach((t=>{const n=c.filter((e=>e.data[u]===t)).map((t=>e.getNode(t.id)));r[t]=m(n)})),t.centripetalOptions=Object.assign(d,{single:e=>t.clusterNodeStrength(e),leaf:e=>t.clusterNodeStrength(e),others:e=>t.clusterNodeStrength(e),center:t=>{const e=r[t.data[u]];return{x:null==e?void 0:e.x,y:null==e?void 0:e.y,z:null==e?void 0:e.z}}})}const{leaf:f,single:v,others:p}=t.centripetalOptions||{};f&&"function"!=typeof f&&(t.centripetalOptions.leaf=()=>f),v&&"function"!=typeof v&&(t.centripetalOptions.single=()=>v),p&&"function"!=typeof p&&(t.centripetalOptions.others=()=>p)}runOneStep(t,e,r,n,o){const i={},s=t.getAllNodes(),a=t.getAllEdges();if(!(null==s?void 0:s.length))return;const{monitor:u}=o;if(this.calRepulsive(t,i,o),a&&this.calAttractive(t,i,o),this.calGravity(t,e,i,o),this.updateVelocity(t,i,n,o),u){u({energy:this.calTotalEnergy(i,s),nodes:e.getAllNodes(),edges:e.getAllEdges(),iterations:r})}}calTotalEnergy(t,e){if(!(null==e?void 0:e.length))return 0;let r=0;return e.forEach(((e,n)=>{const o=t[e.id].x,i=t[e.id].y,s=3===this.options.dimensions?t[e.id].z:0,a=o*o+i*i+s*s,{mass:u=1}=e.data;r+=u*a*.5})),r}calRepulsive(t,e,r){const{dimensions:n,factor:o,coulombDisScale:i}=r;d(t,o,i*i,e,n)}calAttractive(t,e,r){const{dimensions:n,nodeSize:o}=r;t.getAllEdges().forEach(((r,i)=>{const{source:s,target:a}=r,u=t.getNode(s),c=t.getNode(a);if(!u||!c)return;let d=c.data.x-u.data.x,h=c.data.y-u.data.y,l=3===n?c.data.z-u.data.z:0;d||h||(d=.01*Math.random(),h=.01*Math.random(),3!==n||l||(l=.01*Math.random()));const f=Math.sqrt(d*d+h*h+l*l);if(f{const{id:s,data:g}=n,{mass:v,x:p,y:m,z:y}=g,w=e.getNode(s);let x=0,b=0,E=0,N=l;const M=t.getDegree(s,"in"),k=t.getDegree(s,"out"),_=t.getDegree(s,"both"),A=null==o?void 0:o(w,_);if(A){const[t,e,r]=A;x=p-t,b=m-e,N=r}else x=p-h[0],b=m-h[1],E=y-h[2];if(N&&(r[s].x-=N*x/v,r[s].y-=N*b/v,r[s].z-=N*E/v),f){const{leaf:t,single:e,others:n,center:o}=f,{x:h,y:l,z:g,centerStrength:x}=(null==o?void 0:o(w,a,u,c,d))||{x:0,y:0,z:0,centerStrength:0};if(!(0,i.Z)(h)||!(0,i.Z)(l))return;const b=(p-h)/v,E=(m-l)/v,N=(y-g)/v;if(x&&(r[s].x-=x*b,r[s].y-=x*E,r[s].z-=x*N),0===_){const t=e(w);if(!t)return;return r[s].x-=t*b,r[s].y-=t*E,void(r[s].z-=t*N)}if(0===M||0===k){const e=t(w,a,u);if(!e)return;return r[s].x-=e*b,r[s].y-=e*E,void(r[s].z-=e*N)}const A=n(w);if(!A)return;r[s].x-=A*b,r[s].y-=A*E,r[s].z-=A*N}}))}updateVelocity(t,e,r,n){const{damping:o,maxSpeed:i,interval:s,dimensions:a}=n,u=t.getAllNodes();(null==u?void 0:u.length)&&u.forEach((t=>{const{id:n}=t;let u=(r[n].x+e[n].x*s)*o||.01,c=(r[n].y+e[n].y*s)*o||.01,d=3===a?(r[n].z+e[n].z*s)*o||.01:0;const h=Math.sqrt(u*u+c*c+d*d);if(h>i){const t=i/h;u*=t,c*=t,d*=t}r[n]={x:u,y:c,z:d}}))}updatePosition(t,e,r,n){const{distanceThresholdMode:o,interval:s,dimensions:a}=n,u=e.getAllNodes();if(!(null==u?void 0:u.length))return void(this.judgingDistance=0);let c=0;"max"===o?this.judgingDistance=-1/0:"min"===o&&(this.judgingDistance=1/0),u.forEach((n=>{const{id:u}=n,d=t.getNode(u);if((0,i.Z)(d.data.fx)&&(0,i.Z)(d.data.fy))return void e.mergeNodeData(u,{x:d.data.fx,y:d.data.fy,z:3===a?d.data.fz:void 0});const h=r[u].x*s,l=r[u].y*s,f=3===a?r[u].z*s:0;e.mergeNodeData(u,{x:n.data.x+h,y:n.data.y+l,z:n.data.z+f});const g=Math.sqrt(h*h+l*l+f*f);switch(o){case"max":this.judgingDistanceg&&(this.judgingDistance=g);break;default:c+=g}})),o&&"mean"!==o||(this.judgingDistance=c/u.length)}}const g=(t,e)=>{const r=t.getAllNodes();if(!(null==r?void 0:r.length))return{};const n={};return r.forEach(((r,o)=>{1===t.getDegree(r.id,"both")&&(n[r.id]=v(t,"leaf",r,e))})),n},v=(t,e,r,n)=>{const o=t.getDegree(r.id,"in"),i=t.getDegree(r.id,"out");let s=r,a=[];0===o?(s=t.getSuccessors(r.id)[0],a=t.getNeighbors(s.id)):0===i&&(s=t.getPredecessors(r.id)[0],a=t.getNeighbors(s.id)),a=a.filter((e=>0===t.getDegree(e.id,"in")||0===t.getDegree(e.id,"out")));return{coreNode:s,siblingLeaves:a,sameTypeLeaves:p(t,e,n,r,a)}},p=(t,e,r,n,o)=>{const i=n.data[r]||"";let s=(null==o?void 0:o.filter((t=>t.data[r]===i)))||[];return"leaf"===e&&(s=s.filter((e=>0===t.getDegree(e.id,"in")||0===t.getDegree(e.id,"out")))),s},m=t=>{const e={x:0,y:0};t.forEach((t=>{const{x:r,y:n}=t.data;e.x+=r||0,e.y+=n||0}));const r=t.length||1;return{x:e.x/r,y:e.y/r}},y=(t,e)=>e.map((e=>{const{id:r,data:n}=e,o=t.getNode(r);return Object.assign(Object.assign({},o),{data:Object.assign(Object.assign({},o.data),{x:n.x,y:n.y,z:n.z})})}))},79189:function(t,e,r){"use strict";r.d(e,{O:function(){return u}});var n=r(80813),o=r(56354),i=r(25719),s=r(21361);const a={maxIteration:1e3,gravity:10,speed:5,clustering:!1,clusterGravity:10,width:300,height:300,nodeClusterBy:"cluster"};class u{constructor(t={}){this.options=t,this.id="fruchterman",this.timeInterval=0,this.running=!1,this.options=Object.assign(Object.assign({},a),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.genericFruchtermanLayout(!1,t,e)}))}assign(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){yield this.genericFruchtermanLayout(!0,t,e)}))}stop(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval),this.running=!1}tick(t=this.options.maxIteration||1){if(this.lastResult)return this.lastResult;for(let e=0;ethis.lastGraph.mergeNodeData(t.id,{x:t.data.x,y:t.data.y,z:3===this.options.dimensions?t.data.z:void 0}))),e}genericFruchtermanLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,(function*(){if(this.running)return;const n=this.formatOptions(r),{dimensions:i,width:a,height:u,center:c,clustering:d,nodeClusterBy:h,maxIteration:l,onTick:f}=n,g=e.getAllNodes(),v=e.getAllEdges();if(!(null==g?void 0:g.length)){const t={nodes:[],edges:v};return this.lastResult=t,t}if(1===g.length){t&&e.mergeNodeData(g[0].id,{x:c[0],y:c[1],z:3===i?c[2]:void 0});const r={nodes:[Object.assign(Object.assign({},g[0]),{data:Object.assign(Object.assign({},g[0].data),{x:c[0],y:c[1],z:3===i?c[2]:void 0})})],edges:v};return this.lastResult=r,r}const p=g.map((t=>(0,s.u)(t,[a,u]))),m=new o.k({nodes:p,edges:v}),y={};if(d&&p.forEach((t=>{const e=t.data[h];y[e]||(y[e]={name:e,cx:0,cy:0,count:0})})),this.lastLayoutNodes=p,this.lastLayoutEdges=v,this.lastAssign=t,this.lastGraph=m,this.lastOptions=n,this.lastClusterMap=y,"undefined"==typeof window)return;let w=0;return new Promise((r=>{this.timeInterval=window.setInterval((()=>{this.running?(this.runOneStep(m,y,n),t&&p.forEach((({id:t,data:r})=>e.mergeNodeData(t,{x:r.x,y:r.y,z:3===i?r.z:void 0}))),null==f||f({nodes:p,edges:v}),w++,w>=l&&(window.clearInterval(this.timeInterval),r({nodes:p,edges:v}))):r({nodes:p,edges:v})}),0),this.running=!0}))}))}formatOptions(t={}){const e=Object.assign(Object.assign({},this.options),t),{clustering:r,nodeClusterBy:n}=e,{center:o,width:i,height:s}=e;return e.width=i||"undefined"==typeof window?i:window.innerWidth,e.height=s||"undefined"==typeof window?s:window.innerHeight,e.center=o||[e.width/2,e.height/2],e.clustering=r&&!!n,e}runOneStep(t,e,r){const{dimensions:n,height:o,width:s,gravity:a,center:u,speed:c,clustering:d,nodeClusterBy:h,clusterGravity:l}=r,f=o*s,g=Math.sqrt(f)/10,v=t.getAllNodes(),p=f/(v.length+1),m=Math.sqrt(p),y={};if(this.applyCalculate(t,y,m,p),d){for(const t in e)e[t].cx=0,e[t].cy=0,e[t].count=0;v.forEach((t=>{const{data:r}=t,n=e[r[h]];(0,i.Z)(r.x)&&(n.cx+=r.x),(0,i.Z)(r.y)&&(n.cy+=r.y),n.count++}));for(const t in e)e[t].cx/=e[t].count,e[t].cy/=e[t].count;const t=l||a;v.forEach(((r,n)=>{const{id:o,data:s}=r;if(!(0,i.Z)(s.x)||!(0,i.Z)(s.y))return;const a=e[s[h]],u=Math.sqrt((s.x-a.cx)*(s.x-a.cx)+(s.y-a.cy)*(s.y-a.cy)),c=m*t;y[o].x-=c*(s.x-a.cx)/u,y[o].y-=c*(s.y-a.cy)/u}))}v.forEach(((t,e)=>{const{id:r,data:o}=t;if(!(0,i.Z)(o.x)||!(0,i.Z)(o.y))return;const s=.01*m*a;y[r].x-=s*(o.x-u[0]),y[r].y-=s*(o.y-u[1]),3===n&&(y[r].z-=s*(o.z-u[2]))})),v.forEach(((e,r)=>{const{id:o,data:s}=e;if((0,i.Z)(s.fx)&&(0,i.Z)(s.fy))return s.x=s.fx,s.y=s.fy,void(3===n&&(s.z=s.fz));if(!(0,i.Z)(s.x)||!(0,i.Z)(s.y))return;const a=Math.sqrt(y[o].x*y[o].x+y[o].y*y[o].y+(3===n?y[o].z*y[o].z:0));if(a>0){const e=Math.min(g*(c/800),a);t.mergeNodeData(o,{x:s.x+y[o].x/a*e,y:s.y+y[o].y/a*e,z:3===n?s.z+y[o].z/a*e:void 0})}}))}applyCalculate(t,e,r,n){this.calRepulsive(t,e,n),this.calAttractive(t,e,r)}calRepulsive(t,e,r){const n=t.getAllNodes();n.forEach((({data:t,id:o},s)=>{e[o]={x:0,y:0,z:0},n.forEach((({data:n,id:a},u)=>{if(s<=u||!(0,i.Z)(t.x)||!(0,i.Z)(n.x)||!(0,i.Z)(t.y)||!(0,i.Z)(n.y))return;let c=t.x-n.x,d=t.y-n.y,h=3===this.options.dimensions?t.z-n.z:0,l=c*c+d*d+h*h;0===l&&(l=1,c=.01,d=.01,h=.01);const f=r/l,g=c*f,v=d*f,p=h*f;e[o].x+=g,e[o].y+=v,e[a].x-=g,e[a].y-=v,3===this.options.dimensions&&(e[o].z+=p,e[a].z-=p)}))}))}calAttractive(t,e,r){t.getAllEdges().forEach((n=>{const{source:o,target:s}=n;if(!o||!s||o===s)return;const{data:a}=t.getNode(o),{data:u}=t.getNode(s);if(!((0,i.Z)(u.x)&&(0,i.Z)(a.x)&&(0,i.Z)(u.y)&&(0,i.Z)(a.y)))return;const c=u.x-a.x,d=u.y-a.y,h=3===this.options.dimensions?u.z-a.z:0,l=Math.sqrt(c*c+d*d+h*h)/r,f=c*l,g=d*l,v=h*l;e[o].x+=f,e[o].y+=g,e[s].x-=f,e[s].y-=g,3===this.options.dimensions&&(e[o].z+=v,e[s].z-=v)}))}}},93786:function(t,e,r){"use strict";r.d(e,{M:function(){return h}});var n=r(80813),o=r(18756),i=r(25719),s=r(21361),a=r(35714),u=r(18949),c=r(10259);const d={begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30,width:300,height:300};class h{constructor(t={}){this.options=t,this.id="grid",this.options=Object.assign(Object.assign({},d),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.genericGridLayout(!1,t,e)}))}assign(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){yield this.genericGridLayout(!0,t,e)}))}genericGridLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign({},this.options),r),{begin:d=[0,0],condense:h,preventOverlapPadding:p,preventOverlap:y,rows:w,cols:x,nodeSpacing:b,nodeSize:E,width:N,height:M,position:k}=n;let{sortBy:_}=n;const A=e.getAllNodes(),S=e.getAllEdges(),j=null==A?void 0:A.length;if(!j||1===j)return(0,u.P)(e,t,d);const O=A.map((t=>(0,s.u)(t)));"id"===_||(0,o.Z)(_)&&void 0!==O[0].data[_]||(_="degree"),"degree"===_?O.sort(((t,r)=>e.getDegree(r.id,"both")-e.getDegree(t.id,"both"))):"id"===_?O.sort(((t,e)=>(0,i.Z)(e.id)&&(0,i.Z)(t.id)?e.id-t.id:`${t.id}`.localeCompare(`${e.id}`))):O.sort(((t,e)=>e.data[_]-t.data[_]));const R=N||"undefined"==typeof window?N:window.innerWidth,I=M||"undefined"==typeof window?M:window.innerHeight,z=j,C={rows:w,cols:x};if(null!=w&&null!=x)C.rows=w,C.cols=x;else if(null!=w&&null==x)C.rows=w,C.cols=Math.ceil(z/C.rows);else if(null==w&&null!=x)C.cols=x,C.rows=Math.ceil(z/C.cols);else{const t=Math.sqrt(z*I/R);C.rows=Math.round(t),C.cols=Math.round(R/I*t)}if(C.rows=Math.max(C.rows,1),C.cols=Math.max(C.cols,1),C.cols*C.rows>z){const t=l(C),e=f(C);(t-1)*e>=z?l(C,t-1):(e-1)*t>=z&&f(C,e-1)}else for(;C.cols*C.rows=z?f(C,e+1):l(C,t+1)}let D=h?0:R/C.cols,T=h?0:I/C.rows;if(y||b){const t=(0,a.jE)(10,b),r=(0,a.tO)(30,E,!1);O.forEach((n=>{n.data.x&&n.data.y||(n.data.x=0,n.data.y=0);const o=e.getNode(n.id),[i,s]=(0,c._)(r(o)||30),a=void 0!==t?t(n):p,u=i+a,d=s+a;D=Math.max(D,u),T=Math.max(T,d)}))}const P={},L={row:0,col:0},F={};for(let t=0;t{e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})})),q}))}}const l=(t,e)=>{let r;const n=t.rows||5,o=t.cols||5;if(null==e)r=Math.min(n,o);else{Math.min(n,o)===t.rows?t.rows=e:t.cols=e}return r},f=(t,e)=>{let r;const n=t.rows||5,o=t.cols||5;if(null==e)r=Math.max(n,o);else{Math.max(n,o)===t.rows?t.rows=e:t.cols=e}return r},g=(t,e)=>t[`c-${e.row}-${e.col}`]||!1,v=(t,e)=>t[`c-${e.row}-${e.col}`]=!0,p=(t,e)=>{const r=t.cols||5;e.col++,e.col>=r&&(e.col=0,e.row++)},m=(t,e,r,n,o,i,s,a)=>{let u,c;const d=o[t.id];if(d)u=d.col*r+r/2+e[0],c=d.row*n+n/2+e[1];else{for(;g(a,s);)p(i,s);u=s.col*r+r/2+e[0],c=s.row*n+n/2+e[1],v(a,s),p(i,s)}t.data.x=u,t.data.y=c}},8421:function(t,e,r){"use strict";r.d(e,{A:function(){return c}});var n=r(80813),o=r(43315),i=r(34748),s=r(21361),a=r(18949);const u={center:[0,0],linkDistance:50};class c{constructor(t={}){this.options=t,this.id="mds",this.options=Object.assign(Object.assign({},u),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.genericMDSLayout(!1,t,e)}))}assign(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){yield this.genericMDSLayout(!0,t,e)}))}genericMDSLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign({},this.options),r),{center:o=[0,0],linkDistance:u=50}=n,c=e.getAllNodes(),l=e.getAllEdges();if(!(null==c?void 0:c.length)||1===c.length)return(0,a.P)(e,t,o);const f=(0,i.zJ)({nodes:c,edges:l},!1),g=(0,i.qs)(f);d(g);const v=(0,i.nu)(g,u),p=h(v),m=[];p.forEach(((t,e)=>{const r=(0,s.u)(c[e]);r.data.x=t[0]+o[0],r.data.y=t[1]+o[1],m.push(r)})),t&&m.forEach((t=>e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})));return{nodes:m,edges:l}}))}}const d=t=>{let e=-999999;t.forEach((t=>{t.forEach((t=>{t!==1/0&&e{r.forEach(((r,o)=>{r===1/0&&(t[n][o]=e)}))}))},h=t=>{const e=o.y3.mul(o.y3.pow(t,2),-.5),r=e.mean("row"),n=e.mean("column"),i=e.mean();e.add(i).subRowVector(r).subColumnVector(n);const s=new o.Sc(e),a=o.y3.sqrt(s.diagonalMatrix).diagonal();return s.leftSingularVectors.toJSON().map((t=>o.y3.mul([t],[a]).toJSON()[0].splice(0,2)))}},16589:function(t,e,r){"use strict";r.d(e,{D:function(){return g}});var n=r(80813),o=r(18756),i=r(34748),s=r(35714),a=r(21361),u=r(18949),c=r(43315);const d={iterations:10,height:10,width:10,speed:100,gravity:10,k:5},h=(t,e,r,n,o,i)=>{e.forEach(((s,a)=>{r[a]={x:0,y:0},e.forEach(((e,u)=>{if(a===u)return;if(o[a]!==o[u])return;let c=s.x-e.x,d=s.y-e.y,h=Math.sqrt(c*c+d*d);if(0===h){h=1;const t=a>u?1:-1;c=.01*t,d=.01*t}if(h{const u=i||s/10;return n&&e.forEach(((e,r)=>{const n=t[r].x-t[o].x,i=t[r].y-t[o].y,s=Math.sqrt(n*n+i*i);let a=i/s,u=-n/s;const c=Math.sqrt(e.x*e.x+e.y*e.y);let d=Math.acos((a*e.x+u*e.y)/c);d>Math.PI/2&&(d-=Math.PI/2,a*=-1,u*=-1);const h=Math.cos(d)*c;e.x=a*h,e.y=u*h})),t.forEach(((i,s)=>{if(s===o)return;const c=Math.sqrt(e[s].x*e[s].x+e[s].y*e[s].y);if(c>0&&s!==o){const d=Math.min(u*(r/800),c);if(i.x+=e[s].x/c*d,i.y+=e[s].y/c*d,n){let e=i.x-t[o].x,r=i.y-t[o].y;const n=Math.sqrt(e*e+r*r);e=e/n*a[s],r=r/n*a[s],i.x=t[o].x+e,i.y=t[o].y+r}}})),t},f={maxIteration:1e3,focusNode:null,unitRadius:null,linkDistance:50,preventOverlap:!1,strictRadial:!0,maxPreventOverlapIteration:200,sortStrength:10};class g{constructor(t={}){this.options=t,this.id="radial",this.options=Object.assign(Object.assign({},f),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.genericRadialLayout(!1,t,e)}))}assign(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){yield this.genericRadialLayout(!0,t,e)}))}genericRadialLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign({},this.options),r),{width:f,height:g,center:x,focusNode:b,unitRadius:E,nodeSize:N,nodeSpacing:M,strictRadial:k,preventOverlap:_,maxPreventOverlapIteration:A,sortBy:S,linkDistance:j=50,sortStrength:O=10,maxIteration:R=1e3}=n,I=e.getAllNodes(),z=e.getAllEdges(),C=f||"undefined"==typeof window?f:window.innerWidth,D=g||"undefined"==typeof window?g:window.innerHeight,T=x||[C/2,D/2];if(!(null==I?void 0:I.length)||1===I.length)return(0,u.P)(e,t,T);let P=I[0];if((0,o.Z)(b)){for(let t=0;tT[0]?T[0]:C-T[0],B=D-T[1]>T[1]?T[1]:D-T[1];0===G&&(G=C/2),0===B&&(B=D/2);const U=Math.min(G,B),W=Math.max(...Z),$=[],Y=E||U/W;Z.forEach(((t,e)=>{$[e]=t*Y}));const H=v(I,q,j,$,Y,S,O),K=p(H),J=((t,e,r)=>{try{const r=c.y3.mul(c.y3.pow(e,2),-.5),n=r.mean("row"),o=r.mean("column"),i=r.mean();r.add(i).subRowVector(n).subColumnVector(o);const s=new c.Sc(r),a=c.y3.sqrt(s.diagonalMatrix).diagonal();return s.leftSingularVectors.toJSON().map((e=>c.y3.mul([e],[a]).toJSON()[0].splice(0,t)))}catch(t){const n=[];for(let t=0;t({x:(isNaN(t)?Math.random()*j:t)-J[L][0],y:(isNaN(e)?Math.random()*j:e)-J[L][1]})));if(this.run(R,X,K,H,$,L),_){Q=(0,s.uE)(N,M);const t={nodes:I,nodeSizeFunc:Q,positions:X,radii:$,height:D,width:C,strictRadial:Boolean(k),focusIdx:L,iterations:A||200,k:X.length/4.5};X=((t,e)=>{const r=Object.assign(Object.assign({},d),e),{positions:n,iterations:o,width:i,k:s,speed:a=100,strictRadial:u,focusIdx:c,radii:f=[],nodeSizeFunc:g}=r,v=t.getAllNodes(),p=[],m=i/10;for(let t=0;t{p[e]={x:0,y:0}})),h(v,n,p,s,f,g),l(n,p,a,u,c,m,i,f);return n})(e,t)}const tt=[];X.forEach(((t,e)=>{const r=(0,a.u)(I[e]);r.data.x=t.x+T[0],r.data.y=t.y+T[1],tt.push(r)})),t&&tt.forEach((t=>e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})));return{nodes:tt,edges:z}}))}run(t,e,r,n,o,i){for(let s=0;s<=t;s++){const a=s/t;this.oneIteration(a,e,o,n,r,i)}}oneIteration(t,e,r,n,o,s){const a=1-t;e.forEach(((u,c)=>{const d=(0,i.$y)(u,{x:0,y:0}),h=0===d?0:1/d;if(c===s)return;let l=0,f=0,g=0;e.forEach(((t,e)=>{if(c===e)return;const r=(0,i.$y)(u,t),s=0===r?0:1/r,a=n[e][c];g+=o[c][e],l+=o[c][e]*(t.x+a*(u.x-t.x)*s),f+=o[c][e]*(t.y+a*(u.y-t.y)*s)}));const v=0===r[c]?0:1/r[c];g*=a,g+=t*v*v,l*=a,l+=t*v*u.x*h,u.x=l/g,f*=a,f+=t*v*u.y*h,u.y=f/g}))}}const v=(t,e,r,n,i,s,a)=>{if(!t)return[];const u=[];if(e){const c={};e.forEach(((e,d)=>{const h=[];e.forEach(((e,u)=>{var l,f;if(d===u)h.push(0);else if(n[d]===n[u])if("data"===s)h.push(e*(Math.abs(d-u)*a)/(n[d]/i));else if(s){let r,g;if(c[t[d].id])r=c[t[d].id];else{const e=("id"===s?t[d].id:null===(l=t[d].data)||void 0===l?void 0:l[s])||0;r=(0,o.Z)(e)?e.charCodeAt(0):e,c[t[d].id]=r}if(c[t[u].id])g=c[t[u].id];else{const e=("id"===s?t[u].id:null===(f=t[u].data)||void 0===f?void 0:f[s])||0;g=(0,o.Z)(e)?e.charCodeAt(0):e,c[t[u].id]=g}h.push(e*(Math.abs(r-g)*a)/(n[d]/i))}else h.push(e*r/(n[d]/i));else{const t=(r+i)/2;h.push(e*t)}})),u.push(h)}))}return u},p=t=>{const e=t.length,r=t[0].length,n=[];for(let o=0;o{let r=-1;return t.forEach(((t,n)=>{t.id===e&&(r=n)})),Math.max(r,0)},y=(t,e,r)=>{const n=t.length;for(let o=0;o{let r=0;for(let n=0;nr?t[e][n]:r);return r}},61649:function(t,e,r){"use strict";r.d(e,{_:function(){return i}});var n=r(80813);const o={center:[0,0],width:300,height:300};class i{constructor(t={}){this.options=t,this.id="random",this.options=Object.assign(Object.assign({},o),t)}execute(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.genericRandomLayout(!1,t,e)}))}assign(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){yield this.genericRandomLayout(!0,t,e)}))}genericRandomLayout(t,e,r){return(0,n.mG)(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign({},this.options),r),{center:o,width:i,height:s}=n,a=e.getAllNodes(),u=i||"undefined"==typeof window?i:window.innerWidth,c=s||"undefined"==typeof window?s:window.innerHeight,d=o||[u/2,c/2],h=[];a&&a.forEach((t=>{h.push({id:t.id,data:{x:.9*(Math.random()-.5)*u+d[0],y:.9*(Math.random()-.5)*c+d[1]}})})),t&&h.forEach((t=>e.mergeNodeData(t.id,{x:t.data.x,y:t.data.y})));return{nodes:h,edges:e.getAllEdges()}}))}}},31350:function(t,e,r){"use strict";function n(t){return!!t.tick&&!!t.stop}r.d(e,{h:function(){return n}})},23041:function(t,e,r){"use strict";r.d(e,{k:function(){return n}});const n=Array.isArray},18949:function(t,e,r){"use strict";r.d(e,{P:function(){return n}});const n=(t,e,r)=>{const n=t.getAllNodes(),o=t.getAllEdges();if(!(null==n?void 0:n.length)){return{nodes:[],edges:o}}if(1===n.length){e&&t.mergeNodeData(n[0].id,{x:r[0],y:r[1]});return{nodes:[Object.assign(Object.assign({},n[0]),{data:Object.assign(Object.assign({},n[0].data),{x:r[0],y:r[1]})})],edges:o}}}},35714:function(t,e,r){"use strict";r.d(e,{jE:function(){return a},tO:function(){return u},uE:function(){return c}});var n=r(77817),o=r(25719),i=r(85266),s=r(10259);function a(t,e){let r;return r=(0,n.Z)(e)?e:(0,o.Z)(e)?()=>e:()=>t,r}function u(t,e,r=!0){return e||0===e?(0,n.Z)(e)?e:(0,o.Z)(e)?()=>e:Array.isArray(e)?()=>r?Math.max(...e)||t:e:(0,i.Z)(e)&&e.width&&e.height?()=>r?Math.max(e.width,e.height)||t:[e.width,e.height]:()=>t:e=>{const{size:n}=e.data||{};return n?Array.isArray(n)?r?Math.max(...n)||t:n:(0,i.Z)(n)&&n.width&&n.height?r?Math.max(n.width,n.height)||t:[n.width,n.height]:n:t}}const c=(t,e,r=10)=>{let o;const a="function"==typeof e?e:()=>e||0;o=t?Array.isArray(t)?e=>t:(0,n.Z)(t)?t:e=>t:t=>{var e,n,o;if(null===(e=t.data)||void 0===e?void 0:e.bboxSize)return null===(n=t.data)||void 0===n?void 0:n.bboxSize;if(null===(o=t.data)||void 0===o?void 0:o.size){const e=t.data.size;return Array.isArray(e)?e:(0,i.Z)(e)?[e.width,e.height]:e}return r};return t=>{const e=o(t),r=a(t);return Math.max(...(0,s._)(e))+r}}},34748:function(t,e,r){"use strict";r.d(e,{$y:function(){return c},H0:function(){return u},_:function(){return d},nu:function(){return a},qs:function(){return i},zJ:function(){return s}});var n=r(25719),o=r(23041);const i=t=>{const e=[],r=t.length;for(let n=0;ne[n][t]+e[t][o]&&(e[n][o]=e[n][t]+e[t][o]);return e},s=(t,e)=>{const{nodes:r,edges:n}=t,o=[],i={};if(!r)throw new Error("invalid nodes data!");return r&&r.forEach(((t,e)=>{i[t.id]=e;o.push([])})),null==n||n.forEach((t=>{const{source:r,target:n}=t,s=i[r],a=i[n];void 0!==s&&void 0!==a&&(o[s][a]=1,e||(o[a][s]=1))})),o},a=(t,e)=>{const r=[];return t.forEach((t=>{const n=[];t.forEach((t=>{n.push(t*e)})),r.push(n)})),r},u=t=>{let e=1/0,r=1/0,i=-1/0,s=-1/0;return t.forEach((t=>{let a=t.data.size;(0,o.k)(a)?1===a.length&&(a=[a[0],a[0]]):(0,n.Z)(a)?a=[a,a]:(void 0===a||isNaN(a))&&(a=[30,30]);const u=[a[0]/2,a[1]/2],c=t.data.x-u[0],d=t.data.x+u[0],h=t.data.y-u[1],l=t.data.y+u[1];e>c&&(e=c),r>h&&(r=h),iMath.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y)),d=(t,e,r,n="TB",o,i={})=>{if(!(null==e?void 0:e.length))return;const{stopBranchFn:s,stopAllFn:a}=i;for(let u=0;u{if(null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){const e=[];return t.forEach((t=>{e.push(t)})),e.map((t=>o(t)))}if("object"==typeof t){const e={};return Object.keys(t).forEach((r=>{e[r]=o(t[r])})),e}return t},i=(t,e)=>{const r=o(t);return r.data=r.data||{},e&&((0,n.Z)(r.data.x)||(r.data.x=Math.random()*e[0]),(0,n.Z)(r.data.y)||(r.data.y=Math.random()*e[1])),r}},10259:function(t,e,r){"use strict";r.d(e,{_:function(){return o}});var n=r(25719);function o(t){if(!t)return[0,0,0];if((0,n.Z)(t))return[t,t,t];if(0===t.length)return[0,0,0];const[e,r=e,o=e]=t;return[e,r,o]}},83559:function(t,e,r){"use strict";var n=r(1623),o=function(t){if("object"!=typeof t||null===t)return t;var e;if((0,n.Z)(t)){e=[];for(var r=0,i=t.length;r1&&void 0!==arguments[1]?arguments[1]:{},r=e.maxRows,n=void 0===r?15:r,o=e.maxColumns,i=void 0===o?10:o,s=e.maxNumSize,a=void 0===s?8:s,u=e.padMinus,c=void 0===u?"auto":u;return"".concat(t.constructor.name," {\n").concat(E,"[\n").concat(N).concat(k(t,n,i,a,c),"\n").concat(E,"]\n").concat(E,"rows: ").concat(t.rows,"\n").concat(E,"columns: ").concat(t.columns,"\n}")}function k(t,e,r,n,o){var i=t.rows,s=t.columns,a=Math.min(i,e),u=Math.min(s,r),c=[];if("auto"===o){o=!1;t:for(var d=0;d=0&&r?" ".concat(A(t,e-1)):A(t,e)).padEnd(e)}function A(t,e){var r=t.toString();if(r.length<=e)return r;var n=t.toFixed(e);if(n.length>e&&(n=t.toFixed(Math.max(0,e-(n.length-e)))),n.length<=e&&!n.startsWith("0.000")&&!n.startsWith("-0.000"))return n;var o=t.toExponential(e);return o.length>e&&(o=t.toExponential(Math.max(0,e-(o.length-e)))),o.slice(0)}function S(t,e,r){var n=r?t.rows:t.rows-1;if(e<0||e>n)throw new RangeError("Row index out of range")}function j(t,e,r){var n=r?t.columns:t.columns-1;if(e<0||e>n)throw new RangeError("Column index out of range")}function O(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.columns)throw new RangeError("vector size must be the same as the number of columns");return e}function R(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.rows)throw new RangeError("vector size must be the same as the number of rows");return e}function I(t,e){if(!x.isAnyArray(e))throw new TypeError("row indices must be an array");for(var r=0;r=t.rows)throw new RangeError("row indices are out of range")}function z(t,e){if(!x.isAnyArray(e))throw new TypeError("column indices must be an array");for(var r=0;r=t.columns)throw new RangeError("column indices are out of range")}function C(t,e,r,n,o){if(5!==arguments.length)throw new RangeError("expected 4 arguments");if(T("startRow",e),T("endRow",r),T("startColumn",n),T("endColumn",o),e>r||n>o||e<0||e>=t.rows||r<0||r>=t.rows||n<0||n>=t.columns||o<0||o>=t.columns)throw new RangeError("Submatrix indices are out of range")}function D(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],n=0;nr?(o=!0,r=e):(n=!1,o=!0);t++}return n}},{key:"isReducedEchelonForm",value:function(){for(var t=0,e=0,r=-1,n=!0,o=!1;tr?(o=!0,r=e):(n=!1,o=!0);for(var i=e+1;it.get(n,r)&&(n=o);if(0===t.get(n,r))r++;else{t.swapRows(e,n);for(var i=t.get(e,r),s=r;s=0;)if(0===t.maxRow(n))n--;else{for(var o=0,i=!1;o0&&void 0!==arguments[0]?arguments[0]:{};if("object"!==m(t))throw new TypeError("options must be an object");var e=t.rows,r=void 0===e?1:e,n=t.columns,o=void 0===n?1:n;if(!Number.isInteger(r)||r<=0)throw new TypeError("rows must be a positive integer");if(!Number.isInteger(o)||o<=0)throw new TypeError("columns must be a positive integer");for(var i=new X(this.rows*r,this.columns*o),s=0;se[r]&&(e[r]=this.get(r,n));return e;case"column":for(var o=new Array(this.columns).fill(Number.NEGATIVE_INFINITY),i=0;io[s]&&(o[s]=this.get(i,s));return o;case void 0:for(var a=this.get(0,0),u=0;ua&&(a=this.get(u,c));return a;default:throw new Error("invalid option: ".concat(t))}}},{key:"maxIndex",value:function(){P(this);for(var t=this.get(0,0),e=[0,0],r=0;rt&&(t=this.get(r,n),e[0]=r,e[1]=n);return e}},{key:"min",value:function(t){if(this.isEmpty())return NaN;switch(t){case"row":for(var e=new Array(this.rows).fill(Number.POSITIVE_INFINITY),r=0;re&&(e=this.get(t,r));return e}},{key:"maxRowIndex",value:function(t){S(this,t),P(this);for(var e=this.get(t,0),r=[t,0],n=1;ne&&(e=this.get(t,n),r[1]=n);return r}},{key:"minRow",value:function(t){if(S(this,t),this.isEmpty())return NaN;for(var e=this.get(t,0),r=1;re&&(e=this.get(r,t));return e}},{key:"maxColumnIndex",value:function(t){j(this,t),P(this);for(var e=this.get(0,t),r=[0,t],n=1;ne&&(e=this.get(n,t),r[0]=n);return r}},{key:"minColumn",value:function(t){if(j(this,t),this.isEmpty())return NaN;for(var e=this.get(0,t),r=1;r0&&void 0!==arguments[0]?arguments[0]:"frobenius";switch(t){case"max":return this.max();case"frobenius":return Math.sqrt(this.dot(this));default:throw new RangeError("unknown norm type: ".concat(t))}}},{key:"cumulativeSum",value:function(){for(var t=0,e=0;e1;n/=2)0!=(1&n)&&(e=e.mmul(r)),r=r.mmul(r);return e}},{key:"strassen2x2",value:function(t){t=X.checkMatrix(t);var e=new X(2,2),r=this.get(0,0),n=t.get(0,0),o=this.get(0,1),i=t.get(0,1),s=this.get(1,0),a=t.get(1,0),u=this.get(1,1),c=t.get(1,1),d=(r+u)*(n+c),h=(s+u)*n,l=r*(i-c),f=u*(a-n),g=(r+o)*c,v=d+f-g+(o-u)*(a+c),p=l+g,m=h+f,y=d-h+l+(s-r)*(n+i);return e.set(0,0,v),e.set(0,1,p),e.set(1,0,m),e.set(1,1,y),e}},{key:"strassen3x3",value:function(t){t=X.checkMatrix(t);var e=new X(3,3),r=this.get(0,0),n=this.get(0,1),o=this.get(0,2),i=this.get(1,0),s=this.get(1,1),a=this.get(1,2),u=this.get(2,0),c=this.get(2,1),d=this.get(2,2),h=t.get(0,0),l=t.get(0,1),f=t.get(0,2),g=t.get(1,0),v=t.get(1,1),p=t.get(1,2),m=t.get(2,0),y=t.get(2,1),w=t.get(2,2),x=(r-i)*(-l+v),b=(-r+i+s)*(h-l+v),E=(i+s)*(-h+l),N=r*h,M=(-r+u+c)*(h-f+p),k=(-r+u)*(f-p),_=(u+c)*(-h+f),A=(-o+c+d)*(v+m-y),S=(o-d)*(v-y),j=o*m,O=(c+d)*(-m+y),R=(-o+s+a)*(p+m-w),I=(o-a)*(p-w),z=(s+a)*(-m+w),C=N+j+n*g,D=(r+n+o-i-s-c-d)*v+b+E+N+A+j+O,T=N+M+_+(r+n+o-s-a-u-c)*p+j+R+z,P=x+s*(-h+l+g-v-p-m+w)+b+N+j+R+I,L=x+b+E+N+a*y,F=j+R+I+z+i*f,q=N+M+k+c*(-h+f+g-v-p-m+y)+A+S+j,V=A+S+j+O+u*l,Z=N+M+k+_+d*w;return e.set(0,0,C),e.set(0,1,D),e.set(0,2,T),e.set(1,0,P),e.set(1,1,L),e.set(1,2,F),e.set(2,0,q),e.set(2,1,V),e.set(2,2,Z),e}},{key:"mmulStrassen",value:function(t){t=X.checkMatrix(t);var r=this.clone(),n=r.rows,o=r.columns,i=t.rows,s=t.columns;function a(t,r,n){var o=t.rows,i=t.columns;if(o===r&&i===n)return t;var s=e.zeros(r,n);return s=s.setSubMatrix(t,0,0)}o!==i&&console.warn("Multiplying ".concat(n," x ").concat(o," and ").concat(i," x ").concat(s," matrix: dimensions do not match."));var u=Math.max(n,i),c=Math.max(o,s);return function t(r,n,o,i){if(o<=512||i<=512)return r.mmul(n);o%2==1&&i%2==1?(r=a(r,o+1,i+1),n=a(n,o+1,i+1)):o%2==1?(r=a(r,o+1,i),n=a(n,o+1,i)):i%2==1&&(r=a(r,o,i+1),n=a(n,o,i+1));var s=parseInt(r.rows/2,10),u=parseInt(r.columns/2,10),c=r.subMatrix(0,s-1,0,u-1),d=n.subMatrix(0,s-1,0,u-1),h=r.subMatrix(0,s-1,u,r.columns-1),l=n.subMatrix(0,s-1,u,n.columns-1),f=r.subMatrix(s,r.rows-1,0,u-1),g=n.subMatrix(s,n.rows-1,0,u-1),v=r.subMatrix(s,r.rows-1,u,r.columns-1),p=n.subMatrix(s,n.rows-1,u,n.columns-1),m=t(e.add(c,v),e.add(d,p),s,u),y=t(e.add(f,v),d,s,u),w=t(c,e.sub(l,p),s,u),x=t(v,e.sub(g,d),s,u),b=t(e.add(c,h),p,s,u),E=t(e.sub(f,c),e.add(d,l),s,u),N=t(e.sub(h,v),e.add(g,p),s,u),M=e.add(m,x);M.sub(b),M.add(N);var k=e.add(w,b),_=e.add(y,x),A=e.sub(m,y);A.add(w),A.add(E);var S=e.zeros(2*M.rows,2*M.columns);return(S=(S=(S=(S=S.setSubMatrix(M,0,0)).setSubMatrix(k,M.rows,0)).setSubMatrix(_,0,M.columns)).setSubMatrix(A,M.rows,M.columns)).subMatrix(0,o-1,0,i-1)}(r=a(r,u,c),t=a(t,u,c),u,c)}},{key:"scaleRows",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("object"!==m(t))throw new TypeError("options must be an object");var e=t.min,r=void 0===e?0:e,n=t.max,o=void 0===n?1:n;if(!Number.isFinite(r))throw new TypeError("min must be a number");if(!Number.isFinite(o))throw new TypeError("max must be a number");if(r>=o)throw new RangeError("min must be smaller than max");for(var i=new X(this.rows,this.columns),s=0;s0&&b(a,{min:r,max:o,output:a}),i.setRow(s,a)}return i}},{key:"scaleColumns",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("object"!==m(t))throw new TypeError("options must be an object");var e=t.min,r=void 0===e?0:e,n=t.max,o=void 0===n?1:n;if(!Number.isFinite(r))throw new TypeError("min must be a number");if(!Number.isFinite(o))throw new TypeError("max must be a number");if(r>=o)throw new RangeError("min must be smaller than max");for(var i=new X(this.rows,this.columns),s=0;s0&&void 0!==arguments[0]?arguments[0]:J,e=0;e0&&void 0!==arguments[0]?arguments[0]:J,e=0;er||e<0||e>=this.columns||r<0||r>=this.columns)throw new RangeError("Argument out of range");for(var n=new X(t.length,r-e+1),o=0;o=this.rows)throw new RangeError("Row index out of range: ".concat(t[o]));n.set(o,i-e,this.get(t[o],i))}return n}},{key:"subMatrixColumn",value:function(t,e,r){if(void 0===e&&(e=0),void 0===r&&(r=this.rows-1),e>r||e<0||e>=this.rows||r<0||r>=this.rows)throw new RangeError("Argument out of range");for(var n=new X(r-e+1,t.length),o=0;o=this.columns)throw new RangeError("Column index out of range: ".concat(t[o]));n.set(i-e,o,this.get(i,t[o]))}return n}},{key:"setSubMatrix",value:function(t,e,r){if((t=X.checkMatrix(t)).isEmpty())return this;C(this,e,e+t.rows-1,r,r+t.columns-1);for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if("object"===m(t)&&(e=t,t=void 0),"object"!==m(e))throw new TypeError("options must be an object");var r=e,n=r.unbiased,o=void 0===n||n,i=r.mean,s=void 0===i?this.mean(t):i;if("boolean"!=typeof o)throw new TypeError("unbiased must be a boolean");switch(t){case"row":if(!x.isAnyArray(s))throw new TypeError("mean must be an array");return L(this,o,s);case"column":if(!x.isAnyArray(s))throw new TypeError("mean must be an array");return F(this,o,s);case void 0:if("number"!=typeof s)throw new TypeError("mean must be a number");return q(this,o,s);default:throw new Error("invalid option: ".concat(t))}}},{key:"standardDeviation",value:function(t,e){"object"===m(t)&&(e=t,t=void 0);var r=this.variance(t,e);if(void 0===t)return Math.sqrt(r);for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if("object"===m(t)&&(e=t,t=void 0),"object"!==m(e))throw new TypeError("options must be an object");var r=e,n=r.center,o=void 0===n?this.mean(t):n;switch(t){case"row":if(!x.isAnyArray(o))throw new TypeError("center must be an array");return V(this,o),this;case"column":if(!x.isAnyArray(o))throw new TypeError("center must be an array");return Z(this,o),this;case void 0:if("number"!=typeof o)throw new TypeError("center must be a number");return G(this,o),this;default:throw new Error("invalid option: ".concat(t))}}},{key:"scale",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"===m(t)&&(e=t,t=void 0),"object"!==m(e))throw new TypeError("options must be an object");var r=e.scale;switch(t){case"row":if(void 0===r)r=B(this);else if(!x.isAnyArray(r))throw new TypeError("scale must be an array");return U(this,r),this;case"column":if(void 0===r)r=W(this);else if(!x.isAnyArray(r))throw new TypeError("scale must be an array");return $(this,r),this;case void 0:if(void 0===r)r=Y(this);else if("number"!=typeof r)throw new TypeError("scale must be a number");return H(this,r),this;default:throw new Error("invalid option: ".concat(t))}}},{key:"toString",value:function(t){return M(this,t)}},{key:t,value:function(){return this.entries()}},{key:"entries",value:p().mark((function t(){var e,r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=0;case 1:if(!(e2&&void 0!==arguments[2]?arguments[2]:{};if("object"!==m(r))throw new TypeError("options must be an object");for(var n=r.random,o=void 0===n?Math.random:n,i=new X(t,e),s=0;s2&&void 0!==arguments[2]?arguments[2]:{};if("object"!==m(r))throw new TypeError("options must be an object");var n=r.min,o=void 0===n?0:n,i=r.max,s=void 0===i?1e3:i,a=r.random,u=void 0===a?Math.random:a;if(!Number.isInteger(o))throw new TypeError("min must be an integer");if(!Number.isInteger(s))throw new TypeError("max must be an integer");if(o>=s)throw new RangeError("min must be smaller than max");for(var c=s-o,d=new X(t,e),h=0;h=0)f(u(o),Q,tt).call(u(o),t,n);else{if(!x.isAnyArray(t))throw new TypeError("First argument must be a positive number or an array");var i=t;if("number"!=typeof(n=(t=i.length)?i[0].length:0))throw new TypeError("Data must be a 2D array with at least one element");o.data=[];for(var s=0;s=0))throw new TypeError("nColumns must be a positive integer");for(var r=0;r>t);return this},t.prototype.signPropagatingRightShiftM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var r=0;r>t.get(r,n));return this},t.signPropagatingRightShift=function(t,r){return new e(t).signPropagatingRightShift(r)},t.prototype.rightShift=function(t){return"number"==typeof t?this.rightShiftS(t):this.rightShiftM(t)},t.prototype.rightShiftS=function(t){for(var e=0;e>>t);return this},t.prototype.rightShiftM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var r=0;r>>t.get(r,n));return this},t.rightShift=function(t,r){return new e(t).rightShift(r)},t.prototype.zeroFillRightShift=t.prototype.rightShift,t.prototype.zeroFillRightShiftS=t.prototype.rightShiftS,t.prototype.zeroFillRightShiftM=t.prototype.rightShiftM,t.zeroFillRightShift=t.rightShift,t.prototype.not=function(){for(var t=0;t=0)s(u(n),et,new X(t,t));else if(s(u(n),et,new X(t)),!n.isSymmetric())throw new TypeError("not symmetric data");return n}return w(r,[{key:"size",get:function(){return a(this,et).size}},{key:"rows",get:function(){return a(this,et).rows}},{key:"columns",get:function(){return a(this,et).columns}},{key:"diagonalSize",get:function(){return this.rows}},{key:"clone",value:function(){var t,e=new r(this.diagonalSize),n=v(this.upperRightEntries());try{for(n.s();!(t=n.n()).done;){var o=g(t.value,3),i=o[0],s=o[1],a=o[2];e.set(i,s,a)}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"toMatrix",value:function(){return new X(this)}},{key:"get",value:function(t,e){return a(this,et).get(t,e)}},{key:"set",value:function(t,e,r){return a(this,et).set(t,e,r),a(this,et).set(e,t,r),this}},{key:"removeCross",value:function(t){return a(this,et).removeRow(t),a(this,et).removeColumn(t),this}},{key:"addCross",value:function(t,e){void 0===e&&(e=t,t=this.diagonalSize);var r=e.slice();return r.splice(t,1),a(this,et).addRow(t,r),a(this,et).addColumn(t,e),this}},{key:"applyMask",value:function(t){if(t.length!==this.diagonalSize)throw new RangeError("Mask size do not match with matrix size");var e,r=[],n=v(t.entries());try{for(n.s();!(e=n.n()).done;){var o=g(e.value,2),i=o[0];o[1]||r.push(i)}}catch(t){n.e(t)}finally{n.f()}r.reverse();for(var s=0,a=r;s=t&&(r=++n);return e}},{key:"upperRightEntries",value:p().mark((function t(){var e,r,n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=0,r=0;case 1:if(!(e=this.diagonalSize&&(r=++e);case 6:t.next=1;break;case 9:case"end":return t.stop()}}),t,this)}))},{key:"upperRightValues",value:p().mark((function t(){var e,r,n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=0,r=0;case 1:if(!(e=this.diagonalSize&&(r=++e);case 6:t.next=1;break;case 9:case"end":return t.stop()}}),t,this)}))}],[{key:"isSymmetricMatrix",value:function(t){return X.isMatrix(t)&&"SymmetricMatrix"===t.klassType}},{key:"zeros",value:function(t){return new this(t)}},{key:"ones",value:function(t){return new this(t).fill(1)}},{key:"fromCompact",value:function(t){var e=t.length,n=(Math.sqrt(8*e+1)-1)/2;if(!Number.isInteger(n))throw new TypeError("This array is not a compact representation of a Symmetric Matrix, ".concat(JSON.stringify(t)));for(var o=new r(n),i=0,s=0,a=0;a=n&&(i=++s);return o}}]),r}(K);rt.prototype.klassType="SymmetricMatrix";var nt=function(t){c(r,t);var e=d(r);function r(t){var n;if(y(this,r),!(n=e.call(this,t)).isDistance())throw new TypeError("Provided arguments do no produce a distance matrix");return n}return w(r,[{key:"set",value:function(t,e,i){return t===e&&(i=0),n(o(r.prototype),"set",this).call(this,t,e,i)}},{key:"addCross",value:function(t,e){return void 0===e&&(e=t,t=this.diagonalSize),(e=e.slice())[t]=0,n(o(r.prototype),"addCross",this).call(this,t,e)}},{key:"toSymmetricMatrix",value:function(){return new rt(this)}},{key:"clone",value:function(){var t,e=new r(this.diagonalSize),n=v(this.upperRightEntries());try{for(n.s();!(t=n.n()).done;){var o=g(t.value,3),i=o[0],s=o[1],a=o[2];i!==s&&e.set(i,s,a)}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"toCompact",value:function(){for(var t=this.diagonalSize,e=new Array((t-1)*t/2),r=1,n=0,o=0;o=t&&(r=1+ ++n);return e}}],[{key:"isDistanceMatrix",value:function(t){return rt.isSymmetricMatrix(t)&&"DistanceMatrix"===t.klassSubType}},{key:"fromCompact",value:function(t){var e=t.length;if(0===e)return new this(0);var r=(Math.sqrt(8*e+1)+1)/2;if(!Number.isInteger(r))throw new TypeError("This array is not a compact representation of a DistanceMatrix, ".concat(JSON.stringify(t)));for(var n=new this(r),o=1,i=0,s=0;s=r&&(o=1+ ++i);return n}}]),r}(rt);nt.prototype.klassSubType="DistanceMatrix";var ot=function(t){c(r,t);var e=d(r);function r(t,n,o){var i;return y(this,r),(i=e.call(this)).matrix=t,i.rows=n,i.columns=o,i}return w(r)}(K),it=function(t){c(r,t);var e=d(r);function r(t,n){var o;return y(this,r),j(t,n),(o=e.call(this,t,t.rows,1)).column=n,o}return w(r,[{key:"set",value:function(t,e,r){return this.matrix.set(t,this.column,r),this}},{key:"get",value:function(t){return this.matrix.get(t,this.column)}}]),r}(ot),st=function(t){c(r,t);var e=d(r);function r(t,n){var o;return y(this,r),z(t,n),(o=e.call(this,t,t.rows,n.length)).columnIndices=n,o}return w(r,[{key:"set",value:function(t,e,r){return this.matrix.set(t,this.columnIndices[e],r),this}},{key:"get",value:function(t,e){return this.matrix.get(t,this.columnIndices[e])}}]),r}(ot),at=function(t){c(r,t);var e=d(r);function r(t){return y(this,r),e.call(this,t,t.rows,t.columns)}return w(r,[{key:"set",value:function(t,e,r){return this.matrix.set(t,this.columns-e-1,r),this}},{key:"get",value:function(t,e){return this.matrix.get(t,this.columns-e-1)}}]),r}(ot),ut=function(t){c(r,t);var e=d(r);function r(t){return y(this,r),e.call(this,t,t.rows,t.columns)}return w(r,[{key:"set",value:function(t,e,r){return this.matrix.set(this.rows-t-1,e,r),this}},{key:"get",value:function(t,e){return this.matrix.get(this.rows-t-1,e)}}]),r}(ot),ct=function(t){c(r,t);var e=d(r);function r(t,n){var o;return y(this,r),S(t,n),(o=e.call(this,t,1,t.columns)).row=n,o}return w(r,[{key:"set",value:function(t,e,r){return this.matrix.set(this.row,e,r),this}},{key:"get",value:function(t,e){return this.matrix.get(this.row,e)}}]),r}(ot),dt=function(t){c(r,t);var e=d(r);function r(t,n){var o;return y(this,r),I(t,n),(o=e.call(this,t,n.length,t.columns)).rowIndices=n,o}return w(r,[{key:"set",value:function(t,e,r){return this.matrix.set(this.rowIndices[t],e,r),this}},{key:"get",value:function(t,e){return this.matrix.get(this.rowIndices[t],e)}}]),r}(ot),ht=function(t){c(r,t);var e=d(r);function r(t,n,o){var i;return y(this,r),I(t,n),z(t,o),(i=e.call(this,t,n.length,o.length)).rowIndices=n,i.columnIndices=o,i}return w(r,[{key:"set",value:function(t,e,r){return this.matrix.set(this.rowIndices[t],this.columnIndices[e],r),this}},{key:"get",value:function(t,e){return this.matrix.get(this.rowIndices[t],this.columnIndices[e])}}]),r}(ot),lt=function(t){c(r,t);var e=d(r);function r(t,n,o,i,s){var a;return y(this,r),C(t,n,o,i,s),(a=e.call(this,t,o-n+1,s-i+1)).startRow=n,a.startColumn=i,a}return w(r,[{key:"set",value:function(t,e,r){return this.matrix.set(this.startRow+t,this.startColumn+e,r),this}},{key:"get",value:function(t,e){return this.matrix.get(this.startRow+t,this.startColumn+e)}}]),r}(ot),ft=function(t){c(r,t);var e=d(r);function r(t){return y(this,r),e.call(this,t,t.columns,t.rows)}return w(r,[{key:"set",value:function(t,e,r){return this.matrix.set(e,t,r),this}},{key:"get",value:function(t,e){return this.matrix.get(e,t)}}]),r}(ot),gt=function(t){c(r,t);var e=d(r);function r(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y(this,r);var i=o.rows,s=void 0===i?1:i;if(t.length%s!=0)throw new Error("the data length is not divisible by the number of rows");return(n=e.call(this)).rows=s,n.columns=t.length/s,n.data=t,n}return w(r,[{key:"set",value:function(t,e,r){var n=this._calculateIndex(t,e);return this.data[n]=r,this}},{key:"get",value:function(t,e){var r=this._calculateIndex(t,e);return this.data[r]}},{key:"_calculateIndex",value:function(t,e){return t*this.columns+e}}]),r}(K),vt=function(t){c(r,t);var e=d(r);function r(t){var n;return y(this,r),(n=e.call(this)).data=t,n.rows=t.length,n.columns=t[0].length,n}return w(r,[{key:"set",value:function(t,e,r){return this.data[t][e]=r,this}},{key:"get",value:function(t,e){return this.data[t][e]}}]),r}(K);var pt=function(){function t(e){y(this,t);var r,n,o,i,s,a,u,c,d,h=(e=vt.checkMatrix(e)).clone(),l=h.rows,f=h.columns,g=new Float64Array(l),v=1;for(r=0;rMath.abs(c[i])&&(i=r);if(i!==n){for(o=0;o=0;o--){for(n=0;ni?n.set(o,i,t.get(o,i)):o===i?n.set(o,i,1):n.set(o,i,0);return n}},{key:"upperTriangularMatrix",get:function(){for(var t=this.LU,e=t.rows,r=t.columns,n=new X(e,r),o=0;oMath.abs(e)?(r=e/t,Math.abs(t)*Math.sqrt(1+r*r)):0!==e?(r=t/e,Math.abs(e)*Math.sqrt(1+r*r)):0}var yt=function(){function t(e){y(this,t);var r,n,o,i,s=(e=vt.checkMatrix(e)).clone(),a=e.rows,u=e.columns,c=new Float64Array(u);for(o=0;o=0;i--){for(o=0;o=0;r--){for(t=0;t1&&void 0!==arguments[1]?arguments[1]:{};if(y(this,t),(e=vt.checkMatrix(e)).isEmpty())throw new Error("Matrix must be non-empty");var n,o=e.rows,i=e.columns,s=r.computeLeftSingularVectors,a=void 0===s||s,u=r.computeRightSingularVectors,c=void 0===u||u,d=r.autoTranspose,h=void 0!==d&&d,l=Boolean(a),f=Boolean(c),g=!1;if(o=0;H--)if(0!==w[H]){for(var K=H+1;K=0;ot--){if(ot0;){var lt=void 0,ft=void 0;for(lt=W-2;lt>=-1&&-1!==lt;lt--){var gt=Number.MIN_VALUE+ht*Math.abs(w[lt]+Math.abs(w[lt+1]));if(Math.abs(E[lt])<=gt||Number.isNaN(E[lt])){E[lt]=0;break}}if(lt===W-2)ft=4;else{var pt=void 0;for(pt=W-1;pt>=lt&&pt!==lt;pt--){var yt=(pt!==W?Math.abs(E[pt]):0)+(pt!==lt+1?Math.abs(E[pt-1]):0);if(Math.abs(w[pt])<=ht*yt){w[pt]=0;break}}pt===lt?ft=3:pt===W-1?ft=1:(ft=2,lt=pt)}switch(lt++,ft){case 1:var wt=E[W-2];E[W-2]=0;for(var xt=W-2;xt>=lt;xt--){var bt=mt(w[xt],wt),Et=w[xt]/bt,Nt=wt/bt;if(w[xt]=bt,xt!==lt&&(wt=-Nt*E[xt-1],E[xt-1]=Et*E[xt-1]),f)for(var Mt=0;Mt=w[lt+1]);){var Ht=w[lt];if(w[lt]=w[lt+1],w[lt+1]=Ht,f&<e&&o.set(i,s,t.get(i,s)/this.s[s]);for(var a=this.U,u=a.rows,c=a.columns,d=new X(r,u),h=0;ht&&e++;return e}},{key:"diagonal",get:function(){return Array.from(this.s)}},{key:"threshold",get:function(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}},{key:"leftSingularVectors",get:function(){return this.U}},{key:"rightSingularVectors",get:function(){return this.V}},{key:"diagonalMatrix",get:function(){return X.diag(this.s)}}]),t}();function xt(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t=vt.checkMatrix(t),e=vt.checkMatrix(e),r?new wt(t).solve(e):t.isSquare()?new pt(t).solve(e):new yt(t).solve(e)}function bt(t,e){for(var r=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:1e-9,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1e-9;if(t>o)return new Array(e.rows+1).fill(0);for(var i=e.addRow(r,[0]),s=0;s1&&void 0!==arguments[1]?arguments[1]:{};y(this,t);var n=r.assumeSymmetric,o=void 0!==n&&n;if(!(e=vt.checkMatrix(e)).isSquare())throw new Error("Matrix is not a square matrix");if(e.isEmpty())throw new Error("Matrix must be non-empty");var i,s,a=e.columns,u=new X(a,a),c=new Float64Array(a),d=new Float64Array(a),h=e;if(!!o||e.isSymmetric()){for(i=0;i0?i.set(t,t+1,n[t]):n[t]<0&&i.set(t,t-1,n[t])}return i}}]),t}();function Mt(t,e,r,n){var o,i,s,a,u,c,d,h;for(u=0;u0;a--){for(h=0,s=0,c=0;c0&&(i=-i),e[a]=h*i,s-=o*i,r[a-1]=o-i,u=0;uc)do{for(o=r[c],l=mt(h=(r[c+1]-o)/(2*e[c]),1),h<0&&(l=-l),r[c]=e[c]/(h+l),r[c+1]=e[c]*(h+l),f=r[c+1],i=o-r[c],s=c+2;s=c;s--)for(p=v,v=g,w=y,o=g*e[s],i=g*h,l=mt(h,e[s]),e[s+1]=y*l,y=e[s]/l,h=(g=h/l)*r[s]-y*o,r[s+1]=i+y*(g*o+y*r[s]),u=0;uE*b);r[c]=r[c]+x,e[c]=0}for(s=0;s=c;a--)r[a]=e.get(a,c-1)/d,s+=r[a]*r[a];for(i=Math.sqrt(s),r[c]>0&&(i=-i),s-=r[c]*i,r[c]=r[c]-i,u=c;u=c;a--)o+=r[a]*e.get(a,u);for(o/=s,a=c;a<=h;a++)e.set(a,u,e.get(a,u)-o*r[a])}for(a=0;a<=h;a++){for(o=0,u=h;u>=c;u--)o+=r[u]*e.get(a,u);for(o/=s,u=c;u<=h;u++)e.set(a,u,e.get(a,u)-o*r[u])}r[c]=d*r[c],e.set(c,c-1,d*i)}}for(a=0;a=1;c--)if(0!==e.get(c,c-1)){for(a=c+1;a<=h;a++)r[a]=e.get(a,c-1);for(u=c;u<=h;u++){for(i=0,a=c;a<=h;a++)i+=r[a]*n.get(a,u);for(i=i/r[c]/e.get(c,c-1),a=c;a<=h;a++)n.set(a,u,n.get(a,u)+i*r[a])}}}function At(t,e,r,n,o){var i,s,a,u,c,d,h,l,f,g,v,p,m,y,w,x=t-1,b=t-1,E=Number.EPSILON,N=0,M=0,k=0,_=0,A=0,S=0,j=0,O=0;for(i=0;ib)&&(r[i]=o.get(i,i),e[i]=0),s=Math.max(i-1,0);s=0;){for(u=x;u>0&&(0===(S=Math.abs(o.get(u-1,u-1))+Math.abs(o.get(u,u)))&&(S=M),!(Math.abs(o.get(u,u-1))=0){for(j=k>=0?k+j:k-j,r[x-1]=l+j,r[x]=r[x-1],0!==j&&(r[x]=l-h/j),e[x-1]=0,e[x]=0,k=(l=o.get(x,x-1))/(S=Math.abs(l)+Math.abs(j)),_=j/S,k/=A=Math.sqrt(k*k+_*_),_/=A,s=x-1;s0){for(S=Math.sqrt(S),f=u&&(k=((A=l-(j=o.get(c,c)))*(S=f-j)-h)/o.get(c+1,c)+o.get(c,c+1),_=o.get(c+1,c+1)-j-A-S,A=o.get(c+2,c+1),k/=S=Math.abs(k)+Math.abs(_)+Math.abs(A),_/=S,A/=S,c!==u)&&!(Math.abs(o.get(c,c-1))*(Math.abs(_)+Math.abs(A))c+2&&o.set(i,i-3,0);for(a=c;a<=x-1&&(y=a!==x-1,a!==c&&(k=o.get(a,a-1),_=o.get(a+1,a-1),A=y?o.get(a+2,a-1):0,0!==(l=Math.abs(k)+Math.abs(_)+Math.abs(A))&&(k/=l,_/=l,A/=l)),0!==l);a++)if(S=Math.sqrt(k*k+_*_+A*A),k<0&&(S=-S),0!==S){for(a!==c?o.set(a,a-1,-S*l):u!==c&&o.set(a,a-1,-o.get(a,a-1)),l=(k+=S)/S,f=_/S,j=A/S,_/=k,A/=k,s=a;s=0;x--)if(k=r[x],0===(_=e[x]))for(u=x,o.set(x,x,1),i=x-1;i>=0;i--){for(h=o.get(i,i)-k,A=0,s=u;s<=x;s++)A+=o.get(i,s)*o.get(s,x);if(e[i]<0)j=h,S=A;else if(u=i,0===e[i]?o.set(i,x,0!==h?-A/h:-A/(E*M)):(l=o.get(i,i+1),f=o.get(i+1,i),d=(l*S-j*A)/(_=(r[i]-k)*(r[i]-k)+e[i]*e[i]),o.set(i,x,d),o.set(i+1,x,Math.abs(l)>Math.abs(j)?(-A-h*d)/l:(-S-f*d)/j)),E*(d=Math.abs(o.get(i,x)))*d>1)for(s=i;s<=x;s++)o.set(s,x,o.get(s,x)/d)}else if(_<0)for(u=x-1,Math.abs(o.get(x,x-1))>Math.abs(o.get(x-1,x))?(o.set(x-1,x-1,_/o.get(x,x-1)),o.set(x-1,x,-(o.get(x,x)-k)/o.get(x,x-1))):(w=St(0,-o.get(x-1,x),o.get(x-1,x-1)-k,_),o.set(x-1,x-1,w[0]),o.set(x-1,x,w[1])),o.set(x,x-1,0),o.set(x,x,1),i=x-2;i>=0;i--){for(g=0,v=0,s=u;s<=x;s++)g+=o.get(i,s)*o.get(s,x-1),v+=o.get(i,s)*o.get(s,x);if(h=o.get(i,i)-k,e[i]<0)j=h,A=g,S=v;else if(u=i,0===e[i]?(w=St(-g,-v,h,_),o.set(i,x-1,w[0]),o.set(i,x,w[1])):(l=o.get(i,i+1),f=o.get(i+1,i),p=(r[i]-k)*(r[i]-k)+e[i]*e[i]-_*_,m=2*(r[i]-k)*_,0===p&&0===m&&(p=E*M*(Math.abs(h)+Math.abs(_)+Math.abs(l)+Math.abs(f)+Math.abs(j))),w=St(l*A-j*g+_*v,l*S-j*v-_*g,p,m),o.set(i,x-1,w[0]),o.set(i,x,w[1]),Math.abs(l)>Math.abs(j)+Math.abs(_)?(o.set(i+1,x-1,(-g-h*o.get(i,x-1)+_*o.get(i,x))/l),o.set(i+1,x,(-v-h*o.get(i,x)-_*o.get(i,x-1))/l)):(w=St(-A-f*o.get(i,x-1),-S-f*o.get(i,x),j,_),o.set(i+1,x-1,w[0]),o.set(i+1,x,w[1]))),E*(d=Math.max(Math.abs(o.get(i,x-1)),Math.abs(o.get(i,x))))*d>1)for(s=i;s<=x;s++)o.set(s,x-1,o.get(s,x-1)/d),o.set(s,x,o.get(s,x)/d)}for(i=0;ib)for(s=i;s=0;s--)for(i=0;i<=b;i++){for(j=0,a=0;a<=Math.min(s,b);a++)j+=n.get(i,a)*o.get(a,s);n.set(i,s,j)}}}function St(t,e,r,n){var o,i;return Math.abs(r)>Math.abs(n)?[(t+(o=n/r)*e)/(i=r+o*n),(e-o*t)/i]:[((o=r/n)*t+e)/(i=n+o*r),(o*e-t)/i]}var jt=function(){function t(e){if(y(this,t),!(e=vt.checkMatrix(e)).isSymmetric())throw new Error("Matrix is not symmetric");var r,n,o,i=e,s=i.rows,a=new X(s,s),u=!0;for(n=0;n0),a.set(n,n,Math.sqrt(Math.max(c,0))),o=n+1;o=0;i--)for(o=0;o1&&void 0!==arguments[1]?arguments[1]:{};y(this,t),e=vt.checkMatrix(e);var n,o=r.Y,i=r.scaleScores,s=void 0!==i&&i,a=r.maxIterations,u=void 0===a?1e3:a,c=r.terminationCriteria,d=void 0===c?1e-10:c;if(o){if((o=x.isAnyArray(o)&&"number"==typeof o[0]?X.columnVector(o):vt.checkMatrix(o)).rows!==e.rows)throw new Error("Y should have the same number of rows as X");n=o.getColumnVector(0)}else n=e.getColumnVector(0);for(var h,l,f,g,v=1,p=0;pd;p++)f=(f=e.transpose().mmul(n).div(n.transpose().mmul(n).get(0,0))).div(f.norm()),h=e.mmul(f).div(f.transpose().mmul(f).get(0,0)),p>0&&(v=h.clone().sub(g).pow(2).sum()),g=h.clone(),o?(l=(l=o.transpose().mmul(h).div(h.transpose().mmul(h).get(0,0))).div(l.norm()),n=o.mmul(l).div(l.transpose().mmul(l).get(0,0))):n=h;if(o){var m=e.transpose().mmul(h).div(h.transpose().mmul(h).get(0,0));m=m.div(m.norm());var w=e.clone().sub(h.clone().mmul(m.transpose())),b=n.transpose().mmul(h).div(h.transpose().mmul(h).get(0,0)),E=o.clone().sub(h.clone().mulS(b.get(0,0)).mmul(l.transpose()));this.t=h,this.p=m.transpose(),this.w=f.transpose(),this.q=l,this.u=n,this.s=h.transpose().mmul(h),this.xResidual=w,this.yResidual=E,this.betas=b}else this.w=f.transpose(),this.s=h.transpose().mmul(h).sqrt(),this.t=s?h.clone().div(this.s.get(0,0)):h,this.xResidual=e.sub(h.mmul(f.transpose()))}));e.XA=K,e.a_=jt,e.yQ=jt,e.Hs=nt,e.Ec=Nt,e.dx=Nt,e.LU=pt,e.Rm=pt,e.y3=X,e.qK=st,e.pb=it,e.j=at,e.sO=ut,e.BZ=dt,e.EK=ct,e.Db=ht,e.Fx=lt,e.tU=ft,e.Ym=Ot,e.rs=Ot,e.QR=yt,e.TB=yt,e.oH=wt,e.Sc=wt,e.BN=rt,e.it=gt,e.$r=vt,e.QM=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=new X(t);var n=!1;if("object"!==m(e)||X.isMatrix(e)||x.isAnyArray(e)?e=new X(e):(r=e,e=t,n=!0),t.rows!==e.rows)throw new TypeError("Both matrices must have the same number of rows");var o=r,i=o.center,s=void 0===i||i,a=o.scale,u=void 0===a||a;s&&(t.center("column"),n||e.center("column")),u&&(t.scale("column"),n||e.scale("column"));for(var c=t.standardDeviation("column",{unbiased:!0}),d=n?c:e.standardDeviation("column",{unbiased:!0}),h=t.transpose().mmul(e),l=0;l1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=new X(t);var n=!1;if("object"!==m(e)||X.isMatrix(e)||x.isAnyArray(e)?e=new X(e):(r=e,e=t,n=!0),t.rows!==e.rows)throw new TypeError("Both matrices must have the same number of rows");var o=r,i=o.center,s=void 0===i||i;s&&(t=t.center("column"),n||(e=e.center("column")));for(var a=t.transpose().mmul(e),u=0;u1&&void 0!==arguments[1]&&arguments[1];return t=vt.checkMatrix(t),e?new wt(t).inverse():xt(t,X.eye(t.rows))},e.uZ=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.thresholdValue,n=void 0===r?1e-9:r,o=e.thresholdError,i=void 0===o?1e-9:o,s=(t=X.checkMatrix(t)).rows,a=new X(s,s),u=0;u1&&void 0!==arguments[1]?arguments[1]:Number.EPSILON;if((t=X.checkMatrix(t)).isEmpty())return t.transpose();for(var r=new wt(t,{autoTranspose:!0}),n=r.leftSingularVectors,o=r.rightSingularVectors,i=r.diagonal,s=0;se?i[s]=1/i[s]:i[s]=0;return o.mmul(X.diag(i).mmul(n.transpose()))},e.F1=xt,e.re=function(t,e){if(x.isAnyArray(t))return t[0]&&x.isAnyArray(t[0])?new vt(t):new gt(t,e);throw new Error("the argument is not an array")}},92546:function(t,e,r){t.exports={graphlib:r(76626),layout:r(47194),debug:r(11303),util:{time:r(53063).time,notime:r(53063).notime},version:r(11897)}},81255:function(t,e,r){"use strict";var n=r(72361),o=r(39240);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?o(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],r={},o={};function i(s){n.has(o,s)||(o[s]=!0,r[s]=!0,n.forEach(t.outEdges(s),(function(t){n.has(r,t.w)?e.push(t):i(t.w)})),delete r[s])}return n.forEach(t.nodes(),i),e}(t);n.forEach(e,(function(e){var r=t.edge(e);t.removeEdge(e),r.forwardName=e.name,r.reversed=!0,t.setEdge(e.w,e.v,r,n.uniqueId("rev"))}))},undo:function(t){n.forEach(t.edges(),(function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}}))}}},60765:function(t,e,r){var n=r(72361),o=r(53063);function i(t,e,r,n,i,s){var a={width:0,height:0,rank:s,borderType:e},u=i[e][s-1],c=o.addDummyNode(t,"border",a,r);i[e][s]=c,t.setParent(c,n),u&&t.setEdge(u,c,{weight:1})}t.exports=function(t){n.forEach(t.children(),(function e(r){var o=t.children(r),s=t.node(r);if(o.length&&n.forEach(o,e),n.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,u=s.maxRank+1;a0;--u)if(n=e[u].dequeue()){o=o.concat(a(t,e,r,n,!0));break}}return o}(r.graph,r.buckets,r.zeroIdx);return n.flatten(n.map(c,(function(e){return t.outEdges(e.v,e.w)})),!0)};var s=n.constant(1);function a(t,e,r,o,i){var s=i?[]:void 0;return n.forEach(t.inEdges(o.v),(function(n){var o=t.edge(n),a=t.node(n.v);i&&s.push({v:n.v,w:n.w}),a.out-=o,u(e,r,a)})),n.forEach(t.outEdges(o.v),(function(n){var o=t.edge(n),i=n.w,s=t.node(i);s.in-=o,u(e,r,s)})),t.removeNode(o.v),s}function u(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}},47194:function(t,e,r){"use strict";var n=r(72361),o=r(81255),i=r(27163),s=r(64505),a=r(53063).normalizeRanks,u=r(71970),c=r(53063).removeEmptyRanks,d=r(31733),h=r(60765),l=r(13257),f=r(62852),g=r(93021),v=r(53063),p=r(76626).Graph;t.exports=function(t,e){var r=e&&e.debugTiming?v.time:v.notime;r("layout",(function(){var e=r(" buildLayoutGraph",(function(){return function(t){var e=new p({multigraph:!0,compound:!0}),r=_(t.graph());return e.setGraph(n.merge({},y,k(r,m),n.pick(r,w))),n.forEach(t.nodes(),(function(r){var o=_(t.node(r));e.setNode(r,n.defaults(k(o,x),b)),e.setParent(r,t.parent(r))})),n.forEach(t.edges(),(function(r){var o=_(t.edge(r));e.setEdge(r,n.merge({},N,k(o,E),n.pick(o,M)))})),e}(t)}));r(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,n.forEach(t.edges(),(function(r){var n=t.edge(r);n.minlen*=2,"c"!==n.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?n.width+=n.labeloffset:n.height+=n.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){n.forEach(t.edges(),(function(e){if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){o.run(t)})),e(" nestingGraph.run",(function(){d.run(t)})),e(" rank",(function(){s(v.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){n.forEach(t.edges(),(function(e){var r=t.edge(e);if(r.width&&r.height){var n=t.node(e.v),o={rank:(t.node(e.w).rank-n.rank)/2+n.rank,e:e};v.addDummyNode(t,"edge-proxy",o,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){c(t)})),e(" nestingGraph.cleanup",(function(){d.cleanup(t)})),e(" normalizeRanks",(function(){a(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;n.forEach(t.nodes(),(function(r){var o=t.node(r);o.borderTop&&(o.minRank=t.node(o.borderTop).rank,o.maxRank=t.node(o.borderBottom).rank,e=n.max(e,o.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){n.forEach(t.nodes(),(function(e){var r=t.node(e);"edge-proxy"===r.dummy&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){i.run(t)})),e(" parentDummyChains",(function(){u(t)})),e(" addBorderSegments",(function(){h(t)})),e(" order",(function(){f(t)})),e(" insertSelfEdges",(function(){!function(t){var e=v.buildLayerMatrix(t);n.forEach(e,(function(e){var r=0;n.forEach(e,(function(e,o){var i=t.node(e);i.order=o+r,n.forEach(i.selfEdges,(function(e){v.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:o+ ++r,e:e.e,label:e.label},"_se")})),delete i.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){l.adjust(t)})),e(" position",(function(){g(t)})),e(" positionSelfEdges",(function(){!function(t){n.forEach(t.nodes(),(function(e){var r=t.node(e);if("selfedge"===r.dummy){var n=t.node(r.e.v),o=n.x+n.width/2,i=n.y,s=r.x-o,a=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:o+2*s/3,y:i-a},{x:o+5*s/6,y:i-a},{x:o+s,y:i},{x:o+5*s/6,y:i+a},{x:o+2*s/3,y:i+a}],r.label.x=r.x,r.label.y=r.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){n.forEach(t.nodes(),(function(e){if(t.children(e).length){var r=t.node(e),o=t.node(r.borderTop),i=t.node(r.borderBottom),s=t.node(n.last(r.borderLeft)),a=t.node(n.last(r.borderRight));r.width=Math.abs(a.x-s.x),r.height=Math.abs(i.y-o.y),r.x=s.x+r.width/2,r.y=o.y+r.height/2}})),n.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){i.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){n.forEach(t.edges(),(function(e){var r=t.edge(e);if(n.has(r,"x"))switch("l"!==r.labelpos&&"r"!==r.labelpos||(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){l.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,r=0,o=Number.POSITIVE_INFINITY,i=0,s=t.graph(),a=s.marginx||0,u=s.marginy||0;function c(t){var n=t.x,s=t.y,a=t.width,u=t.height;e=Math.min(e,n-a/2),r=Math.max(r,n+a/2),o=Math.min(o,s-u/2),i=Math.max(i,s+u/2)}n.forEach(t.nodes(),(function(e){c(t.node(e))})),n.forEach(t.edges(),(function(e){var r=t.edge(e);n.has(r,"x")&&c(r)})),e-=a,o-=u,n.forEach(t.nodes(),(function(r){var n=t.node(r);n.x-=e,n.y-=o})),n.forEach(t.edges(),(function(r){var i=t.edge(r);n.forEach(i.points,(function(t){t.x-=e,t.y-=o})),n.has(i,"x")&&(i.x-=e),n.has(i,"y")&&(i.y-=o)})),s.width=r-e+a,s.height=i-o+u}(t)})),e(" assignNodeIntersects",(function(){!function(t){n.forEach(t.edges(),(function(e){var r,n,o=t.edge(e),i=t.node(e.v),s=t.node(e.w);o.points?(r=o.points[0],n=o.points[o.points.length-1]):(o.points=[],r=s,n=i),o.points.unshift(v.intersectRect(i,r)),o.points.push(v.intersectRect(s,n))}))}(t)})),e(" reversePoints",(function(){!function(t){n.forEach(t.edges(),(function(e){var r=t.edge(e);r.reversed&&r.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){o.undo(t)}))}(e,r)})),r(" updateInputGraph",(function(){!function(t,e){n.forEach(t.nodes(),(function(r){var n=t.node(r),o=e.node(r);n&&(n.x=o.x,n.y=o.y,e.children(r).length&&(n.width=o.width,n.height=o.height))})),n.forEach(t.edges(),(function(r){var o=t.edge(r),i=e.edge(r);o.points=i.points,n.has(i,"x")&&(o.x=i.x,o.y=i.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var m=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},w=["acyclicer","ranker","rankdir","align"],x=["width","height"],b={width:0,height:0},E=["minlen","weight","width","height","labeloffset"],N={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},M=["labelpos"];function k(t,e){return n.mapValues(n.pick(t,e),Number)}function _(t){var e={};return n.forEach(t,(function(t,r){e[r.toLowerCase()]=t})),e}},72361:function(t,e,r){var n;try{n={cloneDeep:r(20250),constant:r(13503),defaults:r(28548),each:r(76934),filter:r(64725),find:r(79785),flatten:r(40151),forEach:r(99204),forIn:r(23190),has:r(99946),isUndefined:r(16513),last:r(10611),map:r(9924),mapValues:r(70642),max:r(95987),merge:r(28440),min:r(73376),minBy:r(83296),now:r(5795),pick:r(89409),range:r(60859),reduce:r(16473),sortBy:r(351),uniqueId:r(95708),values:r(81229),zipObject:r(65441)}}catch(t){}n||(n=window._),t.exports=n},31733:function(t,e,r){var n=r(72361),o=r(53063);function i(t,e,r,s,a,u,c){var d=t.children(c);if(d.length){var h=o.addBorderNode(t,"_bt"),l=o.addBorderNode(t,"_bb"),f=t.node(c);t.setParent(h,c),f.borderTop=h,t.setParent(l,c),f.borderBottom=l,n.forEach(d,(function(n){i(t,e,r,s,a,u,n);var o=t.node(n),d=o.borderTop?o.borderTop:n,f=o.borderBottom?o.borderBottom:n,g=o.borderTop?s:2*s,v=d!==f?1:a-u[c]+1;t.setEdge(h,d,{weight:g,minlen:v,nestingEdge:!0}),t.setEdge(f,l,{weight:g,minlen:v,nestingEdge:!0})})),t.parent(c)||t.setEdge(e,h,{weight:0,minlen:a+u[c]})}else c!==e&&t.setEdge(e,c,{weight:0,minlen:r})}t.exports={run:function(t){var e=o.addDummyNode(t,"root",{},"_root"),r=function(t){var e={};function r(o,i){var s=t.children(o);s&&s.length&&n.forEach(s,(function(t){r(t,i+1)})),e[o]=i}return n.forEach(t.children(),(function(t){r(t,1)})),e}(t),s=n.max(n.values(r))-1,a=2*s+1;t.graph().nestingRoot=e,n.forEach(t.edges(),(function(e){t.edge(e).minlen*=a}));var u=function(t){return n.reduce(t.edges(),(function(e,r){return e+t.edge(r).weight}),0)}(t)+1;n.forEach(t.children(),(function(n){i(t,e,a,u,s,r,n)})),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,n.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},27163:function(t,e,r){"use strict";var n=r(72361),o=r(53063);t.exports={run:function(t){t.graph().dummyChains=[],n.forEach(t.edges(),(function(e){!function(t,e){var r,n,i,s=e.v,a=t.node(s).rank,u=e.w,c=t.node(u).rank,d=e.name,h=t.edge(e),l=h.labelRank;if(c===a+1)return;for(t.removeEdge(e),i=0,++a;a0;)e%2&&(r+=u[e+1]),u[e=e-1>>1]+=t.weight;c+=t.weight*r}))),c}t.exports=function(t,e){for(var r=0,n=1;n=2),a=d.buildLayerMatrix(t);var p=i(t,a);p=t.barycenter)&&function(t,e){var r=0,n=0;t.weight&&(r+=t.barycenter*t.weight,n+=t.weight);e.weight&&(r+=e.barycenter*e.weight,n+=e.weight);t.vs=e.vs.concat(t.vs),t.barycenter=r/n,t.weight=n,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function o(e){return function(r){r.in.push(e),0==--r.indegree&&t.push(r)}}for(;t.length;){var i=t.pop();e.push(i),n.forEach(i.in.reverse(),r(i)),n.forEach(i.out,o(i))}return n.map(n.filter(e,(function(t){return!t.merged})),(function(t){return n.pick(t,["vs","i","barycenter","weight"])}))}(n.filter(r,(function(t){return!t.indegree})))}},86490:function(t,e,r){var n=r(72361),o=r(99506),i=r(45926),s=r(1349);t.exports=function t(e,r,a,u){var c=e.children(r),d=e.node(r),h=d?d.borderLeft:void 0,l=d?d.borderRight:void 0,f={};h&&(c=n.filter(c,(function(t){return t!==h&&t!==l})));var g=o(e,c);n.forEach(g,(function(r){if(e.children(r.v).length){var o=t(e,r.v,a,u);f[r.v]=o,n.has(o,"barycenter")&&(i=r,s=o,n.isUndefined(i.barycenter)?(i.barycenter=s.barycenter,i.weight=s.weight):(i.barycenter=(i.barycenter*i.weight+s.barycenter*s.weight)/(i.weight+s.weight),i.weight+=s.weight))}var i,s}));var v=i(g,a);!function(t,e){n.forEach(t,(function(t){t.vs=n.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(v,f);var p=s(v,u);if(h&&(p.vs=n.flatten([h,p.vs,l],!0),e.predecessors(h).length)){var m=e.node(e.predecessors(h)[0]),y=e.node(e.predecessors(l)[0]);n.has(p,"barycenter")||(p.barycenter=0,p.weight=0),p.barycenter=(p.barycenter*p.weight+m.order+y.order)/(p.weight+2),p.weight+=2}return p}},1349:function(t,e,r){var n=r(72361),o=r(53063);function i(t,e,r){for(var o;e.length&&(o=n.last(e)).i<=r;)e.pop(),t.push(o.vs),r++;return r}t.exports=function(t,e){var r=o.partition(t,(function(t){return n.has(t,"barycenter")})),s=r.lhs,a=n.sortBy(r.rhs,(function(t){return-t.i})),u=[],c=0,d=0,h=0;s.sort((l=!!e,function(t,e){return t.barycentere.barycenter?1:l?e.i-t.i:t.i-e.i})),h=i(u,a,h),n.forEach(s,(function(t){h+=t.vs.length,u.push(t.vs),c+=t.barycenter*t.weight,d+=t.weight,h=i(u,a,h)}));var l;var f={vs:n.flatten(u,!0)};d&&(f.barycenter=c/d,f.weight=d);return f}},71970:function(t,e,r){var n=r(72361);t.exports=function(t){var e=function(t){var e={},r=0;function o(i){var s=r;n.forEach(t.children(i),o),e[i]={low:s,lim:r++}}return n.forEach(t.children(),o),e}(t);n.forEach(t.graph().dummyChains,(function(r){for(var n=t.node(r),o=n.edgeObj,i=function(t,e,r,n){var o,i,s=[],a=[],u=Math.min(e[r].low,e[n].low),c=Math.max(e[r].lim,e[n].lim);o=r;do{o=t.parent(o),s.push(o)}while(o&&(e[o].low>u||c>e[o].lim));i=o,o=n;for(;(o=t.parent(o))!==i;)a.push(o);return{path:s.concat(a.reverse()),lca:i}}(t,e,o.v,o.w),s=i.path,a=i.lca,u=0,c=s[u],d=!0;r!==o.w;){if(n=t.node(r),d){for(;(c=s[u])!==a&&t.node(c).maxRanka)&&u(r,e,c)}))}))}return n.reduce(e,(function(e,r){var i,s=-1,a=0;return n.forEach(r,(function(n,u){if("border"===t.node(n).dummy){var c=t.predecessors(n);c.length&&(i=t.node(c[0]).order,o(r,a,u,s,i),a=u,s=i)}o(r,a,r.length,i,e.length)})),r})),r}function u(t,e,r){if(e>r){var n=e;e=r,r=n}var o=t[e];o||(t[e]=o={}),o[r]=!0}function c(t,e,r){if(e>r){var o=e;e=r,r=o}return n.has(t[e],r)}function d(t,e,r,o){var i={},s={},a={};return n.forEach(e,(function(t){n.forEach(t,(function(t,e){i[t]=t,s[t]=t,a[t]=e}))})),n.forEach(e,(function(t){var e=-1;n.forEach(t,(function(t){var u=o(t);if(u.length){u=n.sortBy(u,(function(t){return a[t]}));for(var d=(u.length-1)/2,h=Math.floor(d),l=Math.ceil(d);h<=l;++h){var f=u[h];s[t]===t&&eu.lim&&(c=u,d=!0);var h=n.filter(e.edges(),(function(e){return d===y(t,t.node(e.v),c)&&d!==y(t,t.node(e.w),c)}));return n.minBy(h,(function(t){return i(e,t)}))}function m(t,e,r,o){var i=r.v,s=r.w;t.removeEdge(i,s),t.setEdge(o.v,o.w,{}),f(t),h(t,e),function(t,e){var r=n.find(t.nodes(),(function(t){return!e.node(t).parent})),o=a(t,r);o=o.slice(1),n.forEach(o,(function(r){var n=t.node(r).parent,o=e.edge(r,n),i=!1;o||(o=e.edge(n,r),i=!0),e.node(r).rank=e.node(n).rank+(i?o.minlen:-o.minlen)}))}(t,e)}function y(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}t.exports=d,d.initLowLimValues=f,d.initCutValues=h,d.calcCutValue=l,d.leaveEdge=v,d.enterEdge=p,d.exchangeEdges=m},2416:function(t,e,r){"use strict";var n=r(72361);t.exports={longestPath:function(t){var e={};n.forEach(t.sources(),(function r(o){var i=t.node(o);if(n.has(e,o))return i.rank;e[o]=!0;var s=n.min(n.map(t.outEdges(o),(function(e){return r(e.w)-t.edge(e).minlen})));return s!==Number.POSITIVE_INFINITY&&null!=s||(s=0),i.rank=s}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},53063:function(t,e,r){"use strict";var n=r(72361),o=r(76626).Graph;function i(t,e,r,o){var i;do{i=n.uniqueId(o)}while(t.hasNode(i));return r.dummy=e,t.setNode(i,r),i}function s(t){return n.max(n.map(t.nodes(),(function(e){var r=t.node(e).rank;if(!n.isUndefined(r))return r})))}t.exports={addDummyNode:i,simplify:function(t){var e=(new o).setGraph(t.graph());return n.forEach(t.nodes(),(function(r){e.setNode(r,t.node(r))})),n.forEach(t.edges(),(function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},o=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+o.weight,minlen:Math.max(n.minlen,o.minlen)})})),e},asNonCompoundGraph:function(t){var e=new o({multigraph:t.isMultigraph()}).setGraph(t.graph());return n.forEach(t.nodes(),(function(r){t.children(r).length||e.setNode(r,t.node(r))})),n.forEach(t.edges(),(function(r){e.setEdge(r,t.edge(r))})),e},successorWeights:function(t){var e=n.map(t.nodes(),(function(e){var r={};return n.forEach(t.outEdges(e),(function(e){r[e.w]=(r[e.w]||0)+t.edge(e).weight})),r}));return n.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=n.map(t.nodes(),(function(e){var r={};return n.forEach(t.inEdges(e),(function(e){r[e.v]=(r[e.v]||0)+t.edge(e).weight})),r}));return n.zipObject(t.nodes(),e)},intersectRect:function(t,e){var r,n,o=t.x,i=t.y,s=e.x-o,a=e.y-i,u=t.width/2,c=t.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(a)*u>Math.abs(s)*c?(a<0&&(c=-c),r=c*s/a,n=c):(s<0&&(u=-u),r=u,n=u*a/s);return{x:o+r,y:i+n}},buildLayerMatrix:function(t){var e=n.map(n.range(s(t)+1),(function(){return[]}));return n.forEach(t.nodes(),(function(r){var o=t.node(r),i=o.rank;n.isUndefined(i)||(e[i][o.order]=r)})),e},normalizeRanks:function(t){var e=n.min(n.map(t.nodes(),(function(e){return t.node(e).rank})));n.forEach(t.nodes(),(function(r){var o=t.node(r);n.has(o,"rank")&&(o.rank-=e)}))},removeEmptyRanks:function(t){var e=n.min(n.map(t.nodes(),(function(e){return t.node(e).rank}))),r=[];n.forEach(t.nodes(),(function(n){var o=t.node(n).rank-e;r[o]||(r[o]=[]),r[o].push(n)}));var o=0,i=t.graph().nodeRankFactor;n.forEach(r,(function(e,r){n.isUndefined(e)&&r%i!=0?--o:o&&n.forEach(e,(function(e){t.node(e).rank+=o}))}))},addBorderNode:function(t,e,r,n){var o={width:0,height:0};arguments.length>=4&&(o.rank=r,o.order=n);return i(t,"border",o,e)},maxRank:s,partition:function(t,e){var r={lhs:[],rhs:[]};return n.forEach(t,(function(t){e(t)?r.lhs.push(t):r.rhs.push(t)})),r},time:function(t,e){var r=n.now();try{return e()}finally{console.log(t+" time: "+(n.now()-r)+"ms")}},notime:function(t,e){return e()}}},11897:function(t){t.exports="0.8.5"},75172:function(t,e,r){var n=r(89224);t.exports={Graph:n.Graph,json:r(17401),alg:r(54613),version:n.version}},91606:function(t,e,r){var n=r(95329);t.exports=function(t){var e,r={},o=[];function i(o){n.has(r,o)||(r[o]=!0,e.push(o),n.each(t.successors(o),i),n.each(t.predecessors(o),i))}return n.each(t.nodes(),(function(t){e=[],i(t),e.length&&o.push(e)})),o}},21482:function(t,e,r){var n=r(95329);function o(t,e,r,i,s,a){n.has(i,e)||(i[e]=!0,r||a.push(e),n.each(s(e),(function(e){o(t,e,r,i,s,a)})),r&&a.push(e))}t.exports=function(t,e,r){n.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),s=[],a={};return n.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);o(t,e,"post"===r,a,i,s)})),s}},40845:function(t,e,r){var n=r(13746),o=r(95329);t.exports=function(t,e,r){return o.transform(t.nodes(),(function(o,i){o[i]=n(t,i,e,r)}),{})}},13746:function(t,e,r){var n=r(95329),o=r(36614);t.exports=function(t,e,r,n){return function(t,e,r,n){var i,s,a={},u=new o,c=function(t){var e=t.v!==i?t.v:t.w,n=a[e],o=r(t),c=s.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+o);c0&&(i=u.removeMin(),(s=a[i]).distance!==Number.POSITIVE_INFINITY);)n(i).forEach(c);return a}(t,String(e),r||i,n||function(e){return t.outEdges(e)})};var i=n.constant(1)},59324:function(t,e,r){var n=r(95329),o=r(94558);t.exports=function(t){return n.filter(o(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},17600:function(t,e,r){var n=r(95329);t.exports=function(t,e,r){return function(t,e,r){var n={},o=t.nodes();return o.forEach((function(t){n[t]={},n[t][t]={distance:0},o.forEach((function(e){t!==e&&(n[t][e]={distance:Number.POSITIVE_INFINITY})})),r(t).forEach((function(r){var o=r.v===t?r.w:r.v,i=e(r);n[t][o]={distance:i,predecessor:t}}))})),o.forEach((function(t){var e=n[t];o.forEach((function(r){var i=n[r];o.forEach((function(r){var n=i[t],o=e[r],s=i[r],a=n.distance+o.distance;a0;){if(r=u.removeMin(),n.has(a,r))s.setEdge(r,a[r]);else{if(d)throw new Error("Input graph is not connected: "+t);d=!0}t.nodeEdges(r).forEach(c)}return s}},94558:function(t,e,r){var n=r(95329);t.exports=function(t){var e=0,r=[],o={},i=[];function s(a){var u=o[a]={onStack:!0,lowlink:e,index:e++};if(r.push(a),t.successors(a).forEach((function(t){n.has(o,t)?o[t].onStack&&(u.lowlink=Math.min(u.lowlink,o[t].index)):(s(t),u.lowlink=Math.min(u.lowlink,o[t].lowlink))})),u.lowlink===u.index){var c,d=[];do{c=r.pop(),o[c].onStack=!1,d.push(c)}while(a!==c);i.push(d)}}return t.nodes().forEach((function(t){n.has(o,t)||s(t)})),i}},7793:function(t,e,r){var n=r(95329);function o(t){var e={},r={},o=[];if(n.each(t.sinks(),(function s(a){if(n.has(r,a))throw new i;n.has(e,a)||(r[a]=!0,e[a]=!0,n.each(t.predecessors(a),s),delete r[a],o.push(a))})),n.size(e)!==t.nodeCount())throw new i;return o}function i(){}t.exports=o,o.CycleException=i,i.prototype=new Error},36614:function(t,e,r){var n=r(95329);function o(){this._arr=[],this._keyIndices={}}t.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},o.prototype.has=function(t){return n.has(this._keyIndices,t)},o.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(t,e){var r=this._keyIndices;if(t=String(t),!n.has(r,t)){var o=this._arr,i=o.length;return r[t]=i,o.push({key:t,priority:e}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},o.prototype.decrease=function(t,e){var r=this._keyIndices[t];if(e>this._arr[r].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[r].priority+" New: "+e);this._arr[r].priority=e,this._decrease(r)},o.prototype._heapify=function(t){var e=this._arr,r=2*t,n=r+1,o=t;r>1].prioritys){var a=i;i=s,s=a}return i+""+s+""+(n.isUndefined(o)?"\0":o)}function c(t,e,r,n){var o=""+e,i=""+r;if(!t&&o>i){var s=o;o=i,i=s}var a={v:o,w:i};return n&&(a.name=n),a}function d(t,e){return u(t,e.v,e.w,e.name)}i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return n.isFunction(t)||(t=n.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return n.keys(this._nodes)},i.prototype.sources=function(){var t=this;return n.filter(this.nodes(),(function(e){return n.isEmpty(t._in[e])}))},i.prototype.sinks=function(){var t=this;return n.filter(this.nodes(),(function(e){return n.isEmpty(t._out[e])}))},i.prototype.setNodes=function(t,e){var r=arguments,o=this;return n.each(t,(function(t){r.length>1?o.setNode(t,e):o.setNode(t)})),this},i.prototype.setNode=function(t,e){return n.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=o,this._children[t]={},this._children[o][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return n.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(n.has(this._nodes,t)){var r=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],n.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),n.each(n.keys(this._in[t]),r),delete this._in[t],delete this._preds[t],n.each(n.keys(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(n.isUndefined(e))e=o;else{for(var r=e+="";!n.isUndefined(r);r=this.parent(r))if(r===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==o)return e}},i.prototype.children=function(t){if(n.isUndefined(t)&&(t=o),this._isCompound){var e=this._children[t];if(e)return n.keys(e)}else{if(t===o)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return n.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return n.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return n.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;n.each(this._nodes,(function(r,n){t(n)&&e.setNode(n,r)})),n.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,r.edge(t))}));var o={};function i(t){var n=r.parent(t);return void 0===n||e.hasNode(n)?(o[t]=n,n):n in o?o[n]:i(n)}return this._isCompound&&n.each(e.nodes(),(function(t){e.setParent(t,i(t))})),e},i.prototype.setDefaultEdgeLabel=function(t){return n.isFunction(t)||(t=n.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return n.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var r=this,o=arguments;return n.reduce(t,(function(t,n){return o.length>1?r.setEdge(t,n,e):r.setEdge(t,n),n})),this},i.prototype.setEdge=function(){var t,e,r,o,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,r=a.name,2===arguments.length&&(o=arguments[1],i=!0)):(t=a,e=arguments[1],r=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),t=""+t,e=""+e,n.isUndefined(r)||(r=""+r);var d=u(this._isDirected,t,e,r);if(n.has(this._edgeLabels,d))return i&&(this._edgeLabels[d]=o),this;if(!n.isUndefined(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[d]=i?o:this._defaultEdgeLabelFn(t,e,r);var h=c(this._isDirected,t,e,r);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[d]=h,s(this._preds[e],t),s(this._sucs[t],e),this._in[e][d]=h,this._out[t][d]=h,this._edgeCount++,this},i.prototype.edge=function(t,e,r){var n=1===arguments.length?d(this._isDirected,arguments[0]):u(this._isDirected,t,e,r);return this._edgeLabels[n]},i.prototype.hasEdge=function(t,e,r){var o=1===arguments.length?d(this._isDirected,arguments[0]):u(this._isDirected,t,e,r);return n.has(this._edgeLabels,o)},i.prototype.removeEdge=function(t,e,r){var n=1===arguments.length?d(this._isDirected,arguments[0]):u(this._isDirected,t,e,r),o=this._edgeObjs[n];return o&&(t=o.v,e=o.w,delete this._edgeLabels[n],delete this._edgeObjs[n],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var r=this._in[t];if(r){var o=n.values(r);return e?n.filter(o,(function(t){return t.v===e})):o}},i.prototype.outEdges=function(t,e){var r=this._out[t];if(r){var o=n.values(r);return e?n.filter(o,(function(t){return t.w===e})):o}},i.prototype.nodeEdges=function(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}},89224:function(t,e,r){t.exports={Graph:r(6349),version:r(16544)}},17401:function(t,e,r){var n=r(95329),o=r(6349);function i(t){return n.map(t.nodes(),(function(e){var r=t.node(e),o=t.parent(e),i={v:e};return n.isUndefined(r)||(i.value=r),n.isUndefined(o)||(i.parent=o),i}))}function s(t){return n.map(t.edges(),(function(e){var r=t.edge(e),o={v:e.v,w:e.w};return n.isUndefined(e.name)||(o.name=e.name),n.isUndefined(r)||(o.value=r),o}))}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:i(t),edges:s(t)};n.isUndefined(t.graph())||(e.value=n.clone(t.graph()));return e},read:function(t){var e=new o(t.options).setGraph(t.value);return n.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),n.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},95329:function(t,e,r){var n;try{n={clone:r(76833),constant:r(13503),each:r(76934),filter:r(64725),has:r(99946),isArray:r(80744),isEmpty:r(61627),isFunction:r(9363),isUndefined:r(16513),keys:r(55451),map:r(9924),reduce:r(16473),size:r(40617),transform:r(91116),union:r(44065),values:r(81229)}}catch(t){}n||(n=window._),t.exports=n},16544:function(t){t.exports="2.1.8"},34634:function(t,e,r){"use strict";r.r(e),r.d(e,{isAnyArray:function(){return o}});const n=Object.prototype.toString;function o(t){const e=n.call(t);return e.endsWith("Array]")&&!e.includes("Big")}},15584:function(t,e,r){var n=r(73893)(r(33152),"DataView");t.exports=n},97288:function(t,e,r){var n=r(73893)(r(33152),"Promise");t.exports=n},23599:function(t,e,r){var n=r(73893)(r(33152),"Set");t.exports=n},98924:function(t,e,r){var n=r(52166),o=r(34776),i=r(40393);function s(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e-1}},94874:function(t){t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n0&&i(d)?r>1?t(d,r-1,i,s,a):n(a,d):s||(a[a.length]=d)}return a}},1585:function(t,e,r){var n=r(14018),o=r(55451);t.exports=function(t,e){return t&&n(t,e,o)}},89147:function(t,e,r){var n=r(1186),o=r(9171);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&re}},3251:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,r){return null!=t&&e.call(t,r)}},62348:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},17424:function(t,e,r){var n=r(51533),o=r(8373),i=r(49237);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},77295:function(t,e,r){var n=r(84412),o=r(93913);t.exports=function t(e,r,i,s,a){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,s,t,a))}},84412:function(t,e,r){var n=r(91866),o=r(50401),i=r(57710),s=r(4983),a=r(66139),u=r(80744),c=r(57835),d=r(18397),h="[object Arguments]",l="[object Array]",f="[object Object]",g=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,p,m){var y=u(t),w=u(e),x=y?l:a(t),b=w?l:a(e),E=(x=x==h?f:x)==f,N=(b=b==h?f:b)==f,M=x==b;if(M&&c(t)){if(!c(e))return!1;y=!0,E=!1}if(M&&!E)return m||(m=new n),y||d(t)?o(t,e,r,v,p,m):i(t,e,x,r,v,p,m);if(!(1&r)){var k=E&&g.call(t,"__wrapped__"),_=N&&g.call(e,"__wrapped__");if(k||_){var A=k?t.value():t,S=_?e.value():e;return m||(m=new n),p(A,S,r,v,m)}}return!!M&&(m||(m=new n),s(t,e,r,v,p,m))}},55005:function(t,e,r){var n=r(66139),o=r(93913);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},51524:function(t,e,r){var n=r(91866),o=r(77295);t.exports=function(t,e,r,i){var s=r.length,a=s,u=!i;if(null==t)return!a;for(t=Object(t);s--;){var c=r[s];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s=200){var v=e?null:a(t);if(v)return u(v);l=!1,d=s,g=new n}else g=e?[]:f;t:for(;++ce||s&&a&&c&&!u&&!d||o&&a&&c||!r&&c||!i)return 1;if(!o&&!s&&!d&&t=u?c:c*("desc"==r[o]?-1:1)}return t.index-e.index}},15168:function(t,e,r){var n=r(95378),o=r(58966);t.exports=function(t,e){return n(t,o(t),e)}},71678:function(t,e,r){var n=r(95378),o=r(66817);t.exports=function(t,e){return n(t,o(t),e)}},49164:function(t,e,r){var n=r(24665);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,s=e?i:-1,a=Object(r);(e?s--:++s-1?a[u?e[c]:c]:void 0}}},76106:function(t,e,r){var n=r(36121),o=r(8138),i=r(97341);t.exports=function(t){return function(e,r,s){return s&&"number"!=typeof s&&o(e,r,s)&&(r=s=void 0),e=i(e),void 0===r?(r=e,e=0):r=i(r),s=void 0===s?ed))return!1;var l=u.get(t),f=u.get(e);if(l&&f)return l==e&&f==t;var g=-1,v=!0,p=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++g2?e[2]:void 0;for(c&&i(e[0],e[1],c)&&(n=1);++r1&&s(t,e[0],e[1])?e=[]:r>2&&s(e[0],e[1],e[2])&&(e=[e[0]]),o(t,n(e,1),[])}));t.exports=a},4134:function(t){t.exports=function(){return[]}},97341:function(t,e,r){var n=r(59406),o=1/0;t.exports=function(t){return t?(t=n(t))===o||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},12824:function(t,e,r){var n=r(97341);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},59406:function(t,e,r){var n=r(13927),o=r(20816),i=r(45029),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=a.test(t);return r||u.test(t)?c(t.slice(2),r?2:8):s.test(t)?NaN:+t}},44140:function(t,e,r){var n=r(50230);t.exports=function(t){return null==t?"":n(t)}},91116:function(t,e,r){var n=r(74809),o=r(35024),i=r(1585),s=r(95979),a=r(49217),u=r(80744),c=r(57835),d=r(9363),h=r(20816),l=r(18397);t.exports=function(t,e,r){var f=u(t),g=f||c(t)||l(t);if(e=s(e,4),null==r){var v=t&&t.constructor;r=g?f?new v:[]:h(t)&&d(v)?o(a(t)):{}}return(g?n:i)(t,(function(t,n,o){return e(r,t,n,o)})),r}},44065:function(t,e,r){var n=r(9256),o=r(92918),i=r(29098),s=r(41590),a=o((function(t){return i(n(t,1,s,!0))}));t.exports=a},95708:function(t,e,r){var n=r(44140),o=0;t.exports=function(t){var e=++o;return n(t)+e}},81229:function(t,e,r){var n=r(20720),o=r(55451);t.exports=function(t){return null==t?[]:n(t,o(t))}},65441:function(t,e,r){var n=r(60348),o=r(94484);t.exports=function(t,e){return o(t||[],e||[],n)}},34402:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return s}});var n=r(34634);function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,n.isAnyArray)(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var r=e.fromIndex,o=void 0===r?0:r,i=e.toIndex,s=void 0===i?t.length:i;if(o<0||o>=t.length||!Number.isInteger(o))throw new Error("fromIndex must be a positive integer smaller than length");if(s<=o||s>t.length||!Number.isInteger(s))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var a=t[o],u=o+1;ua&&(a=t[u]);return a}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,n.isAnyArray)(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var r=e.fromIndex,o=void 0===r?0:r,i=e.toIndex,s=void 0===i?t.length:i;if(o<0||o>=t.length||!Number.isInteger(o))throw new Error("fromIndex must be a positive integer smaller than length");if(s<=o||s>t.length||!Number.isInteger(s))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var a=t[o],u=o+1;u1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,n.isAnyArray)(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");if(void 0!==r.output){if(!(0,n.isAnyArray)(r.output))throw new TypeError("output option must be an array if specified");e=r.output}else e=new Array(t.length);var s=i(t),a=o(t);if(s===a)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var u=r.min,c=void 0===u?r.autoMinMax?s:0:u,d=r.max,h=void 0===d?r.autoMinMax?a:1:d;if(c>=h)throw new RangeError("min option must be smaller than max option");for(var l=(h-c)/(a-s),f=0;f=0&&(r=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:r}}))}function s(t,e){for(var r,n=0,o=t.length;n0)for(var r,n,o=new Array(r),i=0;i=(s=(w+E)/2))?w=s:E=s,(f=r>=(a=(x+N)/2))?x=a:N=a,(g=n>=(u=(b+M)/2))?b=u:M=u,i=m,!(m=m[v=g<<2|f<<1|l]))return i[v]=y,t;if(c=+t._x.call(null,m.data),d=+t._y.call(null,m.data),h=+t._z.call(null,m.data),e===c&&r===d&&n===h)return y.next=m,i?i[v]=y:t._root=y,t;do{i=i?i[v]=new Array(8):t._root=new Array(8),(l=e>=(s=(w+E)/2))?w=s:E=s,(f=r>=(a=(x+N)/2))?x=a:N=a,(g=n>=(u=(b+M)/2))?b=u:M=u}while((v=g<<2|f<<1|l)==(p=(h>=u)<<2|(d>=a)<<1|c>=s));return i[p]=m,i[v]=y,t}function o(t,e,r,n,o,i,s){this.node=t,this.x0=e,this.y0=r,this.z0=n,this.x1=o,this.y1=i,this.z1=s}function i(t){return t[0]}function s(t){return t[1]}function a(t){return t[2]}function u(t,e,r,n){var o=new c(null==e?i:e,null==r?s:r,null==n?a:n,NaN,NaN,NaN,NaN,NaN,NaN);return null==t?o:o.addAll(t)}function c(t,e,r,n,o,i,s,a,u){this._x=t,this._y=e,this._z=r,this._x0=n,this._y0=o,this._z0=i,this._x1=s,this._y1=a,this._z1=u,this._root=void 0}function d(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}r.d(e,{Z:function(){return u}});var h=u.prototype=c.prototype;h.copy=function(){var t,e,r=new c(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),n=this._root;if(!n)return r;if(!n.length)return r._root=d(n),r;for(t=[{source:n,target:r._root=new Array(8)}];n=t.pop();)for(var o=0;o<8;++o)(e=n.source[o])&&(e.length?t.push({source:e,target:n.target[o]=new Array(8)}):n.target[o]=d(e));return r},h.add=function(t){const e=+this._x.call(null,t),r=+this._y.call(null,t),o=+this._z.call(null,t);return n(this.cover(e,r,o),e,r,o,t)},h.addAll=function(t){Array.isArray(t)||(t=Array.from(t));const e=t.length,r=new Float64Array(e),o=new Float64Array(e),i=new Float64Array(e);let s=1/0,a=1/0,u=1/0,c=-1/0,d=-1/0,h=-1/0;for(let n,l,f,g,v=0;vc&&(c=l),fd&&(d=f),gh&&(h=g));if(s>c||a>d||u>h)return this;this.cover(s,a,u).cover(c,d,h);for(let s=0;st||t>=s||o>e||e>=a||i>r||r>=u;)switch(d=(rm||(a=l.y0)>y||(u=l.z0)>w||(c=l.x1)=M)<<2|(e>=N)<<1|t>=E)&&(l=x[x.length-1],x[x.length-1]=x[x.length-1-f],x[x.length-1-f]=l)}else{var k=t-+this._x.call(null,b.data),_=e-+this._y.call(null,b.data),A=r-+this._z.call(null,b.data),S=k*k+_*_+A*A;if(S=(u=(m+x)/2))?m=u:x=u,(l=s>=(c=(y+b)/2))?y=c:b=c,(f=a>=(d=(w+E)/2))?w=d:E=d,e=p,!(p=p[g=f<<2|l<<1|h]))return this;if(!p.length)break;(e[g+1&7]||e[g+2&7]||e[g+3&7]||e[g+4&7]||e[g+5&7]||e[g+6&7]||e[g+7&7])&&(r=e,v=g)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(o=p.next)&&delete p.next,n?(o?n.next=o:delete n.next,this):e?(o?e[g]=o:delete e[g],(p=e[0]||e[1]||e[2]||e[3]||e[4]||e[5]||e[6]||e[7])&&p===(e[7]||e[6]||e[5]||e[4]||e[3]||e[2]||e[1]||e[0])&&!p.length&&(r?r[v]=p:this._root=p),this):(this._root=o,this)},h.removeAll=function(t){for(var e=0,r=t.length;e=(i=(v+m)/2))?v=i:m=i,(d=r>=(s=(p+y)/2))?p=s:y=s,o=f,!(f=f[h=d<<1|c]))return o[h]=g,t;if(a=+t._x.call(null,f.data),u=+t._y.call(null,f.data),e===a&&r===u)return g.next=f,o?o[h]=g:t._root=g,t;do{o=o?o[h]=new Array(4):t._root=new Array(4),(c=e>=(i=(v+m)/2))?v=i:m=i,(d=r>=(s=(p+y)/2))?p=s:y=s}while((h=d<<1|c)==(l=(u>=s)<<1|a>=i));return o[l]=f,o[h]=g,t}function o(t,e,r,n,o){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=o}function i(t){return t[0]}function s(t){return t[1]}function a(t,e,r){var n=new u(null==e?i:e,null==r?s:r,NaN,NaN,NaN,NaN);return null==t?n:n.addAll(t)}function u(t,e,r,n,o,i){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=o,this._y1=i,this._root=void 0}function c(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}r.d(e,{Z:function(){return a}});var d=a.prototype=u.prototype;d.copy=function(){var t,e,r=new u(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=c(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var o=0;o<4;++o)(e=n.source[o])&&(e.length?t.push({source:e,target:n.target[o]=new Array(4)}):n.target[o]=c(e));return r},d.add=function(t){const e=+this._x.call(null,t),r=+this._y.call(null,t);return n(this.cover(e,r),e,r,t)},d.addAll=function(t){var e,r,o,i,s=t.length,a=new Array(s),u=new Array(s),c=1/0,d=1/0,h=-1/0,l=-1/0;for(r=0;rh&&(h=o),il&&(l=i));if(c>h||d>l)return this;for(this.cover(c,d).cover(h,l),r=0;rt||t>=o||n>e||e>=i;)switch(a=(ef||(s=c.y0)>g||(a=c.x1)=y)<<1|t>=m)&&(c=v[v.length-1],v[v.length-1]=v[v.length-1-d],v[v.length-1-d]=c)}else{var w=t-+this._x.call(null,p.data),x=e-+this._y.call(null,p.data),b=w*w+x*x;if(b=(a=(g+p)/2))?g=a:p=a,(d=s>=(u=(v+m)/2))?v=u:m=u,e=f,!(f=f[h=d<<1|c]))return this;if(!f.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(r=e,l=h)}for(;f.data!==t;)if(n=f,!(f=f.next))return this;return(o=f.next)&&delete f.next,n?(o?n.next=o:delete n.next,this):e?(o?e[h]=o:delete e[h],(f=e[0]||e[1]||e[2]||e[3])&&f===(e[3]||e[2]||e[1]||e[0])&&!f.length&&(r?r[l]=f:this._root=f),this):(this._root=o,this)},d.removeAll=function(t){for(var e=0,r=t.length;e=0&&e._call.call(void 0,t),e=e._next;--i}()}finally{i=0,function(){var t,e,r=n,i=1/0;for(;r;)r._call?(i>r._time&&(i=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:n=e);o=t,w(i)}(),c=0}}function y(){var t=h.now(),e=t-u;e>1e3&&(d-=e,u=t)}function w(t){i||(s&&(s=clearTimeout(s)),t-c>24?(t<1/0&&(s=setTimeout(m,t-h.now()-d)),a&&(a=clearInterval(a))):(a||(u=h.now(),a=setInterval(y,1e3)),i=1,l(m)))}v.prototype=p.prototype={constructor:v,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?f():+r)+(null==e?0:+e),this._next||o===this||(o?o._next=this:n=this,o=this),this._call=t,this._time=r,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}}}]); \ No newline at end of file diff --git a/79817.6eb39080.async.js b/79817.6eb39080.async.js new file mode 100644 index 0000000000..bbfaea55ff --- /dev/null +++ b/79817.6eb39080.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[79817],{27666:function(e,t,n){var o=n(26390),i=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,o=new Array(e),r=0;r{i.Z.cancel(t),t=null},r}},81228:function(e,t,n){n.d(t,{Z:function(){return E}});var o=n(79545),i=n(68550),r=n(17928),l=n(7711),a=n(59301),s=n(92310),c=n.n(s),f=n(28647),u=n(55405),d=n(27666),p=n(36355),h=n(83116),g=n(37613);const v=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var m=(0,h.Z)("Affix",(e=>{const t=(0,g.TS)(e,{zIndexPopup:e.zIndexBase+10});return[v(t)]}));function k(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function x(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function y(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(C.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();C.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,i=e.getTargetFunc();if(t!==b.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!i)return;const r=e.getOffsetTop(),l=e.getOffsetBottom(),a=i();if(a){const t={status:b.None},i=k(e.placeholderNodeRef.current);if(0===i.top&&0===i.left&&0===i.width&&0===i.height)return;const s=k(a),c=x(i,s,r),f=y(i,s,l);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}):void 0!==f&&(t.affixStyle={position:"fixed",bottom:f,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:b.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,d.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,d.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),i=e.getOffsetBottom(),r=t();if(r&&e.placeholderNodeRef.current){const t=k(r),l=k(e.placeholderNodeRef.current),a=x(l,t,o),s=y(l,t,i);if(void 0!==a&&n.top===a||void 0!==s&&n.bottom===s)return}}e.prepareMeasure()})),e}return(0,i.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:w}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:i}=this.props,r=c()(e&&o,{[n]:!!e});let l=(0,u.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return a.createElement(f.Z,{onResize:this.updatePosition},a.createElement("div",Object.assign({},l,{ref:this.placeholderNodeRef}),e&&a.createElement("div",{style:t,"aria-hidden":"true"}),a.createElement("div",{className:r,ref:this.fixedNodeRef,style:e},a.createElement(f.Z,{onResize:this.updatePosition},i))))}}]),n}(a.Component);S.contextType=p.E_;var E=(0,a.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:i}=(0,a.useContext)(p.E_),r=i("affix",n),[l,s]=m(r),f=Object.assign(Object.assign({},e),{affixPrefixCls:r,rootClassName:c()(o,s)});return l(a.createElement(S,Object.assign({},f,{ref:t})))}))},79817:function(e,t,n){n.d(t,{Z:function(){return $}});var o=n(26390),i=n(92310),r=n.n(i),l=n(83794),a=n(59301),s=n(6774),c=n(13845),f=n(68031),u=n(81228),d=n(36355);var p=a.createContext(void 0);var h=e=>{const{href:t,title:n,prefixCls:o,children:i,className:l,target:s,replace:c}=e,f=a.useContext(p),{registerLink:u,unregisterLink:h,scrollTo:g,onClick:v,activeLink:m,direction:k}=f||{};a.useEffect((()=>(null==u||u(t),()=>{null==h||h(t)})),[t]);const{getPrefixCls:x}=a.useContext(d.E_),y=x("anchor",o),C=m===t,w=r()(`${y}-link`,l,{[`${y}-link-active`]:C}),b=r()(`${y}-link-title`,{[`${y}-link-title-active`]:C});return a.createElement("div",{className:w},a.createElement("a",{className:b,href:t,title:"string"==typeof n?n:"",target:s,onClick:e=>{c&&(e.preventDefault(),window.location.replace(t)),null==v||v(e,{title:n,href:t}),null==g||g(t)}},n),"horizontal"!==k?i:null)},g=n(17313),v=n(83116),m=n(37613);const k=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:i,colorPrimary:r,lineType:l,colorSplit:a}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,[t]:Object.assign(Object.assign({},(0,g.Wf)(e)),{position:"relative",paddingInlineStart:i,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${e.linkPaddingInlineStart}px 0`,"&-title":Object.assign(Object.assign({},g.vS),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${i}px ${l} ${a}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:i,backgroundColor:r,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},x=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:i}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:i}}}}};var y=(0,v.Z)("Anchor",(e=>{const{fontSize:t,fontSizeLG:n,paddingXXS:o}=e,i=(0,m.TS)(e,{holderOffsetBlock:o,anchorPaddingBlockSecondary:o/2,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[k(i),x(i)]}),(e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding})));function C(){return window}function w(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const b=/#([\S ]+)$/,S=e=>{var t;const{rootClassName:n,anchorPrefixCls:i,className:g,style:v,offsetTop:m,affix:k=!0,showInkInFixed:x=!1,children:y,items:S,direction:E="vertical",bounds:$,targetOffset:P,onClick:T,onChange:B,getContainer:N,getCurrentAnchor:z,replace:O}=e;const[R,Z]=a.useState([]),[L,I]=a.useState(null),j=a.useRef(L),A=a.useRef(null),_=a.useRef(null),U=a.useRef(!1),{direction:D,getTargetContainer:F,anchor:M}=a.useContext(d.E_),W=null!==(t=null!=N?N:F)&&void 0!==t?t:C,H=JSON.stringify(R),X=(0,l.useEvent)((e=>{R.includes(e)||Z((t=>[].concat((0,o.Z)(t),[e])))})),q=(0,l.useEvent)((e=>{R.includes(e)&&Z((t=>t.filter((t=>t!==e))))})),G=(0,l.useEvent)((e=>{if(j.current===e)return;const t="function"==typeof z?z(e):e;I(t),j.current=t,null==B||B(e)})),J=a.useCallback((()=>{if(U.current)return;const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const o=[],i=W();if(e.forEach((e=>{const r=b.exec(null==e?void 0:e.toString());if(!r)return;const l=document.getElementById(r[1]);if(l){const r=w(l,i);rt.top>e.top?t:e)).link;return""}(R,void 0!==P?P:m||0,$);G(e)}),[H,P,m]),Y=a.useCallback((e=>{G(e);const t=b.exec(e);if(!t)return;const n=document.getElementById(t[1]);if(!n)return;const o=W();let i=(0,c.Z)(o,!0)+w(n,o);i-=void 0!==P?P:m||0,U.current=!0,(0,f.Z)(i,{getContainer:W,callback(){U.current=!1}})}),[P,m]),K=r()(n,`${i}-wrapper`,{[`${i}-wrapper-horizontal`]:"horizontal"===E,[`${i}-rtl`]:"rtl"===D},g,null==M?void 0:M.className),Q=r()(i,{[`${i}-fixed`]:!k&&!x}),V=r()(`${i}-ink`,{[`${i}-ink-visible`]:L}),ee=Object.assign(Object.assign({maxHeight:m?`calc(100vh - ${m}px)`:"100vh"},null==M?void 0:M.style),v),te=e=>Array.isArray(e)?e.map((e=>a.createElement(h,Object.assign({replace:O},e,{key:e.key}),"vertical"===E&&te(e.children)))):null,ne=a.createElement("div",{ref:A,className:K,style:ee},a.createElement("div",{className:Q},a.createElement("span",{className:V,ref:_}),"items"in e?te(S):y));a.useEffect((()=>{const e=W();return J(),null==e||e.addEventListener("scroll",J),()=>{null==e||e.removeEventListener("scroll",J)}}),[H]),a.useEffect((()=>{"function"==typeof z&&G(z(j.current||""))}),[z]),a.useEffect((()=>{(()=>{var e;const t=null===(e=A.current)||void 0===e?void 0:e.querySelector(`.${i}-link-title-active`);if(t&&_.current){const{style:e}=_.current,n="horizontal"===E;e.top=n?"":`${t.offsetTop+t.clientHeight/2}px`,e.height=n?"":`${t.clientHeight}px`,e.left=n?`${t.offsetLeft}px`:"",e.width=n?`${t.clientWidth}px`:"",n&&(0,s.Z)(t,{scrollMode:"if-needed",block:"nearest"})}})()}),[E,z,H,L]);const oe=a.useMemo((()=>({registerLink:X,unregisterLink:q,scrollTo:Y,activeLink:L,onClick:T,direction:E})),[L,T,Y,E]);return a.createElement(p.Provider,{value:oe},k?a.createElement(u.Z,{offsetTop:m,target:W},ne):ne)};const E=e=>{const{prefixCls:t,rootClassName:n}=e,{getPrefixCls:o}=a.useContext(d.E_),i=o("anchor",t),[l,s]=y(i);return l(a.createElement(S,Object.assign({},e,{rootClassName:r()(s,n),anchorPrefixCls:i})))};E.Link=h;var $=E}}]); \ No newline at end of file diff --git a/79817.fbe0a68b.async.js b/79817.fbe0a68b.async.js deleted file mode 100644 index 11b1769f8c..0000000000 --- a/79817.fbe0a68b.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[79817],{27666:function(e,t,n){var o=n(26390),i=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,o=new Array(e),r=0;r{i.Z.cancel(t),t=null},r}},81228:function(e,t,n){n.d(t,{Z:function(){return E}});var o=n(79545),i=n(68550),r=n(17928),l=n(99487),a=n(59301),s=n(92310),c=n.n(s),f=n(28647),u=n(55405),d=n(27666),p=n(36355),h=n(83116),g=n(37613);const v=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var m=(0,h.Z)("Affix",(e=>{const t=(0,g.TS)(e,{zIndexPopup:e.zIndexBase+10});return[v(t)]}));function k(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function x(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function y(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(C.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();C.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,i=e.getTargetFunc();if(t!==b.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!i)return;const r=e.getOffsetTop(),l=e.getOffsetBottom(),a=i();if(a){const t={status:b.None},i=k(e.placeholderNodeRef.current);if(0===i.top&&0===i.left&&0===i.width&&0===i.height)return;const s=k(a),c=x(i,s,r),f=y(i,s,l);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}):void 0!==f&&(t.affixStyle={position:"fixed",bottom:f,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:b.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,d.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,d.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),i=e.getOffsetBottom(),r=t();if(r&&e.placeholderNodeRef.current){const t=k(r),l=k(e.placeholderNodeRef.current),a=x(l,t,o),s=y(l,t,i);if(void 0!==a&&n.top===a||void 0!==s&&n.bottom===s)return}}e.prepareMeasure()})),e}return(0,i.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:w}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:i}=this.props,r=c()(e&&o,{[n]:!!e});let l=(0,u.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return a.createElement(f.Z,{onResize:this.updatePosition},a.createElement("div",Object.assign({},l,{ref:this.placeholderNodeRef}),e&&a.createElement("div",{style:t,"aria-hidden":"true"}),a.createElement("div",{className:r,ref:this.fixedNodeRef,style:e},a.createElement(f.Z,{onResize:this.updatePosition},i))))}}]),n}(a.Component);S.contextType=p.E_;var E=(0,a.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:i}=(0,a.useContext)(p.E_),r=i("affix",n),[l,s]=m(r),f=Object.assign(Object.assign({},e),{affixPrefixCls:r,rootClassName:c()(o,s)});return l(a.createElement(S,Object.assign({},f,{ref:t})))}))},79817:function(e,t,n){n.d(t,{Z:function(){return $}});var o=n(26390),i=n(92310),r=n.n(i),l=n(83794),a=n(59301),s=n(6774),c=n(13845),f=n(68031),u=n(81228),d=n(36355);var p=a.createContext(void 0);var h=e=>{const{href:t,title:n,prefixCls:o,children:i,className:l,target:s,replace:c}=e,f=a.useContext(p),{registerLink:u,unregisterLink:h,scrollTo:g,onClick:v,activeLink:m,direction:k}=f||{};a.useEffect((()=>(null==u||u(t),()=>{null==h||h(t)})),[t]);const{getPrefixCls:x}=a.useContext(d.E_),y=x("anchor",o),C=m===t,w=r()(`${y}-link`,l,{[`${y}-link-active`]:C}),b=r()(`${y}-link-title`,{[`${y}-link-title-active`]:C});return a.createElement("div",{className:w},a.createElement("a",{className:b,href:t,title:"string"==typeof n?n:"",target:s,onClick:e=>{c&&(e.preventDefault(),window.location.replace(t)),null==v||v(e,{title:n,href:t}),null==g||g(t)}},n),"horizontal"!==k?i:null)},g=n(17313),v=n(83116),m=n(37613);const k=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:i,colorPrimary:r,lineType:l,colorSplit:a}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,[t]:Object.assign(Object.assign({},(0,g.Wf)(e)),{position:"relative",paddingInlineStart:i,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${e.linkPaddingInlineStart}px 0`,"&-title":Object.assign(Object.assign({},g.vS),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${i}px ${l} ${a}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:i,backgroundColor:r,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},x=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:i}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:i}}}}};var y=(0,v.Z)("Anchor",(e=>{const{fontSize:t,fontSizeLG:n,paddingXXS:o}=e,i=(0,m.TS)(e,{holderOffsetBlock:o,anchorPaddingBlockSecondary:o/2,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[k(i),x(i)]}),(e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding})));function C(){return window}function w(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const b=/#([\S ]+)$/,S=e=>{var t;const{rootClassName:n,anchorPrefixCls:i,className:g,style:v,offsetTop:m,affix:k=!0,showInkInFixed:x=!1,children:y,items:S,direction:E="vertical",bounds:$,targetOffset:P,onClick:T,onChange:B,getContainer:N,getCurrentAnchor:z,replace:O}=e;const[R,Z]=a.useState([]),[L,I]=a.useState(null),j=a.useRef(L),A=a.useRef(null),_=a.useRef(null),U=a.useRef(!1),{direction:D,getTargetContainer:F,anchor:M}=a.useContext(d.E_),W=null!==(t=null!=N?N:F)&&void 0!==t?t:C,H=JSON.stringify(R),X=(0,l.useEvent)((e=>{R.includes(e)||Z((t=>[].concat((0,o.Z)(t),[e])))})),q=(0,l.useEvent)((e=>{R.includes(e)&&Z((t=>t.filter((t=>t!==e))))})),G=(0,l.useEvent)((e=>{if(j.current===e)return;const t="function"==typeof z?z(e):e;I(t),j.current=t,null==B||B(e)})),J=a.useCallback((()=>{if(U.current)return;const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const o=[],i=W();if(e.forEach((e=>{const r=b.exec(null==e?void 0:e.toString());if(!r)return;const l=document.getElementById(r[1]);if(l){const r=w(l,i);rt.top>e.top?t:e)).link;return""}(R,void 0!==P?P:m||0,$);G(e)}),[H,P,m]),Y=a.useCallback((e=>{G(e);const t=b.exec(e);if(!t)return;const n=document.getElementById(t[1]);if(!n)return;const o=W();let i=(0,c.Z)(o,!0)+w(n,o);i-=void 0!==P?P:m||0,U.current=!0,(0,f.Z)(i,{getContainer:W,callback(){U.current=!1}})}),[P,m]),K=r()(n,`${i}-wrapper`,{[`${i}-wrapper-horizontal`]:"horizontal"===E,[`${i}-rtl`]:"rtl"===D},g,null==M?void 0:M.className),Q=r()(i,{[`${i}-fixed`]:!k&&!x}),V=r()(`${i}-ink`,{[`${i}-ink-visible`]:L}),ee=Object.assign(Object.assign({maxHeight:m?`calc(100vh - ${m}px)`:"100vh"},null==M?void 0:M.style),v),te=e=>Array.isArray(e)?e.map((e=>a.createElement(h,Object.assign({replace:O},e,{key:e.key}),"vertical"===E&&te(e.children)))):null,ne=a.createElement("div",{ref:A,className:K,style:ee},a.createElement("div",{className:Q},a.createElement("span",{className:V,ref:_}),"items"in e?te(S):y));a.useEffect((()=>{const e=W();return J(),null==e||e.addEventListener("scroll",J),()=>{null==e||e.removeEventListener("scroll",J)}}),[H]),a.useEffect((()=>{"function"==typeof z&&G(z(j.current||""))}),[z]),a.useEffect((()=>{(()=>{var e;const t=null===(e=A.current)||void 0===e?void 0:e.querySelector(`.${i}-link-title-active`);if(t&&_.current){const{style:e}=_.current,n="horizontal"===E;e.top=n?"":`${t.offsetTop+t.clientHeight/2}px`,e.height=n?"":`${t.clientHeight}px`,e.left=n?`${t.offsetLeft}px`:"",e.width=n?`${t.clientWidth}px`:"",n&&(0,s.Z)(t,{scrollMode:"if-needed",block:"nearest"})}})()}),[E,z,H,L]);const oe=a.useMemo((()=>({registerLink:X,unregisterLink:q,scrollTo:Y,activeLink:L,onClick:T,direction:E})),[L,T,Y,E]);return a.createElement(p.Provider,{value:oe},k?a.createElement(u.Z,{offsetTop:m,target:W},ne):ne)};const E=e=>{const{prefixCls:t,rootClassName:n}=e,{getPrefixCls:o}=a.useContext(d.E_),i=o("anchor",t),[l,s]=y(i);return l(a.createElement(S,Object.assign({},e,{rootClassName:r()(s,n),anchorPrefixCls:i})))};E.Link=h;var $=E}}]); \ No newline at end of file diff --git a/80699.38fe1ede.async.js b/80699.38fe1ede.async.js new file mode 100644 index 0000000000..6d39a9dd98 --- /dev/null +++ b/80699.38fe1ede.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[80699,87308,13488],{73374:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(5891),r=n(59301),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"},l=n(22589),a=function(e,t){return r.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(a)},680:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(5891),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},l=n(22589),a=function(e,t){return r.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(a)},60186:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(5891),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},l=n(22589),a=function(e,t){return r.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(a)},27666:function(e,t,n){"use strict";var o=n(26390),r=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},i=function(){if(null==t){for(var e=arguments.length,o=new Array(e),i=0;i{r.Z.cancel(t),t=null},i}},81228:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var o=n(79545),r=n(68550),i=n(17928),l=n(7711),a=n(59301),s=n(92310),c=n.n(s),d=n(28647),u=n(55405),p=n(27666),f=n(36355),h=n(83116),g=n(37613);const m=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var v=(0,h.Z)("Affix",(e=>{const t=(0,g.TS)(e,{zIndexPopup:e.zIndexBase+10});return[m(t)]}));function b(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function y(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function x(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(w.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();w.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,r=e.getTargetFunc();if(t!==S.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!r)return;const i=e.getOffsetTop(),l=e.getOffsetBottom(),a=r();if(a){const t={status:S.None},r=b(e.placeholderNodeRef.current);if(0===r.top&&0===r.left&&0===r.width&&0===r.height)return;const s=b(a),c=y(r,s,i),d=x(r,s,l);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}):void 0!==d&&(t.affixStyle={position:"fixed",bottom:d,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:S.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),r=e.getOffsetBottom(),i=t();if(i&&e.placeholderNodeRef.current){const t=b(i),l=b(e.placeholderNodeRef.current),a=y(l,t,o),s=x(l,t,r);if(void 0!==a&&n.top===a||void 0!==s&&n.bottom===s)return}}e.prepareMeasure()})),e}return(0,r.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:O}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:r}=this.props,i=c()(e&&o,{[n]:!!e});let l=(0,u.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return a.createElement(d.Z,{onResize:this.updatePosition},a.createElement("div",Object.assign({},l,{ref:this.placeholderNodeRef}),e&&a.createElement("div",{style:t,"aria-hidden":"true"}),a.createElement("div",{className:i,ref:this.fixedNodeRef,style:e},a.createElement(d.Z,{onResize:this.updatePosition},r))))}}]),n}(a.Component);E.contextType=f.E_;var k=(0,a.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:r}=(0,a.useContext)(f.E_),i=r("affix",n),[l,s]=v(i),d=Object.assign(Object.assign({},e),{affixPrefixCls:i,rootClassName:c()(o,s)});return l(a.createElement(E,Object.assign({},d,{ref:t})))}))},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var o=n(92310),r=n.n(o),i=n(59301),l=n(36355),a=n(17313),s=n(83116),c=n(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r,textPaddingInline:i,orientationMargin:l,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,a.Wf)(e)),{borderBlockStart:`${r}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*l+"%"},"&::after":{width:100-100*l+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*l+"%"},"&::after":{width:100*l+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n,divider:o}=i.useContext(l.E_),{prefixCls:a,type:s="horizontal",orientation:c="center",orientationMargin:d,className:f,rootClassName:h,children:g,dashed:m,plain:v,style:b}=e,y=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",a),[w,O]=u(x),S=c.length>0?`-${c}`:c,E=!!g,k="left"===c&&null!=d,C="right"===c&&null!=d,j=r()(x,null==o?void 0:o.className,O,`${x}-${s}`,{[`${x}-with-text`]:E,[`${x}-with-text${S}`]:E,[`${x}-dashed`]:!!m,[`${x}-plain`]:!!v,[`${x}-rtl`]:"rtl"===n,[`${x}-no-default-orientation-margin-left`]:k,[`${x}-no-default-orientation-margin-right`]:C},f,h),P=i.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),$=Object.assign(Object.assign({},k&&{marginLeft:P}),C&&{marginRight:P});return w(i.createElement("div",Object.assign({className:j,style:Object.assign(Object.assign({},null==o?void 0:o.style),b)},y,{role:"separator"}),g&&"vertical"!==s&&i.createElement("span",{className:`${x}-inner-text`,style:$},g)))}},87308:function(e,t,n){"use strict";n.d(t,{Z:function(){return he}});var o=n(59301),r=n(27385),i=n(73374),l=n(5891),a={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"},s=n(22589),c=function(e,t){return o.createElement(s.Z,(0,l.Z)({},e,{ref:t,icon:a}))};var d=o.forwardRef(c),u=n(92310),p=n.n(u),f=n(25769),h=n.n(f),g=n(28647),m=n(75440),v=n(19171),b=n(71366),y=n(55405),x=n(25629),w=n(28254),O=n(20287),S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{style:n,noStyle:r,disabled:i}=e,l=S(e,["style","noStyle","disabled"]);let a={};return r||(a=Object.assign({},E)),i&&(a.pointerEvents="none"),a=Object.assign(Object.assign({},a),n),o.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},l,{onKeyDown:e=>{const{keyCode:t}=e;t===O.Z.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:o}=e;n===O.Z.ENTER&&o&&o()},style:a}))})),C=n(36355),j=n(9763),P=n(6848),$={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"},L=function(e,t){return o.createElement(s.Z,(0,l.Z)({},e,{ref:t,icon:$}))};var z=o.forwardRef(L),T=n(92343),M=n(1643),R=n(15969),Z=n(83116),N=n(88453);const H=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,o)=>{const{titleMarginBottom:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},I=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},(0,R.N)(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},B=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:N.gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),W=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-o,marginBottom:`calc(1em - ${o}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},D=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),_=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},H(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),B(e)),I(e)),{[`\n ${t}-expand,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},(0,R.N)(e)),{marginInlineStart:e.marginXXS})}),W(e)),D(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}};var A=(0,Z.Z)("Typography",(e=>[_(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));var F=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:l,maxLength:a,autoSize:s=!0,value:c,onSave:d,onCancel:u,onEnd:f,component:h,enterIcon:g=o.createElement(z,null)}=e,m=o.useRef(null),v=o.useRef(!1),b=o.useRef(),[y,x]=o.useState(c);o.useEffect((()=>{x(c)}),[c]),o.useEffect((()=>{if(m.current&&m.current.resizableTextArea){const{textArea:e}=m.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const w=()=>{d(y.trim())},S=h?`${t}-${h}`:"",[E,k]=A(t),C=p()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===l},r,S,k);return E(o.createElement("div",{className:C,style:i},o.createElement(M.Z,{ref:m,maxLength:a,value:y,onChange:e=>{let{target:t}=e;x(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;v.current||(b.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;b.current!==t||v.current||n||o||r||i||(t===O.Z.ENTER?(w(),null==f||f()):t===O.Z.ESC&&u())},onCompositionStart:()=>{v.current=!0},onCompositionEnd:()=>{v.current=!1},onBlur:()=>{w()},"aria-label":n,rows:1,autoSize:s}),null!==g?(0,T.Tm)(g,{className:`${t}-edit-content-confirm`}):null))},U=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,component:r="article",className:i,rootClassName:l,setContentRef:a,children:s,direction:c,style:d}=e,u=U(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:h,typography:g}=o.useContext(C.E_),m=null!=c?c:h;let v=t;a&&(v=(0,x.sQ)(t,a));const b=f("typography",n),[y,w]=A(b),O=p()(b,null==g?void 0:g.className,{[`${b}-rtl`]:"rtl"===m},i,l,w),S=Object.assign(Object.assign({},null==g?void 0:g.style),d);return y(o.createElement(r,Object.assign({className:O,style:S,ref:v},u),s))}));var G=V;function K(e,t){return o.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]}),[e])}var X=(e,t)=>{const n=o.useRef(!1);o.useEffect((()=>{n.current?e():n.current=!0}),t)};function q(e){const t=typeof e;return"string"===t||"number"===t}function Y(e,t){let n=0;const o=[];for(let r=0;rt){const e=t-n;return o.push(String(i).slice(0,e)),o}o.push(i),n=l}return e}var Q=e=>{let{enabledMeasure:t,children:n,text:r,width:i,fontSize:l,rows:a,onEllipsis:s}=e;const[[c,d,u],p]=o.useState([0,0,0]),[f,h]=o.useState(0),[g,b]=o.useState(0),[y,x]=o.useState(0),w=o.useRef(null),O=o.useRef(null),S=o.useMemo((()=>(0,m.Z)(r)),[r]),E=o.useMemo((()=>function(e){let t=0;return e.forEach((e=>{q(e)?t+=String(e).length:t+=1})),t}(S)),[S]),k=o.useMemo((()=>t&&3===g?n(Y(S,d),d{t&&i&&l&&E&&(b(1),p([0,Math.ceil(E/2),E]))}),[t,i,l,r,E,a]),(0,v.Z)((()=>{var e;1===g&&x((null===(e=w.current)||void 0===e?void 0:e.offsetHeight)||0)}),[g]),(0,v.Z)((()=>{var e,t;if(y)if(1===g){((null===(e=O.current)||void 0===e?void 0:e.offsetHeight)||0)<=a*y?(b(4),s(!1)):b(2)}else if(2===g)if(c!==u){const e=(null===(t=O.current)||void 0===t?void 0:t.offsetHeight)||0;let n=c,o=u;c===u-1?o=c:e<=a*y?n=d:o=d;const r=Math.ceil((n+o)/2);p([n,r,o])}else b(3),h(d),s(!0)}),[g,c,u,a,y]);const C={width:i,whiteSpace:"normal",margin:0,padding:0},j=(e,t,n)=>o.createElement("span",{"aria-hidden":!0,ref:t,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:2*Math.floor(l/2)},n)},e);return o.createElement(o.Fragment,null,k,t&&3!==g&&4!==g&&o.createElement(o.Fragment,null,j("lg",w,{wordBreak:"keep-all",whiteSpace:"nowrap"}),1===g?j(n(S,!1),O,C):((e,t)=>{const o=Y(S,e);return j(n(o,!0),t,C)})(d,O)))};var J=e=>{let{enabledEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return(null==i?void 0:i.title)&&t?o.createElement(P.Z,Object.assign({open:!!n&&void 0},i),r):r},ee=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n,l,a;const{prefixCls:s,className:c,style:u,type:f,disabled:O,children:S,ellipsis:E,editable:$,copyable:L,component:z,title:T}=e,M=ee(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:R,direction:Z}=o.useContext(C.E_),[N]=(0,j.Z)("Text"),H=o.useRef(null),I=o.useRef(null),B=R("typography",s),W=(0,y.Z)(M,["mark","code","delete","underline","strong","keyboard","italic"]),[D,_]=K($),[A,U]=(0,b.Z)(!1,{value:_.editing}),{triggerType:V=["icon"]}=_,q=e=>{var t;e&&(null===(t=_.onStart)||void 0===t||t.call(_)),U(e)};X((()=>{var e;A||null===(e=I.current)||void 0===e||e.focus()}),[A]);const Y=e=>{null==e||e.preventDefault(),q(!0)},oe=e=>{var t;null===(t=_.onChange)||void 0===t||t.call(_,e),q(!1)},re=()=>{var e;null===(e=_.onCancel)||void 0===e||e.call(_),q(!1)},[ie,le]=K(L),[ae,se]=o.useState(!1),ce=o.useRef(null),de={};le.format&&(de.format=le.format);const ue=()=>{ce.current&&clearTimeout(ce.current)},pe=e=>{var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),h()(le.text||String(S)||"",de),se(!0),ue(),ce.current=setTimeout((()=>{se(!1)}),3e3),null===(t=le.onCopy)||void 0===t||t.call(le,e)};o.useEffect((()=>ue),[]);const[fe,he]=o.useState(!1),[ge,me]=o.useState(!1),[ve,be]=o.useState(!1),[ye,xe]=o.useState(!1),[we,Oe]=o.useState(!1),[Se,Ee]=o.useState(!0),[ke,Ce]=K(E,{expandable:!1}),je=ke&&!ve,{rows:Pe=1}=Ce,$e=o.useMemo((()=>!je||void 0!==Ce.suffix||Ce.onEllipsis||Ce.expandable||D||ie),[je,Ce,D,ie]);(0,v.Z)((()=>{ke&&!$e&&(he((0,w.G)("webkitLineClamp")),me((0,w.G)("textOverflow")))}),[$e,ke]);const Le=o.useMemo((()=>!$e&&(1===Pe?ge:fe)),[$e,ge,fe]),ze=je&&(Le?we:ye),Te=je&&1===Pe&&Le,Me=je&&Pe>1&&Le,Re=e=>{var t;be(!0),null===(t=Ce.onExpand)||void 0===t||t.call(Ce,e)},[Ze,Ne]=o.useState(0),[He,Ie]=o.useState(0),Be=e=>{var t;xe(e),ye!==e&&(null===(t=Ce.onEllipsis)||void 0===t||t.call(Ce,e))};o.useEffect((()=>{const e=H.current;if(ke&&Le&&e){const t=Me?e.offsetHeight{const e=H.current;if("undefined"==typeof IntersectionObserver||!e||!Le||!je)return;const t=new IntersectionObserver((()=>{Ee(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[Le,je]);let We={};We=!0===Ce.tooltip?{title:null!==(n=_.text)&&void 0!==n?n:S}:o.isValidElement(Ce.tooltip)?{title:Ce.tooltip}:"object"==typeof Ce.tooltip?Object.assign({title:null!==(l=_.text)&&void 0!==l?l:S},Ce.tooltip):{title:Ce.tooltip};const De=o.useMemo((()=>{const e=e=>["string","number"].includes(typeof e);if(ke&&!Le)return e(_.text)?_.text:e(S)?S:e(T)?T:e(We.title)?We.title:void 0}),[ke,Le,T,We.title,ze]);if(A)return o.createElement(F,{value:null!==(a=_.text)&&void 0!==a?a:"string"==typeof S?S:"",onSave:oe,onCancel:re,onEnd:_.onEnd,prefixCls:B,className:c,style:u,direction:Z,component:z,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});const _e=()=>{const{expandable:e,symbol:t}=Ce;if(!e)return null;let n;return n=t||(null==N?void 0:N.expand),o.createElement("a",{key:"expand",className:`${B}-expand`,onClick:Re,"aria-label":null==N?void 0:N.expand},n)},Ae=()=>{if(!D)return;const{icon:e,tooltip:t}=_,n=(0,m.Z)(t)[0]||(null==N?void 0:N.edit),r="string"==typeof n?n:"";return V.includes("icon")?o.createElement(P.Z,{key:"edit",title:!1===t?"":n},o.createElement(k,{ref:I,className:`${B}-edit`,onClick:Y,"aria-label":r},e||o.createElement(d,{role:"button"}))):null},Fe=()=>{if(!ie)return;const{tooltips:e,icon:t}=le,n=ne(e),l=ne(t),a=ae?te(n[1],null==N?void 0:N.copied):te(n[0],null==N?void 0:N.copy),s=ae?null==N?void 0:N.copied:null==N?void 0:N.copy,c="string"==typeof a?a:s;return o.createElement(P.Z,{key:"copy",title:a},o.createElement(k,{className:p()(`${B}-copy`,ae&&`${B}-copy-success`),onClick:pe,"aria-label":c},ae?te(l[1],o.createElement(r.Z,null),!0):te(l[0],o.createElement(i.Z,null),!0)))};return o.createElement(g.Z,{onResize:(e,t)=>{let{offsetWidth:n}=e;var o;Ne(n),Ie(parseInt(null===(o=window.getComputedStyle)||void 0===o?void 0:o.call(window,t).fontSize,10)||0)},disabled:!je||Le},(n=>o.createElement(J,{tooltipProps:We,enabledEllipsis:je,isEllipsis:ze},o.createElement(G,Object.assign({className:p()({[`${B}-${f}`]:f,[`${B}-disabled`]:O,[`${B}-ellipsis`]:ke,[`${B}-single-line`]:je&&1===Pe,[`${B}-ellipsis-single-line`]:Te,[`${B}-ellipsis-multiple-line`]:Me},c),prefixCls:s,style:Object.assign(Object.assign({},u),{WebkitLineClamp:Me?Pe:void 0}),component:z,ref:(0,x.sQ)(n,H,t),direction:Z,onClick:V.includes("text")?Y:void 0,"aria-label":null==De?void 0:De.toString(),title:T},W),o.createElement(Q,{enabledMeasure:je&&!Le,text:S,rows:Pe,width:Ze,fontSize:He,onEllipsis:Be},((t,n)=>{let r=t;t.length&&n&&De&&(r=o.createElement("span",{key:"show-content","aria-hidden":!0},r));const i=function(e,t){let{mark:n,code:r,underline:i,delete:l,strong:a,keyboard:s,italic:c}=e,d=t;function u(e,t){t&&(d=o.createElement(e,{},d))}return u("strong",a),u("u",i),u("del",l),u("code",r),u("mark",n),u("kbd",s),u("i",c),d}(e,o.createElement(o.Fragment,null,r,(e=>{return[e&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),Ce.suffix,(t=e,[t&&_e(),Ae(),Fe()])];var t})(n)));return i}))))))})),re=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var{ellipsis:n,rel:r}=e,i=re(e,["ellipsis","rel"]);const l=Object.assign(Object.assign({},i),{rel:void 0===r&&"_blank"===i.target?"noopener noreferrer":r});return delete l.navigate,o.createElement(oe,Object.assign({},l,{ref:t,ellipsis:!!n,component:"a"}))}));var le=o.forwardRef(((e,t)=>o.createElement(oe,Object.assign({ref:t},e,{component:"div"})))),ae=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var{ellipsis:n}=e,r=ae(e,["ellipsis"]);const i=o.useMemo((()=>n&&"object"==typeof n?(0,y.Z)(n,["expandable","rows"]):n),[n]);return o.createElement(oe,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))};var ce=o.forwardRef(se),de=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{level:n=1}=e,r=de(e,["level"]);let i;return i=ue.includes(n)?`h${n}`:"h1",o.createElement(oe,Object.assign({ref:t},r,{component:i}))}));const fe=G;fe.Text=ce,fe.Link=ie,fe.Title=pe,fe.Paragraph=le;var he=fe},51581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,s&&s(t)};var d=[n];return r&&(a?l?d.unshift(a):d.push(a):this.defaultLoader&&(l?d.unshift(this.defaultLoader):d.push(this.defaultLoader))),i.default.createElement(o,c,d)}}]),t}(r.Component);s.propTypes={children:l.default.node.isRequired,element:l.default.node,hasMore:l.default.bool,initialLoad:l.default.bool,isReverse:l.default.bool,loader:l.default.node,loadMore:l.default.func.isRequired,pageStart:l.default.number,ref:l.default.func,getScrollParent:l.default.func,threshold:l.default.number,useCapture:l.default.bool,useWindow:l.default.bool},s.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=s,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)}}]); \ No newline at end of file diff --git a/80699.eefe573d.async.js b/80699.eefe573d.async.js deleted file mode 100644 index cf9d9c8d2e..0000000000 --- a/80699.eefe573d.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[80699,87308,13488],{73374:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(5891),r=n(59301),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"},l=n(22589),a=function(e,t){return r.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(a)},680:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(5891),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},l=n(22589),a=function(e,t){return r.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(a)},60186:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(5891),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},l=n(22589),a=function(e,t){return r.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(a)},27666:function(e,t,n){"use strict";var o=n(26390),r=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},i=function(){if(null==t){for(var e=arguments.length,o=new Array(e),i=0;i{r.Z.cancel(t),t=null},i}},81228:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var o=n(79545),r=n(68550),i=n(17928),l=n(99487),a=n(59301),s=n(92310),c=n.n(s),d=n(28647),u=n(55405),p=n(27666),f=n(36355),h=n(83116),g=n(37613);const m=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var v=(0,h.Z)("Affix",(e=>{const t=(0,g.TS)(e,{zIndexPopup:e.zIndexBase+10});return[m(t)]}));function b(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function y(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function x(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(w.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();w.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,r=e.getTargetFunc();if(t!==S.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!r)return;const i=e.getOffsetTop(),l=e.getOffsetBottom(),a=r();if(a){const t={status:S.None},r=b(e.placeholderNodeRef.current);if(0===r.top&&0===r.left&&0===r.width&&0===r.height)return;const s=b(a),c=y(r,s,i),d=x(r,s,l);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}):void 0!==d&&(t.affixStyle={position:"fixed",bottom:d,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:S.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),r=e.getOffsetBottom(),i=t();if(i&&e.placeholderNodeRef.current){const t=b(i),l=b(e.placeholderNodeRef.current),a=y(l,t,o),s=x(l,t,r);if(void 0!==a&&n.top===a||void 0!==s&&n.bottom===s)return}}e.prepareMeasure()})),e}return(0,r.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:O}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:r}=this.props,i=c()(e&&o,{[n]:!!e});let l=(0,u.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return a.createElement(d.Z,{onResize:this.updatePosition},a.createElement("div",Object.assign({},l,{ref:this.placeholderNodeRef}),e&&a.createElement("div",{style:t,"aria-hidden":"true"}),a.createElement("div",{className:i,ref:this.fixedNodeRef,style:e},a.createElement(d.Z,{onResize:this.updatePosition},r))))}}]),n}(a.Component);E.contextType=f.E_;var k=(0,a.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:r}=(0,a.useContext)(f.E_),i=r("affix",n),[l,s]=v(i),d=Object.assign(Object.assign({},e),{affixPrefixCls:i,rootClassName:c()(o,s)});return l(a.createElement(E,Object.assign({},d,{ref:t})))}))},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var o=n(92310),r=n.n(o),i=n(59301),l=n(36355),a=n(17313),s=n(83116),c=n(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r,textPaddingInline:i,orientationMargin:l,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,a.Wf)(e)),{borderBlockStart:`${r}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*l+"%"},"&::after":{width:100-100*l+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*l+"%"},"&::after":{width:100*l+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n,divider:o}=i.useContext(l.E_),{prefixCls:a,type:s="horizontal",orientation:c="center",orientationMargin:d,className:f,rootClassName:h,children:g,dashed:m,plain:v,style:b}=e,y=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",a),[w,O]=u(x),S=c.length>0?`-${c}`:c,E=!!g,k="left"===c&&null!=d,C="right"===c&&null!=d,j=r()(x,null==o?void 0:o.className,O,`${x}-${s}`,{[`${x}-with-text`]:E,[`${x}-with-text${S}`]:E,[`${x}-dashed`]:!!m,[`${x}-plain`]:!!v,[`${x}-rtl`]:"rtl"===n,[`${x}-no-default-orientation-margin-left`]:k,[`${x}-no-default-orientation-margin-right`]:C},f,h),P=i.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),$=Object.assign(Object.assign({},k&&{marginLeft:P}),C&&{marginRight:P});return w(i.createElement("div",Object.assign({className:j,style:Object.assign(Object.assign({},null==o?void 0:o.style),b)},y,{role:"separator"}),g&&"vertical"!==s&&i.createElement("span",{className:`${x}-inner-text`,style:$},g)))}},87308:function(e,t,n){"use strict";n.d(t,{Z:function(){return he}});var o=n(59301),r=n(27385),i=n(73374),l=n(5891),a={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"},s=n(22589),c=function(e,t){return o.createElement(s.Z,(0,l.Z)({},e,{ref:t,icon:a}))};var d=o.forwardRef(c),u=n(92310),p=n.n(u),f=n(25769),h=n.n(f),g=n(28647),m=n(75440),v=n(19171),b=n(71366),y=n(55405),x=n(25629),w=n(28254),O=n(20287),S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{style:n,noStyle:r,disabled:i}=e,l=S(e,["style","noStyle","disabled"]);let a={};return r||(a=Object.assign({},E)),i&&(a.pointerEvents="none"),a=Object.assign(Object.assign({},a),n),o.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},l,{onKeyDown:e=>{const{keyCode:t}=e;t===O.Z.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:o}=e;n===O.Z.ENTER&&o&&o()},style:a}))})),C=n(36355),j=n(9763),P=n(6848),$={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"},L=function(e,t){return o.createElement(s.Z,(0,l.Z)({},e,{ref:t,icon:$}))};var z=o.forwardRef(L),T=n(92343),M=n(1643),R=n(15969),Z=n(83116),N=n(88453);const H=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,o)=>{const{titleMarginBottom:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},I=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},(0,R.N)(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},B=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:N.gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),W=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-o,marginBottom:`calc(1em - ${o}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},D=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),_=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},H(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),B(e)),I(e)),{[`\n ${t}-expand,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},(0,R.N)(e)),{marginInlineStart:e.marginXXS})}),W(e)),D(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}};var A=(0,Z.Z)("Typography",(e=>[_(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));var F=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:l,maxLength:a,autoSize:s=!0,value:c,onSave:d,onCancel:u,onEnd:f,component:h,enterIcon:g=o.createElement(z,null)}=e,m=o.useRef(null),v=o.useRef(!1),b=o.useRef(),[y,x]=o.useState(c);o.useEffect((()=>{x(c)}),[c]),o.useEffect((()=>{if(m.current&&m.current.resizableTextArea){const{textArea:e}=m.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const w=()=>{d(y.trim())},S=h?`${t}-${h}`:"",[E,k]=A(t),C=p()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===l},r,S,k);return E(o.createElement("div",{className:C,style:i},o.createElement(M.Z,{ref:m,maxLength:a,value:y,onChange:e=>{let{target:t}=e;x(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;v.current||(b.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;b.current!==t||v.current||n||o||r||i||(t===O.Z.ENTER?(w(),null==f||f()):t===O.Z.ESC&&u())},onCompositionStart:()=>{v.current=!0},onCompositionEnd:()=>{v.current=!1},onBlur:()=>{w()},"aria-label":n,rows:1,autoSize:s}),null!==g?(0,T.Tm)(g,{className:`${t}-edit-content-confirm`}):null))},U=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,component:r="article",className:i,rootClassName:l,setContentRef:a,children:s,direction:c,style:d}=e,u=U(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:h,typography:g}=o.useContext(C.E_),m=null!=c?c:h;let v=t;a&&(v=(0,x.sQ)(t,a));const b=f("typography",n),[y,w]=A(b),O=p()(b,null==g?void 0:g.className,{[`${b}-rtl`]:"rtl"===m},i,l,w),S=Object.assign(Object.assign({},null==g?void 0:g.style),d);return y(o.createElement(r,Object.assign({className:O,style:S,ref:v},u),s))}));var G=V;function K(e,t){return o.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]}),[e])}var X=(e,t)=>{const n=o.useRef(!1);o.useEffect((()=>{n.current?e():n.current=!0}),t)};function q(e){const t=typeof e;return"string"===t||"number"===t}function Y(e,t){let n=0;const o=[];for(let r=0;rt){const e=t-n;return o.push(String(i).slice(0,e)),o}o.push(i),n=l}return e}var Q=e=>{let{enabledMeasure:t,children:n,text:r,width:i,fontSize:l,rows:a,onEllipsis:s}=e;const[[c,d,u],p]=o.useState([0,0,0]),[f,h]=o.useState(0),[g,b]=o.useState(0),[y,x]=o.useState(0),w=o.useRef(null),O=o.useRef(null),S=o.useMemo((()=>(0,m.Z)(r)),[r]),E=o.useMemo((()=>function(e){let t=0;return e.forEach((e=>{q(e)?t+=String(e).length:t+=1})),t}(S)),[S]),k=o.useMemo((()=>t&&3===g?n(Y(S,d),d{t&&i&&l&&E&&(b(1),p([0,Math.ceil(E/2),E]))}),[t,i,l,r,E,a]),(0,v.Z)((()=>{var e;1===g&&x((null===(e=w.current)||void 0===e?void 0:e.offsetHeight)||0)}),[g]),(0,v.Z)((()=>{var e,t;if(y)if(1===g){((null===(e=O.current)||void 0===e?void 0:e.offsetHeight)||0)<=a*y?(b(4),s(!1)):b(2)}else if(2===g)if(c!==u){const e=(null===(t=O.current)||void 0===t?void 0:t.offsetHeight)||0;let n=c,o=u;c===u-1?o=c:e<=a*y?n=d:o=d;const r=Math.ceil((n+o)/2);p([n,r,o])}else b(3),h(d),s(!0)}),[g,c,u,a,y]);const C={width:i,whiteSpace:"normal",margin:0,padding:0},j=(e,t,n)=>o.createElement("span",{"aria-hidden":!0,ref:t,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:2*Math.floor(l/2)},n)},e);return o.createElement(o.Fragment,null,k,t&&3!==g&&4!==g&&o.createElement(o.Fragment,null,j("lg",w,{wordBreak:"keep-all",whiteSpace:"nowrap"}),1===g?j(n(S,!1),O,C):((e,t)=>{const o=Y(S,e);return j(n(o,!0),t,C)})(d,O)))};var J=e=>{let{enabledEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return(null==i?void 0:i.title)&&t?o.createElement(P.Z,Object.assign({open:!!n&&void 0},i),r):r},ee=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n,l,a;const{prefixCls:s,className:c,style:u,type:f,disabled:O,children:S,ellipsis:E,editable:$,copyable:L,component:z,title:T}=e,M=ee(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:R,direction:Z}=o.useContext(C.E_),[N]=(0,j.Z)("Text"),H=o.useRef(null),I=o.useRef(null),B=R("typography",s),W=(0,y.Z)(M,["mark","code","delete","underline","strong","keyboard","italic"]),[D,_]=K($),[A,U]=(0,b.Z)(!1,{value:_.editing}),{triggerType:V=["icon"]}=_,q=e=>{var t;e&&(null===(t=_.onStart)||void 0===t||t.call(_)),U(e)};X((()=>{var e;A||null===(e=I.current)||void 0===e||e.focus()}),[A]);const Y=e=>{null==e||e.preventDefault(),q(!0)},oe=e=>{var t;null===(t=_.onChange)||void 0===t||t.call(_,e),q(!1)},re=()=>{var e;null===(e=_.onCancel)||void 0===e||e.call(_),q(!1)},[ie,le]=K(L),[ae,se]=o.useState(!1),ce=o.useRef(null),de={};le.format&&(de.format=le.format);const ue=()=>{ce.current&&clearTimeout(ce.current)},pe=e=>{var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),h()(le.text||String(S)||"",de),se(!0),ue(),ce.current=setTimeout((()=>{se(!1)}),3e3),null===(t=le.onCopy)||void 0===t||t.call(le,e)};o.useEffect((()=>ue),[]);const[fe,he]=o.useState(!1),[ge,me]=o.useState(!1),[ve,be]=o.useState(!1),[ye,xe]=o.useState(!1),[we,Oe]=o.useState(!1),[Se,Ee]=o.useState(!0),[ke,Ce]=K(E,{expandable:!1}),je=ke&&!ve,{rows:Pe=1}=Ce,$e=o.useMemo((()=>!je||void 0!==Ce.suffix||Ce.onEllipsis||Ce.expandable||D||ie),[je,Ce,D,ie]);(0,v.Z)((()=>{ke&&!$e&&(he((0,w.G)("webkitLineClamp")),me((0,w.G)("textOverflow")))}),[$e,ke]);const Le=o.useMemo((()=>!$e&&(1===Pe?ge:fe)),[$e,ge,fe]),ze=je&&(Le?we:ye),Te=je&&1===Pe&&Le,Me=je&&Pe>1&&Le,Re=e=>{var t;be(!0),null===(t=Ce.onExpand)||void 0===t||t.call(Ce,e)},[Ze,Ne]=o.useState(0),[He,Ie]=o.useState(0),Be=e=>{var t;xe(e),ye!==e&&(null===(t=Ce.onEllipsis)||void 0===t||t.call(Ce,e))};o.useEffect((()=>{const e=H.current;if(ke&&Le&&e){const t=Me?e.offsetHeight{const e=H.current;if("undefined"==typeof IntersectionObserver||!e||!Le||!je)return;const t=new IntersectionObserver((()=>{Ee(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[Le,je]);let We={};We=!0===Ce.tooltip?{title:null!==(n=_.text)&&void 0!==n?n:S}:o.isValidElement(Ce.tooltip)?{title:Ce.tooltip}:"object"==typeof Ce.tooltip?Object.assign({title:null!==(l=_.text)&&void 0!==l?l:S},Ce.tooltip):{title:Ce.tooltip};const De=o.useMemo((()=>{const e=e=>["string","number"].includes(typeof e);if(ke&&!Le)return e(_.text)?_.text:e(S)?S:e(T)?T:e(We.title)?We.title:void 0}),[ke,Le,T,We.title,ze]);if(A)return o.createElement(F,{value:null!==(a=_.text)&&void 0!==a?a:"string"==typeof S?S:"",onSave:oe,onCancel:re,onEnd:_.onEnd,prefixCls:B,className:c,style:u,direction:Z,component:z,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});const _e=()=>{const{expandable:e,symbol:t}=Ce;if(!e)return null;let n;return n=t||(null==N?void 0:N.expand),o.createElement("a",{key:"expand",className:`${B}-expand`,onClick:Re,"aria-label":null==N?void 0:N.expand},n)},Ae=()=>{if(!D)return;const{icon:e,tooltip:t}=_,n=(0,m.Z)(t)[0]||(null==N?void 0:N.edit),r="string"==typeof n?n:"";return V.includes("icon")?o.createElement(P.Z,{key:"edit",title:!1===t?"":n},o.createElement(k,{ref:I,className:`${B}-edit`,onClick:Y,"aria-label":r},e||o.createElement(d,{role:"button"}))):null},Fe=()=>{if(!ie)return;const{tooltips:e,icon:t}=le,n=ne(e),l=ne(t),a=ae?te(n[1],null==N?void 0:N.copied):te(n[0],null==N?void 0:N.copy),s=ae?null==N?void 0:N.copied:null==N?void 0:N.copy,c="string"==typeof a?a:s;return o.createElement(P.Z,{key:"copy",title:a},o.createElement(k,{className:p()(`${B}-copy`,ae&&`${B}-copy-success`),onClick:pe,"aria-label":c},ae?te(l[1],o.createElement(r.Z,null),!0):te(l[0],o.createElement(i.Z,null),!0)))};return o.createElement(g.Z,{onResize:(e,t)=>{let{offsetWidth:n}=e;var o;Ne(n),Ie(parseInt(null===(o=window.getComputedStyle)||void 0===o?void 0:o.call(window,t).fontSize,10)||0)},disabled:!je||Le},(n=>o.createElement(J,{tooltipProps:We,enabledEllipsis:je,isEllipsis:ze},o.createElement(G,Object.assign({className:p()({[`${B}-${f}`]:f,[`${B}-disabled`]:O,[`${B}-ellipsis`]:ke,[`${B}-single-line`]:je&&1===Pe,[`${B}-ellipsis-single-line`]:Te,[`${B}-ellipsis-multiple-line`]:Me},c),prefixCls:s,style:Object.assign(Object.assign({},u),{WebkitLineClamp:Me?Pe:void 0}),component:z,ref:(0,x.sQ)(n,H,t),direction:Z,onClick:V.includes("text")?Y:void 0,"aria-label":null==De?void 0:De.toString(),title:T},W),o.createElement(Q,{enabledMeasure:je&&!Le,text:S,rows:Pe,width:Ze,fontSize:He,onEllipsis:Be},((t,n)=>{let r=t;t.length&&n&&De&&(r=o.createElement("span",{key:"show-content","aria-hidden":!0},r));const i=function(e,t){let{mark:n,code:r,underline:i,delete:l,strong:a,keyboard:s,italic:c}=e,d=t;function u(e,t){t&&(d=o.createElement(e,{},d))}return u("strong",a),u("u",i),u("del",l),u("code",r),u("mark",n),u("kbd",s),u("i",c),d}(e,o.createElement(o.Fragment,null,r,(e=>{return[e&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),Ce.suffix,(t=e,[t&&_e(),Ae(),Fe()])];var t})(n)));return i}))))))})),re=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var{ellipsis:n,rel:r}=e,i=re(e,["ellipsis","rel"]);const l=Object.assign(Object.assign({},i),{rel:void 0===r&&"_blank"===i.target?"noopener noreferrer":r});return delete l.navigate,o.createElement(oe,Object.assign({},l,{ref:t,ellipsis:!!n,component:"a"}))}));var le=o.forwardRef(((e,t)=>o.createElement(oe,Object.assign({ref:t},e,{component:"div"})))),ae=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var{ellipsis:n}=e,r=ae(e,["ellipsis"]);const i=o.useMemo((()=>n&&"object"==typeof n?(0,y.Z)(n,["expandable","rows"]):n),[n]);return o.createElement(oe,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))};var ce=o.forwardRef(se),de=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{level:n=1}=e,r=de(e,["level"]);let i;return i=ue.includes(n)?`h${n}`:"h1",o.createElement(oe,Object.assign({ref:t},r,{component:i}))}));const fe=G;fe.Text=ce,fe.Link=ie,fe.Title=pe,fe.Paragraph=le;var he=fe},51581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,s&&s(t)};var d=[n];return r&&(a?l?d.unshift(a):d.push(a):this.defaultLoader&&(l?d.unshift(this.defaultLoader):d.push(this.defaultLoader))),i.default.createElement(o,c,d)}}]),t}(r.Component);s.propTypes={children:l.default.node.isRequired,element:l.default.node,hasMore:l.default.bool,initialLoad:l.default.bool,isReverse:l.default.bool,loader:l.default.node,loadMore:l.default.func.isRequired,pageStart:l.default.number,ref:l.default.func,getScrollParent:l.default.func,threshold:l.default.number,useCapture:l.default.bool,useWindow:l.default.bool},s.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=s,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)}}]); \ No newline at end of file diff --git a/83791.bcaf4e13.async.js b/83791.bcaf4e13.async.js new file mode 100644 index 0000000000..8196a72819 --- /dev/null +++ b/83791.bcaf4e13.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[83791,79817],{680:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(5891),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(22589),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},37120:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(5891),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},a=n(22589),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},27666:function(e,t,n){var o=n(26390),r=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},i=function(){if(null==t){for(var e=arguments.length,o=new Array(e),i=0;i{r.Z.cancel(t),t=null},i}},81228:function(e,t,n){n.d(t,{Z:function(){return E}});var o=n(79545),r=n(68550),i=n(17928),a=n(7711),l=n(59301),c=n(92310),s=n.n(c),d=n(28647),p=n(55405),u=n(27666),f=n(36355),g=n(83116),m=n(37613);const h=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var v=(0,g.Z)("Affix",(e=>{const t=(0,m.TS)(e,{zIndexPopup:e.zIndexBase+10});return[h(t)]}));function b(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function $(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function x(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(y.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();y.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,r=e.getTargetFunc();if(t!==k.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!r)return;const i=e.getOffsetTop(),a=e.getOffsetBottom(),l=r();if(l){const t={status:k.None},r=b(e.placeholderNodeRef.current);if(0===r.top&&0===r.left&&0===r.width&&0===r.height)return;const c=b(l),s=$(r,c,i),d=x(r,c,a);void 0!==s?(t.affixStyle={position:"fixed",top:s,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}):void 0!==d&&(t.affixStyle={position:"fixed",bottom:d,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:k.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,u.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,u.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),r=e.getOffsetBottom(),i=t();if(i&&e.placeholderNodeRef.current){const t=b(i),a=b(e.placeholderNodeRef.current),l=$(a,t,o),c=x(a,t,r);if(void 0!==l&&n.top===l||void 0!==c&&n.bottom===c)return}}e.prepareMeasure()})),e}return(0,r.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:C}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:r}=this.props,i=s()(e&&o,{[n]:!!e});let a=(0,p.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return l.createElement(d.Z,{onResize:this.updatePosition},l.createElement("div",Object.assign({},a,{ref:this.placeholderNodeRef}),e&&l.createElement("div",{style:t,"aria-hidden":"true"}),l.createElement("div",{className:i,ref:this.fixedNodeRef,style:e},l.createElement(d.Z,{onResize:this.updatePosition},r))))}}]),n}(l.Component);S.contextType=f.E_;var E=(0,l.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:r}=(0,l.useContext)(f.E_),i=r("affix",n),[a,c]=v(i),d=Object.assign(Object.assign({},e),{affixPrefixCls:i,rootClassName:s()(o,c)});return a(l.createElement(S,Object.assign({},d,{ref:t})))}))},46400:function(e,t,n){n.d(t,{Z:function(){return z}});var o=n(80559),r=n(58670),i=n(51638),a=n(54745),l=n(31855),c=n(92310),s=n.n(c),d=n(43167),p=n(47413),u=n(59301),f=n(92343),g=n(36355),m=n(17313),h=n(83116);const v=(e,t,n,o,r)=>({backgroundColor:e,border:`${o.lineWidth}px ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),b=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:s,withDescriptionIconSize:d,colorText:p,colorTextHeading:u,withDescriptionPadding:f,defaultPadding:g}=e;return{[t]:Object.assign(Object.assign({},(0,m.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:g,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:u},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${s}, opacity ${n} ${s},\n padding-top ${n} ${s}, padding-bottom ${n} ${s},\n margin-bottom ${n} ${s}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:f,[`${t}-icon`]:{marginInlineEnd:r,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:u,fontSize:a},[`${t}-description`]:{display:"block",color:p}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},$=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:c,colorErrorBorder:s,colorErrorBg:d,colorInfo:p,colorInfoBorder:u,colorInfoBg:f}=e;return{[t]:{"&-success":v(r,o,n,e,t),"&-info":v(f,u,p,e,t),"&-warning":v(l,a,i,e,t),"&-error":Object.assign(Object.assign({},v(d,s,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},x=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:`${i}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${o}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${o}`,"&:hover":{color:l}}}}},y=e=>[b(e),$(e),x(e)];var C=(0,h.Z)("Alert",(e=>[y(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}))),k=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{icon:t,prefixCls:n,type:o}=e,r=S[o]||null;return t?(0,f.wm)(t,u.createElement("span",{className:`${n}-icon`},t),(()=>({className:s()(`${n}-icon`,{[t.props.className]:t.props.className})}))):u.createElement(r,{className:`${n}-icon`})},w=e=>{const{isClosable:t,prefixCls:n,closeIcon:o,handleClose:r}=e,a=!0===o||void 0===o?u.createElement(i.Z,null):o;return t?u.createElement("button",{type:"button",onClick:r,className:`${n}-close-icon`,tabIndex:0},a):null};var I=e=>{const{description:t,prefixCls:n,message:o,banner:r,className:i,rootClassName:a,style:l,onMouseEnter:c,onMouseLeave:f,onClick:m,afterClose:h,showIcon:v,closable:b,closeText:$,closeIcon:x,action:y}=e,S=k(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[I,P]=u.useState(!1);const N=u.useRef(null),{getPrefixCls:O,direction:Z,alert:B}=u.useContext(g.E_),T=O("alert",n),[j,z]=C(T),R=t=>{var n;P(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},M=u.useMemo((()=>void 0!==e.type?e.type:r?"warning":"info"),[e.type,r]),L=u.useMemo((()=>!!$||("boolean"==typeof b?b:!1!==x&&null!=x)),[$,x,b]),A=!(!r||void 0!==v)||v,H=s()(T,`${T}-${M}`,{[`${T}-with-description`]:!!t,[`${T}-no-icon`]:!A,[`${T}-banner`]:!!r,[`${T}-rtl`]:"rtl"===Z},null==B?void 0:B.className,i,a,z),D=(0,p.Z)(S,{aria:!0,data:!0});return j(u.createElement(d.default,{visible:!I,motionName:`${T}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:h},(n=>{let{className:r,style:i}=n;return u.createElement("div",Object.assign({ref:N,"data-show":!I,className:s()(H,r),style:Object.assign(Object.assign(Object.assign({},null==B?void 0:B.style),l),i),onMouseEnter:c,onMouseLeave:f,onClick:m,role:"alert"},D),A?u.createElement(E,{description:t,icon:e.icon,prefixCls:T,type:M}):null,u.createElement("div",{className:`${T}-content`},o?u.createElement("div",{className:`${T}-message`},o):null,t?u.createElement("div",{className:`${T}-description`},t):null),y?u.createElement("div",{className:`${T}-action`},y):null,u.createElement(w,{isClosable:L,prefixCls:T,closeIcon:$||x,handleClose:R}))})))},P=n(79545),N=n(68550),O=n(17928),Z=n(7711);let B=function(e){(0,O.Z)(n,e);var t=(0,Z.Z)(n);function n(){var e;return(0,P.Z)(this,n),(e=t.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,N.Z)(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,children:n}=this.props,{error:o,info:r}=this.state,i=r&&r.componentStack?r.componentStack:null,a=void 0===e?(o||"").toString():e,l=void 0===t?i:t;return o?u.createElement(I,{type:"error",message:a,description:u.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},l)}):n}}]),n}(u.Component);var T=B;const j=I;j.ErrorBoundary=T;var z=j},79817:function(e,t,n){n.d(t,{Z:function(){return w}});var o=n(26390),r=n(92310),i=n.n(r),a=n(83794),l=n(59301),c=n(6774),s=n(13845),d=n(68031),p=n(81228),u=n(36355);var f=l.createContext(void 0);var g=e=>{const{href:t,title:n,prefixCls:o,children:r,className:a,target:c,replace:s}=e,d=l.useContext(f),{registerLink:p,unregisterLink:g,scrollTo:m,onClick:h,activeLink:v,direction:b}=d||{};l.useEffect((()=>(null==p||p(t),()=>{null==g||g(t)})),[t]);const{getPrefixCls:$}=l.useContext(u.E_),x=$("anchor",o),y=v===t,C=i()(`${x}-link`,a,{[`${x}-link-active`]:y}),k=i()(`${x}-link-title`,{[`${x}-link-title-active`]:y});return l.createElement("div",{className:C},l.createElement("a",{className:k,href:t,title:"string"==typeof n?n:"",target:c,onClick:e=>{s&&(e.preventDefault(),window.location.replace(t)),null==h||h(e,{title:n,href:t}),null==m||m(t)}},n),"horizontal"!==b?r:null)},m=n(17313),h=n(83116),v=n(37613);const b=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:r,colorPrimary:i,lineType:a,colorSplit:l}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,[t]:Object.assign(Object.assign({},(0,m.Wf)(e)),{position:"relative",paddingInlineStart:r,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${e.linkPaddingInlineStart}px 0`,"&-title":Object.assign(Object.assign({},m.vS),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${r}px ${a} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:r,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},$=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:r}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:r}}}}};var x=(0,h.Z)("Anchor",(e=>{const{fontSize:t,fontSizeLG:n,paddingXXS:o}=e,r=(0,v.TS)(e,{holderOffsetBlock:o,anchorPaddingBlockSecondary:o/2,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[b(r),$(r)]}),(e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding})));function y(){return window}function C(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const k=/#([\S ]+)$/,S=e=>{var t;const{rootClassName:n,anchorPrefixCls:r,className:m,style:h,offsetTop:v,affix:b=!0,showInkInFixed:$=!1,children:x,items:S,direction:E="vertical",bounds:w,targetOffset:I,onClick:P,onChange:N,getContainer:O,getCurrentAnchor:Z,replace:B}=e;const[T,j]=l.useState([]),[z,R]=l.useState(null),M=l.useRef(z),L=l.useRef(null),A=l.useRef(null),H=l.useRef(!1),{direction:D,getTargetContainer:W,anchor:_}=l.useContext(u.E_),X=null!==(t=null!=O?O:W)&&void 0!==t?t:y,F=JSON.stringify(T),G=(0,a.useEvent)((e=>{T.includes(e)||j((t=>[].concat((0,o.Z)(t),[e])))})),K=(0,a.useEvent)((e=>{T.includes(e)&&j((t=>t.filter((t=>t!==e))))})),U=(0,a.useEvent)((e=>{if(M.current===e)return;const t="function"==typeof Z?Z(e):e;R(t),M.current=t,null==N||N(e)})),V=l.useCallback((()=>{if(H.current)return;const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const o=[],r=X();if(e.forEach((e=>{const i=k.exec(null==e?void 0:e.toString());if(!i)return;const a=document.getElementById(i[1]);if(a){const i=C(a,r);it.top>e.top?t:e)).link;return""}(T,void 0!==I?I:v||0,w);U(e)}),[F,I,v]),q=l.useCallback((e=>{U(e);const t=k.exec(e);if(!t)return;const n=document.getElementById(t[1]);if(!n)return;const o=X();let r=(0,s.Z)(o,!0)+C(n,o);r-=void 0!==I?I:v||0,H.current=!0,(0,d.Z)(r,{getContainer:X,callback(){H.current=!1}})}),[I,v]),J=i()(n,`${r}-wrapper`,{[`${r}-wrapper-horizontal`]:"horizontal"===E,[`${r}-rtl`]:"rtl"===D},m,null==_?void 0:_.className),Q=i()(r,{[`${r}-fixed`]:!b&&!$}),Y=i()(`${r}-ink`,{[`${r}-ink-visible`]:z}),ee=Object.assign(Object.assign({maxHeight:v?`calc(100vh - ${v}px)`:"100vh"},null==_?void 0:_.style),h),te=e=>Array.isArray(e)?e.map((e=>l.createElement(g,Object.assign({replace:B},e,{key:e.key}),"vertical"===E&&te(e.children)))):null,ne=l.createElement("div",{ref:L,className:J,style:ee},l.createElement("div",{className:Q},l.createElement("span",{className:Y,ref:A}),"items"in e?te(S):x));l.useEffect((()=>{const e=X();return V(),null==e||e.addEventListener("scroll",V),()=>{null==e||e.removeEventListener("scroll",V)}}),[F]),l.useEffect((()=>{"function"==typeof Z&&U(Z(M.current||""))}),[Z]),l.useEffect((()=>{(()=>{var e;const t=null===(e=L.current)||void 0===e?void 0:e.querySelector(`.${r}-link-title-active`);if(t&&A.current){const{style:e}=A.current,n="horizontal"===E;e.top=n?"":`${t.offsetTop+t.clientHeight/2}px`,e.height=n?"":`${t.clientHeight}px`,e.left=n?`${t.offsetLeft}px`:"",e.width=n?`${t.clientWidth}px`:"",n&&(0,c.Z)(t,{scrollMode:"if-needed",block:"nearest"})}})()}),[E,Z,F,z]);const oe=l.useMemo((()=>({registerLink:G,unregisterLink:K,scrollTo:q,activeLink:z,onClick:P,direction:E})),[z,P,q,E]);return l.createElement(f.Provider,{value:oe},b?l.createElement(p.Z,{offsetTop:v,target:X},ne):ne)};const E=e=>{const{prefixCls:t,rootClassName:n}=e,{getPrefixCls:o}=l.useContext(u.E_),r=o("anchor",t),[a,c]=x(r);return a(l.createElement(S,Object.assign({},e,{rootClassName:i()(c,n),anchorPrefixCls:r})))};E.Link=g;var w=E},36381:function(e,t,n){n.d(t,{Z:function(){return F}});var o=n(14988),r=n(92310),i=n.n(r),a=n(5891),l=n(26390),c=n(29043),s=n(80665),d=n(71366),p=n(85870),u=n(59301),f=n(19149),g=n(75440),m=n(80962),h=n(43167),v=n(20287),b=u.forwardRef((function(e,t){var n=e.prefixCls,o=e.forceRender,r=e.className,a=e.style,l=e.children,s=e.isActive,d=e.role,p=u.useState(s||o),f=(0,c.Z)(p,2),g=f[0],h=f[1];return u.useEffect((function(){(o||s)&&h(!0)}),[o,s]),g?u.createElement("div",{ref:t,className:i()("".concat(n,"-content"),(0,m.Z)((0,m.Z)({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),r),style:a,role:d},u.createElement("div",{className:"".concat(n,"-content-box")},l)):null}));b.displayName="PanelContent";var $=b,x=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],y=u.forwardRef((function(e,t){var n=e.showArrow,o=void 0===n||n,r=e.headerClass,l=e.isActive,c=e.onItemClick,s=e.forceRender,d=e.className,p=e.prefixCls,g=e.collapsible,b=e.accordion,y=e.panelKey,C=e.extra,k=e.header,S=e.expandIcon,E=e.openMotion,w=e.destroyInactivePanel,I=e.children,P=(0,f.Z)(e,x),N="disabled"===g,O="header"===g,Z="icon"===g,B=null!=C&&"boolean"!=typeof C,T=function(){null==c||c(y)},j="function"==typeof S?S(e):u.createElement("i",{className:"arrow"});j&&(j=u.createElement("div",{className:"".concat(p,"-expand-icon"),onClick:["header","icon"].includes(g)?T:void 0},j));var z=i()((0,m.Z)((0,m.Z)((0,m.Z)({},"".concat(p,"-item"),!0),"".concat(p,"-item-active"),l),"".concat(p,"-item-disabled"),N),d),R={className:i()(r,(0,m.Z)((0,m.Z)((0,m.Z)({},"".concat(p,"-header"),!0),"".concat(p,"-header-collapsible-only"),O),"".concat(p,"-icon-collapsible-only"),Z)),"aria-expanded":l,"aria-disabled":N,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==v.Z.ENTER&&e.which!==v.Z.ENTER||T()}};return O||Z||(R.onClick=T,R.role=b?"tab":"button",R.tabIndex=N?-1:0),u.createElement("div",(0,a.Z)({},P,{ref:t,className:z}),u.createElement("div",R,o&&j,u.createElement("span",{className:"".concat(p,"-header-text"),onClick:"header"===g?T:void 0},k),B&&u.createElement("div",{className:"".concat(p,"-extra")},C)),u.createElement(h.default,(0,a.Z)({visible:l,leavedClassName:"".concat(p,"-content-hidden")},E,{forceRender:s,removeOnLeave:w}),(function(e,t){var n=e.className,o=e.style;return u.createElement($,{ref:t,prefixCls:p,className:n,style:o,isActive:l,forceRender:s,role:b?"tabpanel":void 0},I)})))})),C=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var k=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,o=t.accordion,r=t.collapsible,i=t.destroyInactivePanel,l=t.onItemClick,c=t.activeKey,s=t.openMotion,d=t.expandIcon;return e.map((function(e,t){var p=e.children,g=e.label,m=e.key,h=e.collapsible,v=e.onItemClick,b=e.destroyInactivePanel,$=(0,f.Z)(e,C),x=String(null!=m?m:t),k=null!=h?h:r,S=null!=b?b:i,E=!1;return E=o?c[0]===x:c.indexOf(x)>-1,u.createElement(y,(0,a.Z)({},$,{prefixCls:n,key:x,panelKey:x,isActive:E,accordion:o,openMotion:s,expandIcon:d,header:g,collapsible:k,onItemClick:function(e){"disabled"!==k&&(l(e),null==v||v(e))},destroyInactivePanel:S}),p)}))}(e,n):(0,g.Z)(t).map((function(e,t){return function(e,t,n){if(!e)return null;var o=n.prefixCls,r=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,c=n.activeKey,s=n.openMotion,d=n.expandIcon,p=e.key||String(t),f=e.props,g=f.header,m=f.headerClass,h=f.destroyInactivePanel,v=f.collapsible,b=f.onItemClick,$=!1;$=r?c[0]===p:c.indexOf(p)>-1;var x=null!=v?v:i,y={key:p,panelKey:p,header:g,headerClass:m,isActive:$,prefixCls:o,destroyInactivePanel:null!=h?h:a,openMotion:s,accordion:r,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(l(e),null==b||b(e))},expandIcon:d,collapsible:x};return"string"==typeof e.type?e:(Object.keys(y).forEach((function(e){void 0===y[e]&&delete y[e]})),u.cloneElement(e,y))}(e,t,n)}))},S=n(47413);function E(e){var t=e;if(!Array.isArray(t)){var n=(0,s.Z)(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var w=u.forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-collapse":n,r=e.destroyInactivePanel,s=void 0!==r&&r,f=e.style,g=e.accordion,m=e.className,h=e.children,v=e.collapsible,b=e.openMotion,$=e.expandIcon,x=e.activeKey,y=e.defaultActiveKey,C=e.onChange,w=e.items,I=i()(o,m),P=(0,d.Z)([],{value:x,onChange:function(e){return null==C?void 0:C(e)},defaultValue:y,postState:E}),N=(0,c.Z)(P,2),O=N[0],Z=N[1];(0,p.ZP)(!h,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var B=k(w,h,{prefixCls:o,accordion:g,openMotion:b,expandIcon:$,collapsible:v,destroyInactivePanel:s,onItemClick:function(e){return Z((function(){return g?O[0]===e?[]:[e]:O.indexOf(e)>-1?O.filter((function(t){return t!==e})):[].concat((0,l.Z)(O),[e])}))},activeKey:O});return u.createElement("div",(0,a.Z)({ref:t,className:I,style:f,role:g?"tablist":void 0},(0,S.Z)(e,{aria:!0,data:!0})),B)})),I=Object.assign(w,{Panel:y}),P=I,N=(I.Panel,n(55405)),O=n(62892),Z=n(92343),B=n(36355),T=n(19716);var j=u.forwardRef(((e,t)=>{const{getPrefixCls:n}=u.useContext(B.E_),{prefixCls:o,className:r,showArrow:a=!0}=e,l=n("collapse",o),c=i()({[`${l}-no-arrow`]:!a},r);return u.createElement(P.Panel,Object.assign({ref:t},e,{prefixCls:l,className:c}))})),z=n(17313),R=n(8378),M=n(83116),L=n(37613);const A=e=>{const{componentCls:t,contentBg:n,padding:o,headerBg:r,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:s,lineType:d,colorBorder:p,colorText:u,colorTextHeading:f,colorTextDisabled:g,fontSize:m,fontSizeLG:h,lineHeight:v,marginSM:b,paddingSM:$,paddingLG:x,paddingXS:y,motionDurationSlow:C,fontSizeIcon:k,contentPadding:S}=e,E=`${s}px ${d} ${p}`;return{[t]:Object.assign(Object.assign({},(0,z.Wf)(e)),{backgroundColor:r,border:E,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:E,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:v,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:m*v,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{fontSize:k,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:u,backgroundColor:n,borderTop:E,[`& > ${t}-content-box`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:y,[`> ${t}-expand-icon`]:{marginInlineStart:$-y}},[`> ${t}-content > ${t}-content-box`]:{padding:$}}},"&-large":{[`> ${t}-item`]:{fontSize:h,[`> ${t}-header`]:{padding:l,paddingInlineStart:o,[`> ${t}-expand-icon`]:{height:h*v,marginInlineStart:x-o}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},H=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},D=e=>{const{componentCls:t,headerBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},W=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var _=(0,M.Z)("Collapse",(e=>{const t=(0,L.TS)(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[A(t),D(t),W(t),H(t),(0,R.Z)(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const X=u.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:a}=u.useContext(B.E_),{prefixCls:l,className:c,rootClassName:s,style:d,bordered:p=!0,ghost:f,size:m,expandIconPosition:h="start",children:v,expandIcon:b}=e,$=(0,T.Z)((e=>{var t;return null!==(t=null!=m?m:e)&&void 0!==t?t:"middle"})),x=n("collapse",l),y=n(),[C,k]=_(x),S=u.useMemo((()=>"left"===h?"start":"right"===h?"end":h),[h]),E=i()(`${x}-icon-position-${S}`,{[`${x}-borderless`]:!p,[`${x}-rtl`]:"rtl"===r,[`${x}-ghost`]:!!f,[`${x}-${$}`]:"middle"!==$},null==a?void 0:a.className,c,s,k),w=Object.assign(Object.assign({},(0,O.Z)(y)),{motionAppear:!1,leavedClassName:`${x}-content-hidden`}),I=u.useMemo((()=>v?(0,g.Z)(v).map(((e,t)=>{var n,o;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(o=e.key)&&void 0!==o?o:String(t),{disabled:r,collapsible:i}=e.props,a=Object.assign(Object.assign({},(0,N.Z)(e.props,["disabled"])),{key:n,collapsible:null!=i?i:r?"disabled":void 0});return(0,Z.Tm)(e,a)}return e})):null),[v]);return C(u.createElement(P,Object.assign({ref:t,openMotion:w},(0,N.Z)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=b?b(e):u.createElement(o.Z,{rotate:e.isActive?90:void 0});return(0,Z.Tm)(t,(()=>({className:i()(t.props.className,`${x}-arrow`)})))},prefixCls:x,className:E,style:Object.assign(Object.assign({},null==a?void 0:a.style),d)}),I))}));var F=Object.assign(X,{Panel:j})},12563:function(e,t,n){n.d(t,{Z:function(){return w}});var o=n(59301),r=n(51638),i=n(92310),a=n.n(i),l=n(36785),c=n(47729),s=n(14088),d=n(36355),p=n(17313),u=n(37613),f=n(83116);const g=e=>{const{lineWidth:t,fontSizeIcon:n}=e,o=e.fontSizeSM,r=e.lineHeightSM*o+"px";return(0,u.TS)(e,{tagFontSize:o,tagLineHeight:r,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},m=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var h=(0,f.Z)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r}=e,i=o-n,a=t-n;return{[r]:Object.assign(Object.assign({},(0,p.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(g(e))),m),v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,style:n,className:r,checked:i,onChange:l,onClick:c}=e,s=v(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:p,tag:u}=o.useContext(d.E_),f=p("tag",t),[g,m]=h(f),b=a()(f,`${f}-checkable`,{[`${f}-checkable-checked`]:i},null==u?void 0:u.className,r,m);return g(o.createElement("span",Object.assign({},s,{style:Object.assign(Object.assign({},n),null==u?void 0:u.style),className:b,onClick:e=>{null==l||l(!i),null==c||c(e)}})))},$=n(45157);var x=(0,f.b)(["Tag","preset"],(e=>(e=>(0,$.Z)(e,((t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:o,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(g(e))),m);const y=(e,t,n)=>{const o="string"!=typeof(r=n)?r:r.charAt(0).toUpperCase()+r.slice(1);var r;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var C=(0,f.b)(["Tag","status"],(e=>{const t=g(e);return[y(t,"success","Success"),y(t,"processing","Info"),y(t,"error","Error"),y(t,"warning","Warning")]}),m),k=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,className:i,rootClassName:p,style:u,children:f,icon:g,color:m,onClose:v,closeIcon:b,closable:$,bordered:y=!0}=e,S=k(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:E,direction:w,tag:I}=o.useContext(d.E_),[P,N]=o.useState(!0);o.useEffect((()=>{"visible"in S&&N(S.visible)}),[S.visible]);const O=(0,l.o2)(m),Z=(0,l.yT)(m),B=O||Z,T=Object.assign(Object.assign({backgroundColor:m&&!B?m:void 0},null==I?void 0:I.style),u),j=E("tag",n),[z,R]=h(j),M=a()(j,null==I?void 0:I.className,{[`${j}-${m}`]:B,[`${j}-has-color`]:m&&!B,[`${j}-hidden`]:!P,[`${j}-rtl`]:"rtl"===w,[`${j}-borderless`]:!y},i,p,R),L=e=>{e.stopPropagation(),null==v||v(e),e.defaultPrevented||N(!1)},[,A]=(0,c.Z)($,b,(e=>null===e?o.createElement(r.Z,{className:`${j}-close-icon`,onClick:L}):o.createElement("span",{className:`${j}-close-icon`,onClick:L},e)),null,!1),H="function"==typeof S.onClick||f&&"a"===f.type,D=g||null,W=D?o.createElement(o.Fragment,null,D,f&&o.createElement("span",null,f)):f,_=o.createElement("span",Object.assign({},S,{ref:t,className:M,style:T}),W,A,O&&o.createElement(x,{key:"preset",prefixCls:j}),Z&&o.createElement(C,{key:"status",prefixCls:j}));return z(H?o.createElement(s.Z,{component:"Tag"},_):_)},E=o.forwardRef(S);E.CheckableTag=b;var w=E}}]); \ No newline at end of file diff --git a/87083.21070afc.async.js b/87083.21070afc.async.js deleted file mode 100644 index cd82b4edd0..0000000000 --- a/87083.21070afc.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[87083],{40010:function(e,n,t){t.d(n,{Q:function(){return d}});var i=t(79800),l=t.n(i),r=t(59301),s=t(57809),a=t(5112),o=t(94001),u=t(37712),d=function(e){return e[e.Number=1]="Number",e[e.Percent=2]="Percent",e}({});n.Z=function(e){var n=e.value,t=e.onChange,i=e.disabled,c=e.hidePercentOption,g=void 0!==c&&c,A=e.percentType,p=void 0===A?"select":A,m=(0,r.useMemo)((function(){return g?d.Number:d.Percent}),[g]),f=(0,r.useState)(m),h=l()(f,2),v=h[0],x=h[1];console.log(v);var y=(0,r.useCallback)((function(e){if(v===d.Number){var n=e.replace("分","");return isNaN(parseInt(n,10))?0:n}return e.replace("%","")}),[v]);return(0,r.useEffect)((function(){x(n.type)}),[n]),(0,u.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["select"==p&&(0,u.jsx)(s.default,{size:"large",onChange:function(e){x(e),t({type:e,inputValue:e===d.Number?5:20})},value:v||m,style:{width:100},options:g?[{label:"分值",value:d.Number}]:[{label:"百分比",value:d.Percent},{label:"分值",value:d.Number}],disabled:i}),"radio"==p&&(0,u.jsxs)(a.ZP.Group,{size:"large",onChange:function(e){var n=e.target.value;x(n),t({type:n,inputValue:n===d.Number?5:20})},value:v||m,disabled:i,children:[!g&&(0,u.jsx)(a.ZP,{value:d.Percent,style:{marginRight:"50px"},children:"百分比扣分"}),(0,u.jsx)(a.ZP,{value:d.Number,children:"固定分值"})]}),"radio"==p&&(0,u.jsx)("div",{style:{marginRight:"10px",color:"#000000"},children:d.Percent==n.type?"扣除补交阶段得分的":"扣除总成绩的"}),(0,u.jsx)(o.Z,{size:"large",disabled:i,value:n.inputValue,style:{width:"120px"},parser:y,addonAfter:n.type===d.Number?"分":"%",max:v===d.Percent?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:function(e){t({type:v,inputValue:e})}}),"radio"==p&&d.Percent==n.type&&(0,u.jsx)("div",{style:{marginLeft:"10px",color:"#000000"},children:"分数"})]})}},63363:function(e,n,t){t.d(n,{Q8:function(){return T},d0:function(){return V},w6:function(){return M}});var i=t(7557),l=t.n(i),r=t(41498),s=t.n(r),a=t(37205),o=t.n(a),u=t(82242),d=t.n(u),c=t(79800),g=t.n(c),A=t(59301),p=t(57930),m=t(57809),f=t(8591),h=t(43418),v=t(6848),x=t(5112),y=t(95237),b=t(43604),w=t(78673),_=t(28103),j=t(24905),Z=t(3113),C=t(61186),I=t.n(C),k=t(93697),P=t(18030),N=t(89392),B=t(21082),O=t(29156),z=t(5296),F=t(40010),L=t(19421),Q=t(37712);function M(e,n){for(var t=[],i=e;iI()(n).endOf("day"),r=e2&&void 0!==arguments[2]?arguments[2]:"group_id";return n?n.find((function(n){return n[i]===e})):null==G||null===(t=G.group_settings)||void 0===t?void 0:t.find((function(n){return n.group_id[0]===e}))},ye=((null==G?void 0:G.allow_late)||(null==G||G.anonymous_comment),(0,A.useMemo)((function(){return(null==G?void 0:G.allow_late)||(null==G?void 0:G.all_group_late)}),[G,q])),be=null==G?void 0:G.anonymous_comment,we=function(e){if(!e)return!1;var n=xe(e,null==G?void 0:G.anonymous_comment_settings);return(null==G?void 0:G.anonymous_comment)&&n&&null!==(null==n?void 0:n.evaluation_start)};return(0,Q.jsxs)("section",{className:O.Z.form,children:[(0,Q.jsxs)("div",{className:O.Z.title,children:["作业发布",(0,Q.jsx)(v.Z,{title:"设置作业的发布规则,设置后,学生只能在规定时间内提交作业",children:(0,Q.jsx)("i",{className:"iconfont icon-tishixiaowenhao ".concat(O.Z.title_icon)})})]}),(0,Q.jsxs)("div",{children:[(0,Q.jsxs)("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"},children:[(0,Q.jsxs)(x.ZP.Group,{disabled:$||!(null!=q&&null!==(n=q.homework_status)&&void 0!==n&&n.includes("未发布"))||(0,k.Rm)()&&!(null!==(t=W.AssistantObject.practice)&&void 0!==t&&t.can_publish),value:me.unified_setting,onChange:function(e){var n;null!=q&&null!==(n=q.homework_status)&&void 0!==n&&n.includes("未发布")?(me.unified_setting=!me.unified_setting,me.unified_setting||(me.unified_late=!1,ge([{late_penalty:5}])),fe(Object.assign({},me)),!1!==me.unified_setting||""!=ae?me.unified_setting&&(oe([]),ge([{late_penalty:5}])):oe(ae.concat({}))):f.ZP.error("已发布,不能再修改统一设置")},children:[(0,Q.jsx)(x.ZP,{value:!0,disabled:$||!(null!=G&&G.manage_all_group),style:{marginRight:"50px"},children:"统一发布"}),(0,Q.jsx)(x.ZP,{disabled:$||!(null!=G&&null!==(i=G.group_settings)&&void 0!==i&&i.length),value:!1,children:"分班发布"})]}),0===(null==G||null===(r=G.group_settings)||void 0===r?void 0:r.length)&&(0,Q.jsx)("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"},children:"(本课堂无分班,仅支持选择“统一发布“)"})]}),me.unified_setting&&(0,Q.jsxs)("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"},children:[(0,Q.jsxs)(y.Z,{align:"middle",children:[(0,Q.jsx)(b.Z,{style:{marginLeft:"23px"},children:"发布时间"}),(0,Q.jsx)(b.Z,{className:"ml10",children:(0,Q.jsx)(p.default,{size:"large",disabled:$||!(null!=q&&null!==(a=q.homework_status)&&void 0!==a&&a.includes("未发布")||null!=q&&null!==(u=q.homework_status)&&void 0!==u&&u.includes("未开始"))||(0,k.Rm)()&&!(null!==(c=W.AssistantObject.practice)&&void 0!==c&&c.can_publish),style:{width:170},placeholder:"请选择发布时间",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:function(e){return T(e,null==G?void 0:G.course_end_date)},disabledTime:function(e){return V(e)},value:me.publish_time?I()(me.publish_time):"",onChange:function(e,n){me.publish_time=n,""!=me.end_time&&me.end_time||!me.unified_setting||(me.end_time=I()(e).add(1,"month").format("YYYY-MM-DD HH:mm:ss")),fe(Object.assign({},me))}})}),(0,Q.jsx)(b.Z,{children:(0,Q.jsx)("span",{className:"c-grey-c ml10",children:"(学生收到作业的时间)"})})]}),(0,Q.jsxs)(y.Z,{align:"middle",className:"pl30",children:[(0,Q.jsx)(b.Z,{children:"截止时间"}),(0,Q.jsx)(b.Z,{className:"ml10",children:(0,Q.jsx)(p.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:I()((0,B.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(null==G?void 0:G.allow_late)&&(null==G?void 0:G.homework_status.includes("已截止"))||$||(null==G?void 0:G.allow_late)&&I()()>=I()(null==G?void 0:G.end_time)||(0,k.Rm)()&&!(null!==(C=W.AssistantObject.practice)&&void 0!==C&&C.can_publish),disabledDate:function(e){return T(e,null==G?void 0:G.course_end_date,me.publish_time)},disabledTime:function(e){return V(e,me.publish_time)},value:me.end_time?I()(me.end_time):"",onChange:function(e,n){me.end_time=n,fe(Object.assign({},me))}})}),(0,Q.jsx)(b.Z,{children:(0,Q.jsx)("span",{className:"c-grey-c ml10",children:"(学生“按时”提交作品的时间截点)"})})]})]}),!me.unified_setting&&(null===(M=ae)||void 0===M?void 0:M.length)>0&&(0,Q.jsx)(y.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"},children:ae&&ae.map((function(e,n){var t,i,l,r,s,a,u,c,g,A,p;return(0,Q.jsx)(b.Z,{span:24,children:(0,Q.jsxs)(y.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:n==(null===(t=ae)||void 0===t?void 0:t.length)-1?"0px":"10px"},children:[(0,Q.jsxs)("div",{style:{width:"75px",marginLeft:"27px"},children:["发布规则",n+1]}),(0,Q.jsx)(m.default,{disabled:$||!(null!=q&&null!==(i=q.homework_status)&&void 0!==i&&i.includes("未发布")&&e.id||I()()0&&(0,Q.jsx)(x.ZP,{value:!1,children:"分班补交"})]})]}),null!=me&&me.unified_late?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(y.Z,{align:"middle",style:{marginTop:"15px"},children:[(0,Q.jsx)(b.Z,{style:{width:"110px",textAlign:"right"},children:"补交截止时间"}),(0,Q.jsx)(b.Z,{className:"ml20",children:(0,Q.jsx)(p.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:I()((0,B.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:$||be,value:me.late_time?I()(me.late_time):"",disabledDate:function(e){return T(e,null==G?void 0:G.course_end_date)},onChange:function(e,n){var t;!(0,k.Rm)()||null!==(t=W.AssistantObject.practice)&&void 0!==t&&t.can_late?(me.late_time=n,fe(Object.assign({},me))):f.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}})}),(0,Q.jsx)(b.Z,{children:(0,Q.jsx)("span",{className:"c-grey-c ml10",children:"(学生“延时”提交作品的时间截点)"})})]}),(0,Q.jsxs)(y.Z,{align:"middle",style:{marginTop:"10px"},children:[(0,Q.jsx)(b.Z,{style:{width:"110px",textAlign:"right"},children:"补交扣分"}),(0,Q.jsx)(b.Z,{className:"ml20",children:(0,Q.jsx)(F.Z,{percentType:"radio",disabled:$||be,value:{type:me.penalty_type,inputValue:me.late_penalty},onChange:function(e){var n;!(0,k.Rm)()||null!==(n=W.AssistantObject.practice)&&void 0!==n&&n.can_late?fe(d()(d()({},me),{},{late_penalty:e.inputValue,penalty_type:e.type})):f.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}})})]}),(0,Q.jsx)("div",{style:{color:"#CA7720",marginLeft:"130px"},children:me.penalty_type===F.Q.Number?"如:补交前学生得分60分,在补交阶段获得分数40分,补交扣除20分数,则该学生得分为:60+40-20=80分":"如:补交前学生得分60分,在补交阶段获得分数40分,补交扣除30%分数,则该学生得分为:60+(40-(40*30%))=88分"})]}):ce.map((function(e,n){var t;return(0,Q.jsx)(b.Z,{span:24,children:(0,Q.jsxs)(y.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"},children:[(0,Q.jsxs)("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"},children:["补交规则",n+1]}),(0,Q.jsx)(m.default,{disabled:$||!(null!=q&&null!==(t=q.homework_status)&&void 0!==t&&t.includes("未发布"))&&e.id||(null==G?void 0:G.anonymous_comment),mode:"multiple",className:O.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:"string"==typeof e.group_name?[e.group_name]:e.group_name,placeholder:"请选择分班名称",onChange:function(t){var i;!(0,k.Rm)()||null!==(i=W.AssistantObject.practice)&&void 0!==i&&i.can_late?(ce[n].group_name=t,ce[n].group_id=e.group_id,ge(ce.slice())):f.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:G.group_settings&&G.group_settings.map((function(e){var n=ce.map((function(e){return e.group_name})).flat(),t=ae.map((function(e){return e.group_name})).flat();if(null!=me&&me.unified_setting){if(!n.includes(e.group_name))return(0,Q.jsx)(S,{value:e.group_name,children:e.group_name},e.id)}else if(t.includes(e.group_name)&&!n.includes(e.group_name))return(0,Q.jsx)(S,{value:e.group_name,children:e.group_name},e.id)}))}),(0,Q.jsx)("div",{className:"ml20 mr10",children:"补交扣分"}),(0,Q.jsx)(F.Z,{disabled:$||we(e.id),value:{type:e.penalty_type,inputValue:e.late_penalty},onChange:function(e){var t;!(0,k.Rm)()||null!==(t=W.AssistantObject.practice)&&void 0!==t&&t.can_late?(ce[n].late_penalty=e.inputValue,ce[n].penalty_type=e.type,ge(o()(ce))):f.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),(0,Q.jsx)("div",{className:"ml20 mr10",children:"补交截止时间"}),(0,Q.jsx)(p.default,{size:"large",disabled:$||we(e.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:I()((0,B.U6)(),"HH:mm")},placeholder:"请选择截止时间",disabledDate:function(e){return T(e,null==G?void 0:G.course_end_date)},format:"YYYY-MM-DD HH:mm",value:null!=e&&e.late_time?I()(e.late_time):void 0,onChange:function(e,t){var i;!(0,k.Rm)()||null!==(i=W.AssistantObject.practice)&&void 0!==i&&i.can_late?(ce[n].late_time=t,ge(o()(ce))):f.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),!$&&(0,Q.jsxs)("div",{style:{display:"flex",width:"50px"},children:[(0,Q.jsx)("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:function(){var e;!(0,k.Rm)()||null!==(e=W.AssistantObject.practice)&&void 0!==e&&e.can_late?ge(ce.concat({penalty_type:F.Q.Percent,late_penalty:20})):f.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),n>0&&!e.id&&(0,Q.jsx)("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:function(){var e;!(0,k.Rm)()||null!==(e=W.AssistantObject.practice)&&void 0!==e&&e.can_late?(ce=ce.filter((function(e,t){return n!==t})),ge(ce.slice()),setTimeout((function(){return ge(ce.slice())}),10)):f.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}})]})]})},n)}))]}),(0,Q.jsx)(_.Z,{}),(0,Q.jsxs)(y.Z,{children:[(0,Q.jsx)(b.Z,{children:(0,Q.jsx)("strong",{children:"评测限制"})}),(0,Q.jsx)(b.Z,{span:24,className:"mt15 pl30",children:(0,Q.jsx)(j.Z,{disabled:$||ye,checked:me.work_end_forbid_evaluate,onChange:function(e){me.work_end_forbid_evaluate=e.target.checked,fe(Object.assign({},me))},children:(0,Q.jsx)("strong",{children:"勾选后,作业截止后禁止评测"})})})]}),!$&&(0,Q.jsx)(Q.Fragment,{children:(0,Q.jsx)(Z.ZP,{type:"primary",size:"large",loading:ie,style:{width:"138px",marginTop:"30px"},onClick:function(){return function(){var e,n,t;if(2!==(null==H||null===(e=H.userInfo)||void 0===e?void 0:e.user_status)){var i=JSON.parse(JSON.stringify(me));if(i.challenge_settings.filter((function(e){return!e.hide})),i.categoryId=Y.categoryId,null!==(n=i.challenge_settings)&&void 0!==n&&n.every((function(e){return!e.checked})))f.ZP.warning("关卡不能全部设置为可不做");else{if(console.log(ae),me.unified_setting){if(!me.publish_time||!me.end_time)throw f.ZP.error("发布截止时间不能为空"),new String("发布截止时间不能为空")}else ae=null===(t=ae)||void 0===t?void 0:t.map((function(e){var n;if(!e.publish_time||!e.end_time)throw f.ZP.error("请把发布时间填写完整"),new String("请把发布时间填写完整");if(!e.group_name)throw f.ZP.error("请选择分班名称"),new String("请选择分班名称");return e.group_name="string"==typeof(null==e?void 0:e.group_name)?[null==e?void 0:e.group_name]:null==e?void 0:e.group_name,e.group_id=null===(n=G.group_settings)||void 0===n?void 0:n.filter((function(n){var t;return null==e||null===(t=e.group_name)||void 0===t?void 0:t.includes(n.group_name)})).map((function(e){return e.group_id||e.id})).toString().split(","),e}));if(i.group_settings=ae,me.allow_late)if(me.unified_late){if(null===me.late_penalty||void 0===me.late_penalty||me.late_penalty<0||me.late_penalty>100)throw f.ZP.error("迟交扣分填写区间为0~100"),new String("迟交扣分填写区间为0~100");if(!me.late_time)throw f.ZP.error("请把截止时间填写完整"),new String("请把截止时间填写完整")}else{var l;ce=null===(l=ce)||void 0===l?void 0:l.map((function(e){var n;if(null===e.late_penalty||void 0===e.late_penalty||e.late_penalty<0||e.late_penalty>100)throw f.ZP.error("迟交扣分填写区间为0~100"),new String("迟交扣分填写区间为0~100");if(!e.late_time)throw f.ZP.error("请把截止时间填写完整"),new String("请把截止时间填写完整");if(!e.group_name)throw f.ZP.error("请选择分班名称"),new String("请选择分班名称");return e.group_name="string"==typeof(null==e?void 0:e.group_name)?[null==e?void 0:e.group_name]:null==e?void 0:e.group_name,e.group_id=null==e||null===(n=e.group_name)||void 0===n||null===(n=n.map((function(e){var n,t=null===(n=G.group_settings)||void 0===n||null===(n=n.filter((function(n){return(null==n?void 0:n.group_name)===e})))||void 0===n?void 0:n[0];return null==t?void 0:t.group_id})))||void 0===n?void 0:n.toString().split(","),e})),i.allow_late_settings=ce}ve(i)}}else(0,L.Rd)()}()},children:"保存"})})]})}))},19421:function(e,n,t){t.d(n,{rX:function(){return Z},pW:function(){return C},gy:function(){return I},xY:function(){return j},O5:function(){return _},tJ:function(){return v},o1:function(){return x},Rd:function(){return w}});var i=t(7557),l=t.n(i),r=t(41498),s=t.n(r),a=t(5296),o=t(43418),u=t(28103),d=t(8591),c=t(93697),g=t(21082),A=t(680),p=t(25510),m=t.p+"static/newqrcode.a8740efb.png",f=t(32637),h=t(37712),v=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!x(e)||!y(n))},x=function(e){return!!(0,c.bg)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},y=function(){var e,n=(0,a.getDvaApp)()._store.getState(),t=n.user;return!(null===(e=t.userInfo)||void 0===e||!e.profile_completed)||(o.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,g.xg)("/account/profile/edit"),b()}}),!1)},b=function(){o.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料?请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},w=function(){o.Z.warning({title:"提示",icon:null,width:400,content:(0,h.jsxs)("div",{style:{textAlign:"center"},children:[(0,h.jsx)("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"},children:"老师您好,您的课堂试用期已结束,相关功能被限制。 如需继续使用,请尽快对接人工支持!"}),(0,h.jsx)("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:f}),(0,h.jsx)("div",{style:{color:"#666666",fontSize:14,marginTop:15},children:"添加客服人员微信,获得更多支持"})]})})},_=function(){var e;return!(null===(e=(0,a.getDvaApp)()._store.getState().user.userInfo)||void 0===e||!e.professional_certification)||(o.Z.confirm({title:"提示",centered:!0,content:(0,h.jsx)("div",{className:"tc",children:"您需要去完成您的职业认证,才能使用此功能"}),okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,g.xg)("/account/certification")}}),!1)},j=function(){return!!(0,c.V9)()||(o.Z.warning({centered:!0,width:530,title:"提示",content:(0,h.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,h.jsx)("p",{children:"扫码加头歌助教,申请操作权限"}),(0,h.jsx)("img",{src:m,width:200})]}),okText:"我知道了",maskClosable:!0}),!1)},Z=function(e,n){return!!e||(o.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,h.jsxs)("div",{children:[(0,h.jsx)("p",{children:n||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"}),(0,h.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,h.jsx)("img",{src:"data:image/png;base64,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",width:200}),(0,h.jsxs)("div",{style:{marginLeft:"35px"},children:["群号:","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,g.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},C=function(e){o.Z.info({title:"联系平台运营",icon:null,width:615,centered:!0,content:(0,h.jsxs)("div",{children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("p",{style:{color:"#191919",fontWeight:400,fontSize:14},children:"“保存实验临时数据”功能为付费功能,请联系平台运营进行开通。"}),(0,h.jsx)(u.Z,{}),(0,h.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,h.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"1"})," 因平台的实验数据储存容量和成本消耗较大,实践项目默认保存实验环境中临时数据 ",(0,h.jsx)("a",{children:e}),"天。"]}),(0,h.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,h.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"2"}),"若您需要个性化的数据保存周期服务,我们可以提供相关技术支持,并根据您的需求收取定制费用。"]})]}),(0,h.jsx)("div",{style:{textAlign:"center",marginTop:30},children:(0,h.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:p,alt:"二维码",width:160})})]})})},I=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(0,a.getDvaApp)()._store.getState(),i=t.shixunsDetail.detail;if(2===(null==i?void 0:i.public)||1===(null==i?void 0:i.public)||3===(null==i?void 0:i.shixun_status)){var r="";return 2===(null==i?void 0:i.public)&&(r="已公开"),1===(null==i?void 0:i.public)&&(r="待审核"),3===(null==i?void 0:i.shixun_status)&&(r="已关闭"),o.Z.info({centered:!0,icon:(0,h.jsx)(A.Z,{style:{color:"#faad14"}}),width:460,title:"提示",content:(0,h.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,h.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"},children:[(0,h.jsxs)("span",{children:["该实践项目的状态为",r,",",n,"。"]}),(0,h.jsx)("p",{children:"如有需要,请联系平台管理员进行技术支持。"})]}),(0,h.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:p,alt:"二维码",width:160})]}),okText:"我知道了"}),!0}return 2===(null==i?void 0:i.shixun_status)&&(o.Z.confirm({centered:!0,icon:(0,h.jsx)(A.Z,{}),title:"提示",content:(0,h.jsxs)("div",{children:[(0,h.jsxs)("span",{children:["该实践项目已发布,",n,"。"]}),(0,h.jsx)("br",{}),(0,h.jsx)("span",{children:"如有需要,您可以撤销发布后,再进行操作。"})]}),okText:"撤销发布",cancelText:"取消",onOk:function(){var n;o.Z.confirm({width:440,centered:!0,icon:(0,h.jsx)(A.Z,{style:{color:"#faad14"}}),title:"提示",content:"撤销发布后,学员将无法进行练习。是否确认撤销发布?",okText:"确定撤销发布",cancelText:"取消",onOk:(n=s()(l()().mark((function n(){return l()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e({type:"shixunsDetail/cancelRelease",payload:{id:null==i?void 0:i.identifier}});case 2:401!==n.sent.status&&(d.ZP.success("撤销发布成功。实训回到未发布的状态。"),e({type:"shixunsDetail/getShixunsDetail",payload:{id:null==i?void 0:i.identifier}}),e({type:"practiceSetting/getCommonData",payload:{id:null==i?void 0:i.identifier}}));case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})}}),!0)}},29156:function(e,n){n.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl"}},32637:function(e,n,t){e.exports=t.p+"static/AssistantCode3.a8740efb.jpeg"}}]); \ No newline at end of file diff --git a/87083.3642a35b.async.js b/87083.3642a35b.async.js new file mode 100644 index 0000000000..d57c4d6919 --- /dev/null +++ b/87083.3642a35b.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[87083],{40010:function(e,n,t){t.d(n,{Q:function(){return d}});var i=t(79800),l=t.n(i),r=t(59301),s=t(57809),a=t(5112),o=t(94001),u=t(37712),d=function(e){return e[e.Number=1]="Number",e[e.Percent=2]="Percent",e}({});n.Z=function(e){var n=e.value,t=e.onChange,i=e.disabled,c=e.hidePercentOption,g=void 0!==c&&c,A=e.percentType,p=void 0===A?"select":A,m=(0,r.useMemo)((function(){return g?d.Number:d.Percent}),[g]),f=(0,r.useState)(m),h=l()(f,2),v=h[0],x=h[1];console.log(v);var y=(0,r.useCallback)((function(e){if(v===d.Number){var n=e.replace("分","");return isNaN(parseInt(n,10))?0:n}return e.replace("%","")}),[v]);return(0,r.useEffect)((function(){x(n.type)}),[n]),(0,u.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["select"==p&&(0,u.jsx)(s.default,{size:"large",onChange:function(e){x(e),t({type:e,inputValue:e===d.Number?5:20})},value:v||m,style:{width:100},options:g?[{label:"分值",value:d.Number}]:[{label:"百分比",value:d.Percent},{label:"分值",value:d.Number}],disabled:i}),"radio"==p&&(0,u.jsxs)(a.ZP.Group,{size:"large",onChange:function(e){var n=e.target.value;x(n),t({type:n,inputValue:n===d.Number?5:20})},value:v||m,disabled:i,children:[!g&&(0,u.jsx)(a.ZP,{value:d.Percent,style:{marginRight:"50px"},children:"百分比扣分"}),(0,u.jsx)(a.ZP,{value:d.Number,children:"固定分值"})]}),"radio"==p&&(0,u.jsx)("div",{style:{marginRight:"10px",color:"#000000"},children:d.Percent==n.type?"扣除补交阶段得分的":"扣除总成绩的"}),(0,u.jsx)(o.Z,{size:"large",disabled:i,value:n.inputValue,style:{width:"120px"},parser:y,addonAfter:n.type===d.Number?"分":"%",max:v===d.Percent?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:function(e){t({type:v,inputValue:e})}}),"radio"==p&&d.Percent==n.type&&(0,u.jsx)("div",{style:{marginLeft:"10px",color:"#000000"},children:"分数"})]})}},63363:function(e,n,t){t.d(n,{Q8:function(){return T},d0:function(){return V},w6:function(){return M}});var i=t(7557),l=t.n(i),r=t(41498),s=t.n(r),a=t(37205),o=t.n(a),u=t(82242),d=t.n(u),c=t(79800),g=t.n(c),A=t(59301),p=t(57930),m=t(57809),f=t(8591),h=t(43418),v=t(6848),x=t(5112),y=t(95237),b=t(43604),w=t(78673),_=t(28103),j=t(24905),Z=t(3113),C=t(61186),I=t.n(C),k=t(93697),P=t(18030),N=t(89392),B=t(21082),O=t(29156),z=t(5296),F=t(40010),L=t(19421),Q=t(37712);function M(e,n){for(var t=[],i=e;iI()(n).endOf("day"),r=e2&&void 0!==arguments[2]?arguments[2]:"group_id";return n?n.find((function(n){return n[i]===e})):null==G||null===(t=G.group_settings)||void 0===t?void 0:t.find((function(n){return n.group_id[0]===e}))},ye=((null==G?void 0:G.allow_late)||(null==G||G.anonymous_comment),(0,A.useMemo)((function(){return(null==G?void 0:G.allow_late)||(null==G?void 0:G.all_group_late)}),[G,q])),be=null==G?void 0:G.anonymous_comment,we=function(e){if(!e)return!1;var n=xe(e,null==G?void 0:G.anonymous_comment_settings);return(null==G?void 0:G.anonymous_comment)&&n&&null!==(null==n?void 0:n.evaluation_start)};return(0,Q.jsxs)("section",{className:O.Z.form,children:[(0,Q.jsxs)("div",{className:O.Z.title,children:["作业发布",(0,Q.jsx)(v.Z,{title:"设置作业的发布规则,设置后,学生只能在规定时间内提交作业",children:(0,Q.jsx)("i",{className:"iconfont icon-tishixiaowenhao ".concat(O.Z.title_icon)})})]}),(0,Q.jsxs)("div",{children:[(0,Q.jsxs)("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"},children:[(0,Q.jsxs)(x.ZP.Group,{disabled:$||!(null!=q&&null!==(n=q.homework_status)&&void 0!==n&&n.includes("未发布"))||(0,k.Rm)()&&!(null!==(t=W.AssistantObject.practice)&&void 0!==t&&t.can_publish),value:me.unified_setting,onChange:function(e){var n;null!=q&&null!==(n=q.homework_status)&&void 0!==n&&n.includes("未发布")?(me.unified_setting=!me.unified_setting,me.unified_setting||(me.unified_late=!1,ge([{late_penalty:5}])),fe(Object.assign({},me)),!1!==me.unified_setting||""!=ae?me.unified_setting&&(oe([]),ge([{late_penalty:5}])):oe(ae.concat({}))):f.ZP.error("已发布,不能再修改统一设置")},children:[(0,Q.jsx)(x.ZP,{value:!0,disabled:$||!(null!=G&&G.manage_all_group),style:{marginRight:"50px"},children:"统一发布"}),(0,Q.jsx)(x.ZP,{disabled:$||!(null!=G&&null!==(i=G.group_settings)&&void 0!==i&&i.length),value:!1,children:"分班发布"})]}),0===(null==G||null===(r=G.group_settings)||void 0===r?void 0:r.length)&&(0,Q.jsx)("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"},children:"(本课堂无分班,仅支持选择“统一发布“)"})]}),me.unified_setting&&(0,Q.jsxs)("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"},children:[(0,Q.jsxs)(y.Z,{align:"middle",children:[(0,Q.jsx)(b.Z,{style:{marginLeft:"23px"},children:"发布时间"}),(0,Q.jsx)(b.Z,{className:"ml10",children:(0,Q.jsx)(p.default,{size:"large",disabled:$||!(null!=q&&null!==(a=q.homework_status)&&void 0!==a&&a.includes("未发布")||null!=q&&null!==(u=q.homework_status)&&void 0!==u&&u.includes("未开始"))||(0,k.Rm)()&&!(null!==(c=W.AssistantObject.practice)&&void 0!==c&&c.can_publish),style:{width:170},placeholder:"请选择发布时间",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:function(e){return T(e,null==G?void 0:G.course_end_date)},disabledTime:function(e){return V(e)},value:me.publish_time?I()(me.publish_time):"",onChange:function(e,n){me.publish_time=n,""!=me.end_time&&me.end_time||!me.unified_setting||(me.end_time=I()(e).add(1,"month").format("YYYY-MM-DD HH:mm:ss")),fe(Object.assign({},me))}})}),(0,Q.jsx)(b.Z,{children:(0,Q.jsx)("span",{className:"c-grey-c ml10",children:"(学生收到作业的时间)"})})]}),(0,Q.jsxs)(y.Z,{align:"middle",className:"pl30",children:[(0,Q.jsx)(b.Z,{children:"截止时间"}),(0,Q.jsx)(b.Z,{className:"ml10",children:(0,Q.jsx)(p.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:I()((0,B.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(null==G?void 0:G.allow_late)&&(null==G?void 0:G.homework_status.includes("已截止"))||$||(null==G?void 0:G.allow_late)&&I()()>=I()(null==G?void 0:G.end_time)||(0,k.Rm)()&&!(null!==(C=W.AssistantObject.practice)&&void 0!==C&&C.can_publish),disabledDate:function(e){return T(e,null==G?void 0:G.course_end_date,me.publish_time)},disabledTime:function(e){return V(e,me.publish_time)},value:me.end_time?I()(me.end_time):"",onChange:function(e,n){me.end_time=n,fe(Object.assign({},me))}})}),(0,Q.jsx)(b.Z,{children:(0,Q.jsx)("span",{className:"c-grey-c ml10",children:"(学生“按时”提交作品的时间截点)"})})]})]}),!me.unified_setting&&(null===(M=ae)||void 0===M?void 0:M.length)>0&&(0,Q.jsx)(y.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"},children:ae&&ae.map((function(e,n){var t,i,l,r,s,a,u,c,g,A,p;return(0,Q.jsx)(b.Z,{span:24,children:(0,Q.jsxs)(y.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:n==(null===(t=ae)||void 0===t?void 0:t.length)-1?"0px":"10px"},children:[(0,Q.jsxs)("div",{style:{width:"75px",marginLeft:"27px"},children:["发布规则",n+1]}),(0,Q.jsx)(m.default,{disabled:$||!(null!=q&&null!==(i=q.homework_status)&&void 0!==i&&i.includes("未发布")&&e.id||I()()0&&(0,Q.jsx)(x.ZP,{value:!1,children:"分班补交"})]})]}),null!=me&&me.unified_late?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(y.Z,{align:"middle",style:{marginTop:"15px"},children:[(0,Q.jsx)(b.Z,{style:{width:"110px",textAlign:"right"},children:"补交截止时间"}),(0,Q.jsx)(b.Z,{className:"ml20",children:(0,Q.jsx)(p.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:I()((0,B.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:$||be,value:me.late_time?I()(me.late_time):"",disabledDate:function(e){return T(e,null==G?void 0:G.course_end_date)},onChange:function(e,n){var t;!(0,k.Rm)()||null!==(t=W.AssistantObject.practice)&&void 0!==t&&t.can_late?(me.late_time=n,fe(Object.assign({},me))):f.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}})}),(0,Q.jsx)(b.Z,{children:(0,Q.jsx)("span",{className:"c-grey-c ml10",children:"(学生“延时”提交作品的时间截点)"})})]}),(0,Q.jsxs)(y.Z,{align:"middle",style:{marginTop:"10px"},children:[(0,Q.jsx)(b.Z,{style:{width:"110px",textAlign:"right"},children:"补交扣分"}),(0,Q.jsx)(b.Z,{className:"ml20",children:(0,Q.jsx)(F.Z,{percentType:"radio",disabled:$||be,value:{type:me.penalty_type,inputValue:me.late_penalty},onChange:function(e){var n;!(0,k.Rm)()||null!==(n=W.AssistantObject.practice)&&void 0!==n&&n.can_late?fe(d()(d()({},me),{},{late_penalty:e.inputValue,penalty_type:e.type})):f.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}})})]}),(0,Q.jsx)("div",{style:{color:"#CA7720",marginLeft:"130px"},children:me.penalty_type===F.Q.Number?"如:补交前学生得分60分,在补交阶段获得分数40分,补交扣除20分数,则该学生得分为:60+40-20=80分":"如:补交前学生得分60分,在补交阶段获得分数40分,补交扣除30%分数,则该学生得分为:60+(40-(40*30%))=88分"})]}):ce.map((function(e,n){var t;return(0,Q.jsx)(b.Z,{span:24,children:(0,Q.jsxs)(y.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"},children:[(0,Q.jsxs)("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"},children:["补交规则",n+1]}),(0,Q.jsx)(m.default,{disabled:$||!(null!=q&&null!==(t=q.homework_status)&&void 0!==t&&t.includes("未发布"))&&e.id||(null==G?void 0:G.anonymous_comment),mode:"multiple",className:O.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:"string"==typeof e.group_name?[e.group_name]:e.group_name,placeholder:"请选择分班名称",onChange:function(t){var i;!(0,k.Rm)()||null!==(i=W.AssistantObject.practice)&&void 0!==i&&i.can_late?(ce[n].group_name=t,ce[n].group_id=e.group_id,ge(ce.slice())):f.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:G.group_settings&&G.group_settings.map((function(e){var n=ce.map((function(e){return e.group_name})).flat(),t=ae.map((function(e){return e.group_name})).flat();if(null!=me&&me.unified_setting){if(!n.includes(e.group_name))return(0,Q.jsx)(S,{value:e.group_name,children:e.group_name},e.id)}else if(t.includes(e.group_name)&&!n.includes(e.group_name))return(0,Q.jsx)(S,{value:e.group_name,children:e.group_name},e.id)}))}),(0,Q.jsx)("div",{className:"ml20 mr10",children:"补交扣分"}),(0,Q.jsx)(F.Z,{disabled:$||we(e.id),value:{type:e.penalty_type,inputValue:e.late_penalty},onChange:function(e){var t;!(0,k.Rm)()||null!==(t=W.AssistantObject.practice)&&void 0!==t&&t.can_late?(ce[n].late_penalty=e.inputValue,ce[n].penalty_type=e.type,ge(o()(ce))):f.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),(0,Q.jsx)("div",{className:"ml20 mr10",children:"补交截止时间"}),(0,Q.jsx)(p.default,{size:"large",disabled:$||we(e.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:I()((0,B.U6)(),"HH:mm")},placeholder:"请选择截止时间",disabledDate:function(e){return T(e,null==G?void 0:G.course_end_date)},format:"YYYY-MM-DD HH:mm",value:null!=e&&e.late_time?I()(e.late_time):void 0,onChange:function(e,t){var i;!(0,k.Rm)()||null!==(i=W.AssistantObject.practice)&&void 0!==i&&i.can_late?(ce[n].late_time=t,ge(o()(ce))):f.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),!$&&(0,Q.jsxs)("div",{style:{display:"flex",width:"50px"},children:[(0,Q.jsx)("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:function(){var e;!(0,k.Rm)()||null!==(e=W.AssistantObject.practice)&&void 0!==e&&e.can_late?ge(ce.concat({penalty_type:F.Q.Percent,late_penalty:20})):f.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),n>0&&!e.id&&(0,Q.jsx)("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:function(){var e;!(0,k.Rm)()||null!==(e=W.AssistantObject.practice)&&void 0!==e&&e.can_late?(ce=ce.filter((function(e,t){return n!==t})),ge(ce.slice()),setTimeout((function(){return ge(ce.slice())}),10)):f.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}})]})]})},n)}))]}),(0,Q.jsx)(_.Z,{}),(0,Q.jsxs)(y.Z,{children:[(0,Q.jsx)(b.Z,{children:(0,Q.jsx)("strong",{children:"评测限制"})}),(0,Q.jsx)(b.Z,{span:24,className:"mt15 pl30",children:(0,Q.jsx)(j.Z,{disabled:$||ye,checked:me.work_end_forbid_evaluate,onChange:function(e){me.work_end_forbid_evaluate=e.target.checked,fe(Object.assign({},me))},children:(0,Q.jsx)("strong",{children:"勾选,作业截止后禁止评测"})})})]}),!$&&(0,Q.jsx)(Q.Fragment,{children:(0,Q.jsx)(Z.ZP,{type:"primary",size:"large",loading:ie,style:{width:"138px",marginTop:"30px"},onClick:function(){return function(){var e,n,t;if(2!==(null==H||null===(e=H.userInfo)||void 0===e?void 0:e.user_status)){var i=JSON.parse(JSON.stringify(me));if(i.challenge_settings.filter((function(e){return!e.hide})),i.categoryId=Y.categoryId,null!==(n=i.challenge_settings)&&void 0!==n&&n.every((function(e){return!e.checked})))f.ZP.warning("关卡不能全部设置为可不做");else{if(console.log(ae),me.unified_setting){if(!me.publish_time||!me.end_time)throw f.ZP.error("发布截止时间不能为空"),new String("发布截止时间不能为空")}else ae=null===(t=ae)||void 0===t?void 0:t.map((function(e){var n;if(!e.publish_time||!e.end_time)throw f.ZP.error("请把发布时间填写完整"),new String("请把发布时间填写完整");if(!e.group_name)throw f.ZP.error("请选择分班名称"),new String("请选择分班名称");return e.group_name="string"==typeof(null==e?void 0:e.group_name)?[null==e?void 0:e.group_name]:null==e?void 0:e.group_name,e.group_id=null===(n=G.group_settings)||void 0===n?void 0:n.filter((function(n){var t;return null==e||null===(t=e.group_name)||void 0===t?void 0:t.includes(n.group_name)})).map((function(e){return e.group_id||e.id})).toString().split(","),e}));if(i.group_settings=ae,me.allow_late)if(me.unified_late){if(null===me.late_penalty||void 0===me.late_penalty||me.late_penalty<0||me.late_penalty>100)throw f.ZP.error("迟交扣分填写区间为0~100"),new String("迟交扣分填写区间为0~100");if(!me.late_time)throw f.ZP.error("请把截止时间填写完整"),new String("请把截止时间填写完整")}else{var l;ce=null===(l=ce)||void 0===l?void 0:l.map((function(e){var n;if(null===e.late_penalty||void 0===e.late_penalty||e.late_penalty<0||e.late_penalty>100)throw f.ZP.error("迟交扣分填写区间为0~100"),new String("迟交扣分填写区间为0~100");if(!e.late_time)throw f.ZP.error("请把截止时间填写完整"),new String("请把截止时间填写完整");if(!e.group_name)throw f.ZP.error("请选择分班名称"),new String("请选择分班名称");return e.group_name="string"==typeof(null==e?void 0:e.group_name)?[null==e?void 0:e.group_name]:null==e?void 0:e.group_name,e.group_id=null==e||null===(n=e.group_name)||void 0===n||null===(n=n.map((function(e){var n,t=null===(n=G.group_settings)||void 0===n||null===(n=n.filter((function(n){return(null==n?void 0:n.group_name)===e})))||void 0===n?void 0:n[0];return null==t?void 0:t.group_id})))||void 0===n?void 0:n.toString().split(","),e})),i.allow_late_settings=ce}ve(i)}}else(0,L.Rd)()}()},children:"保存"})})]})}))},19421:function(e,n,t){t.d(n,{rX:function(){return Z},pW:function(){return C},gy:function(){return I},xY:function(){return j},O5:function(){return _},tJ:function(){return v},o1:function(){return x},Rd:function(){return w}});var i=t(7557),l=t.n(i),r=t(41498),s=t.n(r),a=t(5296),o=t(43418),u=t(28103),d=t(8591),c=t(93697),g=t(21082),A=t(680),p=t(25510),m=t.p+"static/newqrcode.a8740efb.png",f=t(32637),h=t(37712),v=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!x(e)||!y(n))},x=function(e){return!!(0,c.bg)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},y=function(){var e,n=(0,a.getDvaApp)()._store.getState(),t=n.user;return!(null===(e=t.userInfo)||void 0===e||!e.profile_completed)||(o.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,g.xg)("/account/profile/edit"),b()}}),!1)},b=function(){o.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料?请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},w=function(){o.Z.warning({title:"提示",icon:null,width:400,content:(0,h.jsxs)("div",{style:{textAlign:"center"},children:[(0,h.jsx)("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"},children:"老师您好,您的课堂试用期已结束,相关功能被限制。 如需继续使用,请尽快对接人工支持!"}),(0,h.jsx)("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:f}),(0,h.jsx)("div",{style:{color:"#666666",fontSize:14,marginTop:15},children:"添加客服人员微信,获得更多支持"})]})})},_=function(){var e;return!(null===(e=(0,a.getDvaApp)()._store.getState().user.userInfo)||void 0===e||!e.professional_certification)||(o.Z.confirm({title:"提示",centered:!0,content:(0,h.jsx)("div",{className:"tc",children:"您需要去完成您的职业认证,才能使用此功能"}),okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,g.xg)("/account/certification")}}),!1)},j=function(){return!!(0,c.V9)()||(o.Z.warning({centered:!0,width:530,title:"提示",content:(0,h.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,h.jsx)("p",{children:"扫码加头歌助教,申请操作权限"}),(0,h.jsx)("img",{src:m,width:200})]}),okText:"我知道了",maskClosable:!0}),!1)},Z=function(e,n){return!!e||(o.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,h.jsxs)("div",{children:[(0,h.jsx)("p",{children:n||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"}),(0,h.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,h.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABgILAMgwe5cwJ5O3jVtaWgp+z8KKW+bOPvjuwq1bMaTD+OLG2+ks2/aSSS78FTMcYQEAIQgsACADgQUAZCCwAIAMBBYAkIHAAgAyLBnW4CxnS/fb9k4r7nk7W8LBClZUQbBiYIEVI2ycnXjFIjjCAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQU4bAGK25Fu/Besm03wm27i2/bEATbNmTbN6QoRzDkhCMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5F7Xpnpy2w7Ta8bawo4eDC6RVIf0YmufBXzCwKLIvaCgC2ceevGKeEAEAGAgsAyEBgAQAZCCwAIMPsRfdVq1aFw2GrW7llyxZ7dgfACEToV8ydvd9vkhV1CPBOvHOkvdNZeY0IwSkhAJCBwAIAMhBYAEAGAgsAyEBgAQAZCCwAICOPcVhUnke3rcg/lYktbLuT7eyet+0zIo16j3CEBQBkILAAgAwEFgCQgcACADIQWABABgILAMjIo1pDHit19K6zFXfxXTiwgMqz+FZ004Wc/YidHSJjsuILqjUAQHFCYAEAGQgsACADgQUAZCCwAIAMBBYAkGF21hxnKxZQqdJvW5Nsm1LEinbmXNy2vlNZ3DhnfwgWjbDBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgw+ywBpOsuMlKZZ3GN2RycdsKcriQC3cIlclH3FkOBEdYAEAGAgsAyEBgAQAZCCwAIAOBBQBkILAAgAz7JqHIiUqZfeONN8nZ4gS29d2KggcmWbF1Z4tnGN8QlZk+GI6wAIAQBBYAkIHAAgAyEFgAQAYCCwDIQGABABl5VGuw7Z63FSMYSN/NpTK1hEkuHC5AZdzMyPl14AgLAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkGG2WoMLa++bbKdxzvbIZN+pVL9wdqyDs01y4eKO/95xhAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIyKNaQ0623bA3eUPUhdMBmOym8XdaMdOH8b67cLYLZ1kxdsS2ARDOThTCcIQFAIQgsACADAQWAJCBwAIAMhBYAEAGAgsAyDBbrSGPLbmvEgDpDRnfum3VGqzYEJXSCC5skjtnkTAJR1gAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyqNdh2x93kOq1ovLM9smIQgG1lDEw2ydlhNzk5+7lb0U1n5+/AJBQAUJwQWABABgILAMhAYAEAGQgsACADgQUAZJidhMI2VlTpt22sQ045t27baAPjO8TZ2S5sG/hiRa0IZ4tSWNFO4zAJBQCMdAgsACADgQUAZCCwAIAMBBYAkIHAAgAyzA5rcPYpc2ebZFvjTXJ2h9h2v9/Zxhtf3OSGrJjpw2Q7c7LogyMzDguMsOKbN5LbCW6DU0IYcdasWTNhwgSnWwHDkce8hM7OOmcclUHtJtcJJi1ZsmTNmjU9/+vCT9PxankONn4gOMKCEeqZZ55ZtmyZ062A/OAIq8AbyglHWK510003rV27lrny08QRVo7VIrAKu6GcEFhuNnHixIMHD7rw00Rg5Vitsx2wIu+c/c2T/pIZbXkyqbceUxsOqrV16r46rf6A1tist7Xp7e2iIyYyaZFRGWPco3CPl5eEpNJSadQoeXy1PHmiMm2qUjNVmXSaVD6G+/1Od4Uxxp599tlFixbl7qkF/5wbX9x4k6xIB3d+FRFYdnQzJyo96m5DJqO3HM7s2p1+f3vmo13q3lrtaKuIdghVZcabxzlXFB4pkSvKlek1nlkzvXPneGbOkMZWcY/Hwd5VVlYePXo0R68RWMNd3CIILDu6mROJHolMRqs/kNr2burNrentO7SDjSKVKuD6uc8nnzbeO2e279KLffPOlydPdCS5+t0x7O0+Amu4i1sEgWVHN3NyeY/01mOpbe8mNm5ObXtHa2xmmmbt9mRZHl/tm3dB4Nr5vnnnS+Vj7OzsunXrbrzxxlNfR2ANe3GLILDs6GZOLu2REGp9Q/KFl+Lrn8/s2i2SSfs23bUH/H7PzBnBry70XzNfmTyR2fJoTlNT0/jx43PtDATWMBe3CALLjm7m5LoeCaHW1cfXPBv/w3Nq3X6m63ZsdCCSpNRMCS66PnjTDcrUyTbElhWJg8AqOASWHd3MyVU90ppb4qvXxZ56Rt1Xl8dFdKtxrkybGrp1SfDmRXL1WIs3hcAqZI8sYsk4LLNtct84F+Mc/0TzbnA8kXjx5c5fPpbevsPyC1XDI8veObPD3/1W4OoreTBg0UZcOGrJihGFtpVbsGjXIbAKjFZgZT7e3bHq0cTzm0Q84XRbhsCDgcDCBSU/uNNz9gxL1o/AcmhDeUFgFRiVwBLJZGL9xuhDP1f31Trdljwo02oi99wV+Oq1BR90isByakN5QWAVGInA0pqaOx56JLZ6rYjFnW5L3ngoGLp5cck935fHVRdytQgshzaUFwRWgbk/sNLvf9i+/GeprW+76OJ6vjj3Xfy50vt/4p17buFWicByZkN5QXmZkUQXyc2vHL/tjtSWtwinFWNMiNSWt47fdkdy8ytMp9wRyBMCa8RQ1dhTq9u+czeti1aDdWhfbdt37o49tZqpqtNtAZvYV17GOCqFPqwYSGXRiYlIZ2KPPxG9f6XeHjW5KreRSiOR5ctCS2/nXlMPIbpwAJ0Lf0dWbD0vmISi+Il0pvNXj0UfeFh0djrdlsLT26PtP/03kcmEv/Mtk5kF7odTwmKnqrHHnyjWtOoiOjujDzwce/wJnBsWPQRWURMi9vTa6P0rizitujva2Rm9f2Xs6bW0bybAUBBYxSy5+dXoigeL77pVTnp7NLriweTmV51uCFgIgVW00u9vP/GjFdrhI043xD7a4SMnfrQi/f52pxsCVkFgFSetqbl9+X3q3iIZwWCcure2ffl9WlOz0w0BS5gtL0Nlghxnh0rYPGhYpFLt9/yk87EnzGyUtPC3bi996Gfc5zO+CJXyMjk5+8CJSZhIdaRLPLsh9vRap1vhpNjTaxPPbnC6FVB4CKxik9m1O7ryEYpPNReQiMWjKx/JfLzb6YZAgSGwioqIJzoeeXQEXro6lbq3tuPnj7q/zhfkBYFVVBKbXkps2OR0K9wisWFTYtNLTrcCCgmBVTy05pbOXz2OY4oeIp7o/NXjWnOL0w2BgkFgFY/46nXp9z90uhXukn7/w/jqdU63AgrGbLUG45ytbeBsqQnzd4iH3CdqbV3rdUtw9epUyvSa8g3PKDVTB3+bC2d1craIgjtLOOAIq0jE16xHWuWk7q2Nr1nvdCugMBBYxUCtq4+ve86SVQvBdL3Pn7z0WzbfP13/IJtpAGOMsfi659S6ekv2D9gL9bCKQXLTS+q+usKvVzBp9Gipopyxk0fyqqodbBSZjKHFZVmedBr3+XsXz4uua43NTFXl08Yz5eQXNZPRDjUZbcBJ6r665KaXwt/7duF3EdgLgUWe3nosvn6j0bIqksR0vXvCVM67/wy4ai2wcH5k+bLu4xpJ0hqbjn9tqbq/nklDHZsLIZWWjvrFv3tmnT2c+Vk5F52x40u/q+5vGPX/fqlMnsR0nUmy+vc9x267Qxw5mt/k9ULE128M3nyjVD6mwHsf7IXAIi+17d3Mro+NvJN7veE7vyVVVqh792kNB9WDh/Rjx0VHh0ilezOF8z5hJMty9djedNB1pshGWyZLUlXFsKeYF50x7vMxIeSKip4ZvdRP9opEcoh0zpVlmV0fp7a9G7h2fmF2OjgEgUVcRk1s3CySqaHfKQTz+fxXXub73IVMFyKR0KMd+uEjWlOzWrtf3V+v7m/Qmpr11mPakaO9pTu7LiT1REC+53ambgoJJgQPBJjX2/OS1tTCFZmXlrIBDrBEOiOSyRyvJ1OJjZsDV13OPPjOE2b2wzN+N9f4XVKT91OtmA7AhVN1dFHrG1Lb3jHaNq9HKokwxpjEeSgoh4JydZXn3HO6m5hIing88/dPjn/j21r9gazjLBPtNPdJMsakkrAU6J3k2ff5C8f84XcDLiFJsaeeiT+1JudBVmrbO2p9gzK9Jo8WOPqltYJtG7II/rWhLbXtXe1Qk6G3CsH9fl4Szv23nPNggAcDUqSEJVMDXiHiLI8Q0nX9SKvW3DLErT0heDgklZX1vhCL6+3tojMmkkmpojy7zfKE8fKE8YNsMfa71UzXmZzjvFU71JTa9m5egQVug8AiTGQyqTe3Gr/TL0VKeCAw+Hu0xmY9Gu0bWKInpISqCdXYHTrO9RPtbf/0z0MXpdL14A3XRZYv6zmmS7zyWvS+h5imaQcOhW67mfv9Q26te00n2tVP9g2yodSbW0M3L2IeTK5DFQKLML35cHr7jjzeH4+n3tyqnHWmXFXRHV6nHImo++tFKt3zv9zr7XMNXlVZMmX0IEvTtLp6MUSecsaE1nI4+zq6ONGu/v0TputMUTyzzzF+Q1A/clRrbB7k/entO7Tmw/LECeZ2PDgGgUVY5uPd2qFGo++WJO3AobZv38VLI3L5GKmqUh43VpkyWamZKk86TR5fLY0qk8JhdX89U9WeIOM+b/Y6RDotdN3oSaEQ8qSJ/su/yBUl9309SdIONSZe+m/GeZ8Q5IzJMhNCKh/jmTPr1NX2+d+seFIPHtJPnBgksLRDjZmPdyOw6EJgEZb+4END9wd7CCHSaXHkqN5yhO36G2OMSRLzeKRwSBpVJo+rlieMT3/4Ud8xVn1+/CKeyGPuP133nHl62cr7BjwP5Tz15p+Tb2wdqLWeGWcoU6f0vKDure38zX+JRKI7knThn//lwIKret+we4+IxQcJLJFMpT/40H/llwr9UYBNEFhUiWQys2Nn/osJxhiT+5zl6W0n9ONt6r46JgST5d4fPOc8FOyzdCwm8p2sdPCxqQP9jRBMUQJXXymVRnpeS7ywufPRx5jouqYmmCR5P31eVke0zK7dTNNyXnHvkdmxUySTxq+LgavkEVi2VUGwYl4M295pxfiJnFvXW4/l/bSzokiREhGLi1Sqz0jRfoNFszfc9+BI7+hkeT4WM0y6rpx5uv/qK3pfaDuRfOX1rl507Slp9CjPWWf2viEazezeM+SK1b21euuxwW41DsW2CU2cnZnCtqIUecERFlVqwwHtaGseC+i6MmVS2cMPiERSO9SoHWpUDxzS6hu0I0f1Y20imWSZDBOMSVnhJUk80mcYhIh2iIya32MxgxtoVUJ4Pz1XmXRazwuZ7TsyH+3qbZsQ8tgqOesNWlOzdvDQkM8MaUdb1YYDZgILHITAokqt3S+iHXksIIQ0epT3U+dJo8q6X0ilRWen3npMa2pWGw6otfvV+gPq7j2Z3Xt6Hh6USkuz16G3nRjOg4Enpf705/T/fsCknlNOSd1XK9JdNyX7/YPMpdKSnvQRGTX+x436ifbswFKmTZVGj+rdIX//RD/eNmSYimiHWrvfN++Cgn8iYAMEFlXqvrr8ihYIIZWEs0dFcZ+X+0ZLY0YrZ0z3nXxPfN1zbd/8btdYBK7I2eM5GWPakaNM14d+8nkAiU0vd/z8l4xLJ69ddT/003/wBOt/bSvz0c7ky6/1eUmWvZ+em30pKv3RLpFKDdk2oWY0KypbgC0QWFRp9QfyXYSXlAwxZpJzrflwdw4Kwf3+7GveTNf1I0eMloXIxTN7ZuAr1/E+mSKYzxf4yrW5joxOjlZNp2NPrtYam7IPr6RIxPuZub1ricUzH+401DbB1Px3HbgEAosqrdHYEzk9OJdGj+LyoAcgQmj1Dd032oTgoSAv6z0lFKqqHztu5nnm0C2LgzfdcErDJN7/gWTOOJfC3ZfPUlu3JZ57oU+i6bo8ZZJy5unZeyOzZ6/Bi2taIyaypwqBRZXediK/BSQp/Zf3o//678q0GnnSBLm6WhpdJoVCvbXxGBPxhLq/oXeJsrLsi0QintBaj5l6nlmWuTx0dRqhaUywrrIKasOBjodW6a3H+p3reT8zVy4f031IxXnmk3264SJZelubiT6Ak/IILGdnfLDz1qkZtg2A0Nvb821ZZseuzI6dzOORgkFpzChp7FhlyiRl8iRl+lR5XLVUVck0TWts6v7ZCyFPGN9zmMMYEx0d+rHjhbxFOFDXWg4zXWNcUusb2u/5SWrbu/2vTMlyZuff2u76IdNPBtbHu0UyaTSwcu06275Lzs5yYtvvyKIN4QiLKtERy3sZiTPGmabp0aje3s5q96fffofJEvMo3B+QIiVSaUStb2C8Ox2UaVN5VmkXrblFb80zsPKq7sAYY0zd35B85XXGeeqtbcmXXhlo4rL0O++ls+vqSJLxWwHD2XXgDggsqkQmPfyF+40+VzXR0aFFo9qhRiZJ3Qnj8XjOOrPPk3r7G0RHNJ/A4npbe+qd97jPa/DKl360Nfbk6vT2HUySUlve6r4jKQQvKQl/8zZ5fLXQdc640NT46nV9hmXZtuvAUQgsqkTGwCMyeR2BnzwT7PqvFClRzpie/feZj3eL5FDjBrLjTJbS23ccW/T1PI6x0hmRSPYO1OralhBSaST09SU97RGpVGrL28N5Msn4rgNXQmAVL865z9f748+LpnvOmenJCiyRTKqf1HK/f/Ca7iKj9j4d3dUAzvOolOz19taHEEwkEl3jVLnPx/xZdbXSGZFIOLRbwUkILKq4RxGDDDoXQopEIivuVaZMEnr+VzqFUCaM7zPHjCSF71wa/NriQU4JucRjT61JrN/IZIkJIZWVlj74U+X0acOZTJBzEU+0/+S+zPsfMsZ4KCiFQj1/qcfjejQ67ALMHGXdycInRxX3eIeoLePz+i660DPzrMJszuv1fW7ox1lS297rPQ/1eLxzZnlmnzO8LYrOmFRa2lXuVCorzb78Lzpjoj067AEW3OMd5pLgNEsCy4q7pC4cwWCFPEaElIRYx6DPEgphbtKaYenb1OEc3GUtffKCGpPHVmXPnSNiMb0zNuwBFrwkNLwFuxe3ax4HF/6OrKg/kVeTMFU9Vf0eS87N/hlS+KD/O9x1yuOqedZDRfrxNpFIDnt9hnYduBJOCamSRo0a8j0ik2GaJvKrr8C595TnDVV1qNLsjDHGJalPLQchWEY10gAuyQNfyxdM8chTJmW/pB05KmIxpmmMc2Zg6Pwwdh24EwKLKnl89WB/zbmIdrT/aIUUKTU0uIGzrnKjodtu8V/+xey/UffVdqz8hX7ixBDHS5wxxjJ/29NdzpRz0dHR/uP7pNIhGiCEHvjSpaF//HrPgInUn7fFf79WpNPqnr1MkngwoNRMyV5ECocDV1/BGNdjsfT/vNdbNLkguw5cDIFFlTJ5Iht0wIBIp1NvbDU+FEvoeuCqL3tmnd3nxXi84//+R+y3vzfarKwR5yKVTr2xZYjDK86ZEHL5mFBWO9VP9sV+t7q7XjNjckW5Mmli9kL+L1/q++IljDMR7Tj29aWp1/6Ux3EWZ8rkiUbfDC6DwKJKnjaVK54hSmIZ/xlrmnfunNIHfypXj81+ObFhU/zZ57sLvZ+afYMf1wghjRmjnD6NDVgigov29szuPUyS+xy+SZx5PN2DIXRdHlctVVb0WU5RuMIYY7x8THDhgtSWt42PnOCKR5421eTOB6cgsKhSaqbwSIk4drwA69J1efKk0gdX9BsDkd7+UfShn4vOTibLgQVXej/7aSZO5gKXUlvfSr765mCnibrumTNr9G9/wwP+nEeCXJaTW986/rWlg48sVc48XcqesFqI7KD0XXKRMnWy+sk+g4/p8EiJUoPAosq+SSiMs+22scm+G2+8FVMMKJMmyhXluvnA0nV5bFXpA//iv/TiPi+3Hove/1DXVSSmatznC3/7H7MrfPo+d37mw51ay5FBBtNzRZFKI4NMNy2FQkMcpnm93s/MzQ4jtW4/D4XlsZXd+6Fmiv/KL3UOMuFzX3JFeXap+N6mWvCtM/m1Mfnjsq1HxhtvHoY1UCWVj1Gm15hdi65LY0aXPvAvweuvyQ4OkUp1PPLr5CuvdyeFxJNvbEn/dXv2op45s/3XXJXHYzfDap5cUe6dOyf7tcSml1Ov/ylrR0iBa6+Wxow2eLVOmV7TZwQ/kILAoor7/cMeRN5N16XKitL7fxJc/NU+51NCxH+/tvM3/5U9FZjeeiz+hz9mT0rIPZ7QLTdKVZVmiiYPeRXMc+45ytTJvS8kEqktbyde2CySveOwvHNm+y660OBlLM/sczApIV24hkWY97xzud+X3+TPPbrOBB/8aXDxV/pd/Um+sTX64MOis7P/6y+/pn7zNs+smT2veM6dFbjyy7EnnzY4qiCzZ6/WcKDn+jqXpfT2j5jWFYK5Uk9R/Jd9gQd7J3PVmlvUv38iMhl1X13PFTceDAQWLki+8vrJCXgGxP0+73nnWvBRgE0QWIR5zp4hTxivDmMOGE2Xp0ws+7efBa6d3y+V0n/9oH3Z8u7CWNkkSWtsSrz4SnZgcZ8v9A83J17+b4PlieO/W9356ONZNw050zQRT+SeHVrX5dMm+C65qE/zPtihtbSIVDr56uvZtwh8F12onDE9s2Pn4Jfe5QnjPWfPsO4TAavhlJAwqbrKO2d23ovpuufsM0c9uipw3YJ+P291z94Td/+fzMe7c//sdT2xYZN2qDH7Nc95cwLzLzd4VshDIamyQqqsPPmnQqquUmac4bvw/BxbFML3+QuVrCEIIpNJvvq6iCeYpiVffi27qr08YVzg6iuGDE3vnNlydZUFHwXYBEdYhHGPx3fpxfE/bjQ6CkkIxpjvC58vffCn3jmz+v2lure27a4fpt/73wEPUiQps3tP4sVXw3fc3tsGryd065LE5leNHGSF7/hG8KYb+oyEEIx7PNLJW349a2VCSKPKgjfdkD2RorqvLrX17a7DsfSOnem/vJ89KD9wzVWx3z6tNTUP0n7fpRcPMdEZuJvZSSisWNzZMQRWjN6wbqyDb9758oRx2oFDRjrGFCV4/TWR+5b3GzjOGFPr6k/84N7UG1uGGM2UTifWbwguWiiNHt3zmue82f4vXxp/ai2Th2i8NGa0NGY0G5IQTNd9l32hX0Gb5Euvage7z1VFtCPx4sv+yy7pGRyrnHWm79LPx3+/dqC1yhPG+eadP/A2C/+1Mcn4Ol04g4ZFTcIpIW3K5EmGZl3Xdam0NPLDH5T9x8pT0yqzY2fbHd9LvvanocdeSlJ6+0ept9/Nfo37fKHbbpEqy03dLsxubNsJqaI8fMc3sgdwaQcb4+s2ZB9Lpv68Tc06P+Veb/ArC3kkMlAzfPMuUPo+RA3kILCI8yiBa+fz7PLBpxJCmXHGqF+vKrnnrn5TzzNdT/152/Gl/5Ta+rahUjCci46O+Nr12aMKGGPez3wqMP+KggSW3h5N/c97wZtu8F3wmezXEy9szvwt6+KaJGn7G1JvvZP9Hu9nP+U556ycJ8jc7wtcOz97EkagCJ8feb5553tmnp3+6wcDvcH76fMiP7zbM2eWfuRoVqZwpmuJza92rHpUO3Awj+lnJCm15a3ka3/yfmpO70AtWfZ96QuJjS/qJ9r7DEBNJrXGZh7wG6sYwUVnLPbkav3o0eCy72tHjnZHjySp9Q2djz3B0pnsdopkMrFhk2/eZ7nXe3JGVcl3wWfT7/zl1HV7Zp49yPkgUMGtGOlv2+UAF17DcuRiWecvfn3i3hW5Q4FzuapSKivNUdBK07RDTSKRGMZkWXJVJS/rWzdG1bRDh0Q662FswXgoKI+vNl77RcTjWlOLFCnpMx6Vc9HRqTXlmF+e+3zyhPG94yS63tnc0n9XcF724Irw976dbzdtu2SDeYKNNgCBNezF3RNYal1968LF6t7agbY04AFOzgFQRugix1DPXEMT8j5PlKTcS+VMVcF6n8ce+J3K9Jry59dmj5g3CIHl1A4ZCK5hFQNl6uTgousH/GvOu8tUnfpn2Hd+pVzrzGvTA/0ZaKncXWNG3hlcdP0w0gpcKI8jrNzLO/pEuLP/BJnse2Ebr9bWtV63ZMCDrBFMmV5TvuEZR0rKOPvrsGJDVnQTk1CMRErN1NCtS4Y3dXsxk6TQrUtQAKto4PtdPII3L/LOPdfpVriLd+65wZsXOd0KKBgEVvGQq8eGv7OUBwPmV1UceDAQ/s7SfkWfgTQEVlEJLLgqcN0Cp1vhFoHrFgQWXOV0K6CQEFhFhQcDJXfdqUyf5nRDnKdMn1Zy15043iwyCKxi4zl7RmTZ93goaH5VdPFQMLLseyh9VXzsq9aQk8nn0W2r0p9znS4c19clcMN16b9u73zsCacb4pjQLYsDN1xn0cptG0FtG5M/Lju7iSOsIsR9vpJl3+9Xq3Pk8F1yUcmy72cX0oKigcAqTvK46tL7f1yAaXWoUabXlN7/Y3kcJqMvTgisouWdO6fsgRVyVaX5VVEhV1WWPbCi37RgUEwQWMXMP//yyIp7pdKI0w2xg1Qaiay41z//cqcbAhZCYBU1zkO3LI4sX8bDYfMrczMeDkeWLwvdsnj4j3MDBQisYqcooaW3R350dxFnFg+HIz+6O7T0dhQULXpurNZgkhWjDWwr5mVRj0Q6E3v8iej9K/X2aMF3jrOk0khk+bLQ0tu519R0OLaVHLCi7ogLG29ReRUEVoG76c7AYowxVY09vTa64kHt8JGC7x+nyFWVkRX3hm5ZbP7YyoW/edKNtyiwcEo4YihK6NYlo371sDKtSMY6KNNqRv3q4dCtS3AmOHIgsEYSSfLPv2L0k//pu+Qi2henOfddctHoJ//TP/8KlAAbUXBKWOBuuveUMIvW1Nzx0COx1WtFLF7YNduAh4KhmxeX3PP9wo4OdeFZFenG4xqWUQgsQ+tMJhPrN0Yf+rm6j1JVZWVaTeSeuwJfvZb7/YVdswt/86Qbj8AyCoFlXObj3R2rHk08v0nEExZtolB4MBBYuKDkB3daVIPBhb950o13PrBsa6sVc2oZZ1veuaTYg4gnEi++3PnLx9Lbd/ROjOoqsuydMzv83W8Frr7SuvpWVvzmXbhO4xvKCYFV+A2ZNNICq4vW3BJfvS721DPqvrqCzDhfGJwr06aGbl0SvHmR1ZWOXRguLvzOI7AKvyGTRmZgdTVIrauPr3k2/ofn1Lr97NSZou0kScrUKcEbrw/edIMydbIN9zRdGC4u/M4jsAq/IZNGbmCdbJZafyD5wub4+uczu3aLZNLm7XO/3zNzRvCrC/3XzFcmT7Rt+IULw8WF33kEVuE3ZNJID6yT9NZjqW3vJjZuTm17R2tstvzylizL46t98y4IXDvfN+98qXyMzf11Ybi48DuPwCr8hkxCYPVpZCaj1R9IbXs39ebW9PYd2sFGkUoVcs/4fPJp471zZvsuvdg373x58kTuMfVI4PBb4r5wceF3HoFV+A2ZhMDKSWQyesvhzK7d6fe3Zz7ape6t1Y62imiHUNU8LtJzzhWFR0rkinJleo1n1kzv3DmemTOksVVO5VR200ztHwTWcN+ZF7PjsKzolXG0fvNGkIg2kUzqrcfUhoNqbZ26r06rP6A1NultJ/T2dtERE5m0yKiMMe5RuMfLS0JSaak0qkweP06ePFGZNlWpmapMOk0qH1PwwZ/2sO3fY5NNMs62wYPm+47AchcSgTXCIbCGvU7zfceDowBABgILAMhAYAEAGQgsqtauXet0EwDshovu7pLXrqusrLzssssWLlx40UUXjR1r7aN20AMX3Ye9TvN9t6S2rMm2OjsOy2Q3c7KikowVWzfZ95Hzsyl4O40vnrOdVnwczn5pB4JTQgAgA4EFAGQgsACADAQWAJCBwAIAMhBYAECGfeVlnOXCqXSojMexopvO7qWcRsiX1njf3VlnCUdYAEAGAgsAyEBgAQAZCCwAIAOBBQBkILAAgIw8qjXYdpPVtkodVgzUoHIr2rbBCiZ7ZFvfnS0xYlvtDePFHoyz89eBIywAIAOBBQBkILAAgAwEFgCQgcACADIQWABARh7DGpx97N62ev5W3KO1besmpy0wyYXDBXKiUmLEWVZMgYFqDQAwgiCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIyGMSCks2774n161op8l12nbH3YUzkpCelcMkZ7+fJjdkUQkHHGEBABkILAAgA4EFAGQgsACADAQWAJCBwAIAMsgMa3DhU/vO3sV34Z1sk+s0zoVbd+E4D2fLq1gER1gAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDwmoTDOihoMxhc3eefVZEV9K7hwAg6T7XR2ZgrH780XvEkunGPFor7jCAsAyEBgAQAZCCwAIAOBBQBkILAAgAwEFgCQkUe1BmfLGFixIdv6bnydLpwXwzjbboTbtnXbyi04O6TD2flQMKwBAIoTAgsAyEBgAQAZCCwAIAOBBQBkILAAgIw8qjWYLGNg2/wIVrBitIELZ9BwdoeYXNy2cR623e/PyYq+W7FOi3YIjrAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGXlUazC7JUeLEzhbK8K2IR3FN3bEhTVCrOhmTi4cVGFbjwaCIywAIAOBBQBkILAAgAwEFgCQgcACADIQWABARh7VGkxytjyAyQ1ZcdvYtjoEVgyAoDLbhbPrNF7LxHiTbCvI4WydjIHgCAsAyEBgAQAZCCwAIAOBBQBkILAAgAwEFgCQkcewBioPvlsxAMK2u/gunHPB5OJWjJ+wbeSKs1u3YnHqRT5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIMFutYefOnRUVFVa3ctWqVStXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",width:200}),(0,h.jsxs)("div",{style:{marginLeft:"35px"},children:["群号:","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,g.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},C=function(e){o.Z.info({title:"联系平台运营",icon:null,width:615,centered:!0,content:(0,h.jsxs)("div",{children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("p",{style:{color:"#191919",fontWeight:400,fontSize:14},children:"“保存实验临时数据”功能为付费功能,请联系平台运营进行开通。"}),(0,h.jsx)(u.Z,{}),(0,h.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,h.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"1"})," 因平台的实验数据储存容量和成本消耗较大,实践项目默认保存实验环境中临时数据 ",(0,h.jsx)("a",{children:e}),"天。"]}),(0,h.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,h.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"2"}),"若您需要个性化的数据保存周期服务,我们可以提供相关技术支持,并根据您的需求收取定制费用。"]})]}),(0,h.jsx)("div",{style:{textAlign:"center",marginTop:30},children:(0,h.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:p,alt:"二维码",width:160})})]})})},I=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(0,a.getDvaApp)()._store.getState(),i=t.shixunsDetail.detail;if(2===(null==i?void 0:i.public)||1===(null==i?void 0:i.public)||3===(null==i?void 0:i.shixun_status)){var r="";return 2===(null==i?void 0:i.public)&&(r="已公开"),1===(null==i?void 0:i.public)&&(r="待审核"),3===(null==i?void 0:i.shixun_status)&&(r="已关闭"),o.Z.info({centered:!0,icon:(0,h.jsx)(A.Z,{style:{color:"#faad14"}}),width:460,title:"提示",content:(0,h.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,h.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"},children:[(0,h.jsxs)("span",{children:["该实践项目的状态为",r,",",n,"。"]}),(0,h.jsx)("p",{children:"如有需要,请联系平台管理员进行技术支持。"})]}),(0,h.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:p,alt:"二维码",width:160})]}),okText:"我知道了"}),!0}return 2===(null==i?void 0:i.shixun_status)&&(o.Z.confirm({centered:!0,icon:(0,h.jsx)(A.Z,{}),title:"提示",content:(0,h.jsxs)("div",{children:[(0,h.jsxs)("span",{children:["该实践项目已发布,",n,"。"]}),(0,h.jsx)("br",{}),(0,h.jsx)("span",{children:"如有需要,您可以撤销发布后,再进行操作。"})]}),okText:"撤销发布",cancelText:"取消",onOk:function(){var n;o.Z.confirm({width:440,centered:!0,icon:(0,h.jsx)(A.Z,{style:{color:"#faad14"}}),title:"提示",content:"撤销发布后,学员将无法进行练习。是否确认撤销发布?",okText:"确定撤销发布",cancelText:"取消",onOk:(n=s()(l()().mark((function n(){return l()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e({type:"shixunsDetail/cancelRelease",payload:{id:null==i?void 0:i.identifier}});case 2:401!==n.sent.status&&(d.ZP.success("撤销发布成功。实训回到未发布的状态。"),e({type:"shixunsDetail/getShixunsDetail",payload:{id:null==i?void 0:i.identifier}}),e({type:"practiceSetting/getCommonData",payload:{id:null==i?void 0:i.identifier}}));case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})}}),!0)}},29156:function(e,n){n.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl"}},32637:function(e,n,t){e.exports=t.p+"static/AssistantCode3.a8740efb.jpeg"}}]); \ No newline at end of file diff --git a/94545.2a8f5490.async.js b/94545.2a8f5490.async.js deleted file mode 100644 index c62f98905c..0000000000 --- a/94545.2a8f5490.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[94545,42441],{88142:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(5891),o=n(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},i=n(22589),l=function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var s=o.forwardRef(l)},680:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(5891),o=n(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},i=n(22589),l=function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var s=o.forwardRef(l)},59536:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(5891),o=n(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},i=n(22589),l=function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var s=o.forwardRef(l)},27666:function(e,t,n){var r=n(26390),o=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,r.Z)(n))},a=function(){if(null==t){for(var e=arguments.length,r=new Array(e),a=0;a{o.Z.cancel(t),t=null},a}},81228:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(79545),o=n(68550),a=n(17928),i=n(99487),l=n(59301),s=n(92310),c=n.n(s),d=n(28647),u=n(55405),p=n(27666),f=n(36355),h=n(83116),g=n(37613);const m=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var b=(0,h.Z)("Affix",(e=>{const t=(0,g.TS)(e,{zIndexPopup:e.zIndexBase+10});return[m(t)]}));function v(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function y(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function x(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:r}=e.state;r!==n&&(C.forEach((t=>{null==r||r.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),r=null==n?void 0:n();C.forEach((n=>{null==r||r.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:r}=e.props,o=e.getTargetFunc();if(t!==S.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!o)return;const a=e.getOffsetTop(),i=e.getOffsetBottom(),l=o();if(l){const t={status:S.None},o=v(e.placeholderNodeRef.current);if(0===o.top&&0===o.left&&0===o.width&&0===o.height)return;const s=v(l),c=y(o,s,a),d=x(o,s,i);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:o.width,height:o.height},t.placeholderStyle={width:o.width,height:o.height}):void 0!==d&&(t.affixStyle={position:"fixed",bottom:d,width:o.width,height:o.height},t.placeholderStyle={width:o.width,height:o.height}),t.lastAffix=!!t.affixStyle,r&&n!==t.lastAffix&&r(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:S.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const r=e.getOffsetTop(),o=e.getOffsetBottom(),a=t();if(a&&e.placeholderNodeRef.current){const t=v(a),i=v(e.placeholderNodeRef.current),l=y(i,t,r),s=x(i,t,o);if(void 0!==l&&n.top===l||void 0!==s&&n.bottom===s)return}}e.prepareMeasure()})),e}return(0,o.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:O}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:r,children:o}=this.props,a=c()(e&&r,{[n]:!!e});let i=(0,u.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return l.createElement(d.Z,{onResize:this.updatePosition},l.createElement("div",Object.assign({},i,{ref:this.placeholderNodeRef}),e&&l.createElement("div",{style:t,"aria-hidden":"true"}),l.createElement("div",{className:a,ref:this.fixedNodeRef,style:e},l.createElement(d.Z,{onResize:this.updatePosition},o))))}}]),n}(l.Component);$.contextType=f.E_;var w=(0,l.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:r}=e,{getPrefixCls:o}=(0,l.useContext)(f.E_),a=o("affix",n),[i,s]=b(a),d=Object.assign(Object.assign({},e),{affixPrefixCls:a,rootClassName:c()(r,s)});return i(l.createElement($,Object.assign({},d,{ref:t})))}))},66104:function(e,t,n){n.d(t,{Z:function(){return I}});var r=n(92310),o=n.n(r),a=n(75440),i=n(47413),l=n(59301),s=n(92343),c=n(36355),d=n(78386),u=n(91857);const p=e=>{let{children:t}=e;const{getPrefixCls:n}=l.useContext(c.E_),r=n("breadcrumb");return l.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};p.__ANT_BREADCRUMB_SEPARATOR=!0;var f=p,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(t)return t(n,r,o,a);const l=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,r);return g(e,n,l,i)}}var b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,separator:n="/",children:r,menu:o,overlay:a,dropdownProps:i,href:s}=e;const c=(e=>{if(o||a){const n=Object.assign({},i);if(o){const e=o||{},{items:t}=e,r=b(e,["items"]);n.menu=Object.assign(Object.assign({},r),{items:null==t?void 0:t.map(((e,t)=>{var{key:n,title:r,label:o,path:a}=e,i=b(e,["key","title","label","path"]);let c=null!=o?o:r;return a&&(c=l.createElement("a",{href:`${s}${a}`},c)),Object.assign(Object.assign({},i),{key:null!=n?n:t,label:c})}))})}else a&&(n.overlay=a);return l.createElement(u.Z,Object.assign({placement:"bottom"},n),l.createElement("span",{className:`${t}-overlay-link`},e,l.createElement(d.Z,null)))}return e})(r);return null!=c?l.createElement(l.Fragment,null,l.createElement("li",null,c),n&&l.createElement(f,null,n)):null},y=e=>{const{prefixCls:t,children:n,href:r}=e,o=b(e,["prefixCls","children","href"]),{getPrefixCls:a}=l.useContext(c.E_),i=a("breadcrumb",t);return l.createElement(v,Object.assign({},o,{prefixCls:i}),g(i,o,n,r))};y.__ANT_BREADCRUMB_ITEM=!0;var x=y,C=n(17313),O=n(83116),S=n(37613);const $=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,C.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,C.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var w=(0,O.Z)("Breadcrumb",(e=>{const t=(0,S.TS)(e,{});return[$(t)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{breadcrumbName:t}=e,n=E(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),o}var k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,separator:n="/",style:r,className:d,rootClassName:u,routes:p,items:h,children:g,itemRender:b,params:y={}}=e,x=k(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:C,direction:O,breadcrumb:S}=l.useContext(c.E_);let $;const E=C("breadcrumb",t),[P,I]=w(E),N=function(e,t){return(0,l.useMemo)((()=>e||(t?t.map(j):null)),[e,t])}(h,p);const z=m(E,b);if(N&&N.length>0){const e=[],t=h||p;$=N.map(((r,o)=>{const{path:a,key:s,type:c,menu:d,overlay:u,onClick:p,className:h,separator:g,dropdownProps:m}=r,b=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(y,a);void 0!==b&&e.push(b);const x=null!=s?s:o;if("separator"===c)return l.createElement(f,{key:x},g);const C={},O=o===N.length-1;d?C.menu=d:u&&(C.overlay=u);let{href:S}=r;return e.length&&void 0!==b&&(S=`#/${e.join("/")}`),l.createElement(v,Object.assign({key:x},C,(0,i.Z)(r,{data:!0,aria:!0}),{className:h,dropdownProps:m,href:S,separator:O?"":n,onClick:p,prefixCls:E}),z(r,y,t,e,S))}))}else if(g){const e=(0,a.Z)(g).length;$=(0,a.Z)(g).map(((t,r)=>{if(!t)return t;const o=r===e-1;return(0,s.Tm)(t,{separator:o?"":n,key:r})}))}const T=o()(E,null==S?void 0:S.className,{[`${E}-rtl`]:"rtl"===O},d,u,I),Z=Object.assign(Object.assign({},null==S?void 0:S.style),r);return P(l.createElement("nav",Object.assign({className:T,style:Z},x),l.createElement("ol",null,$)))};P.Item=x,P.Separator=f;var I=P},36381:function(e,t,n){n.d(t,{Z:function(){return U}});var r=n(14988),o=n(92310),a=n.n(o),i=n(5891),l=n(26390),s=n(29043),c=n(80665),d=n(71366),u=n(85870),p=n(59301),f=n(19149),h=n(75440),g=n(80962),m=n(43167),b=n(20287),v=p.forwardRef((function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,i=e.style,l=e.children,c=e.isActive,d=e.role,u=p.useState(c||r),f=(0,s.Z)(u,2),h=f[0],m=f[1];return p.useEffect((function(){(r||c)&&m(!0)}),[r,c]),h?p.createElement("div",{ref:t,className:a()("".concat(n,"-content"),(0,g.Z)((0,g.Z)({},"".concat(n,"-content-active"),c),"".concat(n,"-content-inactive"),!c),o),style:i,role:d},p.createElement("div",{className:"".concat(n,"-content-box")},l)):null}));v.displayName="PanelContent";var y=v,x=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],C=p.forwardRef((function(e,t){var n=e.showArrow,r=void 0===n||n,o=e.headerClass,l=e.isActive,s=e.onItemClick,c=e.forceRender,d=e.className,u=e.prefixCls,h=e.collapsible,v=e.accordion,C=e.panelKey,O=e.extra,S=e.header,$=e.expandIcon,w=e.openMotion,E=e.destroyInactivePanel,j=e.children,k=(0,f.Z)(e,x),P="disabled"===h,I="header"===h,N="icon"===h,z=null!=O&&"boolean"!=typeof O,T=function(){null==s||s(C)},Z="function"==typeof $?$(e):p.createElement("i",{className:"arrow"});Z&&(Z=p.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(h)?T:void 0},Z));var M=a()((0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),l),"".concat(u,"-item-disabled"),P),d),R={className:a()(o,(0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),I),"".concat(u,"-icon-collapsible-only"),N)),"aria-expanded":l,"aria-disabled":P,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==b.Z.ENTER&&e.which!==b.Z.ENTER||T()}};return I||N||(R.onClick=T,R.role=v?"tab":"button",R.tabIndex=P?-1:0),p.createElement("div",(0,i.Z)({},k,{ref:t,className:M}),p.createElement("div",R,r&&Z,p.createElement("span",{className:"".concat(u,"-header-text"),onClick:"header"===h?T:void 0},S),z&&p.createElement("div",{className:"".concat(u,"-extra")},O)),p.createElement(m.default,(0,i.Z)({visible:l,leavedClassName:"".concat(u,"-content-hidden")},w,{forceRender:c,removeOnLeave:E}),(function(e,t){var n=e.className,r=e.style;return p.createElement(y,{ref:t,prefixCls:u,className:n,style:r,isActive:l,forceRender:c,role:v?"tabpanel":void 0},j)})))})),O=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var S=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,a=t.destroyInactivePanel,l=t.onItemClick,s=t.activeKey,c=t.openMotion,d=t.expandIcon;return e.map((function(e,t){var u=e.children,h=e.label,g=e.key,m=e.collapsible,b=e.onItemClick,v=e.destroyInactivePanel,y=(0,f.Z)(e,O),x=String(null!=g?g:t),S=null!=m?m:o,$=null!=v?v:a,w=!1;return w=r?s[0]===x:s.indexOf(x)>-1,p.createElement(C,(0,i.Z)({},y,{prefixCls:n,key:x,panelKey:x,isActive:w,accordion:r,openMotion:c,expandIcon:d,header:h,collapsible:S,onItemClick:function(e){"disabled"!==S&&(l(e),null==b||b(e))},destroyInactivePanel:$}),u)}))}(e,n):(0,h.Z)(t).map((function(e,t){return function(e,t,n){if(!e)return null;var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,l=n.onItemClick,s=n.activeKey,c=n.openMotion,d=n.expandIcon,u=e.key||String(t),f=e.props,h=f.header,g=f.headerClass,m=f.destroyInactivePanel,b=f.collapsible,v=f.onItemClick,y=!1;y=o?s[0]===u:s.indexOf(u)>-1;var x=null!=b?b:a,C={key:u,panelKey:u,header:h,headerClass:g,isActive:y,prefixCls:r,destroyInactivePanel:null!=m?m:i,openMotion:c,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(l(e),null==v||v(e))},expandIcon:d,collapsible:x};return"string"==typeof e.type?e:(Object.keys(C).forEach((function(e){void 0===C[e]&&delete C[e]})),p.cloneElement(e,C))}(e,t,n)}))},$=n(47413);function w(e){var t=e;if(!Array.isArray(t)){var n=(0,c.Z)(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var E=p.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-collapse":n,o=e.destroyInactivePanel,c=void 0!==o&&o,f=e.style,h=e.accordion,g=e.className,m=e.children,b=e.collapsible,v=e.openMotion,y=e.expandIcon,x=e.activeKey,C=e.defaultActiveKey,O=e.onChange,E=e.items,j=a()(r,g),k=(0,d.Z)([],{value:x,onChange:function(e){return null==O?void 0:O(e)},defaultValue:C,postState:w}),P=(0,s.Z)(k,2),I=P[0],N=P[1];(0,u.ZP)(!m,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var z=S(E,m,{prefixCls:r,accordion:h,openMotion:v,expandIcon:y,collapsible:b,destroyInactivePanel:c,onItemClick:function(e){return N((function(){return h?I[0]===e?[]:[e]:I.indexOf(e)>-1?I.filter((function(t){return t!==e})):[].concat((0,l.Z)(I),[e])}))},activeKey:I});return p.createElement("div",(0,i.Z)({ref:t,className:j,style:f,role:h?"tablist":void 0},(0,$.Z)(e,{aria:!0,data:!0})),z)})),j=Object.assign(E,{Panel:C}),k=j,P=(j.Panel,n(55405)),I=n(62892),N=n(92343),z=n(36355),T=n(19716);var Z=p.forwardRef(((e,t)=>{const{getPrefixCls:n}=p.useContext(z.E_),{prefixCls:r,className:o,showArrow:i=!0}=e,l=n("collapse",r),s=a()({[`${l}-no-arrow`]:!i},o);return p.createElement(k.Panel,Object.assign({ref:t},e,{prefixCls:l,className:s}))})),M=n(17313),R=n(8378),_=n(83116),B=n(37613);const A=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:c,lineType:d,colorBorder:u,colorText:p,colorTextHeading:f,colorTextDisabled:h,fontSize:g,fontSizeLG:m,lineHeight:b,marginSM:v,paddingSM:y,paddingLG:x,paddingXS:C,motionDurationSlow:O,fontSizeIcon:S,contentPadding:$}=e,w=`${c}px ${d} ${u}`;return{[t]:Object.assign(Object.assign({},(0,M.Wf)(e)),{backgroundColor:o,border:w,borderBottom:0,borderRadius:`${s}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:w,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:f,lineHeight:b,cursor:"pointer",transition:`all ${O}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:g*b,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${t}-arrow`]:Object.assign(Object.assign({},(0,M.Ro)()),{fontSize:S,svg:{transition:`transform ${O}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:w,[`& > ${t}-content-box`]:{padding:$},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:C,[`> ${t}-expand-icon`]:{marginInlineStart:y-C}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:m,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:m*b,marginInlineStart:x-r}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},L=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},H=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},D=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var W=(0,_.Z)("Collapse",(e=>{const t=(0,B.TS)(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[A(t),H(t),D(t),L(t),(0,R.Z)(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const X=p.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:o,collapse:i}=p.useContext(z.E_),{prefixCls:l,className:s,rootClassName:c,style:d,bordered:u=!0,ghost:f,size:g,expandIconPosition:m="start",children:b,expandIcon:v}=e,y=(0,T.Z)((e=>{var t;return null!==(t=null!=g?g:e)&&void 0!==t?t:"middle"})),x=n("collapse",l),C=n(),[O,S]=W(x),$=p.useMemo((()=>"left"===m?"start":"right"===m?"end":m),[m]),w=a()(`${x}-icon-position-${$}`,{[`${x}-borderless`]:!u,[`${x}-rtl`]:"rtl"===o,[`${x}-ghost`]:!!f,[`${x}-${y}`]:"middle"!==y},null==i?void 0:i.className,s,c,S),E=Object.assign(Object.assign({},(0,I.Z)(C)),{motionAppear:!1,leavedClassName:`${x}-content-hidden`}),j=p.useMemo((()=>b?(0,h.Z)(b).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:a}=e.props,i=Object.assign(Object.assign({},(0,P.Z)(e.props,["disabled"])),{key:n,collapsible:null!=a?a:o?"disabled":void 0});return(0,N.Tm)(e,i)}return e})):null),[b]);return O(p.createElement(k,Object.assign({ref:t,openMotion:E},(0,P.Z)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=v?v(e):p.createElement(r.Z,{rotate:e.isActive?90:void 0});return(0,N.Tm)(t,(()=>({className:a()(t.props.className,`${x}-arrow`)})))},prefixCls:x,className:w,style:Object.assign(Object.assign({},null==i?void 0:i.style),d)}),j))}));var U=Object.assign(X,{Panel:Z})},28103:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(92310),o=n.n(r),a=n(59301),i=n(36355),l=n(17313),s=n(83116),c=n(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*i+"%"},"&::after":{width:100-100*i+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*i+"%"},"&::after":{width:100*i+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:r}=a.useContext(i.E_),{prefixCls:l,type:s="horizontal",orientation:c="center",orientationMargin:d,className:f,rootClassName:h,children:g,dashed:m,plain:b,style:v}=e,y=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",l),[C,O]=u(x),S=c.length>0?`-${c}`:c,$=!!g,w="left"===c&&null!=d,E="right"===c&&null!=d,j=o()(x,null==r?void 0:r.className,O,`${x}-${s}`,{[`${x}-with-text`]:$,[`${x}-with-text${S}`]:$,[`${x}-dashed`]:!!m,[`${x}-plain`]:!!b,[`${x}-rtl`]:"rtl"===n,[`${x}-no-default-orientation-margin-left`]:w,[`${x}-no-default-orientation-margin-right`]:E},f,h),k=a.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),P=Object.assign(Object.assign({},w&&{marginLeft:k}),E&&{marginRight:k});return C(a.createElement("div",Object.assign({className:j,style:Object.assign(Object.assign({},null==r?void 0:r.style),v)},y,{role:"separator"}),g&&"vertical"!==s&&a.createElement("span",{className:`${x}-inner-text`,style:P},g)))}},12563:function(e,t,n){n.d(t,{Z:function(){return E}});var r=n(59301),o=n(51638),a=n(92310),i=n.n(a),l=n(36785),s=n(47729),c=n(14088),d=n(36355),u=n(17313),p=n(37613),f=n(83116);const h=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=e.lineHeightSM*r+"px";return(0,p.TS)(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},g=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var m=(0,f.Z)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,i=t-n;return{[o]:Object.assign(Object.assign({},(0,u.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:i,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(h(e))),g),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,style:n,className:o,checked:a,onChange:l,onClick:s}=e,c=b(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:p}=r.useContext(d.E_),f=u("tag",t),[h,g]=m(f),v=i()(f,`${f}-checkable`,{[`${f}-checkable-checked`]:a},null==p?void 0:p.className,o,g);return h(r.createElement("span",Object.assign({},c,{style:Object.assign(Object.assign({},n),null==p?void 0:p.style),className:v,onClick:e=>{null==l||l(!a),null==s||s(e)}})))},y=n(45157);var x=(0,f.b)(["Tag","preset"],(e=>(e=>(0,y.Z)(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(h(e))),g);const C=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var O=(0,f.b)(["Tag","status"],(e=>{const t=h(e);return[C(t,"success","Success"),C(t,"processing","Info"),C(t,"error","Error"),C(t,"warning","Warning")]}),g),S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:a,rootClassName:u,style:p,children:f,icon:h,color:g,onClose:b,closeIcon:v,closable:y,bordered:C=!0}=e,$=S(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:w,direction:E,tag:j}=r.useContext(d.E_),[k,P]=r.useState(!0);r.useEffect((()=>{"visible"in $&&P($.visible)}),[$.visible]);const I=(0,l.o2)(g),N=(0,l.yT)(g),z=I||N,T=Object.assign(Object.assign({backgroundColor:g&&!z?g:void 0},null==j?void 0:j.style),p),Z=w("tag",n),[M,R]=m(Z),_=i()(Z,null==j?void 0:j.className,{[`${Z}-${g}`]:z,[`${Z}-has-color`]:g&&!z,[`${Z}-hidden`]:!k,[`${Z}-rtl`]:"rtl"===E,[`${Z}-borderless`]:!C},a,u,R),B=e=>{e.stopPropagation(),null==b||b(e),e.defaultPrevented||P(!1)},[,A]=(0,s.Z)(y,v,(e=>null===e?r.createElement(o.Z,{className:`${Z}-close-icon`,onClick:B}):r.createElement("span",{className:`${Z}-close-icon`,onClick:B},e)),null,!1),L="function"==typeof $.onClick||f&&"a"===f.type,H=h||null,D=H?r.createElement(r.Fragment,null,H,f&&r.createElement("span",null,f)):f,W=r.createElement("span",Object.assign({},$,{ref:t,className:_,style:T}),D,A,I&&r.createElement(x,{key:"preset",prefixCls:Z}),N&&r.createElement(O,{key:"status",prefixCls:Z}));return M(L?r.createElement(c.Z,{component:"Tag"},W):W)},w=r.forwardRef($);w.CheckableTag=v;var E=w},97774:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,o=arguments.length,a=new Array(o),i=0;i()=>{t=null,e.apply(void 0,(0,r.Z)(n))},a=function(){if(null==t){for(var e=arguments.length,r=new Array(e),a=0;a{o.Z.cancel(t),t=null},a}},81228:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(79545),o=n(68550),a=n(17928),i=n(7711),l=n(59301),s=n(92310),c=n.n(s),d=n(28647),u=n(55405),p=n(27666),f=n(36355),h=n(83116),g=n(37613);const m=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var b=(0,h.Z)("Affix",(e=>{const t=(0,g.TS)(e,{zIndexPopup:e.zIndexBase+10});return[m(t)]}));function v(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function y(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function x(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:r}=e.state;r!==n&&(C.forEach((t=>{null==r||r.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),r=null==n?void 0:n();C.forEach((n=>{null==r||r.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:r}=e.props,o=e.getTargetFunc();if(t!==S.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!o)return;const a=e.getOffsetTop(),i=e.getOffsetBottom(),l=o();if(l){const t={status:S.None},o=v(e.placeholderNodeRef.current);if(0===o.top&&0===o.left&&0===o.width&&0===o.height)return;const s=v(l),c=y(o,s,a),d=x(o,s,i);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:o.width,height:o.height},t.placeholderStyle={width:o.width,height:o.height}):void 0!==d&&(t.affixStyle={position:"fixed",bottom:d,width:o.width,height:o.height},t.placeholderStyle={width:o.width,height:o.height}),t.lastAffix=!!t.affixStyle,r&&n!==t.lastAffix&&r(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:S.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const r=e.getOffsetTop(),o=e.getOffsetBottom(),a=t();if(a&&e.placeholderNodeRef.current){const t=v(a),i=v(e.placeholderNodeRef.current),l=y(i,t,r),s=x(i,t,o);if(void 0!==l&&n.top===l||void 0!==s&&n.bottom===s)return}}e.prepareMeasure()})),e}return(0,o.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:O}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:r,children:o}=this.props,a=c()(e&&r,{[n]:!!e});let i=(0,u.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return l.createElement(d.Z,{onResize:this.updatePosition},l.createElement("div",Object.assign({},i,{ref:this.placeholderNodeRef}),e&&l.createElement("div",{style:t,"aria-hidden":"true"}),l.createElement("div",{className:a,ref:this.fixedNodeRef,style:e},l.createElement(d.Z,{onResize:this.updatePosition},o))))}}]),n}(l.Component);$.contextType=f.E_;var w=(0,l.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:r}=e,{getPrefixCls:o}=(0,l.useContext)(f.E_),a=o("affix",n),[i,s]=b(a),d=Object.assign(Object.assign({},e),{affixPrefixCls:a,rootClassName:c()(r,s)});return i(l.createElement($,Object.assign({},d,{ref:t})))}))},66104:function(e,t,n){n.d(t,{Z:function(){return I}});var r=n(92310),o=n.n(r),a=n(75440),i=n(47413),l=n(59301),s=n(92343),c=n(36355),d=n(78386),u=n(91857);const p=e=>{let{children:t}=e;const{getPrefixCls:n}=l.useContext(c.E_),r=n("breadcrumb");return l.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};p.__ANT_BREADCRUMB_SEPARATOR=!0;var f=p,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(t)return t(n,r,o,a);const l=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,r);return g(e,n,l,i)}}var b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,separator:n="/",children:r,menu:o,overlay:a,dropdownProps:i,href:s}=e;const c=(e=>{if(o||a){const n=Object.assign({},i);if(o){const e=o||{},{items:t}=e,r=b(e,["items"]);n.menu=Object.assign(Object.assign({},r),{items:null==t?void 0:t.map(((e,t)=>{var{key:n,title:r,label:o,path:a}=e,i=b(e,["key","title","label","path"]);let c=null!=o?o:r;return a&&(c=l.createElement("a",{href:`${s}${a}`},c)),Object.assign(Object.assign({},i),{key:null!=n?n:t,label:c})}))})}else a&&(n.overlay=a);return l.createElement(u.Z,Object.assign({placement:"bottom"},n),l.createElement("span",{className:`${t}-overlay-link`},e,l.createElement(d.Z,null)))}return e})(r);return null!=c?l.createElement(l.Fragment,null,l.createElement("li",null,c),n&&l.createElement(f,null,n)):null},y=e=>{const{prefixCls:t,children:n,href:r}=e,o=b(e,["prefixCls","children","href"]),{getPrefixCls:a}=l.useContext(c.E_),i=a("breadcrumb",t);return l.createElement(v,Object.assign({},o,{prefixCls:i}),g(i,o,n,r))};y.__ANT_BREADCRUMB_ITEM=!0;var x=y,C=n(17313),O=n(83116),S=n(37613);const $=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,C.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,C.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var w=(0,O.Z)("Breadcrumb",(e=>{const t=(0,S.TS)(e,{});return[$(t)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{breadcrumbName:t}=e,n=E(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),o}var k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,separator:n="/",style:r,className:d,rootClassName:u,routes:p,items:h,children:g,itemRender:b,params:y={}}=e,x=k(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:C,direction:O,breadcrumb:S}=l.useContext(c.E_);let $;const E=C("breadcrumb",t),[P,I]=w(E),N=function(e,t){return(0,l.useMemo)((()=>e||(t?t.map(j):null)),[e,t])}(h,p);const z=m(E,b);if(N&&N.length>0){const e=[],t=h||p;$=N.map(((r,o)=>{const{path:a,key:s,type:c,menu:d,overlay:u,onClick:p,className:h,separator:g,dropdownProps:m}=r,b=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(y,a);void 0!==b&&e.push(b);const x=null!=s?s:o;if("separator"===c)return l.createElement(f,{key:x},g);const C={},O=o===N.length-1;d?C.menu=d:u&&(C.overlay=u);let{href:S}=r;return e.length&&void 0!==b&&(S=`#/${e.join("/")}`),l.createElement(v,Object.assign({key:x},C,(0,i.Z)(r,{data:!0,aria:!0}),{className:h,dropdownProps:m,href:S,separator:O?"":n,onClick:p,prefixCls:E}),z(r,y,t,e,S))}))}else if(g){const e=(0,a.Z)(g).length;$=(0,a.Z)(g).map(((t,r)=>{if(!t)return t;const o=r===e-1;return(0,s.Tm)(t,{separator:o?"":n,key:r})}))}const T=o()(E,null==S?void 0:S.className,{[`${E}-rtl`]:"rtl"===O},d,u,I),Z=Object.assign(Object.assign({},null==S?void 0:S.style),r);return P(l.createElement("nav",Object.assign({className:T,style:Z},x),l.createElement("ol",null,$)))};P.Item=x,P.Separator=f;var I=P},36381:function(e,t,n){n.d(t,{Z:function(){return U}});var r=n(14988),o=n(92310),a=n.n(o),i=n(5891),l=n(26390),s=n(29043),c=n(80665),d=n(71366),u=n(85870),p=n(59301),f=n(19149),h=n(75440),g=n(80962),m=n(43167),b=n(20287),v=p.forwardRef((function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,i=e.style,l=e.children,c=e.isActive,d=e.role,u=p.useState(c||r),f=(0,s.Z)(u,2),h=f[0],m=f[1];return p.useEffect((function(){(r||c)&&m(!0)}),[r,c]),h?p.createElement("div",{ref:t,className:a()("".concat(n,"-content"),(0,g.Z)((0,g.Z)({},"".concat(n,"-content-active"),c),"".concat(n,"-content-inactive"),!c),o),style:i,role:d},p.createElement("div",{className:"".concat(n,"-content-box")},l)):null}));v.displayName="PanelContent";var y=v,x=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],C=p.forwardRef((function(e,t){var n=e.showArrow,r=void 0===n||n,o=e.headerClass,l=e.isActive,s=e.onItemClick,c=e.forceRender,d=e.className,u=e.prefixCls,h=e.collapsible,v=e.accordion,C=e.panelKey,O=e.extra,S=e.header,$=e.expandIcon,w=e.openMotion,E=e.destroyInactivePanel,j=e.children,k=(0,f.Z)(e,x),P="disabled"===h,I="header"===h,N="icon"===h,z=null!=O&&"boolean"!=typeof O,T=function(){null==s||s(C)},Z="function"==typeof $?$(e):p.createElement("i",{className:"arrow"});Z&&(Z=p.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(h)?T:void 0},Z));var M=a()((0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),l),"".concat(u,"-item-disabled"),P),d),R={className:a()(o,(0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),I),"".concat(u,"-icon-collapsible-only"),N)),"aria-expanded":l,"aria-disabled":P,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==b.Z.ENTER&&e.which!==b.Z.ENTER||T()}};return I||N||(R.onClick=T,R.role=v?"tab":"button",R.tabIndex=P?-1:0),p.createElement("div",(0,i.Z)({},k,{ref:t,className:M}),p.createElement("div",R,r&&Z,p.createElement("span",{className:"".concat(u,"-header-text"),onClick:"header"===h?T:void 0},S),z&&p.createElement("div",{className:"".concat(u,"-extra")},O)),p.createElement(m.default,(0,i.Z)({visible:l,leavedClassName:"".concat(u,"-content-hidden")},w,{forceRender:c,removeOnLeave:E}),(function(e,t){var n=e.className,r=e.style;return p.createElement(y,{ref:t,prefixCls:u,className:n,style:r,isActive:l,forceRender:c,role:v?"tabpanel":void 0},j)})))})),O=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var S=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,a=t.destroyInactivePanel,l=t.onItemClick,s=t.activeKey,c=t.openMotion,d=t.expandIcon;return e.map((function(e,t){var u=e.children,h=e.label,g=e.key,m=e.collapsible,b=e.onItemClick,v=e.destroyInactivePanel,y=(0,f.Z)(e,O),x=String(null!=g?g:t),S=null!=m?m:o,$=null!=v?v:a,w=!1;return w=r?s[0]===x:s.indexOf(x)>-1,p.createElement(C,(0,i.Z)({},y,{prefixCls:n,key:x,panelKey:x,isActive:w,accordion:r,openMotion:c,expandIcon:d,header:h,collapsible:S,onItemClick:function(e){"disabled"!==S&&(l(e),null==b||b(e))},destroyInactivePanel:$}),u)}))}(e,n):(0,h.Z)(t).map((function(e,t){return function(e,t,n){if(!e)return null;var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,l=n.onItemClick,s=n.activeKey,c=n.openMotion,d=n.expandIcon,u=e.key||String(t),f=e.props,h=f.header,g=f.headerClass,m=f.destroyInactivePanel,b=f.collapsible,v=f.onItemClick,y=!1;y=o?s[0]===u:s.indexOf(u)>-1;var x=null!=b?b:a,C={key:u,panelKey:u,header:h,headerClass:g,isActive:y,prefixCls:r,destroyInactivePanel:null!=m?m:i,openMotion:c,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(l(e),null==v||v(e))},expandIcon:d,collapsible:x};return"string"==typeof e.type?e:(Object.keys(C).forEach((function(e){void 0===C[e]&&delete C[e]})),p.cloneElement(e,C))}(e,t,n)}))},$=n(47413);function w(e){var t=e;if(!Array.isArray(t)){var n=(0,c.Z)(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var E=p.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-collapse":n,o=e.destroyInactivePanel,c=void 0!==o&&o,f=e.style,h=e.accordion,g=e.className,m=e.children,b=e.collapsible,v=e.openMotion,y=e.expandIcon,x=e.activeKey,C=e.defaultActiveKey,O=e.onChange,E=e.items,j=a()(r,g),k=(0,d.Z)([],{value:x,onChange:function(e){return null==O?void 0:O(e)},defaultValue:C,postState:w}),P=(0,s.Z)(k,2),I=P[0],N=P[1];(0,u.ZP)(!m,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var z=S(E,m,{prefixCls:r,accordion:h,openMotion:v,expandIcon:y,collapsible:b,destroyInactivePanel:c,onItemClick:function(e){return N((function(){return h?I[0]===e?[]:[e]:I.indexOf(e)>-1?I.filter((function(t){return t!==e})):[].concat((0,l.Z)(I),[e])}))},activeKey:I});return p.createElement("div",(0,i.Z)({ref:t,className:j,style:f,role:h?"tablist":void 0},(0,$.Z)(e,{aria:!0,data:!0})),z)})),j=Object.assign(E,{Panel:C}),k=j,P=(j.Panel,n(55405)),I=n(62892),N=n(92343),z=n(36355),T=n(19716);var Z=p.forwardRef(((e,t)=>{const{getPrefixCls:n}=p.useContext(z.E_),{prefixCls:r,className:o,showArrow:i=!0}=e,l=n("collapse",r),s=a()({[`${l}-no-arrow`]:!i},o);return p.createElement(k.Panel,Object.assign({ref:t},e,{prefixCls:l,className:s}))})),M=n(17313),R=n(8378),_=n(83116),B=n(37613);const A=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:c,lineType:d,colorBorder:u,colorText:p,colorTextHeading:f,colorTextDisabled:h,fontSize:g,fontSizeLG:m,lineHeight:b,marginSM:v,paddingSM:y,paddingLG:x,paddingXS:C,motionDurationSlow:O,fontSizeIcon:S,contentPadding:$}=e,w=`${c}px ${d} ${u}`;return{[t]:Object.assign(Object.assign({},(0,M.Wf)(e)),{backgroundColor:o,border:w,borderBottom:0,borderRadius:`${s}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:w,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:f,lineHeight:b,cursor:"pointer",transition:`all ${O}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:g*b,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${t}-arrow`]:Object.assign(Object.assign({},(0,M.Ro)()),{fontSize:S,svg:{transition:`transform ${O}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:w,[`& > ${t}-content-box`]:{padding:$},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:C,[`> ${t}-expand-icon`]:{marginInlineStart:y-C}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:m,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:m*b,marginInlineStart:x-r}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},L=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},H=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},D=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var W=(0,_.Z)("Collapse",(e=>{const t=(0,B.TS)(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[A(t),H(t),D(t),L(t),(0,R.Z)(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const X=p.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:o,collapse:i}=p.useContext(z.E_),{prefixCls:l,className:s,rootClassName:c,style:d,bordered:u=!0,ghost:f,size:g,expandIconPosition:m="start",children:b,expandIcon:v}=e,y=(0,T.Z)((e=>{var t;return null!==(t=null!=g?g:e)&&void 0!==t?t:"middle"})),x=n("collapse",l),C=n(),[O,S]=W(x),$=p.useMemo((()=>"left"===m?"start":"right"===m?"end":m),[m]),w=a()(`${x}-icon-position-${$}`,{[`${x}-borderless`]:!u,[`${x}-rtl`]:"rtl"===o,[`${x}-ghost`]:!!f,[`${x}-${y}`]:"middle"!==y},null==i?void 0:i.className,s,c,S),E=Object.assign(Object.assign({},(0,I.Z)(C)),{motionAppear:!1,leavedClassName:`${x}-content-hidden`}),j=p.useMemo((()=>b?(0,h.Z)(b).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:a}=e.props,i=Object.assign(Object.assign({},(0,P.Z)(e.props,["disabled"])),{key:n,collapsible:null!=a?a:o?"disabled":void 0});return(0,N.Tm)(e,i)}return e})):null),[b]);return O(p.createElement(k,Object.assign({ref:t,openMotion:E},(0,P.Z)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=v?v(e):p.createElement(r.Z,{rotate:e.isActive?90:void 0});return(0,N.Tm)(t,(()=>({className:a()(t.props.className,`${x}-arrow`)})))},prefixCls:x,className:w,style:Object.assign(Object.assign({},null==i?void 0:i.style),d)}),j))}));var U=Object.assign(X,{Panel:Z})},28103:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(92310),o=n.n(r),a=n(59301),i=n(36355),l=n(17313),s=n(83116),c=n(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*i+"%"},"&::after":{width:100-100*i+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*i+"%"},"&::after":{width:100*i+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:r}=a.useContext(i.E_),{prefixCls:l,type:s="horizontal",orientation:c="center",orientationMargin:d,className:f,rootClassName:h,children:g,dashed:m,plain:b,style:v}=e,y=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",l),[C,O]=u(x),S=c.length>0?`-${c}`:c,$=!!g,w="left"===c&&null!=d,E="right"===c&&null!=d,j=o()(x,null==r?void 0:r.className,O,`${x}-${s}`,{[`${x}-with-text`]:$,[`${x}-with-text${S}`]:$,[`${x}-dashed`]:!!m,[`${x}-plain`]:!!b,[`${x}-rtl`]:"rtl"===n,[`${x}-no-default-orientation-margin-left`]:w,[`${x}-no-default-orientation-margin-right`]:E},f,h),k=a.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),P=Object.assign(Object.assign({},w&&{marginLeft:k}),E&&{marginRight:k});return C(a.createElement("div",Object.assign({className:j,style:Object.assign(Object.assign({},null==r?void 0:r.style),v)},y,{role:"separator"}),g&&"vertical"!==s&&a.createElement("span",{className:`${x}-inner-text`,style:P},g)))}},12563:function(e,t,n){n.d(t,{Z:function(){return E}});var r=n(59301),o=n(51638),a=n(92310),i=n.n(a),l=n(36785),s=n(47729),c=n(14088),d=n(36355),u=n(17313),p=n(37613),f=n(83116);const h=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=e.lineHeightSM*r+"px";return(0,p.TS)(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},g=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var m=(0,f.Z)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,i=t-n;return{[o]:Object.assign(Object.assign({},(0,u.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:i,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(h(e))),g),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,style:n,className:o,checked:a,onChange:l,onClick:s}=e,c=b(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:p}=r.useContext(d.E_),f=u("tag",t),[h,g]=m(f),v=i()(f,`${f}-checkable`,{[`${f}-checkable-checked`]:a},null==p?void 0:p.className,o,g);return h(r.createElement("span",Object.assign({},c,{style:Object.assign(Object.assign({},n),null==p?void 0:p.style),className:v,onClick:e=>{null==l||l(!a),null==s||s(e)}})))},y=n(45157);var x=(0,f.b)(["Tag","preset"],(e=>(e=>(0,y.Z)(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(h(e))),g);const C=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var O=(0,f.b)(["Tag","status"],(e=>{const t=h(e);return[C(t,"success","Success"),C(t,"processing","Info"),C(t,"error","Error"),C(t,"warning","Warning")]}),g),S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:a,rootClassName:u,style:p,children:f,icon:h,color:g,onClose:b,closeIcon:v,closable:y,bordered:C=!0}=e,$=S(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:w,direction:E,tag:j}=r.useContext(d.E_),[k,P]=r.useState(!0);r.useEffect((()=>{"visible"in $&&P($.visible)}),[$.visible]);const I=(0,l.o2)(g),N=(0,l.yT)(g),z=I||N,T=Object.assign(Object.assign({backgroundColor:g&&!z?g:void 0},null==j?void 0:j.style),p),Z=w("tag",n),[M,R]=m(Z),_=i()(Z,null==j?void 0:j.className,{[`${Z}-${g}`]:z,[`${Z}-has-color`]:g&&!z,[`${Z}-hidden`]:!k,[`${Z}-rtl`]:"rtl"===E,[`${Z}-borderless`]:!C},a,u,R),B=e=>{e.stopPropagation(),null==b||b(e),e.defaultPrevented||P(!1)},[,A]=(0,s.Z)(y,v,(e=>null===e?r.createElement(o.Z,{className:`${Z}-close-icon`,onClick:B}):r.createElement("span",{className:`${Z}-close-icon`,onClick:B},e)),null,!1),L="function"==typeof $.onClick||f&&"a"===f.type,H=h||null,D=H?r.createElement(r.Fragment,null,H,f&&r.createElement("span",null,f)):f,W=r.createElement("span",Object.assign({},$,{ref:t,className:_,style:T}),D,A,I&&r.createElement(x,{key:"preset",prefixCls:Z}),N&&r.createElement(O,{key:"status",prefixCls:Z}));return M(L?r.createElement(c.Z,{component:"Tag"},W):W)},w=r.forwardRef($);w.CheckableTag=v;var E=w},97774:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,o=arguments.length,a=new Array(o),i=0;i0?1:0):0},T=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},C=function(e){return e&&e.offsetWidth||0},L=function(e){return e&&e.offsetHeight||0},x=function(e){var t,n,i,r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,i=Math.atan2(n,t),(r=Math.round(180*i/Math.PI))<0&&(r=360-Math.abs(r)),r<=45&&r>=0||r<=360&&r>=315?"left":r>=135&&r<=225?"right":!0===o?r>=35&&r<=135?"up":"down":"vertical"},E=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},M=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},z=function(e){var t=e.waitForAnimate,n=e.animating,i=e.fade,r=e.infinite,l=e.index,s=e.slideCount,a=e.lazyLoad,c=e.currentSlide,d=e.centerMode,u=e.slidesToScroll,p=e.slidesToShow,f=e.useCSS,h=e.lazyLoadedList;if(t&&n)return{};var v,g,S,k=l,Z={},w={},b=r?l:y(l,0,s-1);if(i){if(!r&&(l<0||l>=s))return{};l<0?k=l+s:l>=s&&(k=l-s),a&&h.indexOf(k)<0&&(h=h.concat(k)),Z={animating:!0,currentSlide:k,lazyLoadedList:h,targetSlide:k},w={animating:!1,targetSlide:k}}else v=k,k<0?(v=k+s,r?s%u!=0&&(v=s-s%u):v=0):!E(e)&&k>c?k=v=c:d&&k>=s?(k=r?s:s-1,v=r?0:s-1):k>=s&&(v=k-s,r?s%u!=0&&(v=0):v=s-p),!r&&k+p>=s&&(v=s-p),g=N((0,o.Z)((0,o.Z)({},e),{},{slideIndex:k})),S=N((0,o.Z)((0,o.Z)({},e),{},{slideIndex:v})),r||(g===S&&(k=v),g=S),a&&(h=h.concat(m((0,o.Z)((0,o.Z)({},e),{},{currentSlide:k})))),f?(Z={animating:!0,currentSlide:v,trackStyle:R((0,o.Z)((0,o.Z)({},e),{},{left:g})),lazyLoadedList:h,targetSlide:b},w={animating:!1,currentSlide:v,trackStyle:I((0,o.Z)((0,o.Z)({},e),{},{left:S})),swipeLeft:null,targetSlide:b}):Z={currentSlide:v,trackStyle:I((0,o.Z)((0,o.Z)({},e),{},{left:S})),lazyLoadedList:h,targetSlide:b};return{state:Z,nextState:w}},H=function(e,t){var n,i,r,l,s=e.slidesToScroll,a=e.slidesToShow,c=e.slideCount,d=e.currentSlide,u=e.targetSlide,p=e.lazyLoad,f=e.infinite;if(n=c%s!=0?0:(c-d)%s,"previous"===t.message)l=d-(r=0===n?s:a-n),p&&!f&&(l=-1===(i=d-r)?c-1:i),f||(l=u-s);else if("next"===t.message)l=d+(r=0===n?s:n),p&&!f&&(l=(d+s)%c+n),f||(l=u+s);else if("dots"===t.message)l=t.index*t.slidesToScroll;else if("children"===t.message){if(l=t.index,f){var h=X((0,o.Z)((0,o.Z)({},e),{},{targetSlide:l}));l>t.currentSlide&&"left"===h?l-=c:ln[n.length-1])t=n[n.length-1];else for(var r in n){if(t-1*e.swipeLeft)return n=i,!1}else if(i.offsetLeft-t+C(i)/2>-1*e.swipeLeft)return n=i,!1;return!0})),!n)return 0;var o=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-o)||1}return e.slidesToScroll},P=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},I=function(e){var t,n;P(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var i=e.slideCount+2*e.slidesToShow;e.vertical?n=i*e.slideHeight:t=j(e)*e.slideWidth;var r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var l=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=(0,o.Z)((0,o.Z)({},r),{},{WebkitTransform:l,transform:s,msTransform:a})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t),n&&(r.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},R=function(e){P(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=I(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},N=function(e){if(e.unslick)return 0;P(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,i=e.slideIndex,r=e.trackRef,o=e.infinite,l=e.centerMode,s=e.slideCount,a=e.slidesToShow,c=e.slidesToScroll,d=e.slideWidth,u=e.listWidth,p=e.variableWidth,f=e.slideHeight,h=e.fade,v=e.vertical;if(h||1===e.slideCount)return 0;var g=0;if(o?(g=-A(e),s%c!=0&&i+c>s&&(g=-(i>s?a-(i-s):s%c)),l&&(g+=parseInt(a/2))):(s%c!=0&&i+c>s&&(g=a-s%c),l&&(g=parseInt(a/2))),t=v?i*f*-1+g*f:i*d*-1+g*d,!0===p){var S,y=r&&r.node;if(S=i+A(e),t=(n=y&&y.childNodes[S])?-1*n.offsetLeft:0,!0===l){S=o?i+A(e):i,n=y&&y.children[S],t=0;for(var k=0;ke.currentSlide?e.targetSlide>e.currentSlide+Y(e)?"left":"right":e.targetSlide0&&(o+=1),i&&t%2==0&&(o+=1),o}return i?0:t-1},$=function(e){var t=e.slidesToShow,n=e.centerMode,i=e.rtl,r=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(r)>0&&(o+=1),i||t%2!=0||(o+=1),o}return i?t-1:0},F=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},q=function(e){var t,n,i,r,o;return i=(o=e.rtl?e.slideCount-1-e.index:e.index)<0||o>=e.slideCount,e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount==0,o>e.currentSlide-r-1&&o<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=o&&o=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},B=function(e,t){return e.key+"-"+t},G=function(e){var t,n=[],r=[],l=[],s=i.Children.count(e.children),a=Z(e),c=w(e);return i.Children.forEach(e.children,(function(d,u){var p,f={message:"children",index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};p=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(u)>=0?d:i.createElement("div",null);var h=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}((0,o.Z)((0,o.Z)({},e),{},{index:u})),v=p.props.className||"",g=q((0,o.Z)((0,o.Z)({},e),{},{index:u}));if(n.push(i.cloneElement(p,{key:"original"+B(p,u),"data-index":u,className:S()(g,v),tabIndex:"-1","aria-hidden":!g["slick-active"],style:(0,o.Z)((0,o.Z)({outline:"none"},p.props.style||{}),h),onClick:function(t){p.props&&p.props.onClick&&p.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}})),e.infinite&&!1===e.fade){var y=s-u;y<=A(e)&&s!==e.slidesToShow&&((t=-y)>=a&&(p=d),g=q((0,o.Z)((0,o.Z)({},e),{},{index:t})),r.push(i.cloneElement(p,{key:"precloned"+B(p,t),"data-index":t,tabIndex:"-1",className:S()(g,v),"aria-hidden":!g["slick-active"],style:(0,o.Z)((0,o.Z)({},p.props.style||{}),h),onClick:function(t){p.props&&p.props.onClick&&p.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}}))),s!==e.slidesToShow&&((t=s+u)=Z&&u<=k:u===Z}),b={message:"dots",index:v,slidesToScroll:a,currentSlide:u},T=this.clickHandler.bind(this,b);h=h.concat(i.createElement("li",{key:v,className:w},i.cloneElement(this.props.customPaging(v),{onClick:T})))}return i.cloneElement(this.props.appendDots(h),(0,o.Z)({className:this.props.dotsClass},f))}}]),n}(i.PureComponent),K=function(e){(0,c.Z)(n,e);var t=(0,d.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:S()(e),style:{display:"block"},onClick:t},l={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?i.cloneElement(this.props.prevArrow,(0,o.Z)((0,o.Z)({},n),l)):i.createElement("button",(0,r.Z)({key:"0",type:"button"},n)," ","Previous")}}]),n}(i.PureComponent),V=function(e){(0,c.Z)(n,e);var t=(0,d.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});E(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:S()(e),style:{display:"block"},onClick:t},l={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?i.cloneElement(this.props.nextArrow,(0,o.Z)((0,o.Z)({},n),l)):i.createElement("button",(0,r.Z)({key:"1",type:"button"},n)," ","Next")}}]),n}(i.PureComponent),J=n(76374),Q=["animating"],ee=function(e){(0,c.Z)(n,e);var t=(0,d.Z)(n);function n(e){var s;(0,l.Z)(this,n),s=t.call(this,e),(0,u.Z)((0,a.Z)(s),"listRefHandler",(function(e){return s.list=e})),(0,u.Z)((0,a.Z)(s),"trackRefHandler",(function(e){return s.track=e})),(0,u.Z)((0,a.Z)(s),"adaptHeight",(function(){if(s.props.adaptiveHeight&&s.list){var e=s.list.querySelector('[data-index="'.concat(s.state.currentSlide,'"]'));s.list.style.height=L(e)+"px"}})),(0,u.Z)((0,a.Z)(s),"componentDidMount",(function(){if(s.props.onInit&&s.props.onInit(),s.props.lazyLoad){var e=m((0,o.Z)((0,o.Z)({},s.props),s.state));e.length>0&&(s.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),s.props.onLazyLoad&&s.props.onLazyLoad(e))}var t=(0,o.Z)({listRef:s.list,trackRef:s.track},s.props);s.updateState(t,!0,(function(){s.adaptHeight(),s.props.autoplay&&s.autoPlay("playing")})),"progressive"===s.props.lazyLoad&&(s.lazyLoadTimer=setInterval(s.progressiveLazyLoad,1e3)),s.ro=new J.Z((function(){s.state.animating?(s.onWindowResized(!1),s.callbackTimers.push(setTimeout((function(){return s.onWindowResized()}),s.props.speed))):s.onWindowResized()})),s.ro.observe(s.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=s.props.pauseOnFocus?s.onSlideFocus:null,e.onblur=s.props.pauseOnFocus?s.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",s.onWindowResized):window.attachEvent("onresize",s.onWindowResized)})),(0,u.Z)((0,a.Z)(s),"componentWillUnmount",(function(){s.animationEndCallback&&clearTimeout(s.animationEndCallback),s.lazyLoadTimer&&clearInterval(s.lazyLoadTimer),s.callbackTimers.length&&(s.callbackTimers.forEach((function(e){return clearTimeout(e)})),s.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",s.onWindowResized):window.detachEvent("onresize",s.onWindowResized),s.autoplayTimer&&clearInterval(s.autoplayTimer),s.ro.disconnect()})),(0,u.Z)((0,a.Z)(s),"componentDidUpdate",(function(e){if(s.checkImagesLoad(),s.props.onReInit&&s.props.onReInit(),s.props.lazyLoad){var t=m((0,o.Z)((0,o.Z)({},s.props),s.state));t.length>0&&(s.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),s.props.onLazyLoad&&s.props.onLazyLoad(t))}s.adaptHeight();var n=(0,o.Z)((0,o.Z)({listRef:s.list,trackRef:s.track},s.props),s.state),r=s.didPropsChange(e);r&&s.updateState(n,r,(function(){s.state.currentSlide>=i.Children.count(s.props.children)&&s.changeSlide({message:"index",index:i.Children.count(s.props.children)-s.props.slidesToShow,currentSlide:s.state.currentSlide}),e.autoplay===s.props.autoplay&&e.autoplaySpeed===s.props.autoplaySpeed||(!e.autoplay&&s.props.autoplay?s.autoPlay("playing"):s.props.autoplay?s.autoPlay("update"):s.pause("paused"))}))})),(0,u.Z)((0,a.Z)(s),"onWindowResized",(function(e){s.debouncedResize&&s.debouncedResize.cancel(),s.debouncedResize=(0,v.D)(50,(function(){return s.resizeWindow(e)})),s.debouncedResize()})),(0,u.Z)((0,a.Z)(s),"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=Boolean(s.track&&s.track.node);if(t){var n=(0,o.Z)((0,o.Z)({listRef:s.list,trackRef:s.track},s.props),s.state);s.updateState(n,e,(function(){s.props.autoplay?s.autoPlay("update"):s.pause("paused")})),s.setState({animating:!1}),clearTimeout(s.animationEndCallback),delete s.animationEndCallback}})),(0,u.Z)((0,a.Z)(s),"updateState",(function(e,t,n){var r=function(e){var t,n=i.Children.count(e.children),r=e.listRef,l=Math.ceil(C(r)),s=e.trackRef&&e.trackRef.node,a=Math.ceil(C(s));if(e.vertical)t=l;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=l/100),t=Math.ceil((l-c)/e.slidesToShow)}var d=r&&L(r.querySelector('[data-index="0"]')),u=d*e.slidesToShow,p=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(p=n-1-e.initialSlide);var f=e.lazyLoadedList||[],h=m((0,o.Z)((0,o.Z)({},e),{},{currentSlide:p,lazyLoadedList:f})),v={slideCount:n,slideWidth:t,listWidth:l,trackWidth:a,currentSlide:p,slideHeight:d,listHeight:u,lazyLoadedList:f=f.concat(h)};return null===e.autoplaying&&e.autoplay&&(v.autoplaying="playing"),v}(e);e=(0,o.Z)((0,o.Z)((0,o.Z)({},e),r),{},{slideIndex:r.currentSlide});var l=N(e);e=(0,o.Z)((0,o.Z)({},e),{},{left:l});var a=I(e);(t||i.Children.count(s.props.children)!==i.Children.count(e.children))&&(r.trackStyle=a),s.setState(r,n)})),(0,u.Z)((0,a.Z)(s),"ssrInit",(function(){if(s.props.variableWidth){var e=0,t=0,n=[],r=A((0,o.Z)((0,o.Z)((0,o.Z)({},s.props),s.state),{},{slideCount:s.props.children.length})),l=D((0,o.Z)((0,o.Z)((0,o.Z)({},s.props),s.state),{},{slideCount:s.props.children.length}));s.props.children.forEach((function(t){n.push(t.props.style.width),e+=t.props.style.width}));for(var a=0;a=t&&s.onWindowResized()};if(e.onclick){var r=e.onclick;e.onclick=function(t){r(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(s.props.lazyLoad?e.onload=function(){s.adaptHeight(),s.callbackTimers.push(setTimeout(s.onWindowResized,s.props.speed))}:(e.onload=i,e.onerror=function(){i(),s.props.onLazyLoadError&&s.props.onLazyLoadError()}))}))})),(0,u.Z)((0,a.Z)(s),"progressiveLazyLoad",(function(){for(var e=[],t=(0,o.Z)((0,o.Z)({},s.props),s.state),n=s.state.currentSlide;n=-A(t);i--)if(s.state.lazyLoadedList.indexOf(i)<0){e.push(i);break}e.length>0?(s.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),s.props.onLazyLoad&&s.props.onLazyLoad(e)):s.lazyLoadTimer&&(clearInterval(s.lazyLoadTimer),delete s.lazyLoadTimer)})),(0,u.Z)((0,a.Z)(s),"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=s.props,i=n.asNavFor,r=n.beforeChange,l=n.onLazyLoad,a=n.speed,c=n.afterChange,d=s.state.currentSlide,u=z((0,o.Z)((0,o.Z)((0,o.Z)({index:e},s.props),s.state),{},{trackRef:s.track,useCSS:s.props.useCSS&&!t})),p=u.state,h=u.nextState;if(p){r&&r(d,p.currentSlide);var v=p.lazyLoadedList.filter((function(e){return s.state.lazyLoadedList.indexOf(e)<0}));l&&v.length>0&&l(v),!s.props.waitForAnimate&&s.animationEndCallback&&(clearTimeout(s.animationEndCallback),c&&c(d),delete s.animationEndCallback),s.setState(p,(function(){i&&s.asNavForIndex!==e&&(s.asNavForIndex=e,i.innerSlider.slideHandler(e)),h&&(s.animationEndCallback=setTimeout((function(){var e=h.animating,t=(0,f.Z)(h,Q);s.setState(t,(function(){s.callbackTimers.push(setTimeout((function(){return s.setState({animating:e})}),10)),c&&c(p.currentSlide),delete s.animationEndCallback}))}),a))}))}})),(0,u.Z)((0,a.Z)(s),"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,o.Z)((0,o.Z)({},s.props),s.state),i=H(n,e);if((0===i||i)&&(!0===t?s.slideHandler(i,t):s.slideHandler(i),s.props.autoplay&&s.autoPlay("update"),s.props.focusOnSelect)){var r=s.list.querySelectorAll(".slick-current");r[0]&&r[0].focus()}})),(0,u.Z)((0,a.Z)(s),"clickHandler",(function(e){!1===s.clickable&&(e.stopPropagation(),e.preventDefault()),s.clickable=!0})),(0,u.Z)((0,a.Z)(s),"keyHandler",(function(e){var t=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""}(e,s.props.accessibility,s.props.rtl);""!==t&&s.changeSlide({message:t})})),(0,u.Z)((0,a.Z)(s),"selectHandler",(function(e){s.changeSlide(e)})),(0,u.Z)((0,a.Z)(s),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),(0,u.Z)((0,a.Z)(s),"enableBodyScroll",(function(){window.ontouchmove=null})),(0,u.Z)((0,a.Z)(s),"swipeStart",(function(e){s.props.verticalSwiping&&s.disableBodyScroll();var t=function(e,t,n){return"IMG"===e.target.tagName&&k(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}}(e,s.props.swipe,s.props.draggable);""!==t&&s.setState(t)})),(0,u.Z)((0,a.Z)(s),"swipeMove",(function(e){var t=function(e,t){var n=t.scrolling,i=t.animating,r=t.vertical,l=t.swipeToSlide,s=t.verticalSwiping,a=t.rtl,c=t.currentSlide,d=t.edgeFriction,u=t.edgeDragged,p=t.onEdge,f=t.swiped,h=t.swiping,v=t.slideCount,g=t.slidesToScroll,S=t.infinite,y=t.touchObject,m=t.swipeEvent,Z=t.listHeight,w=t.listWidth;if(!n){if(i)return k(e);r&&l&&s&&k(e);var b,T={},C=N(t);y.curX=e.touches?e.touches[0].pageX:e.clientX,y.curY=e.touches?e.touches[0].pageY:e.clientY,y.swipeLength=Math.round(Math.sqrt(Math.pow(y.curX-y.startX,2)));var L=Math.round(Math.sqrt(Math.pow(y.curY-y.startY,2)));if(!s&&!h&&L>10)return{scrolling:!0};s&&(y.swipeLength=L);var M=(a?-1:1)*(y.curX>y.startX?1:-1);s&&(M=y.curY>y.startY?1:-1);var z=Math.ceil(v/g),H=x(t.touchObject,s),W=y.swipeLength;return S||(0===c&&("right"===H||"down"===H)||c+1>=z&&("left"===H||"up"===H)||!E(t)&&("left"===H||"up"===H))&&(W=y.swipeLength*d,!1===u&&p&&(p(H),T.edgeDragged=!0)),!f&&m&&(m(H),T.swiped=!0),b=r?C+W*(Z/w)*M:a?C-W*M:C+W*M,s&&(b=C+W*M),T=(0,o.Z)((0,o.Z)({},T),{},{touchObject:y,swipeLeft:b,trackStyle:I((0,o.Z)((0,o.Z)({},t),{},{left:b}))}),Math.abs(y.curX-y.startX)<.8*Math.abs(y.curY-y.startY)||y.swipeLength>10&&(T.swiping=!0,k(e)),T}}(e,(0,o.Z)((0,o.Z)((0,o.Z)({},s.props),s.state),{},{trackRef:s.track,listRef:s.list,slideIndex:s.state.currentSlide}));t&&(t.swiping&&(s.clickable=!1),s.setState(t))})),(0,u.Z)((0,a.Z)(s),"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,i=t.swipe,r=t.touchObject,l=t.listWidth,s=t.touchThreshold,a=t.verticalSwiping,c=t.listHeight,d=t.swipeToSlide,u=t.scrolling,p=t.onSwipe,f=t.targetSlide,h=t.currentSlide,v=t.infinite;if(!n)return i&&k(e),{};var g=a?c/s:l/s,S=x(r,a),y={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return y;if(!r.swipeLength)return y;if(r.swipeLength>g){var m,Z;k(e),p&&p(S);var w=v?h:f;switch(S){case"left":case"up":Z=w+O(t),m=d?W(t,Z):Z,y.currentDirection=0;break;case"right":case"down":Z=w-O(t),m=d?W(t,Z):Z,y.currentDirection=1;break;default:m=w}y.triggerSlideHandler=m}else{var b=N(t);y.trackStyle=R((0,o.Z)((0,o.Z)({},t),{},{left:b}))}return y}(e,(0,o.Z)((0,o.Z)((0,o.Z)({},s.props),s.state),{},{trackRef:s.track,listRef:s.list,slideIndex:s.state.currentSlide}));if(t){var n=t.triggerSlideHandler;delete t.triggerSlideHandler,s.setState(t),void 0!==n&&(s.slideHandler(n),s.props.verticalSwiping&&s.enableBodyScroll())}})),(0,u.Z)((0,a.Z)(s),"touchEnd",(function(e){s.swipeEnd(e),s.clickable=!0})),(0,u.Z)((0,a.Z)(s),"slickPrev",(function(){s.callbackTimers.push(setTimeout((function(){return s.changeSlide({message:"previous"})}),0))})),(0,u.Z)((0,a.Z)(s),"slickNext",(function(){s.callbackTimers.push(setTimeout((function(){return s.changeSlide({message:"next"})}),0))})),(0,u.Z)((0,a.Z)(s),"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";s.callbackTimers.push(setTimeout((function(){return s.changeSlide({message:"index",index:e,currentSlide:s.state.currentSlide},t)}),0))})),(0,u.Z)((0,a.Z)(s),"play",(function(){var e;if(s.props.rtl)e=s.state.currentSlide-s.props.slidesToScroll;else{if(!E((0,o.Z)((0,o.Z)({},s.props),s.state)))return!1;e=s.state.currentSlide+s.props.slidesToScroll}s.slideHandler(e)})),(0,u.Z)((0,a.Z)(s),"autoPlay",(function(e){s.autoplayTimer&&clearInterval(s.autoplayTimer);var t=s.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;s.autoplayTimer=setInterval(s.play,s.props.autoplaySpeed+50),s.setState({autoplaying:"playing"})})),(0,u.Z)((0,a.Z)(s),"pause",(function(e){s.autoplayTimer&&(clearInterval(s.autoplayTimer),s.autoplayTimer=null);var t=s.state.autoplaying;"paused"===e?s.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||s.setState({autoplaying:"focused"}):"playing"===t&&s.setState({autoplaying:"hovered"})})),(0,u.Z)((0,a.Z)(s),"onDotsOver",(function(){return s.props.autoplay&&s.pause("hovered")})),(0,u.Z)((0,a.Z)(s),"onDotsLeave",(function(){return s.props.autoplay&&"hovered"===s.state.autoplaying&&s.autoPlay("leave")})),(0,u.Z)((0,a.Z)(s),"onTrackOver",(function(){return s.props.autoplay&&s.pause("hovered")})),(0,u.Z)((0,a.Z)(s),"onTrackLeave",(function(){return s.props.autoplay&&"hovered"===s.state.autoplaying&&s.autoPlay("leave")})),(0,u.Z)((0,a.Z)(s),"onSlideFocus",(function(){return s.props.autoplay&&s.pause("focused")})),(0,u.Z)((0,a.Z)(s),"onSlideBlur",(function(){return s.props.autoplay&&"focused"===s.state.autoplaying&&s.autoPlay("blur")})),(0,u.Z)((0,a.Z)(s),"render",(function(){var e,t,n,l=S()("slick-slider",s.props.className,{"slick-vertical":s.props.vertical,"slick-initialized":!0}),a=(0,o.Z)((0,o.Z)({},s.props),s.state),c=M(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),d=s.props.pauseOnHover;if(c=(0,o.Z)((0,o.Z)({},c),{},{onMouseEnter:d?s.onTrackOver:null,onMouseLeave:d?s.onTrackLeave:null,onMouseOver:d?s.onTrackOver:null,focusOnSelect:s.props.focusOnSelect&&s.clickable?s.selectHandler:null}),!0===s.props.dots&&s.state.slideCount>=s.props.slidesToShow){var u=M(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),p=s.props.pauseOnDotsHover;u=(0,o.Z)((0,o.Z)({},u),{},{clickHandler:s.changeSlide,onMouseEnter:p?s.onDotsLeave:null,onMouseOver:p?s.onDotsOver:null,onMouseLeave:p?s.onDotsLeave:null}),e=i.createElement(_,u)}var f=M(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);f.clickHandler=s.changeSlide,s.props.arrows&&(t=i.createElement(K,f),n=i.createElement(V,f));var h=null;s.props.vertical&&(h={height:s.state.listHeight});var v=null;!1===s.props.vertical?!0===s.props.centerMode&&(v={padding:"0px "+s.props.centerPadding}):!0===s.props.centerMode&&(v={padding:s.props.centerPadding+" 0px"});var g=(0,o.Z)((0,o.Z)({},h),v),y=s.props.touchMove,k={className:"slick-list",style:g,onClick:s.clickHandler,onMouseDown:y?s.swipeStart:null,onMouseMove:s.state.dragging&&y?s.swipeMove:null,onMouseUp:y?s.swipeEnd:null,onMouseLeave:s.state.dragging&&y?s.swipeEnd:null,onTouchStart:y?s.swipeStart:null,onTouchMove:s.state.dragging&&y?s.swipeMove:null,onTouchEnd:y?s.touchEnd:null,onTouchCancel:s.state.dragging&&y?s.swipeEnd:null,onKeyDown:s.props.accessibility?s.keyHandler:null},m={className:l,dir:"ltr",style:s.props.style};return s.props.unslick&&(k={className:"slick-list"},m={className:l,style:s.props.style}),i.createElement("div",m,s.props.unslick?"":t,i.createElement("div",(0,r.Z)({ref:s.listRefHandler},k),i.createElement(U,(0,r.Z)({ref:s.trackRefHandler},c),s.props.children)),s.props.unslick?"":n,s.props.unslick?"":e)})),s.list=null,s.track=null,s.state=(0,o.Z)((0,o.Z)({},h),{},{currentSlide:s.props.initialSlide,slideCount:i.Children.count(s.props.children)}),s.callbackTimers=[],s.clickable=!0,s.debouncedResize=null;var c=s.ssrInit();return s.state=(0,o.Z)((0,o.Z)({},s.state),c),s}return(0,s.Z)(n,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,r=Object.keys(this.props);n1&&void 0!==arguments[1]&&arguments[1];return i.innerSlider.slickGoTo(e,t)})),(0,u.Z)((0,a.Z)(i),"slickPause",(function(){return i.innerSlider.pause("paused")})),(0,u.Z)((0,a.Z)(i),"slickPlay",(function(){return i.innerSlider.autoPlay("play")})),i.state={breakpoint:null},i._responsiveMediaHandlers=[],i}return(0,s.Z)(n,[{key:"media",value:function(e,t){var n=window.matchMedia(e),i=function(e){e.matches&&t()};n.addListener(i),i(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:i})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,i){var r;r=0===i?ne()({minWidth:0,maxWidth:n}):ne()({minWidth:t[i-1]+1,maxWidth:n}),F()&&e.media(r,(function(){e.setState({breakpoint:n})}))}));var n=ne()({minWidth:t.slice(-1)[0]});F()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":(0,o.Z)((0,o.Z)((0,o.Z)({},ie),this.props),t[0].settings):(0,o.Z)((0,o.Z)({},ie),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var l=i.Children.toArray(this.props.children);l=l.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var s=[],a=null,c=0;c=l.length));f+=1)p.push(i.cloneElement(l[f],{key:100*c+10*u+f,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));d.push(i.createElement("div",{key:10*c+u},p))}e.variableWidth?s.push(i.createElement("div",{key:c,style:{width:a}},d)):s.push(i.createElement("div",{key:c},d))}if("unslick"===e){var h="regular slider "+(this.props.className||"");return i.createElement("div",{className:h},l)}return s.length<=e.slidesToShow&&(e.unslick=!0),i.createElement(ee,(0,r.Z)({style:this.props.style,ref:this.innerSliderRefHandler},e),s)}}]),n}(i.Component),oe=re,le=n(36355),se=n(17313),ae=n(83116),ce=n(37613);const de=e=>{const{componentCls:t,antCls:n,carouselArrowSize:i,carouselDotOffset:r,marginXXS:o}=e,l=1.25*-i,s=o;return{[t]:Object.assign(Object.assign({},(0,se.Wf)(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:i,height:i,marginTop:-i/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:l,"&::before":{content:'"←"'}},".slick-next":{insetInlineEnd:l,"&::before":{content:'"→"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:r},"&-top":{top:r,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:s,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-s,content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},ue=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:i}=e,r={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:Object.assign(Object.assign({},r),{margin:`${i}px 0`,verticalAlign:"baseline",button:r,"&.slick-active":Object.assign(Object.assign({},r),{button:r})})}}}},pe=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]};var fe=(0,ae.Z)("Carousel",(e=>{const{controlHeightLG:t,controlHeightSM:n}=e,i=(0,ce.TS)(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[de(i),ue(i),pe(i)]}),(()=>({dotWidth:16,dotHeight:3,dotWidthActive:24,dotActiveWidth:24})),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),he=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{dots:n=!0,arrows:r=!1,draggable:o=!1,waitForAnimate:l=!1,dotPosition:s="bottom",vertical:a="left"===s||"right"===s,rootClassName:c,className:d,style:u,id:p}=e,f=he(e,["dots","arrows","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:h,direction:v,carousel:g}=i.useContext(le.E_),y=i.useRef(),k=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];y.current.slickGoTo(e,t)};i.useImperativeHandle(t,(()=>({goTo:k,autoPlay:y.current.innerSlider.autoPlay,innerSlider:y.current.innerSlider,prev:y.current.slickPrev,next:y.current.slickNext})),[y.current]);const m=i.useRef(i.Children.count(e.children));i.useEffect((()=>{m.current!==i.Children.count(e.children)&&(k(e.initialSlide||0,!1),m.current=i.Children.count(e.children))}),[e.children]);const Z=Object.assign({vertical:a,className:S()(d,null==g?void 0:g.className),style:Object.assign(Object.assign({},null==g?void 0:g.style),u)},f);"fade"===Z.effect&&(Z.fade=!0);const w=h("carousel",Z.prefixCls),b="slick-dots",T=!!n,C=S()(b,`${b}-${s}`,"boolean"!=typeof n&&(null==n?void 0:n.className)),[L,x]=fe(w),E=S()(w,{[`${w}-rtl`]:"rtl"===v,[`${w}-vertical`]:Z.vertical},x,c);return L(i.createElement("div",{className:E,id:p},i.createElement(oe,Object.assign({ref:y},Z,{dots:T,dotsClass:C,arrows:r,draggable:o,verticalSwiping:a,waitForAnimate:l}))))}));var ge=ve},7861:function(e,t,n){var i=n(38710),r=function(e){var t="",n=Object.keys(e);return n.forEach((function(r,o){var l=e[r];(function(e){return/[height|width]$/.test(e)})(r=i(r))&&"number"==typeof l&&(l+="px"),t+=!0===l?r:!1===l?"not "+r:"("+r+": "+l+")",o0?1:0):0},T=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},C=function(e){return e&&e.offsetWidth||0},L=function(e){return e&&e.offsetHeight||0},x=function(e){var t,n,i,r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,i=Math.atan2(n,t),(r=Math.round(180*i/Math.PI))<0&&(r=360-Math.abs(r)),r<=45&&r>=0||r<=360&&r>=315?"left":r>=135&&r<=225?"right":!0===o?r>=35&&r<=135?"up":"down":"vertical"},E=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},M=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},z=function(e){var t=e.waitForAnimate,n=e.animating,i=e.fade,r=e.infinite,l=e.index,s=e.slideCount,a=e.lazyLoad,c=e.currentSlide,d=e.centerMode,u=e.slidesToScroll,p=e.slidesToShow,f=e.useCSS,h=e.lazyLoadedList;if(t&&n)return{};var v,g,S,k=l,Z={},w={},b=r?l:y(l,0,s-1);if(i){if(!r&&(l<0||l>=s))return{};l<0?k=l+s:l>=s&&(k=l-s),a&&h.indexOf(k)<0&&(h=h.concat(k)),Z={animating:!0,currentSlide:k,lazyLoadedList:h,targetSlide:k},w={animating:!1,targetSlide:k}}else v=k,k<0?(v=k+s,r?s%u!=0&&(v=s-s%u):v=0):!E(e)&&k>c?k=v=c:d&&k>=s?(k=r?s:s-1,v=r?0:s-1):k>=s&&(v=k-s,r?s%u!=0&&(v=0):v=s-p),!r&&k+p>=s&&(v=s-p),g=N((0,o.Z)((0,o.Z)({},e),{},{slideIndex:k})),S=N((0,o.Z)((0,o.Z)({},e),{},{slideIndex:v})),r||(g===S&&(k=v),g=S),a&&(h=h.concat(m((0,o.Z)((0,o.Z)({},e),{},{currentSlide:k})))),f?(Z={animating:!0,currentSlide:v,trackStyle:R((0,o.Z)((0,o.Z)({},e),{},{left:g})),lazyLoadedList:h,targetSlide:b},w={animating:!1,currentSlide:v,trackStyle:I((0,o.Z)((0,o.Z)({},e),{},{left:S})),swipeLeft:null,targetSlide:b}):Z={currentSlide:v,trackStyle:I((0,o.Z)((0,o.Z)({},e),{},{left:S})),lazyLoadedList:h,targetSlide:b};return{state:Z,nextState:w}},H=function(e,t){var n,i,r,l,s=e.slidesToScroll,a=e.slidesToShow,c=e.slideCount,d=e.currentSlide,u=e.targetSlide,p=e.lazyLoad,f=e.infinite;if(n=c%s!=0?0:(c-d)%s,"previous"===t.message)l=d-(r=0===n?s:a-n),p&&!f&&(l=-1===(i=d-r)?c-1:i),f||(l=u-s);else if("next"===t.message)l=d+(r=0===n?s:n),p&&!f&&(l=(d+s)%c+n),f||(l=u+s);else if("dots"===t.message)l=t.index*t.slidesToScroll;else if("children"===t.message){if(l=t.index,f){var h=X((0,o.Z)((0,o.Z)({},e),{},{targetSlide:l}));l>t.currentSlide&&"left"===h?l-=c:ln[n.length-1])t=n[n.length-1];else for(var r in n){if(t-1*e.swipeLeft)return n=i,!1}else if(i.offsetLeft-t+C(i)/2>-1*e.swipeLeft)return n=i,!1;return!0})),!n)return 0;var o=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-o)||1}return e.slidesToScroll},P=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},I=function(e){var t,n;P(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var i=e.slideCount+2*e.slidesToShow;e.vertical?n=i*e.slideHeight:t=j(e)*e.slideWidth;var r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var l=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=(0,o.Z)((0,o.Z)({},r),{},{WebkitTransform:l,transform:s,msTransform:a})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t),n&&(r.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},R=function(e){P(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=I(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},N=function(e){if(e.unslick)return 0;P(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,i=e.slideIndex,r=e.trackRef,o=e.infinite,l=e.centerMode,s=e.slideCount,a=e.slidesToShow,c=e.slidesToScroll,d=e.slideWidth,u=e.listWidth,p=e.variableWidth,f=e.slideHeight,h=e.fade,v=e.vertical;if(h||1===e.slideCount)return 0;var g=0;if(o?(g=-A(e),s%c!=0&&i+c>s&&(g=-(i>s?a-(i-s):s%c)),l&&(g+=parseInt(a/2))):(s%c!=0&&i+c>s&&(g=a-s%c),l&&(g=parseInt(a/2))),t=v?i*f*-1+g*f:i*d*-1+g*d,!0===p){var S,y=r&&r.node;if(S=i+A(e),t=(n=y&&y.childNodes[S])?-1*n.offsetLeft:0,!0===l){S=o?i+A(e):i,n=y&&y.children[S],t=0;for(var k=0;ke.currentSlide?e.targetSlide>e.currentSlide+Y(e)?"left":"right":e.targetSlide0&&(o+=1),i&&t%2==0&&(o+=1),o}return i?0:t-1},$=function(e){var t=e.slidesToShow,n=e.centerMode,i=e.rtl,r=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(r)>0&&(o+=1),i||t%2!=0||(o+=1),o}return i?t-1:0},F=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},q=function(e){var t,n,i,r,o;return i=(o=e.rtl?e.slideCount-1-e.index:e.index)<0||o>=e.slideCount,e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount==0,o>e.currentSlide-r-1&&o<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=o&&o=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},B=function(e,t){return e.key+"-"+t},G=function(e){var t,n=[],r=[],l=[],s=i.Children.count(e.children),a=Z(e),c=w(e);return i.Children.forEach(e.children,(function(d,u){var p,f={message:"children",index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};p=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(u)>=0?d:i.createElement("div",null);var h=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}((0,o.Z)((0,o.Z)({},e),{},{index:u})),v=p.props.className||"",g=q((0,o.Z)((0,o.Z)({},e),{},{index:u}));if(n.push(i.cloneElement(p,{key:"original"+B(p,u),"data-index":u,className:S()(g,v),tabIndex:"-1","aria-hidden":!g["slick-active"],style:(0,o.Z)((0,o.Z)({outline:"none"},p.props.style||{}),h),onClick:function(t){p.props&&p.props.onClick&&p.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}})),e.infinite&&!1===e.fade){var y=s-u;y<=A(e)&&s!==e.slidesToShow&&((t=-y)>=a&&(p=d),g=q((0,o.Z)((0,o.Z)({},e),{},{index:t})),r.push(i.cloneElement(p,{key:"precloned"+B(p,t),"data-index":t,tabIndex:"-1",className:S()(g,v),"aria-hidden":!g["slick-active"],style:(0,o.Z)((0,o.Z)({},p.props.style||{}),h),onClick:function(t){p.props&&p.props.onClick&&p.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}}))),s!==e.slidesToShow&&((t=s+u)=Z&&u<=k:u===Z}),b={message:"dots",index:v,slidesToScroll:a,currentSlide:u},T=this.clickHandler.bind(this,b);h=h.concat(i.createElement("li",{key:v,className:w},i.cloneElement(this.props.customPaging(v),{onClick:T})))}return i.cloneElement(this.props.appendDots(h),(0,o.Z)({className:this.props.dotsClass},f))}}]),n}(i.PureComponent),K=function(e){(0,c.Z)(n,e);var t=(0,d.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:S()(e),style:{display:"block"},onClick:t},l={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?i.cloneElement(this.props.prevArrow,(0,o.Z)((0,o.Z)({},n),l)):i.createElement("button",(0,r.Z)({key:"0",type:"button"},n)," ","Previous")}}]),n}(i.PureComponent),V=function(e){(0,c.Z)(n,e);var t=(0,d.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});E(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:S()(e),style:{display:"block"},onClick:t},l={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?i.cloneElement(this.props.nextArrow,(0,o.Z)((0,o.Z)({},n),l)):i.createElement("button",(0,r.Z)({key:"1",type:"button"},n)," ","Next")}}]),n}(i.PureComponent),J=n(76374),Q=["animating"],ee=function(e){(0,c.Z)(n,e);var t=(0,d.Z)(n);function n(e){var s;(0,l.Z)(this,n),s=t.call(this,e),(0,u.Z)((0,a.Z)(s),"listRefHandler",(function(e){return s.list=e})),(0,u.Z)((0,a.Z)(s),"trackRefHandler",(function(e){return s.track=e})),(0,u.Z)((0,a.Z)(s),"adaptHeight",(function(){if(s.props.adaptiveHeight&&s.list){var e=s.list.querySelector('[data-index="'.concat(s.state.currentSlide,'"]'));s.list.style.height=L(e)+"px"}})),(0,u.Z)((0,a.Z)(s),"componentDidMount",(function(){if(s.props.onInit&&s.props.onInit(),s.props.lazyLoad){var e=m((0,o.Z)((0,o.Z)({},s.props),s.state));e.length>0&&(s.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),s.props.onLazyLoad&&s.props.onLazyLoad(e))}var t=(0,o.Z)({listRef:s.list,trackRef:s.track},s.props);s.updateState(t,!0,(function(){s.adaptHeight(),s.props.autoplay&&s.autoPlay("playing")})),"progressive"===s.props.lazyLoad&&(s.lazyLoadTimer=setInterval(s.progressiveLazyLoad,1e3)),s.ro=new J.Z((function(){s.state.animating?(s.onWindowResized(!1),s.callbackTimers.push(setTimeout((function(){return s.onWindowResized()}),s.props.speed))):s.onWindowResized()})),s.ro.observe(s.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=s.props.pauseOnFocus?s.onSlideFocus:null,e.onblur=s.props.pauseOnFocus?s.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",s.onWindowResized):window.attachEvent("onresize",s.onWindowResized)})),(0,u.Z)((0,a.Z)(s),"componentWillUnmount",(function(){s.animationEndCallback&&clearTimeout(s.animationEndCallback),s.lazyLoadTimer&&clearInterval(s.lazyLoadTimer),s.callbackTimers.length&&(s.callbackTimers.forEach((function(e){return clearTimeout(e)})),s.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",s.onWindowResized):window.detachEvent("onresize",s.onWindowResized),s.autoplayTimer&&clearInterval(s.autoplayTimer),s.ro.disconnect()})),(0,u.Z)((0,a.Z)(s),"componentDidUpdate",(function(e){if(s.checkImagesLoad(),s.props.onReInit&&s.props.onReInit(),s.props.lazyLoad){var t=m((0,o.Z)((0,o.Z)({},s.props),s.state));t.length>0&&(s.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),s.props.onLazyLoad&&s.props.onLazyLoad(t))}s.adaptHeight();var n=(0,o.Z)((0,o.Z)({listRef:s.list,trackRef:s.track},s.props),s.state),r=s.didPropsChange(e);r&&s.updateState(n,r,(function(){s.state.currentSlide>=i.Children.count(s.props.children)&&s.changeSlide({message:"index",index:i.Children.count(s.props.children)-s.props.slidesToShow,currentSlide:s.state.currentSlide}),e.autoplay===s.props.autoplay&&e.autoplaySpeed===s.props.autoplaySpeed||(!e.autoplay&&s.props.autoplay?s.autoPlay("playing"):s.props.autoplay?s.autoPlay("update"):s.pause("paused"))}))})),(0,u.Z)((0,a.Z)(s),"onWindowResized",(function(e){s.debouncedResize&&s.debouncedResize.cancel(),s.debouncedResize=(0,v.D)(50,(function(){return s.resizeWindow(e)})),s.debouncedResize()})),(0,u.Z)((0,a.Z)(s),"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=Boolean(s.track&&s.track.node);if(t){var n=(0,o.Z)((0,o.Z)({listRef:s.list,trackRef:s.track},s.props),s.state);s.updateState(n,e,(function(){s.props.autoplay?s.autoPlay("update"):s.pause("paused")})),s.setState({animating:!1}),clearTimeout(s.animationEndCallback),delete s.animationEndCallback}})),(0,u.Z)((0,a.Z)(s),"updateState",(function(e,t,n){var r=function(e){var t,n=i.Children.count(e.children),r=e.listRef,l=Math.ceil(C(r)),s=e.trackRef&&e.trackRef.node,a=Math.ceil(C(s));if(e.vertical)t=l;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=l/100),t=Math.ceil((l-c)/e.slidesToShow)}var d=r&&L(r.querySelector('[data-index="0"]')),u=d*e.slidesToShow,p=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(p=n-1-e.initialSlide);var f=e.lazyLoadedList||[],h=m((0,o.Z)((0,o.Z)({},e),{},{currentSlide:p,lazyLoadedList:f})),v={slideCount:n,slideWidth:t,listWidth:l,trackWidth:a,currentSlide:p,slideHeight:d,listHeight:u,lazyLoadedList:f=f.concat(h)};return null===e.autoplaying&&e.autoplay&&(v.autoplaying="playing"),v}(e);e=(0,o.Z)((0,o.Z)((0,o.Z)({},e),r),{},{slideIndex:r.currentSlide});var l=N(e);e=(0,o.Z)((0,o.Z)({},e),{},{left:l});var a=I(e);(t||i.Children.count(s.props.children)!==i.Children.count(e.children))&&(r.trackStyle=a),s.setState(r,n)})),(0,u.Z)((0,a.Z)(s),"ssrInit",(function(){if(s.props.variableWidth){var e=0,t=0,n=[],r=A((0,o.Z)((0,o.Z)((0,o.Z)({},s.props),s.state),{},{slideCount:s.props.children.length})),l=D((0,o.Z)((0,o.Z)((0,o.Z)({},s.props),s.state),{},{slideCount:s.props.children.length}));s.props.children.forEach((function(t){n.push(t.props.style.width),e+=t.props.style.width}));for(var a=0;a=t&&s.onWindowResized()};if(e.onclick){var r=e.onclick;e.onclick=function(t){r(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(s.props.lazyLoad?e.onload=function(){s.adaptHeight(),s.callbackTimers.push(setTimeout(s.onWindowResized,s.props.speed))}:(e.onload=i,e.onerror=function(){i(),s.props.onLazyLoadError&&s.props.onLazyLoadError()}))}))})),(0,u.Z)((0,a.Z)(s),"progressiveLazyLoad",(function(){for(var e=[],t=(0,o.Z)((0,o.Z)({},s.props),s.state),n=s.state.currentSlide;n=-A(t);i--)if(s.state.lazyLoadedList.indexOf(i)<0){e.push(i);break}e.length>0?(s.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),s.props.onLazyLoad&&s.props.onLazyLoad(e)):s.lazyLoadTimer&&(clearInterval(s.lazyLoadTimer),delete s.lazyLoadTimer)})),(0,u.Z)((0,a.Z)(s),"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=s.props,i=n.asNavFor,r=n.beforeChange,l=n.onLazyLoad,a=n.speed,c=n.afterChange,d=s.state.currentSlide,u=z((0,o.Z)((0,o.Z)((0,o.Z)({index:e},s.props),s.state),{},{trackRef:s.track,useCSS:s.props.useCSS&&!t})),p=u.state,h=u.nextState;if(p){r&&r(d,p.currentSlide);var v=p.lazyLoadedList.filter((function(e){return s.state.lazyLoadedList.indexOf(e)<0}));l&&v.length>0&&l(v),!s.props.waitForAnimate&&s.animationEndCallback&&(clearTimeout(s.animationEndCallback),c&&c(d),delete s.animationEndCallback),s.setState(p,(function(){i&&s.asNavForIndex!==e&&(s.asNavForIndex=e,i.innerSlider.slideHandler(e)),h&&(s.animationEndCallback=setTimeout((function(){var e=h.animating,t=(0,f.Z)(h,Q);s.setState(t,(function(){s.callbackTimers.push(setTimeout((function(){return s.setState({animating:e})}),10)),c&&c(p.currentSlide),delete s.animationEndCallback}))}),a))}))}})),(0,u.Z)((0,a.Z)(s),"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,o.Z)((0,o.Z)({},s.props),s.state),i=H(n,e);if((0===i||i)&&(!0===t?s.slideHandler(i,t):s.slideHandler(i),s.props.autoplay&&s.autoPlay("update"),s.props.focusOnSelect)){var r=s.list.querySelectorAll(".slick-current");r[0]&&r[0].focus()}})),(0,u.Z)((0,a.Z)(s),"clickHandler",(function(e){!1===s.clickable&&(e.stopPropagation(),e.preventDefault()),s.clickable=!0})),(0,u.Z)((0,a.Z)(s),"keyHandler",(function(e){var t=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""}(e,s.props.accessibility,s.props.rtl);""!==t&&s.changeSlide({message:t})})),(0,u.Z)((0,a.Z)(s),"selectHandler",(function(e){s.changeSlide(e)})),(0,u.Z)((0,a.Z)(s),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),(0,u.Z)((0,a.Z)(s),"enableBodyScroll",(function(){window.ontouchmove=null})),(0,u.Z)((0,a.Z)(s),"swipeStart",(function(e){s.props.verticalSwiping&&s.disableBodyScroll();var t=function(e,t,n){return"IMG"===e.target.tagName&&k(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}}(e,s.props.swipe,s.props.draggable);""!==t&&s.setState(t)})),(0,u.Z)((0,a.Z)(s),"swipeMove",(function(e){var t=function(e,t){var n=t.scrolling,i=t.animating,r=t.vertical,l=t.swipeToSlide,s=t.verticalSwiping,a=t.rtl,c=t.currentSlide,d=t.edgeFriction,u=t.edgeDragged,p=t.onEdge,f=t.swiped,h=t.swiping,v=t.slideCount,g=t.slidesToScroll,S=t.infinite,y=t.touchObject,m=t.swipeEvent,Z=t.listHeight,w=t.listWidth;if(!n){if(i)return k(e);r&&l&&s&&k(e);var b,T={},C=N(t);y.curX=e.touches?e.touches[0].pageX:e.clientX,y.curY=e.touches?e.touches[0].pageY:e.clientY,y.swipeLength=Math.round(Math.sqrt(Math.pow(y.curX-y.startX,2)));var L=Math.round(Math.sqrt(Math.pow(y.curY-y.startY,2)));if(!s&&!h&&L>10)return{scrolling:!0};s&&(y.swipeLength=L);var M=(a?-1:1)*(y.curX>y.startX?1:-1);s&&(M=y.curY>y.startY?1:-1);var z=Math.ceil(v/g),H=x(t.touchObject,s),W=y.swipeLength;return S||(0===c&&("right"===H||"down"===H)||c+1>=z&&("left"===H||"up"===H)||!E(t)&&("left"===H||"up"===H))&&(W=y.swipeLength*d,!1===u&&p&&(p(H),T.edgeDragged=!0)),!f&&m&&(m(H),T.swiped=!0),b=r?C+W*(Z/w)*M:a?C-W*M:C+W*M,s&&(b=C+W*M),T=(0,o.Z)((0,o.Z)({},T),{},{touchObject:y,swipeLeft:b,trackStyle:I((0,o.Z)((0,o.Z)({},t),{},{left:b}))}),Math.abs(y.curX-y.startX)<.8*Math.abs(y.curY-y.startY)||y.swipeLength>10&&(T.swiping=!0,k(e)),T}}(e,(0,o.Z)((0,o.Z)((0,o.Z)({},s.props),s.state),{},{trackRef:s.track,listRef:s.list,slideIndex:s.state.currentSlide}));t&&(t.swiping&&(s.clickable=!1),s.setState(t))})),(0,u.Z)((0,a.Z)(s),"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,i=t.swipe,r=t.touchObject,l=t.listWidth,s=t.touchThreshold,a=t.verticalSwiping,c=t.listHeight,d=t.swipeToSlide,u=t.scrolling,p=t.onSwipe,f=t.targetSlide,h=t.currentSlide,v=t.infinite;if(!n)return i&&k(e),{};var g=a?c/s:l/s,S=x(r,a),y={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return y;if(!r.swipeLength)return y;if(r.swipeLength>g){var m,Z;k(e),p&&p(S);var w=v?h:f;switch(S){case"left":case"up":Z=w+O(t),m=d?W(t,Z):Z,y.currentDirection=0;break;case"right":case"down":Z=w-O(t),m=d?W(t,Z):Z,y.currentDirection=1;break;default:m=w}y.triggerSlideHandler=m}else{var b=N(t);y.trackStyle=R((0,o.Z)((0,o.Z)({},t),{},{left:b}))}return y}(e,(0,o.Z)((0,o.Z)((0,o.Z)({},s.props),s.state),{},{trackRef:s.track,listRef:s.list,slideIndex:s.state.currentSlide}));if(t){var n=t.triggerSlideHandler;delete t.triggerSlideHandler,s.setState(t),void 0!==n&&(s.slideHandler(n),s.props.verticalSwiping&&s.enableBodyScroll())}})),(0,u.Z)((0,a.Z)(s),"touchEnd",(function(e){s.swipeEnd(e),s.clickable=!0})),(0,u.Z)((0,a.Z)(s),"slickPrev",(function(){s.callbackTimers.push(setTimeout((function(){return s.changeSlide({message:"previous"})}),0))})),(0,u.Z)((0,a.Z)(s),"slickNext",(function(){s.callbackTimers.push(setTimeout((function(){return s.changeSlide({message:"next"})}),0))})),(0,u.Z)((0,a.Z)(s),"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";s.callbackTimers.push(setTimeout((function(){return s.changeSlide({message:"index",index:e,currentSlide:s.state.currentSlide},t)}),0))})),(0,u.Z)((0,a.Z)(s),"play",(function(){var e;if(s.props.rtl)e=s.state.currentSlide-s.props.slidesToScroll;else{if(!E((0,o.Z)((0,o.Z)({},s.props),s.state)))return!1;e=s.state.currentSlide+s.props.slidesToScroll}s.slideHandler(e)})),(0,u.Z)((0,a.Z)(s),"autoPlay",(function(e){s.autoplayTimer&&clearInterval(s.autoplayTimer);var t=s.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;s.autoplayTimer=setInterval(s.play,s.props.autoplaySpeed+50),s.setState({autoplaying:"playing"})})),(0,u.Z)((0,a.Z)(s),"pause",(function(e){s.autoplayTimer&&(clearInterval(s.autoplayTimer),s.autoplayTimer=null);var t=s.state.autoplaying;"paused"===e?s.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||s.setState({autoplaying:"focused"}):"playing"===t&&s.setState({autoplaying:"hovered"})})),(0,u.Z)((0,a.Z)(s),"onDotsOver",(function(){return s.props.autoplay&&s.pause("hovered")})),(0,u.Z)((0,a.Z)(s),"onDotsLeave",(function(){return s.props.autoplay&&"hovered"===s.state.autoplaying&&s.autoPlay("leave")})),(0,u.Z)((0,a.Z)(s),"onTrackOver",(function(){return s.props.autoplay&&s.pause("hovered")})),(0,u.Z)((0,a.Z)(s),"onTrackLeave",(function(){return s.props.autoplay&&"hovered"===s.state.autoplaying&&s.autoPlay("leave")})),(0,u.Z)((0,a.Z)(s),"onSlideFocus",(function(){return s.props.autoplay&&s.pause("focused")})),(0,u.Z)((0,a.Z)(s),"onSlideBlur",(function(){return s.props.autoplay&&"focused"===s.state.autoplaying&&s.autoPlay("blur")})),(0,u.Z)((0,a.Z)(s),"render",(function(){var e,t,n,l=S()("slick-slider",s.props.className,{"slick-vertical":s.props.vertical,"slick-initialized":!0}),a=(0,o.Z)((0,o.Z)({},s.props),s.state),c=M(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),d=s.props.pauseOnHover;if(c=(0,o.Z)((0,o.Z)({},c),{},{onMouseEnter:d?s.onTrackOver:null,onMouseLeave:d?s.onTrackLeave:null,onMouseOver:d?s.onTrackOver:null,focusOnSelect:s.props.focusOnSelect&&s.clickable?s.selectHandler:null}),!0===s.props.dots&&s.state.slideCount>=s.props.slidesToShow){var u=M(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),p=s.props.pauseOnDotsHover;u=(0,o.Z)((0,o.Z)({},u),{},{clickHandler:s.changeSlide,onMouseEnter:p?s.onDotsLeave:null,onMouseOver:p?s.onDotsOver:null,onMouseLeave:p?s.onDotsLeave:null}),e=i.createElement(_,u)}var f=M(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);f.clickHandler=s.changeSlide,s.props.arrows&&(t=i.createElement(K,f),n=i.createElement(V,f));var h=null;s.props.vertical&&(h={height:s.state.listHeight});var v=null;!1===s.props.vertical?!0===s.props.centerMode&&(v={padding:"0px "+s.props.centerPadding}):!0===s.props.centerMode&&(v={padding:s.props.centerPadding+" 0px"});var g=(0,o.Z)((0,o.Z)({},h),v),y=s.props.touchMove,k={className:"slick-list",style:g,onClick:s.clickHandler,onMouseDown:y?s.swipeStart:null,onMouseMove:s.state.dragging&&y?s.swipeMove:null,onMouseUp:y?s.swipeEnd:null,onMouseLeave:s.state.dragging&&y?s.swipeEnd:null,onTouchStart:y?s.swipeStart:null,onTouchMove:s.state.dragging&&y?s.swipeMove:null,onTouchEnd:y?s.touchEnd:null,onTouchCancel:s.state.dragging&&y?s.swipeEnd:null,onKeyDown:s.props.accessibility?s.keyHandler:null},m={className:l,dir:"ltr",style:s.props.style};return s.props.unslick&&(k={className:"slick-list"},m={className:l,style:s.props.style}),i.createElement("div",m,s.props.unslick?"":t,i.createElement("div",(0,r.Z)({ref:s.listRefHandler},k),i.createElement(U,(0,r.Z)({ref:s.trackRefHandler},c),s.props.children)),s.props.unslick?"":n,s.props.unslick?"":e)})),s.list=null,s.track=null,s.state=(0,o.Z)((0,o.Z)({},h),{},{currentSlide:s.props.initialSlide,slideCount:i.Children.count(s.props.children)}),s.callbackTimers=[],s.clickable=!0,s.debouncedResize=null;var c=s.ssrInit();return s.state=(0,o.Z)((0,o.Z)({},s.state),c),s}return(0,s.Z)(n,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,r=Object.keys(this.props);n1&&void 0!==arguments[1]&&arguments[1];return i.innerSlider.slickGoTo(e,t)})),(0,u.Z)((0,a.Z)(i),"slickPause",(function(){return i.innerSlider.pause("paused")})),(0,u.Z)((0,a.Z)(i),"slickPlay",(function(){return i.innerSlider.autoPlay("play")})),i.state={breakpoint:null},i._responsiveMediaHandlers=[],i}return(0,s.Z)(n,[{key:"media",value:function(e,t){var n=window.matchMedia(e),i=function(e){e.matches&&t()};n.addListener(i),i(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:i})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,i){var r;r=0===i?ne()({minWidth:0,maxWidth:n}):ne()({minWidth:t[i-1]+1,maxWidth:n}),F()&&e.media(r,(function(){e.setState({breakpoint:n})}))}));var n=ne()({minWidth:t.slice(-1)[0]});F()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":(0,o.Z)((0,o.Z)((0,o.Z)({},ie),this.props),t[0].settings):(0,o.Z)((0,o.Z)({},ie),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var l=i.Children.toArray(this.props.children);l=l.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var s=[],a=null,c=0;c=l.length));f+=1)p.push(i.cloneElement(l[f],{key:100*c+10*u+f,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));d.push(i.createElement("div",{key:10*c+u},p))}e.variableWidth?s.push(i.createElement("div",{key:c,style:{width:a}},d)):s.push(i.createElement("div",{key:c},d))}if("unslick"===e){var h="regular slider "+(this.props.className||"");return i.createElement("div",{className:h},l)}return s.length<=e.slidesToShow&&(e.unslick=!0),i.createElement(ee,(0,r.Z)({style:this.props.style,ref:this.innerSliderRefHandler},e),s)}}]),n}(i.Component),oe=re,le=n(36355),se=n(17313),ae=n(83116),ce=n(37613);const de=e=>{const{componentCls:t,antCls:n,carouselArrowSize:i,carouselDotOffset:r,marginXXS:o}=e,l=1.25*-i,s=o;return{[t]:Object.assign(Object.assign({},(0,se.Wf)(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:i,height:i,marginTop:-i/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:l,"&::before":{content:'"←"'}},".slick-next":{insetInlineEnd:l,"&::before":{content:'"→"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:r},"&-top":{top:r,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:s,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-s,content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},ue=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:i}=e,r={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:Object.assign(Object.assign({},r),{margin:`${i}px 0`,verticalAlign:"baseline",button:r,"&.slick-active":Object.assign(Object.assign({},r),{button:r})})}}}},pe=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]};var fe=(0,ae.Z)("Carousel",(e=>{const{controlHeightLG:t,controlHeightSM:n}=e,i=(0,ce.TS)(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[de(i),ue(i),pe(i)]}),(()=>({dotWidth:16,dotHeight:3,dotWidthActive:24,dotActiveWidth:24})),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),he=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{dots:n=!0,arrows:r=!1,draggable:o=!1,waitForAnimate:l=!1,dotPosition:s="bottom",vertical:a="left"===s||"right"===s,rootClassName:c,className:d,style:u,id:p}=e,f=he(e,["dots","arrows","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:h,direction:v,carousel:g}=i.useContext(le.E_),y=i.useRef(),k=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];y.current.slickGoTo(e,t)};i.useImperativeHandle(t,(()=>({goTo:k,autoPlay:y.current.innerSlider.autoPlay,innerSlider:y.current.innerSlider,prev:y.current.slickPrev,next:y.current.slickNext})),[y.current]);const m=i.useRef(i.Children.count(e.children));i.useEffect((()=>{m.current!==i.Children.count(e.children)&&(k(e.initialSlide||0,!1),m.current=i.Children.count(e.children))}),[e.children]);const Z=Object.assign({vertical:a,className:S()(d,null==g?void 0:g.className),style:Object.assign(Object.assign({},null==g?void 0:g.style),u)},f);"fade"===Z.effect&&(Z.fade=!0);const w=h("carousel",Z.prefixCls),b="slick-dots",T=!!n,C=S()(b,`${b}-${s}`,"boolean"!=typeof n&&(null==n?void 0:n.className)),[L,x]=fe(w),E=S()(w,{[`${w}-rtl`]:"rtl"===v,[`${w}-vertical`]:Z.vertical},x,c);return L(i.createElement("div",{className:E,id:p},i.createElement(oe,Object.assign({ref:y},Z,{dots:T,dotsClass:C,arrows:r,draggable:o,verticalSwiping:a,waitForAnimate:l}))))}));var ge=ve},7861:function(e,t,n){var i=n(38710),r=function(e){var t="",n=Object.keys(e);return n.forEach((function(r,o){var l=e[r];(function(e){return/[height|width]$/.test(e)})(r=i(r))&&"number"==typeof l&&(l+="px"),t+=!0===l?r:!1===l?"not "+r:"("+r+": "+l+")",o + + + 7 + Created with Sketch. + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/kc.svg b/images/kc.svg new file mode 100644 index 0000000000..affb43223f --- /dev/null +++ b/images/kc.svg @@ -0,0 +1,20 @@ + + + + 1 + Created with Sketch. + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/one.svg b/images/one.svg new file mode 100644 index 0000000000..5a48da7b70 --- /dev/null +++ b/images/one.svg @@ -0,0 +1,48 @@ + + + + 根结点 + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/qt.svg b/images/qt.svg new file mode 100644 index 0000000000..a49e19d3b2 --- /dev/null +++ b/images/qt.svg @@ -0,0 +1,20 @@ + + + + 9 + Created with Sketch. + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/sj.svg b/images/sj.svg new file mode 100644 index 0000000000..4af594c0b6 --- /dev/null +++ b/images/sj.svg @@ -0,0 +1,20 @@ + + + + 8 + Created with Sketch. + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/sp.svg b/images/sp.svg new file mode 100644 index 0000000000..03ebc606ca --- /dev/null +++ b/images/sp.svg @@ -0,0 +1,20 @@ + + + + 6 + Created with Sketch. + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/sx.svg b/images/sx.svg new file mode 100644 index 0000000000..a4b82204e6 --- /dev/null +++ b/images/sx.svg @@ -0,0 +1,20 @@ + + + + 4 + Created with Sketch. + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/zj.svg b/images/zj.svg new file mode 100644 index 0000000000..7678718be3 --- /dev/null +++ b/images/zj.svg @@ -0,0 +1,20 @@ + + + + 2 + Created with Sketch. + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/zsd.svg b/images/zsd.svg new file mode 100644 index 0000000000..d4c17b25ab --- /dev/null +++ b/images/zsd.svg @@ -0,0 +1,20 @@ + + + + 3 + Created with Sketch. + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/zy.svg b/images/zy.svg new file mode 100644 index 0000000000..3f4aadccee --- /dev/null +++ b/images/zy.svg @@ -0,0 +1,20 @@ + + + + 5 + Created with Sketch. + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/monaco-editor.82bdb639.async.js b/monaco-editor.84ba4d1d.async.js similarity index 99% rename from monaco-editor.82bdb639.async.js rename to monaco-editor.84ba4d1d.async.js index dbebf42883..4bddc81fbc 100644 --- a/monaco-editor.82bdb639.async.js +++ b/monaco-editor.84ba4d1d.async.js @@ -1 +1 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[39404],{14763:function(){},33240:function(){},2550:function(e,t,i){var n;self.MonacoEnvironment=(n={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var o=i.p,s=(o?o.replace(/\/$/,"")+"/":"")+n[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(s)){var r=String(window.location),a=r.substr(0,r.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(s.substring(0,a.length)!==a){/^(\/\/)/.test(s)&&(s=window.location.protocol+s);var l=new Blob(["/*"+t+'*/importScripts("'+s+'");'],{type:"application/javascript"});return URL.createObjectURL(l)}}return s}}),i(33686),i(92981),i(32838),i(84826),i(60066),i(41007),i(54807),i(88297),i(46343),i(4105),i(81755),i(78940),i(16442),i(34064),i(85628),i(86955),i(65586),i(17645),i(99516),i(88343),i(17331),i(63478),i(4335),i(26313),i(35432),i(51518),i(52393),i(63435),i(83861),i(34835),i(59622),i(71925),i(19257),i(61977),i(6181),i(6410),i(28630),i(29111),i(63618),i(48608),e.exports=i(22476),i(92973),i(72773),i(30219),i(10755),i(74121),i(77973),i(27246),i(82961),i(19959),i(23347),i(17323),i(24607),i(90130),i(72185),i(40882),i(14349),i(10715),i(88756),i(67748),i(30141),i(44115),i(65588),i(42716),i(83135),i(91067),i(63886),i(44865),i(41495),i(12076),i(38516),i(18504),i(28593),i(43069),i(50185),i(11745),i(96025),i(85713),i(98836),i(18625),i(25167),i(5512),i(59066),i(73363),i(5769),i(95630),i(12189),i(78605),i(17728),i(94503),i(66857),i(38341),i(61010),i(1099),i(49478),i(32985),i(72088),i(69746),i(94912),i(60032),i(24571),i(55670),i(77777),i(39393),i(81147),i(35550)},87783:function(e,t,i){"use strict";i.d(t,{$W:function(){return _},Dt:function(){return f},G6:function(){return p},MG:function(){return m},Pf:function(){return u},WP:function(){return r},fX:function(){return a},i7:function(){return g},ie:function(){return l},mX:function(){return h},px:function(){return s},vU:function(){return c}});var n=i(4348);class o{constructor(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new n.Q5,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){return Date.now()-this._lastZoomLevelChangeTime}getZoomFactor(){return this._zoomFactor}getPixelRatio(){let e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}}function s(){return o.INSTANCE.getZoomLevel()}function r(){return o.INSTANCE.getTimeSinceLastZoomLevelChanged()}function a(e){return o.INSTANCE.onDidChangeZoomLevel(e)}function l(){return o.INSTANCE.getZoomFactor()}function h(){return o.INSTANCE.getPixelRatio()}o.INSTANCE=new o;const d=navigator.userAgent,c=d.indexOf("Firefox")>=0,u=d.indexOf("AppleWebKit")>=0,g=d.indexOf("Chrome")>=0,p=!g&&d.indexOf("Safari")>=0,m=!g&&!p&&u,f=d.indexOf("Android")>=0,_=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},23725:function(e,t,i){"use strict";i.d(t,{D:function(){return s}});var n=i(87783),o=i(23345);const s={clipboard:{writeText:o.tY||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:o.tY||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:o.tY||n.$W?0:navigator.keyboard||n.G6?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}},84282:function(e,t,i){"use strict";i.d(t,{P$:function(){return s},TN:function(){return o},go:function(){return n}});const n={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:i(8473).vW.text,TERMINALS:"Terminals"};class o{constructor(e){this.data=e}update(){}getData(){return this.data}}const s={CurrentDragAndDropData:void 0}},69454:function(e,t,i){"use strict";i.d(t,{$:function(){return pe},$Z:function(){return me},Ay:function(){return G},Ce:function(){return he},Cp:function(){return fe},D6:function(){return M},DI:function(){return B},Dx:function(){return T},FK:function(){return W},Fx:function(){return U},Gw:function(){return b},H$:function(){return _e},If:function(){return H},Lo:function(){return C},OO:function(){return q},PO:function(){return g},R3:function(){return le},RE:function(){return y},Re:function(){return te},Ro:function(){return R},Uh:function(){return ve},Uw:function(){return p},V3:function(){return be},Y_:function(){return I},_0:function(){return se},_h:function(){return Se},_q:function(){return ye},dS:function(){return Q},dp:function(){return P},fk:function(){return J},go:function(){return ae},i:function(){return F},jL:function(){return N},j_:function(){return S},jg:function(){return K},jt:function(){return Ce},lI:function(){return L},mc:function(){return de},mu:function(){return v},nm:function(){return f},qV:function(){return w},tw:function(){return ie},uB:function(){return Le},uN:function(){return ee},uU:function(){return $},vL:function(){return oe},vY:function(){return Z},w:function(){return V},wY:function(){return we},wn:function(){return z},xQ:function(){return O},zB:function(){return ne}});var n=i(87783),o=i(23725),s=i(92813),r=i(52390),a=i(50431),l=i(79881),h=i(4348),d=i(69323),c=i(66657),u=i(23345);function g(e){for(;e.firstChild;)e.firstChild.remove()}function p(e){var t;return null!==(t=null==e?void 0:e.isConnected)&&void 0!==t&&t}class m{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function f(e,t,i,n){return new m(e,t,i,n)}function _(e){return function(t){return e(new r.n(t))}}let v=function(e,t,i,n){let o=i;return"click"===t||"mousedown"===t?o=_(i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=function(e){return function(t){return e(new s.y(t))}}(i)),f(e,t,o,n)},b=function(e,t,i){return C(e,_(t),i)};function C(e,t,i){return f(e,u.gn&&o.D.pointerEvents?ie.POINTER_DOWN:ie.MOUSE_DOWN,t,i)}function w(e,t,i){return f(e,u.gn&&o.D.pointerEvents?ie.POINTER_UP:ie.MOUSE_UP,t,i)}function S(e,t){return f(e,"mouseout",(i=>{let n=i.relatedTarget;for(;n&&n!==e;)n=n.parentNode;n!==e&&t(i)}))}function y(e,t){return f(e,"pointerout",(i=>{let n=i.relatedTarget;for(;n&&n!==e;)n=n.parentNode;n!==e&&t(i)}))}let L,N,x=null;class k{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,l.dL)(e)}}static sort(e,t){return t.priority-e.priority}}!function(){let e=[],t=null,i=!1,n=!1,o=()=>{for(i=!1,t=e,e=[],n=!0;t.length>0;){t.sort(k.sort),t.shift().execute()}n=!1};N=(t,n=0)=>{let s=new k(t,n);return e.push(s),i||(i=!0,function(e){if(!x){const e=e=>setTimeout((()=>e((new Date).getTime())),0);x=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||e}x.call(self,e)}(o)),s},L=(e,i)=>{if(n){let n=new k(e,i);return t.push(n),n}return N(e,i)}}();const D=function(e,t){return t};class E extends d.JT{constructor(e,t,i,n=D,o=8){super();let s=null,r=0,l=this._register(new a._F),h=()=>{r=(new Date).getTime(),i(s),s=null};this._register(f(e,t,(e=>{s=n(s,e);let t=(new Date).getTime()-r;t>=o?(l.cancel(),h()):l.setIfNotSet(h,o-t)})))}}function I(e,t,i,n,o){return new E(e,t,i,n,o)}function T(e){return document.defaultView.getComputedStyle(e,null)}function M(e){if(e!==document.body)return new R(e.clientWidth,e.clientHeight);if(u.gn&&window.visualViewport)return new R(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new R(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new R(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new R(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class A{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){let n=T(e),o="0";return n&&(o=n.getPropertyValue?n.getPropertyValue(t):n.getAttribute(i)),A.convertToPixels(e,o)}static getBorderLeftWidth(e){return A.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return A.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return A.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return A.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return A.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return A.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return A.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return A.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return A.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return A.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return A.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return A.getDimension(e,"margin-bottom","marginBottom")}}class R{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new R(e,t):this}static is(e){return"object"==typeof e&&"number"==typeof e.height&&"number"==typeof e.width}static lift(e){return e instanceof R?e:new R(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}function O(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){i-=e.scrollTop;const o=j(e)?null:T(e);o&&(n-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=A.getBorderLeftWidth(e),i+=A.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function P(e,t,i){"number"==typeof t&&(e.style.width=`${t}px`),"number"==typeof i&&(e.style.height=`${i}px`)}function F(e){let t=e.getBoundingClientRect();return{left:t.left+B.scrollX,top:t.top+B.scrollY,width:t.width,height:t.height}}const B=new class{get scrollX(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function V(e){let t=A.getMarginLeft(e)+A.getMarginRight(e);return e.offsetWidth+t}function W(e){let t=A.getBorderLeftWidth(e)+A.getBorderRightWidth(e),i=A.getPaddingLeft(e)+A.getPaddingRight(e);return e.offsetWidth-t-i}function H(e){let t=A.getBorderTopWidth(e)+A.getBorderBottomWidth(e),i=A.getPaddingTop(e)+A.getPaddingBottom(e);return e.offsetHeight-t-i}function z(e){let t=A.getMarginTop(e)+A.getMarginBottom(e);return e.offsetHeight+t}function K(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function U(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i)if("string"==typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}function $(e,t,i){return!!U(e,t,i)}function j(e){return e&&!!e.host&&!!e.mode}function q(e){return!!G(e)}function G(e){for(;e.parentNode;){if(e===document.body)return null;e=e.parentNode}return j(e)?e:null}function Z(){let e=document.activeElement;for(;null==e?void 0:e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Q(e=document.getElementsByTagName("head")[0]){let t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}let Y=null;function X(){return Y||(Y=Q()),Y}function J(e,t,i=X()){i&&t&&i.sheet.insertRule(e+"{"+t+"}",0)}function ee(e,t=X()){if(!t)return;let i=function(e){var t,i;return(null===(t=null==e?void 0:e.sheet)||void 0===t?void 0:t.rules)?e.sheet.rules:(null===(i=null==e?void 0:e.sheet)||void 0===i?void 0:i.cssRules)?e.sheet.cssRules:[]}(t),n=[];for(let t=0;t=0;e--)t.sheet.deleteRule(n[e])}function te(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}const ie={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:n.Pf?"webkitAnimationStart":"animationstart",ANIMATION_END:n.Pf?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:n.Pf?"webkitAnimationIteration":"animationiteration"},ne={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function oe(e){let t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function se(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class re extends d.JT{constructor(e){super(),this._onDidFocus=this._register(new h.Q5),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new h.Q5),this.onDidBlur=this._onDidBlur.event;let t=K(document.activeElement,e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,window.setTimeout((()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())}),0))};this._refreshStateHandler=()=>{K(document.activeElement,e)!==t&&(t?o():n())},this._register(f(e,ie.FOCUS,n,!0)),this._register(f(e,ie.BLUR,o,!0))}}function ae(e){return new re(e)}function le(e,...t){if(e.append(...t),1===t.length&&"string"!=typeof t[0])return t[0]}function he(e,t){return e.insertBefore(t,e.firstChild),t}function de(e,...t){e.innerText="",le(e,...t)}const ce=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var ue;function ge(e,t,i,...n){let o=ce.exec(t);if(!o)throw new Error("Bad use of emmet");i=Object.assign({},i||{});let s,r=o[1]||"div";return s=e!==ue.HTML?document.createElementNS(e,r):document.createElement(r),o[3]&&(s.id=o[3]),o[4]&&(s.className=o[4].replace(/\./g," ").trim()),Object.keys(i).forEach((e=>{const t=i[e];void 0!==t&&(/^on\w+$/.test(e)?s[e]=t:"selected"===e?t&&s.setAttribute(e,"true"):s.setAttribute(e,t))})),s.append(...n),s}function pe(e,t,...i){return ge(ue.HTML,e,t,...i)}function me(...e){for(let t of e)t.style.display="",t.removeAttribute("aria-hidden")}function fe(...e){for(let t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function _e(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function ve(e){const t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function be(e){window.open(e,"_blank","noopener")}function Ce(e){const t=()=>{e(),i=N(t)};let i=N(t);return(0,d.OF)((()=>i.dispose()))}function we(e){return e?`url('${c.Gi.asBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function Se(e){return`'${e.replace(/'/g,"%27")}'`}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(ue||(ue={})),pe.SVG=function(e,t,...i){return ge(ue.SVG,e,t,...i)},c.WX.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");class ye extends h.Q5{constructor(){super(),this._subscriptions=new d.SL,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(f(window,"keydown",(e=>{if(e.defaultPrevented)return;const t=new s.y(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}}),!0)),this._subscriptions.add(f(window,"keyup",(e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))}),!0)),this._subscriptions.add(f(document.body,"mousedown",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),this._subscriptions.add(f(document.body,"mouseup",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),this._subscriptions.add(f(document.body,"mousemove",(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)}),!0)),this._subscriptions.add(f(window,"blur",(()=>{this.resetKeyStatus()})))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return ye.instance||(ye.instance=new ye),ye.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}function Le(e,t){const i=window.matchMedia(e);"function"==typeof i.addEventListener?i.addEventListener("change",t):i.addListener(t)}},8035:function(e,t,i){"use strict";i.d(t,{Y:function(){return o},p:function(){return s}});var n=i(4348);class o{constructor(e,t,i){const o=e=>this.emitter.fire(e);this.emitter=new n.Q5({onFirstListenerAdd:()=>e.addEventListener(t,o,i),onLastListenerRemove:()=>e.removeEventListener(t,o,i)})}get event(){return this.emitter.event}dispose(){this.emitter.dispose()}}function s(e){return e.preventDefault(),e.stopPropagation(),e}},32635:function(e,t,i){"use strict";i.d(t,{X:function(){return o},Z:function(){return n}});class n{constructor(e){this.domNode=e,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")}setWidth(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")}setHeight(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")}setTop(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")}unsetTop(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")}setLeft(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")}setBottom(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")}setRight(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setLineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")}setLetterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function o(e){return new n(e)}},40575:function(e,t,i){"use strict";i.d(t,{BO:function(){return s},IY:function(){return o},az:function(){return r}});var n=i(69454);function o(e,t={}){const i=r(t);return i.textContent=e,i}function s(e,t={}){const i=r(t);return l(i,function(e,t){const i={type:1,children:[]};let n=0,o=i;const s=[],r=new a(e);for(;!r.eos();){let e=r.next();const i="\\"===e&&0!==d(r.peek(),t);if(i&&(e=r.next()),!i&&h(e,t)&&e===r.peek()){r.advance(),2===o.type&&(o=s.pop());const i=d(e,t);if(o.type===i||5===o.type&&6===i)o=s.pop();else{const e={type:i,children:[]};5===i&&(e.index=n,n++),o.children.push(e),s.push(o),o=e}}else if("\n"===e)2===o.type&&(o=s.pop()),o.children.push({type:8});else if(2!==o.type){const t={type:2,content:e};o.children.push(t),s.push(o),o=t}else o.content+=e}2===o.type&&(o=s.pop());s.length;return i}(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function r(e){const t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function l(e,t,i,o){let s;if(2===t.type)s=document.createTextNode(t.content||"");else if(3===t.type)s=document.createElement("b");else if(4===t.type)s=document.createElement("i");else if(7===t.type&&o)s=document.createElement("code");else if(5===t.type&&i){const e=document.createElement("a");e.href="#",i.disposables.add(n.mu(e,"click",(e=>{i.callback(String(t.index),e)}))),s=e}else 8===t.type?s=document.createElement("br"):1===t.type&&(s=e);s&&e!==s&&e.appendChild(s),s&&Array.isArray(t.children)&&t.children.forEach((e=>{l(s,e,i,o)}))}function h(e,t){return 0!==d(e,t)}function d(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},2395:function(e,t,i){"use strict";i.d(t,{Z:function(){return h},e:function(){return l}});var n=i(69454),o=i(7122),s=i(52390),r=i(69323),a=i(23345);function l(e,t){let i=new s.n(t);return i.preventDefault(),{leftButton:i.leftButton,buttons:i.buttons,posx:i.posx,posy:i.posy}}class h{constructor(){this._hooks=new r.SL,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._mouseMoveEventMerger}startMonitoring(e,t,i,r,l){if(this.isMonitoring())return;this._mouseMoveEventMerger=i,this._mouseMoveCallback=r,this._onStopCallback=l;const h=o.E.getSameOriginWindowChain(),d=a.gn?"pointermove":"mousemove",c=h.map((e=>e.window.document)),u=n.Ay(e);u&&c.unshift(u);for(const e of c)this._hooks.add(n.Y_(e,d,(e=>{e.buttons===t?this._mouseMoveCallback(e):this.stopMonitoring(!0)}),((e,t)=>this._mouseMoveEventMerger(e,t)))),this._hooks.add(n.nm(e,"mouseup",(e=>this.stopMonitoring(!0))));if(o.E.hasDifferentOriginAncestor()){let e=h[h.length-1];this._hooks.add(n.nm(e.window.document,"mouseout",(e=>{"html"===new s.n(e).target.tagName.toLowerCase()&&this.stopMonitoring(!0)}))),this._hooks.add(n.nm(e.window.document,"mouseover",(e=>{"html"===new s.n(e).target.tagName.toLowerCase()&&this.stopMonitoring(!0)}))),this._hooks.add(n.nm(e.window.document.body,"mouseleave",(e=>{this.stopMonitoring(!0)})))}}}},7122:function(e,t,i){"use strict";i.d(t,{E:function(){return r}});let n=!1,o=null;function s(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return n=!0,null}catch(e){return n=!0,null}return e.parent}class r{static getSameOriginWindowChain(){if(!o){o=[];let e,t=window;do{e=s(t),e?o.push({window:t,iframeElement:t.frameElement||null}):o.push({window:t,iframeElement:null}),t=e}while(t)}return o.slice(0)}static hasDifferentOriginAncestor(){return o||this.getSameOriginWindowChain(),n}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,n=0,o=this.getSameOriginWindowChain();for(const e of o){if(i+=e.window.scrollY,n+=e.window.scrollX,e.window===t)break;if(!e.iframeElement)break;let o=e.iframeElement.getBoundingClientRect();i+=o.top,n+=o.left}return{top:i,left:n}}}},92813:function(e,t,i){"use strict";i.d(t,{y:function(){return h}});var n=i(87783),o=i(52411),s=i(86354),r=i(23345);const a=r.dz?256:2048,l=r.dz?2048:256;class h{constructor(e){this._standardKeyboardEventBrand=!0;let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=function(e){if(e.charCode){let t=String.fromCharCode(e.charCode).toUpperCase();return o.kL.fromString(t)}const t=e.keyCode;if(3===t)return 7;if(n.vU){if(59===t)return 80;if(107===t)return 81;if(109===t)return 83;if(r.dz&&224===t)return 57}else if(n.Pf){if(91===t)return 57;if(r.dz&&93===t)return 57;if(!r.dz&&92===t)return 57}return o.H_[t]||0}(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=l),t|=e,t}_computeRuntimeKeybinding(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new s.QC(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},52390:function(e,t,i){"use strict";i.d(t,{n:function(){return r},q:function(){return a}});var n=i(87783),o=i(7122),s=i(23345);class r{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"==typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);let t=o.E.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class a{constructor(e,t=0,i=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t,e){let t=e,i=e;if(void 0!==t.wheelDeltaY)this.deltaY=t.wheelDeltaY/120;else if(void 0!==i.VERTICAL_AXIS&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.vU&&!s.dz?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(void 0!==t.wheelDeltaX)n.G6&&s.ED?this.deltaX=-t.wheelDeltaX/120:this.deltaX=t.wheelDeltaX/120;else if(void 0!==i.HORIZONTAL_AXIS&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.vU&&!s.dz?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}},60537:function(e,t,i){"use strict";i.d(t,{o:function(){return h},t:function(){return n}});var n,o=i(69454),s=i(43506),r=i(85402),a=i(69323),l=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(n||(n={}));class h extends a.JT{constructor(){super(),this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(o.nm(document,"touchstart",(e=>this.onTouchStart(e)),{passive:!1})),this._register(o.nm(document,"touchend",(e=>this.onTouchEnd(e)))),this._register(o.nm(document,"touchmove",(e=>this.onTouchMove(e)),{passive:!1}))}static addTarget(e){return h.isTouchDevice()?(h.INSTANCE||(h.INSTANCE=new h),h.INSTANCE.targets.push(e),{dispose:()=>{h.INSTANCE.targets=h.INSTANCE.targets.filter((t=>t!==e))}}):a.JT.None}static ignoreTarget(e){return h.isTouchDevice()?(h.INSTANCE||(h.INSTANCE=new h),h.INSTANCE.ignoreTargets.push(e),{dispose:()=>{h.INSTANCE.ignoreTargets=h.INSTANCE.ignoreTargets.filter((t=>t!==e))}}):a.JT.None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){let t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,o=e.targetTouches.length;i=h.HOLD_DELAY&&Math.abs(a.initialPageX-s.Gb(a.rollingPageX))<30&&Math.abs(a.initialPageY-s.Gb(a.rollingPageY))<30){let e=this.newGestureEvent(n.Contextmenu,a.initialTarget);e.pageX=s.Gb(a.rollingPageX),e.pageY=s.Gb(a.rollingPageY),this.dispatchEvent(e)}else if(1===i){let e=s.Gb(a.rollingPageX),i=s.Gb(a.rollingPageY),n=s.Gb(a.rollingTimestamps)-a.rollingTimestamps[0],o=e-a.rollingPageX[0],r=i-a.rollingPageY[0];const l=this.targets.filter((e=>a.initialTarget instanceof Node&&e.contains(a.initialTarget)));this.inertia(l,t,Math.abs(o)/n,o>0?1:-1,e,Math.abs(r)/n,r>0?1:-1,i)}this.dispatchEvent(this.newGestureEvent(n.End,a.initialTarget)),delete this.activeTouches[r.identifier]}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){let i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===n.Tap){const t=(new Date).getTime();let i=0;i=t-this._lastSetTapCountTime>h.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else e.type!==n.Change&&e.type!==n.Contextmenu||(this._lastSetTapCountTime=0);for(let t=0;t{e.initialTarget instanceof Node&&t.contains(e.initialTarget)&&(t.dispatchEvent(e),this.dispatched=!0)}))}inertia(e,t,i,s,r,a,l,d){this.handle=o.jL((()=>{let o=Date.now(),c=o-t,u=0,g=0,p=!0;i+=h.SCROLL_FRICTION*c,a+=h.SCROLL_FRICTION*c,i>0&&(p=!1,u=s*i*c),a>0&&(p=!1,g=l*a*c);let m=this.newGestureEvent(n.Change);m.translationX=u,m.translationY=g,e.forEach((e=>e.dispatchEvent(m))),p||this.inertia(e,o,i,s,r+u,a,l,d+g)}))}onTouchMove(e){let t=Date.now();for(let i=0,o=e.changedTouches.length;i3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(o.pageX),r.rollingPageY.push(o.pageY),r.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}h.SCROLL_FRICTION=-.005,h.HOLD_DELAY=700,h.CLEAR_TAP_COUNT_TIME=400,l([r.H],h,"isTouchDevice",null)},10081:function(e,t,i){"use strict";i.d(t,{Y:function(){return u},g:function(){return g}});var n=i(87783),o=i(84282),s=i(69454),r=i(60537),a=i(75918),l=i(69323),h=i(23345),d=i(72999),c=(i(14763),i(13268));class u extends l.JT{constructor(e,t,i={}){super(),this.options=i,this._context=e||this,this._action=t,t instanceof a.aU&&this._register(t.onDidChange((e=>{this.element&&this.handleActionChangeEvent(e)})))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new a.Wi)),this._actionRunner}set actionRunner(e){this._actionRunner=e}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(r.o.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,n.vU&&this._register((0,s.nm)(e,s.tw.DRAG_START,(e=>{var t;return null===(t=e.dataTransfer)||void 0===t?void 0:t.setData(o.go.TEXT,this._action.label)})))),this._register((0,s.nm)(t,r.t.Tap,(e=>this.onClick(e,!0)))),this._register((0,s.nm)(t,s.tw.MOUSE_DOWN,(e=>{i||s.zB.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")}))),h.dz&&this._register((0,s.nm)(t,s.tw.CONTEXT_MENU,(e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)}))),this._register((0,s.nm)(t,s.tw.CLICK,(e=>{s.zB.stop(e,!0),this.options&&this.options.isMenu||this.onClick(e)}))),this._register((0,s.nm)(t,s.tw.DBLCLICK,(e=>{s.zB.stop(e,!0)}))),[s.tw.MOUSE_UP,s.tw.MOUSE_OUT].forEach((e=>{this._register((0,s.nm)(t,e,(e=>{s.zB.stop(e),t.classList.remove("active")})))}))}onClick(e,t=!1){var i;s.zB.stop(e,!0);const n=d.Jp(this._context)?(null===(i=this.options)||void 0===i?void 0:i.useEventAsContext)?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}updateTooltip(){}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),super.dispose()}}class g extends u{constructor(e,t,i={}){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),this.element&&(this.label=(0,s.R3)(this.element,(0,s.$)("a.action-label"))),this.label&&(this._action.id===a.Z0.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&((0,s.R3)(this.element,(0,s.$)("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}updateTooltip(){let e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=c.N({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.label&&(this.label.title=e)}updateClass(){this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):this.label&&this.label.classList.remove("codicon")}updateEnabled(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),this.element&&this.element.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),this.element&&this.element.classList.add("disabled"))}updateChecked(){this.label&&(this.getAction().checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}}},21784:function(e,t,i){"use strict";i.d(t,{o:function(){return c}});var n=i(69454),o=i(92813),s=i(10081),r=i(75918),a=i(4348),l=i(69323),h=i(72999),d=(i(14763),function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))});class c extends l.JT{constructor(e,t={}){var i,l,h,d,c,u;let g,p;switch(super(),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new a.Q5),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new a.Q5({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new a.Q5),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new a.Q5),this.onBeforeRun=this._onBeforeRun.event,this.options=t,this._context=null!==(i=t.context)&&void 0!==i?i:null,this._orientation=null!==(l=this.options.orientation)&&void 0!==l?l:0,this._triggerKeys={keyDown:null!==(d=null===(h=this.options.triggerKeys)||void 0===h?void 0:h.keyDown)&&void 0!==d&&d,keys:null!==(u=null===(c=this.options.triggerKeys)||void 0===c?void 0:c.keys)&&void 0!==u?u:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new r.Wi,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._register(this._actionRunner.onBeforeRun((e=>this._onBeforeRun.fire(e)))),this._actionIds=[],this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",!1!==t.animated&&this.domNode.classList.add("animated"),this._orientation){case 0:g=[15],p=[17];break;case 1:g=[16],p=[18],this.domNode.className+=" vertical"}this._register(n.nm(this.domNode,n.tw.KEY_DOWN,(e=>{const t=new o.y(e);let i=!0;const n="number"==typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;g&&(t.equals(g[0])||t.equals(g[1]))?i=this.focusPrevious():p&&(t.equals(p[0])||t.equals(p[1]))?i=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?i=this.focusFirst():t.equals(13)?i=this.focusLast():t.equals(2)&&n instanceof s.Y&&n.trapsArrowNavigation?i=this.focusNext():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:i=!1,i&&(t.preventDefault(),t.stopPropagation())}))),this._register(n.nm(this.domNode,n.tw.KEY_UP,(e=>{const t=new o.y(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&this.updateFocusedItem()}))),this.focusTracker=this._register(n.go(this.domNode)),this._register(this.focusTracker.onDidBlur((()=>{n.vY()!==this.domNode&&n.jg(n.vY(),this.domNode)||(this._onDidBlur.fire(),this.focusedItem=void 0,this.triggerKeyDown=!1)}))),this._register(this.focusTracker.onDidFocus((()=>this.updateFocusedItem()))),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role","toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach((i=>{t=t||e.equals(i)})),t}updateFocusedItem(){for(let e=0;et.setActionContext(e)))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach((t=>t.actionRunner=e)))}getContainer(){return this.domNode}push(e,t={}){const i=Array.isArray(e)?e:[e];let o=h.hj(t.index)?t.index:null;i.forEach((e=>{const i=document.createElement("li");let r;i.className="action-item",i.setAttribute("role","presentation"),this.options.allowContextMenu||this._register(n.nm(i,n.tw.CONTEXT_MENU,(e=>{n.zB.stop(e,!0)}))),this.options.actionViewItemProvider&&(r=this.options.actionViewItemProvider(e)),r||(r=new s.g(this.context,e,t)),r.actionRunner=this._actionRunner,r.setActionContext(this.context),r.render(i),this.focusable&&r instanceof s.Y&&0===this.viewItems.length&&r.setFocusable(!0),null===o||o<0||o>=this.actionsList.children.length?(this.actionsList.appendChild(i),this.viewItems.push(r),this._actionIds.push(e.id)):(this.actionsList.insertBefore(i,this.actionsList.children[o]),this.viewItems.splice(o,0,r),this._actionIds.splice(o,0,e.id),o++)})),"number"==typeof this.focusedItem&&this.focus(this.focusedItem)}clear(){(0,l.B9)(this.viewItems),this.viewItems=[],this._actionIds=[],n.PO(this.actionsList)}length(){return this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"==typeof e?t=e:"boolean"==typeof e&&(i=e),i&&void 0===this.focusedItem){const e=this.viewItems.findIndex((e=>e.isEnabled()));this.focusedItem=-1===e?void 0:e,this.updateFocus()}else void 0!==t&&(this.focusedItem=t),this.updateFocus()}focusFirst(){return this.focusedItem=this.length()>1?1:0,this.focusPrevious()}focusLast(){return this.focusedItem=this.length()<2?0:this.length()-2,this.focusNext()}focusNext(){if(void 0===this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const e=this.focusedItem;let t;do{if(this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=e,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,t=this.viewItems[this.focusedItem]}while(this.focusedItem!==e&&this.options.focusOnlyEnabledItems&&!t.isEnabled());return this.updateFocus(),!0}focusPrevious(){if(void 0===this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const e=this.focusedItem;let t;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(this.options.preventLoopNavigation)return this.focusedItem=e,!1;this.focusedItem=this.viewItems.length-1}t=this.viewItems[this.focusedItem]}while(this.focusedItem!==e&&this.options.focusOnlyEnabledItems&&!t.isEnabled());return this.updateFocus(!0),!0}updateFocus(e,t){void 0===this.focusedItem&&this.actionsList.focus({preventScroll:t});for(let i=0;i{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),s.appendChild(e),e};r=t(),a=t();const i=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("role","complementary"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),s.appendChild(e),e};l=i(),h=i(),e.appendChild(s)}function c(e){s&&(r.textContent!==e?(n.PO(a),g(r,e)):(n.PO(r),g(a,e)))}function u(e){s&&(o.dz?c(e):l.textContent!==e?(n.PO(h),g(l,e)):(n.PO(l),g(h,e)))}function g(e,t){n.PO(e),t.length>2e4&&(t=t.substr(0,2e4)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},15692:function(e,t,i){"use strict";i.d(t,{a:function(){return o}});var n=i(52615);function o(e){let t=e.definition;for(;t instanceof n.lA;)t=t.definition;return`.codicon-${e.id}:before { content: '${t.fontCharacter}'; }`}},39116:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});var n=i(69454),o=i(51737),s=i(80470),r=i(82983);const a={badgeBackground:o.Il.fromHex("#4D4D4D"),badgeForeground:o.Il.fromHex("#FFFFFF")};class l{constructor(e,t){this.count=0,this.options=t||Object.create(null),(0,s.jB)(this.options,a,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=(0,n.R3)(e,(0,n.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=(0,r.WU)(this.countFormat,this.count),this.element.title=(0,r.WU)(this.titleFormat,this.count),this.applyStyles()}style(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",i=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}}}},48949:function(e,t,i){"use strict";i.d(t,{q:function(){return r}});var n=i(69454),o=i(67069),s=i(80470);class r{constructor(e,t){this.supportIcons=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t=[],i="",n){e||(e=""),n&&(e=r.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&s.fS(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render())}render(){const e=[];let t=0;for(const i of this.highlights){if(i.end===i.start)continue;if(t{n="\r\n"===e?-1:0,o+=i;for(const e of t)e.end<=o||(e.start>=o&&(e.start+=n),e.end>=o&&(e.end+=n));return i+=n,"⏎"}))}}},40881:function(e,t,i){"use strict";i.d(t,{g:function(){return f}});var n=i(69454),o=i(48949),s=i(50431),r=i(96283),a=i(94186),l=i(69323),h=i(72999),d=i(13268),c=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class u{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}update(e,t){var i;return c(this,void 0,void 0,(function*(){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let n;if(void 0===e||(0,h.HD)(e)||e instanceof HTMLElement)n=e;else if((0,h.mf)(e.markdown)){this._hoverWidget||this.show((0,d.N)("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new r.A;const i=this._cancellationTokenSource.token;if(n=yield e.markdown(i),this.isDisposed||i.isCancellationRequested)return}else n=null!==(i=e.markdown)&&void 0!==i?i:e.markdownNotSupportedFallback;this.show(n,t)}))}show(e,t){const i=this._hoverWidget;if(this.hasContent(e)){const n={content:e,target:this.target,showPointer:"element"===this.hoverDelegate.placement,hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!i};this._hoverWidget=this.hoverDelegate.showHover(n,t)}null==i||i.dispose()}hasContent(e){return!!e&&(!(0,a.Fr)(e)||!!e.value)}get isDisposed(){var e;return null===(e=this._hoverWidget)||void 0===e?void 0:e.isDisposed}dispose(){var e,t;null===(e=this._hoverWidget)||void 0===e||e.dispose(),null===(t=this._cancellationTokenSource)||void 0===t||t.dispose(!0),this._cancellationTokenSource=void 0}}var g=i(80470),p=i(17981);class m{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class f extends l.JT{constructor(e,t){super(),this.customHovers=new Map,this.domNode=this._register(new m(n.R3(e,n.$(".monaco-icon-label")))),this.labelContainer=n.R3(this.domNode.element,n.$(".monaco-icon-label-container"));const i=n.R3(this.labelContainer,n.$("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new m(n.R3(this.labelContainer,n.$("span.monaco-icon-description-container")))),(null==t?void 0:t.supportHighlights)||(null==t?void 0:t.supportIcons)?this.nameNode=new v(i,!!t.supportIcons):this.nameNode=new _(i),(null==t?void 0:t.supportDescriptionHighlights)?this.descriptionNodeFactory=()=>new o.q(n.R3(this.descriptionContainer.element,n.$("span.label-description")),!!t.supportIcons):this.descriptionNodeFactory=()=>this._register(new m(n.R3(this.descriptionContainer.element,n.$("span.label-description")))),this.hoverDelegate=null==t?void 0:t.hoverDelegate}get element(){return this.domNode.element}setLabel(e,t,i){const n=["monaco-icon-label"];i&&(i.extraClasses&&n.push(...i.extraClasses),i.italic&&n.push("italic"),i.strikethrough&&n.push("strikethrough")),this.domNode.className=n.join(" "),this.setupHover((null==i?void 0:i.descriptionTitle)?this.labelContainer:this.element,null==i?void 0:i.title),this.nameNode.setLabel(e,i),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof o.q?(this.descriptionNode.set(t||"",i?i.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,null==i?void 0:i.descriptionTitle)):(this.descriptionNode.textContent=t||"",this.setupHover(this.descriptionNode.element,(null==i?void 0:i.descriptionTitle)||""),this.descriptionNode.empty=!t))}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate){const i=function(e,t,i){let o,r;const a=(t,i)=>{var n;t&&(null==r||r.dispose(),r=void 0),i&&(null==o||o.dispose(),o=void 0),null===(n=e.onDidHideHover)||void 0===n||n.call(e)},h=(n,o,a)=>new s._F((()=>c(this,void 0,void 0,(function*(){r&&!r.isDisposed||(r=new u(e,a||t,n>0),yield r.update(i,o))}))),n),d=n.nm(t,n.tw.MOUSE_OVER,(()=>{if(o)return;const i=new l.SL;i.add(n.nm(t,n.tw.MOUSE_LEAVE,(e=>a(!1,e.fromElement===t)),!0)),i.add(n.nm(t,n.tw.MOUSE_DOWN,(()=>a(!0,!0)),!0));const s={targetElements:[t],dispose:()=>{}};if(void 0===e.placement||"mouse"===e.placement){const e=e=>s.x=e.x+10;i.add(n.nm(t,n.tw.MOUSE_MOVE,e,!0))}i.add(h(e.delay,!1,s)),o=i}),!0);return{show:e=>{a(!1,!0),h(0,e)},hide:()=>{a(!0,!0)},update:e=>c(this,void 0,void 0,(function*(){i=e,yield null==r?void 0:r.update(i)})),dispose:()=>{d.dispose(),a(!0,!0)}}}(this.hoverDelegate,e,t);i&&this.customHovers.set(e,i)}else!function(e,t){(0,h.HD)(t)?e.title=t:(null==t?void 0:t.markdownNotSupportedFallback)?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}(e,t);else e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}}class _{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,g.fS)(this.options,t))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=n.R3(this.container,n.$("a.label-name",{id:null==t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i{const o={start:n,end:n+e.length},s=i.map((e=>p.e.intersect(o,e))).filter((e=>!p.e.isEmpty(e))).map((({start:e,end:t})=>({start:e-n,end:t-n})));return n=o.end+t.length,s}))}(e,i,null==t?void 0:t.matches);for(let r=0;rthis._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach((t=>e.push(t))),e}}var p=i(80470),m=i(13268);const f=n.$,_={inputBackground:d.Il.fromHex("#3C3C3C"),inputForeground:d.Il.fromHex("#CCCCCC"),inputValidationInfoBorder:d.Il.fromHex("#55AAFF"),inputValidationInfoBackground:d.Il.fromHex("#063B49"),inputValidationWarningBorder:d.Il.fromHex("#B89500"),inputValidationWarningBackground:d.Il.fromHex("#352A05"),inputValidationErrorBorder:d.Il.fromHex("#BE1100"),inputValidationErrorBackground:d.Il.fromHex("#5A1D1D")};class v extends h.${constructor(e,t,i){var s;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new c.Q5),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new c.Q5),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i||Object.create(null),(0,p.jB)(this.options,_,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=null!==(s=this.options.tooltip)&&void 0!==s?s:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=n.R3(e,f(".monaco-inputbox.idle"));let a=this.options.flexibleHeight?"textarea":"input",h=n.R3(this.element,f(".ibwrapper"));if(this.input=n.R3(h,f(a+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,(()=>this.element.classList.add("synthetic-focus"))),this.onblur(this.input,(()=>this.element.classList.remove("synthetic-focus"))),this.options.flexibleHeight){this.maxHeight="number"==typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=n.R3(h,f("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new l.NB(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),n.R3(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll((e=>this.input.scrollTop=e.scrollTop)));const t=this._register(new o.Y(document,"selectionchange")),i=c.ju.filter(t.event,(()=>{const e=document.getSelection();return(null==e?void 0:e.anchorNode)===h}));this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,(()=>this.onValueChange())),this.onblur(this.input,(()=>this.onBlur())),this.onfocus(this.input,(()=>this.onFocus())),this.ignoreGesture(this.input),setTimeout((()=>this.updateMirror()),0),this.options.actions&&(this.actionbar=this._register(new r.o(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.input.title=e}setAriaLabel(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"==typeof this.cachedHeight?this.cachedHeight:n.wn(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}get width(){return n.w(this.input)}set width(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){let t=0;if(this.mirror){t=(parseFloat(this.mirror.style.paddingLeft||"")||0)+(parseFloat(this.mirror.style.paddingRight||"")||0)}this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")}set paddingRight(e){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width=`calc(100% - ${e}px)`:this.input.style.paddingRight=e+"px",this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!=typeof this.cachedContentHeight||"number"!=typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=i.border?`1px solid ${i.border}`:"",(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),null==e?void 0:e.type}stylesForType(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e,t,i=()=>e.style.width=n.w(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:t=>{if(!this.message)return null;e=n.R3(t,f(".monaco-inputbox-container")),i();const o={inline:!0,className:"monaco-inputbox-message"},r=this.message.formatContent?(0,s.BO)(this.message.content,o):(0,s.IY)(this.message.content,o);r.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return r.style.backgroundColor=a.background?a.background.toString():"",r.style.color=a.foreground?a.foreground.toString():"",r.style.border=a.border?`1px solid ${a.border}`:"",n.R3(e,r),null},onHide:()=>{this.state="closed"},layout:i}),t=3===this.message.type?m.N("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?m.N("alertWarningMessage","Warning: {0}",this.message.content):m.N("alertInfoMessage","Info: {0}",this.message.content),a.Z9(t),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText=" ",this.layout()}style(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){const e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",i=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor="inherit",this.input.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=n.wn(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,o=t.value;null!==i&&null!==n&&(this.value=o.substr(0,i)+e+o.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}class b extends v{constructor(e,t,i){const n=m.N({key:"history.inputbox.hint",comment:["Text will be prefixed with ⇅ plus a single space, then used as a hint where input field keeps history"]},"for history"),o=` or ⇅ ${n}`,s=` (⇅ ${n})`;super(e,t,i),this.history=new g(i.history,100);const r=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(o)&&!this.placeholder.endsWith(s)&&this.history.getHistory().length){const e=this.placeholder.endsWith(")")?o:s,t=this.placeholder+e;i.showPlaceholderOnFocus&&document.activeElement!==this.input?this.placeholder=t:this.setPlaceHolder(t)}};this.observer=new MutationObserver(((e,t)=>{e.forEach((e=>{e.target.textContent||r()}))})),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,(()=>r())),this.onblur(this.input,(()=>{const e=e=>{if(this.placeholder.endsWith(e)){const t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0}return!1};e(s)||e(o)}))}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,a.i7(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,a.i7(this.value))}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()||this.history.last()}}},15674:function(e,t,i){"use strict";i.d(t,{kX:function(){return y},Bv:function(){return k}});var n=i(87783),o=i(84282),s=i(69454),r=i(8035),a=i(60537),l=i(78802),h=i(43506),d=i(50431),c=i(85402),u=i(4348),g=i(69323),p=i(80470),m=i(17981),f=i(28962);function _(e,t){const i=[];for(let n of t){if(e.start>=n.range.end)continue;if(e.end({range:v(e.range,n),size:e.size}))),r=i.map(((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size})));this.groups=function(...e){return function(e){const t=[];let i=null;for(let n of e){const e=n.range.start,o=n.range.end,s=n.size;i&&s===i.size?i.range.end=o:(i={range:{start:e,end:o},size:s},t.push(i))}return t}(e.reduce(((e,t)=>e.concat(t)),[]))}(o,r,s),this._size=this.groups.reduce(((e,t)=>e+t.size*(t.range.end-t.range.start)),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;let t=0,i=0;for(let n of this.groups){const o=n.range.end-n.range.start,s=i+o*n.size;if(e{for(const i of e){this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}})),this.cache.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var w=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const S={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(e){return[e]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class y{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class L{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class N{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;ti,(null==e?void 0:e.getPosInSet)?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(e,t)=>t+1,(null==e?void 0:e.getRole)?this.getRole=e.getRole.bind(e):this.getRole=e=>"listitem",(null==e?void 0:e.isChecked)?this.isChecked=e.isChecked.bind(e):this.isChecked=e=>{}}}class k{constructor(e,t,i,n=S){if(this.virtualDelegate=t,this.domId="list_id_"+ ++k.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new d.vp(50),this.splicing=!1,this.dragOverAnimationStopDisposable=g.JT.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=g.JT.None,this.onDragLeaveTimeout=g.JT.None,this.disposables=new g.SL,this._onDidChangeContentHeight=new u.Q5,this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new b;for(const e of i)this.renderers.set(e.templateId,e);this.cache=this.disposables.add(new C(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!=typeof n.mouseSupport||n.mouseSupport),this._horizontalScrolling=(0,p.CJ)(n,(e=>e.horizontalScrolling),S.horizontalScrolling),this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=void 0===n.additionalScrollHeight?0:n.additionalScrollHeight,this.accessibilityProvider=new x(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows";(0,p.CJ)(n,(e=>e.transformOptimization),S.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(a.o.addTarget(this.rowsContainer)),this.scrollable=new f.Rm((0,p.CJ)(n,(e=>e.smoothScrolling),!1)?125:0,(e=>(0,s.jL)(e))),this.scrollableElement=this.disposables.add(new l.$Z(this.rowsContainer,{alwaysConsumeMouseWheel:(0,p.CJ)(n,(e=>e.alwaysConsumeMouseWheel),S.alwaysConsumeMouseWheel),horizontal:1,vertical:(0,p.CJ)(n,(e=>e.verticalScrollMode),S.verticalScrollMode),useShadows:(0,p.CJ)(n,(e=>e.useShadows),S.useShadows),mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,s.nm)(this.rowsContainer,a.t.Change,(e=>this.onTouchChange(e)))),this.disposables.add((0,s.nm)(this.scrollableElement.getDomNode(),"scroll",(e=>e.target.scrollTop=0))),this.disposables.add((0,s.nm)(this.domNode,"dragover",(e=>this.onDragOver(this.toDragEvent(e))))),this.disposables.add((0,s.nm)(this.domNode,"drop",(e=>this.onDrop(this.toDragEvent(e))))),this.disposables.add((0,s.nm)(this.domNode,"dragleave",(e=>this.onDragLeave(this.toDragEvent(e))))),this.disposables.add((0,s.nm)(this.domNode,"dragend",(e=>this.onDragEnd(e)))),this.setRowLineHeight=(0,p.CJ)(n,(e=>e.setRowLineHeight),S.setRowLineHeight),this.setRowHeight=(0,p.CJ)(n,(e=>e.setRowHeight),S.setRowHeight),this.supportDynamicHeights=(0,p.CJ)(n,(e=>e.supportDynamicHeights),S.supportDynamicHeights),this.dnd=(0,p.CJ)(n,(e=>e.dnd),S.dnd),this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,s.FK)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(e){void 0!==e.additionalScrollHeight&&(this.additionalScrollHeight=e.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.mouseWheelScrollSensitivity&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&this.scrollableElement.updateOptions({fastScrollSensitivity:e.fastScrollSensitivity})}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o={start:e,end:e+t},s=m.e.intersect(n,o),r=new Map;for(let e=s.start;e({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:g.JT.None})));let c;0===e&&t>=this.items.length?(this.rangeMap=new b,this.rangeMap.splice(0,0,d),c=this.items,this.items=d):(this.rangeMap.splice(e,t,d),c=this.items.splice(e,t,...d));const u=i.length-t,p=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),f=v(l,u),_=m.e.intersect(p,f);for(let e=_.start;e<_.end;e++)this.updateItemInDOM(this.items[e],e);const C=m.e.relativeComplement(f,p);for(const e of C)for(let t=e.start;tv(e,u))),S=[{start:e,end:e+i.length},...w].map((e=>m.e.intersect(p,e))),y=this.getNextToLastElement(S);for(const e of S)for(let t=e.start;te.element))}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,s.jL)((()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null})))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger((()=>this.updateScrollWidth())):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)void 0!==t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10})}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}element(e){return this.items[e].element}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){let i={height:"number"==typeof e?e:(0,s.If)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),void 0!==t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"==typeof t?t:(0,s.FK)(this.domNode)})}render(e,t,i,n,o,s=!1){const r=this.getRenderRange(t,i),a=m.e.relativeComplement(r,e),l=m.e.relativeComplement(e,r),h=this.getNextToLastElement(a);if(s){const t=m.e.intersect(e,r);for(let e=t.start;ethis.onDragStart(n.element,l,e)))),this.horizontalScrolling&&(this.measureItemWidth(n),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width=n.vU?"-moz-fit-content":"fit-content",e.width=(0,s.FK)(e.row.domNode);const t=window.getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2==0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return u.ju.map(this.disposables.add(new r.Y(this.domNode,"click")).event,(e=>this.toMouseEvent(e)))}get onMouseDblClick(){return u.ju.map(this.disposables.add(new r.Y(this.domNode,"dblclick")).event,(e=>this.toMouseEvent(e)))}get onMouseMiddleClick(){return u.ju.filter(u.ju.map(this.disposables.add(new r.Y(this.domNode,"auxclick")).event,(e=>this.toMouseEvent(e))),(e=>1===e.browserEvent.button))}get onMouseDown(){return u.ju.map(this.disposables.add(new r.Y(this.domNode,"mousedown")).event,(e=>this.toMouseEvent(e)))}get onContextMenu(){return u.ju.any(u.ju.map(this.disposables.add(new r.Y(this.domNode,"contextmenu")).event,(e=>this.toMouseEvent(e))),u.ju.map(this.disposables.add(new r.Y(this.domNode,a.t.Contextmenu)).event,(e=>this.toGestureEvent(e))))}get onTouchStart(){return u.ju.map(this.disposables.add(new r.Y(this.domNode,"touchstart")).event,(e=>this.toTouchEvent(e)))}get onTap(){return u.ju.map(this.disposables.add(new r.Y(this.rowsContainer,a.t.Tap)).event,(e=>this.toGestureEvent(e)))}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){if(!i.dataTransfer)return;const n=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(o.go.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(n,i)),void 0===e&&(e=String(n.length));const t=(0,s.$)(".monaco-drag-image");t.textContent=e,document.body.appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout((()=>document.body.removeChild(t)),0)}this.currentDragData=new y(n),o.P$.CurrentDragAndDropData=new L(n),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,i)}onDragOver(e){if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),o.P$.CurrentDragAndDropData&&"vscode-ui"===o.P$.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(o.P$.CurrentDragAndDropData)this.currentDragData=o.P$.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new N}const t=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop="boolean"==typeof t?t:t.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let i;if(e.browserEvent.dataTransfer.dropEffect="boolean"!=typeof t&&0===t.effect?"copy":"move",i="boolean"!=typeof t&&t.feedback?t.feedback:void 0===e.index?[-1]:[e.index],i=(0,h.EB)(i).filter((e=>e>=-1&&ee-t)),i=-1===i[0]?[-1]:i,n=this.currentDragFeedback,s=i,Array.isArray(n)&&Array.isArray(s)?(0,h.fS)(n,s):n===s)return!0;var n,s;if(this.currentDragFeedback=i,this.currentDragFeedbackDisposable.dispose(),-1===i[0])this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=(0,g.OF)((()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")}));else{for(const e of i){const t=this.items[e];t.dropTarget=!0,t.row&&t.row.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=(0,g.OF)((()=>{for(const e of i){const t=this.items[e];t.dropTarget=!1,t.row&&t.row.domNode.classList.remove("drop-target")}}))}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,d.Vg)((()=>this.clearDragOverFeedback()),100),this.currentDragData&&(null===(i=(t=this.dnd).onDragLeave)||void 0===i||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,o.P$.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}onDragEnd(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,o.P$.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=g.JT.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=(0,s.xQ)(this.domNode).top;this.dragOverAnimationDisposable=(0,s.jt)(this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,d.Vg)((()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}),1e3),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){const e=i.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const n=this.getRenderRange(e,t);let o,s;e===this.elementTop(n.start)?(o=n.start,s=0):n.end-n.start>1&&(o=n.start+1,s=this.elementTop(o)-e);let r=0;for(;;){const a=this.getRenderRange(e,t);let l=!1;for(let e=a.start;en.splice(e,t,i)))}}var h=i(43506),d=i(50431),c=i(51737),u=i(85402),g=i(4348),p=i(99599),m=i(69323),f=i(56722),_=i(80470),v=i(23345),b=i(72999);i(33240);class C extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}var w,S=i(15674),y=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},L=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class N{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.trait}`}renderTemplate(e){return e}renderElement(e,t,i){const n=this.renderedElements.findIndex((e=>e.templateData===i));if(n>=0){const e=this.renderedElements[n];this.trait.unrender(i),e.index=t}else{const e={index:t,templateData:i};this.renderedElements.push(e)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const o of this.renderedElements)o.index=e+t&&n.push({index:o.index+i-t,templateData:o.templateData});this.renderedElements=n}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex((t=>t.templateData===e));t<0||this.renderedElements.splice(t,1)}}class x{constructor(e){this._trait=e,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.Q5,this.onChange=this._onChange.event}get trait(){return this._trait}get renderer(){return new N(this)}splice(e,t,i){var n;t=Math.max(0,Math.min(t,this.length-e));const o=i.length-t,s=e+t,r=[...this.sortedIndexes.filter((t=>tt?i+e:-1)).filter((e=>-1!==e)),...this.sortedIndexes.filter((e=>e>=s)).map((e=>e+o))],a=this.length+o;if(this.sortedIndexes.length>0&&0===r.length&&a>0){const t=null!==(n=this.sortedIndexes.find((t=>t>=e)))&&void 0!==n?n:a-1;r.push(Math.min(t,a-1))}this.renderer.splice(e,t,i.length),this._set(r,r),this.length=a}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(K),t)}_set(e,t,i){const n=this.indexes,o=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const s=z(o,e);return this.renderer.renderIndexes(s),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return(0,h.ry)(this.sortedIndexes,e,K)>=0}dispose(){(0,m.B9)(this._onChange)}}y([u.H],x.prototype,"renderer",null);class k extends x{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class D{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,i.map((()=>!1)));const n=this.trait.get().map((e=>this.identityProvider.getId(this.view.element(e)).toString())),o=i.map((e=>n.indexOf(this.identityProvider.getId(e).toString())>-1));this.trait.splice(e,t,o)}}function E(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function I(e){return!!e.classList.contains("monaco-editor")||!e.classList.contains("monaco-list")&&(!!e.parentElement&&I(e.parentElement))}class T{constructor(e,t,i){this.list=e,this.view=t,this.disposables=new m.SL,this.multipleSelectionDisposables=new m.SL,this.onKeyDown.filter((e=>3===e.keyCode)).on(this.onEnter,this,this.disposables),this.onKeyDown.filter((e=>16===e.keyCode)).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter((e=>18===e.keyCode)).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter((e=>11===e.keyCode)).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter((e=>12===e.keyCode)).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter((e=>9===e.keyCode)).on(this.onEscape,this,this.disposables),!1!==i.multipleSelectionSupport&&this.onKeyDown.filter((e=>(v.dz?e.metaKey:e.ctrlKey)&&31===e.keyCode)).on(this.onCtrlA,this,this.multipleSelectionDisposables)}get onKeyDown(){return g.ju.chain(this.disposables.add(new o.Y(this.view.domNode,"keydown")).event).filter((e=>!E(e.target))).map((e=>new s.y(e)))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionDisposables.clear(),e.multipleSelectionSupport&&this.onKeyDown.filter((e=>(v.dz?e.metaKey:e.ctrlKey)&&31===e.keyCode)).on(this.onCtrlA,this,this.multipleSelectionDisposables))}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection((0,h.w6)(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}y([u.H],T.prototype,"onKeyDown",null),function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(w||(w={}));const M=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=93&&e.keyCode<=102||e.keyCode>=80&&e.keyCode<=90)}};class A{constructor(e,t,i,n){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.delegate=n,this.enabled=!1,this.state=w.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new m.SL,this.disposables=new m.SL,this.updateOptions(e.options)}updateOptions(e){void 0===e.enableKeyboardNavigation||!!e.enableKeyboardNavigation?this.enable():this.disable(),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)}enable(){if(this.enabled)return;const e=g.ju.chain(this.enabledDisposables.add(new o.Y(this.view.domNode,"keydown")).event).filter((e=>!E(e.target))).filter((()=>this.automaticKeyboardNavigation||this.triggered)).map((e=>new s.y(e))).filter((e=>this.delegate.mightProducePrintableCharacter(e))).forEach((e=>{e.stopPropagation(),e.preventDefault()})).map((e=>e.browserEvent.key)).event,t=g.ju.debounce(e,(()=>null),800);g.ju.reduce(g.ju.any(e,t),((e,t)=>null===t?null:(e||"")+t))(this.onInput,this,this.enabledDisposables),t(this.onClear,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const i=null===(e=this.list.options.accessibilityProvider)||void 0===e?void 0:e.getAriaLabel(this.list.element(t[0]));i&&(0,a.Z9)(i)}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=w.Idle,void(this.triggered=!1);const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===w.Idle?1:0;this.state=w.Typing;for(let t=0;t!E(e.target))).map((e=>new s.y(e))).filter((e=>!(2!==e.keyCode||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey))).on(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const i=this.view.domElement(t[0]);if(!i)return;const n=i.querySelector("[tabIndex]");if(!(n&&n instanceof HTMLElement&&-1!==n.tabIndex))return;const o=window.getComputedStyle(n);"hidden"!==o.visibility&&"none"!==o.display&&(e.preventDefault(),e.stopPropagation(),n.focus())}dispose(){this.disposables.dispose()}}function O(e){return v.dz?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function P(e){return e.browserEvent.shiftKey}const F={isSelectionSingleChangeEvent:O,isSelectionRangeChangeEvent:P};class B{constructor(e){this.list=e,this.disposables=new m.SL,this._onPointer=new g.Q5,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||F),this.mouseSupport=void 0===e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(r.o.addTarget(e.getHTMLElement()))),g.ju.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||F))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){I(e.browserEvent.target)||document.activeElement!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(I(e.browserEvent.target))return;const t=void 0===e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(E(e.browserEvent.target)||I(e.browserEvent.target))return;const t=e.index;return void 0===t?(this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionRangeChangeEvent(e)||this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),(i=e.browserEvent)instanceof MouseEvent&&2===i.button||this.list.setSelection([t],e.browserEvent),void this._onPointer.fire(e));var i}onDoubleClick(e){if(E(e.browserEvent.target)||I(e.browserEvent.target))return;if(this.isSelectionChangeEvent(e))return;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if(void 0===i){const e=this.list.getFocus()[0];i=null!=e?e:t,this.list.setAnchor(i)}const n=Math.min(i,t),o=Math.max(i,t),s=(0,h.w6)(n,o+1),r=this.list.getSelection(),a=function(e,t){const i=e.indexOf(t);if(-1===i)return[];const n=[];let o=i-1;for(;o>=0&&e[o]===t-(i-o);)n.push(e[o--]);n.reverse(),o=i;for(;o=e.length)i.push(t[o++]);else if(o>=t.length)i.push(e[n++]);else{if(e[n]===t[o]){n++,o++;continue}e[n]e!==t));this.list.setFocus([t]),this.list.setAnchor(t),i.length===n.length?this.list.setSelection([...n,t],e.browserEvent):this.list.setSelection(n,e.browserEvent)}}dispose(){this.disposables.dispose()}}class V{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&`.${this.selectorSuffix}`,i=[];e.listBackground&&(e.listBackground.isOpaque()?i.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`):v.dz||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),e.listFocusBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusForeground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&i.push(`.monaco-list${t} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(i.push(`.monaco-list${t} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&i.push(`.monaco-list${t} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&i.push(`.monaco-list${t}:not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&i.push(`.monaco-list${t} .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`),e.listSelectionOutline&&i.push(`.monaco-list${t} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listFocusOutline&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`),e.listInactiveFocusOutline&&i.push(`.monaco-list${t} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&i.push(`.monaco-list${t} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropBackground&&i.push(`\n\t\t\t\t.monaco-list${t}.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-row.drop-target { background-color: ${e.listDropBackground} !important; color: inherit !important; }\n\t\t\t`),e.listFilterWidgetBackground&&i.push(`.monaco-list-type-filter { background-color: ${e.listFilterWidgetBackground} }`),e.listFilterWidgetOutline&&i.push(`.monaco-list-type-filter { border: 1px solid ${e.listFilterWidgetOutline}; }`),e.listFilterWidgetNoMatchesOutline&&i.push(`.monaco-list-type-filter.no-matches { border: 1px solid ${e.listFilterWidgetNoMatchesOutline}; }`),e.listMatchesShadow&&i.push(`.monaco-list-type-filter { box-shadow: 1px 1px 1px ${e.listMatchesShadow}; }`),e.tableColumnsBorder&&i.push(`\n\t\t\t\t.monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t}`),this.styleElement.textContent=i.join("\n")}}const W={listFocusBackground:c.Il.fromHex("#7FB0D0"),listActiveSelectionBackground:c.Il.fromHex("#0E639C"),listActiveSelectionForeground:c.Il.fromHex("#FFFFFF"),listActiveSelectionIconForeground:c.Il.fromHex("#FFFFFF"),listFocusAndSelectionBackground:c.Il.fromHex("#094771"),listFocusAndSelectionForeground:c.Il.fromHex("#FFFFFF"),listInactiveSelectionBackground:c.Il.fromHex("#3F3F46"),listInactiveSelectionIconForeground:c.Il.fromHex("#FFFFFF"),listHoverBackground:c.Il.fromHex("#2A2D2E"),listDropBackground:c.Il.fromHex("#383B3D"),treeIndentGuidesStroke:c.Il.fromHex("#a9a9a9"),tableColumnsBorder:c.Il.fromHex("#cccccc").transparent(.2)},H={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function z(e,t){const i=[];let n=0,o=0;for(;n=e.length)i.push(t[o++]);else if(o>=t.length)i.push(e[n++]);else{if(e[n]===t[o]){i.push(e[n]),n++,o++;continue}e[n]e-t;class U{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map((t=>t.renderTemplate(e)))}renderElement(e,t,i,n){let o=0;for(const s of this.renderers)s.renderElement(e,t,i[o++],n)}disposeElement(e,t,i,n){let o=0;for(const s of this.renderers)s.disposeElement&&s.disposeElement(e,t,i[o],n),o+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class ${constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return e}renderElement(e,t,i){const n=this.accessibilityProvider.getAriaLabel(e);n?i.setAttribute("aria-label",n):i.removeAttribute("aria-label");const o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"==typeof o?i.setAttribute("aria-level",`${o}`):i.removeAttribute("aria-level")}disposeTemplate(e){}}class j{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)}onDragOver(e,t,i,n){return this.dnd.onDragOver(e,t,i,n)}onDragLeave(e,t,i,n){var o,s;null===(s=(o=this.dnd).onDragLeave)||void 0===s||s.call(o,e,t,i,n)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}drop(e,t,i,n){this.dnd.drop(e,t,i,n)}}class q{constructor(e,t,i,o,s=H){var r;this.user=e,this._options=s,this.focus=new x("focused"),this.anchor=new x("anchor"),this.eventBufferer=new g.E7,this._ariaLabel="",this.disposables=new m.SL,this._onDidDispose=new g.Q5,this.onDidDispose=this._onDidDispose.event;const a=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null===(r=this._options.accessibilityProvider)||void 0===r?void 0:r.getWidgetRole():"list";this.selection=new k("listbox"!==a),(0,_.jB)(s,W,!1);const h=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=s.accessibilityProvider,this.accessibilityProvider&&(h.push(new $(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),o=o.map((e=>new U(e.templateId,[...h,e])));const d=Object.assign(Object.assign({},s),{dnd:s.dnd&&new j(this,s.dnd)});if(this.view=new S.Bv(t,i,o,d),this.view.domNode.setAttribute("role",a),s.styleController)this.styleController=s.styleController(this.view.domId);else{const e=(0,n.dS)(this.view.domNode);this.styleController=new V(e,this.view.domId)}if(this.spliceable=new l([new D(this.focus,this.view,s.identityProvider),new D(this.selection,this.view,s.identityProvider),new D(this.anchor,this.view,s.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new R(this,this.view)),("boolean"!=typeof s.keyboardSupport||s.keyboardSupport)&&(this.keyboardController=new T(this,this.view,s),this.disposables.add(this.keyboardController)),s.keyboardNavigationLabelProvider){const e=s.keyboardNavigationDelegate||M;this.typeLabelController=new A(this,this.view,s.keyboardNavigationLabelProvider,e),this.disposables.add(this.typeLabelController)}this.mouseController=this.createMouseController(s),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return g.ju.map(this.eventBufferer.wrapEvent(this.focus.onChange),(e=>this.toListEvent(e)))}get onDidChangeSelection(){return g.ju.map(this.eventBufferer.wrapEvent(this.selection.onChange),(e=>this.toListEvent(e)))}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=g.ju.chain(this.disposables.add(new o.Y(this.view.domNode,"keydown")).event).map((e=>new s.y(e))).filter((t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode)).map(o.p).filter((()=>!1)).event,i=g.ju.chain(this.disposables.add(new o.Y(this.view.domNode,"keyup")).event).forEach((()=>e=!1)).map((e=>new s.y(e))).filter((e=>58===e.keyCode||e.shiftKey&&68===e.keyCode)).map(o.p).map((({browserEvent:e})=>{const t=this.getFocus(),i=t.length?t[0]:void 0;return{index:i,element:void 0!==i?this.view.element(i):void 0,anchor:void 0!==i?this.view.domElement(i):this.view.domNode,browserEvent:e}})).event,n=g.ju.chain(this.view.onContextMenu).filter((t=>!e)).map((({element:e,index:t,browserEvent:i})=>({element:e,index:t,anchor:{x:i.pageX+1,y:i.pageY},browserEvent:i}))).event;return g.ju.any(t,i,n)}get onKeyDown(){return this.disposables.add(new o.Y(this.view.domNode,"keydown")).event}get onDidFocus(){return g.ju.signal(this.disposables.add(new o.Y(this.view.domNode,"focus",!0)).event)}createMouseController(e){return new B(this)}updateOptions(e={}){var t;this._options=Object.assign(Object.assign({},this._options),e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),null===(t=this.keyboardController)||void 0===t||t.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new C(this.user,`Invalid start index: ${e}`);if(t<0)throw new C(this.user,`Invalid delete count: ${t}`);0===t&&0===i.length||this.eventBufferer.bufferEvents((()=>this.spliceable.splice(e,t,i)))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const t of e)if(t<0||t>=this.length)throw new C(this.user,`Invalid index ${t}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map((e=>this.view.element(e)))}setAnchor(e){if(void 0!==e){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);this.anchor.set([e])}else this.anchor.set([])}getAnchor(){return(0,h.Xh)(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return void 0===e?void 0:this.element(e)}setFocus(e,t){for(const t of e)if(t<0||t>=this.length)throw new C(this.user,`Invalid index ${t}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,n){if(0===this.length)return;const o=this.focus.get(),s=this.findNextIndex(o.length>0?o[0]+e:0,t,n);s>-1&&this.setFocus([s],i)}focusPrevious(e=1,t=!1,i,n){if(0===this.length)return;const o=this.focus.get(),s=this.findPreviousIndex(o.length>0?o[0]-e:0,t,n);s>-1&&this.setFocus([s],i)}focusNextPage(e,t){return L(this,void 0,void 0,(function*(){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;const n=this.view.element(i),o=this.getFocusedElements()[0];if(o!==n){const n=this.findPreviousIndex(i,!1,t);n>-1&&o!==this.view.element(n)?this.setFocus([n],e):this.setFocus([i],e)}else{const n=this.view.getScrollTop();this.view.setScrollTop(n+this.view.renderHeight-this.view.elementHeight(i)),this.view.getScrollTop()!==n&&(this.setFocus([]),yield(0,d.Vs)(0),yield this.focusNextPage(e,t))}}))}focusPreviousPage(e,t){return L(this,void 0,void 0,(function*(){let i;const n=this.view.getScrollTop();i=0===n?this.view.indexAt(n):this.view.indexAfter(n-1);const o=this.view.element(i),s=this.getFocusedElements()[0];if(s!==o){const n=this.findNextIndex(i,!1,t);n>-1&&s!==this.view.element(n)?this.setFocus([n],e):this.setFocus([i],e)}else{const i=n;this.view.setScrollTop(n-this.view.renderHeight),this.view.getScrollTop()!==i&&(this.setFocus([]),yield(0,d.Vs)(0),yield this.focusPreviousPage(e,t))}}))}focusLast(e,t){if(0===this.length)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(0===this.length)return;const n=this.findNextIndex(e,!1,i);n>-1&&this.setFocus([n],t)}findNextIndex(e,t=!1,i){for(let n=0;n=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let n=0;nthis.view.element(e)))}reveal(e,t){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),o=this.view.elementHeight(e);if((0,b.hj)(t)){const e=o-this.view.renderHeight;this.view.setScrollTop(e*(0,f.u)(t,0,1)+n)}else{const e=n+o,t=i+this.view.renderHeight;n=t||(n=t&&o>=this.view.renderHeight?this.view.setScrollTop(n):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);const t=this.view.getScrollTop(),i=this.view.elementTop(e),n=this.view.elementHeight(e);if(it+this.view.renderHeight)return null;const o=n-this.view.renderHeight;return Math.abs((t-i)/o)}getHTMLElement(){return this.view.domNode}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map((e=>this.view.element(e))),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let i;(null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}y([u.H],q.prototype,"onDidChangeFocus",null),y([u.H],q.prototype,"onDidChangeSelection",null),y([u.H],q.prototype,"onContextMenu",null),y([u.H],q.prototype,"onKeyDown",null),y([u.H],q.prototype,"onDidFocus",null)},32787:function(e,t,i){"use strict";i.d(t,{S:function(){return n}});const n="monaco-mouse-cursor-text"},84445:function(e,t,i){"use strict";i.d(t,{l:function(){return u},g:function(){return v}});var n=i(69454),o=i(8035),s=i(60537),r=i(50431),a=i(85402),l=i(4348),h=i(69323),d=i(23345),c=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};var u;!function(e){e.North="north",e.South="south",e.East="east",e.West="west"}(u||(u={}));const g=new l.Q5;const p=new l.Q5;class m{constructor(){this.disposables=new h.SL}get onPointerMove(){return this.disposables.add(new o.Y(window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new o.Y(window,"mouseup")).event}dispose(){this.disposables.dispose()}}c([a.H],m.prototype,"onPointerMove",null),c([a.H],m.prototype,"onPointerUp",null);class f{constructor(e){this.el=e,this.disposables=new h.SL}get onPointerMove(){return this.disposables.add(new o.Y(this.el,s.t.Change)).event}get onPointerUp(){return this.disposables.add(new o.Y(this.el,s.t.End)).event}dispose(){this.disposables.dispose()}}c([a.H],f.prototype,"onPointerMove",null),c([a.H],f.prototype,"onPointerUp",null);class _{constructor(e){this.factory=e}get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}dispose(){}}c([a.H],_.prototype,"onPointerMove",null),c([a.H],_.prototype,"onPointerUp",null);class v extends h.JT{constructor(e,t,i){super(),this.hoverDelay=300,this.hoverDelayer=this._register(new r.vp(this.hoverDelay)),this._state=3,this._onDidEnablementChange=this._register(new l.Q5),this.onDidEnablementChange=this._onDidEnablementChange.event,this._onDidStart=this._register(new l.Q5),this.onDidStart=this._onDidStart.event,this._onDidChange=this._register(new l.Q5),this.onDidChange=this._onDidChange.event,this._onDidReset=this._register(new l.Q5),this.onDidReset=this._onDidReset.event,this._onDidEnd=this._register(new l.Q5),this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.orthogonalStartSashDisposables=this._register(new h.SL),this.orthogonalStartDragHandleDisposables=this._register(new h.SL),this.orthogonalEndSashDisposables=this._register(new h.SL),this.orthogonalEndDragHandleDisposables=this._register(new h.SL),this.el=(0,n.R3)(e,(0,n.$)(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),d.dz&&this.el.classList.add("mac");const a=this._register(new o.Y(this.el,"mousedown")).event;this._register(a((e=>this.onPointerStart(e,new m)),this));const c=this._register(new o.Y(this.el,"dblclick")).event;this._register(c(this.onPointerDoublePress,this));const u=this._register(new o.Y(this.el,"mouseenter")).event;this._register(u((()=>v.onMouseEnter(this))));const _=this._register(new o.Y(this.el,"mouseleave")).event;this._register(_((()=>v.onMouseLeave(this)))),this._register(s.o.addTarget(this.el));const b=l.ju.map(this._register(new o.Y(this.el,s.t.Start)).event,(e=>{var t;return Object.assign(Object.assign({},e),{target:null!==(t=e.initialTarget)&&void 0!==t?t:null})}));this._register(b((e=>this.onPointerStart(e,new f(this.el))),this));const C=this._register(new o.Y(this.el,s.t.Tap)).event,w=l.ju.map(l.ju.filter(l.ju.debounce(C,((e,t)=>{var i;return{event:t,count:(null!==(i=null==e?void 0:e.count)&&void 0!==i?i:0)+1}}),250),(({count:e})=>2===e)),(({event:e})=>{var t;return Object.assign(Object.assign({},e),{target:null!==(t=e.initialTarget)&&void 0!==t?t:null})}));this._register(w(this.onPointerDoublePress,this)),"number"==typeof i.size?(this.size=i.size,0===i.orientation?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=4,this._register(g.event((e=>{this.size=e,this.layout()})))),this._register(p.event((e=>this.hoverDelay=e))),this.hidden=!1,this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",false),this.layout()}get state(){return this._state}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e))}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=(0,n.R3)(this.el,(0,n.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,h.OF)((()=>this._orthogonalStartDragHandle.remove()))),this.orthogonalStartDragHandleDisposables.add(new o.Y(this._orthogonalStartDragHandle,"mouseenter")).event((()=>v.onMouseEnter(e)),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new o.Y(this._orthogonalStartDragHandle,"mouseleave")).event((()=>v.onMouseLeave(e)),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange(t,this)),t(e.state)}this._orthogonalStartSash=e}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=(0,n.R3)(this.el,(0,n.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,h.OF)((()=>this._orthogonalEndDragHandle.remove()))),this.orthogonalEndDragHandleDisposables.add(new o.Y(this._orthogonalEndDragHandle,"mouseenter")).event((()=>v.onMouseEnter(e)),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new o.Y(this._orthogonalEndDragHandle,"mouseleave")).event((()=>v.onMouseLeave(e)),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange(t,this)),t(e.state)}this._orthogonalEndSash=e}onPointerStart(e,t){n.zB.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const n=this.getOrthogonalSash(e);n&&(i=!0,e.__orthogonalSashEvent=!0,n.onPointerStart(e,new _(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new _(t))),!this.state)return;const o=(0,n.H$)("iframe");for(const e of o)e.style.pointerEvents="none";const s=e.pageX,r=e.pageY,a=e.altKey,l={startX:s,currentX:s,startY:r,currentY:r,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const c=(0,n.dS)(this.el),u=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":d.dz?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":d.dz?"col-resize":"ew-resize",c.textContent=`* { cursor: ${e} !important; }`},g=new h.SL;u(),i||this.onDidEnablementChange(u,null,g);t.onPointerMove((e=>{n.zB.stop(e,!1);const t={startX:s,currentX:e.pageX,startY:r,currentY:e.pageY,altKey:a};this._onDidChange.fire(t)}),null,g),t.onPointerUp((e=>{n.zB.stop(e,!1),this.el.removeChild(c),this.el.classList.remove("active"),this._onDidEnd.fire(),g.dispose();for(const e of o)e.style.pointerEvents="auto"}),null,g),g.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger((()=>e.el.classList.add("hover")),e.hoverDelay).then(void 0,(()=>{})),!t&&e.linkedSash&&v.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&v.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){v.onMouseLeave(this)}layout(){if(0===this.orientation){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}hide(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")}getOrthogonalSash(e){if(e.target&&e.target instanceof HTMLElement)return e.target.classList.contains("orthogonal-drag-handle")?e.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},78802:function(e,t,i){"use strict";i.d(t,{s$:function(){return T},NB:function(){return E},$Z:function(){return I}});var n=i(87783),o=i(69454),s=i(32635),r=i(52390),a=i(2395),l=i(62758),h=i(50431);const d=11;class c extends l.${constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",void 0!==e.top&&(this.bgDomNode.style.top="0px"),void 0!==e.left&&(this.bgDomNode.style.left="0px"),void 0!==e.bottom&&(this.bgDomNode.style.bottom="0px"),void 0!==e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...e.icon.classNamesArray),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px",void 0!==e.top&&(this.domNode.style.top=e.top+"px"),void 0!==e.left&&(this.domNode.style.left=e.left+"px"),void 0!==e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),void 0!==e.right&&(this.domNode.style.right=e.right+"px"),this._mouseMoveMonitor=this._register(new a.Z),this.onmousedown(this.bgDomNode,(e=>this._arrowMouseDown(e))),this.onmousedown(this.domNode,(e=>this._arrowMouseDown(e))),this._mousedownRepeatTimer=this._register(new h.zh),this._mousedownScheduleRepeatTimer=this._register(new h._F)}_arrowMouseDown(e){this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet((()=>{this._mousedownRepeatTimer.cancelAndSet((()=>this._onActivate()),1e3/24)}),200),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,a.e,(e=>{}),(()=>{this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancel()})),e.preventDefault()}}var u=i(69323);class g extends u.JT{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new h._F)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((()=>{this._domNode&&this._domNode.setClassName(this._visibleClassName)}),0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))}}var p=i(23345);class m extends l.${constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new g(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._mouseMoveMonitor=this._register(new a.Z),this._shouldRender=!0,this.domNode=(0,s.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.onmousedown(this.domNode.domNode,(e=>this._domNodeMouseDown(e)))}_createArrow(e){const t=this._register(new c(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=(0,s.X)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"==typeof i&&this.slider.setWidth(i),"number"==typeof n&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,(e=>{e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,(()=>{})))})),this.onclick(this.slider.domNode,(e=>{e.leftButton&&e.stopPropagation()}))}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodeMouseDown(e){e.target===this.domNode.domNode&&this._onMouseDown(e)}delegateMouseDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderMousePosition(e);i<=o&&o<=n?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,(()=>{}))):this._onMouseDown(e)}_onMouseDown(e){let t,i;if(e.target===this.domNode.domNode&&"number"==typeof e.browserEvent.offsetX&&"number"==typeof e.browserEvent.offsetY)t=e.browserEvent.offsetX,i=e.browserEvent.offsetY;else{const n=o.i(this.domNode.domNode);t=e.posx-n.left,i=e.posy-n.top}const n=this._mouseDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,(()=>{})))}_sliderMouseDown(e,t){const i=this._sliderMousePosition(e),n=this._sliderOrthogonalMousePosition(e),o=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,a.e,(e=>{const t=this._sliderOrthogonalMousePosition(e),s=Math.abs(t-n);if(p.ED&&s>140)return void this._setDesiredScrollPositionNow(o.getScrollPosition());const r=this._sliderMousePosition(e)-i;this._setDesiredScrollPositionNow(o.getDesiredScrollPositionFromDelta(r))}),(()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd(),t()})),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}class f{constructor(e,t,i,n,o,s){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=o,this._scrollPosition=s,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new f(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,o){const s=Math.max(0,i-e),r=Math.max(0,s-2*t),a=n>0&&n>i;if(!a)return{computedAvailableSize:Math.round(s),computedIsNeeded:a,computedSliderSize:Math.round(r),computedSliderRatio:0,computedSliderPosition:0};const l=Math.round(Math.max(20,Math.floor(i*r/n))),h=(r-l)/(n-i),d=o*h;return{computedAvailableSize:Math.round(s),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:h,computedSliderPosition:Math.round(d)}}_refreshComputedValues(){const e=f._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return tthis._host.onMouseWheel(new r.q(null,1,0))}),this._createArrow({className:"scra",icon:b,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return e}_sliderMousePosition(e){return e.posx}_sliderOrthogonalMousePosition(e){return e.posy}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}const w=(0,_.CM)("scrollbar-button-up",_.lA.triangleUp),S=(0,_.CM)("scrollbar-button-down",_.lA.triangleDown);class y extends m{constructor(e,t,i){const n=e.getScrollDimensions(),o=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new f(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,o.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-d)/2,i=(t.verticalScrollbarSize-d)/2;this._createArrow({className:"scra",icon:w,top:e,left:i,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,0,1))}),this._createArrow({className:"scra",icon:S,top:void 0,left:i,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return t}_sliderMousePosition(e){return e.posy}_sliderOrthogonalMousePosition(e){return e.posx}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var L=i(4348),N=i(28962);class x{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class k{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,n=this._rear;for(;;){const o=n===this._front?e:Math.pow(2,-i);if(e-=o,t+=this._memory[n].score*o,n===this._front)break;n=(this._capacity+n-1)%this._capacity,i++}return t<=.5}accept(e,t,i){const n=new x(e,t,i);n.score=this._computeScore(n),-1===this._front&&-1===this._rear?(this._memory[0]=n,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=n)}_computeScore(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}k.INSTANCE=new k;class D extends l.${constructor(e,t,i){super(),this._onScroll=this._register(new L.Q5),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new L.Q5),e.style.overflow="hidden",this._options=function(e){const t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:void 0!==e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:void 0===e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:void 0!==e.scrollByPage&&e.scrollByPage};t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,p.dz&&(t.className+=" mac");return t}(t),this._scrollable=i,this._register(this._scrollable.onScroll((e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)})));const n={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new y(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new C(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,s.X)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,s.X)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,s.X)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,(e=>this._onMouseOver(e))),this.onnonbubblingmouseout(this._listenOnDomNode,(e=>this._onMouseOut(e))),this._hideTimeout=this._register(new h._F),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,u.B9)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarMouseDown(e){this._verticalScrollbar.delegateMouseDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,p.dz&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){void 0!==e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),void 0!==e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),void 0!==e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),void 0!==e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),void 0!==e.horizontal&&(this._options.horizontal=e.horizontal),void 0!==e.vertical&&(this._options.vertical=e.vertical),void 0!==e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),void 0!==e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),void 0!==e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=(0,u.B9)(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new r.q(e))};this._mouseWheelToDispose.push(o.nm(this._listenOnDomNode,o.tw.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){const t=k.INSTANCE;{const i=window.devicePixelRatio/(0,n.ie)();p.ED||p.IJ?t.accept(Date.now(),e.deltaX/i,e.deltaY/i):t.accept(Date.now(),e.deltaX,e.deltaY)}let i=!1;if(e.deltaY||e.deltaX){let n=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(n)>=Math.abs(o)?o=0:n=0),this._options.flipAxes&&([n,o]=[o,n]);const s=!p.dz&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!s||o||(o=n,n=0),e.browserEvent&&e.browserEvent.altKey&&(o*=this._options.fastScrollSensitivity,n*=this._options.fastScrollSensitivity);const r=this._scrollable.getFutureScrollPosition();let a={};if(n){const e=50*n,t=r.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,t)}if(o){const e=50*o,t=r.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}if(a=this._scrollable.validateScrollPosition(a),r.scrollLeft!==a.scrollLeft||r.scrollTop!==a.scrollTop){this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),i=!0}}let o=i;!o&&this._options.alwaysConsumeMouseWheel&&(o=!0),!o&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(o=!0),o&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",o=t?" top":"",s=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${o}`),this._topLeftShadowDomNode.setClassName(`shadow${s}${o}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseOut(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((()=>this._hide()),500)}}class E extends D{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new N.Rm(0,(e=>o.jL(e)));super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class I extends D{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class T extends E{constructor(e,t){super(e,t),this._element=e,this.onScroll((e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)})),this.scanDomNode()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},97808:function(e,t,i){"use strict";i.d(t,{M:function(){return v},z:function(){return b}});var n=i(69454),o=i(84445),s=i(78802),r=i(43506),a=i(51737),l=i(4348),h=i(69323),d=i(56722),c=i(28962),u=i(72999);const g={separatorBorder:a.Il.transparent};class p{constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,"number"==typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get visible(){return void 0===this._cachedVisibleSize}setVisible(e,t){e!==this.visible&&(e?(this.size=(0,d.u)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e),this.view.setVisible&&this.view.setVisible(e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)}dispose(){return this.disposable.dispose(),this.view}}class m extends p{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class f extends p{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var _,v;!function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"}(_||(_={})),function(e){e.Distribute={type:"distribute"},e.Split=function(e){return{type:"split",index:e}},e.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(v||(v={}));class b extends h.JT{constructor(e,t={}){var i,o;super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=_.Idle,this._onDidSashChange=this._register(new l.Q5),this.onDidSashChange=this._onDidSashChange.event,this._onDidSashReset=this._register(new l.Q5),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.orientation=u.o8(t.orientation)?0:t.orientation,this.inverseAltBehavior=!!t.inverseAltBehavior,this.proportionalLayout=!!u.o8(t.proportionalLayout)||!!t.proportionalLayout,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=(0,n.R3)(this.el,(0,n.$)(".sash-container")),this.viewContainer=(0,n.$)(".split-view-container"),this.scrollable=new c.Rm(125,n.jL),this.scrollableElement=this._register(new s.$Z(this.viewContainer,{vertical:0===this.orientation?null!==(i=t.scrollbarVisibility)&&void 0!==i?i:1:2,horizontal:1===this.orientation?null!==(o=t.scrollbarVisibility)&&void 0!==o?o:1:2},this.scrollable)),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll((e=>{this.viewContainer.scrollTop=e.scrollTop,this.viewContainer.scrollLeft=e.scrollLeft}))),(0,n.R3)(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||g),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach(((e,t)=>{const i=u.o8(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},n=e.view;this.doAddView(n,i,t,!0)})),this.contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,n){this.doAddView(e,t,i,n)}layout(e,t){const i=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(let t=0;t1===this.viewItems[e].priority)),o=t.filter((e=>2===this.viewItems[e].priority));this.resize(this.viewItems.length-1,e-i,void 0,n,o)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map((e=>e.size/this.contentSize)))}onSashStart({sash:e,start:t,alt:i}){for(const e of this.viewItems)e.enabled=!1;const o=this.sashItems.findIndex((t=>t.sash===e)),s=(0,h.F8)((0,n.nm)(document.body,"keydown",(e=>a(this.sashDragState.current,e.altKey))),(0,n.nm)(document.body,"keyup",(()=>a(this.sashDragState.current,!1)))),a=(e,t)=>{const i=this.viewItems.map((e=>e.size));let n,a,l=Number.NEGATIVE_INFINITY,h=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t){if(o===this.sashItems.length-1){const e=this.viewItems[o];l=(e.minimumSize-e.size)/2,h=(e.maximumSize-e.size)/2}else{const e=this.viewItems[o+1];l=(e.size-e.maximumSize)/2,h=(e.size-e.minimumSize)/2}}if(!t){const e=(0,r.w6)(o,-1),t=(0,r.w6)(o+1,this.viewItems.length),s=e.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),l=e.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t])),0),h=0===t.length?Number.POSITIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),d=0===t.length?Number.NEGATIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].viewMaximumSize)),0),c=Math.max(s,d),u=Math.min(h,l),g=this.findFirstSnapIndex(e),p=this.findFirstSnapIndex(t);if("number"==typeof g){const e=this.viewItems[g],t=Math.floor(e.viewMinimumSize/2);n={index:g,limitDelta:e.visible?c-t:c+t,size:e.size}}if("number"==typeof p){const e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);a={index:p,limitDelta:e.visible?u+t:u-t,size:e.size}}}this.sashDragState={start:e,current:e,index:o,sizes:i,minDelta:l,maxDelta:h,alt:t,snapBefore:n,snapAfter:a,disposable:s}};a(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:n,alt:o,minDelta:s,maxDelta:r,snapBefore:a,snapAfter:l}=this.sashDragState;this.sashDragState.current=e;const h=e-i,d=this.resize(t,h,n,void 0,void 0,s,r,a,l);if(o){const e=t===this.sashItems.length-1,i=this.viewItems.map((e=>e.size)),n=e?t:t+1,o=this.viewItems[n],s=o.size-o.maximumSize,r=o.size-o.minimumSize,a=e?t-1:t+1;this.resize(a,-d,i,void 0,void 0,s,r)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const e of this.viewItems)e.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"==typeof t?t:e.size,t=(0,d.u)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(this.state!==_.Idle)throw new Error("Cant modify splitview");if(this.state=_.Busy,e<0||e>=this.viewItems.length)return;const i=(0,r.w6)(this.viewItems.length).filter((t=>t!==e)),n=[...i.filter((e=>1===this.viewItems[e].priority)),e],o=i.filter((e=>2===this.viewItems[e].priority)),s=this.viewItems[e];t=Math.round(t),t=(0,d.u)(t,s.minimumSize,Math.min(s.maximumSize,this.size)),s.size=t,this.relayout(n,o),this.state=_.Idle}distributeViewSizes(){const e=[];let t=0;for(const i of this.viewItems)i.maximumSize-i.minimumSize>0&&(e.push(i),t+=i.size);const i=Math.floor(t/e.length);for(const t of e)t.size=(0,d.u)(i,t.minimumSize,t.maximumSize);const n=(0,r.w6)(this.viewItems.length),o=n.filter((e=>1===this.viewItems[e].priority)),s=n.filter((e=>2===this.viewItems[e].priority));this.relayout(o,s)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,s){if(this.state!==_.Idle)throw new Error("Cant modify splitview");this.state=_.Busy;const a=(0,n.$)(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(a):this.viewContainer.insertBefore(a,this.viewContainer.children.item(i));const d=e.onDidChange((e=>this.onViewChange(p,e))),c=(0,h.OF)((()=>this.viewContainer.removeChild(a))),u=(0,h.F8)(d,c);let g;g="number"==typeof t?t:"split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize;const p=0===this.orientation?new m(a,e,g,u):new f(a,e,g,u);if(this.viewItems.splice(i,0,p),this.viewItems.length>1){let e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash};const t=0===this.orientation?new o.g(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},e),{orientation:1})):new o.g(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},e),{orientation:0})),n=0===this.orientation?e=>({sash:t,start:e.startY,current:e.currentY,alt:e.altKey}):e=>({sash:t,start:e.startX,current:e.currentX,alt:e.altKey}),s=l.ju.map(t.onDidStart,n)(this.onSashStart,this),a=l.ju.map(t.onDidChange,n)(this.onSashChange,this),d=l.ju.map(t.onDidEnd,(()=>this.sashItems.findIndex((e=>e.sash===t)))),c=d(this.onSashEnd,this),u=t.onDidReset((()=>{const e=this.sashItems.findIndex((e=>e.sash===t)),i=(0,r.w6)(e,-1),n=(0,r.w6)(e+1,this.viewItems.length),o=this.findFirstSnapIndex(i),s=this.findFirstSnapIndex(n);("number"!=typeof o||this.viewItems[o].visible)&&("number"!=typeof s||this.viewItems[s].visible)&&this._onDidSashReset.fire(e)})),g=(0,h.F8)(s,a,c,u,t),p={sash:t,disposable:g};this.sashItems.splice(i-1,0,p)}let v;a.appendChild(e.element),"number"!=typeof t&&"split"===t.type&&(v=[t.index]),s||this.relayout([i],v),this.state=_.Idle,s||"number"==typeof t||"distribute"!==t.type||this.distributeViewSizes()}relayout(e,t){const i=this.viewItems.reduce(((e,t)=>e+t.size),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map((e=>e.size)),n,o,s=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,l,h){if(e<0||e>=this.viewItems.length)return 0;const c=(0,r.w6)(e,-1),u=(0,r.w6)(e+1,this.viewItems.length);if(o)for(const e of o)(0,r.zI)(c,e),(0,r.zI)(u,e);if(n)for(const e of n)(0,r.al)(c,e),(0,r.al)(u,e);const g=c.map((e=>this.viewItems[e])),p=c.map((e=>i[e])),m=u.map((e=>this.viewItems[e])),f=u.map((e=>i[e])),_=c.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),v=c.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),b=0===u.length?Number.POSITIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),C=0===u.length?Number.NEGATIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),w=Math.max(_,C,s),S=Math.min(b,v,a);let y=!1;if(l){const e=this.viewItems[l.index],i=t>=l.limitDelta;y=i!==e.visible,e.setVisible(i,l.size)}if(!y&&h){const e=this.viewItems[h.index],i=te+t.size),0);let i=this.size-t;const n=(0,r.w6)(this.viewItems.length-1,-1),o=n.filter((e=>1===this.viewItems[e].priority)),s=n.filter((e=>2===this.viewItems[e].priority));for(const e of s)(0,r.zI)(n,e);for(const e of o)(0,r.al)(n,e);"number"==typeof e&&(0,r.al)(n,e);for(let e=0;0!==i&&ee+t.size),0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach((e=>e.sash.layout())),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this.contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this.contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;const i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),n=[...this.viewItems].reverse();e=!1;const o=n.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;const s=n.map((t=>e=t.maximumSize-t.size>0||e)).reverse();let a=0;for(let e=0;e0||this.startSnappingEnabled)?n.state=1:c&&t[e]&&(a0)return;if(!e.visible&&e.snap)return t}}dispose(){super.dispose(),this.viewItems.forEach((e=>e.dispose())),this.viewItems=[],this.sashItems.forEach((e=>e.disposable.dispose())),this.sashItems=[]}}},62758:function(e,t,i){"use strict";i.d(t,{$:function(){return l}});var n=i(69454),o=i(92813),s=i(52390),r=i(60537),a=i(69323);class l extends a.JT{onclick(e,t){this._register(n.nm(e,n.tw.CLICK,(e=>t(new s.n(e)))))}onmousedown(e,t){this._register(n.nm(e,n.tw.MOUSE_DOWN,(e=>t(new s.n(e)))))}onmouseover(e,t){this._register(n.nm(e,n.tw.MOUSE_OVER,(e=>t(new s.n(e)))))}onnonbubblingmouseout(e,t){this._register(n.j_(e,(e=>t(new s.n(e)))))}onkeydown(e,t){this._register(n.nm(e,n.tw.KEY_DOWN,(e=>t(new o.y(e)))))}onkeyup(e,t){this._register(n.nm(e,n.tw.KEY_UP,(e=>t(new o.y(e)))))}oninput(e,t){this._register(n.nm(e,n.tw.INPUT,t))}onblur(e,t){this._register(n.nm(e,n.tw.BLUR,t))}onfocus(e,t){this._register(n.nm(e,n.tw.FOCUS,t))}ignoreGesture(e){r.o.ignoreTarget(e)}}},43506:function(e,t,i){"use strict";function n(e,t=0){return e[e.length-(1+t)]}function o(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function s(e,t,i=((e,t)=>e===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0,o=e.length;n0))return s;o=s-1}}return-(n+1)}function a(e,t){let i=0,n=e.length;if(0===n)return 0;for(;i=t.length)throw new TypeError("invalid index");let n=t[Math.floor(t.length*Math.random())],o=[],s=[],r=[];for(let e of t){const t=i(e,n);t<0?o.push(e):t>0?s.push(e):r.push(e)}return e!!e))}function c(e){return!Array.isArray(e)||0===e.length}function u(e){return Array.isArray(e)&&e.length>0}function g(e,t=(e=>e)){const i=new Set;return e.filter((e=>{const n=t(e);return!i.has(n)&&(i.add(n),!0)}))}function p(e,t){const i=function(e,t){for(let i=e.length-1;i>=0;i--){if(t(e[i]))return i}return-1}(e,t);if(-1!==i)return e[i]}function m(e,t){return e.length>0?e[0]:t}function f(e){return[].concat(...e)}function _(e,t){let i="number"==typeof t?e:0;"number"==typeof t?i=e:(i=0,t=e);const n=[];if(i<=t)for(let e=i;et;e--)n.push(e);return n}function v(e,t,i){const n=e.slice(0,t),o=e.slice(t);return n.concat(i,o)}function b(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function C(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function w(e){return Array.isArray(e)?e:[e]}function S(e,t,i,n){const o=y(e,t),s=e.splice(o,i);return function(e,t,i){const n=y(e,t),o=e.length,s=i.length;e.length=o+s;for(let t=o-1;t>=n;t--)e[t+s]=e[t];for(let t=0;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){return this.items[this.firstIdx]}}},50431:function(e,t,i){"use strict";i.d(t,{J8:function(){return a},PG:function(){return l},Ps:function(){return m},To:function(){return b},Ue:function(){return C},Vg:function(){return p},Vs:function(){return g},_F:function(){return f},eP:function(){return h},jT:function(){return w},pY:function(){return v},rH:function(){return u},vp:function(){return c},zh:function(){return _}});var n=i(96283),o=i(79881),s=i(69323),r=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function a(e){return!!e&&"function"==typeof e.then}function l(e){const t=new n.A,i=e(t.token),s=new Promise(((e,n)=>{const s=t.token.onCancellationRequested((()=>{s.dispose(),t.dispose(),n((0,o.F0)())}));Promise.resolve(i).then((i=>{s.dispose(),t.dispose(),e(i)}),(e=>{s.dispose(),t.dispose(),n(e)}))}));return new class{cancel(){t.cancel()}then(e,t){return s.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return s.finally(e)}}}function h(e,t,i){return Promise.race([e,new Promise((e=>t.onCancellationRequested((()=>e(i)))))])}class d{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{this.queuedPromise=null;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((t=>{this.activePromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedPromise.then(e,t)}))}return this.activePromise=e(),new Promise(((e,t)=>{this.activePromise.then((t=>{this.activePromise=null,e(t)}),(e=>{this.activePromise=null,t(e)}))}))}}class c{constructor(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){return this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(((e,t)=>{this.doResolve=e,this.doReject=t})).then((()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}}))),this.timeout=setTimeout((()=>{this.timeout=null,this.doResolve&&this.doResolve(null)}),t),this.completionPromise}isTriggered(){return null!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject((0,o.F0)()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancel()}}class u{constructor(e){this.delayer=new c(e),this.throttler=new d}trigger(e,t){return this.delayer.trigger((()=>this.throttler.queue(e)),t)}dispose(){this.delayer.dispose()}}function g(e,t){return t?new Promise(((i,n)=>{const s=setTimeout((()=>{r.dispose(),i()}),e),r=t.onCancellationRequested((()=>{clearTimeout(s),r.dispose(),n((0,o.F0)())}))})):l((t=>g(e,t)))}function p(e,t=0){const i=setTimeout(e,t);return(0,s.OF)((()=>clearTimeout(i)))}function m(e,t=(e=>!!e),i=null){let n=0;const o=e.length,s=()=>{if(n>=o)return Promise.resolve(i);const r=e[n++];return Promise.resolve(r()).then((e=>t(e)?Promise.resolve(e):s()))};return s()}class f{constructor(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout((()=>{this._token=-1,e()}),t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout((()=>{this._token=-1,e()}),t))}}class _{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval((()=>{e()}),t)}}class v{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}let b;b="function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback?e=>{const t=setTimeout((()=>{const t=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,t-Date.now())}}))}));let i=!1;return{dispose(){i||(i=!0,clearTimeout(t))}}}:(e,t)=>{const i=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);let n=!1;return{dispose(){n||(n=!0,cancelIdleCallback(i))}}};class C{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=b((()=>this._executor()))}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}var w;!function(e){e.settled=function(e){return r(this,void 0,void 0,(function*(){let t;const i=yield Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if(void 0!==t)throw t;return i}))},e.withAsyncBody=function(e){return new Promise(((t,i)=>r(this,void 0,void 0,(function*(){try{yield e(t,i)}catch(e){i(e)}}))))}}(w||(w={}))},90794:function(e,t,i){"use strict";i.d(t,{Ag:function(){return h},Cg:function(){return u},KN:function(){return r},Q$:function(){return c},T4:function(){return d},mP:function(){return a},oq:function(){return l}});var n=i(19208).lW;const o=void 0!==n;let s;class r{constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}static wrap(e){return o&&!n.isBuffer(e)&&(e=n.from(e.buffer,e.byteOffset,e.byteLength)),new r(e)}toString(){return o?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0}function l(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function h(e,t){return e[t]*Math.pow(2,24)+e[t+1]*Math.pow(2,16)+e[t+2]*Math.pow(2,8)+e[t+3]}function d(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function c(e,t){return e[t]}function u(e,t,i){e[i]=t}},96283:function(e,t,i){"use strict";i.d(t,{A:function(){return a},T:function(){return s}});var n=i(4348);const o=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof r||!(!t||"object"!=typeof t)&&("boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.ju.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o})}(s||(s={}));class r{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||(this._emitter=new n.Q5),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new r),this._token}cancel(){this._token?this._token instanceof r&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof r&&this._token.dispose():this._token=s.None}}},55237:function(e,t,i){"use strict";i.d(t,{E:function(){return o},r:function(){return s}});const n=Object.prototype.hasOwnProperty;function o(e,t){for(let i in e)if(n.call(e,i)){if(!1===t({key:i,value:e[i]},(function(){delete e[i]})))return}}class s{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}}},51737:function(e,t,i){"use strict";function n(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{Il:function(){return a},VS:function(){return o},tx:function(){return r}});class o{constructor(e,t,i,o=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class s{constructor(e,t,i,o){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.l=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=e.a,r=Math.max(t,i,n),a=Math.min(t,i,n);let l=0,h=0;const d=(a+r)/2,c=r-a;if(c>0){switch(h=Math.min(d<=.5?c/(2*d):c/(2-2*d),1),r){case t:l=(i-n)/c+(i1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:n,a:r}=e;let a,l,h;if(0===i)a=l=h=n;else{const e=n<.5?n*(1+i):n+i-n*i,o=2*n-e;a=s._hue2rgb(o,e,t+1/3),l=s._hue2rgb(o,e,t),h=s._hue2rgb(o,e,t-1/3)}return new o(Math.round(255*a),Math.round(255*l),Math.round(255*h),r)}}class r{constructor(e,t,i,o){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.v=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=Math.max(t,i,n),s=o-Math.min(t,i,n),a=0===o?0:s/o;let l;return l=0===s?0:o===t?((i-n)/s%6+6)%6:o===i?(n-t)/s+2:(t-i)/s+4,new r(Math.round(60*l),a,o,e.a)}static toRGBA(e){const{h:t,s:i,v:n,a:s}=e,r=n*i,a=r*(1-Math.abs(t/60%2-1)),l=n-r;let[h,d,c]=[0,0,0];return t<60?(h=r,d=a):t<120?(h=a,d=r):t<180?(d=r,c=a):t<240?(d=a,c=r):t<300?(h=a,c=r):t<=360&&(h=r,c=a),h=Math.round(255*(h+l)),d=Math.round(255*(d+l)),c=Math.round(255*(c+l)),new o(h,d,c,s)}}class a{constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof o)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof r))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=r.toRGBA(e)}}static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:r.fromRGBA(this.rgba)}equals(e){return!!e&&o.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&r.equals(this.hsva,e.hsva)}getRelativeLuminance(){return n(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()0||this.m_modifiedCount>0)&&this.m_changes.push(new n(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class d{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[n,o,s]=d._getElements(e),[r,a,l]=d._getElements(t);this._hasStrings=s&&l,this._originalStringElements=n,this._originalElementsOrHash=o,this._modifiedStringElements=r,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(d._isStringArray(t)){const e=new Int32Array(t.length);for(let i=0,n=t.length;i=e&&o>=i&&this.ElementsAreEqual(t,o);)t--,o--;if(e>t||i>o){let s;return i<=o?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new n(e,0,i,o-i+1)]):e<=t?(a.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),s=[new n(e,t-e+1,i,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const r=[0],l=[0],h=this.ComputeRecursionPoint(e,t,i,o,r,l,s),d=r[0],c=l[0];if(null!==h)return h;if(!s[0]){const r=this.ComputeDiffRecursive(e,d,i,c,s);let a=[];return a=s[0]?[new n(d+1,t-(d+1)+1,c+1,o-(c+1)+1)]:this.ComputeDiffRecursive(d+1,t,c+1,o,s),this.ConcatenateChanges(r,a)}return[new n(e,t-e+1,i,o-i+1)]}WALKTRACE(e,t,i,o,s,r,a,l,d,c,u,g,p,m,f,_,v,b){let C=null,w=null,S=new h,y=t,L=i,N=p[0]-_[0]-o,x=-1073741824,k=this.m_forwardHistory.length-1;do{const t=N+e;t===y||t=0&&(e=(d=this.m_forwardHistory[k])[0],y=1,L=d.length-1)}while(--k>=-1);if(C=S.getReverseChanges(),b[0]){let e=p[0]+1,t=_[0]+1;if(null!==C&&C.length>0){const i=C[C.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}w=[new n(e,g-e+1,t,f-t+1)]}else{S=new h,y=r,L=a,N=p[0]-_[0]-l,x=1073741824,k=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=N+s;e===y||e=c[e+1]?(m=(u=c[e+1]-1)-N-l,u>x&&S.MarkNextChange(),x=u+1,S.AddOriginalElement(u+1,m+1),N=e+1-s):(m=(u=c[e-1])-N-l,u>x&&S.MarkNextChange(),x=u,S.AddModifiedElement(u+1,m+1),N=e-1-s),k>=0&&(s=(c=this.m_reverseHistory[k])[0],y=1,L=c.length-1)}while(--k>=-1);w=S.getChanges()}return this.ConcatenateChanges(C,w)}ComputeRecursionPoint(e,t,i,o,s,r,a){let h=0,d=0,c=0,u=0,g=0,p=0;e--,i--,s[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(o-i),f=m+1,_=new Int32Array(f),v=new Int32Array(f),b=o-i,C=t-e,w=e-i,S=t-o,y=(C-b)%2==0;_[b]=e,v[C]=t,a[0]=!1;for(let L=1;L<=m/2+1;L++){let m=0,N=0;c=this.ClipDiagonalBound(b-L,L,b,f),u=this.ClipDiagonalBound(b+L,L,b,f);for(let e=c;e<=u;e+=2){h=e===c||em+N&&(m=h,N=d),!y&&Math.abs(e-C)<=L-1&&h>=v[e])return s[0]=h,r[0]=d,i<=v[e]&&L<=1448?this.WALKTRACE(b,c,u,w,C,g,p,S,_,v,h,t,s,d,o,r,y,a):null}const x=(m-e+(N-i)-L)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,x))return a[0]=!0,s[0]=m,r[0]=N,x>0&&L<=1448?this.WALKTRACE(b,c,u,w,C,g,p,S,_,v,h,t,s,d,o,r,y,a):(e++,i++,[new n(e,t-e+1,i,o-i+1)]);g=this.ClipDiagonalBound(C-L,L,C,f),p=this.ClipDiagonalBound(C+L,L,C,f);for(let n=g;n<=p;n+=2){h=n===g||n=v[n+1]?v[n+1]-1:v[n-1],d=h-(n-C)-S;const l=h;for(;h>e&&d>i&&this.ElementsAreEqual(h,d);)h--,d--;if(v[n]=h,y&&Math.abs(n-b)<=L&&h<=_[n])return s[0]=h,r[0]=d,l>=_[n]&&L<=1448?this.WALKTRACE(b,c,u,w,C,g,p,S,_,v,h,t,s,d,o,r,y,a):null}if(L<=1447){let e=new Int32Array(u-c+2);e[0]=b-c+1,l.Copy2(_,c,e,1,u-c+1),this.m_forwardHistory.push(e),e=new Int32Array(p-g+2),e[0]=C-g+1,l.Copy2(v,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,c,u,w,C,g,p,S,_,v,h,t,s,d,o,r,y,a)}PrettifyChanges(e){for(let t=0;t0,r=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;t--){const i=e[t];let n=0,o=0;if(t>0){const i=e[t-1];n=i.originalStart+i.originalLength,o=i.modifiedStart+i.modifiedLength}const s=i.originalLength>0,r=i.modifiedLength>0;let a=0,l=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){const t=i.originalStart-e,h=i.modifiedStart-e;if(tl&&(l=d,a=e)}i.originalStart-=a,i.modifiedStart-=a;const h=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],h)&&(e[t-1]=h[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,i=e.length;t0&&i>a&&(a=i,l=t,h=e)}return a>0?[l,h]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let o=0;o=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(i,n)?1:0)}ConcatenateChanges(e,t){let i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const n=new Array(e.length+t.length-1);return l.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],l.Copy(t,1,n,e.length,t.length-1),n}{const i=new Array(e.length+t.length);return l.Copy(e,0,i,0,e.length),l.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const o=e.originalStart;let s=e.originalLength;const r=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new n(o,s,r,a),!0}return i[0]=null,!1}ClipDiagonalBound(e,t,i,n){if(e>=0&&ee.length)return!1;if(i){if(!(0,s.ok)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===o&&i--,e.charAt(i)===o}return t.charAt(t.length-1)!==o&&(t+=o),0===e.indexOf(t)}function l(e){const t=(0,n.Fv)(e);return o.ED?!(e.length>3)&&(h(t)&&(2===e.length||92===t.charCodeAt(2))):t===n.KR.sep}function h(e){return!!o.ED&&(((t=e.charCodeAt(0))>=65&&t<=90||t>=97&&t<=122)&&58===e.charCodeAt(1));var t}},99599:function(e,t,i){"use strict";i.d(t,{CL:function(){return W},EW:function(){return H},Ji:function(){return r},KZ:function(){return C},Oh:function(){return x},ir:function(){return a},jB:function(){return k},l7:function(){return K},mB:function(){return D},or:function(){return s}});var n=i(78421),o=i(82983);function s(...e){return function(t,i){for(let n=0,o=e.length;n0?[{start:0,end:t.length}]:[]}.bind(void 0,!0);function a(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function l(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]===t[n]){let o=null;return(o=l(e,t,i+1,n+1))?f({start:n,end:n+1},o):null}return l(e,t,i,n+1)}function h(e){return 97<=e&&e<=122}function d(e){return 65<=e&&e<=90}function c(e){return 48<=e&&e<=57}function u(e){return 32===e||9===e||10===e||13===e}const g=new Set;function p(e){return u(e)||g.has(e)}function m(e){return h(e)||d(e)||c(e)}function f(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function _(e,t){for(let i=t;i0&&!m(e.charCodeAt(i-1)))return i}return e.length}function v(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]!==t[n].toLowerCase())return null;{let o=null,s=n+1;for(o=v(e,t,i+1,n+1);!o&&(s=_(t,s))60)return null;const i=function(e){let t=0,i=0,n=0,o=0,s=0;for(let r=0;r.2&&t<.8&&n>.6&&o<.2}(i)){if(!function(e){const{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let n=null,o=0;for(e=e.toLowerCase();o0&&p(e.charCodeAt(i-1)))return i;return e.length}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach((e=>g.add(e.charCodeAt(0))));const y=s(r,b,a),L=s(r,b,(function(e,t){return l(e.toLowerCase(),t.toLowerCase(),0,0)})),N=new n.z6(1e4);function x(e,t,i=!1){if("string"!=typeof e||"string"!=typeof t)return null;let n=N.get(e);n||(n=new RegExp(o.un(e),"i"),N.set(e,n));const s=n.exec(t);return s?[{start:s.index,end:s.index+s[0].length}]:i?L(e,t):y(e,t)}function k(e,t,i,n,o,s){const r=Math.min(13,e.length);for(;i1;n--){const o=e[n]+i,s=t[t.length-1];s&&s.end===o?s.end=o+1:t.push({start:o,end:o+1})}return t}const E=128;function I(){const e=[],t=[];for(let e=0;e<=E;e++)t[e]=0;for(let i=0;i<=E;i++)e.push(t.slice(0));return e}function T(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}const M=T(256),A=T(256),R=I(),O=I(),P=I();function F(e,t){if(t<0||t>=e.length)return!1;const i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 40:case 91:return!0;case void 0:return!1;default:return!!o.C8(i)}}function B(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function V(e,t,i){return t[e]!==i[e]}var W;function H(e,t,i,n,o,s,r){const a=e.length>E?E:e.length,l=n.length>E?E:n.length;if(i>=a||s>=l||a-i>l-s)return;if(!function(e,t,i,n,o,s,r=!1){for(;t=i&&a>=n;)o[r]===s[a]&&(A[r]=a,r--),a--}(a,l,i,s,t,o);let h=1,d=1,c=i,u=s;const g=[!1];for(h=1,c=i;cr,v=_?O[h][d-1]+(R[h][d-1]>0?-5:0):0,b=u>r+1&&R[h][d-1]>0,C=b?O[h][d-2]+(R[h][d-2]>0?-5:0):0;if(b&&(!_||C>=v)&&(!m||C>=f))O[h][d]=C,P[h][d]=3,R[h][d]=0;else if(_&&(!m||v>=f))O[h][d]=v,P[h][d]=2,R[h][d]=0;else{if(!m)throw new Error("not possible");O[h][d]=f,P[h][d]=1,R[h][d]=R[h-1][d-1]+1}}}if(!g[0]&&!r)return;h--,d--;const p=[O[h][d],s];let m=0,f=0;for(;h>=1;){let e=d;do{const t=P[h][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);m>1&&t[i+h-1]===o[s+d-1]&&!V(e+s-1,n,o)&&m+1>R[h][e]&&(e=d),e===d?m++:m=1,f||(f=e),h--,d=e-1,p.push(d)}l===a&&(p[0]+=2);const _=f-a;return p[0]-=_,p}function z(e,t,i,n,o,s,r,a,l,h,d){if(t[i]!==s[r])return Number.MIN_SAFE_INTEGER;let c=1,u=!1;return r===i-n?c=e[i]===o[r]?7:5:!V(r,o,s)||0!==r&&V(r-1,o,s)?!F(s,r)||0!==r&&F(s,r-1)?(F(s,r-1)||B(s,r-1))&&(c=5,u=!0):c=5:(c=e[i]===o[r]?7:5,u=!0),c>1&&i===n&&(d[0]=!0),u||(u=V(r,o,s)||F(s,r-1)||B(s,r-1)),i===n?r>l&&(c-=u?3:5):c+=h?u?2:0:u?0:1,r+1===a&&(c-=u?3:5),c}function K(e,t,i,n,o,s,r){return function(e,t,i,n,o,s,r,a){let l=H(e,t,i,n,o,s,a);if(l&&!r)return l;if(e.length>=3){const t=Math.min(7,e.length-1);for(let r=i+1;rl[0])&&(l=e))}}}return l}(e,t,i,n,o,s,!0,r)}function U(e,t){if(t+1>=e.length)return;const i=e[t],n=e[t+1];return i!==n?e.slice(0,t)+n+i+e.slice(t+2):void 0}!function(e){e.Default=[-100,0],e.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}}(W||(W={}))},63224:function(e,t,i){"use strict";i.d(t,{EQ:function(){return D},Qc:function(){return E}});var n=i(50431),o=i(57637),s=i(78421),r=i(26227),a=i(82983);const l="**",h="[/\\\\]",d="[^/\\\\]",c=/\//g;function u(e){switch(e){case 0:return"";case 1:return`${d}*?`;default:return`(?:${h}|${d}+${h}|${h}${d}+)*?`}}function g(e,t){if(!e)return[];const i=[];let n=!1,o=!1,s="";for(const r of e){switch(r){case t:if(!n&&!o){i.push(s),s="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":o=!0;break;case"]":o=!1}s+=r}return s&&i.push(s),i}function p(e){if(!e)return"";let t="";const i=g(e,"/");if(i.every((e=>e===l)))t=".*";else{let e=!1;i.forEach(((n,o)=>{if(n===l)return void(e||(t+=u(2),e=!0));let s=!1,r="",c=!1,m="";for(const e of n)if("}"!==e&&s)r+=e;else if(!c||"]"===e&&m)switch(e){case"{":s=!0;continue;case"[":c=!0;continue;case"}":const i=`(?:${g(r,",").map((e=>p(e))).join("|")})`;t+=i,s=!1,r="";break;case"]":t+="["+m+"]",c=!1,m="";break;case"?":t+=d;continue;case"*":t+=u(1);continue;default:t+=a.ec(e)}else{let t;t="-"===e?e:"^"!==e&&"!"!==e||m?"/"===e?"":a.ec(e):"^",m+=t}oL(e,t))).filter((e=>e!==y)),e),n=i.length;if(!n)return y;if(1===n)return i[0];const o=function(t,n){for(let o=0,s=i.length;o!!e.allBasenames));s&&(o.allBasenames=s.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);r.length&&(o.allPaths=r);return o}(i,t):(o=b.exec(x(i,t)))?k(o[1].substr(1),i,!0):(o=C.exec(x(i,t)))?k(o[1],i,!1):function(e){try{const t=new RegExp(`^${p(e)}$`);return function(i){return t.lastIndex=0,"string"==typeof i&&t.test(i)?e:null}}catch(e){return y}}(i);return w.set(n,s),N(s,e)}function N(e,t){return"string"==typeof t?e:function(i,n){return o.KM(i,t.base)?e(r.Gf(t.base,i),n):null}}function x(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function k(e,t,i){const n=r.ir===r.KR.sep,o=n?e:e.replace(c,r.ir),s=r.ir+o,a=r.KR.sep+e,l=i?function(i,r){return"string"!=typeof i||i!==o&&!i.endsWith(s)&&(n||i!==e&&!i.endsWith(a))?null:t}:function(i,s){return"string"!=typeof i||i!==o&&(n||i!==e)?null:t};return l.allPaths=[(i?"*/":"./")+e],l}function D(e,t,i){return!(!e||"string"!=typeof t)&&E(e)(t,void 0,i)}function E(e,t={}){if(!e)return S;if("string"==typeof e||function(e){const t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern}(e)){const i=L(e,t);if(i===y)return S;const n=function(e,t){return!!i(e,t)};return i.allBasenames&&(n.allBasenames=i.allBasenames),i.allPaths&&(n.allPaths=i.allPaths),n}return function(e,t){const i=I(Object.getOwnPropertyNames(e).map((i=>function(e,t,i){if(!1===t)return y;const o=L(e,i);if(o===y)return y;if("boolean"==typeof t)return o;if(t){const i=t.when;if("string"==typeof i){const t=(t,s,r,a)=>{if(!a||!o(t,s))return null;const l=a(i.replace("$(basename)",r));return(0,n.J8)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return o}(i,e[i],t))).filter((e=>e!==y))),o=i.length;if(!o)return y;if(!i.some((e=>!!e.requiresSiblings))){if(1===o)return i[0];const e=function(e,t){for(let n=0,o=i.length;n!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const n=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return n.length&&(e.allPaths=n),e}const s=function(e,t,n){let o;for(let s=0,a=i.length;s!!e.allBasenames));a&&(s.allBasenames=a.allBasenames);const l=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(s.allPaths=l);return s}(e,t)}function I(e,t){const i=e.filter((e=>!!e.basenames));if(i.length<2)return e;const n=i.reduce(((e,t)=>{const i=t.basenames;return i?e.concat(i):e}),[]);let o;if(t){o=[];for(let e=0,i=n.length;e{const i=t.patterns;return i?e.concat(i):e}),[]);const s=function(e,t){if("string"!=typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}const i=n.indexOf(t);return-1!==i?o[i]:null};s.basenames=n,s.patterns=o,s.allBasenames=n;const r=e.filter((e=>!e.basenames));return r.push(s),r}},44619:function(e,t,i){"use strict";i.d(t,{Cv:function(){return a},SP:function(){return s},vp:function(){return o},yP:function(){return c}});var n=i(82983);function o(e){return s(e,0)}function s(e,t){switch(typeof e){case"object":return null===e?r(349,t):Array.isArray(e)?(i=e,n=r(104579,n=t),i.reduce(((e,t)=>s(t,e)),n)):function(e,t){return t=r(181387,t),Object.keys(e).sort().reduce(((t,i)=>(t=a(i,t),s(e[i],t))),t)}(e,t);case"string":return a(e,t);case"boolean":return function(e,t){return r(e?433:863,t)}(e,t);case"number":return r(e,t);case"undefined":return r(937,t);default:return r(617,t)}var i,n}function r(e,t){return(t<<5)-t+e|0}function a(e,t){t=r(149417,t);for(let i=0,n=e.length;i>>n)>>>0}function h(e,t=0,i=e.byteLength,n=0){for(let o=0;oe.toString(16).padStart(2,"0"))).join(""):function(e,t,i="0"){for(;e.length>>0).toString(16),t/4)}class c{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const i=this._buff;let o,s,r=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(o=a,s=-1,a=0):(o=e.charCodeAt(0),s=0);;){let l=o;if(n.ZG(o)){if(!(s+1>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),d(this._h0)+d(this._h1)+d(this._h2)+d(this._h3)+d(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,h(this._buff,this._buffLen),this._buffLen>56&&(this._step(),h(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=c._bigBlock32,t=this._buffDV;for(let i=0;i<64;i+=4)e.setUint32(i,t.getUint32(i,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,l(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let i,n,o,s=this._h0,r=this._h1,a=this._h2,h=this._h3,d=this._h4;for(let t=0;t<80;t++)t<20?(i=r&a|~r&h,n=1518500249):t<40?(i=r^a^h,n=1859775393):t<60?(i=r&a|r&h|a&h,n=2400959708):(i=r^a^h,n=3395469782),o=l(s,5)+i+d+n+e.getUint32(4*t,!1)&4294967295,d=h,h=a,a=l(r,30),r=s,s=o;this._h0=this._h0+s&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+d&4294967295}}c._bigBlock32=new DataView(new ArrayBuffer(320))},94186:function(e,t,i){"use strict";i.d(t,{CP:function(){return r},Fr:function(){return a},W5:function(){return s},oR:function(){return l},v1:function(){return h}});var n=i(79881),o=i(38940);class s{constructor(e="",t=!1){var i,o,s;if(this.value=e,"string"!=typeof this.value)throw(0,n.b1)("value");"boolean"==typeof t?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=null!==(i=t.isTrusted)&&void 0!==i?i:void 0,this.supportThemeIcons=null!==(o=t.supportThemeIcons)&&void 0!==o&&o,this.supportHtml=null!==(s=t.supportHtml)&&void 0!==s&&s)}appendText(e,t=0){var i;return this.value+=(i=this.supportThemeIcons?(0,o.Qo)(e):e,i.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")).replace(/([ \t]+)/g,((e,t)=>" ".repeat(t.length))).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+="\n```",this.value+=e,this.value+="\n",this.value+=t,this.value+="\n```\n",this}}function r(e){return a(e)?!e.value:!Array.isArray(e)||e.every(r)}function a(e){return e instanceof s||!(!e||"object"!=typeof e)&&!("string"!=typeof e.value||"boolean"!=typeof e.isTrusted&&void 0!==e.isTrusted||"boolean"!=typeof e.supportThemeIcons&&void 0!==e.supportThemeIcons)}function l(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}function h(e){const t=[],i=e.split("|").map((e=>e.trim()));e=i[0];const n=i[1];if(n){const e=/height=(\d+)/.exec(n),i=/width=(\d+)/.exec(n),o=e?e[1]:"",s=i?i[1]:"",r=isFinite(parseInt(s)),a=isFinite(parseInt(o));r&&t.push(`width="${s}"`),a&&t.push(`height="${o}"`)}return{href:e,dimensions:t}}},38940:function(e,t,i){"use strict";i.d(t,{Gt:function(){return m},Ho:function(){return p},Qo:function(){return h},f$:function(){return c},x$:function(){return g}});var n=i(52615),o=i(99599),s=i(82983);const r="$(",a=new RegExp(`\\$\\(${n.dT.iconNameExpression}(?:${n.dT.iconModifierExpression})?\\)`,"g"),l=new RegExp(`(\\\\)?${a.source}`,"g");function h(e){return e.replace(l,((e,t)=>t?e:`\\${e}`))}const d=new RegExp(`\\\\${a.source}`,"g");function c(e){return e.replace(d,(e=>`\\${e}`))}const u=new RegExp(`(\\s)?(\\\\)?${a.source}(\\s)?`,"g");function g(e){return-1===e.indexOf(r)?e:e.replace(u,((e,t,i,n)=>i?e:t||n||""))}function p(e){const t=e.indexOf(r);return-1===t?{text:e}:function(e,t){const i=[];let n="";function o(e){if(e){n+=e;for(const t of e)i.push(d)}}let s,a,l=-1,h="",d=0,c=t;const u=e.length;o(e.substr(0,t));for(;c>>0)>>>0}!function(){const e="",t=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",0,e,0,e,e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_CLEAR",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];let i=[],n=[];for(const e of t){const[t,p,m,f,_,v,b,C,w,S]=e;if(n[m]||(n[m]=!0,h[m]=f,d[f]=m,c[f.toLowerCase()]=m,p&&(u[m]=_,0!==_&&3!==_&&5!==_&&4!==_&&6!==_&&57!==_&&(g[_]=m))),!i[_]){if(i[_]=!0,!v)throw new Error(`String representation missing for key code ${_} around scan code ${f}`);o.define(_,v),s.define(_,w||v),r.define(_,S||w||v)}b&&(a[b]=_),C&&(l[C]=_)}g[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return s.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return r.keyCodeToStr(e)},e.fromUserSettings=function(e){return s.strToKeyCode(e)||r.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return o.keyCodeToStr(e)}}(p||(p={}))},66872:function(e,t,i){"use strict";i.d(t,{X4:function(){return r},jC:function(){return a},xo:function(){return s}});var n=i(13268);class o{constructor(e,t,i=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;const n=[];for(let o=0,s=t.length;o>>0,n=(4294901760&e)>>>16;return new a(0!==n?[s(i,t),s(n,t)]:[s(i,t)])}function s(e,t){const i=!!(2048&e),n=!!(256&e);return new r(2===t?n:i,!!(1024&e),!!(512&e),2===t?i:n,255&e)}class r{constructor(e,t,i,n,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=o}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}toChord(){return new a([this])}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class a{constructor(e){if(0===e.length)throw(0,n.b1)("parts");this.parts=e}}class l{constructor(e,t,i,n,o,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyLabel=o,this.keyAriaLabel=s}}class h{}},51983:function(e,t,i){"use strict";i.d(t,{D:function(){return h},p:function(){return l}});var n=i(57637),o=i(66657),s=i(23345),r=i(9365),a=i(5472);function l(e){if(!e)return;"string"==typeof e&&(e=a.o.file(e));const t=(0,r.EZ)(e)||(e.scheme===o.lg.file?e.fsPath:e.path);return s.ED&&(0,n.vY)(t)?h(t):t}function h(e){return(0,n.oP)(e)?e.charAt(0).toUpperCase()+e.slice(1):e}},78421:function(e,t,i){"use strict";i.d(t,{Id:function(){return c},Y9:function(){return g},z6:function(){return m}});var n,o,s=i(82983);class r{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos!1)){return new c(new h(e))}static forStrings(){return new c(new r)}static forConfigKeys(){return new c(new a)}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new d,this._root.segment=i.value());const o=[];for(n=this._root;;){const e=i.cmp(n.segment);if(e>0)n.left||(n.left=new d,n.left.segment=i.value()),o.push([-1,n]),n=n.left;else if(e<0)n.right||(n.right=new d,n.right.segment=i.value()),o.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new d,n.mid.segment=i.value()),o.push([0,n]),n=n.mid}}const s=n.value;n.value=t,n.key=e;for(let e=o.length-1;e>=0;e--){const t=o[e][1];t.updateHeight();const i=t.balanceFactor();if(i<-1||i>1){const i=o[e][0],n=o[e+1][0];if(1===i&&1===n)o[e][1]=t.rotateLeft();else if(-1===i&&-1===n)o[e][1]=t.rotateRight();else if(1===i&&-1===n)t.right=o[e+1][1]=o[e+1][1].rotateRight(),o[e][1]=t.rotateLeft();else{if(-1!==i||1!==n)throw new Error;t.left=o[e+1][1]=o[e+1][1].rotateLeft(),o[e][1]=t.rotateRight()}if(e>0)switch(o[e-1][0]){case-1:o[e-1][1].left=o[e][1];break;case 1:o[e-1][1].right=o[e][1];break;case 0:o[e-1][1].mid=o[e][1]}else this._root=o[0][1]}}return s}get(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i}has(e){const t=this._getNode(e);return!(void 0===(null==t?void 0:t.value)&&void 0===(null==t?void 0:t.mid))}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;const n=this._iter.reset(e),o=[];let s=this._root;for(;s;){const e=n.cmp(s.segment);if(e>0)o.push([-1,s]),s=s.left;else if(e<0)o.push([1,s]),s=s.right;else{if(!n.hasNext())break;n.next(),o.push([0,s]),s=s.mid}}if(s){if(t?(s.left=void 0,s.mid=void 0,s.right=void 0,s.height=1):(s.key=void 0,s.value=void 0),!s.mid&&!s.value)if(s.left&&s.right){const e=this._min(s.right),{key:t,value:i,segment:n}=e;this._delete(e.key,!1),s.key=t,s.value=i,s.segment=n}else{const e=null!==(i=s.left)&&void 0!==i?i:s.right;if(o.length>0){const[t,i]=o[o.length-1];switch(t){case-1:i.left=e;break;case 0:i.mid=e;break;case 1:i.right=e}}else this._root=e}for(let e=o.length-1;e>=0;e--){const t=o[e][1];t.updateHeight();const i=t.balanceFactor();if(i>1?(t.right.balanceFactor()>=0||(t.right=o[e+1][1]=o[e+1][1].rotateRight()),o[e][1]=t.rotateLeft()):i<-1&&(t.left.balanceFactor()<=0||(t.left=o[e+1][1]=o[e+1][1].rotateLeft()),o[e][1]=t.rotateRight()),e>0)switch(o[e-1][0]){case-1:o[e-1][1].left=o[e][1];break;case 1:o[e-1][1].right=o[e][1];break;case 0:o[e-1][1].mid=o[e][1]}else this._root=o[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i,n=this._root;for(;n;){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i}findSuperstr(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())return i.mid?this._entries(i.mid):void 0;t.next(),i=i.mid}}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}*_entries(e){e&&(e.left&&(yield*this._entries(e.left)),e.value&&(yield[e.key,e.value]),e.mid&&(yield*this._entries(e.mid)),e.right&&(yield*this._entries(e.right)))}}class u{constructor(e,t){this.uri=e,this.value=t}}class g{constructor(e,t){this[n]="ResourceMap",e instanceof g?(this.map=new Map(e.map),this.toKey=null!=t?t:g.defaultToKey):(this.map=new Map,this.toKey=null!=e?e:g.defaultToKey)}set(e,t){return this.map.set(this.toKey(e),new u(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){void 0!==t&&(e=e.bind(t));for(let[t,i]of this.map)e(i.value,i.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(n=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}}g.defaultToKey=e=>e.toString();class p{constructor(){this[o]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,0!==i&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:case 2:default:this.addItemLast(n);break;case 1:this.addItemFirst(n)}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}[(o=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class m extends p{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},39941:function(e,t,i){"use strict";let n;i.d(t,{Qc:function(){return s},Th:function(){return o}}),e=i.hmd(e),function(){function t(e){n=e()}var i,o;t.amd=!0,i=this,o=function(){function e(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,n=new Array(t);i=e.length?{done:!0}:{done:!1,value:e[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 n={exports:{}};function o(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}n.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:o,changeDefaults:function(e){n.exports.defaults=e}};var s=/[&<>"']/,r=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,h={"&":"&","<":"<",">":">",'"':""","'":"'"},d=function(e){return h[e]},c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function u(e){return e.replace(c,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var g=/(^|[^\[])\^/g,p=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,f={},_=/^[^:]+:\/*[^/]*$/,v=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function C(e,t){f[" "+e]||(_.test(e)?f[" "+e]=e+"/":f[" "+e]=w(e,"/",!0));var i=-1===(e=f[" "+e]).indexOf(":");return"//"===t.substring(0,2)?i?t:e.replace(v,"$1")+t:"/"===t.charAt(0)?i?t:e.replace(b,"$1")+t:e+t}function w(e,t,i){var n=e.length;if(0===n)return"";for(var o=0;o=0&&"\\"===i[o];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(i[0].trim()||i.shift(),i[i.length-1].trim()||i.pop(),i.length>t)i.splice(t);else for(;i.length1;)1&t&&(i+=e),t>>=1,e+=e;return i+e},A=n.exports.defaults,R=E,O=D,P=S,F=I;function B(e,t,i,n){var o=t.href,s=t.title?P(t.title):null,r=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;var a={type:"link",raw:i,href:o,title:s,text:r,tokens:n.inlineTokens(r,[])};return n.state.inLink=!1,a}return{type:"image",raw:i,href:o,title:s,text:P(r)}}var V=function(){function e(e){this.options=e||A}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:R(i,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var i=t[0],n=function(e,t){var i=e.match(/^(\s+)(?:```)/);if(null===i)return t;var n=i[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e})).join("\n")}(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim():t[2],text:n}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var i=t[2].trim();if(/#$/.test(i)){var n=R(i,"#");this.options.pedantic?i=n.trim():n&&!/ $/.test(n)||(i=n.trim())}var o={type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:[]};return this.lexer.inline(o.text,o.tokens),o}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var i=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(i,[]),text:i}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var i,n,o,s,r,a,l,h,d,c,u=t[1].trim(),g=u.length>1,p={type:"list",raw:"",ordered:g,start:g?+u.slice(0,-1):"",loose:!1,items:[]};u=g?"\\d{1,9}\\"+u.slice(-1):"\\"+u,this.options.pedantic&&(u=g?u:"[*+-]");for(var m=new RegExp("^( {0,3}"+u+")((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))");e&&!this.rules.block.hr.test(e)&&(t=m.exec(e));){d=t[2].split("\n"),this.options.pedantic?(s=2,c=d[0].trimLeft()):(s=t[2].search(/[^ ]/),s=t[1].length+(s>4?1:s),c=d[0].slice(s-t[1].length)),a=!1,i=t[0],!d[0]&&/^ *$/.test(d[1])&&(i=t[1]+d.slice(0,2).join("\n")+"\n",p.loose=!0,d=[]);var f=new RegExp("^ {0,"+Math.min(3,s-1)+"}(?:[*+-]|\\d{1,9}[.)])");for(r=1;r=s)&&h.trim()){i=t[1]+d.slice(0,r).join("\n")+"\n";break}c+="\n"+h.slice(s)}else h.trim()||(a=!0),h.search(/[^ ]/)>=s?c+="\n"+h.slice(s):c+="\n"+h}p.loose||(l?p.loose=!0:/\n *\n *$/.test(i)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(c))&&(o="[ ] "!==n[0],c=c.replace(/^\[[ xX]\] +/,"")),p.items.push({type:"list_item",raw:i,task:!!n,checked:o,loose:!1,text:c}),p.raw+=i,e=e.slice(i.length)}p.items[p.items.length-1].raw=i.trimRight(),p.items[p.items.length-1].text=c.trimRight(),p.raw=p.raw.trimRight();var _=p.items.length;for(r=0;r<_;r++)this.lexer.state.top=!1,p.items[r].tokens=this.lexer.blockTokens(p.items[r].text,[]),p.items[r].tokens.some((function(e){return"space"===e.type}))&&(p.loose=!0,p.items[r].loose=!0);return p}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t){var i={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(i.type="paragraph",i.text=this.options.sanitizer?this.options.sanitizer(t[0]):P(t[0]),i.tokens=[],this.lexer.inline(i.text,i.tokens)),i}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var i={type:"table",header:O(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=t[0];var n,o,s,r,a=i.align.length;for(n=0;n/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):P(t[0]):t[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var i=t[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;var n=R(i.slice(0,-1),"\\");if((i.length-n.length)%2==0)return}else{var o=F(t[2],"()");if(o>-1){var s=(0===t[0].indexOf("!")?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,s).trim(),t[3]=""}}var r=t[2],a="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);l&&(r=l[1],a=l[3])}else a=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^$/.test(i)?r.slice(1):r.slice(1,-1)),B(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0],this.lexer)}},t.reflink=function(e,t){var i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){var n=(i[2]||i[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return B(i,n,i[0],this.lexer)}},t.emStrong=function(e,t,i){void 0===i&&(i="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!i.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var o=n[1]||n[2]||"";if(!o||o&&(""===i||this.rules.inline.punctuation.exec(i))){var s,r,a=n[0].length-1,l=a,h=0,d="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+a);null!=(n=d.exec(t));)if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(r=s.length,n[3]||n[4])l+=r;else if(!((n[5]||n[6])&&a%3)||(a+r)%3){if(!((l-=r)>0)){if(r=Math.min(r,r+l+h),Math.min(a,r)%2){var c=e.slice(1,a+n.index+r);return{type:"em",raw:e.slice(0,a+n.index+r+1),text:c,tokens:this.lexer.inlineTokens(c,[])}}var u=e.slice(2,a+n.index+r-1);return{type:"strong",raw:e.slice(0,a+n.index+r+1),text:u,tokens:this.lexer.inlineTokens(u,[])}}}else h+=r}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var i=t[2].replace(/\n/g," "),n=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return n&&o&&(i=i.substring(1,i.length-1)),i=P(i,!0),{type:"codespan",raw:t[0],text:i}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}},t.autolink=function(e,t){var i,n,o=this.rules.inline.autolink.exec(e);if(o)return n="@"===o[2]?"mailto:"+(i=P(this.options.mangle?t(o[1]):o[1])):i=P(o[1]),{type:"link",raw:o[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}},t.url=function(e,t){var i;if(i=this.rules.inline.url.exec(e)){var n,o;if("@"===i[2])o="mailto:"+(n=P(this.options.mangle?t(i[0]):i[0]));else{var s;do{s=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(s!==i[0]);n=P(i[0]),o="www."===i[1]?"http://"+n:n}return{type:"link",raw:i[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}},t.inlineText=function(e,t){var i,n=this.rules.inline.text.exec(e);if(n)return i=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):P(n[0]):n[0]:P(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:i}},e}(),W=x,H=L,z=k,K={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:W,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};K.def=H(K.def).replace("label",K._label).replace("title",K._title).getRegex(),K.bullet=/(?:[*+-]|\d{1,9}[.)])/,K.listItemStart=H(/^( *)(bull) */).replace("bull",K.bullet).getRegex(),K.list=H(K.list).replace(/bull/g,K.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+K.def.source+")").getRegex(),K._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",K._comment=/|$)/,K.html=H(K.html,"i").replace("comment",K._comment).replace("tag",K._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),K.paragraph=H(K._paragraph).replace("hr",K.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",K._tag).getRegex(),K.blockquote=H(K.blockquote).replace("paragraph",K.paragraph).getRegex(),K.normal=z({},K),K.gfm=z({},K.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)\\|?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),K.gfm.table=H(K.gfm.table).replace("hr",K.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",K._tag).getRegex(),K.pedantic=z({},K.normal,{html:H("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",K._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:W,paragraph:H(K.normal._paragraph).replace("hr",K.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",K.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var U={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:W,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:W,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};U.punctuation=H(U.punctuation).replace(/punctuation/g,U._punctuation).getRegex(),U.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,U.escapedEmSt=/\\\*|\\_/g,U._comment=H(K._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),U.emStrong.lDelim=H(U.emStrong.lDelim).replace(/punct/g,U._punctuation).getRegex(),U.emStrong.rDelimAst=H(U.emStrong.rDelimAst,"g").replace(/punct/g,U._punctuation).getRegex(),U.emStrong.rDelimUnd=H(U.emStrong.rDelimUnd,"g").replace(/punct/g,U._punctuation).getRegex(),U._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,U._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,U._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,U.autolink=H(U.autolink).replace("scheme",U._scheme).replace("email",U._email).getRegex(),U._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,U.tag=H(U.tag).replace("comment",U._comment).replace("attribute",U._attribute).getRegex(),U._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,U._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,U._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,U.link=H(U.link).replace("label",U._label).replace("href",U._href).replace("title",U._title).getRegex(),U.reflink=H(U.reflink).replace("label",U._label).getRegex(),U.reflinkSearch=H(U.reflinkSearch,"g").replace("reflink",U.reflink).replace("nolink",U.nolink).getRegex(),U.normal=z({},U),U.pedantic=z({},U.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:H(/^!?\[(label)\]\((.*?)\)/).replace("label",U._label).getRegex(),reflink:H(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",U._label).getRegex()}),U.gfm=z({},U.normal,{escape:H(U.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}var J=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||q,this.options.tokenizer=this.options.tokenizer||new j,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var t={block:G.normal,inline:Z.normal};this.options.pedantic?(t.block=G.pedantic,t.inline=Z.pedantic):this.options.gfm&&(t.block=G.gfm,this.options.breaks?t.inline=Z.breaks:t.inline=Z.gfm),this.tokenizer.rules=t}t.lex=function(e,i){return new t(i).lex(e)},t.lexInline=function(e,i){return new t(i).inlineTokens(e)};var i,n,o,s=t.prototype;return s.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},s.blockTokens=function(e,t){var i,n,o,s,r=this;for(void 0===t&&(t=[]),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(i=n.call({lexer:r},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(i):(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.list(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.def(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(n.raw+="\n"+i.raw,n.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(o=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,i=e.slice(1),n=void 0;r.options.extensions.startBlock.forEach((function(e){"number"==typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),this.state.top&&(i=this.tokenizer.paragraph(o)))n=t[t.length-1],s&&"paragraph"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i),s=o.length!==e.length,e=e.substring(i.raw.length);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return this.state.top=!0,t},s.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},s.inlineTokens=function(e,t){var i,n,o,s=this;void 0===t&&(t=[]);var r,a,l,h=e;if(this.tokens.links){var d=Object.keys(this.tokens.links);if(d.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(h));)d.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(h=h.slice(0,r.index)+"["+Q("a",r[0].length-2)+"]"+h.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(h));)h=h.slice(0,r.index)+"["+Q("a",r[0].length-2)+"]"+h.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.escapedEmSt.exec(h));)h=h.slice(0,r.index)+"++"+h.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(l=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(i=n.call({lexer:s},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,h,l))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e,X))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e,X))){if(o=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,i=e.slice(1),n=void 0;s.options.extensions.startInline.forEach((function(e){"number"==typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),i=this.tokenizer.inlineText(o,Y))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(l=i.raw.slice(-1)),a=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}else e=e.substring(i.raw.length),t.push(i);return t},i=t,o=[{key:"rules",get:function(){return{block:G,inline:Z}}}],(n=null)&&e(i.prototype,n),o&&e(i,o),t}(),ee=n.exports.defaults,te=N,ie=S,ne=function(){function e(e){this.options=e||ee}var t=e.prototype;return t.code=function(e,t,i){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,n);null!=o&&o!==e&&(i=!0,e=o)}return e=e.replace(/\n$/,"")+"\n",n?'
    '+(i?e:ie(e,!0))+"
    \n":"
    "+(i?e:ie(e,!0))+"
    \n"},t.blockquote=function(e){return"
    \n"+e+"
    \n"},t.html=function(e){return e},t.heading=function(e,t,i,n){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},t.list=function(e,t,i){var n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+"\n"},t.listitem=function(e){return"
  • "+e+"
  • \n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return"

    "+e+"

    \n"},t.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},t.tablerow=function(e){return"\n"+e+"\n"},t.tablecell=function(e,t){var i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+"\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
    ":"
    "},t.del=function(e){return""+e+""},t.link=function(e,t,i){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return i;var n='
    "},t.image=function(e,t,i){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return i;var n=''+i+'":">"},t.text=function(e){return e},e}(),oe=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,i){return""+i},t.image=function(e,t,i){return""+i},t.br=function(){return""},e}(),se=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var i=e,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[e];do{i=e+"-"+ ++n}while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=n,this.seen[i]=0),i},t.slug=function(e,t){void 0===t&&(t={});var i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)},e}(),re=ne,ae=oe,le=se,he=n.exports.defaults,de=y,ce=function(){function e(e){this.options=e||he,this.options.renderer=this.options.renderer||new re,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ae,this.slugger=new le}e.parse=function(t,i){return new e(i).parse(t)},e.parseInline=function(t,i){return new e(i).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var i,n,o,s,r,a,l,h,d,c,u,g,p,m,f,_,v,b,C,w="",S=e.length;for(i=0;i0&&"paragraph"===f.tokens[0].type?(f.tokens[0].text=b+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&"text"===f.tokens[0].tokens[0].type&&(f.tokens[0].tokens[0].text=b+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:b}):m+=b),m+=this.parse(f.tokens,p),d+=this.renderer.listitem(m,v,_);w+=this.renderer.list(d,u,g);continue;case"html":w+=this.renderer.html(c.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(d=c.tokens?this.parseInline(c.tokens):c.text;i+1An error occurred:

    "+Ce(e.message+"",!0)+"
    ";throw e}}return Le.options=Le.setOptions=function(e){return ve(Le.defaults,e),Se(Le.defaults),Le},Le.getDefaults=we,Le.defaults=ye,Le.use=function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;nAn error occurred:

    "+Ce(e.message+"",!0)+"
    ";throw e}},Le.Parser=ge,Le.parser=ge.parse,Le.Renderer=me,Le.TextRenderer=fe,Le.Lexer=ue,Le.lexer=ue.lex,Le.Tokenizer=pe,Le.Slugger=_e,Le.parse=Le,Le},"object"==typeof exports?e.exports=o():t.amd?t(o):(i="undefined"!=typeof globalThis?globalThis:i||self).marked=o()}();n.Parser,n.parser;var o=n.Renderer,s=(n.TextRenderer,n.Lexer,n.lexer,n.Tokenizer,n.Slugger,n.parse)},96211:function(e,t,i){"use strict";i.d(t,{Q:function(){return s}});var n=i(90794),o=i(5472);function s(e){let t=JSON.parse(e);return t=r(t),t}function r(e,t=0){if(!e||t>200)return e;if("object"==typeof e){switch(e.$mid){case 1:return o.o.revive(e);case 2:return new RegExp(e.source,e.flags)}if(e instanceof n.KN||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i=0}}(e);h.push(i),i.userConfigured?c.push(i):d.push(i),t&&!i.userConfigured&&h.forEach((e=>{e.mime===i.mime||e.userConfigured||(i.extension&&e.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&e.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&e.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&e.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))}))}function g(e){e?(h=h.filter((e=>!e.userConfigured)),c=[]):(h=[],d=[],c=[])}function p(e,t){let i;if(e)switch(e.scheme){case s.lg.file:i=e.fsPath;break;case s.lg.data:i=a.Vb.parseMetaData(e).get(a.Vb.META_DATA_LABEL);break;default:i=e.path}if(!i)return[n.unknown];i=i.toLowerCase();const o=(0,r.EZ)(i),u=m(i,o,c);if(u)return[u,n.text];const g=m(i,o,d);if(g)return[g,n.text];if(t){const e=function(e){(0,l.uS)(e)&&(e=e.substr(1));if(e.length>0)for(let t=h.length-1;t>=0;t--){const i=h[t];if(!i.firstline)continue;const n=e.match(i.firstline);if(n&&n.length>0)return i.mime}return null}(t);if(e)return[e,n.text]}return[n.unknown]}function m(e,t,i){var n;let o=null,s=null,r=null;for(let a=i.length-1;a>=0;a--){const l=i[a];if(t===l.filenameLowercase){o=l;break}if(l.filepattern&&(!s||l.filepattern.length>s.filepattern.length)){const i=l.filepatternOnPath?e:t;(null===(n=l.filepatternLowercase)||void 0===n?void 0:n.call(l,i))&&(s=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&t.endsWith(l.extensionLowercase)&&(r=l)}return o?o.mime:s?s.mime:r?r.mime:null}},66657:function(e,t,i){"use strict";i.d(t,{Gi:function(){return l},WX:function(){return r},lg:function(){return n}});var n,o=i(23345),s=i(5472);!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.userData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebook="vscode-notebook",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeInteractive="vscode-interactive",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp"}(n||(n={}));const r=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(e){this._preferredWebSchema=e}rewrite(e){if(this._delegate)return this._delegate(e);const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&(i=`[${i}]`);const r=this._ports[t],a=this._connectionTokens[t];let l=`path=${encodeURIComponent(e.path)}`;return"string"==typeof a&&(l+=`&tkn=${encodeURIComponent(a)}`),s.o.from({scheme:o.$L?this._preferredWebSchema:n.vscodeRemoteResource,authority:`${i}:${r}`,path:"/vscode-remote-resource",query:l})}};class a{asBrowserUri(e,t){const i=this.toUri(e,t);return i.scheme===n.vscodeRemote?r.rewrite(i):i.scheme===n.file&&(o.tY||"function"==typeof o.li.importScripts&&o.li.origin===`${n.vscodeFileResource}://${a.FALLBACK_AUTHORITY}`)?i.with({scheme:n.vscodeFileResource,authority:i.authority||a.FALLBACK_AUTHORITY,query:null,fragment:null}):i}toUri(e,t){return s.o.isUri(e)?e:s.o.parse(t.toUrl(e))}}a.FALLBACK_AUTHORITY="vscode-app";const l=new a},56722:function(e,t,i){"use strict";function n(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,{n:function(){return o},u:function(){return n}});class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this}get value(){return this._val}}},80470:function(e,t,i){"use strict";i.d(t,{CJ:function(){return c},I8:function(){return o},_A:function(){return s},fS:function(){return d},jB:function(){return h},rs:function(){return a}});var n=i(72999);function o(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((i=>{e[i]&&"object"==typeof e[i]?t[i]=o(e[i]):t[i]=e[i]})),t}function s(e){if(!e||"object"!=typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const i in e)if(r.call(e,i)){const n=e[i];"object"!=typeof n||Object.isFrozen(n)||t.push(n)}}return e}const r=Object.prototype.hasOwnProperty;function a(e,t){return l(e,t,new Set)}function l(e,t,i){if((0,n.Jp)(e))return e;const o=t(e);if(void 0!==o)return o;if((0,n.kJ)(e)){const n=[];for(const o of e)n.push(l(o,t,i));return n}if((0,n.Kn)(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const n={};for(let o in e)r.call(e,o)&&(n[o]=l(e[o],t,i));return i.delete(e),n}return e}function h(e,t,i=!0){return(0,n.Kn)(e)?((0,n.Kn)(t)&&Object.keys(t).forEach((o=>{o in e?i&&((0,n.Kn)(e[o])&&(0,n.Kn)(t[o])?h(e[o],t[o],i):e[o]=t[o]):e[o]=t[o]})),e):t}function d(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;i=65&&e<=90||e>=97&&e<=122}function _(e,t,i,n){let o="",s=0,r=-1,a=0,d=0;for(let c=0;c<=e.length;++c){if(c2){const e=o.lastIndexOf(i);-1===e?(o="",s=0):(o=o.slice(0,e),s=o.length-1-o.lastIndexOf(i)),r=c,a=0;continue}if(0!==o.length){o="",s=0,r=c,a=0;continue}}t&&(o+=o.length>0?`${i}..`:"..",s=2)}else o.length>0?o+=`${i}${e.slice(r+1,c)}`:o=e.slice(r+1,c),s=c-r-1;r=c,a=0}else d===l&&-1!==a?++a:a=-1}return o}function v(e,t){if(null===t||"object"!=typeof t)throw new u("pathObject","Object",t);const i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}const b={resolve(...e){let t="",i="",n=!1;for(let o=e.length-1;o>=-1;o--){let s;if(o>=0){if(s=e[o],g(s,"path"),0===s.length)continue}else 0===t.length?s=r():(s={NODE_ENV:"production",PUBLIC_PATH:"https://www-cdn.educoder.net/"}[`=${t}`]||r(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===d)&&(s=`${t}\\`));const a=s.length;let l=0,h="",u=!1;const m=s.charCodeAt(0);if(1===a)p(m)&&(l=1,u=!0);else if(p(m))if(u=!0,p(s.charCodeAt(1))){let e=2,t=e;for(;e2&&p(s.charCodeAt(2))&&(u=!0,l=3));if(h.length>0)if(t.length>0){if(h.toLowerCase()!==t.toLowerCase())continue}else t=h;if(n){if(t.length>0)break}else if(i=`${s.slice(l)}\\${i}`,n=u,u&&t.length>0)break}return i=_(i,!n,"\\",p),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){g(e,"path");const t=e.length;if(0===t)return".";let i,n=0,o=!1;const s=e.charCodeAt(0);if(1===t)return m(s)?"\\":e;if(p(s))if(o=!0,p(e.charCodeAt(1))){let o=2,s=o;for(;o2&&p(e.charCodeAt(2))&&(o=!0,n=3));let r=n0&&p(e.charCodeAt(t-1))&&(r+="\\"),void 0===i?o?`\\${r}`:r:o?`${i}\\${r}`:`${i}${r}`},isAbsolute(e){g(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return p(i)||t>2&&f(i)&&e.charCodeAt(1)===c&&p(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,i;for(let n=0;n0&&(void 0===t?t=i=o:t+=`\\${o}`)}if(void 0===t)return".";let n=!0,o=0;if("string"==typeof i&&p(i.charCodeAt(0))){++o;const e=i.length;e>1&&p(i.charCodeAt(1))&&(++o,e>2&&(p(i.charCodeAt(2))?++o:n=!1))}if(n){for(;o=2&&(t=`\\${t.slice(o)}`)}return b.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";const i=b.resolve(e),n=b.resolve(t);if(i===n)return"";if((e=i.toLowerCase())===(t=n.toLowerCase()))return"";let o=0;for(;oo&&e.charCodeAt(s-1)===d;)s--;const r=s-o;let a=0;for(;aa&&t.charCodeAt(l-1)===d;)l--;const h=l-a,c=rc){if(t.charCodeAt(a+p)===d)return n.slice(a+p+1);if(2===p)return n.slice(a+p)}r>c&&(e.charCodeAt(o+p)===d?u=p:2===p&&(u=3)),-1===u&&(u=0)}let m="";for(p=o+u+1;p<=s;++p)p!==s&&e.charCodeAt(p)!==d||(m+=0===m.length?"..":"\\..");return a+=u,m.length>0?`${m}${n.slice(a,l)}`:(n.charCodeAt(a)===d&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=b.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===d){if(t.charCodeAt(1)===d){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(f(t.charCodeAt(0))&&t.charCodeAt(1)===c&&t.charCodeAt(2)===d)return`\\\\?\\${t}`;return e},dirname(e){g(e,"path");const t=e.length;if(0===t)return".";let i=-1,n=0;const o=e.charCodeAt(0);if(1===t)return p(o)?e:".";if(p(o)){if(i=n=1,p(e.charCodeAt(1))){let o=2,s=o;for(;o2&&p(e.charCodeAt(2))?3:2,n=i);let s=-1,r=!0;for(let i=t-1;i>=n;--i)if(p(e.charCodeAt(i))){if(!r){s=i;break}}else r=!1;if(-1===s){if(-1===i)return".";s=i}return e.slice(0,s)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let i,n=0,o=-1,s=!0;if(e.length>=2&&f(e.charCodeAt(0))&&e.charCodeAt(1)===c&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){const l=e.charCodeAt(i);if(p(l)){if(!s){n=i+1;break}}else-1===a&&(s=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(o=i):(r=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=n;--i)if(p(e.charCodeAt(i))){if(!s){n=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){g(e,"path");let t=0,i=-1,n=0,o=-1,s=!0,r=0;e.length>=2&&e.charCodeAt(1)===c&&f(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(p(t)){if(!s){n=a+1;break}}else-1===o&&(s=!1,o=a+1),t===l?-1===i?i=a:1!==r&&(r=1):-1!==i&&(r=-1)}return-1===i||-1===o||0===r||1===r&&i===o-1&&i===n+1?"":e.slice(i,o)},format:v.bind(null,"\\"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let n=0,o=e.charCodeAt(0);if(1===i)return p(o)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(p(o)){if(n=1,p(e.charCodeAt(1))){let t=2,o=t;for(;t0&&(t.root=e.slice(0,n));let s=-1,r=n,a=-1,h=!0,d=e.length-1,u=0;for(;d>=n;--d)if(o=e.charCodeAt(d),p(o)){if(!h){r=d+1;break}}else-1===a&&(h=!1,a=d+1),o===l?-1===s?s=d:1!==u&&(u=1):-1!==s&&(u=-1);return-1!==a&&(-1===s||0===u||1===u&&s===a-1&&s===r+1?t.base=t.name=e.slice(r,a):(t.name=e.slice(r,s),t.base=e.slice(r,a),t.ext=e.slice(s,a))),t.dir=r>0&&r!==n?e.slice(0,r-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},C={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){const o=n>=0?e[n]:r();g(o,"path"),0!==o.length&&(t=`${o}/${t}`,i=o.charCodeAt(0)===h)}return t=_(t,!i,"/",m),i?`/${t}`:t.length>0?t:"."},normalize(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h,i=e.charCodeAt(e.length-1)===h;return 0===(e=_(e,!t,"/",m)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return g(e,"path"),e.length>0&&e.charCodeAt(0)===h},join(...e){if(0===e.length)return".";let t;for(let i=0;i0&&(void 0===t?t=n:t+=`/${n}`)}return void 0===t?".":C.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if((e=C.resolve(e))===(t=C.resolve(t)))return"";const i=e.length,n=i-1,o=t.length-1,s=ns){if(t.charCodeAt(1+a)===h)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else n>s&&(e.charCodeAt(1+a)===h?r=a:0===a&&(r=0));let l="";for(a=1+r+1;a<=i;++a)a!==i&&e.charCodeAt(a)!==h||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+r)}`},toNamespacedPath(e){return e},dirname(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h;let i=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===h){if(!n){i=t;break}}else n=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let i,n=0,o=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===h){if(!s){n=i+1;break}}else-1===a&&(s=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(o=i):(r=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===h){if(!s){n=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){g(e,"path");let t=-1,i=0,n=-1,o=!0,s=0;for(let r=e.length-1;r>=0;--r){const a=e.charCodeAt(r);if(a!==h)-1===n&&(o=!1,n=r+1),a===l?-1===t?t=r:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){i=r+1;break}}return-1===t||-1===n||0===s||1===s&&t===n-1&&t===i+1?"":e.slice(t,n)},format:v.bind(null,"/"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===h;let n;i?(t.root="/",n=1):n=0;let o=-1,s=0,r=-1,a=!0,d=e.length-1,c=0;for(;d>=n;--d){const t=e.charCodeAt(d);if(t!==h)-1===r&&(a=!1,r=d+1),t===l?-1===o?o=d:1!==c&&(c=1):-1!==o&&(c=-1);else if(!a){s=d+1;break}}if(-1!==r){const n=0===s&&i?1:s;-1===o||0===c||1===c&&o===r-1&&o===s+1?t.base=t.name=e.slice(n,r):(t.name=e.slice(n,o),t.base=e.slice(n,r),t.ext=e.slice(o,r))}return s>0?t.dir=e.slice(0,s-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};C.win32=b.win32=b,C.posix=b.posix=C;const w="win32"===a?b.normalize:C.normalize,S="win32"===a?b.resolve:C.resolve,y="win32"===a?b.relative:C.relative,L="win32"===a?b.dirname:C.dirname,N="win32"===a?b.basename:C.basename,x="win32"===a?b.extname:C.extname,k="win32"===a?b.sep:C.sep},17981:function(e,t,i){"use strict";var n;i.d(t,{e:function(){return n}}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const i=Math.max(e.start,t.start),n=Math.min(e.end,t.end);return n-i<=0?{start:0,end:0}:{start:i,end:n}}function i(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=i,e.intersects=function(e,n){return!i(t(e,n))},e.relativeComplement=function(e,t){const n=[],o={start:e.start,end:Math.min(t.start,e.end)},s={start:Math.max(t.end,e.start),end:e.end};return i(o)||n.push(o),i(s)||n.push(s),n}}(n||(n={}))},9365:function(e,t,i){"use strict";i.d(t,{AH:function(){return m},EZ:function(){return u},Hx:function(){return c},SF:function(){return h},Vb:function(){return _},Vo:function(){return p},XX:function(){return g},Xy:function(){return d},i3:function(){return f},z_:function(){return l}});var n=i(57637),o=i(66657),s=i(26227),r=i(82983),a=i(5472);function l(e){return(0,a.q)(e,!0)}const h=new class{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:(0,r.qu)(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}joinPath(e,...t){return a.o.joinPath(e,...t)}basenameOrAuthority(e){return u(e)||e.authority}basename(e){return s.KR.basename(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===o.lg.file?t=a.o.file(s.XX(l(e))).path:(t=s.KR.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===o.lg.file?a.o.file(s.Fv(l(e))).path:s.KR.normalize(e.path),e.with({path:t})}resolvePath(e,t){if(e.scheme===o.lg.file){const i=a.o.file(s.DB(l(e),t));return e.with({authority:i.authority,path:i.path})}return t=n.fn(t),e.with({path:s.KR.resolve(e.path,t)})}}((()=>!1)),d=h.isEqual.bind(h),c=h.basenameOrAuthority.bind(h),u=h.basename.bind(h),g=h.dirname.bind(h),p=h.joinPath.bind(h),m=h.normalizePath.bind(h),f=h.resolvePath.bind(h);var _;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,n]=e.split(":");t&&n&&i.set(t,n)}));const n=t.path.substring(0,t.path.indexOf(";"));return n&&i.set(e.META_DATA_MIME,n),i}}(_||(_={}))},28962:function(e,t,i){"use strict";i.d(t,{Rm:function(){return r}});var n=i(4348),o=i(69323);class s{constructor(e,t,i,n,o,s){this._scrollStateBrand=void 0,e|=0,t|=0,i|=0,n|=0,o|=0,s|=0,this.rawScrollLeft=i,this.rawScrollTop=s,e<0&&(e=0),i+e>t&&(i=t-e),i<0&&(i=0),n<0&&(n=0),s+n>o&&(s=o-n),s<0&&(s=0),this.width=e,this.scrollWidth=t,this.scrollLeft=i,this.height=n,this.scrollHeight=o,this.scrollTop=s}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new s(void 0!==e.width?e.width:this.width,void 0!==e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,void 0!==e.height?e.height:this.height,void 0!==e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new s(this.width,this.scrollWidth,void 0!==e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,void 0!==e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,o=this.scrollLeft!==e.scrollLeft,s=this.height!==e.height,r=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:o,heightChanged:s,scrollHeightChanged:r,scrollTopChanged:a}}}class r extends o.JT{constructor(e,t){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new n.Q5),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e,this._scheduleAtNextAnimationFrame=t,this._state=new s(0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){const i=this._state.withScrollDimensions(e,t);this._setState(i,Boolean(this._smoothScrolling)),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;n=t?new h(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=h.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))):void 0}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class a{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function l(e,t){const i=t-e;return function(t){return e+i*(1-function(e){return Math.pow(e,3)}(1-t))}}class h{constructor(e,t,i,n){this.from=e,this.to=t,this.duration=n,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){if(Math.abs(e-t)>2.5*i){let r,a;return e255?255:0|e}function o(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,{A:function(){return o},K:function(){return n}})},5472:function(e,t,i){"use strict";i.d(t,{o:function(){return u},q:function(){return v}});var n=i(26227),o=i(23345);const s=/^\w[\w\d+.-]*$/,r=/^\//,a=/^\/\//;function l(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const h="",d="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{constructor(e,t,i,n,o,s=!1){"object"==typeof e?(this.scheme=e.scheme||h,this.authority=e.authority||h,this.path=e.path||h,this.query=e.query||h,this.fragment=e.fragment||h):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||h,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==d&&(t=d+t):t=d}return t}(this.scheme,i||h),this.query=n||h,this.fragment=o||h,l(this,s))}static isUri(e){return e instanceof u||!!e&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}get fsPath(){return v(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:o,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=h),void 0===i?i=this.authority:null===i&&(i=h),void 0===n?n=this.path:null===n&&(n=h),void 0===o?o=this.query:null===o&&(o=h),void 0===s?s=this.fragment:null===s&&(s=h),t===this.scheme&&i===this.authority&&n===this.path&&o===this.query&&s===this.fragment?this:new p(t,i,n,o,s)}static parse(e,t=!1){const i=c.exec(e);return i?new p(i[2]||h,S(i[4]||h),S(i[5]||h),S(i[7]||h),S(i[9]||h),t):new p(h,h,h,h,h)}static file(e){let t=h;if(o.ED&&(e=e.replace(/\\/g,d)),e[0]===d&&e[1]===d){const i=e.indexOf(d,2);-1===i?(t=e.substring(2),e=d):(t=e.substring(2,i),e=e.substring(i)||d)}return new p("file",t,e,h,h)}static from(e){const t=new p(e.scheme,e.authority,e.path,e.query,e.fragment);return l(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return i=o.ED&&"file"===e.scheme?u.file(n.Ku.join(v(e,!0),...t)).path:n.KR.join(e.path,...t),e.with({path:i})}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{const t=new p(e);return t._formatted=e.external,t._fsPath=e._sep===g?e.fsPath:null,t}}return e}}const g=o.ED?1:void 0;class p extends u{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=v(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=g),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const m={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function f(e,t){let i,n=-1;for(let o=0;o=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s)-1!==n&&(i+=encodeURIComponent(e.substring(n,o)),n=-1),void 0!==i&&(i+=e.charAt(o));else{void 0===i&&(i=e.substr(0,o));const t=m[s];void 0!==t?(-1!==n&&(i+=encodeURIComponent(e.substring(n,o)),n=-1),i+=t):-1===n&&(n=o)}}return-1!==n&&(i+=encodeURIComponent(e.substring(n))),void 0!==i?i:e}function _(e){let t;for(let i=0;i1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,o.ED&&(i=i.replace(/\//g,"\\")),i}function b(e,t){const i=t?_:f;let n="",{scheme:o,authority:s,path:r,query:a,fragment:l}=e;if(o&&(n+=o,n+=":"),(s||"file"===o)&&(n+=d,n+=d),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.indexOf(":"),-1===e?n+=i(t,!1):(n+=i(t.substr(0,e),!1),n+=":",n+=i(t.substr(e+1),!1)),n+="@"}s=s.toLowerCase(),e=s.indexOf(":"),-1===e?n+=i(s,!1):(n+=i(s.substr(0,e),!1),n+=s.substr(e))}if(r){if(r.length>=3&&47===r.charCodeAt(0)&&58===r.charCodeAt(2)){const e=r.charCodeAt(1);e>=65&&e<=90&&(r=`/${String.fromCharCode(e+32)}:${r.substr(3)}`)}else if(r.length>=2&&58===r.charCodeAt(1)){const e=r.charCodeAt(0);e>=65&&e<=90&&(r=`${String.fromCharCode(e+32)}:${r.substr(2)}`)}n+=i(r,!0)}return a&&(n+="?",n+=i(a,!1)),l&&(n+="#",n+=t?l:f(l,!1)),n}function C(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+C(e.substr(3)):e}}const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function S(e){return e.match(w)?e.replace(w,(e=>C(e))):e}},29711:function(e,t,i){"use strict";i.d(t,{Jq:function(){return o},X5:function(){return n},jG:function(){return s}});const n={ctrlCmd:!1,alt:!1};var o,s;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(o||(o={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(s||(s={}))},98909:function(e,t,i){"use strict";i.d(t,{H:function(){return a}});var n=i(5359),o={},s={},r=function(){function e(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((function(e,i){t._lazyLoadPromiseResolve=e,t._lazyLoadPromiseReject=i}))}return e.getOrCreate=function(t){return s[t]||(s[t]=new e(t)),s[t]},e.prototype.whenLoaded=function(){return this._lazyLoadPromise},e.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,o[this._languageId].loader().then((function(t){return e._lazyLoadPromiseResolve(t)}),(function(t){return e._lazyLoadPromiseReject(t)}))),this._lazyLoadPromise},e}();function a(e){var t=e.id;o[t]=e,n.Mj.register(e);var i=r.getOrCreate(t);n.Mj.setMonarchTokensProvider(t,i.whenLoaded().then((function(e){return e.language}))),n.Mj.onLanguage(t,(function(){i.load().then((function(e){n.Mj.setLanguageConfiguration(t,e.conf)}))}))}},92973:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return i.e(5434).then(i.bind(i,5434))}})},72773:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return i.e(92594).then(i.bind(i,92594))}})},30219:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return i.e(87964).then(i.bind(i,87964))}})},10755:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return i.e(29895).then(i.bind(i,29895))}})},74121:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return i.e(72969).then(i.bind(i,72969))}})},77973:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return i.e(9928).then(i.bind(i,9928))}})},27246:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return i.e(91274).then(i.bind(i,91274))}})},82961:function(e,t,i){"use strict";i.r(t);var n=i(98909);(0,n.H)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return i.e(49260).then(i.bind(i,49260))}}),(0,n.H)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return i.e(49260).then(i.bind(i,49260))}})},19959:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return i.e(77084).then(i.bind(i,77084))}})},23347:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return i.e(47686).then(i.bind(i,47686))}})},17323:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return i.e(28920).then(i.bind(i,28920))}})},90130:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return i.e(67156).then(i.bind(i,67156))}})},5359:function(e,t,i){"use strict";i.d(t,{Mj:function(){return n.languages}});var n=i(2550)},72185:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return i.e(35354).then(i.bind(i,35354))}})},40882:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return i.e(85764).then(i.bind(i,85764))}})},14349:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return i.e(33805).then(i.bind(i,33805))}})},10715:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:function(){return i.e(70671).then(i.bind(i,70671))}})},88756:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return i.e(29559).then(i.bind(i,29559))}})},30141:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return i.e(53550).then(i.bind(i,53550))}})},44115:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return i.e(34850).then(i.bind(i,34850))}})},65588:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return i.e(39950).then(i.bind(i,39950))}})},83135:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return i.e(29968).then(i.bind(i,29968))}})},91067:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return i.e(58271).then(i.bind(i,58271))}})},63886:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return i.e(4685).then(i.bind(i,4685))}})},44865:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return i.e(31154).then(i.bind(i,31154))}})},41495:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return i.e(63198).then(i.bind(i,63198))}})},12076:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return i.e(57365).then(i.bind(i,57365))}})},38516:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return i.e(48776).then(i.bind(i,48776))}})},18504:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return i.e(24797).then(i.bind(i,24797))}})},28593:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return i.e(89554).then(i.bind(i,89554))}})},43069:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return i.e(2837).then(i.bind(i,2837))}})},50185:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return i.e(78737).then(i.bind(i,78737))}})},11745:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return i.e(28089).then(i.bind(i,28089))}})},96025:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return i.e(24628).then(i.bind(i,24628))}})},85713:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return i.e(65876).then(i.bind(i,65876))}})},98836:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return i.e(86045).then(i.bind(i,86045))}})},18625:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return i.e(72011).then(i.bind(i,72011))}})},25167:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return i.e(90316).then(i.bind(i,90316))}})},5512:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return i.e(2249).then(i.bind(i,2249))}})},59066:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:function(){return i.e(68842).then(i.bind(i,68842))}})},73363:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return i.e(18898).then(i.bind(i,18898))}})},5769:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return i.e(18350).then(i.bind(i,18350))}})},95630:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return i.e(34790).then(i.bind(i,34790))}})},12189:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return i.e(53697).then(i.bind(i,53697))}})},78605:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:function(){return i.e(28561).then(i.bind(i,28561))}})},17728:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return i.e(26126).then(i.bind(i,26126))}})},94503:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return i.e(51144).then(i.bind(i,51144))}})},35550:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:function(){return i.e(53777).then(i.bind(i,53777))}})},66857:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return i.e(44354).then(i.bind(i,44354))}})},38341:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return i.e(35060).then(i.bind(i,35060))}})},61010:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return i.e(97591).then(i.bind(i,97591))}})},1099:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return i.e(44360).then(i.bind(i,44360))}})},49478:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return i.e(3885).then(i.bind(i,3885))}})},32985:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return i.e(10354).then(i.bind(i,10354))}})},72088:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return i.e(6378).then(i.bind(i,6378))}})},69746:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return i.e(35416).then(i.bind(i,35416))}})},94912:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return i.e(99104).then(i.bind(i,99104))}})},60032:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return i.e(92538).then(i.bind(i,92538))}})},24571:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return i.e(75321).then(i.bind(i,75321))}})},77777:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return i.e(28161).then(i.bind(i,28161))}})},39393:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\this._values[e]))}}function p(){m.INSTANCE.clearCache()}class m extends s.JT{constructor(){super(),this._onDidChange=this._register(new o.Q5),this.onDidChange=this._onDidChange.event,this._cache=new g,this._evictUntrustedReadingsTimeout=-1}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearCache(){this._cache=new g,this._onDidChange.fire()}_writeToCache(e,t){this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=setTimeout((()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()}),5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let t=!1;for(const i of e)i.isTrusted||(t=!0,this._cache.remove(i));t&&this._onDidChange.fire()}readConfiguration(e){if(!this._cache.has(e)){let t=m._actualReadConfiguration(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new u.pR({zoomLevel:n.px(),pixelRatio:n.mX(),fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}static createRequest(e,t,i,n){const o=new l(e,t);return i.push(o),n&&n.push(o),o}static _actualReadConfiguration(e){const t=[],i=[],o=this.createRequest("n",0,t,i),s=this.createRequest("m",0,t,null),r=this.createRequest(" ",0,t,i),l=this.createRequest("0",0,t,i),d=this.createRequest("1",0,t,i),c=this.createRequest("2",0,t,i),g=this.createRequest("3",0,t,i),p=this.createRequest("4",0,t,i),m=this.createRequest("5",0,t,i),f=this.createRequest("6",0,t,i),_=this.createRequest("7",0,t,i),v=this.createRequest("8",0,t,i),b=this.createRequest("9",0,t,i),C=this.createRequest("→",0,t,i),w=this.createRequest("→",0,t,null),S=this.createRequest("·",0,t,i),y=this.createRequest(String.fromCharCode(11825),0,t,null),L="|/-_ilm%";for(let e=0,n=L.length;e.001){x=!1;break}}let D=!0;x&&w.width!==k&&(D=!1),w.width>C.width&&(D=!1);const E=n.WP()>2e3;return new u.pR({zoomLevel:n.px(),pixelRatio:n.mX(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:x,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:s.width,canUseHalfwidthRightwardsArrow:D,spaceWidth:r.width,middotWidth:S.width,wsmiddotWidth:y.width,maxDigitWidth:N},E)}}m.INSTANCE=new m;class f extends c.fv{constructor(e,t,i=null,o){super(e,t),this.accessibilityService=o,this._elementSizeObserver=this._register(new d.I(i,t.dimension,(()=>this._recomputeOptions()))),this._register(m.INSTANCE.onDidChange((()=>this._recomputeOptions()))),this._validatedOptions.get(10)&&this._elementSizeObserver.startObserving(),this._register(n.fX((e=>this._recomputeOptions()))),this._register(this.accessibilityService.onDidChangeScreenReaderOptimized((()=>this._recomputeOptions()))),this._recomputeOptions()}static applyFontInfoSlow(e,t){e.style.fontFamily=t.getMassagedFontFamily(n.G6?a.hL.fontFamily:null),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"}static applyFontInfo(e,t){e.setFontFamily(t.getMassagedFontFamily(n.G6?a.hL.fontFamily:null)),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)}observeReferenceElement(e){this._elementSizeObserver.observe(e)}updatePixelRatio(){this._recomputeOptions()}static _getExtraEditorClassName(){let e="";return n.G6||n.MG||(e+="no-user-select "),n.G6&&(e+="no-minimap-shadow "),r.dz&&(e+="mac "),e}_getEnvConfiguration(){return{extraEditorClassName:f._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:n.Pf||n.vU,pixelRatio:n.mX(),zoomLevel:n.px(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}}readConfiguration(e){return m.INSTANCE.readConfiguration(e)}}},34002:function(e,t,i){"use strict";i.d(t,{I:function(){return o}});var n=i(69323);class o extends n.JT{constructor(e,t,i){super(),this.referenceDomElement=e,this.changeCallback=i,this.width=-1,this.height=-1,this.resizeObserver=null,this.measureReferenceDomElementToken=-1,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this.width}getHeight(){return this.height}startObserving(){"undefined"!=typeof ResizeObserver?!this.resizeObserver&&this.referenceDomElement&&(this.resizeObserver=new ResizeObserver((e=>{e&&e[0]&&e[0].contentRect?this.observe({width:e[0].contentRect.width,height:e[0].contentRect.height}):this.observe()})),this.resizeObserver.observe(this.referenceDomElement)):-1===this.measureReferenceDomElementToken&&(this.measureReferenceDomElementToken=setInterval((()=>this.observe()),100))}stopObserving(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),-1!==this.measureReferenceDomElementToken&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,n=0;t?(i=t.width,n=t.height):this.referenceDomElement&&(i=this.referenceDomElement.clientWidth,n=this.referenceDomElement.clientHeight),i=Math.max(5,i),n=Math.max(5,n),this.width===i&&this.height===n||(this.width=i,this.height=n,e&&this.changeCallback())}}},46343:function(e,t,i){"use strict";i.r(t),i.d(t,{CoreEditingCommands:function(){return k},CoreEditorCommand:function(){return b},CoreNavigationCommands:function(){return S},EditorScroll_:function(){return C},RevealLine_:function(){return w}});var n=i(13268),o=i(87783),s=i(72999),r=i(54951),a=i(4514),l=i(70827),h=i(69025),d=i(72146),c=i(17373);class u{static columnSelect(e,t,i,n,o,s){let r=Math.abs(o-i)+1,a=i>o,l=n>s,u=ns)continue;if(_n)continue;if(f0&&n--,u.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,n)}static columnSelectRight(e,t,i){let n=0;const o=Math.min(i.fromViewLineNumber,i.toViewLineNumber),s=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let i=o;i<=s;i++){const o=t.getLineMaxColumn(i),s=h.io.visibleColumnFromColumn2(e,t,new d.L(i,o));n=Math.max(n,s)}let r=i.toViewVisualColumn;return r{const i=e.get(l.$).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&this._runEditorCommand(e,i,t)})),e.addImplementation(1e3,"generic-dom-input-textarea",((e,t)=>{const i=document.activeElement;return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(this.runDOMCommand(),!0)})),e.addImplementation(0,"generic-dom",((e,t)=>{const i=e.get(l.$).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))}))}_runEditorCommand(e,t,i){const n=this.runEditorCommand(e,t,i);return n||!0}}!function(e){class t extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.P.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),e.revealPrimaryCursor(t.source,!0)}}e.MoveTo=(0,a.fK)(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,a.fK)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class i extends b{runCoreEditorCommand(e,t){e.model.pushStackElement();const i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);e.setCursorStates(t.source,3,i.viewStates.map((e=>h.Vi.fromViewState(e)))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source)}}e.ColumnSelect=(0,a.fK)(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,n){const o=e.model.validatePosition(n.position),s=e.coordinatesConverter.validateViewPosition(new d.L(n.viewPosition.lineNumber,n.viewPosition.column),o);let r=n.doColumnSelect?i.fromViewLineNumber:s.lineNumber,a=n.doColumnSelect?i.fromViewVisualColumn:n.mouseColumn-1;return u.columnSelect(e.cursorConfig,e,r,a,s.lineNumber,n.mouseColumn-1)}}),e.CursorColumnSelectLeft=(0,a.fK)(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return u.columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=(0,a.fK)(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return u.columnSelectRight(e.cursorConfig,e,i)}});class s extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return u.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=(0,a.fK)(new s({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,a.fK)(new s({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:3595,linux:{primary:0}}}));class l extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return u.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=(0,a.fK)(new l({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,a.fK)(new l({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:3596,linux:{primary:0}}}));class g extends b{constructor(){super({id:"cursorMove",precondition:void 0,description:p.N.description})}runCoreEditorCommand(e,t){const i=p.N.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,g._move(e,e.getCursorStates(),i)),e.revealPrimaryCursor(t,!0)}static _move(e,t,i){const n=i.select,o=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return p.P.simpleMove(e,t,i.direction,n,o,i.unit);case 11:case 13:case 12:case 14:return p.P.viewportMove(e,t,i.direction,n,o);default:return null}}}e.CursorMoveImpl=g,e.CursorMove=(0,a.fK)(new g);class m extends b{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,p.P.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealPrimaryCursor(t.source,!0)}}e.CursorLeft=(0,a.fK)(new m({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,a.fK)(new m({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:1039}})),e.CursorRight=(0,a.fK)(new m({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,a.fK)(new m({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:1041}})),e.CursorUp=(0,a.fK)(new m({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,a.fK)(new m({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,a.fK)(new m({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,a.fK)(new m({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:1035}})),e.CursorDown=(0,a.fK)(new m({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,a.fK)(new m({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,a.fK)(new m({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,a.fK)(new m({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:1036}})),e.CreateCursor=(0,a.fK)(new class extends b{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){let i;i=t.wholeLine?p.P.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):p.P.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const n=e.getCursorStates();if(n.length>1){const o=i.modelState?i.modelState.position:null,s=i.viewState?i.viewState.position:null;for(let i=0,r=n.length;is&&(o=s);const r=new c.e(o,1,o,e.model.getLineMaxColumn(o));let a=0;if(i.at)switch(i.at){case w.RawAtArgument.Top:a=3;break;case w.RawAtArgument.Center:a=1;break;case w.RawAtArgument.Bottom:a=4}const l=e.coordinatesConverter.convertModelRangeToViewRange(r);e.revealRange(t.source,!1,l,a,0)}}),e.SelectAll=new class extends y{constructor(){super(a.Sq)}runDOMCommand(){o.vU&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditorCommand(n,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[p.P.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=(0,a.fK)(new class extends b{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[h.Vi.fromModelSelection(t.selection)])}})}(S||(S={}));const L=_.Ao.and(f.u.textInputFocus,f.u.columnSelection);function N(e,t){v.W.registerKeybindingRule({id:e,primary:t,when:L,weight:1})}function x(e){return e.register(),e}var k;N(S.CursorColumnSelectLeft.id,1039),N(S.CursorColumnSelectRight.id,1041),N(S.CursorColumnSelectUp.id,1040),N(S.CursorColumnSelectPageUp.id,1035),N(S.CursorColumnSelectDown.id,1042),N(S.CursorColumnSelectPageDown.id,1036),function(e){class t extends a._l{runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditingCommand(t,n,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=(0,a.fK)(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:f.u.writable,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.u.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection))))}}),e.Outdent=(0,a.fK)(new class extends t{constructor(){super({id:"outdent",precondition:f.u.writable,kbOpts:{weight:0,kbExpr:_.Ao.and(f.u.editorTextFocus,f.u.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.u.outdent(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.Tab=(0,a.fK)(new class extends t{constructor(){super({id:"tab",precondition:f.u.writable,kbOpts:{weight:0,kbExpr:_.Ao.and(f.u.editorTextFocus,f.u.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.u.tab(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.DeleteLeft=(0,a.fK)(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){const[n,o]=g.A.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)),t.getCursorAutoClosedCharacters());n&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(2)}}),e.DeleteRight=(0,a.fK)(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.u.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){const[n,o]=g.A.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)));n&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(3)}}),e.Undo=new class extends y{constructor(){super(a.n_)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(80))return t.getModel().undo()}},e.Redo=new class extends y{constructor(){super(a.kz)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(80))return t.getModel().redo()}}}(k||(k={}));class D extends a.mY{constructor(e,t,i){super({id:e,precondition:void 0,description:i}),this._handlerId=t}runCommand(e,t){const i=e.get(l.$).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function E(e,t){x(new D("default:"+e,e)),x(new D(e,e,t))}E("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),E("replacePreviousChar"),E("compositionType"),E("compositionStart"),E("compositionEnd"),E("paste"),E("cut")},79193:function(e,t,i){"use strict";i.d(t,{Fz:function(){return _},Nl:function(){return f},RA:function(){return m},pd:function(){return n}});var n,o=i(87783),s=i(69454),r=i(50431),a=i(4348),l=i(69323),h=i(8473),d=i(23345),c=i(82983),u=i(56842),g=i(72146),p=i(17551);!function(e){e.Tap="-monaco-textarea-synthetic-tap"}(n||(n={}));const m={forceCopyWithSyntaxHighlighting:!1};class f{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}f.INSTANCE=new f;class _ extends l.JT{constructor(e,t){super(),this.textArea=t,this._onFocus=this._register(new a.Q5),this.onFocus=this._onFocus.event,this._onBlur=this._register(new a.Q5),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new a.Q5),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new a.Q5),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new a.Q5),this.onCut=this._onCut.event,this._onPaste=this._register(new a.Q5),this.onPaste=this._onPaste.event,this._onType=this._register(new a.Q5),this.onType=this._onType.event,this._onCompositionStart=this._register(new a.Q5),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new a.Q5),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new a.Q5),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new a.Q5),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._host=e,this._textArea=this._register(new b(t)),this._asyncTriggerCut=this._register(new r.pY((()=>this._onCut.fire()),0)),this._asyncFocusGainWriteScreenReaderContent=this._register(new r.pY((()=>this.writeScreenReaderContent("asyncFocusGain")),0)),this._textAreaState=u.un.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._isDoingComposition=!1,this._nextCommand=0;let i=null;this._register(s.mu(t.domNode,"keydown",(e=>{(109===e.keyCode||this._isDoingComposition&&1===e.keyCode)&&e.stopPropagation(),e.equals(9)&&e.preventDefault(),i=e,this._onKeyDown.fire(e)}))),this._register(s.mu(t.domNode,"keyup",(e=>{this._onKeyUp.fire(e)}))),this._register(s.nm(t.domNode,"compositionstart",(e=>{if(u.al&&console.log("[compositionstart]",e),!this._isDoingComposition){if(this._isDoingComposition=!0,d.dz&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data){if(i&&i.equals(109)&&("ArrowRight"===i.code||"ArrowLeft"===i.code)||o.vU)return u.al&&console.log("[compositionstart] Handling long press case on macOS + arrow key or Firefox",e),this._textAreaState=new u.un(this._textAreaState.value,this._textAreaState.selectionStart-1,this._textAreaState.selectionEnd,this._textAreaState.selectionStartPosition?new g.L(this._textAreaState.selectionStartPosition.lineNumber,this._textAreaState.selectionStartPosition.column-1):null,this._textAreaState.selectionEndPosition),void this._onCompositionStart.fire({revealDeltaColumns:-1})}o.Dt?this._onCompositionStart.fire({revealDeltaColumns:-this._textAreaState.selectionStart}):(this._setAndWriteTextAreaState("compositionstart",u.un.EMPTY),this._onCompositionStart.fire({revealDeltaColumns:0}))}})));const l=e=>{const t=this._textAreaState,i=u.un.readFromTextArea(this._textArea);return[i,u.un.deduceInput(t,i,e)]},h=()=>{const e=this._textAreaState,t=u.un.readFromTextArea(this._textArea);return[t,u.un.deduceAndroidCompositionInput(e,t)]},p=e=>{const t=this._textAreaState,i=u.un.selectedText(e);return[i,{text:i.value,replacePrevCharCnt:t.selectionEnd-t.selectionStart,replaceNextCharCnt:0,positionDelta:0}]};this._register(s.nm(t.domNode,"compositionupdate",(e=>{if(u.al&&console.log("[compositionupdate]",e),o.Dt){const[t,i]=h();return this._textAreaState=t,this._onType.fire(i),void this._onCompositionUpdate.fire(e)}const[t,i]=p(e.data||"");this._textAreaState=t,this._onType.fire(i),this._onCompositionUpdate.fire(e)}))),this._register(s.nm(t.domNode,"compositionend",(e=>{if(u.al&&console.log("[compositionend]",e),!this._isDoingComposition)return;if(this._isDoingComposition=!1,o.Dt){const[e,t]=h();return this._textAreaState=e,this._onType.fire(t),void this._onCompositionEnd.fire()}const[t,i]=p(e.data||"");this._textAreaState=t,this._onType.fire(i),(o.i7||o.vU)&&(this._textAreaState=u.un.readFromTextArea(this._textArea)),this._onCompositionEnd.fire()}))),this._register(s.nm(t.domNode,"input",(()=>{if(this._textArea.setIgnoreSelectionChangeTime("received input event"),this._isDoingComposition)return;const[e,t]=l(d.dz);0===t.replacePrevCharCnt&&1===t.text.length&&c.ZG(t.text.charCodeAt(0))||(this._textAreaState=e,0===this._nextCommand?""===t.text&&0===t.replacePrevCharCnt||this._onType.fire(t):(""===t.text&&0===t.replacePrevCharCnt||this._firePaste(t.text,null),this._nextCommand=0))}))),this._register(s.nm(t.domNode,"cut",(e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()}))),this._register(s.nm(t.domNode,"copy",(e=>{this._ensureClipboardGetsEditorSelection(e)}))),this._register(s.nm(t.domNode,"paste",(e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),v.canUseTextData(e)){const[t,i]=v.getTextData(e);""!==t&&this._firePaste(t,i)}else this._textArea.getSelectionStart()!==this._textArea.getSelectionEnd()&&this._setAndWriteTextAreaState("paste",u.un.EMPTY),this._nextCommand=1}))),this._register(s.nm(t.domNode,"focus",(()=>{const e=this._hasFocus;this._setHasFocus(!0),o.G6&&!e&&this._hasFocus&&this._asyncFocusGainWriteScreenReaderContent.schedule()}))),this._register(s.nm(t.domNode,"blur",(()=>{this._isDoingComposition&&(this._isDoingComposition=!1,this.writeScreenReaderContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)}))),this._register(s.nm(t.domNode,n.Tap,(()=>{o.Dt&&this._isDoingComposition&&(this._isDoingComposition=!1,this.writeScreenReaderContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())})))}_installSelectionChangeListener(){let e=0;return s.nm(document,"selectionchange",(t=>{if(!this._hasFocus)return;if(this._isDoingComposition)return;if(!o.i7)return;const i=Date.now(),n=i-e;if(e=i,n<5)return;const s=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),s<100)return;if(!this._textAreaState.selectionStartPosition||!this._textAreaState.selectionEndPosition)return;const r=this._textArea.getValue();if(this._textAreaState.value!==r)return;const a=this._textArea.getSelectionStart(),l=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===a&&this._textAreaState.selectionEnd===l)return;const h=this._textAreaState.deduceEditorPosition(a),d=this._host.deduceModelPosition(h[0],h[1],h[2]),c=this._textAreaState.deduceEditorPosition(l),u=this._host.deduceModelPosition(c[0],c[1],c[2]),g=new p.Y(d.lineNumber,d.column,u.lineNumber,u.column);this._onSelectionChangeRequest.fire(g)}))}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){const e=s.Ay(this.textArea.domNode);e?this._setHasFocus(e.activeElement===this.textArea.domNode):s.Uw(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeScreenReaderContent(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(v.canUseTextData(e)),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};f.INSTANCE.set(o.vU?t.text.replace(/\r\n/g,"\n"):t.text,i),v.canUseTextData(e)?v.setTextData(e,t.text,t.html,i):this._setAndWriteTextAreaState("copy or cut",u.un.selectedText(t.text))}_firePaste(e,t){t||(t=f.INSTANCE.get(e)),this._onPaste.fire({text:e,metadata:t})}}class v{static canUseTextData(e){return!!e.clipboardData}static getTextData(e){if(e.clipboardData){e.preventDefault();const t=e.clipboardData.getData(h.vW.text);let i=null;const n=e.clipboardData.getData("vscode-editor-data");if("string"==typeof n)try{i=JSON.parse(n),1!==i.version&&(i=null)}catch(e){}return[t,i]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")}static setTextData(e,t,i,n){if(e.clipboardData)return e.clipboardData.setData(h.vW.text,t),"string"==typeof i&&e.clipboardData.setData("text/html",i),e.clipboardData.setData("vscode-editor-data",JSON.stringify(n)),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")}}class b extends l.JT{constructor(e){super(),this._actual=e,this._ignoreSelectionChangeTime=0}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.domNode.value}setValue(e,t){const i=this._actual.domNode;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return"backward"===this._actual.domNode.selectionDirection?this._actual.domNode.selectionEnd:this._actual.domNode.selectionStart}getSelectionEnd(){return"backward"===this._actual.domNode.selectionDirection?this._actual.domNode.selectionStart:this._actual.domNode.selectionEnd}setSelectionRange(e,t,i){const n=this._actual.domNode;let r=null;const a=s.Ay(n);r=a?a.activeElement:document.activeElement;const l=r===n,h=n.selectionStart,d=n.selectionEnd;if(l&&h===t&&d===i)o.vU&&window.parent!==window&&n.focus();else{if(l)return this.setIgnoreSelectionChangeTime("setSelectionRange"),n.setSelectionRange(t,i),void(o.vU&&window.parent!==window&&n.focus());try{const e=s.vL(n);this.setIgnoreSelectionChangeTime("setSelectionRange"),n.focus(),n.setSelectionRange(t,i),s._0(n,e)}catch(e){}}}}},56842:function(e,t,i){"use strict";i.d(t,{al:function(){return r},ee:function(){return l},un:function(){return a}});var n=i(82983),o=i(72146),s=i(17373);const r=!1;class a{constructor(e,t,i,n,o){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selectionStartPosition=n,this.selectionEndPosition=o}toString(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"}static readFromTextArea(e){return new a(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)}collapseSelection(){return new a(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(e,t,i){r&&console.log("writeToTextArea "+e+": "+this.toString()),t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){if(e<=this.selectionStart){const t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}const t=this.value.substring(this.selectionStart,e);if(-1===t.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,t,1);const i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)}_finishDeduceEditorPosition(e,t,i){let n=0,o=-1;for(;-1!==(o=t.indexOf("\n",o+1));)n++;return[e,i*t.length,n]}static selectedText(e){return new a(e,0,e.length,null,null)}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};r&&(console.log("------------------------deduceInput"),console.log("PREVIOUS STATE: "+e.toString()),console.log("CURRENT STATE: "+t.toString()));let o=e.value,s=e.selectionStart,a=e.selectionEnd,l=t.value,h=t.selectionStart,d=t.selectionEnd;const c=o.substring(a),u=l.substring(d),g=n.P1(c,u);l=l.substring(0,l.length-g),o=o.substring(0,o.length-g);const p=o.substring(0,s),m=l.substring(0,h),f=n.Mh(p,m);if(l=l.substring(f),o=o.substring(f),h-=f,s-=f,d-=f,a-=f,r&&(console.log("AFTER DIFFING PREVIOUS STATE: <"+o+">, selectionStart: "+s+", selectionEnd: "+a),console.log("AFTER DIFFING CURRENT STATE: <"+l+">, selectionStart: "+h+", selectionEnd: "+d)),i&&h===d&&o.length>0){let e=null;if(h===l.length?l.startsWith(o)&&(e=l.substring(o.length)):l.endsWith(o)&&(e=l.substring(0,l.length-o.length)),null!==e&&e.length>0&&(/\uFE0F/.test(e)||n.RP(e)))return{text:e,replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0}}if(h===d){if(o===l&&0===s&&a===o.length&&h===l.length&&-1===l.indexOf("\n")&&n.xe(l))return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};const e=p.length-f;return r&&console.log("REMOVE PREVIOUS: "+(p.length-f)+" chars"),{text:l,replacePrevCharCnt:e,replaceNextCharCnt:0,positionDelta:0}}return{text:l,replacePrevCharCnt:a-s,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(r&&(console.log("------------------------deduceAndroidCompositionInput"),console.log("PREVIOUS STATE: "+e.toString()),console.log("CURRENT STATE: "+t.toString())),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(n.Mh(e.value,t.value),e.selectionEnd),o=Math.min(n.P1(e.value,t.value),e.value.length-e.selectionEnd),s=e.value.substring(i,e.value.length-o),a=t.value.substring(i,t.value.length-o),l=e.selectionStart-i,h=e.selectionEnd-i,d=t.selectionStart-i,c=t.selectionEnd-i;return r&&(console.log("AFTER DIFFING PREVIOUS STATE: <"+s+">, selectionStart: "+l+", selectionEnd: "+h),console.log("AFTER DIFFING CURRENT STATE: <"+a+">, selectionStart: "+d+", selectionEnd: "+c)),{text:a,replacePrevCharCnt:h,replaceNextCharCnt:s.length-h,positionDelta:c-a.length}}}a.EMPTY=new a("",0,0,null,null);class l{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,n=i+1,o=i+t;return new s.e(n,1,o+1,1)}static fromEditorSelection(e,t,i,n,r){const h=l._getPageOfLine(i.startLineNumber,n),d=l._getRangeForPage(h,n),c=l._getPageOfLine(i.endLineNumber,n),u=l._getRangeForPage(c,n),g=d.intersectRanges(new s.e(1,1,i.startLineNumber,i.startColumn));let p=t.getValueInRange(g,1);const m=t.getLineCount(),f=t.getLineMaxColumn(m),_=u.intersectRanges(new s.e(i.endLineNumber,i.endColumn,m,f));let v,b=t.getValueInRange(_,1);if(h===c||h+1===c)v=t.getValueInRange(i,1);else{const e=d.intersectRanges(i),n=u.intersectRanges(i);v=t.getValueInRange(e,1)+String.fromCharCode(8230)+t.getValueInRange(n,1)}if(r){const e=500;p.length>e&&(p=p.substring(p.length-e,p.length)),b.length>e&&(b=b.substring(0,e)),v.length>2*e&&(v=v.substring(0,e)+String.fromCharCode(8230)+v.substring(v.length-e,v.length))}return new a(p+v+b,p.length,p.length+v.length,new o.L(i.startLineNumber,i.startColumn),new o.L(i.endLineNumber,i.endColumn))}}},39528:function(e,t,i){"use strict";i.d(t,{yy:function(){return f},Dl:function(){return _},ZF:function(){return b},YQ:function(){return v}});var n=i(82983),o=i(17373),s=i(96283),r=i(69323),a=i(4514),l=i(90689),h=i(34502),d=i(16925),c=i(7335),u=i(13268);const g=(0,d.yh)("IEditorCancelService"),p=new l.uy("cancellableOperation",!1,(0,u.N)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,c.z)(g,class{constructor(){this._tokens=new WeakMap}add(e,t){let i,n=this._tokens.get(e);return n||(n=e.invokeWithinContext((e=>({key:p.bindTo(e.get(l.i6)),tokens:new h.S}))),this._tokens.set(e,n)),n.key.set(!0),i=n.tokens.push(t),()=>{i&&(i(),n.key.set(!n.tokens.isEmpty()),i=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()))}},!0);class m extends s.A{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext((t=>t.get(g).add(e,this)))}dispose(){this._unregister(),super.dispose()}}(0,a.fK)(new class extends a._l{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:p})}runEditorCommand(e,t){e.get(g).cancel(t)}});class f{constructor(e,t){if(this.flags=t,0!=(1&this.flags)){const t=e.getModel();this.modelVersionId=t?n.WU("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;0!=(4&this.flags)?this.position=e.getPosition():this.position=null,0!=(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!=(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof f))return!1;const t=e;return this.modelVersionId===t.modelVersionId&&(this.scrollLeft===t.scrollLeft&&this.scrollTop===t.scrollTop&&(!(!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position))&&!(!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))))}validate(e){return this._equals(new f(e,this.flags))}}class _ extends m{constructor(e,t,i,n){super(e,n),this._listener=new r.SL,4&t&&this._listener.add(e.onDidChangeCursorPosition((e=>{i&&o.e.containsPosition(i,e.position)||this.cancel()}))),2&t&&this._listener.add(e.onDidChangeCursorSelection((e=>{i&&o.e.containsRange(i,e.selection)||this.cancel()}))),8&t&&this._listener.add(e.onDidScrollChange((e=>this.cancel()))),1&t&&(this._listener.add(e.onDidChangeModel((e=>this.cancel()))),this._listener.add(e.onDidChangeModelContent((e=>this.cancel()))))}dispose(){this._listener.dispose(),super.dispose()}}class v extends s.A{constructor(e,t){super(t),this._listener=e.onDidChangeContent((()=>this.cancel()))}dispose(){this._listener.dispose(),super.dispose()}}class b{constructor(e,t,i){this._visiblePosition=e,this._visiblePositionScrollDelta=t,this._cursorPosition=i}static capture(e){let t=null,i=0;if(0!==e.getScrollTop()){const n=e.getVisibleRanges();if(n.length>0){t=n[0].getStartPosition();const o=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-o}}return new b(t,i,e.getPosition())}restore(e){if(this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i)}}},56327:function(e,t,i){"use strict";i.d(t,{$:function(){return Te}});var n=i(69454);var o=Object.hasOwnProperty,s=Object.setPrototypeOf,r=Object.isFrozen,a=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,h=Object.freeze,d=Object.seal,c=Object.create,u="undefined"!=typeof Reflect&&Reflect,g=u.apply,p=u.construct;g||(g=function(e,t,i){return e.apply(t,i)}),h||(h=function(e){return e}),d||(d=function(e){return e}),p||(p=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t1?i-1:0),o=1;o/gm),K=d(/^data-[\-\w.\u00B7-\uFFFF]/),U=d(/^aria-[\-\w]+$/),$=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),j=d(/^(?:\w+script|data):/i),q=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),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};function Z(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:Q(),i=function(t){return e(t)};if(i.version="2.3.1",i.removed=[],!t||!t.document||9!==t.document.nodeType)return i.isSupported=!1,i;var n=t.document,o=t.document,s=t.DocumentFragment,r=t.HTMLTemplateElement,a=t.Node,l=t.Element,d=t.NodeFilter,c=t.NamedNodeMap,u=void 0===c?t.NamedNodeMap||t.MozNamedAttrMap:c,g=t.Text,p=t.Comment,m=t.DOMParser,x=t.trustedTypes,X=l.prototype,J=E(X,"cloneNode"),ee=E(X,"nextSibling"),te=E(X,"childNodes"),ie=E(X,"parentNode");if("function"==typeof r){var ne=o.createElement("template");ne.content&&ne.content.ownerDocument&&(o=ne.content.ownerDocument)}var oe=Y(x,n),se=oe&&Fe?oe.createHTML(""):"",re=o,ae=re.implementation,le=re.createNodeIterator,he=re.createDocumentFragment,de=re.getElementsByTagName,ce=n.importNode,ue={};try{ue=D(o).documentMode?o.documentMode:{}}catch(e){}var ge={};i.isSupported="function"==typeof ie&&ae&&void 0!==ae.createHTMLDocument&&9!==ue;var pe=H,me=z,fe=K,_e=U,ve=j,be=q,Ce=$,we=null,Se=k({},[].concat(Z(I),Z(T),Z(M),Z(R),Z(P))),ye=null,Le=k({},[].concat(Z(F),Z(B),Z(V),Z(W))),Ne=null,xe=null,ke=!0,De=!0,Ee=!1,Ie=!1,Te=!1,Me=!1,Ae=!1,Re=!1,Oe=!1,Pe=!0,Fe=!1,Be=!0,Ve=!0,We=!1,He={},ze=null,Ke=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ue=null,$e=k({},["audio","video","img","source","image","track"]),je=null,qe=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ge="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml",Ye=Qe,Xe=!1,Je=null,et=o.createElement("form"),tt=function(e){Je&&Je===e||(e&&"object"===(void 0===e?"undefined":G(e))||(e={}),e=D(e),we="ALLOWED_TAGS"in e?k({},e.ALLOWED_TAGS):Se,ye="ALLOWED_ATTR"in e?k({},e.ALLOWED_ATTR):Le,je="ADD_URI_SAFE_ATTR"in e?k(D(qe),e.ADD_URI_SAFE_ATTR):qe,Ue="ADD_DATA_URI_TAGS"in e?k(D($e),e.ADD_DATA_URI_TAGS):$e,ze="FORBID_CONTENTS"in e?k({},e.FORBID_CONTENTS):Ke,Ne="FORBID_TAGS"in e?k({},e.FORBID_TAGS):{},xe="FORBID_ATTR"in e?k({},e.FORBID_ATTR):{},He="USE_PROFILES"in e&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,De=!1!==e.ALLOW_DATA_ATTR,Ee=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=e.SAFE_FOR_TEMPLATES||!1,Te=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,Oe=e.RETURN_DOM_FRAGMENT||!1,Pe=!1!==e.RETURN_DOM_IMPORT,Fe=e.RETURN_TRUSTED_TYPE||!1,Ae=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,Ve=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,Ce=e.ALLOWED_URI_REGEXP||Ce,Ye=e.NAMESPACE||Qe,Ie&&(De=!1),Oe&&(Re=!0),He&&(we=k({},[].concat(Z(P))),ye=[],!0===He.html&&(k(we,I),k(ye,F)),!0===He.svg&&(k(we,T),k(ye,B),k(ye,W)),!0===He.svgFilters&&(k(we,M),k(ye,B),k(ye,W)),!0===He.mathMl&&(k(we,R),k(ye,V),k(ye,W))),e.ADD_TAGS&&(we===Se&&(we=D(we)),k(we,e.ADD_TAGS)),e.ADD_ATTR&&(ye===Le&&(ye=D(ye)),k(ye,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&k(je,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(ze===Ke&&(ze=D(ze)),k(ze,e.FORBID_CONTENTS)),Ve&&(we["#text"]=!0),Te&&k(we,["html","head","body"]),we.table&&(k(we,["tbody"]),delete Ne.tbody),h&&h(e),Je=e)},it=k({},["mi","mo","mn","ms","mtext"]),nt=k({},["foreignobject","desc","title","annotation-xml"]),ot=k({},T);k(ot,M),k(ot,A);var st=k({},R);k(st,O);var rt=function(e){var t=ie(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});var i=b(e.tagName),n=b(t.tagName);if(e.namespaceURI===Ze)return t.namespaceURI===Qe?"svg"===i:t.namespaceURI===Ge?"svg"===i&&("annotation-xml"===n||it[n]):Boolean(ot[i]);if(e.namespaceURI===Ge)return t.namespaceURI===Qe?"math"===i:t.namespaceURI===Ze?"math"===i&&nt[n]:Boolean(st[i]);if(e.namespaceURI===Qe){if(t.namespaceURI===Ze&&!nt[n])return!1;if(t.namespaceURI===Ge&&!it[n])return!1;var o=k({},["title","style","font","a","script"]);return!st[i]&&(o[i]||!ot[i])}return!1},at=function(e){v(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},lt=function(e,t){try{v(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ye[e])if(Re||Oe)try{at(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ht=function(e){var t=void 0,i=void 0;if(Ae)e=""+e;else{var n=C(e,/^[\r\n\t ]+/);i=n&&n[0]}var s=oe?oe.createHTML(e):e;if(Ye===Qe)try{t=(new m).parseFromString(s,"text/html")}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(Ye,"template",null);try{t.documentElement.innerHTML=Xe?"":s}catch(e){}}var r=t.body||t.documentElement;return e&&i&&r.insertBefore(o.createTextNode(i),r.childNodes[0]||null),Ye===Qe?de.call(t,Te?"html":"body")[0]:Te?t.documentElement:r},dt=function(e){return le.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},ct=function(e){return!(e instanceof g||e instanceof p)&&!("string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof u&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},ut=function(e){return"object"===(void 0===a?"undefined":G(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":G(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},gt=function(e,t,n){ge[e]&&f(ge[e],(function(e){e.call(i,t,n,Je)}))},pt=function(e){var t=void 0;if(gt("beforeSanitizeElements",e,null),ct(e))return at(e),!0;if(C(e.nodeName,/[\u0080-\uFFFF]/))return at(e),!0;var n=b(e.nodeName);if(gt("uponSanitizeElement",e,{tagName:n,allowedTags:we}),!ut(e.firstElementChild)&&(!ut(e.content)||!ut(e.content.firstElementChild))&&L(/<[/\w]/g,e.innerHTML)&&L(/<[/\w]/g,e.textContent))return at(e),!0;if("select"===n&&L(/