aldehyde 0.2.258 → 0.2.259

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/lib/controls/tree-select/navigation-tree.d.ts.map +1 -1
  2. package/lib/controls/tree-select/navigation-tree.js +4 -3
  3. package/lib/controls/tree-select/navigation-tree.js.map +1 -1
  4. package/lib/table/query-table.d.ts.map +1 -1
  5. package/lib/table/query-table.js +1 -1
  6. package/lib/table/query-table.js.map +1 -1
  7. package/lib/tmpl/interface.d.ts +1 -0
  8. package/lib/tmpl/interface.d.ts.map +1 -1
  9. package/lib/tmpl/interface.js.map +1 -1
  10. package/package.json +1 -1
  11. package/src/aldehyde/controls/tree-select/navigation-tree.tsx +5 -5
  12. package/src/aldehyde/table/query-table.tsx +0 -1
  13. package/src/aldehyde/tmpl/interface.tsx +1 -0
  14. package/dist/bundle.04a76d4f726f7257b62e.js +0 -2
  15. package/dist/bundle.04a76d4f726f7257b62e.js.LICENSE.txt +0 -5
  16. package/dist/bundle.04a76d4f726f7257b62e.js.gz +0 -0
  17. package/dist/bundle.0ba97fb9aed3256959a1.js +0 -75
  18. package/dist/bundle.0ba97fb9aed3256959a1.js.LICENSE.txt +0 -8
  19. package/dist/bundle.0ba97fb9aed3256959a1.js.gz +0 -0
  20. package/dist/bundle.0cdb895a99048cda0139.js +0 -1
  21. package/dist/bundle.0cdb895a99048cda0139.js.gz +0 -0
  22. package/dist/bundle.118048608e8ab47050ab.js +0 -1
  23. package/dist/bundle.118048608e8ab47050ab.js.gz +0 -0
  24. package/dist/bundle.22564bca4d0f6fbabf69.js +0 -1
  25. package/dist/bundle.22564bca4d0f6fbabf69.js.gz +0 -0
  26. package/dist/bundle.27227d2415dfad58bab4.js +0 -1
  27. package/dist/bundle.27227d2415dfad58bab4.js.gz +0 -0
  28. package/dist/bundle.334162ac2c2d6bf397cb.js +0 -2
  29. package/dist/bundle.334162ac2c2d6bf397cb.js.LICENSE.txt +0 -20
  30. package/dist/bundle.334162ac2c2d6bf397cb.js.gz +0 -0
  31. package/dist/bundle.3b6c5fe034cbb723c7f3.js +0 -1
  32. package/dist/bundle.3b6c5fe034cbb723c7f3.js.gz +0 -0
  33. package/dist/bundle.3f109b3f90f09c23e8d2.js +0 -2
  34. package/dist/bundle.3f109b3f90f09c23e8d2.js.LICENSE.txt +0 -1
  35. package/dist/bundle.3f109b3f90f09c23e8d2.js.gz +0 -0
  36. package/dist/bundle.420a3c4b880bec7c9395.js +0 -2
  37. package/dist/bundle.420a3c4b880bec7c9395.js.LICENSE.txt +0 -25
  38. package/dist/bundle.420a3c4b880bec7c9395.js.gz +0 -0
  39. package/dist/bundle.4b96ffe1f62e4f94c131.js +0 -1
  40. package/dist/bundle.4b96ffe1f62e4f94c131.js.gz +0 -0
  41. package/dist/bundle.4c54741832df8c763776.js +0 -1
  42. package/dist/bundle.4c54741832df8c763776.js.gz +0 -0
  43. package/dist/bundle.4e74b367562f2fcc557e.js +0 -2
  44. package/dist/bundle.4e74b367562f2fcc557e.js.LICENSE.txt +0 -1
  45. package/dist/bundle.4e74b367562f2fcc557e.js.gz +0 -0
  46. package/dist/bundle.51b107a74d3e9e38daaa.js +0 -2
  47. package/dist/bundle.51b107a74d3e9e38daaa.js.LICENSE.txt +0 -10
  48. package/dist/bundle.51b107a74d3e9e38daaa.js.gz +0 -0
  49. package/dist/bundle.548e656e773307824959.js +0 -1
  50. package/dist/bundle.548e656e773307824959.js.gz +0 -0
  51. package/dist/bundle.54b2a31d011f6c769e7c.js +0 -1
  52. package/dist/bundle.54b2a31d011f6c769e7c.js.gz +0 -0
  53. package/dist/bundle.593c12023e54a91e8a0b.js +0 -1
  54. package/dist/bundle.593c12023e54a91e8a0b.js.gz +0 -0
  55. package/dist/bundle.5ae6eceb7934e46e6d45.js +0 -13
  56. package/dist/bundle.5ae6eceb7934e46e6d45.js.gz +0 -0
  57. package/dist/bundle.5d22c4c1586e95424e26.js +0 -1
  58. package/dist/bundle.5d22c4c1586e95424e26.js.gz +0 -0
  59. package/dist/bundle.61f9eb72cb7b4666013c.js +0 -2
  60. package/dist/bundle.61f9eb72cb7b4666013c.js.LICENSE.txt +0 -16
  61. package/dist/bundle.61f9eb72cb7b4666013c.js.gz +0 -0
  62. package/dist/bundle.699d5561bf119bdb97fc.js +0 -1
  63. package/dist/bundle.699d5561bf119bdb97fc.js.gz +0 -0
  64. package/dist/bundle.6a7337d14083532e943d.js +0 -2
  65. package/dist/bundle.6a7337d14083532e943d.js.LICENSE.txt +0 -9
  66. package/dist/bundle.6a7337d14083532e943d.js.gz +0 -0
  67. package/dist/bundle.79831dc7a84e75f07975.js +0 -2
  68. package/dist/bundle.79831dc7a84e75f07975.js.LICENSE.txt +0 -14
  69. package/dist/bundle.79831dc7a84e75f07975.js.gz +0 -0
  70. package/dist/bundle.7dda8c43f58b4e01000d.js +0 -1
  71. package/dist/bundle.7dda8c43f58b4e01000d.js.gz +0 -0
  72. package/dist/bundle.84924d3443cdf0ef3a08.js +0 -2
  73. package/dist/bundle.84924d3443cdf0ef3a08.js.LICENSE.txt +0 -5
  74. package/dist/bundle.84924d3443cdf0ef3a08.js.gz +0 -0
  75. package/dist/bundle.866fb447979af51deaf0.js +0 -2
  76. package/dist/bundle.866fb447979af51deaf0.js.LICENSE.txt +0 -17
  77. package/dist/bundle.866fb447979af51deaf0.js.gz +0 -0
  78. package/dist/bundle.874b3f088098a51fe779.js +0 -1
  79. package/dist/bundle.874b3f088098a51fe779.js.gz +0 -0
  80. package/dist/bundle.8f008042855b35daf44f.js +0 -1
  81. package/dist/bundle.8f008042855b35daf44f.js.gz +0 -0
  82. package/dist/bundle.8fba396651ab9131e760.js +0 -2
  83. package/dist/bundle.8fba396651ab9131e760.js.LICENSE.txt +0 -22
  84. package/dist/bundle.8fba396651ab9131e760.js.gz +0 -0
  85. package/dist/bundle.a22410e1dd80ca8e1dad.js +0 -1
  86. package/dist/bundle.a22410e1dd80ca8e1dad.js.gz +0 -0
  87. package/dist/bundle.a26a56462550fc7dcb76.js +0 -2
  88. package/dist/bundle.a26a56462550fc7dcb76.js.LICENSE.txt +0 -5
  89. package/dist/bundle.a26a56462550fc7dcb76.js.gz +0 -0
  90. package/dist/bundle.b28c0f5f2d452df6637a.js +0 -1
  91. package/dist/bundle.b28c0f5f2d452df6637a.js.gz +0 -0
  92. package/dist/bundle.b59913b5eca7fc9cf658.js +0 -2
  93. package/dist/bundle.b59913b5eca7fc9cf658.js.LICENSE.txt +0 -50
  94. package/dist/bundle.b59913b5eca7fc9cf658.js.gz +0 -0
  95. package/dist/bundle.b5d9f43fb90d9c6b39a9.js +0 -2
  96. package/dist/bundle.b5d9f43fb90d9c6b39a9.js.LICENSE.txt +0 -8
  97. package/dist/bundle.b5d9f43fb90d9c6b39a9.js.gz +0 -0
  98. package/dist/bundle.c987651cbacb95e92e9a.js +0 -1
  99. package/dist/bundle.c987651cbacb95e92e9a.js.gz +0 -0
  100. package/dist/bundle.d67ab9f0b5662beefec1.js +0 -2
  101. package/dist/bundle.d67ab9f0b5662beefec1.js.LICENSE.txt +0 -9
  102. package/dist/bundle.d67ab9f0b5662beefec1.js.gz +0 -0
  103. package/dist/bundle.df15389f0df80bb5c1f8.js +0 -2
  104. package/dist/bundle.df15389f0df80bb5c1f8.js.LICENSE.txt +0 -8
  105. package/dist/bundle.df15389f0df80bb5c1f8.js.gz +0 -0
  106. package/dist/bundle.e9df92a889fa6911eb3a.js +0 -1
  107. package/dist/bundle.ebe7ebdb4845f80a5dd4.js +0 -2
  108. package/dist/bundle.ebe7ebdb4845f80a5dd4.js.LICENSE.txt +0 -7
  109. package/dist/bundle.ebe7ebdb4845f80a5dd4.js.gz +0 -0
  110. package/dist/bundle.f4c743816a267bced7bb.js +0 -1
  111. package/dist/bundle.f4c743816a267bced7bb.js.gz +0 -0
  112. package/dist/bundle.f6fe12d30504559f5f27.js +0 -2
  113. package/dist/bundle.f6fe12d30504559f5f27.js.LICENSE.txt +0 -6
  114. package/dist/bundle.f6fe12d30504559f5f27.js.gz +0 -0
  115. package/dist/css/chemstruc-graph-3996ceb0836a84cd2d4f.css +0 -12
  116. package/dist/css/chemstruc-graph-3996ceb0836a84cd2d4f.css.gz +0 -0
  117. package/dist/css/common-4fdc190a7145b69314ce.css +0 -56
  118. package/dist/css/html-editor-draft-5e8e152675ab7d201c00.css +0 -886
  119. package/dist/css/html-editor-draft-5e8e152675ab7d201c00.css.gz +0 -0
  120. package/dist/css/main-d4de6792432b484dddeb.css +0 -1169
  121. package/dist/css/main-d4de6792432b484dddeb.css.gz +0 -0
  122. package/dist/images/login-bg-027de94b.png +0 -0
  123. package/dist/images/welcome-8bf57aea.png +0 -0
  124. package/dist/index.html +0 -4
@@ -1,2 +0,0 @@
1
- /*! For license information please see bundle.4e74b367562f2fcc557e.js.LICENSE.txt */
2
- (self.webpackChunkaldehyde=self.webpackChunkaldehyde||[]).push([[76],{4556:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return S}});var r=n(42455),i=n(17636),o=n(44274),a=n(2532),s=n(63549),u=n(91985),l=n(11504),c=n(50828),h=n(96540),f=n(62070),p=n(54839),d=n(37187),v=n(16044),m=n(47152),y=n(16370),g=n(84861),w=n.n(g),b=n(54700),_=n(92749),x=n(1026),k=n(17437);function A(){A=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:T(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",d="suspendedYield",v="executing",m="completed",y={};function g(){}function w(){}function b(){}var _={};c(_,s,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(L([])));k&&k!==n&&i.call(k,s)&&(_=k);var E=b.prototype=g.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(o,a,s,u){var l=f(t[o],t,a);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==(0,r.A)(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return a=a?a.then(i,i):i()}})}function T(e,n,r){var i=p;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=$(s,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var l=f(e,n,r);if("normal"===l.type){if(i=r.done?m:d,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=m,r.method="throw",r.arg=l.arg)}}}function $(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,$(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(i.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError((0,r.A)(e)+" is not iterable")}return w.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(C.prototype),c(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(h(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),c(E,l,"Generator"),c(E,s,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=L,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),N(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;N(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}var S=function(t){function e(){var t,n,r,a;(0,o.A)(this,e);for(var l=arguments.length,h=new Array(l),f=0;f<l;f++)h[f]=arguments[f];return n=this,r=e,a=[].concat(h),r=(0,u.A)(r),t=(0,s.A)(n,E()?Reflect.construct(r,a||[],(0,u.A)(n).constructor):r.apply(n,a)),(0,c.A)(t,"state",{modalOpen:!1,molFileLoaded:!1,molFile:void 0,trimmedDataURL:void 0}),(0,c.A)(t,"context",void 0),(0,c.A)(t,"signCanvas",void 0),(0,c.A)(t,"loadData",(0,i.A)(A().mark((function e(){var n,r,i,o,a;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.props,r=n.value,i=n.serverKey,!r){e.next=12;break}if(1!=(o=JSON.parse(r)).valid){e.next=10;break}if(!/^image\/png;base64/.test(o.base.type)){e.next=8;break}return e.next=7,_.A.loadFileTxt(i,o.base.path);case 7:a=e.sent;case 8:e.next=11;break;case 10:a="new"==o.valid?o.body:void 0;case 11:t.setState({trimmedDataURL:a});case 12:case"end":return e.stop()}}),e)})))),(0,c.A)(t,"saveMolfile",(0,i.A)(A().mark((function e(){var n;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.signCanvas.getTrimmedCanvas().toDataURL("image/png"),t.triggerChange(n),t.setState({modalOpen:!1,trimmedDataURL:n});case 3:case"end":return e.stop()}}),e)})))),(0,c.A)(t,"triggerChange",(function(e){var n=t.props.onChange;n&&n(JSON.stringify({valid:"new",body:e,suffix:"image/png;base64",fileName:"signature.png"}))})),(0,c.A)(t,"showView",(0,i.A)(A().mark((function e(){return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.signCanvas.clear(),t.signCanvas.fromDataURL(t.state.trimmedDataURL),t.setState({modalOpen:!0});case 3:case"end":return e.stop()}}),e)})))),(0,c.A)(t,"onCancel",(function(){t.setState({modalOpen:!1})})),(0,c.A)(t,"onClear",(function(){t.signCanvas.clear()})),t}return(0,l.A)(e,t),(0,a.A)(e,[{key:"componentDidMount",value:function(){this.loadData()}},{key:"render",value:function(){var t=this,e=this.props,n=e.id,r=e.disabled,i=e.viewOrEdit,o=(e.value,this.state),a=(o.molFile,o.trimmedDataURL),s=this.context.translate;return(0,k.Y)("span",{id:n},a?(0,k.Y)(f.A,{width:90,src:a,preview:{src:a}}):"","edit"==i?(0,k.Y)(p.Ay,{onClick:this.showView},(0,k.Y)(b.A,null),s("${编辑}")):"",(0,k.Y)(d.A,{closable:!1,open:this.state.modalOpen,forceRender:!0,centered:!0,style:{maxWidth:"calc(100vw - 62px)",maxHeight:"calc(100vw - 50px)"},width:900,onCancel:function(){t.onCancel()},footer:r?[(0,k.Y)(p.Ay,{key:1,onClick:function(){t.onCancel()}},s("${取消}"))]:[(0,k.Y)(p.Ay,{key:1,onClick:function(){t.onClear()}},s("${清除}")),(0,k.Y)(v.A,{key:2,placement:"top",title:s("${确定要取消本次编辑的数据吗}?"),onConfirm:this.onCancel,okText:s("${确定}"),cancelText:s("${取消}")},(0,k.Y)(p.Ay,null,s("${取消}"))),(0,k.Y)(p.Ay,{key:3,onClick:function(){t.saveMolfile()},type:"primary"},s("${确定}"))],bodyStyle:{width:"900px"}},(0,k.Y)(m.A,{style:{height:"430px",border:"1px solid #00f",maxWidth:"860px",maxHeight:"calc(100vw - 80px)"}},(0,k.Y)(y.A,{key:1,span:24,style:{height:"400px"}},(0,k.Y)(w(),{ref:function(e){t.signCanvas=e},penColor:"#000",canvasProps:{width:860,height:400,className:"sigCanvas"}})))))}}])}(h.PureComponent);(0,c.A)(S,"defaultProps",{viewOrEdit:"view"}),(0,c.A)(S,"contextType",x.U)},12536:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return w}});var r=n(44274),i=n(2532),o=n(63549),a=n(91985),s=n(11504),u=n(50828),l=n(96540),c=n(677),h=n(35143),f=n(43754),p=n(29987),d=n.n(p),v=n(47340),m=n.n(v),y=n(17437);function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}var w=function(t){function e(){var t,n,i,s;(0,r.A)(this,e);for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];return n=this,i=e,s=[].concat(c),i=(0,a.A)(i),t=(0,o.A)(n,g()?Reflect.construct(i,s||[],(0,a.A)(n).constructor):i.apply(n,s)),(0,u.A)(t,"state",{editorState:h.EditorState.createEmpty()}),(0,u.A)(t,"onEditorStateChange",(function(e){t.setState({editorState:e})})),(0,u.A)(t,"editorChange",(function(e){t.props.onChange&&t.props.onChange(d()(e))})),(0,u.A)(t,"toDraft",(function(e){var n=m()(e),r=n.contentBlocks,i=n.entityMap,o=h.ContentState.createFromBlockArray(r,i),a=h.EditorState.createWithContent(o);t.setState({editorState:a})})),(0,u.A)(t,"changeValue",(function(t){})),t}return(0,s.A)(e,t),(0,i.A)(e,[{key:"componentDidMount",value:function(){this.props.value&&this.toDraft(this.props.value)}},{key:"render",value:function(){var t=this.props,e=t.viewOrEdit,n=t.disabled,r=this.state.editorState;return(0,y.Y)(c.A,{style:{width:"100%"},bodyStyle:{padding:"2px",minHeight:"280px"},size:"small"},(0,y.Y)(f.Editor,{readOnly:n,toolbarHidden:"view"==e,editorState:r,wrapperClassName:"contract-template-add-wrapper",editorClassName:"contract-template-editor",onEditorStateChange:this.onEditorStateChange,onChange:this.editorChange,toolbar:{options:["inline","blockType","fontSize","fontFamily","list","textAlign","colorPicker","remove","history"],colorPicker:{className:void 0,component:void 0,popupClassName:void 0,colors:["rgb(97,189,109)","rgb(26,188,156)","rgb(84,172,210)","rgb(44,130,201)","rgb(147,101,184)","rgb(71,85,119)","rgb(204,204,204)","rgb(65,168,95)","rgb(0,168,133)","rgb(61,142,185)","rgb(41,105,176)","rgb(85,57,130)","rgb(40,50,78)","rgb(0,0,0)","rgb(247,218,100)","rgb(251,160,38)","rgb(235,107,86)","rgb(226,80,65)","rgb(163,143,132)","rgb(239,239,239)","rgb(255,255,255)","rgb(250,197,28)","rgb(243,121,52)","rgb(209,72,65)","rgb(184,49,47)","rgb(124,112,107)","rgb(209,213,216)","rgb(0,0,0)"]}}}))}}])}(l.PureComponent)},33442:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return k}});var r=n(38452),i=n(62477),o=n(44274),a=n(2532),s=n(63549),u=n(91985),l=n(11504),c=n(50828),h=n(96540),f=n(28073),p=n(677),d=n(28392),v=n(54839),m=n(47852),y=n(99552),g=n(35406),w=n(1026),b=n(17437),_=["value","viewOrEdit"];function x(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(x=function(){return!!t})()}var k=function(t){function e(){var t,n,r,i;(0,o.A)(this,e);for(var a=arguments.length,l=new Array(a),h=0;h<a;h++)l[h]=arguments[h];return n=this,r=e,i=[].concat(l),r=(0,u.A)(r),t=(0,s.A)(n,x()?Reflect.construct(r,i||[],(0,u.A)(n).constructor):r.apply(n,i)),(0,c.A)(t,"state",{displayColorPicker:!1}),(0,c.A)(t,"context",void 0),(0,c.A)(t,"handleChange",(function(e){e&&e.hex?t.props.onChange(e.hex):t.props.onChange("")})),t}return(0,l.A)(e,t),(0,a.A)(e,[{key:"componentDidMount",value:function(){this.setState({})}},{key:"componentDidUpdate",value:function(t){(0,i.A)(this.props),this.props!=t&&this.setState({})}},{key:"render",value:function(){var t=this,e=this.state.displayColorPicker,n=this.props,i=n.value,o=n.viewOrEdit,a=((0,r.A)(n,_),this.context.translate);return"view"==o?(0,b.Y)("div",{className:"color",style:{background:i}},i):(0,b.Y)(f.A,{open:e,content:(0,b.Y)(p.A,{size:"small",style:{width:320},title:a("${颜色选择}"),styles:{body:{overflow:"auto"}},extra:(0,b.Y)(h.Fragment,null,(0,b.Y)(d.A,{size:[8,0]},(0,b.Y)(v.Ay,{onClick:function(){t.setState({displayColorPicker:!1})}},(0,b.Y)(m.A,null))))},(0,b.Y)(g.Ay,{color:i,onChange:this.handleChange}))},(0,b.Y)("div",null,(0,b.Y)("span",{onClick:function(){t.setState({displayColorPicker:!e})},className:"color",style:{background:i,cursor:"pointer"}},i||(0,b.Y)(v.Ay,{type:"link"},a("${选择颜色}"))),(0,b.Y)("span",null,i?(0,b.Y)(v.Ay,{type:"text",onClick:function(){t.handleChange(void 0)}},(0,b.Y)(y.A,null)):"")))}}])}(h.PureComponent);(0,c.A)(k,"contextType",w.U)},49386:function(t,e,n){var r=n(30876),i=n(93094),o=n(76082),a=function(t,e){e=e||{weight:"normal"},this.family=t,this.style=e.style||"normal",this.variant=e.variant||"normal",this.weight=e.weight||"normal",this.stretch=e.stretch||"stretch",this.featureSettings=e.featureSettings||"normal"};t.exports=a,a.HAS_WEBKIT_FALLBACK_BUG=null,a.DEFAULT_TIMEOUT=3e3,a.getUserAgent=function(){return window.navigator.userAgent},a.hasWebKitFallbackBug=function(){if(null===a.HAS_WEBKIT_FALLBACK_BUG){var t=/AppleWeb[kK]it\/([0-9]+)(?:\.([0-9]+))/.exec(a.getUserAgent());a.HAS_WEBKIT_FALLBACK_BUG=!!t&&(parseInt(t[1],10)<536||536===parseInt(t[1],10)&&parseInt(t[2],10)<=11)}return a.HAS_WEBKIT_FALLBACK_BUG},a.prototype.getStyle=function(){return"font-style:"+this.style+";font-variant:"+this.variant+";font-weight:"+this.weight+";font-stretch:"+this.stretch+";font-feature-settings:"+this.featureSettings+";-moz-font-feature-settings:"+this.featureSettings+";-webkit-font-feature-settings:"+this.featureSettings+";"},a.prototype.check=function(t,e){var n,s,u,l=t||"BESbswy",c=e||a.DEFAULT_TIMEOUT,h=this.getStyle(),f=i.createElement("div"),p=new o(l),d=new o(l),v=new o(l),m=-1,y=-1,g=-1,w=this;return p.setFont('"Times New Roman", sans-serif',h),d.setFont("serif",h),v.setFont("monospace",h),i.append(f,p.getElement()),i.append(f,d.getElement()),i.append(f,v.getElement()),i.append(document.body,f),n=p.getWidth(),s=d.getWidth(),u=v.getWidth(),new r((function(t,e){function r(){null!==f.parentNode&&i.remove(document.body,f)}function o(){-1!==m&&-1!==y&&-1!==g&&m===y&&y===g&&(a.hasWebKitFallbackBug()&&(m===n&&y===n&&g===n||m===s&&y===s&&g===s||m===u&&y===u&&g===u)||(r(),t(w)))}setTimeout((function(){r(),e(w)}),c),p.onResize((function(t){m=t,o()})),p.setFont(w.family+",sans-serif",h),d.onResize((function(t){y=t,o()})),d.setFont(w.family+",serif",h),v.onResize((function(t){g=t,o()})),v.setFont(w.family+",monospace",h)}))}},51587:function(t,e,n){"use strict";n.d(e,{z:function(){return u}});let r=[],i=[];function o(t){if(t<768)return!1;for(let e=0,n=r.length;;){let o=e+n>>1;if(t<r[o])n=o;else{if(!(t>=i[o]))return!0;e=o+1}if(e==n)return!1}}function a(t){return t>=127462&&t<=127487}(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((t=>t?parseInt(t,36):1));for(let e=0,n=0;e<t.length;e++)(e%2?i:r).push(n+=t[e])})();const s=8205;function u(t,e,n=!0,r=!0){return(n?l:c)(t,e,r)}function l(t,e,n){if(e==t.length)return e;e&&f(t.charCodeAt(e))&&p(t.charCodeAt(e-1))&&e--;let r=h(t,e);for(e+=d(r);e<t.length;){let i=h(t,e);if(r==s||i==s||n&&o(i))e+=d(i),r=i;else{if(!a(i))break;{let n=0,r=e-2;for(;r>=0&&a(h(t,r));)n++,r-=2;if(n%2==0)break;e+=2}}}return e}function c(t,e,n){for(;e>0;){let r=l(t,e-2,n);if(r<e)return r;e--}return 0}function h(t,e){let n=t.charCodeAt(e);if(!p(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return f(r)?r-56320+(n-55296<<10)+65536:n}function f(t){return t>=56320&&t<57344}function p(t){return t>=55296&&t<56320}function d(t){return t<65536?1:2}},65225:function(t,e,n){"use strict";n.d(e,{uVw:function(){return Ar},V$7:function(){return tr},$Er:function(){return sr},n8j:function(){return wr},Ltv:function(){return _t},s_O:function(){return zr}});var r={value:()=>{}};function i(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new o(r)}function o(t){this._=t}function a(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function s(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),u=-1,l=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++u<l;)if(n=(t=o[u]).type)i[n]=s(i[n],t.name,e);else if(null==e)for(n in i)i[n]=s(i[n],t.name,null);return this}for(;++u<l;)if((n=(t=o[u]).type)&&(n=a(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var u=i;function l(){}function c(t){return null==t?l:function(){return this.querySelector(t)}}function h(){return[]}function f(t){return null==t?h:function(){return this.querySelectorAll(t)}}function p(t){return function(){return this.matches(t)}}function d(t){return function(e){return e.matches(t)}}var v=Array.prototype.find;function m(){return this.firstElementChild}var y=Array.prototype.filter;function g(){return Array.from(this.children)}function w(t){return new Array(t.length)}function b(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function _(t,e,n,r,i,o){for(var a,s=0,u=e.length,l=o.length;s<l;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new b(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function x(t,e,n,r,i,o,a){var s,u,l,c=new Map,h=e.length,f=o.length,p=new Array(h);for(s=0;s<h;++s)(u=e[s])&&(p[s]=l=a.call(u,u.__data__,s,e)+"",c.has(l)?i[s]=u:c.set(l,u));for(s=0;s<f;++s)l=a.call(t,o[s],s,o)+"",(u=c.get(l))?(r[s]=u,u.__data__=o[s],c.delete(l)):n[s]=new b(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&c.get(p[s])===u&&(i[s]=u)}function k(t){return t.__data__}function A(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function E(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}b.prototype={constructor:b,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var S="http://www.w3.org/1999/xhtml",C={svg:"http://www.w3.org/2000/svg",xhtml:S,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function T(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),C.hasOwnProperty(e)?{space:C[e],local:t}:t}function $(t){return function(){this.removeAttribute(t)}}function M(t){return function(){this.removeAttributeNS(t.space,t.local)}}function N(t,e){return function(){this.setAttribute(t,e)}}function O(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function L(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function z(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function P(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function j(t){return function(){this.style.removeProperty(t)}}function Y(t,e,n){return function(){this.style.setProperty(t,e,n)}}function q(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function R(t,e){return t.style.getPropertyValue(e)||P(t).getComputedStyle(t,null).getPropertyValue(e)}function B(t){return function(){delete this[t]}}function D(t,e){return function(){this[t]=e}}function I(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function U(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new V(t)}function V(t){this._node=t,this._names=U(t.getAttribute("class")||"")}function G(t,e){for(var n=F(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function X(t,e){for(var n=F(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function H(t){return function(){G(this,t)}}function W(t){return function(){X(this,t)}}function K(t,e){return function(){(e.apply(this,arguments)?G:X)(this,t)}}function Z(){this.textContent=""}function Q(t){return function(){this.textContent=t}}function J(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function tt(){this.innerHTML=""}function et(t){return function(){this.innerHTML=t}}function nt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function rt(){this.nextSibling&&this.parentNode.appendChild(this)}function it(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ot(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===S&&e.documentElement.namespaceURI===S?e.createElement(t):e.createElementNS(n,t)}}function at(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function st(t){var e=T(t);return(e.local?at:ot)(e)}function ut(){return null}function lt(){var t=this.parentNode;t&&t.removeChild(this)}function ct(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ht(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ft(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function pt(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function dt(t,e,n){var r=P(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function vt(t,e){return function(){return dt(this,t,e)}}function mt(t,e){return function(){return dt(this,t,e.apply(this,arguments))}}V.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var yt=[null];function gt(t,e){this._groups=t,this._parents=e}function wt(){return new gt([[document.documentElement]],yt)}gt.prototype=wt.prototype={constructor:gt,select:function(t){"function"!=typeof t&&(t=c(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=e[i],u=s.length,l=r[i]=new Array(u),h=0;h<u;++h)(o=s[h])&&(a=t.call(o,o.__data__,h,s))&&("__data__"in o&&(a.__data__=o.__data__),l[h]=a);return new gt(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e);var e}}(t):f(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],u=s.length,l=0;l<u;++l)(a=s[l])&&(r.push(t.call(a,a.__data__,l,s)),i.push(a));return new gt(r,i)},selectChild:function(t){return this.select(null==t?m:function(t){return function(){return v.call(this.children,t)}}("function"==typeof t?t:d(t)))},selectChildren:function(t){return this.selectAll(null==t?g:function(t){return function(){return y.call(this.children,t)}}("function"==typeof t?t:d(t)))},filter:function(t){"function"!=typeof t&&(t=p(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&u.push(o);return new gt(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,k);var n,r=e?x:_,i=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=o.length,s=new Array(a),u=new Array(a),l=new Array(a),c=0;c<a;++c){var h=i[c],f=o[c],p=f.length,d=A(t.call(h,h&&h.__data__,c,i)),v=d.length,m=u[c]=new Array(v),y=s[c]=new Array(v);r(h,f,m,y,l[c]=new Array(p),d,e);for(var g,w,b=0,E=0;b<v;++b)if(g=m[b]){for(b>=E&&(E=b+1);!(w=y[E])&&++E<v;);g._next=w||null}}return(s=new gt(s,i))._enter=u,s._exit=l,s},enter:function(){return new gt(this._enter||this._groups.map(w),this._parents)},exit:function(){return new gt(this._exit||this._groups.map(w),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var l,c=n[u],h=r[u],f=c.length,p=s[u]=new Array(f),d=0;d<f;++d)(l=c[d]||h[d])&&(p[d]=l);for(;u<i;++u)s[u]=n[u];return new gt(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=E);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,l=i[o]=new Array(u),c=0;c<u;++c)(a=s[c])&&(l[c]=a);l.sort(e)}return new gt(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=T(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?M:$:"function"==typeof e?n.local?z:L:n.local?O:N)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?j:"function"==typeof e?q:Y)(t,e,null==n?"":n)):R(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?B:"function"==typeof e?I:D)(t,e)):this.node()[t]},classed:function(t,e){var n=U(t+"");if(arguments.length<2){for(var r=F(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?K:e?H:W)(n,e))},text:function(t){return arguments.length?this.each(null==t?Z:("function"==typeof t?J:Q)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?tt:("function"==typeof t?nt:et)(t)):this.node().innerHTML},raise:function(){return this.each(rt)},lower:function(){return this.each(it)},append:function(t){var e="function"==typeof t?t:st(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:st(t),r=null==e?ut:"function"==typeof e?e:c(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(lt)},clone:function(t){return this.select(t?ht:ct)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?pt:ft,r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(t,e){return this.each(("function"==typeof e?mt:vt)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};var bt=wt;function _t(t){return"string"==typeof t?new gt([[document.querySelector(t)]],[document.documentElement]):new gt([[t]],yt)}const xt={passive:!1},kt={capture:!0,passive:!1};function At(t){t.stopImmediatePropagation()}function Et(t){t.preventDefault(),t.stopImmediatePropagation()}function St(t){var e=t.document.documentElement,n=_t(t).on("dragstart.drag",Et,kt);"onselectstart"in e?n.on("selectstart.drag",Et,kt):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Ct(t,e){var n=t.document.documentElement,r=_t(t).on("dragstart.drag",null);e&&(r.on("click.drag",Et,kt),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Tt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function $t(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Mt(){}var Nt=.7,Ot=1/Nt,Lt="\\s*([+-]?\\d+)\\s*",zt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jt=/^#([0-9a-f]{3,8})$/,Yt=new RegExp(`^rgb\\(${Lt},${Lt},${Lt}\\)$`),qt=new RegExp(`^rgb\\(${Pt},${Pt},${Pt}\\)$`),Rt=new RegExp(`^rgba\\(${Lt},${Lt},${Lt},${zt}\\)$`),Bt=new RegExp(`^rgba\\(${Pt},${Pt},${Pt},${zt}\\)$`),Dt=new RegExp(`^hsl\\(${zt},${Pt},${Pt}\\)$`),It=new RegExp(`^hsla\\(${zt},${Pt},${Pt},${zt}\\)$`),Ut={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 Ft(){return this.rgb().formatHex()}function Vt(){return this.rgb().formatRgb()}function Gt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=jt.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Xt(e):3===n?new Kt(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Ht(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Ht(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=Yt.exec(t))?new Kt(e[1],e[2],e[3],1):(e=qt.exec(t))?new Kt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Rt.exec(t))?Ht(e[1],e[2],e[3],e[4]):(e=Bt.exec(t))?Ht(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Dt.exec(t))?ne(e[1],e[2]/100,e[3]/100,1):(e=It.exec(t))?ne(e[1],e[2]/100,e[3]/100,e[4]):Ut.hasOwnProperty(t)?Xt(Ut[t]):"transparent"===t?new Kt(NaN,NaN,NaN,0):null}function Xt(t){return new Kt(t>>16&255,t>>8&255,255&t,1)}function Ht(t,e,n,r){return r<=0&&(t=e=n=NaN),new Kt(t,e,n,r)}function Wt(t,e,n,r){return 1===arguments.length?((i=t)instanceof Mt||(i=Gt(i)),i?new Kt((i=i.rgb()).r,i.g,i.b,i.opacity):new Kt):new Kt(t,e,n,null==r?1:r);var i}function Kt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Zt(){return`#${ee(this.r)}${ee(this.g)}${ee(this.b)}`}function Qt(){const t=Jt(this.opacity);return`${1===t?"rgb(":"rgba("}${te(this.r)}, ${te(this.g)}, ${te(this.b)}${1===t?")":`, ${t})`}`}function Jt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function te(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ee(t){return((t=te(t))<16?"0":"")+t.toString(16)}function ne(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ie(t,e,n,r)}function re(t){if(t instanceof ie)return new ie(t.h,t.s,t.l,t.opacity);if(t instanceof Mt||(t=Gt(t)),!t)return new ie;if(t instanceof ie)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new ie(a,s,u,t.opacity)}function ie(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function oe(t){return(t=(t||0)%360)<0?t+360:t}function ae(t){return Math.max(0,Math.min(1,t||0))}function se(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 ue(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}Tt(Mt,Gt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ft,formatHex:Ft,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return re(this).formatHsl()},formatRgb:Vt,toString:Vt}),Tt(Kt,Wt,$t(Mt,{brighter(t){return t=null==t?Ot:Math.pow(Ot,t),new Kt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Nt:Math.pow(Nt,t),new Kt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Kt(te(this.r),te(this.g),te(this.b),Jt(this.opacity))},displayable(){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:Zt,formatHex:Zt,formatHex8:function(){return`#${ee(this.r)}${ee(this.g)}${ee(this.b)}${ee(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Qt,toString:Qt})),Tt(ie,(function(t,e,n,r){return 1===arguments.length?re(t):new ie(t,e,n,null==r?1:r)}),$t(Mt,{brighter(t){return t=null==t?Ot:Math.pow(Ot,t),new ie(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Nt:Math.pow(Nt,t),new ie(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Kt(se(t>=240?t-240:t+120,i,r),se(t,i,r),se(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new ie(oe(this.h),ae(this.s),ae(this.l),Jt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Jt(this.opacity);return`${1===t?"hsl(":"hsla("}${oe(this.h)}, ${100*ae(this.s)}%, ${100*ae(this.l)}%${1===t?")":`, ${t})`}`}}));var le=t=>()=>t;function ce(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):le(isNaN(t)?e:t)}var he=function t(e){var n=function(t){return 1==(t=+t)?ce:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):le(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Wt(t)).r,(e=Wt(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=ce(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function fe(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Wt(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}function pe(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=_e(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function de(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function ve(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function me(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=_e(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}fe((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return ue((n-r/e)*e,a,i,o,s)}})),fe((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return ue((n-r/e)*e,i,o,a,s)}}));var ye=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ge=new RegExp(ye.source,"g");function we(t,e){var n,r,i,o=ye.lastIndex=ge.lastIndex=0,a=-1,s=[],u=[];for(t+="",e+="";(n=ye.exec(t))&&(r=ge.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:ve(n,r)})),o=ge.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})}function be(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function _e(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?le(e):("number"===i?ve:"string"===i?(n=Gt(e))?(e=n,he):we:e instanceof Gt?he:e instanceof Date?de:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?pe:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?me:ve:be))(t,e)}function xe(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var ke,Ae,Ee=0,Se=0,Ce=0,Te=0,$e=0,Me=0,Ne="object"==typeof performance&&performance.now?performance:Date,Oe="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Le(){return $e||(Oe(ze),$e=Ne.now()+Me)}function ze(){$e=0}function Pe(){this._call=this._time=this._next=null}function je(t,e,n){var r=new Pe;return r.restart(t,e,n),r}function Ye(){$e=(Te=Ne.now())+Me,Ee=Se=0;try{!function(){Le(),++Ee;for(var t,e=ke;e;)(t=$e-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ee}()}finally{Ee=0,function(){for(var t,e,n=ke,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ke=e);Ae=t,Re(r)}(),$e=0}}function qe(){var t=Ne.now(),e=t-Te;e>1e3&&(Me-=e,Te=t)}function Re(t){Ee||(Se&&(Se=clearTimeout(Se)),t-$e>24?(t<1/0&&(Se=setTimeout(Ye,t-Ne.now()-Me)),Ce&&(Ce=clearInterval(Ce))):(Ce||(Te=Ne.now(),Ce=setInterval(qe,1e3)),Ee=1,Oe(Ye)))}function Be(t,e,n){var r=new Pe;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}Pe.prototype=je.prototype={constructor:Pe,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Le():+n)+(null==e?0:+e),this._next||Ae===this||(Ae?Ae._next=this:ke=this,Ae=this),this._call=t,this._time=n,Re()},stop:function(){this._call&&(this._call=null,this._time=1/0,Re())}};var De=u("start","end","cancel","interrupt"),Ie=[],Ue=2,Fe=5,Ve=6;function Ge(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(u){var l,c,h,f;if(1!==n.state)return s();for(l in i)if((f=i[l]).name===n.name){if(3===f.state)return Be(o);4===f.state?(f.state=Ve,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[l]):+l<e&&(f.state=Ve,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[l])}if(Be((function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(u))})),n.state=Ue,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Ue){for(n.state=3,r=new Array(h=n.tween.length),l=0,c=-1;l<h;++l)(f=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function a(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=Fe,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);n.state===Fe&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=Ve,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=je((function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:De,tween:Ie,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Xe(t,e){var n=We(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function He(t,e){var n=We(t,e);if(n.state>3)throw new Error("too late; already running");return n}function We(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Ke(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>Ue&&n.state<Fe,n.state=Ve,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}var Ze,Qe=180/Math.PI,Je={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tn(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r<e*n&&(t=-t,e=-e,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*Qe,skewX:Math.atan(u)*Qe,scaleX:a,scaleY:s}}function en(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var s=[],u=[];return o=t(o),a=t(a),function(t,r,i,o,a,s){if(t!==i||r!==o){var u=a.push("translate(",null,e,null,n);s.push({i:u-4,x:ve(t,i)},{i:u-2,x:ve(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,u),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:ve(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:ve(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,u),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:ve(t,n)},{i:s-2,x:ve(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(t){for(var e,n=-1,r=u.length;++n<r;)s[(e=u[n]).i]=e.x(t);return s.join("")}}}var nn=en((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Je:tn(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),rn=en((function(t){return null==t?Je:(Ze||(Ze=document.createElementNS("http://www.w3.org/2000/svg","g")),Ze.setAttribute("transform",t),(t=Ze.transform.baseVal.consolidate())?tn((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Je)}),", ",")",")");function on(t,e){var n,r;return function(){var i=He(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}i.tween=r}}function an(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=He(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===e){i[u]=s;break}u===l&&i.push(s)}o.tween=i}}function sn(t,e,n){var r=t._id;return t.each((function(){var t=He(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return We(t,r).value[e]}}function un(t,e){var n;return("number"==typeof e?ve:e instanceof Gt?he:(n=Gt(e))?(e=n,he):we)(t,e)}function ln(t){return function(){this.removeAttribute(t)}}function cn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function hn(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function fn(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function pn(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttribute(t))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttribute(t)}}function dn(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttributeNS(t.space,t.local))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttributeNS(t.space,t.local)}}function vn(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,i)),n}return i._value=e,i}function mn(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,i)),n}return i._value=e,i}function yn(t,e){return function(){Xe(this,t).delay=+e.apply(this,arguments)}}function gn(t,e){return e=+e,function(){Xe(this,t).delay=e}}function wn(t,e){return function(){He(this,t).duration=+e.apply(this,arguments)}}function bn(t,e){return e=+e,function(){He(this,t).duration=e}}var _n=bt.prototype.constructor;function xn(t){return function(){this.style.removeProperty(t)}}var kn=0;function An(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function En(){return++kn}var Sn=bt.prototype;An.prototype=function(t){return bt().transition(t)}.prototype={constructor:An,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=c(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,l=r[a],h=l.length,f=o[a]=new Array(h),p=0;p<h;++p)(s=l[p])&&(u=t.call(s,s.__data__,p,l))&&("__data__"in s&&(u.__data__=s.__data__),f[p]=u,Ge(f[p],e,n,p,f,We(s,n)));return new An(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=f(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,l=r[s],c=l.length,h=0;h<c;++h)if(u=l[h]){for(var p,d=t.call(u,u.__data__,h,l),v=We(u,n),m=0,y=d.length;m<y;++m)(p=d[m])&&Ge(p,e,n,m,d,v);o.push(d),a.push(u)}return new An(o,a,e,n)},selectChild:Sn.selectChild,selectChildren:Sn.selectChildren,filter:function(t){"function"!=typeof t&&(t=p(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&u.push(o);return new An(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=e[s],c=n[s],h=l.length,f=a[s]=new Array(h),p=0;p<h;++p)(u=l[p]||c[p])&&(f[p]=u);for(;s<r;++s)a[s]=e[s];return new An(a,this._parents,this._name,this._id)},selection:function(){return new _n(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=En(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)if(a=s[l]){var c=We(a,e);Ge(a,t,n,l,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new An(r,this._parents,t,n)},call:Sn.call,nodes:Sn.nodes,node:Sn.node,size:Sn.size,empty:Sn.empty,each:Sn.each,on:function(t,e){var n=this._id;return arguments.length<2?We(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Xe:He;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}(n,t,e))},attr:function(t,e){var n=T(t),r="transform"===n?rn:un;return this.attrTween(t,"function"==typeof e?(n.local?dn:pn)(n,r,sn(this,"attr."+t,e)):null==e?(n.local?cn:ln)(n):(n.local?fn:hn)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=T(t);return this.tween(n,(r.local?vn:mn)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?nn:un;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=R(this,t),a=(this.style.removeProperty(t),R(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,xn(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var a=R(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=R(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}(t,r,sn(this,"style."+t,e))).each(function(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=He(this,t),l=u.on,c=null==u.value[a]?o||(o=xn(e)):void 0;l===n&&i===c||(r=(n=l).copy()).on(s,i=c),u.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var a=R(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,o,n)),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(sn(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=We(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?on:an)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?yn:gn)(e,t)):We(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?wn:bn)(e,t)):We(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){He(this,t).ease=e}}(e,t)):We(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;He(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0==--i&&o()}};n.each((function(){var n=He(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),n.on=e})),0===i&&o()}))},[Symbol.iterator]:Sn[Symbol.iterator]};var Cn={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Tn(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}bt.prototype.interrupt=function(t){return this.each((function(){Ke(this,t)}))},bt.prototype.transition=function(t){var e,n;t instanceof An?(e=t._id,t=t._name):(e=En(),(n=Cn).time=Le(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)(a=s[l])&&Ge(a,t,e,l,s,n||Tn(a,e));return new An(r,this._parents,t,e)};var $n=t=>()=>t;function Mn(t,{sourceEvent:e,target:n,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function Nn(t){t.preventDefault(),t.stopImmediatePropagation()}var On={name:"drag"},Ln={name:"space"},zn={name:"handle"},Pn={name:"center"};const{abs:jn,max:Yn,min:qn}=Math;function Rn(t){return[+t[0],+t[1]]}function Bn(t){return[Rn(t[0]),Rn(t[1])]}var Dn={name:"x",handles:["w","e"].map(Wn),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},In={name:"y",handles:["n","s"].map(Wn),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Un={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Wn),input:function(t){return null==t?null:Bn(t)},output:function(t){return t}},Fn={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Vn={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Gn={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Xn={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Hn={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Wn(t){return{type:t}}function Kn(t){return!t.ctrlKey&&!t.button}function Zn(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Qn(){return navigator.maxTouchPoints||"ontouchstart"in this}function Jn(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function tr(){return function(t){var e,n=Zn,r=Kn,i=Qn,o=!0,a=u("start","brush","end"),s=6;function l(e){var n=e.property("__brush",m).selectAll(".overlay").data([Wn("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Fn.overlay).merge(n).each((function(){var t=Jn(this).extent;_t(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([Wn("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Fn.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return Fn[t.type]})),e.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",p).filter(i).on("touchstart.brush",p).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var t=_t(this),e=Jn(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function h(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new f(t,e,n):r}function f(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function p(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,a,s,u,l,f,p,d,v,m,y,g=this,w=n.target.__data__.type,b="selection"===(o&&n.metaKey?w="overlay":w)?On:o&&n.altKey?Pn:zn,_=t===In?null:Xn[w],x=t===Dn?null:Hn[w],k=Jn(g),A=k.extent,E=k.selection,S=A[0][0],C=A[0][1],T=A[1][0],$=A[1][1],M=0,N=0,O=_&&x&&o&&n.shiftKey,L=Array.from(n.touches||[n],(t=>{const e=t.identifier;return(t=xe(t,g)).point0=t.slice(),t.identifier=e,t}));Ke(g);var z=h(g,arguments,!0).beforestart();if("overlay"===w){E&&(v=!0);const e=[L[0],L[1]||L[0]];k.selection=E=[[i=t===In?S:qn(e[0][0],e[1][0]),s=t===Dn?C:qn(e[0][1],e[1][1])],[l=t===In?T:Yn(e[0][0],e[1][0]),p=t===Dn?$:Yn(e[0][1],e[1][1])]],L.length>1&&R(n)}else i=E[0][0],s=E[0][1],l=E[1][0],p=E[1][1];a=i,u=s,f=l,d=p;var P=_t(g).attr("pointer-events","none"),j=P.selectAll(".overlay").attr("cursor",Fn[w]);if(n.touches)z.moved=q,z.ended=B;else{var Y=_t(n.view).on("mousemove.brush",q,!0).on("mouseup.brush",B,!0);o&&Y.on("keydown.brush",(function(t){switch(t.keyCode){case 16:O=_&&x;break;case 18:b===zn&&(_&&(l=f-M*_,i=a+M*_),x&&(p=d-N*x,s=u+N*x),b=Pn,R(t));break;case 32:b!==zn&&b!==Pn||(_<0?l=f-M:_>0&&(i=a-M),x<0?p=d-N:x>0&&(s=u-N),b=Ln,j.attr("cursor",Fn.selection),R(t));break;default:return}Nn(t)}),!0).on("keyup.brush",(function(t){switch(t.keyCode){case 16:O&&(m=y=O=!1,R(t));break;case 18:b===Pn&&(_<0?l=f:_>0&&(i=a),x<0?p=d:x>0&&(s=u),b=zn,R(t));break;case 32:b===Ln&&(t.altKey?(_&&(l=f-M*_,i=a+M*_),x&&(p=d-N*x,s=u+N*x),b=Pn):(_<0?l=f:_>0&&(i=a),x<0?p=d:x>0&&(s=u),b=zn),j.attr("cursor",Fn[w]),R(t));break;default:return}Nn(t)}),!0),St(n.view)}c.call(g),z.start(n,b.name)}function q(t){for(const e of t.changedTouches||[t])for(const t of L)t.identifier===e.identifier&&(t.cur=xe(e,g));if(O&&!m&&!y&&1===L.length){const t=L[0];jn(t.cur[0]-t[0])>jn(t.cur[1]-t[1])?y=!0:m=!0}for(const t of L)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);v=!0,Nn(t),R(t)}function R(t){const e=L[0],n=e.point0;var r;switch(M=e[0]-n[0],N=e[1]-n[1],b){case Ln:case On:_&&(M=Yn(S-i,qn(T-l,M)),a=i+M,f=l+M),x&&(N=Yn(C-s,qn($-p,N)),u=s+N,d=p+N);break;case zn:L[1]?(_&&(a=Yn(S,qn(T,L[0][0])),f=Yn(S,qn(T,L[1][0])),_=1),x&&(u=Yn(C,qn($,L[0][1])),d=Yn(C,qn($,L[1][1])),x=1)):(_<0?(M=Yn(S-i,qn(T-i,M)),a=i+M,f=l):_>0&&(M=Yn(S-l,qn(T-l,M)),a=i,f=l+M),x<0?(N=Yn(C-s,qn($-s,N)),u=s+N,d=p):x>0&&(N=Yn(C-p,qn($-p,N)),u=s,d=p+N));break;case Pn:_&&(a=Yn(S,qn(T,i-M*_)),f=Yn(S,qn(T,l+M*_))),x&&(u=Yn(C,qn($,s-N*x)),d=Yn(C,qn($,p+N*x)))}f<a&&(_*=-1,r=i,i=l,l=r,r=a,a=f,f=r,w in Vn&&j.attr("cursor",Fn[w=Vn[w]])),d<u&&(x*=-1,r=s,s=p,p=r,r=u,u=d,d=r,w in Gn&&j.attr("cursor",Fn[w=Gn[w]])),k.selection&&(E=k.selection),m&&(a=E[0][0],f=E[1][0]),y&&(u=E[0][1],d=E[1][1]),E[0][0]===a&&E[0][1]===u&&E[1][0]===f&&E[1][1]===d||(k.selection=[[a,u],[f,d]],c.call(g),z.brush(t,b.name))}function B(t){if(function(t){t.stopImmediatePropagation()}(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else Ct(t.view,v),Y.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);P.attr("pointer-events","all"),j.attr("cursor",Fn.overlay),k.selection&&(E=k.selection),function(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(E)&&(k.selection=null,c.call(g)),z.end(t,b.name)}}function d(t){h(this,arguments).moved(t)}function v(t){h(this,arguments).ended(t)}function m(){var e=this.__brush||{selection:null};return e.extent=Bn(n.apply(this,arguments)),e.dim=t,e}return l.move=function(e,n,r){e.tween?e.on("start.brush",(function(t){h(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){h(this,arguments).end(t)})).tween("brush",(function(){var e=this,r=e.__brush,i=h(e,arguments),o=r.selection,a=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),s=_e(o,a);function u(t){r.selection=1===t&&null===a?null:s(t),c.call(e),i.brush()}return null!==o&&null!==a?u:u(1)})):e.each((function(){var e=this,i=arguments,o=e.__brush,a=t.input("function"==typeof n?n.apply(e,i):n,o.extent),s=h(e,i).beforestart();Ke(e),o.selection=null===a?null:a,c.call(e),s.start(r).brush(r).end(r)}))},l.clear=function(t,e){l.move(t,null,e)},f.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,r){var i=_t(this.that).datum();a.call(e,this.that,new Mn(e,{sourceEvent:n,target:l,selection:t.output(this.state.selection),mode:r,dispatch:a}),i)}},l.extent=function(t){return arguments.length?(n="function"==typeof t?t:$n(Bn(t)),l):n},l.filter=function(t){return arguments.length?(r="function"==typeof t?t:$n(!!t),l):r},l.touchable=function(t){return arguments.length?(i="function"==typeof t?t:$n(!!t),l):i},l.handleSize=function(t){return arguments.length?(s=+t,l):s},l.keyModifiers=function(t){return arguments.length?(o=!!t,l):o},l.on=function(){var t=a.on.apply(a,arguments);return t===a?l:t},l}(Un)}var er=t=>()=>t;function nr(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:a,y:s,dx:u,dy:l,dispatch:c}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:c}})}function rr(t){return!t.ctrlKey&&!t.button}function ir(){return this.parentNode}function or(t,e){return null==e?{x:t.x,y:t.y}:e}function ar(){return navigator.maxTouchPoints||"ontouchstart"in this}function sr(){var t,e,n,r,i=rr,o=ir,a=or,s=ar,l={},c=u("start","drag","end"),h=0,f=0;function p(t){t.on("mousedown.drag",d).filter(s).on("touchstart.drag",y).on("touchmove.drag",g,xt).on("touchend.drag touchcancel.drag",w).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(a,s){if(!r&&i.call(this,a,s)){var u=b(this,o.call(this,a,s),a,s,"mouse");u&&(_t(a.view).on("mousemove.drag",v,kt).on("mouseup.drag",m,kt),St(a.view),At(a),n=!1,t=a.clientX,e=a.clientY,u("start",a))}}function v(r){if(Et(r),!n){var i=r.clientX-t,o=r.clientY-e;n=i*i+o*o>f}l.mouse("drag",r)}function m(t){_t(t.view).on("mousemove.drag mouseup.drag",null),Ct(t.view,n),Et(t),l.mouse("end",t)}function y(t,e){if(i.call(this,t,e)){var n,r,a=t.changedTouches,s=o.call(this,t,e),u=a.length;for(n=0;n<u;++n)(r=b(this,s,t,e,a[n].identifier,a[n]))&&(At(t),r("start",t,a[n]))}}function g(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=l[r[e].identifier])&&(Et(t),n("drag",t,r[e]))}function w(t){var e,n,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),e=0;e<o;++e)(n=l[i[e].identifier])&&(At(t),n("end",t,i[e]))}function b(t,e,n,r,i,o){var s,u,f,d=c.copy(),v=xe(o||n,e);if(null!=(f=a.call(t,new nr("beforestart",{sourceEvent:n,target:p,identifier:i,active:h,x:v[0],y:v[1],dx:0,dy:0,dispatch:d}),r)))return s=f.x-v[0]||0,u=f.y-v[1]||0,function n(o,a,c){var m,y=v;switch(o){case"start":l[i]=n,m=h++;break;case"end":delete l[i],--h;case"drag":v=xe(c||a,e),m=h}d.call(o,t,new nr(o,{sourceEvent:a,subject:f,target:p,identifier:i,active:m,x:v[0]+s,y:v[1]+u,dx:v[0]-y[0],dy:v[1]-y[1],dispatch:d}),r)}}return p.filter=function(t){return arguments.length?(i="function"==typeof t?t:er(!!t),p):i},p.container=function(t){return arguments.length?(o="function"==typeof t?t:er(t),p):o},p.subject=function(t){return arguments.length?(a="function"==typeof t?t:er(t),p):a},p.touchable=function(t){return arguments.length?(s="function"==typeof t?t:er(!!t),p):s},p.on=function(){var t=c.on.apply(c,arguments);return t===c?p:t},p.clickDistance=function(t){return arguments.length?(f=(t=+t)*t,p):Math.sqrt(f)},p}function ur(t){return function(){return t}}function lr(t){this._context=t}function cr(t){return new lr(t)}nr.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t},Array.prototype.slice,lr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};const hr=Math.PI,fr=2*hr,pr=1e-6,dr=fr-pr;function vr(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class mr{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?vr:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return vr;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,o){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,s=n-t,u=r-e,l=o-t,c=a-e,h=l*l+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(h>pr)if(Math.abs(c*s-u*l)>pr&&i){let f=n-o,p=r-a,d=s*s+u*u,v=f*f+p*p,m=Math.sqrt(d),y=Math.sqrt(h),g=i*Math.tan((hr-Math.acos((d+h-v)/(2*m*y)))/2),w=g/y,b=g/m;Math.abs(w-1)>pr&&this._append`L${t+w*l},${e+w*c}`,this._append`A${i},${i},0,0,${+(c*f>l*p)},${this._x1=t+b*s},${this._y1=e+b*u}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),u=t+a,l=e+s,c=1^o,h=o?r-i:i-r;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>pr||Math.abs(this._y1-l)>pr)&&this._append`L${u},${l}`,n&&(h<0&&(h=h%fr+fr),h>dr?this._append`A${n},${n},0,1,${c},${t-a},${e-s}A${n},${n},0,1,${c},${this._x1=u},${this._y1=l}`:h>pr&&this._append`A${n},${n},0,${+(h>=hr)},${c},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function yr(t){return t[0]}function gr(t){return t[1]}function wr(t,e){var n=ur(!0),r=null,i=cr,o=null,a=function(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new mr(e)}(s);function s(s){var u,l,c,h=(s=function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}(s)).length,f=!1;for(null==r&&(o=i(c=a())),u=0;u<=h;++u)!(u<h&&n(l=s[u],u,s))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+t(l,u,s),+e(l,u,s));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?yr:ur(t),e="function"==typeof e?e:void 0===e?gr:ur(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:ur(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:ur(+t),s):e},s.defined=function(t){return arguments.length?(n="function"==typeof t?t:ur(!!t),s):n},s.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),s):i},s.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),s):r},s}function br(t){return((t=Math.exp(t))+1/t)/2}mr.prototype;var _r=function t(e,n,r){function i(t,i){var o,a,s=t[0],u=t[1],l=t[2],c=i[0],h=i[1],f=i[2],p=c-s,d=h-u,v=p*p+d*d;if(v<1e-12)a=Math.log(f/l)/e,o=function(t){return[s+t*p,u+t*d,l*Math.exp(e*t*a)]};else{var m=Math.sqrt(v),y=(f*f-l*l+r*v)/(2*l*n*m),g=(f*f-l*l-r*v)/(2*f*n*m),w=Math.log(Math.sqrt(y*y+1)-y),b=Math.log(Math.sqrt(g*g+1)-g);a=(b-w)/e,o=function(t){var r,i=t*a,o=br(w),c=l/(n*m)*(o*(r=e*i+w,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(w));return[s+c*p,u+c*d,l*o/br(e*i+w)]}}return o.duration=1e3*a*e/Math.SQRT2,o}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4),xr=t=>()=>t;function kr(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Ar(t,e,n){this.k=t,this.x=e,this.y=n}Ar.prototype={constructor:Ar,scale:function(t){return 1===t?this:new Ar(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Ar(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Er=new Ar(1,0,0);function Sr(t){t.stopImmediatePropagation()}function Cr(t){t.preventDefault(),t.stopImmediatePropagation()}function Tr(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function $r(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function Mr(){return this.__zoom||Er}function Nr(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Or(){return navigator.maxTouchPoints||"ontouchstart"in this}function Lr(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function zr(){var t,e,n,r=Tr,i=$r,o=Lr,a=Nr,s=Or,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],h=250,f=_r,p=u("start","zoom","end"),d=0,v=10;function m(t){t.property("__zoom",Mr).on("wheel.zoom",k,{passive:!1}).on("mousedown.zoom",A).on("dblclick.zoom",E).filter(s).on("touchstart.zoom",S).on("touchmove.zoom",C).on("touchend.zoom touchcancel.zoom",T).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new Ar(e,t.x,t.y)}function g(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new Ar(t.k,r,i)}function w(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n,r){t.on("start.zoom",(function(){_(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){_(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,a=_(t,o).event(r),s=i.apply(t,o),u=null==n?w(s):"function"==typeof n?n.apply(t,o):n,l=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),c=t.__zoom,h="function"==typeof e?e.apply(t,o):e,p=f(c.invert(u).concat(l/c.k),h.invert(u).concat(l/h.k));return function(t){if(1===t)t=h;else{var e=p(t),n=l/e[2];t=new Ar(n,u[0]-e[0]*n,u[1]-e[1]*n)}a.zoom(null,t)}}))}function _(t,e,n){return!n&&t.__zooming||new x(t,e)}function x(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function k(t,...e){if(r.apply(this,arguments)){var n=_(this,e).event(t),i=this.__zoom,s=Math.max(l[0],Math.min(l[1],i.k*Math.pow(2,a.apply(this,arguments)))),u=xe(t);if(n.wheel)n.mouse[0][0]===u[0]&&n.mouse[0][1]===u[1]||(n.mouse[1]=i.invert(n.mouse[0]=u)),clearTimeout(n.wheel);else{if(i.k===s)return;n.mouse=[u,i.invert(u)],Ke(this),n.start()}Cr(t),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),150),n.zoom("mouse",o(g(y(i,s),n.mouse[0],n.mouse[1]),n.extent,c))}}function A(t,...e){if(!n&&r.apply(this,arguments)){var i=t.currentTarget,a=_(this,e,!0).event(t),s=_t(t.view).on("mousemove.zoom",(function(t){if(Cr(t),!a.moved){var e=t.clientX-l,n=t.clientY-h;a.moved=e*e+n*n>d}a.event(t).zoom("mouse",o(g(a.that.__zoom,a.mouse[0]=xe(t,i),a.mouse[1]),a.extent,c))}),!0).on("mouseup.zoom",(function(t){s.on("mousemove.zoom mouseup.zoom",null),Ct(t.view,a.moved),Cr(t),a.event(t).end()}),!0),u=xe(t,i),l=t.clientX,h=t.clientY;St(t.view),Sr(t),a.mouse=[u,this.__zoom.invert(u)],Ke(this),a.start()}}function E(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,a=xe(t.changedTouches?t.changedTouches[0]:t,this),s=n.invert(a),u=n.k*(t.shiftKey?.5:2),l=o(g(y(n,u),a,s),i.apply(this,e),c);Cr(t),h>0?_t(this).transition().duration(h).call(b,l,a,t):_t(this).call(m.transform,l,a,t)}}function S(n,...i){if(r.apply(this,arguments)){var o,a,s,u,l=n.touches,c=l.length,h=_(this,i,n.changedTouches.length===c).event(n);for(Sr(n),a=0;a<c;++a)u=[u=xe(s=l[a],this),this.__zoom.invert(u),s.identifier],h.touch0?h.touch1||h.touch0[2]===u[2]||(h.touch1=u,h.taps=0):(h.touch0=u,o=!0,h.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(h.taps<2&&(e=u[0],t=setTimeout((function(){t=null}),500)),Ke(this),h.start())}}function C(t,...e){if(this.__zooming){var n,r,i,a,s=_(this,e).event(t),u=t.changedTouches,l=u.length;for(Cr(t),n=0;n<l;++n)i=xe(r=u[n],this),s.touch0&&s.touch0[2]===r.identifier?s.touch0[0]=i:s.touch1&&s.touch1[2]===r.identifier&&(s.touch1[0]=i);if(r=s.that.__zoom,s.touch1){var h=s.touch0[0],f=s.touch0[1],p=s.touch1[0],d=s.touch1[1],v=(v=p[0]-h[0])*v+(v=p[1]-h[1])*v,m=(m=d[0]-f[0])*m+(m=d[1]-f[1])*m;r=y(r,Math.sqrt(v/m)),i=[(h[0]+p[0])/2,(h[1]+p[1])/2],a=[(f[0]+d[0])/2,(f[1]+d[1])/2]}else{if(!s.touch0)return;i=s.touch0[0],a=s.touch0[1]}s.zoom("touch",o(g(r,i,a),s.extent,c))}}function T(t,...r){if(this.__zooming){var i,o,a=_(this,r).event(t),s=t.changedTouches,u=s.length;for(Sr(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),i=0;i<u;++i)o=s[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=xe(o,this),Math.hypot(e[0]-o[0],e[1]-o[1])<v)){var l=_t(this).on("dblclick.zoom");l&&l.apply(this,arguments)}}}return m.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",Mr),t!==i?b(t,e,n,r):i.interrupt().each((function(){_(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},m.scaleBy=function(t,e,n,r){m.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,r)},m.scaleTo=function(t,e,n,r){m.transform(t,(function(){var t=i.apply(this,arguments),r=this.__zoom,a=null==n?w(t):"function"==typeof n?n.apply(this,arguments):n,s=r.invert(a),u="function"==typeof e?e.apply(this,arguments):e;return o(g(y(r,u),a,s),t,c)}),n,r)},m.translateBy=function(t,e,n,r){m.transform(t,(function(){return o(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),c)}),null,r)},m.translateTo=function(t,e,n,r,a){m.transform(t,(function(){var t=i.apply(this,arguments),a=this.__zoom,s=null==r?w(t):"function"==typeof r?r.apply(this,arguments):r;return o(Er.translate(s[0],s[1]).scale(a.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)}),r,a)},x.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=_t(this.that).datum();p.call(t,this.that,new kr(t,{sourceEvent:this.sourceEvent,target:m,type:t,transform:this.that.__zoom,dispatch:p}),e)}},m.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:xr(+t),m):a},m.filter=function(t){return arguments.length?(r="function"==typeof t?t:xr(!!t),m):r},m.touchable=function(t){return arguments.length?(s="function"==typeof t?t:xr(!!t),m):s},m.extent=function(t){return arguments.length?(i="function"==typeof t?t:xr([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),m):i},m.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],m):[l[0],l[1]]},m.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],m):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},m.constrain=function(t){return arguments.length?(o=t,m):o},m.duration=function(t){return arguments.length?(h=+t,m):h},m.interpolate=function(t){return arguments.length?(f=t,m):f},m.on=function(){var t=p.on.apply(p,arguments);return t===p?m:t},m.clickDistance=function(t){return arguments.length?(d=(t=+t)*t,m):Math.sqrt(d)},m.tapDistance=function(t){return arguments.length?(v=+t,m):v},m}Ar.prototype},74025:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return g}});var r=n(44274),i=n(2532),o=n(63549),a=n(91985),s=n(11504),u=n(50828),l=n(96540),c=n(677),h=n(54136),f=n(1371),p=n(49075),d=n(6585),v=n(17437);function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}var y=function(t){var e=(0,l.useRef)(null),n=new d.xx;return(0,l.useEffect)((function(){var r=d.$t.create({doc:t.value,extensions:[h.oQ,f.Lz.updateListener.of((function(e){e.docChanged&&t.handleChange(i.state.doc)})),(0,p.ll)(),n.of(d.$t.readOnly.of(!!t.readOnly&&t.readOnly))]}),i=new f.Lz({state:r,parent:e.current});return function(){i.destroy()}}),[]),(0,v.Y)("div",{id:"CMEditor"},(0,v.Y)("div",{ref:e}))},g=function(t){function e(){var t,n,i,s;(0,r.A)(this,e);for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];return n=this,i=e,s=[].concat(c),i=(0,a.A)(i),t=(0,o.A)(n,m()?Reflect.construct(i,s||[],(0,a.A)(n).constructor):i.apply(n,s)),(0,u.A)(t,"state",{}),(0,u.A)(t,"handleChange",(function(e){console.log(e),t.props.onChange(e)})),t}return(0,s.A)(e,t),(0,i.A)(e,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var t=this.props,e=t.value,n=t.viewOrEdit;return(0,v.Y)(c.A,{size:"small",bodyStyle:{padding:"2px"}},(0,v.Y)(y,{handleChange:this.handleChange,readOnly:"view"==n,value:e}))}}])}(l.PureComponent);(0,u.A)(g,"defaultProps",{})},76082:function(t,e,n){var r=n(93094),i=function(t){var e="display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;";this.element=r.createElement("div"),this.element.setAttribute("aria-hidden","true"),r.append(this.element,r.createText(t)),this.collapsible=r.createElement("span"),this.expandable=r.createElement("span"),this.collapsibleInner=r.createElement("span"),this.expandableInner=r.createElement("span"),this.lastOffsetWidth=-1,r.style(this.collapsible,e),r.style(this.expandable,e),r.style(this.expandableInner,e),r.style(this.collapsibleInner,"display:inline-block;width:200%;height:200%;"),r.append(this.collapsible,this.collapsibleInner),r.append(this.expandable,this.expandableInner),r.append(this.element,this.collapsible),r.append(this.element,this.expandable)};t.exports=i,i.prototype.getElement=function(){return this.element},i.prototype.setFont=function(t,e){r.style(this.element,"min-width:20px;min-height:20px;display:inline-block;position:absolute;width:auto;margin:0;padding:0;top:-999px;left:-999px;white-space:nowrap;font-size:100px;font-family:"+t+";"+e)},i.prototype.getWidth=function(){return this.element.offsetWidth},i.prototype.setWidth=function(t){this.element.style.width=t+"px"},i.prototype.reset=function(){var t=this.getWidth(),e=t+100;return this.expandableInner.style.width=e+"px",this.expandable.scrollLeft=e,this.collapsible.scrollLeft=this.collapsible.scrollWidth+100,this.lastOffsetWidth!==t&&(this.lastOffsetWidth=t,!0)},i.prototype.onScroll=function(t){this.reset()&&null!==this.element.parentNode&&t(this.lastOffsetWidth)},i.prototype.onResize=function(t){var e=this;this.collapsible.addEventListener("scroll",(function(){e.onScroll(t)}),!1),this.expandable.addEventListener("scroll",(function(){e.onScroll(t)}),!1),this.reset()}},77232:function(t,e,n){var r;!function(i,o){"use strict";var a="function",s="undefined",u="object",l="string",c="major",h="model",f="name",p="type",d="vendor",v="version",m="architecture",y="console",g="mobile",w="tablet",b="smarttv",_="wearable",x="embedded",k="Amazon",A="Apple",E="ASUS",S="BlackBerry",C="Browser",T="Chrome",$="Firefox",M="Google",N="Huawei",O="LG",L="Microsoft",z="Motorola",P="Opera",j="Samsung",Y="Sharp",q="Sony",R="Xiaomi",B="Zebra",D="Facebook",I="Chromium OS",U="Mac OS",F=" Browser",V=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},G=function(t,e){return typeof t===l&&-1!==X(e).indexOf(X(t))},X=function(t){return t.toLowerCase()},H=function(t,e){if(typeof t===l)return t=t.replace(/^\s\s*/,""),typeof e===s?t:t.substring(0,500)},W=function(t,e){for(var n,r,i,s,l,c,h=0;h<e.length&&!l;){var f=e[h],p=e[h+1];for(n=r=0;n<f.length&&!l&&f[n];)if(l=f[n++].exec(t))for(i=0;i<p.length;i++)c=l[++r],typeof(s=p[i])===u&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):o:this[s[0]]=c?s[1].call(this,c,s[2]):o:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):o):this[s]=c||o;h+=2}},K=function(t,e){for(var n in e)if(typeof e[n]===u&&e[n].length>0){for(var r=0;r<e[n].length;r++)if(G(e[n][r],t))return"?"===n?o:n}else if(G(e[n],t))return"?"===n?o:n;return e.hasOwnProperty("*")?e["*"]:t},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Q={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,v],[/opios[\/ ]+([\w\.]+)/i],[v,[f,P+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[v,[f,P+" GX"]],[/\bopr\/([\w\.]+)/i],[v,[f,P]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[v,[f,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[v,[f,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,v],[/quark(?:pc)?\/([-\w\.]+)/i],[v,[f,"Quark"]],[/\bddg\/([\w\.]+)/i],[v,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[f,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[v,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[v,[f,"Smart Lenovo "+C]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+C],v],[/\bfocus\/([\w\.]+)/i],[v,[f,$+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[f,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[f,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[f,"MIUI"+F]],[/fxios\/([\w\.-]+)/i],[v,[f,$]],[/\bqihoobrowser\/?([\w\.]*)/i],[v,[f,"360"]],[/\b(qq)\/([\w\.]+)/i],[[f,/(.+)/,"$1Browser"],v],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1"+F],v],[/samsungbrowser\/([\w\.]+)/i],[v,[f,j+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[v,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[f,v],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[f],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[v,f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,D],v],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[f,T+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,T+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[f,"Android "+C]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[v,K,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],v],[/(wolvic|librewolf)\/([\w\.]+)/i],[f,v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[f,$+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[f,[v,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[f,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,X]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",X]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,X]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[h,[d,j],[p,w]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[h,[d,j],[p,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[h,[d,A],[p,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[h,[d,A],[p,w]],[/(macintosh);/i],[h,[d,A]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[h,[d,Y],[p,g]],[/(?:honor)([-\w ]+)[;\)]/i],[h,[d,"Honor"],[p,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[h,[d,N],[p,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[h,[d,N],[p,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[h,/_/g," "],[d,R],[p,g]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[h,/_/g," "],[d,R],[p,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[h,[d,"OPPO"],[p,g]],[/\b(opd2\d{3}a?) bui/i],[h,[d,"OPPO"],[p,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[h,[d,"Vivo"],[p,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[h,[d,"Realme"],[p,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[h,[d,z],[p,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[h,[d,z],[p,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[h,[d,O],[p,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[h,[d,O],[p,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[h,[d,"Lenovo"],[p,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[h,/_/g," "],[d,"Nokia"],[p,g]],[/(pixel c)\b/i],[h,[d,M],[p,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[h,[d,M],[p,g]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[h,[d,q],[p,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[h,"Xperia Tablet"],[d,q],[p,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[h,[d,"OnePlus"],[p,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[h,[d,k],[p,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[h,/(.+)/g,"Fire Phone $1"],[d,k],[p,g]],[/(playbook);[-\w\),; ]+(rim)/i],[h,d,[p,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[h,[d,S],[p,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[h,[d,E],[p,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[h,[d,E],[p,g]],[/(nexus 9)/i],[h,[d,"HTC"],[p,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[h,/_/g," "],[p,g]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[h,[d,"TCL"],[p,w]],[/(itel) ((\w+))/i],[[d,X],h,[p,K,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[h,[d,"Acer"],[p,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[h,[d,"Meizu"],[p,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[h,[d,"Ulefone"],[p,g]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[h,[d,"Energizer"],[p,g]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[h,[d,"Cat"],[p,g]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[h,[d,"Smartfren"],[p,g]],[/droid.+; (a(?:015|06[35]|142p?))/i],[h,[d,"Nothing"],[p,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,h,[p,g]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,h,[p,w]],[/(surface duo)/i],[h,[d,L],[p,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[h,[d,"Fairphone"],[p,g]],[/(u304aa)/i],[h,[d,"AT&T"],[p,g]],[/\bsie-(\w*)/i],[h,[d,"Siemens"],[p,g]],[/\b(rct\w+) b/i],[h,[d,"RCA"],[p,w]],[/\b(venue[\d ]{2,7}) b/i],[h,[d,"Dell"],[p,w]],[/\b(q(?:mv|ta)\w+) b/i],[h,[d,"Verizon"],[p,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[h,[d,"Barnes & Noble"],[p,w]],[/\b(tm\d{3}\w+) b/i],[h,[d,"NuVision"],[p,w]],[/\b(k88) b/i],[h,[d,"ZTE"],[p,w]],[/\b(nx\d{3}j) b/i],[h,[d,"ZTE"],[p,g]],[/\b(gen\d{3}) b.+49h/i],[h,[d,"Swiss"],[p,g]],[/\b(zur\d{3}) b/i],[h,[d,"Swiss"],[p,w]],[/\b((zeki)?tb.*\b) b/i],[h,[d,"Zeki"],[p,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],h,[p,w]],[/\b(ns-?\w{0,9}) b/i],[h,[d,"Insignia"],[p,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[h,[d,"NextBook"],[p,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],h,[p,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],h,[p,g]],[/\b(ph-1) /i],[h,[d,"Essential"],[p,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[h,[d,"Envizen"],[p,w]],[/\b(trio[-\w\. ]+) b/i],[h,[d,"MachSpeed"],[p,w]],[/\btu_(1491) b/i],[h,[d,"Rotor"],[p,w]],[/(shield[\w ]+) b/i],[h,[d,"Nvidia"],[p,w]],[/(sprint) (\w+)/i],[d,h,[p,g]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[d,L],[p,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[h,[d,B],[p,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[h,[d,B],[p,g]],[/smart-tv.+(samsung)/i],[d,[p,b]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[d,j],[p,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,O],[p,b]],[/(apple) ?tv/i],[d,[h,A+" TV"],[p,b]],[/crkey/i],[[h,T+"cast"],[d,M],[p,b]],[/droid.+aft(\w+)( bui|\))/i],[h,[d,k],[p,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[h,[d,Y],[p,b]],[/(bravia[\w ]+)( bui|\))/i],[h,[d,q],[p,b]],[/(mitv-\w{5}) bui/i],[h,[d,R],[p,b]],[/Hbbtv.*(technisat) (.*);/i],[d,h,[p,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,H],[h,H],[p,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,h,[p,y]],[/droid.+; (shield) bui/i],[h,[d,"Nvidia"],[p,y]],[/(playstation [345portablevi]+)/i],[h,[d,q],[p,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[h,[d,L],[p,y]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[h,[d,j],[p,_]],[/((pebble))app/i],[d,h,[p,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[h,[d,A],[p,_]],[/droid.+; (glass) \d/i],[h,[d,M],[p,_]],[/droid.+; (wt63?0{2,3})\)/i],[h,[d,B],[p,_]],[/droid.+; (glass) \d/i],[h,[d,M],[p,_]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,h,[p,_]],[/; (quest( \d| pro)?)/i],[h,[d,D],[p,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[p,x]],[/(aeobc)\b/i],[h,[d,k],[p,x]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[h,[p,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[h,[p,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,g]],[/(android[-\w\. ]{0,9});.+buil/i],[h,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[f,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[f,v],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,v],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[v,K,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,K,Z],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,U],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,v],[/\(bb(10);/i],[v,[f,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[f,$+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[f,T+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,I],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,v],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,v]]},J=function(t,e){if(typeof t===u&&(e=t,t=o),!(this instanceof J))return new J(t,e).getResult();var n=typeof i!==s&&i.navigator?i.navigator:o,r=t||(n&&n.userAgent?n.userAgent:""),y=n&&n.userAgentData?n.userAgentData:o,b=e?function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n}(Q,e):Q,_=n&&n.userAgent==r;return this.getBrowser=function(){var t,e={};return e[f]=o,e[v]=o,W.call(e,r,b.browser),e[c]=typeof(t=e[v])===l?t.replace(/[^\d\.]/g,"").split(".")[0]:o,_&&n&&n.brave&&typeof n.brave.isBrave==a&&(e[f]="Brave"),e},this.getCPU=function(){var t={};return t[m]=o,W.call(t,r,b.cpu),t},this.getDevice=function(){var t={};return t[d]=o,t[h]=o,t[p]=o,W.call(t,r,b.device),_&&!t[p]&&y&&y.mobile&&(t[p]=g),_&&"Macintosh"==t[h]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(t[h]="iPad",t[p]=w),t},this.getEngine=function(){var t={};return t[f]=o,t[v]=o,W.call(t,r,b.engine),t},this.getOS=function(){var t={};return t[f]=o,t[v]=o,W.call(t,r,b.os),_&&!t[f]&&y&&y.platform&&"Unknown"!=y.platform&&(t[f]=y.platform.replace(/chrome os/i,I).replace(/macos/i,U)),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(t){return r=typeof t===l&&t.length>500?H(t,500):t,this},this.setUA(r),this};J.VERSION="0.7.40",J.BROWSER=V([f,v,c]),J.CPU=V([m]),J.DEVICE=V([h,d,p,y,g,b,w,_,x]),J.ENGINE=J.OS=V([f,v]),typeof e!==s?(t.exports&&(e=t.exports=J),e.UAParser=J):n.amdO?(r=function(){return J}.call(e,n,e,t))===o||(t.exports=r):typeof i!==s&&(i.UAParser=J);var tt=typeof i!==s&&(i.jQuery||i.Zepto);if(tt&&!tt.ua){var et=new J;tt.ua=et.getResult(),tt.ua.get=function(){return et.getUA()},tt.ua.set=function(t){et.setUA(t);var e=et.getResult();for(var n in e)tt.ua[n]=e[n]}}}("object"==typeof window?window:this)},85998:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return E}});var r=n(42455),i=n(17636),o=n(44274),a=n(2532),s=n(63549),u=n(91985),l=n(11504),c=n(50828),h=n(96540),f=n(54839),p=n(37187),d=n(16044),v=n(47152),m=n(16370),y=n(19469),g=n(613),w=n(92749),b=n(88668),_=n(1026),x=n(17437);function k(){k=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:T(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",d="suspendedYield",v="executing",m="completed",y={};function g(){}function w(){}function b(){}var _={};c(_,s,(function(){return this}));var x=Object.getPrototypeOf,A=x&&x(x(L([])));A&&A!==n&&i.call(A,s)&&(_=A);var E=b.prototype=g.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(o,a,s,u){var l=f(t[o],t,a);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==(0,r.A)(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return a=a?a.then(i,i):i()}})}function T(e,n,r){var i=p;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=$(s,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var l=f(e,n,r);if("normal"===l.type){if(i=r.done?m:d,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=m,r.method="throw",r.arg=l.arg)}}}function $(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,$(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(i.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError((0,r.A)(e)+" is not iterable")}return w.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(C.prototype),c(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(h(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),c(E,l,"Generator"),c(E,s,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=L,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),N(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;N(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function A(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(A=function(){return!!t})()}var E=function(t){function e(){var t,r,a,l;(0,o.A)(this,e);for(var h=arguments.length,f=new Array(h),p=0;p<h;p++)f[p]=arguments[p];return r=this,a=e,l=[].concat(f),a=(0,u.A)(a),t=(0,s.A)(r,A()?Reflect.construct(a,l||[],(0,u.A)(r).constructor):a.apply(r,l)),(0,c.A)(t,"state",{modalOpen:!1,molFileLoaded:!1}),(0,c.A)(t,"context",void 0),(0,c.A)(t,"loadData",(0,i.A)(k().mark((function e(){var r,i,o,a,s,u,l;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,i=r.value,o=r.serverKey,!i){e.next=13;break}if(1!=(a=JSON.parse(i)).valid){e.next=9;break}return e.next=6,w.A.loadFileTxt(o,a.base.path);case 6:s=e.sent,e.next=10;break;case 9:s="new"==a.valid?a.body:void 0;case 10:u=/"alias":\s*\S*,/g,l=s.replace(u,""),n.g.ketcher.setMolecule(l);case 13:case"end":return e.stop()}}),e)})))),(0,c.A)(t,"saveMolfile",(0,i.A)(k().mark((function e(){var r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.g.ketcher.getKet();case 2:r=e.sent,t.triggerChange(r),t.setState({modalOpen:!1});case 5:case"end":return e.stop()}}),e)})))),(0,c.A)(t,"triggerChange",(function(e){var n=t.props.onChange;n&&n(JSON.stringify({valid:"new",body:e}))})),(0,c.A)(t,"showView",(0,i.A)(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.loadData();case 2:t.setState({modalOpen:!0});case 3:case"end":return e.stop()}}),e)})))),(0,c.A)(t,"onCancel",(function(){t.setState({modalOpen:!1})})),t}return(0,l.A)(e,t),(0,a.A)(e,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var t=this,e=this.props,r=e.disabled,o=e.viewOrEdit,a=this.context.translate,s=new y.knP("");return(0,x.Y)(h.Fragment,null,(0,x.Y)(f.Ay,{onClick:this.showView},(0,x.Y)(b.A,null)," ",a("view"==o?"${查看}":"${编辑}")),(0,x.Y)(p.A,{closable:!1,open:this.state.modalOpen,forceRender:!0,centered:!0,style:{maxWidth:"calc(100vw - 62px)",maxHeight:"calc(100vw - 50px)"},width:1200,onCancel:function(){t.onCancel()},footer:r?[(0,x.Y)(f.Ay,{key:1,onClick:function(){t.onCancel()}},a("${取消}"))]:[(0,x.Y)(d.A,{key:2,placement:"top",title:a("${确定要取消本次编辑的数据吗}?"),onConfirm:this.onCancel,okText:a("${确定}"),cancelText:a("${取消}")},(0,x.Y)(f.Ay,null,"取消")),(0,x.Y)(f.Ay,{key:3,onClick:function(){t.saveMolfile()},type:"primary"},"确定")],bodyStyle:{width:"1200px"}},(0,x.Y)(v.A,{style:{height:"430px",border:"1px solid #00f",maxWidth:"calc(100vw - 92px)",maxHeight:"calc(100vw - 80px)"}},(0,x.Y)(m.A,{key:1,span:24,style:{height:"430px"}},(0,x.Y)(g.KE,{onInit:function(){var t=(0,i.A)(k().mark((function t(e){return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.g.ketcher=e;case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),staticResourcesUrl:"ketcher",structServiceProvider:s,errorHandler:void 0})))))}}])}(h.PureComponent);(0,c.A)(E,"defaultProps",{viewOrEdit:"view"}),(0,c.A)(E,"contextType",_.U)},93094:function(t){var e={};t.exports=e,e.createElement=function(t){return document.createElement(t)},e.createText=function(t){return document.createTextNode(t)},e.style=function(t,e){t.style.cssText=e},e.append=function(t,e){t.appendChild(e)},e.remove=function(t,e){t.removeChild(e)}},97417:function(t,e,n){"use strict";n.d(e,{G:function(){return a}});const r="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),i="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class a{constructor(t,e){this.rules=[];let{finish:n}=e||{};function r(t){return/^@/.test(t)?[t]:t.split(/,\s*/)}function i(t,e,o,a){let s=[],u=/^@(\w+)\b/.exec(t[0]),l=u&&"keyframes"==u[1];if(u&&null==e)return o.push(t[0]+";");for(let n in e){let a=e[n];if(/&/.test(n))i(n.split(/,\s*/).map((e=>t.map((t=>e.replace(/&/,t))))).reduce(((t,e)=>t.concat(e))),a,o);else if(a&&"object"==typeof a){if(!u)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),a,s,l)}else null!=a&&s.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()))+": "+a+";")}(s.length||l)&&o.push((!n||u||a?t:t.map(n)).join(", ")+" {"+s.join(" ")+"}")}for(let e in t)i(r(e),t[e],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let t=o[r]||1;return o[r]=t+1,"ͼ"+t.toString(36)}static mount(t,e,n){let r=t[i],o=n&&n.nonce;r?o&&r.setNonce(o):r=new u(t,o),r.mount(Array.isArray(e)?e:[e],t)}}let s=new Map;class u{constructor(t,e){let n=t.ownerDocument||t,r=n.defaultView;if(!t.head&&t.adoptedStyleSheets&&r.CSSStyleSheet){let e=s.get(n);if(e)return t[i]=e;this.sheet=new r.CSSStyleSheet,s.set(n,this)}else this.styleTag=n.createElement("style"),e&&this.styleTag.setAttribute("nonce",e);this.modules=[],t[i]=this}mount(t,e){let n=this.sheet,r=0,i=0;for(let e=0;e<t.length;e++){let o=t[e],a=this.modules.indexOf(o);if(a<i&&a>-1&&(this.modules.splice(a,1),i--,a=-1),-1==a){if(this.modules.splice(i++,0,o),n)for(let t=0;t<o.rules.length;t++)n.insertRule(o.rules[t],r++)}else{for(;i<a;)r+=this.modules[i++].rules.length;r+=o.rules.length,i++}}if(n)e.adoptedStyleSheets.indexOf(this.sheet)<0&&(e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets]);else{let t="";for(let e=0;e<this.modules.length;e++)t+=this.modules[e].getRules()+"\n";this.styleTag.textContent=t;let n=e.head||e;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}setNonce(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}}}}]);
@@ -1 +0,0 @@
1
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */