@simpleform/form 2.1.4 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/README_CN.md +1 -1
- package/lib/css/main.css +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# `@simpleform/form`
|
|
2
2
|
English | [中文说明](./README_CN.md)
|
|
3
3
|
|
|
4
|
-
[](https://www.npmjs.com/package/@simpleform/form)
|
|
5
5
|
|
|
6
6
|
> The underlying form component, Binding of form values to display and update events is accomplished through callback functions.
|
|
7
7
|
|
package/README_CN.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](./README.md) | 中文说明
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/@simpleform/form)
|
|
6
6
|
|
|
7
7
|
> 表单底层组件,通过回调函数方式实现表单值的显示和更新事件的绑定.
|
|
8
8
|
|
package/lib/css/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.field-item{margin-bottom:16px}.field-item .label__container{font-size:14px;line-height:normal;overflow-wrap:break-word;word-break:break-all}.field-item .label__container .label__tooltip{-webkit-margin-start:4px;cursor:help;margin-inline-start:4px;-webkit-writing-mode:horizontal-tb;-ms-writing-mode:lr-tb;writing-mode:horizontal-tb}.field-item .label__container--required label:before{-webkit-margin-end:4px;color:#ff4d4f;content:"*";display:inline-block;font-family:SimSun,sans-serif;font-size:14px;line-height:1;margin-inline-end:4px}.field-item .control__container{position:relative}.field-item .control__container .item__control{margin-left:0;margin-right:0;overflow-wrap:break-word;word-break:break-word}.field-item .control__container .item__suffix{font-size:14px;margin-left:10px;margin-top:3px}.field-item .control__container .item__footer{margin-top:8px;width:100%}.field-item .control__container .item__message{color:red;font-size:12px}.field-item .control__container--error .item__control .ant-checkbox,.field-item .control__container--error .item__control .ant-input,.field-item .control__container--error .item__control .ant-input-number,.field-item .control__container--error .item__control .ant-mentions,.field-item .control__container--error .item__control .ant-picker,.field-item .control__container--error .item__control .ant-radio,.field-item .control__container--error .item__control .ant-rate,.field-item .control__container--error .item__control .ant-select .ant-select-selector,.field-item .control__container--error .item__control .ant-slider,.field-item .control__container--error .item__control .ant-switch,.field-item .control__container--error .item__control .ant-upload{border-color:#ff4d4f}.field-item .control__container--error .item__control .ant-checkbox:hover,.field-item .control__container--error .item__control .ant-input-number:hover,.field-item .control__container--error .item__control .ant-input:hover,.field-item .control__container--error .item__control .ant-mentions:hover,.field-item .control__container--error .item__control .ant-picker:hover,.field-item .control__container--error .item__control .ant-radio:hover,.field-item .control__container--error .item__control .ant-rate:hover,.field-item .control__container--error .item__control .ant-select .ant-select-selector:hover,.field-item .control__container--error .item__control .ant-slider:hover,.field-item .control__container--error .item__control .ant-switch:hover,.field-item .control__container--error .item__control .ant-upload:hover{border-color:#ff7875;border-right-width:1px!important;-webkit-box-shadow:0 0 0 2px rgba(255,77,79,.2);box-shadow:0 0 0 2px rgba(255,77,79,.2);outline:0}.field-item--horizontal{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:100%}.field-item--horizontal>.label__container{padding-right:8px;text-align:right;width:100px}.field-item--horizontal>.control__container{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.field-item--vertical{display:inline-block;width:100%}.field-item--vertical>.label__container{padding-bottom:8px;width:auto}.field-item--error{margin-bottom:3px}.field-item--inline{vertical-align:top;width:auto}.field-item--compact{margin:0;padding:0}.svg-icon{fill:currentColor;height:1.1em;outline:none;overflow:hidden;vertical-align:-.2em;width:1.1em}.custom-tooltip.react-tooltip{background:#fff;background-clip:padding-box;border-radius:2px;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);color:rgba(0,0,0,.85);z-index:999}.custom-tooltip.react-tooltip .react-tooltip-arrow{background:#fff}
|
|
1
|
+
.field-item{margin-bottom:16px}.field-item .label__container{font-size:14px;line-height:normal;overflow-wrap:break-word;word-break:break-all}.field-item .label__container .label__tooltip{-webkit-margin-start:4px;cursor:help;margin-inline-start:4px;-webkit-writing-mode:horizontal-tb;-ms-writing-mode:lr-tb;writing-mode:horizontal-tb}.field-item .label__container--required label:before{-webkit-margin-end:4px;color:#ff4d4f;content:"*";display:inline-block;font-family:SimSun,sans-serif;font-size:14px;line-height:1;margin-inline-end:4px}.field-item .control__container{position:relative}.field-item .control__container .item__control{margin-left:0;margin-right:0;overflow-wrap:break-word;padding:.1px;word-break:break-word}.field-item .control__container .item__suffix{font-size:14px;margin-left:10px;margin-top:3px}.field-item .control__container .item__footer{margin-top:8px;width:100%}.field-item .control__container .item__message{color:red;font-size:12px}.field-item .control__container--error .item__control .ant-checkbox,.field-item .control__container--error .item__control .ant-input,.field-item .control__container--error .item__control .ant-input-number,.field-item .control__container--error .item__control .ant-mentions,.field-item .control__container--error .item__control .ant-picker,.field-item .control__container--error .item__control .ant-radio,.field-item .control__container--error .item__control .ant-rate,.field-item .control__container--error .item__control .ant-select .ant-select-selector,.field-item .control__container--error .item__control .ant-slider,.field-item .control__container--error .item__control .ant-switch,.field-item .control__container--error .item__control .ant-upload{border-color:#ff4d4f}.field-item .control__container--error .item__control .ant-checkbox:hover,.field-item .control__container--error .item__control .ant-input-number:hover,.field-item .control__container--error .item__control .ant-input:hover,.field-item .control__container--error .item__control .ant-mentions:hover,.field-item .control__container--error .item__control .ant-picker:hover,.field-item .control__container--error .item__control .ant-radio:hover,.field-item .control__container--error .item__control .ant-rate:hover,.field-item .control__container--error .item__control .ant-select .ant-select-selector:hover,.field-item .control__container--error .item__control .ant-slider:hover,.field-item .control__container--error .item__control .ant-switch:hover,.field-item .control__container--error .item__control .ant-upload:hover{border-color:#ff7875;border-right-width:1px!important;-webkit-box-shadow:0 0 0 2px rgba(255,77,79,.2);box-shadow:0 0 0 2px rgba(255,77,79,.2);outline:0}.field-item--horizontal{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:100%}.field-item--horizontal>.label__container{padding-right:8px;text-align:right;width:100px}.field-item--horizontal>.control__container{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.field-item--vertical{display:inline-block;width:100%}.field-item--vertical>.label__container{padding-bottom:8px;width:auto}.field-item--error{margin-bottom:3px}.field-item--inline{vertical-align:top;width:auto}.field-item--compact{margin:0;padding:0}.svg-icon{fill:currentColor;height:1.1em;outline:none;overflow:hidden;vertical-align:-.2em;width:1.1em}.custom-tooltip.react-tooltip{background:#fff;background-clip:padding-box;border-radius:2px;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);color:rgba(0,0,0,.85);z-index:999}.custom-tooltip.react-tooltip .react-tooltip-arrow{background:#fff}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){if("object"===typeof exports&&"object"===typeof module)module.exports=t(require("react"));else if("function"===typeof define&&define.amd)define(["react"],t);else{var r="object"===typeof exports?t(require("react")):t(e.React);for(var n in r)("object"===typeof exports?exports:e)[n]=r[n]}}(self,(function(e){return function(){var t={910:function(e,t,r){"use strict";r.r(t);var n,o=r(359);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}t.default=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:200,height:200,className:"wenhao_svg__icon",viewBox:"0 0 1024 1024"},e),n||(n=o.createElement("path",{fill:"#272636",d:"M510.827 64.042c247.096.027 448.767 201.816 448.28 448.541-.49 247.641-201.839 448.844-448.57 448.241C263.075 960.22 62.84 759.868 62.513 512.535c-.329-246.882 201.23-448.521 448.314-448.493m405.948 448.323c-.036-223.591-181.117-405.318-405.726-405.778-223.89-.459-405.925 181.253-406.16 405.79-.232 223.613 181.45 405.166 405.674 405.805 223.336.636 406.248-182.097 406.212-405.817M535.795 657.3h-56.939c0-11.373-.608-22.537.128-33.612 1.485-22.365 6.658-43.815 18.344-63.301 9.094-15.164 20.675-28.25 33.54-40.276 15.98-14.935 32.149-29.678 47.81-44.94 9.223-8.985 17.42-19.009 21.68-31.483 10.208-29.883 3.682-56.57-16.199-80.337-33.015-39.47-88.235-40.821-122.05-21.066-21.314 12.45-34.093 31.502-41.553 54.414-3.344 10.272-5.653 20.88-8.65 32.155l-60.637-7.199c.779-5.205 1.337-10.1 2.263-14.924 5.196-27.06 14.59-52.297 32.253-73.943 21.52-26.37 49.555-41.723 82.58-48.061 34.471-6.616 68.92-5.902 102.442 4.986 42.92 13.94 74.68 41.177 89.113 84.564 13.857 41.655 7.048 81.004-20.227 116.156-17.302 22.299-38.82 40.415-59.041 59.831-8.896 8.542-17.896 17.137-25.623 26.697-11.477 14.198-15.858 31.37-17.242 49.325-.781 10.137-1.313 20.294-1.992 31.014m-60.637 120.44V710.33h67.458v67.411z"})))}},779:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var l=o.apply(null,r);l&&e.push(l)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},490:function(e,t,r){var n={"./wenhao.svg":910};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=490},359:function(t){"use strict";t.exports=e},609:function(e,t,r){var n=r(425).default;function o(){"use strict";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,l=i.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),l=new T(n||[]);return a(i,"_invoke",{value:j(e,r,l)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var v="suspendedStart",m="suspendedYield",y="executing",g="completed",b={};function w(){}function E(){}function x(){}var O={};d(O,u,(function(){return this}));var S=Object.getPrototypeOf,_=S&&S(S(C([])));_&&_!==i&&l.call(_,u)&&(O=_);var k=x.prototype=w.prototype=Object.create(O);function F(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(o,i,a,s){var u=h(e[o],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&l.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function j(e,r,n){var o=v;return function(i,l){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw l;return{value:t,done:!0}}for(n.method=i,n.arg=l;;){var a=n.delegate;if(a){var s=P(a,n);if(s){if(s===b)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=h(e,r,n);if("normal"===u.type){if(o=n.done?g:m,u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var l=i.arg;return l?l.done?(r[e.resultName]=l.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):l:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function V(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(l.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return E.prototype=x,a(k,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:E,configurable:!0}),E.displayName=d(x,f,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,f,"GeneratorFunction")),e.prototype=Object.create(k),e},r.awrap=function(e){return{__await:e}},F(L.prototype),d(L.prototype,c,(function(){return this})),r.AsyncIterator=L,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var l=new L(p(e,t,n,o),i);return r.isGeneratorFunction(t)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},F(k),d(k,f,"Generator"),d(k,u,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=C,T.prototype={constructor:T,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(V),!e)for(var r in this)"t"===r.charAt(0)&&l.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=l.call(i,"catchLoc"),u=l.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&l.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),V(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;V(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},425:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},841:function(e,t,r){var n=r(609)();e.exports=n;try{regeneratorRuntime=n}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function t(t,r){if(t){if("string"===typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}function r(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(u)throw o}}return a}}(e,r)||t(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}function a(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(r){return function(t){if(Array.isArray(t))return e(t)}(r)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||t(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(o),n.d(o,{Form:function(){return tr},FormInitialValuesContext:function(){return p},FormItem:function(){return Jt},Item:function(){return Ht},ItemCore:function(){return H},SimpleForm:function(){return ne},SimpleFormContext:function(){return d},comparePrefix:function(){return V},deepGet:function(){return P},deepSet:function(){return A},formatFormKey:function(){return L},getRulesTriggers:function(){return z},getTriggers:function(){return q},getValueFromEvent:function(){return C},getValuePropName:function(){return T},handleRules:function(){return te},isCanTrigger:function(){return re},isWithBracket:function(){return R},joinFormPath:function(){return N},pathToArr:function(){return F},pickObject:function(){return j},toArray:function(){return I},useFormError:function(){return ie},useFormValues:function(){return le},useSimpleForm:function(){return oe}});var c=n(359),f=n.n(c),d=f().createContext({}),p=f().createContext({});function h(e){return Object.prototype.toString.call(e).slice(8,-1)}function v(e){return"Array"===h(e)}function m(e){if("Object"!==h(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function y(e){return"Null"===h(e)}function g(e){return"Undefined"===h(e)}function b(e,t={}){if(v(e))return e.map((e=>b(e,t)));if(!m(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce(((r,n)=>{if(v(t.props)&&!t.props.includes(n))return r;return function(e,t,r,n,o){const i={}.propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=r),o&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}(r,n,b(e[n],t),e,t.nonenumerable),r}),{})}function w(e){return b(e)}function E(e){return Object.prototype.toString.call(e)}function x(e){return"[object Array]"==E(e)}function O(e){return"[object Object]"==E(e)}function S(e){return void 0===e||null===e||(Array.isArray(e)||"string"===typeof e||e instanceof String?0===e.length:e instanceof Map||e instanceof Set?0===e.size:"[object Object]"==={}.toString.call(e)?0===Object.keys(e).length:"number"===typeof e?isNaN(e):void 0)}function _(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){a=!0,i=e},f:function(){try{l||null==r.return||r.return()}finally{if(a)throw i}}}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function F(e){if(e instanceof Array)return e;if("number"===typeof e)return[e];return("string"===typeof e?e.match(/([^\.\[\]]+)|(\[\d+\])/g):[])||[]}function L(e){return"number"!==typeof e&&"string"!==typeof e?"":"number"===typeof e?e:e.toString().replace(/\]/,"").replace(/\[/,"")}var j=function(e,t){if(void 0===e||null===e)return e;if(O(e)||x(e)){var r={};if(t instanceof Array){var n,o=_(t);try{for(o.s();!(n=o.n()).done;){var i=n.value,l="string"===typeof i||"number"===typeof i?i:N(i),a=P(e,l);void 0!==a&&(r[l.toString()]=a)}}catch(d){o.e(d)}finally{o.f()}}else for(var s=0,u=Object.keys(e);s<u.length;s++){var c=u[s],f=e[c];t(c,f)&&void 0!==f&&(r[c]=f)}return r}};function P(e,t){if("object"===i(e)&&(O(e)||x(e))){var r=F(t);if(null!==r&&void 0!==r&&r.length){var n,o=e,l=_(r);try{for(l.s();!(n=l.n()).done;){var a,s=L(n.value);o=null===(a=o)||void 0===a?void 0:a[s]}}catch(u){l.e(u)}finally{l.f()}return o}}}function A(e,t,r){var n=F(t);if(null===n||void 0===n||!n.length)return e;if(e&&!O(e)&&!x(e))return e;for(var o=function(e){return"number"===typeof e||R(e)},i=S(e)?o(n[0])?[]:{}:w(e),l=i,a=0;a<(null===n||void 0===n?void 0:n.length);a++){var s,u,c=L(n[a]),f=n[a+1];if(void 0===i[c]&&void 0===r)return l;if(a===(null===n||void 0===n?void 0:n.length)-1)if(void 0===r)if(i instanceof Array)null===(s=i)||void 0===s||s.splice(+c,1);else null===(u=i)||void 0===u||delete u[c];else i[c]=r;else S(i[c])&&(i[c]=o(f)?[]:{}),i=i[c]}return l}function V(e,t){var r=F(e),n=F(t);return!(null===n||void 0===n||!n.length)&&((null===r||void 0===r?void 0:r.length)===(null===n||void 0===n?void 0:n.length)&&(null===r||void 0===r?void 0:r.every((function(e,t){return e==n[t]}))))}function T(e,t){return"function"===typeof e?e(t||""):e}function C(e){var t=null===e||void 0===e?void 0:e.target;return t?"checkbox"===t.type?t.checked:t.value:e}var R=function(e){return"string"===typeof e&&/^\[\d+\]$/.test(e)};function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t instanceof Array?t.reduce((function(e,t){var r="string"===typeof t?t:"number"===typeof t?"[".concat(t,"]"):"",n="string"===typeof e?e:"number"===typeof e?"[".concat(e,"]"):"";return R(r)?n&&r?"".concat(n).concat(r):r||n:n&&r?"".concat(n,".").concat(r):r||n}),""):""}function I(e){return e?Array.isArray(e)?e:[e]:[]}var D=["form"],M=["children"],B=["name","valueProp","valueGetter","valueSetter","errorClassName","onFieldsChange","onFieldsMounted","onValuesChange","initialValue","trigger","validateTrigger"];function $(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function z(e){var t=[];if(e instanceof Array)for(var r=0;r<(null===e||void 0===e?void 0:e.length);r++){var n=null===e||void 0===e?void 0:e[r],o=null===n||void 0===n?void 0:n.validateTrigger;o&&(o instanceof Array?t.push.apply(t,u(o)):t.push(o))}return t}function q(e,t,r){return new Set([].concat(u(I(e)),u(I(t)),u(r)))}var H=function(e){var t=(0,c.useContext)(d),n=t.form,o=s(t,D),i=(0,c.useContext)(p),l=Object.assign({},o,e),a=l.children,u=s(l,M),h=u.name,v=u.valueProp,m=void 0===v?"value":v,y=u.valueGetter,g=void 0===y?C:y,b=(u.valueSetter,u.errorClassName),w=(u.onFieldsChange,u.onFieldsMounted),E=u.onValuesChange,x=u.initialValue,O=u.trigger,_=void 0===O?"onChange":O,k=(u.validateTrigger,s(u,B)),F=W(W({},u),{},{valueProp:m,valueGetter:g,trigger:_}),L=(null===k||void 0===k?void 0:k.nonform)||(null===k||void 0===k?void 0:k.readOnly),j=S(h)||!0===L?void 0:h,A=void 0===x?P(i,j):x,V=r((0,c.useState)(),2),T=V[0],R=V[1];j&&(null===n||void 0===n||n.setFieldProps(j,F)),(0,c.useEffect)((function(){if(j&&n)return n.subscribeFormItem(j,(function(e,t){R(e),S(e)&&S(t)||E&&E({name:j,value:e},null===n||void 0===n?void 0:n.getFieldValue())})),function(){n.unsubscribeFormItem(j)}}),[JSON.stringify(j),n,E]),(0,c.useEffect)((function(){if(j&&n){var e=n.getFieldValue(j);return n.setInitialValue(j,null!==A&&void 0!==A?A:e),w&&w({name:j,value:A},null===n||void 0===n?void 0:n.getFieldValue()),function(){j&&(null===n||void 0===n||n.setFieldProps(j,void 0)),j&&n.setInitialValue(j,void 0)}}}),[JSON.stringify(j)]);var N=function(e){if("function"===typeof e){var t=n&&n.getBindProps(j,T)||{};return e({className:b,form:n,bindProps:t})}return e}(a);return f().createElement(f().Fragment,null,N)};function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},G.apply(this,arguments)}function K(e,t,r,n,o,i,l){try{var a=e[i](l),s=a.value}catch(u){return void r(u)}a.done?t(s):Promise.resolve(s).then(n,o)}function U(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function l(e){K(i,n,o,l,a,"next",e)}function a(e){K(i,n,o,l,a,"throw",e)}l(void 0)}))}}function J(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}H.displayName="ItemCore";var X=n(841),Y=n.n(X),Z={required:function(e,t){if("boolean"===typeof e&&S(t))return e},pattern:function(e,t){if("string"===typeof t)return e instanceof RegExp?!e.test(t):"string"===typeof e?!new RegExp(e).test(t):void 0},whitespace:function(e,t){if("boolean"===typeof e&&e&&"string"===typeof t)return/^\s+$/.test(t)||""===t},max:function(e,t){if("number"===typeof e){if("string"===typeof t||t instanceof Array)return t.length>e;if("number"===typeof t)return t>e}},min:function(e,t){if("number"===typeof e){if(void 0===t)return!0;if("string"===typeof t||t instanceof Array)return t.length<e;if("number"===typeof t)return t<e}}},Q=["validateTrigger","message","validator"],ee=function(){var e=U(Y().mark((function e(t,n,o){var i,l,a,u,c,f,d,p,h,v,m,y,g,b;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(l=(i=t||{}).validateTrigger,a=i.message,u=i.validator,c=s(i,Q),re(o,l)&&c){e.next=6;break}return e.abrupt("return");case 6:if("function"!==typeof u){e.next=22;break}return e.prev=7,e.next=10,u(n,(function(e){f=e}));case 10:if(!f){e.next=12;break}return e.abrupt("return",f);case 12:e.next=22;break;case 14:if(e.prev=14,e.t0=e.catch(7),"string"!==typeof e.t0){e.next=18;break}return e.abrupt("return",e.t0);case 18:if("string"!=typeof(d=e.t0).message){e.next=21;break}return e.abrupt("return",d.message);case 21:return e.abrupt("return",a||!0);case 22:p=Object.entries(c),h=0,v=p;case 24:if(!(h<v.length)){e.next=33;break}if(m=r(v[h],2),y=m[0],g=m[1],"function"!==typeof(b=Z[y])){e.next=30;break}if(!0!==b(g,n)){e.next=30;break}return e.abrupt("return",a||!0);case 30:h++,e.next=24;break;case 33:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(t,r,n){return e.apply(this,arguments)}}(),te=function(){var e=U(Y().mark((function e(t,r,n){var o,i,l;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t instanceof Array){e.next=2;break}return e.abrupt("return");case 2:o=0;case 3:if(!(o<t.length)){e.next=13;break}return i=t[o],e.next=7,ee(i,r,n);case 7:if(!(l=e.sent)){e.next=10;break}return e.abrupt("return",l);case 10:o++,e.next=3;break;case 13:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),re=function(e,t){return void 0===e||(void 0===t||("string"===typeof t?t===e:t instanceof Array?t.includes(e):void 0))},ne=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.formItemListeners=[],this.formValueListeners=[],this.formValuesListeners=[],this.errorListeners=[],this.initialValues=void 0,this.values=void 0,this.lastValues=void 0,this.formErrors={},this.fieldPropsMap={},this.initialValues=t,this.fieldPropsMap={},this.formErrors={},this.values=w(t),this.getFieldValue=this.getFieldValue.bind(this),this.getLastValue=this.getLastValue.bind(this),this.setFieldValue=this.setFieldValue.bind(this),this.setFieldsValue=this.setFieldsValue.bind(this),this.getInitialValues=this.getInitialValues.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getFieldError=this.getFieldError.bind(this),this.setFieldError=this.setFieldError.bind(this),this.setFieldsError=this.setFieldsError.bind(this),this.getFieldProps=this.getFieldProps.bind(this),this.setFieldProps=this.setFieldProps.bind(this),this.getBindProps=this.getBindProps.bind(this),this.bindChange=this.bindChange.bind(this),this.reset=this.reset.bind(this),this.validate=this.validate.bind(this),this.subscribeError=this.subscribeError.bind(this),this.unsubscribeError=this.unsubscribeError.bind(this),this.notifyError=this.notifyError.bind(this),this.subscribeFormItem=this.subscribeFormItem.bind(this),this.unsubscribeFormItem=this.unsubscribeFormItem.bind(this),this.notifyFormItem=this.notifyFormItem.bind(this),this.subscribeFormValue=this.subscribeFormValue.bind(this),this.unsubscribeFormValue=this.unsubscribeFormValue.bind(this),this.notifyFormValue=this.notifyFormValue.bind(this),this.subscribeFormValues=this.subscribeFormValues.bind(this),this.unsubscribeFormValues=this.unsubscribeFormValues.bind(this),this.notifyFormValues=this.notifyFormValues.bind(this)}var t,r,n;return t=e,r=[{key:"getFieldProps",value:function(e){return void 0===e?this.fieldPropsMap:null===(t=this.fieldPropsMap)||void 0===t?void 0:t[e];var t}},{key:"bindChange",value:function(e,t,r){if(e){var n=this.getFieldProps(e)||{},o=n.valueGetter,i=n.onFieldsChange,l="function"==typeof o?o(r):void 0;this.setFieldValue(e,l,t),i&&i({name:e,value:l},this.getFieldValue())}}},{key:"getBindProps",value:function(e,t){var r=this;if(e){var n=this.getFieldProps(e),o=this.getFieldValue(e),i=n||{},l=i.valueProp,s=i.valueSetter,u=i.trigger,c=i.validateTrigger,f=i.rules,d=i.nonform,p=T(l)||"",h=q(u,c,z(f)),v=a({},p,"function"===typeof s?s(o):s?void 0:o);if(void 0!==t){var m="function"===typeof s?s(t):s?void 0:t;v[p]=m}return h.forEach((function(t){v[t]=function(n){r.bindChange(e,t,n)}})),!0===d?{}:v}}},{key:"setFieldProps",value:function(e,t){if(e){var r=this.fieldPropsMap[e];if(void 0===t)void 0!==r&&delete this.fieldPropsMap[e];else{var n=Object.assign({},r,t);this.fieldPropsMap[e]=n}}}},{key:"getFieldValue",value:function(e){var t=this.values;return void 0===e?t:P(t,e)}},{key:"getLastValue",value:function(e){var t=this.lastValues;return void 0===e?t:P(t,e)}},{key:"setInitialValue",value:function(e,t){var r=P(this.lastValues,e);this.initialValues=A(this.initialValues,e,t),this.lastValues=w(this.values),this.values=A(this.values,e,t),this.notifyFormItem(e),S(r)&&void 0===t||(this.notifyFormValue(e),this.notifyFormValues())}},{key:"getInitialValues",value:function(e){return void 0===e?this.initialValues:P(this.initialValues,e)}},{key:"setFieldValue",value:function(e,t,r){var n=this,o=function(e,t,r){n.lastValues=w(n.values),n.values=A(n.values,e,t);var o=n.getFieldProps(e),i=null===o||void 0===o?void 0:o.rules;null!==i&&void 0!==i&&i.length&&i instanceof Array&&n.validate(e,r),n.notifyFormItem(e),n.notifyFormValue(e),n.notifyFormValues()};"string"===typeof e?o(e,t,r):O(e)&&Promise.all(Object.keys(e).map((function(t){return o(t,null===e||void 0===e?void 0:e[t])})))}},{key:"setFieldsValue",value:function(e){this.lastValues=w(this.values),this.values=e,this.notifyFormItem(),this.notifyFormValue(),this.notifyFormValues()}},{key:"reset",value:function(e){var t=e||this.initialValues;this.setFieldsError({}),this.setFieldsValue(t)}},{key:"getFieldError",value:function(e){return void 0===e?this.formErrors:this.formErrors[e]}},{key:"setFieldError",value:function(e,t){e&&(void 0===t?delete this.formErrors[e]:this.formErrors[e]=t,this.notifyError(e))}},{key:"setFieldsError",value:function(e){this.formErrors=w(e||{}),this.notifyError()}},{key:"validate",value:function(){var e=U(Y().mark((function e(t,r){var n,o,i,l,a,s,u,c=this;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(){var e=U(Y().mark((function e(t){var n,o,i,l,a;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c.setFieldError(t,void 0),n=c.getFieldProps(t)||{},o=c.getFieldValue(t),i=null===n||void 0===n?void 0:n.nonform,!re(r,null===n||void 0===n?void 0:n.validateTrigger)||!0===i){e.next=12;break}return l=n.rules,e.next=9,te(l,o,r);case 9:return(a=e.sent)&&c.setFieldError(t,a),e.abrupt("return",a);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),"string"!==typeof t){e.next=8;break}return e.next=4,n(t);case 4:return o=e.sent,e.abrupt("return",{error:o,values:this.getFieldValue()});case 8:return l=this.getFieldProps()||{},a=t instanceof Array?t:Object.keys(l||{}),e.next=12,Promise.all(null===a||void 0===a?void 0:a.map((function(e){var t=null===l||void 0===l?void 0:l[e];if((null===t||void 0===t?void 0:t.rules)instanceof Array)return n(e)})));case 12:return s=e.sent,u=null===s||void 0===s||null===(i=s.filter((function(e){return void 0!==e})))||void 0===i?void 0:i[0],e.abrupt("return",{error:u,values:this.getFieldValue()});case 15:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"subscribeFormItem",value:function(e,t){var r=this;return this.formItemListeners.push({onChange:t,path:e}),function(){r.unsubscribeFormItem(e)}}},{key:"unsubscribeFormItem",value:function(e){void 0===e?this.formItemListeners=[]:"string"===typeof e&&(this.formItemListeners=this.formItemListeners.filter((function(t){return t.path!==e})))}},{key:"notifyFormItem",value:function(e){var t=this;e?this.formItemListeners.forEach((function(r){(null===r||void 0===r?void 0:r.path)===e&&(null===r||void 0===r?void 0:r.onChange)&&(null===r||void 0===r||r.onChange(t.getFieldValue(r.path),t.getLastValue(r.path)))})):this.formItemListeners.forEach((function(e){return e.onChange(t.getFieldValue(e.path),t.getLastValue(e.path))}))}},{key:"subscribeFormValue",value:function(e,t){var r=this;return this.formValueListeners.push({onChange:t,path:e}),function(){r.unsubscribeFormValue(e)}}},{key:"unsubscribeFormValue",value:function(e){void 0===e?this.formValueListeners=[]:"string"===typeof e&&(this.formValueListeners=this.formValueListeners.filter((function(t){return t.path!==e})))}},{key:"notifyFormValue",value:function(e){var t=this;e?this.formValueListeners.forEach((function(r){V(null===r||void 0===r?void 0:r.path,e)&&(null===r||void 0===r?void 0:r.onChange)&&(null===r||void 0===r||r.onChange(t.getFieldValue(r.path),t.getLastValue(r.path)))})):this.formValueListeners.forEach((function(e){return e.onChange(t.getFieldValue(e.path),t.getLastValue(e.path))}))}},{key:"subscribeFormValues",value:function(e){var t=this;return this.formValuesListeners.push(e),function(){t.unsubscribeFormValues()}}},{key:"unsubscribeFormValues",value:function(){this.formValuesListeners=[]}},{key:"notifyFormValues",value:function(){var e=this;this.formValuesListeners.forEach((function(t){return t(e.getFieldValue(),e.getLastValue())}))}},{key:"subscribeError",value:function(e,t){var r=this;return this.errorListeners.push({onChange:t,path:e}),function(){r.unsubscribeError(e)}}},{key:"unsubscribeError",value:function(e){void 0===e?this.errorListeners=[]:"string"===typeof e&&(this.errorListeners=this.errorListeners.filter((function(t){return t.path!==e})))}},{key:"notifyError",value:function(e){var t=this;e?this.errorListeners.forEach((function(r){(null===r||void 0===r?void 0:r.path)===e&&(null===r||void 0===r?void 0:r.onChange)&&(null===r||void 0===r||r.onChange(t.getFieldError(e)))})):this.errorListeners.forEach((function(e){return e.onChange(t.getFieldError(e.path))}))}}],r&&J(t.prototype,r),n&&J(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function oe(e){var t=(0,c.useRef)(new ne(e));return le(t.current),t.current}function ie(e,t){var n=r((0,c.useState)(),2),o=n[0],i=n[1],l=function(){t&&e&&e.subscribeError(t,(function(e){i(e)}))};return(0,c.useMemo)((function(){l()}),[JSON.stringify(t)]),(0,c.useEffect)((function(){return l(),function(){e&&e.unsubscribeError(t)}}),[JSON.stringify(t)]),[o,i]}function le(e,t){var n=r((0,c.useState)(),2),o=n[0],i=n[1],l=function(){e&&e.subscribeFormValues((function(e){if(void 0==t)i(e);else{var r=t instanceof Array?t:[t],n=r?j(e,r):e;i(n)}}))};return(0,c.useMemo)((function(){l()}),[JSON.stringify(t)]),(0,c.useEffect)((function(){return l(),function(){e&&e.unsubscribeFormValues()}}),[JSON.stringify(t)]),o}var ae=n(779),se=n.n(ae);function ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ce="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function fe(e,t){return 0===e.indexOf(t)}function de(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!1===r?t={aria:!0,data:!0,attr:!0}:!0===r?t={aria:!0}:O(r)&&(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r));var n={};return Object.keys(e).forEach((function(r){(t.aria&&("role"===r||fe(r,"aria-"))||t.data&&fe(r,"data-")||t.attr&&ce.includes(r))&&(n[r]=e[r])})),n}var pe=["name","className"],he={},ve=n(490);ve.keys().forEach((function(e){var t=e.replace(/^\.\/(.*)\.svg$/,"$1"),r=ve(e).default;he[t]=r}));var me=f().forwardRef((function(e,t){var r=e.name,n=e.className,o=s(e,pe),i=n?"svg-icon "+n:"svg-icon",l=r?he[r]:null;return l?f().createElement(l,G({className:i,ref:t},o)):null}));const ye=Math.min,ge=Math.max,be=Math.round,we=Math.floor,Ee=e=>({x:e,y:e}),xe={left:"right",right:"left",bottom:"top",top:"bottom"},Oe={start:"end",end:"start"};function Se(e,t,r){return ge(e,ye(t,r))}function _e(e,t){return"function"===typeof e?e(t):e}function ke(e){return e.split("-")[0]}function Fe(e){return e.split("-")[1]}function Le(e){return"x"===e?"y":"x"}function je(e){return"y"===e?"height":"width"}function Pe(e){return["top","bottom"].includes(ke(e))?"y":"x"}function Ae(e){return Le(Pe(e))}function Ve(e){return e.replace(/start|end/g,(e=>Oe[e]))}function Te(e){return e.replace(/left|right|bottom|top/g,(e=>xe[e]))}function Ce(e){return"number"!==typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Re(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ne(e,t,r){let{reference:n,floating:o}=e;const i=Pe(t),l=Ae(t),a=je(l),s=ke(t),u="y"===i,c=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,d=n[a]/2-o[a]/2;let p;switch(s){case"top":p={x:c,y:n.y-o.height};break;case"bottom":p={x:c,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-o.width,y:f};break;default:p={x:n.x,y:n.y}}switch(Fe(t)){case"start":p[l]-=d*(r&&u?-1:1);break;case"end":p[l]+=d*(r&&u?-1:1)}return p}async function Ie(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=_e(t,e),h=Ce(p),v=a[d?"floating"===f?"reference":"floating":f],m=Re(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(v)))||r?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),y="floating"===f?{...l.floating,x:n,y:o}:l.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},w=Re(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:g,strategy:s}):y);return{top:(m.top-w.top+h.top)/b.y,bottom:(w.bottom-m.bottom+h.bottom)/b.y,left:(m.left-w.left+h.left)/b.x,right:(w.right-m.right+h.right)/b.x}}const De=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...m}=_e(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const y=ke(o),g=ke(a)===a,b=await(null==s.isRTL?void 0:s.isRTL(u.floating)),w=d||(g||!v?[Te(a)]:function(e){const t=Te(e);return[Ve(e),t,Ve(t)]}(a));d||"none"===h||w.push(...function(e,t,r,n){const o=Fe(e);let i=function(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:l;default:return[]}}(ke(e),"start"===r,n);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Ve)))),i}(a,v,h,b));const E=[a,...w],x=await Ie(t,m),O=[];let S=(null==(n=i.flip)?void 0:n.overflows)||[];if(c&&O.push(x[y]),f){const e=function(e,t,r){void 0===r&&(r=!1);const n=Fe(e),o=Ae(e),i=je(o);let l="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Te(l)),[l,Te(l)]}(o,l,b);O.push(x[e[0]],x[e[1]])}if(S=[...S,{placement:o,overflows:O}],!O.every((e=>e<=0))){var _,k;const e=((null==(_=i.flip)?void 0:_.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let r=null==(k=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!r)switch(p){case"bestFit":{var F;const e=null==(F=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:F[0];e&&(r=e);break}case"initialPlacement":r=a}if(o!==r)return{reset:{placement:r}}}return{}}}};const Me=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),l=ke(r),a=Fe(r),s="y"===Pe(r),u=["left","top"].includes(l)?-1:1,c=i&&s?-1:1,f=_e(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"===typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"===typeof h&&(p="end"===a?-1*h:h),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}(t,e);return l===(null==(r=a.offset)?void 0:r.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},Be=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...s}=_e(e,t),u={x:r,y:n},c=await Ie(t,s),f=Pe(ke(o)),d=Le(f);let p=u[d],h=u[f];if(i){const e="y"===d?"bottom":"right";p=Se(p+c["y"===d?"top":"left"],p,p-c[e])}if(l){const e="y"===f?"bottom":"right";h=Se(h+c["y"===f?"top":"left"],h,h-c[e])}const v=a.fn({...t,[d]:p,[f]:h});return{...v,data:{x:v.x-r,y:v.y-n}}}}};function $e(e){return qe(e)?(e.nodeName||"").toLowerCase():"#document"}function We(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ze(e){var t;return null==(t=(qe(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function qe(e){return e instanceof Node||e instanceof We(e).Node}function He(e){return e instanceof Element||e instanceof We(e).Element}function Ge(e){return e instanceof HTMLElement||e instanceof We(e).HTMLElement}function Ke(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof We(e).ShadowRoot)}function Ue(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Qe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Je(e){return["table","td","th"].includes($e(e))}function Xe(e){const t=Ye(),r=Qe(e);return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function Ye(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ze(e){return["html","body","#document"].includes($e(e))}function Qe(e){return We(e).getComputedStyle(e)}function et(e){return He(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tt(e){if("html"===$e(e))return e;const t=e.assignedSlot||e.parentNode||Ke(e)&&e.host||ze(e);return Ke(t)?t.host:t}function rt(e){const t=tt(e);return Ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ge(t)&&Ue(t)?t:rt(t)}function nt(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=rt(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),l=We(o);return i?t.concat(l,l.visualViewport||[],Ue(o)?o:[],l.frameElement&&r?nt(l.frameElement):[]):t.concat(o,nt(o,[],r))}function ot(e){const t=Qe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ge(e),i=o?e.offsetWidth:r,l=o?e.offsetHeight:n,a=be(r)!==i||be(n)!==l;return a&&(r=i,n=l),{width:r,height:n,$:a}}function it(e){return He(e)?e:e.contextElement}function lt(e){const t=it(e);if(!Ge(t))return Ee(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=ot(t);let l=(i?be(r.width):r.width)/n,a=(i?be(r.height):r.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const at=Ee(0);function st(e){const t=We(e);return Ye()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:at}function ut(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=it(e);let l=Ee(1);t&&(n?He(n)&&(l=lt(n)):l=lt(e));const a=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==We(e))&&t}(i,r,n)?st(i):Ee(0);let s=(o.left+a.x)/l.x,u=(o.top+a.y)/l.y,c=o.width/l.x,f=o.height/l.y;if(i){const e=We(i),t=n&&He(n)?We(n):n;let r=e.frameElement;for(;r&&n&&t!==e;){const e=lt(r),t=r.getBoundingClientRect(),n=Qe(r),o=t.left+(r.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(n.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,f*=e.y,s+=o,u+=i,r=We(r).frameElement}}return Re({width:c,height:f,x:s,y:u})}function ct(e){return ut(ze(e)).left+et(e).scrollLeft}function ft(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=We(e),n=ze(e),o=r.visualViewport;let i=n.clientWidth,l=n.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const e=Ye();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,r);else if("document"===t)n=function(e){const t=ze(e),r=et(e),n=e.ownerDocument.body,o=ge(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ge(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-r.scrollLeft+ct(e);const a=-r.scrollTop;return"rtl"===Qe(n).direction&&(l+=ge(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:l,y:a}}(ze(e));else if(He(t))n=function(e,t){const r=ut(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Ge(e)?lt(e):Ee(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=st(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return Re(n)}function dt(e,t){const r=tt(e);return!(r===t||!He(r)||Ze(r))&&("fixed"===Qe(r).position||dt(r,t))}function pt(e,t,r){const n=Ge(t),o=ze(t),i="fixed"===r,l=ut(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=Ee(0);if(n||!n&&!i)if(("body"!==$e(t)||Ue(o))&&(a=et(t)),n){const e=ut(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=ct(o));return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function ht(e,t){return Ge(e)&&"fixed"!==Qe(e).position?t?t(e):e.offsetParent:null}function vt(e,t){const r=We(e);if(!Ge(e))return r;let n=ht(e,t);for(;n&&Je(n)&&"static"===Qe(n).position;)n=ht(n,t);return n&&("html"===$e(n)||"body"===$e(n)&&"static"===Qe(n).position&&!Xe(n))?r:n||function(e){let t=tt(e);for(;Ge(t)&&!Ze(t);){if(Xe(t))return t;t=tt(t)}return null}(e)||r}const mt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=Ge(r),i=ze(r);if(r===i)return t;let l={scrollLeft:0,scrollTop:0},a=Ee(1);const s=Ee(0);if((o||!o&&"fixed"!==n)&&(("body"!==$e(r)||Ue(i))&&(l=et(r)),Ge(r))){const e=ut(r);a=lt(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-l.scrollLeft*a.x+s.x,y:t.y*a.y-l.scrollTop*a.y+s.y}},getDocumentElement:ze,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?function(e,t){const r=t.get(e);if(r)return r;let n=nt(e,[],!1).filter((e=>He(e)&&"body"!==$e(e))),o=null;const i="fixed"===Qe(e).position;let l=i?tt(e):e;for(;He(l)&&!Ze(l);){const t=Qe(l),r=Xe(l);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Ue(l)&&!r&&dt(e,l))?n=n.filter((e=>e!==l)):o=t,l=tt(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=i[0],a=i.reduce(((e,r)=>{const n=ft(t,r,o);return e.top=ge(n.top,e.top),e.right=ye(n.right,e.right),e.bottom=ye(n.bottom,e.bottom),e.left=ge(n.left,e.left),e}),ft(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:vt,getElementRects:async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||vt,i=this.getDimensions;return{reference:pt(t,await o(r),n),floating:{x:0,y:0,...await i(r)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return ot(e)},getScale:lt,isElement:He,isRTL:function(e){return"rtl"===Qe(e).direction}};function yt(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"===typeof ResizeObserver,layoutShift:a="function"===typeof IntersectionObserver,animationFrame:s=!1}=n,u=it(e),c=o||i?[...u?nt(u):[],...nt(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)}));const f=u&&a?function(e,t){let r,n=null;const o=ze(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}return function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const p={rootMargin:-we(c)+"px "+-we(o.clientWidth-(u+f))+"px "+-we(o.clientHeight-(c+d))+"px "+-we(u)+"px",threshold:ge(0,ye(1,s))||1};let h=!0;function v(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return l();t?l(!1,t):r=setTimeout((()=>{l(!1,1e-7)}),100)}h=!1}try{n=new IntersectionObserver(v,{...p,root:o.ownerDocument})}catch(m){n=new IntersectionObserver(v,p)}n.observe(e)}(!0),i}(u,r):null;let d,p=-1,h=null;l&&(h=new ResizeObserver((e=>{let[n]=e;n&&n.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{h&&h.observe(t)}))),r()})),u&&!s&&h.observe(u),h.observe(t));let v=s?ut(e):null;return s&&function t(){const n=ut(e);!v||n.x===v.x&&n.y===v.y&&n.width===v.width&&n.height===v.height||r();v=n,d=requestAnimationFrame(t)}(),r(),()=>{c.forEach((e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)})),f&&f(),h&&h.disconnect(),h=null,s&&cancelAnimationFrame(d)}}const gt=(e,t,r)=>{const n=new Map,o={platform:mt,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:l}=r,a=i.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=Ne(u,n,s),d=n,p={},h=0;for(let v=0;v<a.length;v++){const{name:r,fn:i}=a[v],{x:m,y:y,data:g,reset:b}=await i({x:c,y:f,initialPlacement:n,placement:d,strategy:o,middlewareData:p,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=m?m:c,f=null!=y?y:f,p={...p,[r]:{...p[r],...g}},b&&h<=50&&(h++,"object"===typeof b&&(b.placement&&(d=b.placement),b.rects&&(u=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:f}=Ne(u,d,s))),v=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},bt="react-tooltip-core-styles",wt="react-tooltip-base-styles",Et={core:!1,base:!1};function xt({css:e,id:t=wt,type:r="base",ref:n}){var o,i;if(!e||"undefined"==typeof document||Et[r])return;if("core"===r&&"undefined"!=typeof process&&(null===(o=null===process||void 0===process?void 0:{MOCK:void 0})||void 0===o?void 0:o.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==r&&"undefined"!=typeof process&&(null===(i=null===process||void 0===process?void 0:{MOCK:void 0})||void 0===i?void 0:i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===r&&(t=bt),n||(n={});const{insertAt:l}=n;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.id=t,s.type="text/css","top"===l&&a.firstChild?a.insertBefore(s,a.firstChild):a.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e)),Et[r]=!0}const Ot=(e,t,r)=>{let n=null;return function(...o){const i=()=>{n=null,r||e.apply(this,o)};r&&!n&&(e.apply(this,o),n=setTimeout(i,t)),r||(n&&clearTimeout(n),n=setTimeout(i,t))}},St="DEFAULT_TOOLTIP_ID",_t={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},kt=(0,c.createContext)({getTooltipData:()=>_t});function Ft(e=St){return(0,c.useContext)(kt).getTooltipData(e)}const Lt="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,jt=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const r=t.getPropertyValue(e);return"auto"===r||"scroll"===r}))},Pt=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(jt(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},At=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:r=null,place:n="top",offset:o=10,strategy:i="absolute",middlewares:l=[Me(Number(o)),De(),Be({padding:5})],border:a})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};const s=l;return r?(s.push({name:"arrow",options:u={element:r,padding:5},async fn(e){const{x:t,y:r,placement:n,rects:o,platform:i,elements:l,middlewareData:a}=e,{element:s,padding:c=0}=_e(u,e)||{};if(null==s)return{};const f=Ce(c),d={x:t,y:r},p=Ae(n),h=je(p),v=await i.getDimensions(s),m="y"===p,y=m?"top":"left",g=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=o.reference[h]+o.reference[p]-d[p]-o.floating[h],E=d[p]-o.reference[p],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s));let O=x?x[b]:0;O&&await(null==i.isElement?void 0:i.isElement(x))||(O=l.floating[b]||o.floating[h]);const S=w/2-E/2,_=O/2-v[h]/2-1,k=ye(f[y],_),F=ye(f[g],_),L=k,j=O-v[h]-F,P=O/2-v[h]/2+S,A=Se(L,P,j),V=!a.arrow&&null!=Fe(n)&&P!=A&&o.reference[h]/2-(P<L?k:F)-v[h]/2<0,T=V?P<L?P-L:P-j:0;return{[p]:d[p]+T,data:{[p]:A,centerOffset:P-A-T,...V&&{alignmentOffset:T}},reset:V}}}),gt(e,t,{placement:n,strategy:i,middleware:s}).then((({x:e,y:t,placement:r,middlewareData:n})=>{var o,i;const l={left:`${e}px`,top:`${t}px`,border:a},{x:s,y:u}=null!==(o=n.arrow)&&void 0!==o?o:{x:0,y:0},c=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]])&&void 0!==i?i:"bottom",f=a&&{borderBottom:a,borderRight:a};let d=0;if(a){const e=`${a}`.match(/(\d+)px/);d=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:l,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=u?`${u}px`:"",right:"",bottom:"",...f,[c]:`-${4+d}px`},place:r}}))):gt(e,t,{placement:"bottom",strategy:i,middleware:s}).then((({x:e,y:t,placement:r})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:r})));var u};var Vt={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Tt={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Ct=({forwardRef:e,id:t,className:r,classNameArrow:n,variant:o="dark",anchorId:i,anchorSelect:l,place:a="top",offset:s=10,events:u=["hover"],openOnClick:f=!1,positionStrategy:d="absolute",middlewares:p,wrapper:h,delayShow:v=0,delayHide:m=0,float:y=!1,hidden:g=!1,noArrow:b=!1,clickable:w=!1,closeOnEsc:E=!1,closeOnScroll:x=!1,closeOnResize:O=!1,openEvents:S,closeEvents:_,globalCloseEvents:k,imperativeModeOnly:F,style:L,position:j,afterShow:P,afterHide:A,content:V,contentWrapperRef:T,isOpen:C,setIsOpen:R,activeAnchor:N,setActiveAnchor:I,border:D,opacity:M,arrowColor:B,role:$="tooltip"})=>{var W;const z=(0,c.useRef)(null),q=(0,c.useRef)(null),H=(0,c.useRef)(null),G=(0,c.useRef)(null),[K,U]=(0,c.useState)(a),[J,X]=(0,c.useState)({}),[Y,Z]=(0,c.useState)({}),[Q,ee]=(0,c.useState)(!1),[te,re]=(0,c.useState)(!1),[ne,oe]=(0,c.useState)(null),ie=(0,c.useRef)(!1),le=(0,c.useRef)(null),{anchorRefs:se,setActiveAnchor:ue}=Ft(t),ce=(0,c.useRef)(!1),[fe,de]=(0,c.useState)([]),pe=(0,c.useRef)(!1),he=f||u.includes("click"),ve=he||(null==S?void 0:S.click)||(null==S?void 0:S.dblclick)||(null==S?void 0:S.mousedown),me=S?{...S}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!S&&he&&Object.assign(me,{mouseenter:!1,focus:!1,click:!0});const ye=_?{..._}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!_&&he&&Object.assign(ye,{mouseleave:!1,blur:!1});const ge=k?{...k}:{escape:E||!1,scroll:x||!1,resize:O||!1,clickOutsideAnchor:ve||!1};F&&(Object.assign(me,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(ye,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(ge,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Lt((()=>(pe.current=!0,()=>{pe.current=!1})),[]);const be=e=>{pe.current&&(e&&re(!0),setTimeout((()=>{pe.current&&(null==R||R(e),void 0===C&&ee(e))}),10))};(0,c.useEffect)((()=>{if(void 0===C)return()=>null;C&&re(!0);const e=setTimeout((()=>{ee(C)}),10);return()=>{clearTimeout(e)}}),[C]),(0,c.useEffect)((()=>{Q!==ie.current&&(ie.current=Q,Q&&(null==P||P()))}),[Q]);const we=(e=v)=>{H.current&&clearTimeout(H.current),H.current=setTimeout((()=>{be(!0)}),e)},Ee=(e=m)=>{G.current&&clearTimeout(G.current),G.current=setTimeout((()=>{ce.current||be(!1)}),e)},xe=e=>{var t;if(!e)return;const r=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==r?void 0:r.isConnected))return I(null),void ue({current:null});v?we():be(!0),I(r),ue({current:r}),G.current&&clearTimeout(G.current)},Oe=()=>{w?Ee(m||100):m?Ee():be(!1),H.current&&clearTimeout(H.current)},Se=({x:e,y:t})=>{var r;const n={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};At({place:null!==(r=null==ne?void 0:ne.place)&&void 0!==r?r:a,offset:s,elementReference:n,tooltipReference:z.current,tooltipArrowReference:q.current,strategy:d,middlewares:p,border:D}).then((e=>{Object.keys(e.tooltipStyles).length&&X(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&Z(e.tooltipArrowStyles),U(e.place)}))},_e=e=>{if(!e)return;const t=e,r={x:t.clientX,y:t.clientY};Se(r),le.current=r},ke=e=>{var t;if(!Q)return;const r=e.target;(null===(t=z.current)||void 0===t?void 0:t.contains(r))||[document.querySelector(`[id='${i}']`),...fe].some((e=>null==e?void 0:e.contains(r)))||(be(!1),H.current&&clearTimeout(H.current))},Fe=Ot(xe,50,!0),Le=Ot(Oe,50,!0),je=(0,c.useCallback)((()=>{var e,t;const r=null!==(e=null==ne?void 0:ne.position)&&void 0!==e?e:j;r?Se(r):y?le.current&&Se(le.current):(null==N?void 0:N.isConnected)&&At({place:null!==(t=null==ne?void 0:ne.place)&&void 0!==t?t:a,offset:s,elementReference:N,tooltipReference:z.current,tooltipArrowReference:q.current,strategy:d,middlewares:p,border:D}).then((e=>{pe.current&&(Object.keys(e.tooltipStyles).length&&X(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&Z(e.tooltipArrowStyles),U(e.place))}))}),[Q,N,V,L,a,null==ne?void 0:ne.place,s,d,j,null==ne?void 0:ne.position,y]);(0,c.useEffect)((()=>{var e,t;const r=new Set(se);fe.forEach((e=>{r.add({current:e})}));const n=document.querySelector(`[id='${i}']`);n&&r.add({current:n});const o=()=>{be(!1)},l=Pt(N),a=Pt(z.current);ge.scroll&&(window.addEventListener("scroll",o),null==l||l.addEventListener("scroll",o),null==a||a.addEventListener("scroll",o));let s=null;ge.resize?window.addEventListener("resize",o):N&&z.current&&(s=yt(N,z.current,je,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const u=e=>{"Escape"===e.key&&be(!1)};ge.escape&&window.addEventListener("keydown",u),ge.clickOutsideAnchor&&window.addEventListener("click",ke);const c=[],f=e=>{Q||xe(e)},d=()=>{Q&&Oe()},p=["mouseenter","mouseleave","focus","blur"],h=["click","dblclick","mousedown","mouseup"];Object.entries(me).forEach((([e,t])=>{t&&(p.includes(e)?c.push({event:e,listener:Fe}):h.includes(e)&&c.push({event:e,listener:f}))})),Object.entries(ye).forEach((([e,t])=>{t&&(p.includes(e)?c.push({event:e,listener:Le}):h.includes(e)&&c.push({event:e,listener:d}))})),y&&c.push({event:"mousemove",listener:_e});const v=()=>{ce.current=!0},m=()=>{ce.current=!1,Oe()};return w&&!ve&&(null===(e=z.current)||void 0===e||e.addEventListener("mouseenter",v),null===(t=z.current)||void 0===t||t.addEventListener("mouseleave",m)),c.forEach((({event:e,listener:t})=>{r.forEach((r=>{var n;null===(n=r.current)||void 0===n||n.addEventListener(e,t)}))})),()=>{var e,t;ge.scroll&&(window.removeEventListener("scroll",o),null==l||l.removeEventListener("scroll",o),null==a||a.removeEventListener("scroll",o)),ge.resize?window.removeEventListener("resize",o):null==s||s(),ge.clickOutsideAnchor&&window.removeEventListener("click",ke),ge.escape&&window.removeEventListener("keydown",u),w&&!ve&&(null===(e=z.current)||void 0===e||e.removeEventListener("mouseenter",v),null===(t=z.current)||void 0===t||t.removeEventListener("mouseleave",m)),c.forEach((({event:e,listener:t})=>{r.forEach((r=>{var n;null===(n=r.current)||void 0===n||n.removeEventListener(e,t)}))}))}}),[N,je,te,se,fe,S,_,k,he]),(0,c.useEffect)((()=>{var e,r;let n=null!==(r=null!==(e=null==ne?void 0:ne.anchorSelect)&&void 0!==e?e:l)&&void 0!==r?r:"";!n&&t&&(n=`[data-tooltip-id='${t}']`);const o=new MutationObserver((e=>{const r=[],o=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&e.target.getAttribute("data-tooltip-id")===t&&r.push(e.target),"childList"===e.type){if(N){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(n)try{o.push(...t.filter((e=>e.matches(n)))),o.push(...t.flatMap((e=>[...e.querySelectorAll(n)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,N))&&(re(!1),be(!1),I(null),H.current&&clearTimeout(H.current),G.current&&clearTimeout(G.current),!0)}))}if(n)try{const t=[...e.addedNodes].filter((e=>1===e.nodeType));r.push(...t.filter((e=>e.matches(n)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(n)])))}catch(e){}}})),(r.length||o.length)&&de((e=>[...e.filter((e=>!o.includes(e))),...r]))}));return o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{o.disconnect()}}),[t,l,null==ne?void 0:ne.anchorSelect,N]),(0,c.useEffect)((()=>{je()}),[je]),(0,c.useEffect)((()=>{if(!(null==T?void 0:T.current))return()=>null;const e=new ResizeObserver((()=>{je()}));return e.observe(T.current),()=>{e.disconnect()}}),[V,null==T?void 0:T.current]),(0,c.useEffect)((()=>{var e;const t=document.querySelector(`[id='${i}']`),r=[...fe,t];N&&r.includes(N)||I(null!==(e=fe[0])&&void 0!==e?e:t)}),[i,fe,N]),(0,c.useEffect)((()=>()=>{H.current&&clearTimeout(H.current),G.current&&clearTimeout(G.current)}),[]),(0,c.useEffect)((()=>{var e;let r=null!==(e=null==ne?void 0:ne.anchorSelect)&&void 0!==e?e:l;if(!r&&t&&(r=`[data-tooltip-id='${t}']`),r)try{const e=Array.from(document.querySelectorAll(r));de(e)}catch(e){de([])}}),[t,l,null==ne?void 0:ne.anchorSelect]);const Pe=null!==(W=null==ne?void 0:ne.content)&&void 0!==W?W:V,Ae=Q&&Object.keys(J).length>0;return(0,c.useImperativeHandle)(e,(()=>({open:t=>{if(null==t?void 0:t.anchorSelect)try{document.querySelector(t.anchorSelect)}catch(e){return void console.warn(`[react-tooltip] "${t.anchorSelect}" is not a valid CSS selector`)}oe(null!=t?t:null),(null==t?void 0:t.delay)?we(t.delay):be(!0)},close:e=>{(null==e?void 0:e.delay)?Ee(e.delay):be(!1)},activeAnchor:N,place:K,isOpen:Boolean(te&&!g&&Pe&&Ae)}))),te&&!g&&Pe?c.createElement(h,{id:t,role:$,className:ae("react-tooltip",Vt.tooltip,Tt.tooltip,Tt[o],r,`react-tooltip__place-${K}`,Vt[Ae?"show":"closing"],Ae?"react-tooltip__show":"react-tooltip__closing","fixed"===d&&Vt.fixed,w&&Vt.clickable),onTransitionEnd:e=>{Q||"opacity"!==e.propertyName||(re(!1),oe(null),null==A||A())},style:{...L,...J,opacity:void 0!==M&&Ae?M:void 0},ref:z},Pe,c.createElement(h,{className:ae("react-tooltip-arrow",Vt.arrow,Tt.arrow,n,b&&Vt.noArrow),style:{...Y,background:B?`linear-gradient(to right bottom, transparent 50%, ${B} 50%)`:void 0},ref:q})):null},Rt=({content:e})=>c.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Nt=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),It=c.forwardRef((({id:e,anchorId:t,anchorSelect:r,content:n,html:o,render:i,className:l,classNameArrow:a,variant:s="dark",place:u="top",offset:f=10,wrapper:d="div",children:p=null,events:h=["hover"],openOnClick:v=!1,positionStrategy:m="absolute",middlewares:y,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:E=!1,noArrow:x=!1,clickable:O=!1,closeOnEsc:S=!1,closeOnScroll:_=!1,closeOnResize:k=!1,openEvents:F,closeEvents:L,globalCloseEvents:j,imperativeModeOnly:P=!1,style:A,position:V,isOpen:T,disableStyleInjection:C=!1,border:R,opacity:N,arrowColor:I,setIsOpen:D,afterShow:M,afterHide:B,role:$="tooltip"},W)=>{const[z,q]=(0,c.useState)(n),[H,G]=(0,c.useState)(o),[K,U]=(0,c.useState)(u),[J,X]=(0,c.useState)(s),[Y,Z]=(0,c.useState)(f),[Q,ee]=(0,c.useState)(g),[te,re]=(0,c.useState)(b),[ne,oe]=(0,c.useState)(w),[ie,le]=(0,c.useState)(E),[se,ue]=(0,c.useState)(d),[ce,fe]=(0,c.useState)(h),[de,pe]=(0,c.useState)(m),[he,ve]=(0,c.useState)(null),[me,ye]=(0,c.useState)(null),ge=(0,c.useRef)(C),{anchorRefs:be,activeAnchor:we}=Ft(e),Ee=e=>null==e?void 0:e.getAttributeNames().reduce(((t,r)=>{var n;return r.startsWith("data-tooltip-")&&(t[r.replace(/^data-tooltip-/,"")]=null!==(n=null==e?void 0:e.getAttribute(r))&&void 0!==n?n:null),t}),{}),xe=e=>{const t={place:e=>{var t;U(null!==(t=e)&&void 0!==t?t:u)},content:e=>{q(null!=e?e:n)},html:e=>{G(null!=e?e:o)},variant:e=>{var t;X(null!==(t=e)&&void 0!==t?t:s)},offset:e=>{Z(null===e?f:Number(e))},wrapper:e=>{var t;ue(null!==(t=e)&&void 0!==t?t:d)},events:e=>{const t=null==e?void 0:e.split(" ");fe(null!=t?t:h)},"position-strategy":e=>{var t;pe(null!==(t=e)&&void 0!==t?t:m)},"delay-show":e=>{ee(null===e?g:Number(e))},"delay-hide":e=>{re(null===e?b:Number(e))},float:e=>{oe(null===e?w:"true"===e)},hidden:e=>{le(null===e?E:"true"===e)},"class-name":e=>{ve(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,r])=>{var n;null===(n=t[e])||void 0===n||n.call(t,r)}))};(0,c.useEffect)((()=>{q(n)}),[n]),(0,c.useEffect)((()=>{G(o)}),[o]),(0,c.useEffect)((()=>{U(u)}),[u]),(0,c.useEffect)((()=>{X(s)}),[s]),(0,c.useEffect)((()=>{Z(f)}),[f]),(0,c.useEffect)((()=>{ee(g)}),[g]),(0,c.useEffect)((()=>{re(b)}),[b]),(0,c.useEffect)((()=>{oe(w)}),[w]),(0,c.useEffect)((()=>{le(E)}),[E]),(0,c.useEffect)((()=>{pe(m)}),[m]),(0,c.useEffect)((()=>{ge.current!==C&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[C]),(0,c.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===C,disableBase:C}}))}),[]),(0,c.useEffect)((()=>{var n;const o=new Set(be);let i=r;if(!i&&e&&(i=`[data-tooltip-id='${e}']`),i)try{document.querySelectorAll(i).forEach((e=>{o.add({current:e})}))}catch(n){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const l=document.querySelector(`[id='${t}']`);if(l&&o.add({current:l}),!o.size)return()=>null;const a=null!==(n=null!=me?me:l)&&void 0!==n?n:we.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const r=Ee(a);xe(r)}))})),u={attributes:!0,childList:!1,subtree:!1};if(a){const e=Ee(a);xe(e),s.observe(a,u)}return()=>{s.disconnect()}}),[be,we,me,t,r]),(0,c.useEffect)((()=>{(null==A?void 0:A.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),R&&!Nt("border",`${R}`)&&console.warn(`[react-tooltip] "${R}" is not a valid \`border\`.`),(null==A?void 0:A.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),N&&!Nt("opacity",`${N}`)&&console.warn(`[react-tooltip] "${N}" is not a valid \`opacity\`.`)}),[]);let Oe=p;const Se=(0,c.useRef)(null);if(i){const e=i({content:null!=z?z:null,activeAnchor:me});Oe=e?c.createElement("div",{ref:Se,className:"react-tooltip-content-wrapper"},e):null}else z&&(Oe=z);H&&(Oe=c.createElement(Rt,{content:H}));const _e={forwardRef:W,id:e,anchorId:t,anchorSelect:r,className:ae(l,he),classNameArrow:a,content:Oe,contentWrapperRef:Se,place:K,variant:J,offset:Y,wrapper:se,events:ce,openOnClick:v,positionStrategy:de,middlewares:y,delayShow:Q,delayHide:te,float:ne,hidden:ie,noArrow:x,clickable:O,closeOnEsc:S,closeOnScroll:_,closeOnResize:k,openEvents:F,closeEvents:L,globalCloseEvents:j,imperativeModeOnly:P,style:A,position:V,isOpen:T,border:R,opacity:N,arrowColor:I,setIsOpen:D,afterShow:M,afterHide:B,activeAnchor:me,setActiveAnchor:e=>ye(e),role:$};return c.createElement(Ct,{..._e})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||xt({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||xt({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));var Dt=["children","content","className"],Mt=f().forwardRef((function(e,t){var r=e.children,n=e.content,o=e.className;s(e,Dt);return f().createElement(f().Fragment,null,f().createElement("a",{className:o,id:"custom-tooltip",ref:t},r),f().createElement(It,{className:"custom-tooltip",anchorSelect:"#custom-tooltip",content:n}))})),Bt=["colon","required","showLabel","labelWidth","labelAlign","gutter","tooltip","error","suffix","footer"],$t=["label","labelStyle","inline","layout","compact","readOnly","className","style","children"];function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var zt="field-item",qt=function(e){return"".concat(zt,"--").concat(e)},Ht=f().forwardRef((function(e,t){var n=e.colon,o=e.required,i=e.showLabel,l=void 0===i||i,u=e.labelWidth,d=e.labelAlign,p=e.gutter,h=e.tooltip,v=e.error,m=e.suffix,y=e.footer,g=s(e,Bt),b=g.label,w=g.labelStyle,E=g.inline,x=g.layout,O=void 0===x?"horizontal":x,_=g.compact,k=g.readOnly,F=g.className,L=g.style,j=g.children,P=s(g,$t),A=(0,c.useRef)(null),V=(0,c.useRef)(null),T=r((0,c.useState)(),2),C=T[0],R=T[1],N=se()(zt,O&&qt(O),!0===o&&qt("required"),!0===_&&qt("compact"),v&&qt("error"),!0===E&&qt("inline"),!0===k&&qt("readOnly"),F||""),I=se()("label__container",!0===o?"label__container--required":""),D=function(){var e,t,r=(null===(e=A.current)||void 0===e?void 0:e.offsetHeight)||0,n=(null===(t=V.current)||void 0===t?void 0:t.offsetHeight)||0;return r-n>0&&"horizontal"===O&&r<=36?(r-n)/2:void 0};(0,c.useEffect)((function(){R(D())}),[]);var M=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({marginRight:p,width:u,textAlign:d,marginTop:C||D()},w),B=se()("control__container",v?"control__container--error":"");return f().createElement("div",G({ref:t,className:N,style:L},de(P)),!S(b)&&l?f().createElement("div",{className:I,style:M},f().createElement("label",{ref:V},!0===n?f().createElement(f().Fragment,null,b,"\uff1a"):b,h&&f().createElement(Mt,{content:h},f().createElement(me,{name:"wenhao",className:"label__tooltip"})))):null,f().createElement("div",{className:B},f().createElement("div",{ref:A,className:"item__control"},j,!S(m)&&f().createElement("div",{className:"item__suffix"},m)),!S(y)&&f().createElement("div",{className:"item__footer"},y),f().createElement("div",{className:"item__message"},v)))})),Gt=["form"],Kt=["children"],Ut=["name","index","trigger","validateTrigger","valueProp","valueGetter","valueSetter","errorClassName","onFieldsChange","onValuesChange","initialValue","rules","component"],Jt=f().forwardRef((function(e,t){var n=(0,c.useContext)(d),o=n.form,i=s(n,Gt),l=Object.assign(i,e),a=l.children,u=s(l,Kt),p=u.name,h=u.index,v=u.trigger,m=u.validateTrigger,y=u.valueProp,g=u.valueGetter,b=u.valueSetter,w=u.errorClassName,E=u.onFieldsChange,x=u.onValuesChange,O=u.initialValue,S=u.rules,_=u.component,k=void 0===_?Ht:_,F=s(u,Ut),L=r(ie(o,p),1)[0],j=(null===F||void 0===F?void 0:F.nonform)||(null===F||void 0===F?void 0:F.readOnly),P=!(!(0,c.useMemo)((function(){return S instanceof Array&&(null===S||void 0===S?void 0:S.find((function(e){return!0===(null===e||void 0===e?void 0:e.required)})))}),[S])||!0===j)||(null===F||void 0===F?void 0:F.required),A=k,V=f().createElement(H,{nonform:j,name:p,index:h,trigger:v,validateTrigger:m,valueProp:y,valueGetter:g,valueSetter:b,rules:S,initialValue:O,errorClassName:w,onFieldsChange:E,onValuesChange:x},a);return A?f().createElement(A,G({},u,{required:P,ref:t,error:!0!==j&&L}),V):V}));Jt.displayName="Form.Item";var Xt=["tagName"],Yt=["className","style","children","initialValues","tagName","onSubmit","onReset","watch"];function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var er=f().forwardRef((function(e,t){var r=e.tagName,n=void 0===r?"form":r,o=s(e,Xt);return f().createElement(n,Qt(Qt({},o),{},{ref:t}))}));function tr(e){var t=e.className,n=void 0===t?"":t,o=e.style,i=e.children,l=e.initialValues,a=e.tagName,u=e.onSubmit,h=e.onReset,v=e.watch,m=s(e,Yt),y="simple-form "+n,g=null===m||void 0===m?void 0:m.form;return(0,c.useEffect)((function(){var e;if(g&&v)return null===(e=Object.entries(v))||void 0===e||e.forEach((function(e){var t=r(e,2),n=t[0],o=t[1];"function"===typeof o?null===g||void 0===g||g.subscribeFormValue(n,o):O(o)&&("function"===typeof o.handler&&(null===g||void 0===g||g.subscribeFormValue(n,o.handler)),o.immediate&&o.handler(null===g||void 0===g?void 0:g.getFieldValue(n),null===g||void 0===g?void 0:g.getLastValue(n)))})),function(){var e;null===(e=Object.entries(v||{}))||void 0===e||e.forEach((function(e){var t=r(e,1)[0];null===g||void 0===g||g.unsubscribeFormValue(t)}))}}),[v]),f().createElement(er,{tagName:a,className:y,style:o,onSubmit:function(e){e.preventDefault(),null===u||void 0===u||u(e)},onReset:h},f().createElement(d.Provider,{value:m},f().createElement(p.Provider,{value:l},i)))}tr.Item=Jt}(),o}()}));
|
|
1
|
+
!function(e,t){if("object"===typeof exports&&"object"===typeof module)module.exports=t(require("react"));else if("function"===typeof define&&define.amd)define(["react"],t);else{var r="object"===typeof exports?t(require("react")):t(e.React);for(var n in r)("object"===typeof exports?exports:e)[n]=r[n]}}(self,(function(e){return function(){var t={910:function(e,t,r){"use strict";r.r(t);var n,o=r(359);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}t.default=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:200,height:200,className:"wenhao_svg__icon",viewBox:"0 0 1024 1024"},e),n||(n=o.createElement("path",{fill:"#272636",d:"M510.827 64.042c247.096.027 448.767 201.816 448.28 448.541-.49 247.641-201.839 448.844-448.57 448.241C263.075 960.22 62.84 759.868 62.513 512.535c-.329-246.882 201.23-448.521 448.314-448.493m405.948 448.323c-.036-223.591-181.117-405.318-405.726-405.778-223.89-.459-405.925 181.253-406.16 405.79-.232 223.613 181.45 405.166 405.674 405.805 223.336.636 406.248-182.097 406.212-405.817M535.795 657.3h-56.939c0-11.373-.608-22.537.128-33.612 1.485-22.365 6.658-43.815 18.344-63.301 9.094-15.164 20.675-28.25 33.54-40.276 15.98-14.935 32.149-29.678 47.81-44.94 9.223-8.985 17.42-19.009 21.68-31.483 10.208-29.883 3.682-56.57-16.199-80.337-33.015-39.47-88.235-40.821-122.05-21.066-21.314 12.45-34.093 31.502-41.553 54.414-3.344 10.272-5.653 20.88-8.65 32.155l-60.637-7.199c.779-5.205 1.337-10.1 2.263-14.924 5.196-27.06 14.59-52.297 32.253-73.943 21.52-26.37 49.555-41.723 82.58-48.061 34.471-6.616 68.92-5.902 102.442 4.986 42.92 13.94 74.68 41.177 89.113 84.564 13.857 41.655 7.048 81.004-20.227 116.156-17.302 22.299-38.82 40.415-59.041 59.831-8.896 8.542-17.896 17.137-25.623 26.697-11.477 14.198-15.858 31.37-17.242 49.325-.781 10.137-1.313 20.294-1.992 31.014m-60.637 120.44V710.33h67.458v67.411z"})))}},779:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var l=o.apply(null,r);l&&e.push(l)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},490:function(e,t,r){var n={"./wenhao.svg":910};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=490},359:function(t){"use strict";t.exports=e},609:function(e,t,r){var n=r(425).default;function o(){"use strict";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,l=i.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),l=new T(n||[]);return a(i,"_invoke",{value:j(e,r,l)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var v="suspendedStart",m="suspendedYield",y="executing",g="completed",b={};function w(){}function E(){}function x(){}var O={};d(O,u,(function(){return this}));var S=Object.getPrototypeOf,_=S&&S(S(C([])));_&&_!==i&&l.call(_,u)&&(O=_);var k=x.prototype=w.prototype=Object.create(O);function F(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(o,i,a,s){var u=h(e[o],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&l.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function j(e,r,n){var o=v;return function(i,l){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw l;return{value:t,done:!0}}for(n.method=i,n.arg=l;;){var a=n.delegate;if(a){var s=P(a,n);if(s){if(s===b)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=h(e,r,n);if("normal"===u.type){if(o=n.done?g:m,u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var l=i.arg;return l?l.done?(r[e.resultName]=l.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):l:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function V(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(l.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return E.prototype=x,a(k,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:E,configurable:!0}),E.displayName=d(x,f,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,f,"GeneratorFunction")),e.prototype=Object.create(k),e},r.awrap=function(e){return{__await:e}},F(L.prototype),d(L.prototype,c,(function(){return this})),r.AsyncIterator=L,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var l=new L(p(e,t,n,o),i);return r.isGeneratorFunction(t)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},F(k),d(k,f,"Generator"),d(k,u,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=C,T.prototype={constructor:T,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(V),!e)for(var r in this)"t"===r.charAt(0)&&l.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=l.call(i,"catchLoc"),u=l.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&l.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),V(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;V(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},425:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},841:function(e,t,r){var n=r(609)();e.exports=n;try{regeneratorRuntime=n}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function t(t,r){if(t){if("string"===typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}function r(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(u)throw o}}return a}}(e,r)||t(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}function a(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(r){return function(t){if(Array.isArray(t))return e(t)}(r)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||t(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(o),n.d(o,{Form:function(){return tr},FormInitialValuesContext:function(){return p},FormItem:function(){return Jt},Item:function(){return Ht},ItemCore:function(){return H},SimpleForm:function(){return ne},SimpleFormContext:function(){return d},comparePrefix:function(){return V},deepGet:function(){return P},deepSet:function(){return A},formatFormKey:function(){return L},getRulesTriggers:function(){return z},getTriggers:function(){return q},getValueFromEvent:function(){return C},getValuePropName:function(){return T},handleRules:function(){return te},isCanTrigger:function(){return re},isWithBracket:function(){return R},joinFormPath:function(){return N},pathToArr:function(){return F},pickObject:function(){return j},toArray:function(){return I},useFormError:function(){return ie},useFormValues:function(){return le},useSimpleForm:function(){return oe}});var c=n(359),f=n.n(c),d=f().createContext({}),p=f().createContext({});function h(e){return Object.prototype.toString.call(e).slice(8,-1)}function v(e){return"Array"===h(e)}function m(e){if("Object"!==h(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function y(e){return"Null"===h(e)}function g(e){return"Undefined"===h(e)}function b(e,t={}){if(v(e))return e.map((e=>b(e,t)));if(!m(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce(((r,n)=>{if(v(t.props)&&!t.props.includes(n))return r;return function(e,t,r,n,o){const i={}.propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=r),o&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}(r,n,b(e[n],t),e,t.nonenumerable),r}),{})}function w(e){return b(e)}function E(e){return Object.prototype.toString.call(e)}function x(e){return"[object Array]"==E(e)}function O(e){return"[object Object]"==E(e)}function S(e){return void 0===e||null===e||(Array.isArray(e)||"string"===typeof e||e instanceof String?0===e.length:e instanceof Map||e instanceof Set?0===e.size:"[object Object]"==={}.toString.call(e)?0===Object.keys(e).length:"number"===typeof e?isNaN(e):void 0)}function _(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){a=!0,i=e},f:function(){try{l||null==r.return||r.return()}finally{if(a)throw i}}}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function F(e){if(e instanceof Array)return e;if("number"===typeof e)return[e];return("string"===typeof e?e.match(/([^\.\[\]]+)|(\[\d+\])/g):[])||[]}function L(e){return"number"!==typeof e&&"string"!==typeof e?"":"number"===typeof e?e:e.toString().replace(/\]/,"").replace(/\[/,"")}var j=function(e,t){if(void 0===e||null===e)return e;if(O(e)||x(e)){var r={};if(t instanceof Array){var n,o=_(t);try{for(o.s();!(n=o.n()).done;){var i=n.value,l="string"===typeof i||"number"===typeof i?i:N(i),a=P(e,l);void 0!==a&&(r[l.toString()]=a)}}catch(d){o.e(d)}finally{o.f()}}else for(var s=0,u=Object.keys(e);s<u.length;s++){var c=u[s],f=e[c];t(c,f)&&void 0!==f&&(r[c]=f)}return r}};function P(e,t){if("object"===i(e)&&(O(e)||x(e))){var r=F(t);if(null!==r&&void 0!==r&&r.length){var n,o=e,l=_(r);try{for(l.s();!(n=l.n()).done;){var a,s=L(n.value);o=null===(a=o)||void 0===a?void 0:a[s]}}catch(u){l.e(u)}finally{l.f()}return o}}}function A(e,t,r){var n=F(t);if(null===n||void 0===n||!n.length)return e;if(e&&!O(e)&&!x(e))return e;for(var o=function(e){return"number"===typeof e||R(e)},i=S(e)?o(n[0])?[]:{}:w(e),l=i,a=0;a<(null===n||void 0===n?void 0:n.length);a++){var s,u,c=L(n[a]),f=n[a+1];if(void 0===i[c]&&void 0===r)return l;if(a===(null===n||void 0===n?void 0:n.length)-1)if(void 0===r)if(i instanceof Array)null===(s=i)||void 0===s||s.splice(+c,1);else null===(u=i)||void 0===u||delete u[c];else i[c]=r;else S(i[c])&&(i[c]=o(f)?[]:{}),i=i[c]}return l}function V(e,t){var r=F(e),n=F(t);return!(null===n||void 0===n||!n.length)&&((null===r||void 0===r?void 0:r.length)===(null===n||void 0===n?void 0:n.length)&&(null===r||void 0===r?void 0:r.every((function(e,t){return e==n[t]}))))}function T(e,t){return"function"===typeof e?e(t||""):e}function C(e){var t=null===e||void 0===e?void 0:e.target;return t?"checkbox"===t.type?t.checked:t.value:e}var R=function(e){return"string"===typeof e&&/^\[\d+\]$/.test(e)};function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t instanceof Array?t.reduce((function(e,t){var r="string"===typeof t?t:"number"===typeof t?"[".concat(t,"]"):"",n="string"===typeof e?e:"number"===typeof e?"[".concat(e,"]"):"";return R(r)?n&&r?"".concat(n).concat(r):r||n:n&&r?"".concat(n,".").concat(r):r||n}),""):""}function I(e){return e?Array.isArray(e)?e:[e]:[]}var D=["form"],M=["children"],B=["name","valueProp","valueGetter","valueSetter","errorClassName","onFieldsChange","onFieldsMounted","onValuesChange","initialValue","trigger","validateTrigger"];function $(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function z(e){var t=[];if(e instanceof Array)for(var r=0;r<(null===e||void 0===e?void 0:e.length);r++){var n=null===e||void 0===e?void 0:e[r],o=null===n||void 0===n?void 0:n.validateTrigger;o&&(o instanceof Array?t.push.apply(t,u(o)):t.push(o))}return t}function q(e,t,r){return new Set([].concat(u(I(e)),u(I(t)),u(r)))}var H=function(e){var t=(0,c.useContext)(d),n=t.form,o=s(t,D),i=(0,c.useContext)(p),l=Object.assign({},o,e),a=l.children,u=s(l,M),h=u.name,v=u.valueProp,m=void 0===v?"value":v,y=u.valueGetter,g=void 0===y?C:y,b=(u.valueSetter,u.errorClassName),w=(u.onFieldsChange,u.onFieldsMounted),E=u.onValuesChange,x=u.initialValue,O=u.trigger,_=void 0===O?"onChange":O,k=(u.validateTrigger,s(u,B)),F=W(W({},u),{},{valueProp:m,valueGetter:g,trigger:_}),L=(null===k||void 0===k?void 0:k.nonform)||(null===k||void 0===k?void 0:k.readOnly),j=S(h)||!0===L?void 0:h,A=void 0===x?P(i,j):x,V=r((0,c.useState)(),2),T=V[0],R=V[1];j&&(null===n||void 0===n||n.setFieldProps(j,F)),(0,c.useEffect)((function(){if(j&&n)return n.subscribeFormItem(j,(function(e,t){R(e),S(e)&&S(t)||E&&E({name:j,value:e},null===n||void 0===n?void 0:n.getFieldValue())})),function(){n.unsubscribeFormItem(j)}}),[JSON.stringify(j),n,E]),(0,c.useEffect)((function(){if(j&&n){var e=n.getFieldValue(j);return n.setInitialValue(j,null!==A&&void 0!==A?A:e),w&&w({name:j,value:A},null===n||void 0===n?void 0:n.getFieldValue()),function(){j&&(null===n||void 0===n||n.setFieldProps(j,void 0)),j&&n.setInitialValue(j,void 0)}}}),[JSON.stringify(j)]);var N=function(e){if("function"===typeof e){var t=n&&n.getBindProps(j,T)||{};return e({className:b,form:n,bindProps:t})}return e}(a);return f().createElement(f().Fragment,null,N)};function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},G.apply(this,arguments)}function K(e,t,r,n,o,i,l){try{var a=e[i](l),s=a.value}catch(u){return void r(u)}a.done?t(s):Promise.resolve(s).then(n,o)}function U(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function l(e){K(i,n,o,l,a,"next",e)}function a(e){K(i,n,o,l,a,"throw",e)}l(void 0)}))}}function J(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}H.displayName="ItemCore";var X=n(841),Y=n.n(X),Z={required:function(e,t){if("boolean"===typeof e&&S(t))return e},pattern:function(e,t){if("string"===typeof t)return e instanceof RegExp?!e.test(t):"string"===typeof e?!new RegExp(e).test(t):void 0},whitespace:function(e,t){if("boolean"===typeof e&&e&&"string"===typeof t)return/^\s+$/.test(t)||""===t},max:function(e,t){if("number"===typeof e){if("string"===typeof t||t instanceof Array)return t.length>e;if("number"===typeof t)return t>e}},min:function(e,t){if("number"===typeof e){if(void 0===t)return!0;if("string"===typeof t||t instanceof Array)return t.length<e;if("number"===typeof t)return t<e}}},Q=["validateTrigger","message","validator"],ee=function(){var e=U(Y().mark((function e(t,n,o){var i,l,a,u,c,f,d,p,h,v,m,y,g,b;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(l=(i=t||{}).validateTrigger,a=i.message,u=i.validator,c=s(i,Q),re(o,l)&&c){e.next=6;break}return e.abrupt("return");case 6:if("function"!==typeof u){e.next=22;break}return e.prev=7,e.next=10,u(n,(function(e){f=e}));case 10:if(!f){e.next=12;break}return e.abrupt("return",f);case 12:e.next=22;break;case 14:if(e.prev=14,e.t0=e.catch(7),"string"!==typeof e.t0){e.next=18;break}return e.abrupt("return",e.t0);case 18:if("string"!=typeof(d=e.t0).message){e.next=21;break}return e.abrupt("return",d.message);case 21:return e.abrupt("return",a||!0);case 22:p=Object.entries(c),h=0,v=p;case 24:if(!(h<v.length)){e.next=33;break}if(m=r(v[h],2),y=m[0],g=m[1],"function"!==typeof(b=Z[y])){e.next=30;break}if(!0!==b(g,n)){e.next=30;break}return e.abrupt("return",a||!0);case 30:h++,e.next=24;break;case 33:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(t,r,n){return e.apply(this,arguments)}}(),te=function(){var e=U(Y().mark((function e(t,r,n){var o,i,l;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t instanceof Array){e.next=2;break}return e.abrupt("return");case 2:o=0;case 3:if(!(o<t.length)){e.next=13;break}return i=t[o],e.next=7,ee(i,r,n);case 7:if(!(l=e.sent)){e.next=10;break}return e.abrupt("return",l);case 10:o++,e.next=3;break;case 13:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),re=function(e,t){return void 0===e||(void 0===t||("string"===typeof t?t===e:t instanceof Array?t.includes(e):void 0))},ne=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.formItemListeners=[],this.formValueListeners=[],this.formValuesListeners=[],this.errorListeners=[],this.initialValues=void 0,this.values=void 0,this.lastValues=void 0,this.formErrors={},this.fieldPropsMap={},this.initialValues=t,this.fieldPropsMap={},this.formErrors={},this.values=w(t),this.getFieldValue=this.getFieldValue.bind(this),this.getLastValue=this.getLastValue.bind(this),this.setFieldValue=this.setFieldValue.bind(this),this.setFieldsValue=this.setFieldsValue.bind(this),this.getInitialValues=this.getInitialValues.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getFieldError=this.getFieldError.bind(this),this.setFieldError=this.setFieldError.bind(this),this.setFieldsError=this.setFieldsError.bind(this),this.getFieldProps=this.getFieldProps.bind(this),this.setFieldProps=this.setFieldProps.bind(this),this.getBindProps=this.getBindProps.bind(this),this.bindChange=this.bindChange.bind(this),this.reset=this.reset.bind(this),this.validate=this.validate.bind(this),this.subscribeError=this.subscribeError.bind(this),this.unsubscribeError=this.unsubscribeError.bind(this),this.notifyError=this.notifyError.bind(this),this.subscribeFormItem=this.subscribeFormItem.bind(this),this.unsubscribeFormItem=this.unsubscribeFormItem.bind(this),this.notifyFormItem=this.notifyFormItem.bind(this),this.subscribeFormValue=this.subscribeFormValue.bind(this),this.unsubscribeFormValue=this.unsubscribeFormValue.bind(this),this.notifyFormValue=this.notifyFormValue.bind(this),this.subscribeFormValues=this.subscribeFormValues.bind(this),this.unsubscribeFormValues=this.unsubscribeFormValues.bind(this),this.notifyFormValues=this.notifyFormValues.bind(this)}var t,r,n;return t=e,r=[{key:"getFieldProps",value:function(e){return void 0===e?this.fieldPropsMap:null===(t=this.fieldPropsMap)||void 0===t?void 0:t[e];var t}},{key:"bindChange",value:function(e,t,r){if(e){var n=this.getFieldProps(e)||{},o=n.valueGetter,i=n.onFieldsChange,l="function"==typeof o?o(r):void 0;this.setFieldValue(e,l,t),i&&i({name:e,value:l},this.getFieldValue())}}},{key:"getBindProps",value:function(e,t){var r=this;if(e){var n=this.getFieldProps(e),o=this.getFieldValue(e),i=n||{},l=i.valueProp,s=i.valueSetter,u=i.trigger,c=i.validateTrigger,f=i.rules,d=i.nonform,p=T(l)||"",h=q(u,c,z(f)),v=a({},p,"function"===typeof s?s(o):s?void 0:o);if(void 0!==t){var m="function"===typeof s?s(t):s?void 0:t;v[p]=m}return h.forEach((function(t){v[t]=function(n){r.bindChange(e,t,n)}})),!0===d?{}:v}}},{key:"setFieldProps",value:function(e,t){if(e){var r=this.fieldPropsMap[e];if(void 0===t)void 0!==r&&delete this.fieldPropsMap[e];else{var n=Object.assign({},r,t);this.fieldPropsMap[e]=n}}}},{key:"getFieldValue",value:function(e){var t=this.values;return void 0===e?t:P(t,e)}},{key:"getLastValue",value:function(e){var t=this.lastValues;return void 0===e?t:P(t,e)}},{key:"setInitialValue",value:function(e,t){var r=P(this.lastValues,e);this.initialValues=A(this.initialValues,e,t),this.lastValues=w(this.values),this.values=A(this.values,e,t),this.notifyFormItem(e),S(r)&&void 0===t||(this.notifyFormValue(e),this.notifyFormValues())}},{key:"getInitialValues",value:function(e){return void 0===e?this.initialValues:P(this.initialValues,e)}},{key:"setFieldValue",value:function(e,t,r){var n=this,o=function(e,t,r){n.lastValues=w(n.values),n.values=A(n.values,e,t);var o=n.getFieldProps(e),i=null===o||void 0===o?void 0:o.rules;null!==i&&void 0!==i&&i.length&&i instanceof Array&&n.validate(e,r),n.notifyFormItem(e),n.notifyFormValue(e),n.notifyFormValues()};"string"===typeof e?o(e,t,r):O(e)&&Promise.all(Object.keys(e).map((function(t){return o(t,null===e||void 0===e?void 0:e[t])})))}},{key:"setFieldsValue",value:function(e){this.lastValues=w(this.values),this.values=e,this.notifyFormItem(),this.notifyFormValue(),this.notifyFormValues()}},{key:"reset",value:function(e){var t=e||this.initialValues;this.setFieldsError({}),this.setFieldsValue(t)}},{key:"getFieldError",value:function(e){return void 0===e?this.formErrors:this.formErrors[e]}},{key:"setFieldError",value:function(e,t){e&&(void 0===t?delete this.formErrors[e]:this.formErrors[e]=t,this.notifyError(e))}},{key:"setFieldsError",value:function(e){this.formErrors=w(e||{}),this.notifyError()}},{key:"validate",value:function(){var e=U(Y().mark((function e(t,r){var n,o,i,l,a,s,u,c=this;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(){var e=U(Y().mark((function e(t){var n,o,i,l,a;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c.setFieldError(t,void 0),n=c.getFieldProps(t)||{},o=c.getFieldValue(t),i=null===n||void 0===n?void 0:n.nonform,!re(r,null===n||void 0===n?void 0:n.validateTrigger)||!0===i){e.next=12;break}return l=n.rules,e.next=9,te(l,o,r);case 9:return(a=e.sent)&&c.setFieldError(t,a),e.abrupt("return",a);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),"string"!==typeof t){e.next=8;break}return e.next=4,n(t);case 4:return o=e.sent,e.abrupt("return",{error:o,values:this.getFieldValue()});case 8:return l=this.getFieldProps()||{},a=t instanceof Array?t:Object.keys(l||{}),e.next=12,Promise.all(null===a||void 0===a?void 0:a.map((function(e){var t=null===l||void 0===l?void 0:l[e];if((null===t||void 0===t?void 0:t.rules)instanceof Array)return n(e)})));case 12:return s=e.sent,u=null===s||void 0===s||null===(i=s.filter((function(e){return void 0!==e})))||void 0===i?void 0:i[0],e.abrupt("return",{error:u,values:this.getFieldValue()});case 15:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"subscribeFormItem",value:function(e,t){var r=this;return this.formItemListeners.push({onChange:t,path:e}),function(){r.unsubscribeFormItem(e)}}},{key:"unsubscribeFormItem",value:function(e){void 0===e?this.formItemListeners=[]:"string"===typeof e&&(this.formItemListeners=this.formItemListeners.filter((function(t){return t.path!==e})))}},{key:"notifyFormItem",value:function(e){var t=this;e?this.formItemListeners.forEach((function(r){(null===r||void 0===r?void 0:r.path)===e&&(null===r||void 0===r?void 0:r.onChange)&&(null===r||void 0===r||r.onChange(t.getFieldValue(r.path),t.getLastValue(r.path)))})):this.formItemListeners.forEach((function(e){return e.onChange(t.getFieldValue(e.path),t.getLastValue(e.path))}))}},{key:"subscribeFormValue",value:function(e,t){var r=this;return this.formValueListeners.push({onChange:t,path:e}),function(){r.unsubscribeFormValue(e)}}},{key:"unsubscribeFormValue",value:function(e){void 0===e?this.formValueListeners=[]:"string"===typeof e&&(this.formValueListeners=this.formValueListeners.filter((function(t){return t.path!==e})))}},{key:"notifyFormValue",value:function(e){var t=this;e?this.formValueListeners.forEach((function(r){V(null===r||void 0===r?void 0:r.path,e)&&(null===r||void 0===r?void 0:r.onChange)&&(null===r||void 0===r||r.onChange(t.getFieldValue(r.path),t.getLastValue(r.path)))})):this.formValueListeners.forEach((function(e){return e.onChange(t.getFieldValue(e.path),t.getLastValue(e.path))}))}},{key:"subscribeFormValues",value:function(e){var t=this;return this.formValuesListeners.push(e),function(){t.unsubscribeFormValues()}}},{key:"unsubscribeFormValues",value:function(){this.formValuesListeners=[]}},{key:"notifyFormValues",value:function(){var e=this;this.formValuesListeners.forEach((function(t){return t(e.getFieldValue(),e.getLastValue())}))}},{key:"subscribeError",value:function(e,t){var r=this;return this.errorListeners.push({onChange:t,path:e}),function(){r.unsubscribeError(e)}}},{key:"unsubscribeError",value:function(e){void 0===e?this.errorListeners=[]:"string"===typeof e&&(this.errorListeners=this.errorListeners.filter((function(t){return t.path!==e})))}},{key:"notifyError",value:function(e){var t=this;e?this.errorListeners.forEach((function(r){(null===r||void 0===r?void 0:r.path)===e&&(null===r||void 0===r?void 0:r.onChange)&&(null===r||void 0===r||r.onChange(t.getFieldError(e)))})):this.errorListeners.forEach((function(e){return e.onChange(t.getFieldError(e.path))}))}}],r&&J(t.prototype,r),n&&J(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function oe(e){var t=(0,c.useRef)(new ne(e));return le(t.current),t.current}function ie(e,t){var n=r((0,c.useState)(),2),o=n[0],i=n[1],l=function(){t&&e&&e.subscribeError(t,(function(e){i(e)}))};return(0,c.useMemo)((function(){l()}),[JSON.stringify(t)]),(0,c.useEffect)((function(){return l(),function(){e&&e.unsubscribeError(t)}}),[JSON.stringify(t)]),[o,i]}function le(e,t){var n=r((0,c.useState)(),2),o=n[0],i=n[1],l=function(){e&&e.subscribeFormValues((function(e){if(void 0==t)i(e);else{var r=t instanceof Array?t:[t],n=r?j(e,r):e;i(n)}}))};return(0,c.useMemo)((function(){l()}),[JSON.stringify(t)]),(0,c.useEffect)((function(){return l(),function(){e&&e.unsubscribeFormValues()}}),[JSON.stringify(t)]),o}var ae=n(779),se=n.n(ae);function ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ce="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function fe(e,t){return 0===e.indexOf(t)}function de(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!1===r?t={aria:!0,data:!0,attr:!0}:!0===r?t={aria:!0}:O(r)&&(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r));var n={};return Object.keys(e).forEach((function(r){(t.aria&&("role"===r||fe(r,"aria-"))||t.data&&fe(r,"data-")||t.attr&&ce.includes(r))&&(n[r]=e[r])})),n}var pe=["name","className"],he={},ve=n(490);ve.keys().forEach((function(e){var t=e.replace(/^\.\/(.*)\.svg$/,"$1"),r=ve(e).default;he[t]=r}));var me=f().forwardRef((function(e,t){var r=e.name,n=e.className,o=s(e,pe),i=n?"svg-icon "+n:"svg-icon",l=r?he[r]:null;return l?f().createElement(l,G({className:i,ref:t},o)):null}));const ye=Math.min,ge=Math.max,be=Math.round,we=Math.floor,Ee=e=>({x:e,y:e}),xe={left:"right",right:"left",bottom:"top",top:"bottom"},Oe={start:"end",end:"start"};function Se(e,t,r){return ge(e,ye(t,r))}function _e(e,t){return"function"===typeof e?e(t):e}function ke(e){return e.split("-")[0]}function Fe(e){return e.split("-")[1]}function Le(e){return"x"===e?"y":"x"}function je(e){return"y"===e?"height":"width"}function Pe(e){return["top","bottom"].includes(ke(e))?"y":"x"}function Ae(e){return Le(Pe(e))}function Ve(e){return e.replace(/start|end/g,(e=>Oe[e]))}function Te(e){return e.replace(/left|right|bottom|top/g,(e=>xe[e]))}function Ce(e){return"number"!==typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Re(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ne(e,t,r){let{reference:n,floating:o}=e;const i=Pe(t),l=Ae(t),a=je(l),s=ke(t),u="y"===i,c=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,d=n[a]/2-o[a]/2;let p;switch(s){case"top":p={x:c,y:n.y-o.height};break;case"bottom":p={x:c,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-o.width,y:f};break;default:p={x:n.x,y:n.y}}switch(Fe(t)){case"start":p[l]-=d*(r&&u?-1:1);break;case"end":p[l]+=d*(r&&u?-1:1)}return p}async function Ie(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=_e(t,e),h=Ce(p),v=a[d?"floating"===f?"reference":"floating":f],m=Re(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(v)))||r?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),y="floating"===f?{...l.floating,x:n,y:o}:l.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},w=Re(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:g,strategy:s}):y);return{top:(m.top-w.top+h.top)/b.y,bottom:(w.bottom-m.bottom+h.bottom)/b.y,left:(m.left-w.left+h.left)/b.x,right:(w.right-m.right+h.right)/b.x}}const De=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...m}=_e(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const y=ke(o),g=ke(a)===a,b=await(null==s.isRTL?void 0:s.isRTL(u.floating)),w=d||(g||!v?[Te(a)]:function(e){const t=Te(e);return[Ve(e),t,Ve(t)]}(a));d||"none"===h||w.push(...function(e,t,r,n){const o=Fe(e);let i=function(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:l;default:return[]}}(ke(e),"start"===r,n);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Ve)))),i}(a,v,h,b));const E=[a,...w],x=await Ie(t,m),O=[];let S=(null==(n=i.flip)?void 0:n.overflows)||[];if(c&&O.push(x[y]),f){const e=function(e,t,r){void 0===r&&(r=!1);const n=Fe(e),o=Ae(e),i=je(o);let l="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Te(l)),[l,Te(l)]}(o,l,b);O.push(x[e[0]],x[e[1]])}if(S=[...S,{placement:o,overflows:O}],!O.every((e=>e<=0))){var _,k;const e=((null==(_=i.flip)?void 0:_.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let r=null==(k=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!r)switch(p){case"bestFit":{var F;const e=null==(F=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:F[0];e&&(r=e);break}case"initialPlacement":r=a}if(o!==r)return{reset:{placement:r}}}return{}}}};const Me=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),l=ke(r),a=Fe(r),s="y"===Pe(r),u=["left","top"].includes(l)?-1:1,c=i&&s?-1:1,f=_e(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"===typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"===typeof h&&(p="end"===a?-1*h:h),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}(t,e);return l===(null==(r=a.offset)?void 0:r.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},Be=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...s}=_e(e,t),u={x:r,y:n},c=await Ie(t,s),f=Pe(ke(o)),d=Le(f);let p=u[d],h=u[f];if(i){const e="y"===d?"bottom":"right";p=Se(p+c["y"===d?"top":"left"],p,p-c[e])}if(l){const e="y"===f?"bottom":"right";h=Se(h+c["y"===f?"top":"left"],h,h-c[e])}const v=a.fn({...t,[d]:p,[f]:h});return{...v,data:{x:v.x-r,y:v.y-n}}}}};function $e(e){return qe(e)?(e.nodeName||"").toLowerCase():"#document"}function We(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ze(e){var t;return null==(t=(qe(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function qe(e){return e instanceof Node||e instanceof We(e).Node}function He(e){return e instanceof Element||e instanceof We(e).Element}function Ge(e){return e instanceof HTMLElement||e instanceof We(e).HTMLElement}function Ke(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof We(e).ShadowRoot)}function Ue(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Qe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Je(e){return["table","td","th"].includes($e(e))}function Xe(e){const t=Ye(),r=Qe(e);return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function Ye(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ze(e){return["html","body","#document"].includes($e(e))}function Qe(e){return We(e).getComputedStyle(e)}function et(e){return He(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tt(e){if("html"===$e(e))return e;const t=e.assignedSlot||e.parentNode||Ke(e)&&e.host||ze(e);return Ke(t)?t.host:t}function rt(e){const t=tt(e);return Ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ge(t)&&Ue(t)?t:rt(t)}function nt(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=rt(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),l=We(o);return i?t.concat(l,l.visualViewport||[],Ue(o)?o:[],l.frameElement&&r?nt(l.frameElement):[]):t.concat(o,nt(o,[],r))}function ot(e){const t=Qe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ge(e),i=o?e.offsetWidth:r,l=o?e.offsetHeight:n,a=be(r)!==i||be(n)!==l;return a&&(r=i,n=l),{width:r,height:n,$:a}}function it(e){return He(e)?e:e.contextElement}function lt(e){const t=it(e);if(!Ge(t))return Ee(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=ot(t);let l=(i?be(r.width):r.width)/n,a=(i?be(r.height):r.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const at=Ee(0);function st(e){const t=We(e);return Ye()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:at}function ut(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=it(e);let l=Ee(1);t&&(n?He(n)&&(l=lt(n)):l=lt(e));const a=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==We(e))&&t}(i,r,n)?st(i):Ee(0);let s=(o.left+a.x)/l.x,u=(o.top+a.y)/l.y,c=o.width/l.x,f=o.height/l.y;if(i){const e=We(i),t=n&&He(n)?We(n):n;let r=e.frameElement;for(;r&&n&&t!==e;){const e=lt(r),t=r.getBoundingClientRect(),n=Qe(r),o=t.left+(r.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(n.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,f*=e.y,s+=o,u+=i,r=We(r).frameElement}}return Re({width:c,height:f,x:s,y:u})}function ct(e){return ut(ze(e)).left+et(e).scrollLeft}function ft(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=We(e),n=ze(e),o=r.visualViewport;let i=n.clientWidth,l=n.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const e=Ye();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,r);else if("document"===t)n=function(e){const t=ze(e),r=et(e),n=e.ownerDocument.body,o=ge(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ge(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-r.scrollLeft+ct(e);const a=-r.scrollTop;return"rtl"===Qe(n).direction&&(l+=ge(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:l,y:a}}(ze(e));else if(He(t))n=function(e,t){const r=ut(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Ge(e)?lt(e):Ee(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=st(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return Re(n)}function dt(e,t){const r=tt(e);return!(r===t||!He(r)||Ze(r))&&("fixed"===Qe(r).position||dt(r,t))}function pt(e,t,r){const n=Ge(t),o=ze(t),i="fixed"===r,l=ut(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=Ee(0);if(n||!n&&!i)if(("body"!==$e(t)||Ue(o))&&(a=et(t)),n){const e=ut(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=ct(o));return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function ht(e,t){return Ge(e)&&"fixed"!==Qe(e).position?t?t(e):e.offsetParent:null}function vt(e,t){const r=We(e);if(!Ge(e))return r;let n=ht(e,t);for(;n&&Je(n)&&"static"===Qe(n).position;)n=ht(n,t);return n&&("html"===$e(n)||"body"===$e(n)&&"static"===Qe(n).position&&!Xe(n))?r:n||function(e){let t=tt(e);for(;Ge(t)&&!Ze(t);){if(Xe(t))return t;t=tt(t)}return null}(e)||r}const mt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=Ge(r),i=ze(r);if(r===i)return t;let l={scrollLeft:0,scrollTop:0},a=Ee(1);const s=Ee(0);if((o||!o&&"fixed"!==n)&&(("body"!==$e(r)||Ue(i))&&(l=et(r)),Ge(r))){const e=ut(r);a=lt(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-l.scrollLeft*a.x+s.x,y:t.y*a.y-l.scrollTop*a.y+s.y}},getDocumentElement:ze,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?function(e,t){const r=t.get(e);if(r)return r;let n=nt(e,[],!1).filter((e=>He(e)&&"body"!==$e(e))),o=null;const i="fixed"===Qe(e).position;let l=i?tt(e):e;for(;He(l)&&!Ze(l);){const t=Qe(l),r=Xe(l);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Ue(l)&&!r&&dt(e,l))?n=n.filter((e=>e!==l)):o=t,l=tt(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=i[0],a=i.reduce(((e,r)=>{const n=ft(t,r,o);return e.top=ge(n.top,e.top),e.right=ye(n.right,e.right),e.bottom=ye(n.bottom,e.bottom),e.left=ge(n.left,e.left),e}),ft(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:vt,getElementRects:async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||vt,i=this.getDimensions;return{reference:pt(t,await o(r),n),floating:{x:0,y:0,...await i(r)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return ot(e)},getScale:lt,isElement:He,isRTL:function(e){return"rtl"===Qe(e).direction}};function yt(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"===typeof ResizeObserver,layoutShift:a="function"===typeof IntersectionObserver,animationFrame:s=!1}=n,u=it(e),c=o||i?[...u?nt(u):[],...nt(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)}));const f=u&&a?function(e,t){let r,n=null;const o=ze(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}return function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const p={rootMargin:-we(c)+"px "+-we(o.clientWidth-(u+f))+"px "+-we(o.clientHeight-(c+d))+"px "+-we(u)+"px",threshold:ge(0,ye(1,s))||1};let h=!0;function v(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return l();t?l(!1,t):r=setTimeout((()=>{l(!1,1e-7)}),100)}h=!1}try{n=new IntersectionObserver(v,{...p,root:o.ownerDocument})}catch(m){n=new IntersectionObserver(v,p)}n.observe(e)}(!0),i}(u,r):null;let d,p=-1,h=null;l&&(h=new ResizeObserver((e=>{let[n]=e;n&&n.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{h&&h.observe(t)}))),r()})),u&&!s&&h.observe(u),h.observe(t));let v=s?ut(e):null;return s&&function t(){const n=ut(e);!v||n.x===v.x&&n.y===v.y&&n.width===v.width&&n.height===v.height||r();v=n,d=requestAnimationFrame(t)}(),r(),()=>{c.forEach((e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)})),f&&f(),h&&h.disconnect(),h=null,s&&cancelAnimationFrame(d)}}const gt=(e,t,r)=>{const n=new Map,o={platform:mt,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:l}=r,a=i.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=Ne(u,n,s),d=n,p={},h=0;for(let v=0;v<a.length;v++){const{name:r,fn:i}=a[v],{x:m,y:y,data:g,reset:b}=await i({x:c,y:f,initialPlacement:n,placement:d,strategy:o,middlewareData:p,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=m?m:c,f=null!=y?y:f,p={...p,[r]:{...p[r],...g}},b&&h<=50&&(h++,"object"===typeof b&&(b.placement&&(d=b.placement),b.rects&&(u=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:f}=Ne(u,d,s))),v=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},bt="react-tooltip-core-styles",wt="react-tooltip-base-styles",Et={core:!1,base:!1};function xt({css:e,id:t=wt,type:r="base",ref:n}){var o,i;if(!e||"undefined"==typeof document||Et[r])return;if("core"===r&&"undefined"!=typeof process&&(null===(o=null===process||void 0===process?void 0:{MOCK:void 0})||void 0===o?void 0:o.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==r&&"undefined"!=typeof process&&(null===(i=null===process||void 0===process?void 0:{MOCK:void 0})||void 0===i?void 0:i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===r&&(t=bt),n||(n={});const{insertAt:l}=n;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.id=t,s.type="text/css","top"===l&&a.firstChild?a.insertBefore(s,a.firstChild):a.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e)),Et[r]=!0}const Ot=(e,t,r)=>{let n=null;return function(...o){const i=()=>{n=null,r||e.apply(this,o)};r&&!n&&(e.apply(this,o),n=setTimeout(i,t)),r||(n&&clearTimeout(n),n=setTimeout(i,t))}},St="DEFAULT_TOOLTIP_ID",_t={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},kt=(0,c.createContext)({getTooltipData:()=>_t});function Ft(e=St){return(0,c.useContext)(kt).getTooltipData(e)}const Lt="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,jt=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const r=t.getPropertyValue(e);return"auto"===r||"scroll"===r}))},Pt=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(jt(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},At=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:r=null,place:n="top",offset:o=10,strategy:i="absolute",middlewares:l=[Me(Number(o)),De(),Be({padding:5})],border:a})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};const s=l;return r?(s.push({name:"arrow",options:u={element:r,padding:5},async fn(e){const{x:t,y:r,placement:n,rects:o,platform:i,elements:l,middlewareData:a}=e,{element:s,padding:c=0}=_e(u,e)||{};if(null==s)return{};const f=Ce(c),d={x:t,y:r},p=Ae(n),h=je(p),v=await i.getDimensions(s),m="y"===p,y=m?"top":"left",g=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=o.reference[h]+o.reference[p]-d[p]-o.floating[h],E=d[p]-o.reference[p],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s));let O=x?x[b]:0;O&&await(null==i.isElement?void 0:i.isElement(x))||(O=l.floating[b]||o.floating[h]);const S=w/2-E/2,_=O/2-v[h]/2-1,k=ye(f[y],_),F=ye(f[g],_),L=k,j=O-v[h]-F,P=O/2-v[h]/2+S,A=Se(L,P,j),V=!a.arrow&&null!=Fe(n)&&P!=A&&o.reference[h]/2-(P<L?k:F)-v[h]/2<0,T=V?P<L?P-L:P-j:0;return{[p]:d[p]+T,data:{[p]:A,centerOffset:P-A-T,...V&&{alignmentOffset:T}},reset:V}}}),gt(e,t,{placement:n,strategy:i,middleware:s}).then((({x:e,y:t,placement:r,middlewareData:n})=>{var o,i;const l={left:`${e}px`,top:`${t}px`,border:a},{x:s,y:u}=null!==(o=n.arrow)&&void 0!==o?o:{x:0,y:0},c=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]])&&void 0!==i?i:"bottom",f=a&&{borderBottom:a,borderRight:a};let d=0;if(a){const e=`${a}`.match(/(\d+)px/);d=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:l,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=u?`${u}px`:"",right:"",bottom:"",...f,[c]:`-${4+d}px`},place:r}}))):gt(e,t,{placement:"bottom",strategy:i,middleware:s}).then((({x:e,y:t,placement:r})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:r})));var u};var Vt={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Tt={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Ct=({forwardRef:e,id:t,className:r,classNameArrow:n,variant:o="dark",anchorId:i,anchorSelect:l,place:a="top",offset:s=10,events:u=["hover"],openOnClick:f=!1,positionStrategy:d="absolute",middlewares:p,wrapper:h,delayShow:v=0,delayHide:m=0,float:y=!1,hidden:g=!1,noArrow:b=!1,clickable:w=!1,closeOnEsc:E=!1,closeOnScroll:x=!1,closeOnResize:O=!1,openEvents:S,closeEvents:_,globalCloseEvents:k,imperativeModeOnly:F,style:L,position:j,afterShow:P,afterHide:A,content:V,contentWrapperRef:T,isOpen:C,setIsOpen:R,activeAnchor:N,setActiveAnchor:I,border:D,opacity:M,arrowColor:B,role:$="tooltip"})=>{var W;const z=(0,c.useRef)(null),q=(0,c.useRef)(null),H=(0,c.useRef)(null),G=(0,c.useRef)(null),[K,U]=(0,c.useState)(a),[J,X]=(0,c.useState)({}),[Y,Z]=(0,c.useState)({}),[Q,ee]=(0,c.useState)(!1),[te,re]=(0,c.useState)(!1),[ne,oe]=(0,c.useState)(null),ie=(0,c.useRef)(!1),le=(0,c.useRef)(null),{anchorRefs:se,setActiveAnchor:ue}=Ft(t),ce=(0,c.useRef)(!1),[fe,de]=(0,c.useState)([]),pe=(0,c.useRef)(!1),he=f||u.includes("click"),ve=he||(null==S?void 0:S.click)||(null==S?void 0:S.dblclick)||(null==S?void 0:S.mousedown),me=S?{...S}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!S&&he&&Object.assign(me,{mouseenter:!1,focus:!1,click:!0});const ye=_?{..._}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!_&&he&&Object.assign(ye,{mouseleave:!1,blur:!1});const ge=k?{...k}:{escape:E||!1,scroll:x||!1,resize:O||!1,clickOutsideAnchor:ve||!1};F&&(Object.assign(me,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(ye,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(ge,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Lt((()=>(pe.current=!0,()=>{pe.current=!1})),[]);const be=e=>{pe.current&&(e&&re(!0),setTimeout((()=>{pe.current&&(null==R||R(e),void 0===C&&ee(e))}),10))};(0,c.useEffect)((()=>{if(void 0===C)return()=>null;C&&re(!0);const e=setTimeout((()=>{ee(C)}),10);return()=>{clearTimeout(e)}}),[C]),(0,c.useEffect)((()=>{Q!==ie.current&&(ie.current=Q,Q&&(null==P||P()))}),[Q]);const we=(e=v)=>{H.current&&clearTimeout(H.current),H.current=setTimeout((()=>{be(!0)}),e)},Ee=(e=m)=>{G.current&&clearTimeout(G.current),G.current=setTimeout((()=>{ce.current||be(!1)}),e)},xe=e=>{var t;if(!e)return;const r=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==r?void 0:r.isConnected))return I(null),void ue({current:null});v?we():be(!0),I(r),ue({current:r}),G.current&&clearTimeout(G.current)},Oe=()=>{w?Ee(m||100):m?Ee():be(!1),H.current&&clearTimeout(H.current)},Se=({x:e,y:t})=>{var r;const n={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};At({place:null!==(r=null==ne?void 0:ne.place)&&void 0!==r?r:a,offset:s,elementReference:n,tooltipReference:z.current,tooltipArrowReference:q.current,strategy:d,middlewares:p,border:D}).then((e=>{Object.keys(e.tooltipStyles).length&&X(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&Z(e.tooltipArrowStyles),U(e.place)}))},_e=e=>{if(!e)return;const t=e,r={x:t.clientX,y:t.clientY};Se(r),le.current=r},ke=e=>{var t;if(!Q)return;const r=e.target;(null===(t=z.current)||void 0===t?void 0:t.contains(r))||[document.querySelector(`[id='${i}']`),...fe].some((e=>null==e?void 0:e.contains(r)))||(be(!1),H.current&&clearTimeout(H.current))},Fe=Ot(xe,50,!0),Le=Ot(Oe,50,!0),je=(0,c.useCallback)((()=>{var e,t;const r=null!==(e=null==ne?void 0:ne.position)&&void 0!==e?e:j;r?Se(r):y?le.current&&Se(le.current):(null==N?void 0:N.isConnected)&&At({place:null!==(t=null==ne?void 0:ne.place)&&void 0!==t?t:a,offset:s,elementReference:N,tooltipReference:z.current,tooltipArrowReference:q.current,strategy:d,middlewares:p,border:D}).then((e=>{pe.current&&(Object.keys(e.tooltipStyles).length&&X(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&Z(e.tooltipArrowStyles),U(e.place))}))}),[Q,N,V,L,a,null==ne?void 0:ne.place,s,d,j,null==ne?void 0:ne.position,y]);(0,c.useEffect)((()=>{var e,t;const r=new Set(se);fe.forEach((e=>{r.add({current:e})}));const n=document.querySelector(`[id='${i}']`);n&&r.add({current:n});const o=()=>{be(!1)},l=Pt(N),a=Pt(z.current);ge.scroll&&(window.addEventListener("scroll",o),null==l||l.addEventListener("scroll",o),null==a||a.addEventListener("scroll",o));let s=null;ge.resize?window.addEventListener("resize",o):N&&z.current&&(s=yt(N,z.current,je,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const u=e=>{"Escape"===e.key&&be(!1)};ge.escape&&window.addEventListener("keydown",u),ge.clickOutsideAnchor&&window.addEventListener("click",ke);const c=[],f=e=>{Q||xe(e)},d=()=>{Q&&Oe()},p=["mouseenter","mouseleave","focus","blur"],h=["click","dblclick","mousedown","mouseup"];Object.entries(me).forEach((([e,t])=>{t&&(p.includes(e)?c.push({event:e,listener:Fe}):h.includes(e)&&c.push({event:e,listener:f}))})),Object.entries(ye).forEach((([e,t])=>{t&&(p.includes(e)?c.push({event:e,listener:Le}):h.includes(e)&&c.push({event:e,listener:d}))})),y&&c.push({event:"mousemove",listener:_e});const v=()=>{ce.current=!0},m=()=>{ce.current=!1,Oe()};return w&&!ve&&(null===(e=z.current)||void 0===e||e.addEventListener("mouseenter",v),null===(t=z.current)||void 0===t||t.addEventListener("mouseleave",m)),c.forEach((({event:e,listener:t})=>{r.forEach((r=>{var n;null===(n=r.current)||void 0===n||n.addEventListener(e,t)}))})),()=>{var e,t;ge.scroll&&(window.removeEventListener("scroll",o),null==l||l.removeEventListener("scroll",o),null==a||a.removeEventListener("scroll",o)),ge.resize?window.removeEventListener("resize",o):null==s||s(),ge.clickOutsideAnchor&&window.removeEventListener("click",ke),ge.escape&&window.removeEventListener("keydown",u),w&&!ve&&(null===(e=z.current)||void 0===e||e.removeEventListener("mouseenter",v),null===(t=z.current)||void 0===t||t.removeEventListener("mouseleave",m)),c.forEach((({event:e,listener:t})=>{r.forEach((r=>{var n;null===(n=r.current)||void 0===n||n.removeEventListener(e,t)}))}))}}),[N,je,te,se,fe,S,_,k,he]),(0,c.useEffect)((()=>{var e,r;let n=null!==(r=null!==(e=null==ne?void 0:ne.anchorSelect)&&void 0!==e?e:l)&&void 0!==r?r:"";!n&&t&&(n=`[data-tooltip-id='${t}']`);const o=new MutationObserver((e=>{const r=[],o=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&e.target.getAttribute("data-tooltip-id")===t&&r.push(e.target),"childList"===e.type){if(N){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(n)try{o.push(...t.filter((e=>e.matches(n)))),o.push(...t.flatMap((e=>[...e.querySelectorAll(n)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,N))&&(re(!1),be(!1),I(null),H.current&&clearTimeout(H.current),G.current&&clearTimeout(G.current),!0)}))}if(n)try{const t=[...e.addedNodes].filter((e=>1===e.nodeType));r.push(...t.filter((e=>e.matches(n)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(n)])))}catch(e){}}})),(r.length||o.length)&&de((e=>[...e.filter((e=>!o.includes(e))),...r]))}));return o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{o.disconnect()}}),[t,l,null==ne?void 0:ne.anchorSelect,N]),(0,c.useEffect)((()=>{je()}),[je]),(0,c.useEffect)((()=>{if(!(null==T?void 0:T.current))return()=>null;const e=new ResizeObserver((()=>{je()}));return e.observe(T.current),()=>{e.disconnect()}}),[V,null==T?void 0:T.current]),(0,c.useEffect)((()=>{var e;const t=document.querySelector(`[id='${i}']`),r=[...fe,t];N&&r.includes(N)||I(null!==(e=fe[0])&&void 0!==e?e:t)}),[i,fe,N]),(0,c.useEffect)((()=>()=>{H.current&&clearTimeout(H.current),G.current&&clearTimeout(G.current)}),[]),(0,c.useEffect)((()=>{var e;let r=null!==(e=null==ne?void 0:ne.anchorSelect)&&void 0!==e?e:l;if(!r&&t&&(r=`[data-tooltip-id='${t}']`),r)try{const e=Array.from(document.querySelectorAll(r));de(e)}catch(e){de([])}}),[t,l,null==ne?void 0:ne.anchorSelect]);const Pe=null!==(W=null==ne?void 0:ne.content)&&void 0!==W?W:V,Ae=Q&&Object.keys(J).length>0;return(0,c.useImperativeHandle)(e,(()=>({open:t=>{if(null==t?void 0:t.anchorSelect)try{document.querySelector(t.anchorSelect)}catch(e){return void console.warn(`[react-tooltip] "${t.anchorSelect}" is not a valid CSS selector`)}oe(null!=t?t:null),(null==t?void 0:t.delay)?we(t.delay):be(!0)},close:e=>{(null==e?void 0:e.delay)?Ee(e.delay):be(!1)},activeAnchor:N,place:K,isOpen:Boolean(te&&!g&&Pe&&Ae)}))),te&&!g&&Pe?c.createElement(h,{id:t,role:$,className:ae("react-tooltip",Vt.tooltip,Tt.tooltip,Tt[o],r,`react-tooltip__place-${K}`,Vt[Ae?"show":"closing"],Ae?"react-tooltip__show":"react-tooltip__closing","fixed"===d&&Vt.fixed,w&&Vt.clickable),onTransitionEnd:e=>{Q||"opacity"!==e.propertyName||(re(!1),oe(null),null==A||A())},style:{...L,...J,opacity:void 0!==M&&Ae?M:void 0},ref:z},Pe,c.createElement(h,{className:ae("react-tooltip-arrow",Vt.arrow,Tt.arrow,n,b&&Vt.noArrow),style:{...Y,background:B?`linear-gradient(to right bottom, transparent 50%, ${B} 50%)`:void 0},ref:q})):null},Rt=({content:e})=>c.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Nt=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),It=c.forwardRef((({id:e,anchorId:t,anchorSelect:r,content:n,html:o,render:i,className:l,classNameArrow:a,variant:s="dark",place:u="top",offset:f=10,wrapper:d="div",children:p=null,events:h=["hover"],openOnClick:v=!1,positionStrategy:m="absolute",middlewares:y,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:E=!1,noArrow:x=!1,clickable:O=!1,closeOnEsc:S=!1,closeOnScroll:_=!1,closeOnResize:k=!1,openEvents:F,closeEvents:L,globalCloseEvents:j,imperativeModeOnly:P=!1,style:A,position:V,isOpen:T,disableStyleInjection:C=!1,border:R,opacity:N,arrowColor:I,setIsOpen:D,afterShow:M,afterHide:B,role:$="tooltip"},W)=>{const[z,q]=(0,c.useState)(n),[H,G]=(0,c.useState)(o),[K,U]=(0,c.useState)(u),[J,X]=(0,c.useState)(s),[Y,Z]=(0,c.useState)(f),[Q,ee]=(0,c.useState)(g),[te,re]=(0,c.useState)(b),[ne,oe]=(0,c.useState)(w),[ie,le]=(0,c.useState)(E),[se,ue]=(0,c.useState)(d),[ce,fe]=(0,c.useState)(h),[de,pe]=(0,c.useState)(m),[he,ve]=(0,c.useState)(null),[me,ye]=(0,c.useState)(null),ge=(0,c.useRef)(C),{anchorRefs:be,activeAnchor:we}=Ft(e),Ee=e=>null==e?void 0:e.getAttributeNames().reduce(((t,r)=>{var n;return r.startsWith("data-tooltip-")&&(t[r.replace(/^data-tooltip-/,"")]=null!==(n=null==e?void 0:e.getAttribute(r))&&void 0!==n?n:null),t}),{}),xe=e=>{const t={place:e=>{var t;U(null!==(t=e)&&void 0!==t?t:u)},content:e=>{q(null!=e?e:n)},html:e=>{G(null!=e?e:o)},variant:e=>{var t;X(null!==(t=e)&&void 0!==t?t:s)},offset:e=>{Z(null===e?f:Number(e))},wrapper:e=>{var t;ue(null!==(t=e)&&void 0!==t?t:d)},events:e=>{const t=null==e?void 0:e.split(" ");fe(null!=t?t:h)},"position-strategy":e=>{var t;pe(null!==(t=e)&&void 0!==t?t:m)},"delay-show":e=>{ee(null===e?g:Number(e))},"delay-hide":e=>{re(null===e?b:Number(e))},float:e=>{oe(null===e?w:"true"===e)},hidden:e=>{le(null===e?E:"true"===e)},"class-name":e=>{ve(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,r])=>{var n;null===(n=t[e])||void 0===n||n.call(t,r)}))};(0,c.useEffect)((()=>{q(n)}),[n]),(0,c.useEffect)((()=>{G(o)}),[o]),(0,c.useEffect)((()=>{U(u)}),[u]),(0,c.useEffect)((()=>{X(s)}),[s]),(0,c.useEffect)((()=>{Z(f)}),[f]),(0,c.useEffect)((()=>{ee(g)}),[g]),(0,c.useEffect)((()=>{re(b)}),[b]),(0,c.useEffect)((()=>{oe(w)}),[w]),(0,c.useEffect)((()=>{le(E)}),[E]),(0,c.useEffect)((()=>{pe(m)}),[m]),(0,c.useEffect)((()=>{ge.current!==C&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[C]),(0,c.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===C,disableBase:C}}))}),[]),(0,c.useEffect)((()=>{var n;const o=new Set(be);let i=r;if(!i&&e&&(i=`[data-tooltip-id='${e}']`),i)try{document.querySelectorAll(i).forEach((e=>{o.add({current:e})}))}catch(n){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const l=document.querySelector(`[id='${t}']`);if(l&&o.add({current:l}),!o.size)return()=>null;const a=null!==(n=null!=me?me:l)&&void 0!==n?n:we.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const r=Ee(a);xe(r)}))})),u={attributes:!0,childList:!1,subtree:!1};if(a){const e=Ee(a);xe(e),s.observe(a,u)}return()=>{s.disconnect()}}),[be,we,me,t,r]),(0,c.useEffect)((()=>{(null==A?void 0:A.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),R&&!Nt("border",`${R}`)&&console.warn(`[react-tooltip] "${R}" is not a valid \`border\`.`),(null==A?void 0:A.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),N&&!Nt("opacity",`${N}`)&&console.warn(`[react-tooltip] "${N}" is not a valid \`opacity\`.`)}),[]);let Oe=p;const Se=(0,c.useRef)(null);if(i){const e=i({content:null!=z?z:null,activeAnchor:me});Oe=e?c.createElement("div",{ref:Se,className:"react-tooltip-content-wrapper"},e):null}else z&&(Oe=z);H&&(Oe=c.createElement(Rt,{content:H}));const _e={forwardRef:W,id:e,anchorId:t,anchorSelect:r,className:ae(l,he),classNameArrow:a,content:Oe,contentWrapperRef:Se,place:K,variant:J,offset:Y,wrapper:se,events:ce,openOnClick:v,positionStrategy:de,middlewares:y,delayShow:Q,delayHide:te,float:ne,hidden:ie,noArrow:x,clickable:O,closeOnEsc:S,closeOnScroll:_,closeOnResize:k,openEvents:F,closeEvents:L,globalCloseEvents:j,imperativeModeOnly:P,style:A,position:V,isOpen:T,border:R,opacity:N,arrowColor:I,setIsOpen:D,afterShow:M,afterHide:B,activeAnchor:me,setActiveAnchor:e=>ye(e),role:$};return c.createElement(Ct,{..._e})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||xt({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||xt({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));var Dt=["children","content","className"],Mt=f().forwardRef((function(e,t){var r=e.children,n=e.content,o=e.className;s(e,Dt);return f().createElement(f().Fragment,null,f().createElement("a",{className:o,id:"custom-tooltip",ref:t},r),f().createElement(It,{className:"custom-tooltip",anchorSelect:"#custom-tooltip",content:n}))})),Bt=["colon","required","showLabel","labelWidth","labelAlign","gutter","tooltip","error","suffix","footer"],$t=["label","labelStyle","inline","layout","compact","readOnly","className","style","children"];function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var zt="field-item",qt=function(e){return"".concat(zt,"--").concat(e)},Ht=f().forwardRef((function(e,t){var n=e.colon,o=e.required,i=e.showLabel,l=void 0===i||i,u=e.labelWidth,d=e.labelAlign,p=e.gutter,h=e.tooltip,v=e.error,m=e.suffix,y=e.footer,g=s(e,Bt),b=g.label,w=g.labelStyle,E=g.inline,x=g.layout,O=void 0===x?"horizontal":x,_=g.compact,k=g.readOnly,F=g.className,L=g.style,j=g.children,P=s(g,$t),A=(0,c.useRef)(null),V=(0,c.useRef)(null),T=r((0,c.useState)(),2),C=T[0],R=T[1],N=se()(zt,O&&qt(O),!0===o&&qt("required"),!0===_&&qt("compact"),v&&qt("error"),!0===E&&qt("inline"),!0===k&&qt("readOnly"),F||""),I=se()("label__container",!0===o?"label__container--required":""),D=function(){var e,t,r=(null===(e=A.current)||void 0===e?void 0:e.scrollHeight)||0,n=(null===(t=V.current)||void 0===t?void 0:t.offsetHeight)||0;return r-n>0&&"horizontal"===O&&r<=36?(r-n)/2:void 0};(0,c.useEffect)((function(){R(D())}),[]);var M=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({marginRight:p,width:u,textAlign:d,marginTop:C||D()},w),B=se()("control__container",v?"control__container--error":"");return f().createElement("div",G({ref:t,className:N,style:L},de(P)),!S(b)&&l?f().createElement("div",{className:I,style:M},f().createElement("label",{ref:V},!0===n?f().createElement(f().Fragment,null,b,"\uff1a"):b,h&&f().createElement(Mt,{content:h},f().createElement(me,{name:"wenhao",className:"label__tooltip"})))):null,f().createElement("div",{className:B},f().createElement("div",{ref:A,className:"item__control"},j,!S(m)&&f().createElement("div",{className:"item__suffix"},m)),!S(y)&&f().createElement("div",{className:"item__footer"},y),f().createElement("div",{className:"item__message"},v)))})),Gt=["form"],Kt=["children"],Ut=["name","index","trigger","validateTrigger","valueProp","valueGetter","valueSetter","errorClassName","onFieldsChange","onValuesChange","initialValue","rules","component"],Jt=f().forwardRef((function(e,t){var n=(0,c.useContext)(d),o=n.form,i=s(n,Gt),l=Object.assign(i,e),a=l.children,u=s(l,Kt),p=u.name,h=u.index,v=u.trigger,m=u.validateTrigger,y=u.valueProp,g=u.valueGetter,b=u.valueSetter,w=u.errorClassName,E=u.onFieldsChange,x=u.onValuesChange,O=u.initialValue,S=u.rules,_=u.component,k=void 0===_?Ht:_,F=s(u,Ut),L=r(ie(o,p),1)[0],j=(null===F||void 0===F?void 0:F.nonform)||(null===F||void 0===F?void 0:F.readOnly),P=!(!(0,c.useMemo)((function(){return S instanceof Array&&(null===S||void 0===S?void 0:S.find((function(e){return!0===(null===e||void 0===e?void 0:e.required)})))}),[S])||!0===j)||(null===F||void 0===F?void 0:F.required),A=k,V=f().createElement(H,{nonform:j,name:p,index:h,trigger:v,validateTrigger:m,valueProp:y,valueGetter:g,valueSetter:b,rules:S,initialValue:O,errorClassName:w,onFieldsChange:E,onValuesChange:x},a);return A?f().createElement(A,G({},u,{required:P,ref:t,error:!0!==j&&L}),V):V}));Jt.displayName="Form.Item";var Xt=["tagName"],Yt=["className","style","children","initialValues","tagName","onSubmit","onReset","watch"];function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var er=f().forwardRef((function(e,t){var r=e.tagName,n=void 0===r?"form":r,o=s(e,Xt);return f().createElement(n,Qt(Qt({},o),{},{ref:t}))}));function tr(e){var t=e.className,n=void 0===t?"":t,o=e.style,i=e.children,l=e.initialValues,a=e.tagName,u=e.onSubmit,h=e.onReset,v=e.watch,m=s(e,Yt),y="simple-form "+n,g=null===m||void 0===m?void 0:m.form;return(0,c.useEffect)((function(){var e;if(g&&v)return null===(e=Object.entries(v))||void 0===e||e.forEach((function(e){var t=r(e,2),n=t[0],o=t[1];"function"===typeof o?null===g||void 0===g||g.subscribeFormValue(n,o):O(o)&&("function"===typeof o.handler&&(null===g||void 0===g||g.subscribeFormValue(n,o.handler)),o.immediate&&o.handler(null===g||void 0===g?void 0:g.getFieldValue(n),null===g||void 0===g?void 0:g.getLastValue(n)))})),function(){var e;null===(e=Object.entries(v||{}))||void 0===e||e.forEach((function(e){var t=r(e,1)[0];null===g||void 0===g||g.unsubscribeFormValue(t)}))}}),[v]),f().createElement(er,{tagName:a,className:y,style:o,onSubmit:function(e){e.preventDefault(),null===u||void 0===u||u(e)},onReset:h},f().createElement(d.Provider,{value:m},f().createElement(p.Provider,{value:l},i)))}tr.Item=Jt}(),o}()}));
|