@para-ui/core 4.0.61 → 4.0.63
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/Anchor/index.js +2 -1
- package/Argv/index.js +3 -2
- package/AutoButton/index.js +3 -2
- package/AutoTips/index.js +248 -7
- package/Breadcrumbs/index.js +2 -1
- package/Button/index.js +3 -2
- package/ButtonGroup/index.js +3 -2
- package/Card/index.js +33 -23
- package/Cascader/index.js +4 -3
- package/ComboSelect/index.js +4 -3
- package/CopyText/index.js +2 -1
- package/CycleSelector/index.js +3 -2
- package/DatePicker/index.js +6 -5
- package/Descriptions/index.js +3 -2
- package/Desktop/index.js +6 -5
- package/Drawer/index.js +3 -2
- package/DynamicMultiBox/index.js +211 -25
- package/DynamicMultiBox/interface.d.ts +30 -0
- package/Form/index.js +5 -4
- package/FormItem/index.js +5 -4
- package/FunctionModal/index.js +5 -4
- package/InputCode/index.js +3 -2
- package/InputLang/index.d.ts +2 -0
- package/InputLang/index.js +12 -3
- package/Menu/index.js +2 -1
- package/Modal/index.js +3 -2
- package/MultiBox/index.js +6 -5
- package/OperateBtn/index.js +3 -2
- package/PageHeader/index.js +3 -2
- package/Pagination/index.js +3 -2
- package/PopConfirm/index.js +3 -2
- package/PopMenu/index.js +2 -1
- package/QuickReply/index.js +3 -2
- package/README.md +9 -0
- package/Result/index.js +2 -1
- package/Search/index.js +2 -1
- package/Select/index.js +2 -1
- package/SelectInput/index.js +2 -1
- package/Selector/index.js +2 -1
- package/SelectorPicker/index.js +2 -1
- package/SingleBox/index.js +6 -5
- package/Stepper/index.js +2 -1
- package/Table/index.js +3 -2
- package/Tabs/index.js +8 -7
- package/Tag/index.js +2 -1
- package/TextField/index.js +2 -1
- package/TimePicker/index.js +6 -5
- package/Title/index.js +2 -1
- package/ToggleButton/index.js +3 -2
- package/Transfer/index.js +3 -2
- package/Tree/index.js +4 -3
- package/Upload/index.js +3 -2
- package/Utils/Hooks/useResizeObserver.d.ts +2 -0
- package/_verture/{index-7d115f38.js → index-0163a7b0.js} +2 -2
- package/_verture/{index-2055d357.js → index-09404080.js} +1 -1
- package/_verture/{index-3f811a6c.js → index-78f0f0e7.js} +1 -1
- package/_verture/{index-6bbcdc7f.js → index-98ae8a30.js} +1 -1
- package/_verture/useResizeObserver-edda059a.js +69 -0
- package/index.js +7 -6
- package/package.json +1 -1
- package/umd/AutoButton.js +1 -1
- package/umd/AutoTips.js +1 -1
- package/umd/Breadcrumbs.js +1 -1
- package/umd/Card.js +1 -1
- package/umd/ComboSelect.js +3 -3
- package/umd/DynamicMultiBox.js +3 -3
- package/umd/Form.js +1 -1
- package/umd/FormItem.js +1 -1
- package/umd/InputLang.js +1 -1
- package/umd/Selector.js +1 -1
- package/umd/SelectorPicker.js +1 -1
- package/umd/Table.js +1 -1
- package/_verture/index-f62daef9.js +0 -298
- /package/_verture/{modalContext-15114682.js → modalContext-e3beaf4b.js} +0 -0
package/umd/AutoTips.js
CHANGED
|
@@ -34,7 +34,7 @@ object-assign
|
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/n(45228);var r=n(39155),o=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),e.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,n){var r,i={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(l=e.ref),e)u.call(e,r)&&!s.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===i[r]&&(i[r]=e[r]);return{$$typeof:o,type:t,key:c,ref:l,props:i,_owner:a.current}}e.jsx=c,e.jsxs=c},74848:(t,e,n)=>{"use strict";t.exports=n(21020)},43591:(t,e,n)=>{"use strict";n.d(e,{default:()=>E});var r=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var u=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,c=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function i(){n&&(n=!1,t()),r&&s()}function u(){a(i)}function s(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(u,e);o=t}return s}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;u.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},f=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},p=g(0,0,0,0);function d(t){return parseFloat(t)||0}function v(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+d(t["border-"+n+"-width"])}),0)}function h(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var r=f(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=d(i)}return e}(r),i=o.left+o.right,a=o.top+o.bottom,u=d(r.width),s=d(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==e&&(u-=v(r,"left","right")+i),Math.round(s+a)!==n&&(s-=v(r,"top","bottom")+a)),!function(t){return t===f(t).document.documentElement}(t)){var c=Math.round(u+i)-e,l=Math.round(s+a)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(l)&&(s-=l)}return g(o.left,o.top,u,s)}var m="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof f(t).SVGGraphicsElement}:function(t){return t instanceof f(t).SVGElement&&"function"==typeof t.getBBox};function y(t){return o?m(t)?function(t){var e=t.getBBox();return g(0,0,e.width,e.height)}(t):h(t):p}function g(t,e,n,r){return{x:t,y:e,width:n,height:r}}var b=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=y(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),w=function(t,e){var n,r,o,i,a,u,s,c=(r=(n=e).x,o=n.y,i=n.width,a=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(u.prototype),l(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);l(this,{target:t,contentRect:c})},A=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new b(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new w(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),O="undefined"!=typeof WeakMap?new WeakMap:new r,x=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new A(e,n,this);O.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){x.prototype[t]=function(){var e;return(e=O.get(this))[t].apply(e,arguments)}}));const E=void 0!==i.ResizeObserver?i.ResizeObserver:x},10458:(t,e,n)=>{var r=n(85072),o=n(16543);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},54497:(t,e,n)=>{var r=n(85072),o=n(45848);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},33981:(t,e,n)=>{var r=n(85072),o=n(96742);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},85072:(t,e,n)=>{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function u(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function s(t,e){for(var n={},r=[],o=0;o<t.length;o++){var i=t[o],s=e.base?i[0]+e.base:i[0],c=n[s]||0,l="".concat(s," ").concat(c);n[s]=c+1;var f=u(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:m(p,e),references:1}),r.push(l)}return r}function c(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,f=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function p(t,e,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=f(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function d(t,e,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var v=null,h=0;function m(t,e){var n,r,o;if(e.singleton){var i=h++;n=v||(v=c(e)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=c(e),r=d.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=s(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var o=u(n[r]);a[o].references--}for(var i=s(t,e),c=0;c<n.length;c++){var l=u(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},14552:(t,e,n)=>{"use strict";n.d(e,{g:()=>o,n:()=>r});var r="paraui-v4",o="component"},17234:(t,e,n)=>{"use strict";n.d(e,{default:()=>T});var r=n(39155),o=n.n(r),i=n(34307),a=n(94934),u=n(20053),s=n(14552);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){c(t,e,n[e])}))}return t}function f(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}var p={adjustX:1,adjustY:1},d={adjustX:0,adjustY:0};function v(t){return"boolean"==typeof t?t?p:d:l({},d,t)}function h(t){var e=o().isValidElement(t)?t:o().createElement("span",null,t);if("button"===e.type&&e.props.disabled){var n=function(t,e){var n={},r=l({},t);return e.forEach((function(e){t&&e in t&&(n[e]=t[e],delete r[e])})),{picked:n,omitted:r}}(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),r=n.picked,i=n.omitted,a=f(l({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":null}),c=f(l({},i),{pointerEvents:"none"}),p=o().cloneElement(e,{style:c,className:null});return o().createElement("span",{style:a,className:(0,u.A)(e.props.className,"".concat(s.g,"-tooltip-disabled-compatible-wrapper"))},p)}return e}function m(t){return{"bottom-end":"bottomRight","bottom-start":"bottomLeft","left-end":"leftBottom","left-start":"leftTop","right-end":"rightBottom","right-start":"rightTop","top-end":"topRight","top-start":"topLeft"}[t]||t}var y=n(2842);n(33981);function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){b(t,e,n[e])}))}return t}function A(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function O(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t,e)||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.")}()}var E=o().forwardRef((function(t,e){var n,r=x(o().useState(t.defaultVisible),2),c=r[0],p=r[1],d=o().useRef(),g=o().useRef(),b=x(o().useState([0,0]),2),E=b[0],T=b[1];o().useEffect((function(){var e;("visible"in t||"open"in t)&&p(!!(null!==(e=t.visible)&&void 0!==e?e:t.open))}),[null!==(n=t.visible)&&void 0!==n?n:t.open]);var C=function(){var e=t.title;return!e&&0!==e},S=function(){var e=t.builtinPlacements,n=t.autoAdjustOverflow;return e||function(t){var e=t.horizontalArrowShift,n=void 0===e?16:e,r=t.verticalArrowShift,o=void 0===r?8:r,i=t.autoAdjustOverflow,u={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tc"],offset:[-n,-8]},leftTop:{points:["tr","cl"],offset:[-8,-o]},topRight:{points:["br","tc"],offset:[n,-8]},rightTop:{points:["tl","cr"],offset:[8,-o]},bottomRight:{points:["tr","bc"],offset:[n,8]},rightBottom:{points:["bl","cr"],offset:[8,o]},bottomLeft:{points:["tl","bc"],offset:[-n,8]},leftBottom:{points:["br","cl"],offset:[-8,o]}};return Object.keys(u).forEach((function(t){var e,n;u[t]=f(l({},a.DD[t]),{offset:(e=t,n=m(e),{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}}[n]).offset,overflow:v(i)}),u[t].ignoreShake=!0})),u}({autoAdjustOverflow:n})},k=t.prefixCls,j=void 0===k?"".concat(s.g,"-tooltip"):k,P=t.getPopupContainer,M=t.overlayClassName,_=t.overlayInnerStyle,R=t.overlayStyle,D=t.children,N=t.title,L=t.placement,V=t.isPopover,H=t.followCursor,z=t.maxWidth,I=t.disabled,B=O(t,["prefixCls","getPopupContainer","overlayClassName","overlayInnerStyle","overlayStyle","children","title","placement","isPopover","followCursor","maxWidth","disabled"]),F=c;"visible"in t||"open"in t||!C()||(F=!1);var W=(0,u.A)(!V&&"".concat(s.n,"-tooltip"),M),Y=w({},R);z&&(Y.maxWidth=z);var X={targetOffset:E};return t.offset&&(X.offset=t.offset),o().createElement(i.A,A(w({},B),{prefixCls:j,placement:H?"top":m(L),overlayClassName:W,getTooltipContainer:P,ref:e||g,builtinPlacements:S(),overlay:o().createElement(o().Fragment,null,I&&o().createElement(y.A,{className:"disabled-svg"}),N),visible:F,align:X,onVisibleChange:function(e){var n;("visible"in t||"open"in t||p(!C()&&e),C())||(null===(n=t.onVisibleChange)||void 0===n||n.call(t,e))},onPopupAlign:function(t,e){var n=S(),r=Object.keys(n).find((function(t){return n[t].points[0]===e.points[0]&&n[t].points[1]===e.points[1]}));if(r){var o=t.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-e.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-e.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-e.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-e.offset[0],"px")),t.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayStyle:Y,overlayInnerStyle:_,arrowContent:null,motion:{motionName:"".concat(s.g,"-tooltip-zoom-big-fast"),motionDeadline:1e3}}),H?o().createElement("div",{style:{display:"inline-block"},ref:d,onMouseMove:function(t){if(d.current){var e,n,r,o,i=(null===(o=g.current)||void 0===o||null===(r=o.popupRef)||void 0===r||null===(n=r.current)||void 0===n||null===(e=n.getElement())||void 0===e?void 0:e.offsetHeight)||0,a=0===i?60:30,u=d.current.getBoundingClientRect(),s=u.x,c=u.y,l=u.width,f=t.clientX-(s+l/2),p=t.clientY-c+i+a;setTimeout((function(){T([-f,-p])}))}}},h(D)):h(D))}));E.displayName="Tooltip",E.defaultProps={placement:"topLeft",mouseEnterDelay:.1,mouseLeaveDelay:.1,autoAdjustOverflow:!0,defaultVisible:!1,followCursor:!1,maxWidth:500};const T=E},38937:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(39155);const o=function(t){var e=(0,r.useRef)({});(0,r.useEffect)((function(){return o(),function(){clearInterval(e.current.resizeTimer),clearTimeout(e.current.resizeLimit)}}),[t.dom]);var n=function(n){var r=n.width,o=n.height;r===e.current.width&&o===e.current.height||(e.current.width=r,e.current.height=o,clearTimeout(e.current.resizeLimit),e.current.resizeLimit=setTimeout((function(){t.cb()}),100))},o=function(){var r=t.dom;r&&(void 0===window.ResizeObserver?(clearInterval(e.current.resizeTimer),e.current.resizeTimer=setInterval((function(){var t=r.getBoundingClientRect();n(t)}))):new ResizeObserver((function(t){var e,r=null===(e=t[0])||void 0===e?void 0:e.contentRect;n(r)})).observe(r))}}},32663:t=>{"use strict";t.exports=n},39155:e=>{"use strict";e.exports=t},69514:t=>{"use strict";t.exports=e},46942:(t,e)=>{var n;
|
|
37
|
+
*/n(45228);var r=n(39155),o=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),e.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,n){var r,i={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(l=e.ref),e)u.call(e,r)&&!s.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===i[r]&&(i[r]=e[r]);return{$$typeof:o,type:t,key:c,ref:l,props:i,_owner:a.current}}e.jsx=c,e.jsxs=c},74848:(t,e,n)=>{"use strict";t.exports=n(21020)},43591:(t,e,n)=>{"use strict";n.d(e,{default:()=>E});var r=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var u=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,c=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function i(){n&&(n=!1,t()),r&&s()}function u(){a(i)}function s(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(u,e);o=t}return s}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;u.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},f=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},p=g(0,0,0,0);function d(t){return parseFloat(t)||0}function v(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+d(t["border-"+n+"-width"])}),0)}function h(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var r=f(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=d(i)}return e}(r),i=o.left+o.right,a=o.top+o.bottom,u=d(r.width),s=d(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==e&&(u-=v(r,"left","right")+i),Math.round(s+a)!==n&&(s-=v(r,"top","bottom")+a)),!function(t){return t===f(t).document.documentElement}(t)){var c=Math.round(u+i)-e,l=Math.round(s+a)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(l)&&(s-=l)}return g(o.left,o.top,u,s)}var m="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof f(t).SVGGraphicsElement}:function(t){return t instanceof f(t).SVGElement&&"function"==typeof t.getBBox};function y(t){return o?m(t)?function(t){var e=t.getBBox();return g(0,0,e.width,e.height)}(t):h(t):p}function g(t,e,n,r){return{x:t,y:e,width:n,height:r}}var b=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=y(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),w=function(t,e){var n,r,o,i,a,u,s,c=(r=(n=e).x,o=n.y,i=n.width,a=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(u.prototype),l(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);l(this,{target:t,contentRect:c})},A=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new b(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new w(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),O="undefined"!=typeof WeakMap?new WeakMap:new r,x=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new A(e,n,this);O.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){x.prototype[t]=function(){var e;return(e=O.get(this))[t].apply(e,arguments)}}));const E=void 0!==i.ResizeObserver?i.ResizeObserver:x},10458:(t,e,n)=>{var r=n(85072),o=n(16543);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},54497:(t,e,n)=>{var r=n(85072),o=n(45848);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},33981:(t,e,n)=>{var r=n(85072),o=n(96742);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},85072:(t,e,n)=>{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function u(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function s(t,e){for(var n={},r=[],o=0;o<t.length;o++){var i=t[o],s=e.base?i[0]+e.base:i[0],c=n[s]||0,l="".concat(s," ").concat(c);n[s]=c+1;var f=u(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:m(p,e),references:1}),r.push(l)}return r}function c(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,f=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function p(t,e,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=f(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function d(t,e,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var v=null,h=0;function m(t,e){var n,r,o;if(e.singleton){var i=h++;n=v||(v=c(e)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=c(e),r=d.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=s(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var o=u(n[r]);a[o].references--}for(var i=s(t,e),c=0;c<n.length;c++){var l=u(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},14552:(t,e,n)=>{"use strict";n.d(e,{g:()=>o,n:()=>r});var r="paraui-v4",o="component"},17234:(t,e,n)=>{"use strict";n.d(e,{default:()=>T});var r=n(39155),o=n.n(r),i=n(34307),a=n(94934),u=n(20053),s=n(14552);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){c(t,e,n[e])}))}return t}function f(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}var p={adjustX:1,adjustY:1},d={adjustX:0,adjustY:0};function v(t){return"boolean"==typeof t?t?p:d:l({},d,t)}function h(t){var e=o().isValidElement(t)?t:o().createElement("span",null,t);if("button"===e.type&&e.props.disabled){var n=function(t,e){var n={},r=l({},t);return e.forEach((function(e){t&&e in t&&(n[e]=t[e],delete r[e])})),{picked:n,omitted:r}}(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),r=n.picked,i=n.omitted,a=f(l({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":null}),c=f(l({},i),{pointerEvents:"none"}),p=o().cloneElement(e,{style:c,className:null});return o().createElement("span",{style:a,className:(0,u.A)(e.props.className,"".concat(s.g,"-tooltip-disabled-compatible-wrapper"))},p)}return e}function m(t){return{"bottom-end":"bottomRight","bottom-start":"bottomLeft","left-end":"leftBottom","left-start":"leftTop","right-end":"rightBottom","right-start":"rightTop","top-end":"topRight","top-start":"topLeft"}[t]||t}var y=n(2842);n(33981);function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){b(t,e,n[e])}))}return t}function A(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function O(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t,e)||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.")}()}var E=o().forwardRef((function(t,e){var n,r=x(o().useState(t.defaultVisible),2),c=r[0],p=r[1],d=o().useRef(),g=o().useRef(),b=x(o().useState([0,0]),2),E=b[0],T=b[1];o().useEffect((function(){var e;("visible"in t||"open"in t)&&p(!!(null!==(e=t.visible)&&void 0!==e?e:t.open))}),[null!==(n=t.visible)&&void 0!==n?n:t.open]);var C=function(){var e=t.title;return!e&&0!==e},S=function(){var e=t.builtinPlacements,n=t.autoAdjustOverflow;return e||function(t){var e=t.horizontalArrowShift,n=void 0===e?16:e,r=t.verticalArrowShift,o=void 0===r?8:r,i=t.autoAdjustOverflow,u={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tc"],offset:[-n,-8]},leftTop:{points:["tr","cl"],offset:[-8,-o]},topRight:{points:["br","tc"],offset:[n,-8]},rightTop:{points:["tl","cr"],offset:[8,-o]},bottomRight:{points:["tr","bc"],offset:[n,8]},rightBottom:{points:["bl","cr"],offset:[8,o]},bottomLeft:{points:["tl","bc"],offset:[-n,8]},leftBottom:{points:["br","cl"],offset:[-8,o]}};return Object.keys(u).forEach((function(t){var e,n;u[t]=f(l({},a.DD[t]),{offset:(e=t,n=m(e),{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}}[n]).offset,overflow:v(i)}),u[t].ignoreShake=!0})),u}({autoAdjustOverflow:n})},k=t.prefixCls,j=void 0===k?"".concat(s.g,"-tooltip"):k,P=t.getPopupContainer,M=t.overlayClassName,_=t.overlayInnerStyle,R=t.overlayStyle,D=t.children,N=t.title,L=t.placement,V=t.isPopover,H=t.followCursor,z=t.maxWidth,I=t.disabled,B=O(t,["prefixCls","getPopupContainer","overlayClassName","overlayInnerStyle","overlayStyle","children","title","placement","isPopover","followCursor","maxWidth","disabled"]),F=c;"visible"in t||"open"in t||!C()||(F=!1);var W=(0,u.A)(!V&&"".concat(s.n,"-tooltip"),M),Y=w({},R);z&&(Y.maxWidth=z);var X={targetOffset:E};return t.offset&&(X.offset=t.offset),o().createElement(i.A,A(w({},B),{prefixCls:j,placement:H?"top":m(L),overlayClassName:W,getTooltipContainer:P,ref:e||g,builtinPlacements:S(),overlay:o().createElement(o().Fragment,null,I&&o().createElement(y.A,{className:"disabled-svg"}),N),visible:F,align:X,onVisibleChange:function(e){var n;("visible"in t||"open"in t||p(!C()&&e),C())||(null===(n=t.onVisibleChange)||void 0===n||n.call(t,e))},onPopupAlign:function(t,e){var n=S(),r=Object.keys(n).find((function(t){return n[t].points[0]===e.points[0]&&n[t].points[1]===e.points[1]}));if(r){var o=t.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-e.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-e.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-e.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-e.offset[0],"px")),t.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayStyle:Y,overlayInnerStyle:_,arrowContent:null,motion:{motionName:"".concat(s.g,"-tooltip-zoom-big-fast"),motionDeadline:1e3}}),H?o().createElement("div",{style:{display:"inline-block"},ref:d,onMouseMove:function(t){if(d.current){var e,n,r,o,i=(null===(o=g.current)||void 0===o||null===(r=o.popupRef)||void 0===r||null===(n=r.current)||void 0===n||null===(e=n.getElement())||void 0===e?void 0:e.offsetHeight)||0,a=0===i?60:30,u=d.current.getBoundingClientRect(),s=u.x,c=u.y,l=u.width,f=t.clientX-(s+l/2),p=t.clientY-c+i+a;setTimeout((function(){T([-f,-p])}))}}},h(D)):h(D))}));E.displayName="Tooltip",E.defaultProps={placement:"topLeft",mouseEnterDelay:.1,mouseLeaveDelay:.1,autoAdjustOverflow:!0,defaultVisible:!1,followCursor:!1,maxWidth:500};const T=E},38937:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(39155);const o=function(t){var e=(0,r.useRef)({});(0,r.useEffect)((function(){return o(),function(){clearInterval(e.current.resizeTimer),clearTimeout(e.current.resizeLimit)}}),[t.dom]);var n=function(n){var r=n.width,o=n.height;if(r!==e.current.width||o!==e.current.height){var i=!0;if(t.resizeType&&("width"===t.resizeType&&r===e.current.width&&(i=!1),"height"===t.resizeType&&o===e.current.height&&(i=!1)),i)if(e.current.width=r,e.current.height=o,0!==t.timer){clearTimeout(e.current.resizeLimit);var a=void 0!==t.timer?t.timer:100;e.current.resizeLimit=setTimeout((function(){t.cb()}),a)}else t.cb()}},o=function(){var r=t.dom;r&&(void 0===window.ResizeObserver?(clearInterval(e.current.resizeTimer),e.current.resizeTimer=setInterval((function(){var t=r.getBoundingClientRect();n(t)}))):new ResizeObserver((function(t){var e,r=null===(e=t[0])||void 0===e?void 0:e.contentRect;n(r)})).observe(r))}}},32663:t=>{"use strict";t.exports=n},39155:e=>{"use strict";e.exports=t},69514:t=>{"use strict";t.exports=e},46942:(t,e)=>{var n;
|
|
38
38
|
/*!
|
|
39
39
|
Copyright (c) 2018 Jed Watson.
|
|
40
40
|
Licensed under the MIT License (MIT), see
|
package/umd/Breadcrumbs.js
CHANGED
|
@@ -34,7 +34,7 @@ object-assign
|
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/n(45228);var r=n(39155),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,l=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,r)&&!u.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:l,props:i,_owner:a.current}}t.jsx=s,t.jsxs=s},74848:(e,t,n)=>{"use strict";e.exports=n(21020)},43591:(e,t,n)=>{"use strict";n.d(t,{default:()=>E});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,s=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&u()}function c(){a(i)}function u(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(c,t);o=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=g(0,0,0,0);function d(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function v(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=p(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=d(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,c=d(r.width),u=d(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=m(r,"left","right")+i),Math.round(u+a)!==n&&(u-=m(r,"top","bottom")+a)),!function(e){return e===p(e).document.documentElement}(e)){var s=Math.round(c+i)-t,l=Math.round(u+a)-n;1!==Math.abs(s)&&(c-=s),1!==Math.abs(l)&&(u-=l)}return g(o.left,o.top,c,u)}var h="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function b(e){return o?h(e)?function(e){var t=e.getBBox();return g(0,0,t.width,t.height)}(e):v(e):f}function g(e,t,n,r){return{x:e,y:t,width:n,height:r}}var y=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=b(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var n,r,o,i,a,c,u,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(c.prototype),l(u,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),u);l(this,{target:e,contentRect:s})},A=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new y(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new w(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),x="undefined"!=typeof WeakMap?new WeakMap:new r,O=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new A(t,n,this);x.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}}));const E=void 0!==i.ResizeObserver?i.ResizeObserver:O},10458:(e,t,n)=>{var r=n(85072),o=n(16543);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},54497:(e,t,n)=>{var r=n(85072),o=n(45848);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},35052:(e,t,n)=>{var r=n(85072),o=n(31383);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},49603:(e,t,n)=>{var r=n(85072),o=n(62076);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},33981:(e,t,n)=>{var r=n(85072),o=n(96742);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},85072:(e,t,n)=>{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=n[u]||0,l="".concat(u," ").concat(s);n[u]=s+1;var p=c(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:l,updater:h(f,t),references:1}),r.push(l)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,p=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function f(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=p(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var m=null,v=0;function h(e,t){var n,r,o;if(t.singleton){var i=v++;n=m||(m=s(t)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else n=s(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=c(n[r]);a[o].references--}for(var i=u(e,t),s=0;s<n.length;s++){var l=c(n[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},69004:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(39155),o=n.n(r),i=n(17234),a=n(14552),c=n(32663);n(38937),n(10458);n(54497);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const l=function(e){var t=e.children,n=e.arrow,u=void 0!==n&&n,l=e.placement,p=void 0===l?"bottom-start":l,f=e.tips,d=void 0===f?"":f,m=e.className,v=void 0===m?"":m,h=e.beyondText,b=void 0===h||h,g=e.interactive,y=void 0===g||g,w=e.tipMaxWidth,A=e.style,x=(0,r.useRef)(),O=(0,r.useRef)(),E=s((0,r.useState)(""),2),k=E[0],S=E[1];(0,r.useEffect)((function(){S(d)}),[d]);var j;return o().createElement(i.default,{arrow:u,title:k,placement:p,interactive:y,boundariesElement:"viewport",overlayClassName:"".concat(a.n,"-auto-tips-tooltip"),maxWidth:w},o().createElement("div",{ref:x,className:(j="".concat(a.n,"-auto-tips"),function(){var e=navigator.userAgent;if(/^((?!chrome|android).)*safari/i.test(e))return!0}()&&(j+=" ".concat(a.n,"-auto-tips-safari")),v&&(j+=" ".concat(v)),j),onMouseOver:function(){var e="",n=x.current,r=n.getBoundingClientRect(),o=O.current.getBoundingClientRect();x.current&&((0,c.isIE)()?r.width>o.width&&(e=d||(b?n.innerText:t)):o.width>r.width&&(e=d||(b?n.innerText:t))),S(e)},style:A},o().createElement("div",{className:"auto-tips-content",ref:O},t)))}},14552:(e,t,n)=>{"use strict";n.d(t,{g:()=>o,n:()=>r});var r="paraui-v4",o="component"},4205:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(39155),o=n.n(r),i=n(16217),a=n(32663);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}u({},n(89601).A.zh);var s=o().createContext({language:(0,a.GetLanguage)(),intlFormat:function(e,t){return function(e,n){var r=(0,a.GetLanguage)();return(0,i.Is)({ops:e,i18nData:{},lang:r,params:n,defI18nData:t})}},componentsProps:{}});const l=s},16217:(e,t,n)=>{"use strict";n.d(t,{Is:()=>o});n(39155);var r=function(e,t){if(!t)return e;e=e.replace(/\"/g,'\\"');var n=/({[^{}]+})/g;return e.split(n).map((function(e){if(e.match(n)){var r=e.replace(/({|})/g,""),o=function(e,t,n){var r=t.replace(/\[(\d+)\]/g,".$1").split("."),o=e,i=!0,a=!1,c=void 0;try{for(var u,s=r[Symbol.iterator]();!(i=(u=s.next()).done);i=!0){var l=u.value;if(void 0===(o=Object(o)[l]))return n}}catch(e){a=!0,c=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw c}}return o}(t,r);return void 0===o?r:o}return e}))},o=function(e){var t,n,o,i,a=e.ops,c=e.i18nData,u=e.lang,s=e.params,l=e.defI18nData;if("string"==typeof a)n=a;else if("object"==typeof a){if("string"!=typeof a.id)return'i18n intl object "id" is missing';n=a.id}void 0!==n&&(void 0===(t=null===(o=c[u])||void 0===o?void 0:o[n])&&l&&(t=null===(i=l[u])||void 0===i?void 0:i[n]));return"string"!=typeof t?"{".concat(n,"}"):r(t,s)}},7569:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39155),o=n.n(r),i=n(4205);const a=function(e,t){var n=o().useContext(i.default).intlFormat;return t.zh_CN=t.zh,t["zh-CN"]=t.zh,t.en_US=t.en,t["en-US"]=t.en,n&&n(e,t)}},25400:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39155),o=n.n(r);function i(e){var t,n,r,o,a,c,u,s,l,p=e.parentNode||e.ownerDocument,f=(null==p||null===(t=p.nodeName)||void 0===t?void 0:t.toLowerCase())||"";return["html","body","#document"].includes(f)?null==e||null===(n=e.ownerDocument)||void 0===n?void 0:n.body:(s=p,(null!=(l=window.HTMLElement)&&"undefined"!=typeof Symbol&&l[Symbol.hasInstance]?l[Symbol.hasInstance](s):s instanceof l)&&(r=p,o=window.getComputedStyle(r),a=o.overflow,c=o.overflowX,u=o.overflowY,/auto|scroll|overlay/.test(a+u+c))?p:i(p))}function a(e,t){var n=o().useRef();return o().useEffect((function(){return function(){n.current&&(n.current.style.position="")}}),[]),function(r){var o;if(t)o=t(r)||document.body;else{var a,c,u,s,l=null===(c=e.current)||void 0===c||null===(a=c.getRootDomNode)||void 0===a?void 0:a.call(c);if(l)(o=i(l)).scrollHeight<=o.clientHeight&&(o=document.body);else o=document.body;if("body"!==(null===(u=o.nodeName)||void 0===u?void 0:u.toLowerCase()))"static"===(null===(s=window.getComputedStyle(o))||void 0===s?void 0:s.position)&&(o.style.position="relative");n.current=o}return o}}},89601:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r={cancel:"Cancel",ok:"Ok"},o={cancel:"取 消",ok:"确 定"},i={zh:o,en:r,"zh-CN":o,"en-US":r}},89315:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var r=n(39155),o=n.n(r),i=n(17234),a=n(14552),c=n(25400),u=n(20053);n(49603);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f=o().forwardRef((function(e,t){var n=e.title,f=e.content,d=p(e,["title","content"]),m=o().useRef(),v=(0,c.A)(m,e.getPopupContainer);(0,r.useEffect)((function(){t&&("function"==typeof t?t(m.current):t.current=m.current)}),[m.current]);var h="".concat(a.g,"-popover");return o().createElement(i.default,l(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}({},d),{isPopover:!0,prefixCls:h,overlayClassName:(0,u.A)("".concat(a.n,"-popover"),e.overlayClassName),ref:m,title:function(e){return n||f?o().createElement(o().Fragment,null,n&&o().createElement("div",{className:"".concat(e,"-title")},n),o().createElement("div",{className:"".concat(e,"-inner-content")},f)):null}(h),transitionName:"".concat(a.g,"-popover-zoom-big"),getPopupContainer:v}))}));f.displayName="Popover",f.defaultProps={placement:"bottom",trigger:"click",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrow:!1};const d=f},17234:(e,t,n)=>{"use strict";n.d(t,{default:()=>k});var r=n(39155),o=n.n(r),i=n(34307),a=n(94934),c=n(20053),u=n(14552);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function p(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var f={adjustX:1,adjustY:1},d={adjustX:0,adjustY:0};function m(e){return"boolean"==typeof e?e?f:d:l({},d,e)}function v(e){var t=o().isValidElement(e)?e:o().createElement("span",null,e);if("button"===t.type&&t.props.disabled){var n=function(e,t){var n={},r=l({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}}(t.props.style,["position","left","right","top","bottom","float","display","zIndex"]),r=n.picked,i=n.omitted,a=p(l({display:"inline-block"},r),{cursor:"not-allowed",width:t.props.block?"100%":null}),s=p(l({},i),{pointerEvents:"none"}),f=o().cloneElement(t,{style:s,className:null});return o().createElement("span",{style:a,className:(0,c.A)(t.props.className,"".concat(u.g,"-tooltip-disabled-compatible-wrapper"))},f)}return t}function h(e){return{"bottom-end":"bottomRight","bottom-start":"bottomLeft","left-end":"leftBottom","left-start":"leftTop","right-end":"rightBottom","right-start":"rightTop","top-end":"topRight","top-start":"topLeft"}[e]||e}var b=n(2842);n(33981);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){y(e,t,n[t])}))}return e}function A(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function x(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var E=o().forwardRef((function(e,t){var n,r=O(o().useState(e.defaultVisible),2),s=r[0],f=r[1],d=o().useRef(),g=o().useRef(),y=O(o().useState([0,0]),2),E=y[0],k=y[1];o().useEffect((function(){var t;("visible"in e||"open"in e)&&f(!!(null!==(t=e.visible)&&void 0!==t?t:e.open))}),[null!==(n=e.visible)&&void 0!==n?n:e.open]);var S=function(){var t=e.title;return!t&&0!==t},j=function(){var t=e.builtinPlacements,n=e.autoAdjustOverflow;return t||function(e){var t=e.horizontalArrowShift,n=void 0===t?16:t,r=e.verticalArrowShift,o=void 0===r?8:r,i=e.autoAdjustOverflow,c={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tc"],offset:[-n,-8]},leftTop:{points:["tr","cl"],offset:[-8,-o]},topRight:{points:["br","tc"],offset:[n,-8]},rightTop:{points:["tl","cr"],offset:[8,-o]},bottomRight:{points:["tr","bc"],offset:[n,8]},rightBottom:{points:["bl","cr"],offset:[8,o]},bottomLeft:{points:["tl","bc"],offset:[-n,8]},leftBottom:{points:["br","cl"],offset:[-8,o]}};return Object.keys(c).forEach((function(e){var t,n;c[e]=p(l({},a.DD[e]),{offset:(t=e,n=h(t),{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}}[n]).offset,overflow:m(i)}),c[e].ignoreShake=!0})),c}({autoAdjustOverflow:n})},C=e.prefixCls,P=void 0===C?"".concat(u.g,"-tooltip"):C,T=e.getPopupContainer,M=e.overlayClassName,_=e.overlayInnerStyle,N=e.overlayStyle,D=e.children,R=e.title,L=e.placement,z=e.isPopover,H=e.followCursor,B=e.maxWidth,V=e.disabled,I=x(e,["prefixCls","getPopupContainer","overlayClassName","overlayInnerStyle","overlayStyle","children","title","placement","isPopover","followCursor","maxWidth","disabled"]),F=s;"visible"in e||"open"in e||!S()||(F=!1);var W=(0,c.A)(!z&&"".concat(u.n,"-tooltip"),M),Y=w({},N);B&&(Y.maxWidth=B);var X={targetOffset:E};return e.offset&&(X.offset=e.offset),o().createElement(i.A,A(w({},I),{prefixCls:P,placement:H?"top":h(L),overlayClassName:W,getTooltipContainer:T,ref:t||g,builtinPlacements:j(),overlay:o().createElement(o().Fragment,null,V&&o().createElement(b.A,{className:"disabled-svg"}),R),visible:F,align:X,onVisibleChange:function(t){var n;("visible"in e||"open"in e||f(!S()&&t),S())||(null===(n=e.onVisibleChange)||void 0===n||n.call(e,t))},onPopupAlign:function(e,t){var n=j(),r=Object.keys(n).find((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}));if(r){var o=e.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayStyle:Y,overlayInnerStyle:_,arrowContent:null,motion:{motionName:"".concat(u.g,"-tooltip-zoom-big-fast"),motionDeadline:1e3}}),H?o().createElement("div",{style:{display:"inline-block"},ref:d,onMouseMove:function(e){if(d.current){var t,n,r,o,i=(null===(o=g.current)||void 0===o||null===(r=o.popupRef)||void 0===r||null===(n=r.current)||void 0===n||null===(t=n.getElement())||void 0===t?void 0:t.offsetHeight)||0,a=0===i?60:30,c=d.current.getBoundingClientRect(),u=c.x,s=c.y,l=c.width,p=e.clientX-(u+l/2),f=e.clientY-s+i+a;setTimeout((function(){k([-p,-f])}))}}},v(D)):v(D))}));E.displayName="Tooltip",E.defaultProps={placement:"topLeft",mouseEnterDelay:.1,mouseLeaveDelay:.1,autoAdjustOverflow:!0,defaultVisible:!1,followCursor:!1,maxWidth:500};const k=E},38937:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(39155);const o=function(e){var t=(0,r.useRef)({});(0,r.useEffect)((function(){return o(),function(){clearInterval(t.current.resizeTimer),clearTimeout(t.current.resizeLimit)}}),[e.dom]);var n=function(n){var r=n.width,o=n.height;r===t.current.width&&o===t.current.height||(t.current.width=r,t.current.height=o,clearTimeout(t.current.resizeLimit),t.current.resizeLimit=setTimeout((function(){e.cb()}),100))},o=function(){var r=e.dom;r&&(void 0===window.ResizeObserver?(clearInterval(t.current.resizeTimer),t.current.resizeTimer=setInterval((function(){var e=r.getBoundingClientRect();n(e)}))):new ResizeObserver((function(e){var t,r=null===(t=e[0])||void 0===t?void 0:t.contentRect;n(r)})).observe(r))}}},32663:e=>{"use strict";e.exports=n},39155:t=>{"use strict";t.exports=e},69514:e=>{"use strict";e.exports=t},46942:(e,t)=>{var n;
|
|
37
|
+
*/n(45228);var r=n(39155),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,l=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,r)&&!u.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:l,props:i,_owner:a.current}}t.jsx=s,t.jsxs=s},74848:(e,t,n)=>{"use strict";e.exports=n(21020)},43591:(e,t,n)=>{"use strict";n.d(t,{default:()=>E});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,s=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&u()}function c(){a(i)}function u(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(c,t);o=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=g(0,0,0,0);function d(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function v(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=p(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=d(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,c=d(r.width),u=d(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=m(r,"left","right")+i),Math.round(u+a)!==n&&(u-=m(r,"top","bottom")+a)),!function(e){return e===p(e).document.documentElement}(e)){var s=Math.round(c+i)-t,l=Math.round(u+a)-n;1!==Math.abs(s)&&(c-=s),1!==Math.abs(l)&&(u-=l)}return g(o.left,o.top,c,u)}var h="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function b(e){return o?h(e)?function(e){var t=e.getBBox();return g(0,0,t.width,t.height)}(e):v(e):f}function g(e,t,n,r){return{x:e,y:t,width:n,height:r}}var y=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=b(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var n,r,o,i,a,c,u,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(c.prototype),l(u,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),u);l(this,{target:e,contentRect:s})},A=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new y(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new w(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),x="undefined"!=typeof WeakMap?new WeakMap:new r,O=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new A(t,n,this);x.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}}));const E=void 0!==i.ResizeObserver?i.ResizeObserver:O},10458:(e,t,n)=>{var r=n(85072),o=n(16543);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},54497:(e,t,n)=>{var r=n(85072),o=n(45848);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},35052:(e,t,n)=>{var r=n(85072),o=n(31383);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},49603:(e,t,n)=>{var r=n(85072),o=n(62076);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},33981:(e,t,n)=>{var r=n(85072),o=n(96742);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},85072:(e,t,n)=>{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=n[u]||0,l="".concat(u," ").concat(s);n[u]=s+1;var p=c(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:l,updater:h(f,t),references:1}),r.push(l)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,p=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function f(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=p(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var m=null,v=0;function h(e,t){var n,r,o;if(t.singleton){var i=v++;n=m||(m=s(t)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else n=s(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=c(n[r]);a[o].references--}for(var i=u(e,t),s=0;s<n.length;s++){var l=c(n[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},69004:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(39155),o=n.n(r),i=n(17234),a=n(14552),c=n(32663);n(38937),n(10458);n(54497);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const l=function(e){var t=e.children,n=e.arrow,u=void 0!==n&&n,l=e.placement,p=void 0===l?"bottom-start":l,f=e.tips,d=void 0===f?"":f,m=e.className,v=void 0===m?"":m,h=e.beyondText,b=void 0===h||h,g=e.interactive,y=void 0===g||g,w=e.tipMaxWidth,A=e.style,x=(0,r.useRef)(),O=(0,r.useRef)(),E=s((0,r.useState)(""),2),k=E[0],S=E[1];(0,r.useEffect)((function(){S(d)}),[d]);var j;return o().createElement(i.default,{arrow:u,title:k,placement:p,interactive:y,boundariesElement:"viewport",overlayClassName:"".concat(a.n,"-auto-tips-tooltip"),maxWidth:w},o().createElement("div",{ref:x,className:(j="".concat(a.n,"-auto-tips"),function(){var e=navigator.userAgent;if(/^((?!chrome|android).)*safari/i.test(e))return!0}()&&(j+=" ".concat(a.n,"-auto-tips-safari")),v&&(j+=" ".concat(v)),j),onMouseOver:function(){var e="",n=x.current,r=n.getBoundingClientRect(),o=O.current.getBoundingClientRect();x.current&&((0,c.isIE)()?r.width>o.width&&(e=d||(b?n.innerText:t)):o.width>r.width&&(e=d||(b?n.innerText:t))),S(e)},style:A},o().createElement("div",{className:"auto-tips-content",ref:O},t)))}},14552:(e,t,n)=>{"use strict";n.d(t,{g:()=>o,n:()=>r});var r="paraui-v4",o="component"},4205:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(39155),o=n.n(r),i=n(16217),a=n(32663);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}u({},n(89601).A.zh);var s=o().createContext({language:(0,a.GetLanguage)(),intlFormat:function(e,t){return function(e,n){var r=(0,a.GetLanguage)();return(0,i.Is)({ops:e,i18nData:{},lang:r,params:n,defI18nData:t})}},componentsProps:{}});const l=s},16217:(e,t,n)=>{"use strict";n.d(t,{Is:()=>o});n(39155);var r=function(e,t){if(!t)return e;e=e.replace(/\"/g,'\\"');var n=/({[^{}]+})/g;return e.split(n).map((function(e){if(e.match(n)){var r=e.replace(/({|})/g,""),o=function(e,t,n){var r=t.replace(/\[(\d+)\]/g,".$1").split("."),o=e,i=!0,a=!1,c=void 0;try{for(var u,s=r[Symbol.iterator]();!(i=(u=s.next()).done);i=!0){var l=u.value;if(void 0===(o=Object(o)[l]))return n}}catch(e){a=!0,c=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw c}}return o}(t,r);return void 0===o?r:o}return e}))},o=function(e){var t,n,o,i,a=e.ops,c=e.i18nData,u=e.lang,s=e.params,l=e.defI18nData;if("string"==typeof a)n=a;else if("object"==typeof a){if("string"!=typeof a.id)return'i18n intl object "id" is missing';n=a.id}void 0!==n&&(void 0===(t=null===(o=c[u])||void 0===o?void 0:o[n])&&l&&(t=null===(i=l[u])||void 0===i?void 0:i[n]));return"string"!=typeof t?"{".concat(n,"}"):r(t,s)}},7569:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39155),o=n.n(r),i=n(4205);const a=function(e,t){var n=o().useContext(i.default).intlFormat;return t.zh_CN=t.zh,t["zh-CN"]=t.zh,t.en_US=t.en,t["en-US"]=t.en,n&&n(e,t)}},25400:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39155),o=n.n(r);function i(e){var t,n,r,o,a,c,u,s,l,p=e.parentNode||e.ownerDocument,f=(null==p||null===(t=p.nodeName)||void 0===t?void 0:t.toLowerCase())||"";return["html","body","#document"].includes(f)?null==e||null===(n=e.ownerDocument)||void 0===n?void 0:n.body:(s=p,(null!=(l=window.HTMLElement)&&"undefined"!=typeof Symbol&&l[Symbol.hasInstance]?l[Symbol.hasInstance](s):s instanceof l)&&(r=p,o=window.getComputedStyle(r),a=o.overflow,c=o.overflowX,u=o.overflowY,/auto|scroll|overlay/.test(a+u+c))?p:i(p))}function a(e,t){var n=o().useRef();return o().useEffect((function(){return function(){n.current&&(n.current.style.position="")}}),[]),function(r){var o;if(t)o=t(r)||document.body;else{var a,c,u,s,l=null===(c=e.current)||void 0===c||null===(a=c.getRootDomNode)||void 0===a?void 0:a.call(c);if(l)(o=i(l)).scrollHeight<=o.clientHeight&&(o=document.body);else o=document.body;if("body"!==(null===(u=o.nodeName)||void 0===u?void 0:u.toLowerCase()))"static"===(null===(s=window.getComputedStyle(o))||void 0===s?void 0:s.position)&&(o.style.position="relative");n.current=o}return o}}},89601:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r={cancel:"Cancel",ok:"Ok"},o={cancel:"取 消",ok:"确 定"},i={zh:o,en:r,"zh-CN":o,"en-US":r}},89315:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var r=n(39155),o=n.n(r),i=n(17234),a=n(14552),c=n(25400),u=n(20053);n(49603);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f=o().forwardRef((function(e,t){var n=e.title,f=e.content,d=p(e,["title","content"]),m=o().useRef(),v=(0,c.A)(m,e.getPopupContainer);(0,r.useEffect)((function(){t&&("function"==typeof t?t(m.current):t.current=m.current)}),[m.current]);var h="".concat(a.g,"-popover");return o().createElement(i.default,l(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}({},d),{isPopover:!0,prefixCls:h,overlayClassName:(0,u.A)("".concat(a.n,"-popover"),e.overlayClassName),ref:m,title:function(e){return n||f?o().createElement(o().Fragment,null,n&&o().createElement("div",{className:"".concat(e,"-title")},n),o().createElement("div",{className:"".concat(e,"-inner-content")},f)):null}(h),transitionName:"".concat(a.g,"-popover-zoom-big"),getPopupContainer:v}))}));f.displayName="Popover",f.defaultProps={placement:"bottom",trigger:"click",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrow:!1};const d=f},17234:(e,t,n)=>{"use strict";n.d(t,{default:()=>k});var r=n(39155),o=n.n(r),i=n(34307),a=n(94934),c=n(20053),u=n(14552);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function p(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var f={adjustX:1,adjustY:1},d={adjustX:0,adjustY:0};function m(e){return"boolean"==typeof e?e?f:d:l({},d,e)}function v(e){var t=o().isValidElement(e)?e:o().createElement("span",null,e);if("button"===t.type&&t.props.disabled){var n=function(e,t){var n={},r=l({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}}(t.props.style,["position","left","right","top","bottom","float","display","zIndex"]),r=n.picked,i=n.omitted,a=p(l({display:"inline-block"},r),{cursor:"not-allowed",width:t.props.block?"100%":null}),s=p(l({},i),{pointerEvents:"none"}),f=o().cloneElement(t,{style:s,className:null});return o().createElement("span",{style:a,className:(0,c.A)(t.props.className,"".concat(u.g,"-tooltip-disabled-compatible-wrapper"))},f)}return t}function h(e){return{"bottom-end":"bottomRight","bottom-start":"bottomLeft","left-end":"leftBottom","left-start":"leftTop","right-end":"rightBottom","right-start":"rightTop","top-end":"topRight","top-start":"topLeft"}[e]||e}var b=n(2842);n(33981);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){y(e,t,n[t])}))}return e}function A(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function x(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var E=o().forwardRef((function(e,t){var n,r=O(o().useState(e.defaultVisible),2),s=r[0],f=r[1],d=o().useRef(),g=o().useRef(),y=O(o().useState([0,0]),2),E=y[0],k=y[1];o().useEffect((function(){var t;("visible"in e||"open"in e)&&f(!!(null!==(t=e.visible)&&void 0!==t?t:e.open))}),[null!==(n=e.visible)&&void 0!==n?n:e.open]);var S=function(){var t=e.title;return!t&&0!==t},j=function(){var t=e.builtinPlacements,n=e.autoAdjustOverflow;return t||function(e){var t=e.horizontalArrowShift,n=void 0===t?16:t,r=e.verticalArrowShift,o=void 0===r?8:r,i=e.autoAdjustOverflow,c={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tc"],offset:[-n,-8]},leftTop:{points:["tr","cl"],offset:[-8,-o]},topRight:{points:["br","tc"],offset:[n,-8]},rightTop:{points:["tl","cr"],offset:[8,-o]},bottomRight:{points:["tr","bc"],offset:[n,8]},rightBottom:{points:["bl","cr"],offset:[8,o]},bottomLeft:{points:["tl","bc"],offset:[-n,8]},leftBottom:{points:["br","cl"],offset:[-8,o]}};return Object.keys(c).forEach((function(e){var t,n;c[e]=p(l({},a.DD[e]),{offset:(t=e,n=h(t),{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}}[n]).offset,overflow:m(i)}),c[e].ignoreShake=!0})),c}({autoAdjustOverflow:n})},C=e.prefixCls,P=void 0===C?"".concat(u.g,"-tooltip"):C,T=e.getPopupContainer,M=e.overlayClassName,_=e.overlayInnerStyle,N=e.overlayStyle,D=e.children,R=e.title,L=e.placement,z=e.isPopover,H=e.followCursor,B=e.maxWidth,V=e.disabled,I=x(e,["prefixCls","getPopupContainer","overlayClassName","overlayInnerStyle","overlayStyle","children","title","placement","isPopover","followCursor","maxWidth","disabled"]),F=s;"visible"in e||"open"in e||!S()||(F=!1);var W=(0,c.A)(!z&&"".concat(u.n,"-tooltip"),M),Y=w({},N);B&&(Y.maxWidth=B);var X={targetOffset:E};return e.offset&&(X.offset=e.offset),o().createElement(i.A,A(w({},I),{prefixCls:P,placement:H?"top":h(L),overlayClassName:W,getTooltipContainer:T,ref:t||g,builtinPlacements:j(),overlay:o().createElement(o().Fragment,null,V&&o().createElement(b.A,{className:"disabled-svg"}),R),visible:F,align:X,onVisibleChange:function(t){var n;("visible"in e||"open"in e||f(!S()&&t),S())||(null===(n=e.onVisibleChange)||void 0===n||n.call(e,t))},onPopupAlign:function(e,t){var n=j(),r=Object.keys(n).find((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}));if(r){var o=e.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayStyle:Y,overlayInnerStyle:_,arrowContent:null,motion:{motionName:"".concat(u.g,"-tooltip-zoom-big-fast"),motionDeadline:1e3}}),H?o().createElement("div",{style:{display:"inline-block"},ref:d,onMouseMove:function(e){if(d.current){var t,n,r,o,i=(null===(o=g.current)||void 0===o||null===(r=o.popupRef)||void 0===r||null===(n=r.current)||void 0===n||null===(t=n.getElement())||void 0===t?void 0:t.offsetHeight)||0,a=0===i?60:30,c=d.current.getBoundingClientRect(),u=c.x,s=c.y,l=c.width,p=e.clientX-(u+l/2),f=e.clientY-s+i+a;setTimeout((function(){k([-p,-f])}))}}},v(D)):v(D))}));E.displayName="Tooltip",E.defaultProps={placement:"topLeft",mouseEnterDelay:.1,mouseLeaveDelay:.1,autoAdjustOverflow:!0,defaultVisible:!1,followCursor:!1,maxWidth:500};const k=E},38937:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(39155);const o=function(e){var t=(0,r.useRef)({});(0,r.useEffect)((function(){return o(),function(){clearInterval(t.current.resizeTimer),clearTimeout(t.current.resizeLimit)}}),[e.dom]);var n=function(n){var r=n.width,o=n.height;if(r!==t.current.width||o!==t.current.height){var i=!0;if(e.resizeType&&("width"===e.resizeType&&r===t.current.width&&(i=!1),"height"===e.resizeType&&o===t.current.height&&(i=!1)),i)if(t.current.width=r,t.current.height=o,0!==e.timer){clearTimeout(t.current.resizeLimit);var a=void 0!==e.timer?e.timer:100;t.current.resizeLimit=setTimeout((function(){e.cb()}),a)}else e.cb()}},o=function(){var r=e.dom;r&&(void 0===window.ResizeObserver?(clearInterval(t.current.resizeTimer),t.current.resizeTimer=setInterval((function(){var e=r.getBoundingClientRect();n(e)}))):new ResizeObserver((function(e){var t,r=null===(t=e[0])||void 0===t?void 0:t.contentRect;n(r)})).observe(r))}}},32663:e=>{"use strict";e.exports=n},39155:t=>{"use strict";t.exports=e},69514:e=>{"use strict";e.exports=t},46942:(e,t)=>{var n;
|
|
38
38
|
/*!
|
|
39
39
|
Copyright (c) 2018 Jed Watson.
|
|
40
40
|
Licensed under the MIT License (MIT), see
|
package/umd/Card.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@paraview/lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@paraview/lib")):e.ParaUI=r(e.react,e["@paraview/lib"])}(self,((e,r)=>(()=>{var t={79855:(e,r,t)=>{(r=t(76314)(!1)).push([e.id,".paraui-v4-card{width:100%;height:100%;overflow:auto}.paraui-v4-card>.card-list{display:flex;flex-wrap:wrap}.paraui-v4-card>.card-list>.card-item{border-radius:4px;overflow:auto}.paraui-v4-card>.more{text-align:center}.paraui-v4-card>.more>.more-content{font-size:14px;text-align:center;color:#a1a8b3;display:inline-block}.paraui-v4-card.paraui-v4-card-more>.more>.more-content{cursor:pointer}.paraui-v4-card.paraui-v4-card-more>.more>.more-content:hover{color:#2e65e6}",""]),e.exports=r},76314:e=>{"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t=e[1]||"",n=e[3];if(!n)return t;if(r&&"function"==typeof btoa){var o=(a=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),i=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(i).concat([o]).join("\n")}var a,c,u;return[t].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&o[u[0]]||(t&&(u[2]?u[2]="".concat(t," and ").concat(u[2]):u[2]=t),r.push(u))}},r}},43706:(e,r,t)=>{var n=t(85072),o=t(79855);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},85072:(e,r,t)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),a=[];function c(e){for(var r=-1,t=0;t<a.length;t++)if(a[t].identifier===e){r=t;break}return r}function u(e,r){for(var t={},n=[],o=0;o<e.length;o++){var i=e[o],u=r.base?i[0]+r.base:i[0],l=t[u]||0,s="".concat(u," ").concat(l);t[u]=l+1;var f=c(s),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:s,updater:h(d,r),references:1}),n.push(s)}return n}function l(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=t.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}return r}var s,f=(s=[],function(e,r){return s[e]=r,s.filter(Boolean).join("\n")});function d(e,r,t,n){var o=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=f(r,o);else{var i=document.createTextNode(o),a=e.childNodes;a[r]&&e.removeChild(a[r]),a.length?e.insertBefore(i,a[r]):e.appendChild(i)}}function p(e,r,t){var n=t.css,o=t.media,i=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,m=0;function h(e,r){var t,n,o;if(r.singleton){var i=m++;t=v||(v=l(r)),n=d.bind(null,t,i,!1),o=d.bind(null,t,i,!0)}else t=l(r),n=p.bind(null,t,r),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else o()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=o());var t=u(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var o=c(t[n]);a[o].references--}for(var i=u(e,r),l=0;l<t.length;l++){var s=c(t[l]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}t=i}}}},4205:(e,r,t)=>{"use strict";t.d(r,{default:()=>s});var n=t(39155),o=t.n(n),i=t(16217),a=t(32663);function c(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function u(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),n.forEach((function(r){c(e,r,t[r])}))}return e}u({},t(89601).A.zh);var l=o().createContext({language:(0,a.GetLanguage)(),intlFormat:function(e,r){return function(e,t){var n=(0,a.GetLanguage)();return(0,i.Is)({ops:e,i18nData:{},lang:n,params:t,defI18nData:r})}},componentsProps:{}});const s=l},16217:(e,r,t)=>{"use strict";t.d(r,{Is:()=>o});t(39155);var n=function(e,r){if(!r)return e;e=e.replace(/\"/g,'\\"');var t=/({[^{}]+})/g;return e.split(t).map((function(e){if(e.match(t)){var n=e.replace(/({|})/g,""),o=function(e,r,t){var n=r.replace(/\[(\d+)\]/g,".$1").split("."),o=e,i=!0,a=!1,c=void 0;try{for(var u,l=n[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var s=u.value;if(void 0===(o=Object(o)[s]))return t}}catch(e){a=!0,c=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw c}}return o}(r,n);return void 0===o?n:o}return e}))},o=function(e){var r,t,o,i,a=e.ops,c=e.i18nData,u=e.lang,l=e.params,s=e.defI18nData;if("string"==typeof a)t=a;else if("object"==typeof a){if("string"!=typeof a.id)return'i18n intl object "id" is missing';t=a.id}void 0!==t&&(void 0===(r=null===(o=c[u])||void 0===o?void 0:o[t])&&s&&(r=null===(i=s[u])||void 0===i?void 0:i[t]));return"string"!=typeof r?"{".concat(t,"}"):n(r,l)}},89601:(e,r,t)=>{"use strict";t.d(r,{A:()=>i});const n={cancel:"Cancel",ok:"Ok"},o={cancel:"取 消",ok:"确 定"},i={zh:o,en:n,"zh-CN":o,"en-US":n}},32663:e=>{"use strict";e.exports=r},39155:r=>{"use strict";r.exports=e}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={id:e,exports:{}};return t[e](i,i.exports,o),i.exports}o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};return(()=>{"use strict";o.r(i),o.d(i,{Card:()=>m,default:()=>h});var e=o(39155),r=o.n(e),t="paraui-v4";function n(e){var r,t,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=n(e[r]))&&(o&&(o+=" "),o+=t);else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function a(){for(var e,r,t=0,o="";t<arguments.length;)(e=arguments[t++])&&(r=n(e))&&(o&&(o+=" "),o+=r);return o}var c=o(4205);const u=function(e,t){var n=r().useContext(c.default).intlFormat;return t.zh_CN=t.zh,t["zh-CN"]=t.zh,t.en_US=t.en,t["en-US"]=t.en,n&&n(e,t)},l={zh:{more:"鼠标滚动,加载更多数据",loadingMore:"数据正在加载中…"},en:{more:"Mouse scrolling to load more data",loadingMore:"Loading..."}};o(43706);function s(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function f(e,r,t,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void t(e)}c.done?r(u):Promise.resolve(u).then(n,o)}function d(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function p(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(n=t.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return s(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,r)}(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 v(e,r){var t,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=r.call(e,a)}catch(e){i=[6,e],n=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var m=function(n){var o=n.className,i=n.style,c=n.list,s=n.boxShadow,m=n.border,h=n.backgroundImage,g=n.width,y=void 0===g?"300px":g,b=n.height,w=void 0===b?"140px":b,x=n.lineNum,S=n.marginRight,j=void 0===S?"20px":S,O=n.marginBottom,C=void 0===O?"20px":O,M=n.showMore,E=void 0!==M&&M,N=n.moreRender,k=n.loadingMoreRender,R=n.onMore,P=u("Card",l),T=p((0,e.useState)(),2),z=(T[0],T[1]),A=p((0,e.useState)(!1),2),I=A[0],L=A[1],H=(0,e.useRef)({}),U=(0,e.useRef)(null);(0,e.useEffect)((function(){var e,r;return window.removeEventListener("resize",_),null===(e=U.current)||void 0===e||e.removeEventListener("scroll",D),window.addEventListener("resize",_),null===(r=U.current)||void 0===r||r.addEventListener("scroll",D),function(){var e;window.removeEventListener("resize",_),null===(e=U.current)||void 0===e||e.removeEventListener("scroll",D)}}),[E,R]),(0,e.useEffect)((function(){_()}),[c,x]);var q,B,_=function(){if(U.current){var e=U.current.getBoundingClientRect(),r=U.current.querySelector(".card-list").getBoundingClientRect(),t=U.current.querySelector(".card-list > .card-item"),o=t.getBoundingClientRect(),i=parseFloat(t.style.marginRight),a=e.width-r.width,c=0!==a?e.width-a-4:e.width,u=Math.floor((c+i)/(o.width+i));if(void 0===n.width&&n.lineNum){if("number"==typeof x)u=x;else for(var l=n.lineNum.sort((function(e,r){return e.width-r.width})),s=0,f=l.length;s<f;s++){var d=l[s];if(d.width>e.width){u=d.size;break}s===l.length-1&&(u=d.size)}var p=(u-1)*i;a&&(p+=4);var v=p/u+"px";H.current.itemWidth="calc(".concat(1/u*100,"% - ").concat(v,")"),U.current.querySelectorAll(".card-list > .card-item").forEach((function(e){e.style.width=H.current.itemWidth}))}u!==H.current.lineNumCom&&(H.current.lineNumCom=u,z(u))}},D=function(){if(E&&U.current&&n.onMore&&!H.current.loadingMore&&U.current.scrollHeight-(U.current.clientHeight+U.current.scrollTop)<1){var e,r,t;if((null===(e=H.current.pos)||void 0===e?void 0:e.clientHeight)===U.current.clientHeight&&(null===(r=H.current.pos)||void 0===r?void 0:r.scrollTop)===U.current.scrollTop&&(null===(t=H.current.pos)||void 0===t?void 0:t.scrollHeight)===U.current.scrollHeight)return void(H.current.pos={});H.current.pos={clientHeight:U.current.clientHeight,scrollTop:U.current.scrollTop,scrollHeight:U.current.scrollHeight},F()}},F=(q=function(){return v(this,(function(e){switch(e.label){case 0:return H.current.loadingMore?[2]:(H.current.loadingMore=!0,L(!0),[4,n.onMore()]);case 1:return e.sent(),L(!1),H.current.loadingMore=!1,[2]}}))},B=function(){var e=this,r=arguments;return new Promise((function(t,n){var o=q.apply(e,r);function i(e){f(o,t,n,i,a,"next",e)}function a(e){f(o,t,n,i,a,"throw",e)}i(void 0)}))},function(){return B.apply(this,arguments)}),G=function(e,r){var t={height:w,marginBottom:C,marginRight:j};return s&&(t.boxShadow=!0===s?"1px 1px 10px 2px rgba(212,218,227,0.40)":s),m&&(t.border=!0===m?"1px solid rgba(212, 218, 227, 0.4)":m),h&&(t.backgroundImage=h,t.backgroundSize="100% 100%",t.backgroundRepeat="no-repeat"),void 0===x&&(t.width=y),H.current.lineNumCom&&(r+1)%H.current.lineNumCom==0&&(t.marginRight=0),function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),n.forEach((function(r){d(e,r,t[r])}))}return e}({},t,e.style)};return r().createElement("div",{className:a(o,"".concat(t,"-card"),d({},"".concat(t,"-card-more"),E&&!I)),style:i,ref:U},r().createElement("div",{className:"card-list"},null==c?void 0:c.map((function(e,t){return r().createElement("div",{className:"card-item",style:G(e,t),key:t},e.render)}))),E&&r().createElement("div",{className:"more"},r().createElement("div",{className:"more-content",onClick:F},I?k||P({id:"loadingMore"}):N||P({id:"more"}))))};const h=m})(),i})()));
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@paraview/lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@paraview/lib")):e.ParaUI=r(e.react,e["@paraview/lib"])}(self,((e,r)=>(()=>{var t={79855:(e,r,t)=>{(r=t(76314)(!1)).push([e.id,".paraui-v4-card{width:100%;height:100%;overflow:auto}.paraui-v4-card>.card-list{display:flex;flex-wrap:wrap;width:100%}.paraui-v4-card>.card-list>.card-item{border-radius:4px;overflow:auto}.paraui-v4-card>.more{text-align:center}.paraui-v4-card>.more>.more-content{font-size:14px;text-align:center;color:#a1a8b3;display:inline-block}.paraui-v4-card.paraui-v4-card-more>.more>.more-content{cursor:pointer}.paraui-v4-card.paraui-v4-card-more>.more>.more-content:hover{color:#2e65e6}",""]),e.exports=r},76314:e=>{"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t=e[1]||"",n=e[3];if(!n)return t;if(r&&"function"==typeof btoa){var o=(a=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),i=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(i).concat([o]).join("\n")}var a,c,u;return[t].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&o[u[0]]||(t&&(u[2]?u[2]="".concat(t," and ").concat(u[2]):u[2]=t),r.push(u))}},r}},43706:(e,r,t)=>{var n=t(85072),o=t(79855);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},85072:(e,r,t)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),a=[];function c(e){for(var r=-1,t=0;t<a.length;t++)if(a[t].identifier===e){r=t;break}return r}function u(e,r){for(var t={},n=[],o=0;o<e.length;o++){var i=e[o],u=r.base?i[0]+r.base:i[0],l=t[u]||0,s="".concat(u," ").concat(l);t[u]=l+1;var f=c(s),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:s,updater:h(d,r),references:1}),n.push(s)}return n}function l(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=t.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}return r}var s,f=(s=[],function(e,r){return s[e]=r,s.filter(Boolean).join("\n")});function d(e,r,t,n){var o=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=f(r,o);else{var i=document.createTextNode(o),a=e.childNodes;a[r]&&e.removeChild(a[r]),a.length?e.insertBefore(i,a[r]):e.appendChild(i)}}function p(e,r,t){var n=t.css,o=t.media,i=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,m=0;function h(e,r){var t,n,o;if(r.singleton){var i=m++;t=v||(v=l(r)),n=d.bind(null,t,i,!1),o=d.bind(null,t,i,!0)}else t=l(r),n=p.bind(null,t,r),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else o()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=o());var t=u(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var o=c(t[n]);a[o].references--}for(var i=u(e,r),l=0;l<t.length;l++){var s=c(t[l]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}t=i}}}},4205:(e,r,t)=>{"use strict";t.d(r,{default:()=>s});var n=t(39155),o=t.n(n),i=t(16217),a=t(32663);function c(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function u(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),n.forEach((function(r){c(e,r,t[r])}))}return e}u({},t(89601).A.zh);var l=o().createContext({language:(0,a.GetLanguage)(),intlFormat:function(e,r){return function(e,t){var n=(0,a.GetLanguage)();return(0,i.Is)({ops:e,i18nData:{},lang:n,params:t,defI18nData:r})}},componentsProps:{}});const s=l},16217:(e,r,t)=>{"use strict";t.d(r,{Is:()=>o});t(39155);var n=function(e,r){if(!r)return e;e=e.replace(/\"/g,'\\"');var t=/({[^{}]+})/g;return e.split(t).map((function(e){if(e.match(t)){var n=e.replace(/({|})/g,""),o=function(e,r,t){var n=r.replace(/\[(\d+)\]/g,".$1").split("."),o=e,i=!0,a=!1,c=void 0;try{for(var u,l=n[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var s=u.value;if(void 0===(o=Object(o)[s]))return t}}catch(e){a=!0,c=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw c}}return o}(r,n);return void 0===o?n:o}return e}))},o=function(e){var r,t,o,i,a=e.ops,c=e.i18nData,u=e.lang,l=e.params,s=e.defI18nData;if("string"==typeof a)t=a;else if("object"==typeof a){if("string"!=typeof a.id)return'i18n intl object "id" is missing';t=a.id}void 0!==t&&(void 0===(r=null===(o=c[u])||void 0===o?void 0:o[t])&&s&&(r=null===(i=s[u])||void 0===i?void 0:i[t]));return"string"!=typeof r?"{".concat(t,"}"):n(r,l)}},89601:(e,r,t)=>{"use strict";t.d(r,{A:()=>i});const n={cancel:"Cancel",ok:"Ok"},o={cancel:"取 消",ok:"确 定"},i={zh:o,en:n,"zh-CN":o,"en-US":n}},32663:e=>{"use strict";e.exports=r},39155:r=>{"use strict";r.exports=e}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={id:e,exports:{}};return t[e](i,i.exports,o),i.exports}o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};return(()=>{"use strict";o.r(i),o.d(i,{Card:()=>h,default:()=>g});var e=o(39155),r=o.n(e),t="paraui-v4";function n(e){var r,t,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=n(e[r]))&&(o&&(o+=" "),o+=t);else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function a(){for(var e,r,t=0,o="";t<arguments.length;)(e=arguments[t++])&&(r=n(e))&&(o&&(o+=" "),o+=r);return o}var c=o(4205);const u=function(e,t){var n=r().useContext(c.default).intlFormat;return t.zh_CN=t.zh,t["zh-CN"]=t.zh,t.en_US=t.en,t["en-US"]=t.en,n&&n(e,t)},l={zh:{more:"鼠标滚动,加载更多数据",loadingMore:"数据正在加载中…"},en:{more:"Mouse scrolling to load more data",loadingMore:"Loading..."}};const s=function(r){var t=(0,e.useRef)({});(0,e.useEffect)((function(){return o(),function(){clearInterval(t.current.resizeTimer),clearTimeout(t.current.resizeLimit)}}),[r.dom]);var n=function(e){var n=e.width,o=e.height;if(n!==t.current.width||o!==t.current.height){var i=!0;if(r.resizeType&&("width"===r.resizeType&&n===t.current.width&&(i=!1),"height"===r.resizeType&&o===t.current.height&&(i=!1)),i)if(t.current.width=n,t.current.height=o,0!==r.timer){clearTimeout(t.current.resizeLimit);var a=void 0!==r.timer?r.timer:100;t.current.resizeLimit=setTimeout((function(){r.cb()}),a)}else r.cb()}},o=function(){var e=r.dom;e&&(void 0===window.ResizeObserver?(clearInterval(t.current.resizeTimer),t.current.resizeTimer=setInterval((function(){var r=e.getBoundingClientRect();n(r)}))):new ResizeObserver((function(e){var r,t=null===(r=e[0])||void 0===r?void 0:r.contentRect;n(t)})).observe(e))}};o(43706);function f(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function d(e,r,t,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void t(e)}c.done?r(u):Promise.resolve(u).then(n,o)}function p(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function v(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(n=t.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return f(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return f(e,r)}(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 m(e,r){var t,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=r.call(e,a)}catch(e){i=[6,e],n=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var h=function(n){var o=n.className,i=n.style,c=n.list,f=n.boxShadow,h=n.border,g=n.backgroundImage,b=n.width,y=void 0===b?"300px":b,w=n.height,x=void 0===w?"140px":w,S=n.lineNum,j=n.marginRight,C=void 0===j?"20px":j,O=n.marginBottom,M=void 0===O?"20px":O,N=n.showMore,T=void 0!==N&&N,z=n.moreRender,R=n.loadingMoreRender,E=n.onMore,k=u("Card",l),I=v((0,e.useState)(),2),P=(I[0],I[1]),A=v((0,e.useState)(!1),2),H=A[0],L=A[1],U=(0,e.useRef)({}),q=(0,e.useRef)(null);U.current.onMore=E,s({dom:q.current,cb:function(){return D()},timer:0}),(0,e.useEffect)((function(){var e;return null===(e=q.current)||void 0===e||e.addEventListener("scroll",F),function(){var e;null===(e=q.current)||void 0===e||e.removeEventListener("scroll",F)}}),[]),(0,e.useEffect)((function(){D()}),[c,S]);var B,_,D=function(){if(q.current){var e=q.current.getBoundingClientRect(),r=q.current.querySelector(".card-list"),t=q.current.querySelector(".card-list > .card-item"),o=t.getBoundingClientRect(),i=parseFloat(t.style.marginRight),a=q.current.scrollHeight>q.current.clientHeight,c=Math.floor((r.clientWidth+i)/(o.width+i));if(void 0===n.width&&n.lineNum){if("number"==typeof S)c=S;else for(var u=n.lineNum.sort((function(e,r){return e.width-r.width})),l=0,s=u.length;l<s;l++){var f=u[l];if(f.width>e.width){c=f.size;break}l===u.length-1&&(c=f.size)}var d=(c-1)*i;a&&(d+=4);var p=d/c+"px";U.current.itemWidth="calc(".concat(1/c*100,"% - ").concat(p,")"),q.current.querySelectorAll(".card-list > .card-item").forEach((function(e){e.style.width=U.current.itemWidth}))}c!==U.current.lineNumCom&&(U.current.lineNumCom=c,P(c))}},F=function(){if(T&&q.current&&U.current.onMore&&!U.current.loadingMore&&q.current.scrollHeight-(q.current.clientHeight+q.current.scrollTop)<1){var e,r,t;if((null===(e=U.current.pos)||void 0===e?void 0:e.clientHeight)===q.current.clientHeight&&(null===(r=U.current.pos)||void 0===r?void 0:r.scrollTop)===q.current.scrollTop&&(null===(t=U.current.pos)||void 0===t?void 0:t.scrollHeight)===q.current.scrollHeight)return void(U.current.pos={});U.current.pos={clientHeight:q.current.clientHeight,scrollTop:q.current.scrollTop,scrollHeight:q.current.scrollHeight},W()}},W=(B=function(){return m(this,(function(e){switch(e.label){case 0:return U.current.loadingMore?[2]:(U.current.loadingMore=!0,L(!0),[4,U.current.onMore()]);case 1:return e.sent(),L(!1),U.current.loadingMore=!1,[2]}}))},_=function(){var e=this,r=arguments;return new Promise((function(t,n){var o=B.apply(e,r);function i(e){d(o,t,n,i,a,"next",e)}function a(e){d(o,t,n,i,a,"throw",e)}i(void 0)}))},function(){return _.apply(this,arguments)}),G=function(e,r){var t={height:x,marginBottom:M,marginRight:C};if(f&&(t.boxShadow=!0===f?"1px 1px 10px 2px rgba(212,218,227,0.40)":f),h&&(t.border=!0===h?"1px solid rgba(212, 218, 227, 0.4)":h),g&&(t.backgroundImage=g,t.backgroundSize="100% 100%",t.backgroundRepeat="no-repeat"),void 0===S&&(t.width=y),n.width){if(q.current){var o=q.current.querySelector(".card-list").clientWidth,i=parseFloat(C),a=parseFloat(n.width);o-(U.current.lineNumCom*(a+i)-i)<=a&&U.current.lineNumCom&&(r+1)%U.current.lineNumCom==0&&(t.marginRight=0)}}else U.current.lineNumCom&&(r+1)%U.current.lineNumCom==0&&(t.marginRight=0);return function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),n.forEach((function(r){p(e,r,t[r])}))}return e}({},t,e.style)};return r().createElement("div",{className:a(o,"".concat(t,"-card"),p({},"".concat(t,"-card-more"),T&&!H)),style:i,ref:q},r().createElement("div",{className:"card-list"},null==c?void 0:c.map((function(e,t){return r().createElement("div",{className:"card-item",style:G(e,t),key:t},e.render)}))),T&&r().createElement("div",{className:"more"},r().createElement("div",{className:"more-content",onClick:W},H?R||k({id:"loadingMore"}):z||k({id:"more"}))))};const g=h})(),i})()));
|