@zjpcy/simple-design 1.3.7 → 1.3.9

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/dist/cjs/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var e=require("react/jsx-runtime"),n=require("react"),t=require("classnames"),r=require("styled-components"),i=require("react-color"),o=require("react-dom/client"),a=require("react-dom"),s=require("@dnd-kit/core"),l=require("@dnd-kit/sortable"),c=require("@dnd-kit/utilities");function d(e){return e&&e.__esModule?e:{default:e}}var u=d(n),p=d(t),f=d(r),h=d(a),g=function(){return g=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},g.apply(this,arguments)};function m(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t}function v(e,n,t,r){return new(t||(t=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(a,s)}l((r=r.apply(e,n||[])).next())})}function x(e,n){var t,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(t=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],r=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function b(e,n,t){if(t||2===arguments.length)for(var r,i=0,o=n.length;i<o;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return e.concat(r||Array.prototype.slice.call(n))}function y(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}"function"==typeof SuppressedError&&SuppressedError;var C={path:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z",viewBox:"0 0 24 24"},w={path:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z",viewBox:"0 0 24 24"},_={path:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",viewBox:"0 0 24 24"},E={path:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",viewBox:"0 0 24 24"},N={path:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",viewBox:"0 0 24 24"},S={path:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z",viewBox:"0 0 24 24"},T={path:"M19 13H5v-2h14v2z",viewBox:"0 0 24 24"},O={path:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",viewBox:"0 0 24 24"},L={path:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",viewBox:"0 0 24 24"},A={path:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",viewBox:"0 0 24 24"},k={path:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z",viewBox:"0 0 24 24"},M={search:C,loading:w,user:_,close:E,check:N,plus:S,minus:T,arrowLeft:O,arrowRight:L,arrowUp:A,arrowDown:k,app:{path:"M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z",viewBox:"0 0 24 24"},layout:{path:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 16H5V5h6v14zm8-10h-6V5h6v4zm0 6h-6v-4h6v4z",viewBox:"0 0 24 24"},setting:{path:"M19.14 12.94c.04-.31.06-.63.06-.94 0-.31-.02-.63-.06-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.04.31-.06.63-.06.94s.02.63.06.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z",viewBox:"0 0 24 24"},eye:{path:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",viewBox:"0 0 24 24"},eyeOff:{path:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z",viewBox:"0 0 24 24"},trash:{path:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z",viewBox:"0 0 24 24"},edit:{path:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",viewBox:"0 0 24 24"},download:{path:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z",viewBox:"0 0 24 24"},upload:{path:"M9 16h6v-6h4l-7-7-7 7h4v6zm-4 2h14v2H5v-2z",viewBox:"0 0 24 24"},refresh:{path:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",viewBox:"0 0 24 24"},home:{path:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z",viewBox:"0 0 24 24"},menu:{path:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z",viewBox:"0 0 24 24"},more:{path:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",viewBox:"0 0 24 24"},bell:{path:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z",viewBox:"0 0 24 24"},mail:{path:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z",viewBox:"0 0 24 24"},calendar:{path:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM9 10H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm-8 4H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2z",viewBox:"0 0 24 24"},clock:{path:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z",viewBox:"0 0 24 24"},star:{path:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",viewBox:"0 0 24 24"},starOutline:{path:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z",viewBox:"0 0 24 24"},heart:{path:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",viewBox:"0 0 24 24"},heartOutline:{path:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z",viewBox:"0 0 24 24"},info:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z",viewBox:"0 0 24 24"},warning:{path:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",viewBox:"0 0 24 24"},error:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",viewBox:"0 0 24 24"},success:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",viewBox:"0 0 24 24"},question:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z",viewBox:"0 0 24 24"},link:{path:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z",viewBox:"0 0 24 24"},image:{path:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z",viewBox:"0 0 24 24"},folder:{path:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z",viewBox:"0 0 24 24"},file:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},cloud:{path:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z",viewBox:"0 0 24 24"},exclamation:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",viewBox:"0 0 24 24"},facebook:{path:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",viewBox:"0 0 24 24"},twitter:{path:"M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z",viewBox:"0 0 24 24"},instagram:{path:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z",viewBox:"0 0 24 24"},linkedin:{path:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z",viewBox:"0 0 24 24"},copy:{path:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",viewBox:"0 0 24 24"},paste:{path:"M19 2h-4.18C14.4 2 14 2.4 14 2.82V7h-4V2.82C10 2.4 9.6 2 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0h4v5h-4V2zm5 18H5V4h4v3h1.18C10.6 7 11 7.4 11 7.82V20h8V4h-4v3h-.18C14.4 7 14 7.4 14 7.82V20z",viewBox:"0 0 24 24"},cut:{path:"M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14zm-1-7h-3V8h-2v4H8l4 4 4-4z",viewBox:"0 0 24 24"},select:{path:"M3 3v18h18V3H3zm16 16H5V5h14v14zM11 7h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2z",viewBox:"0 0 24 24"},fileText:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},filePdf:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},fileExcel:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},fileWord:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},arrowUpRight:{path:"M13 3h-2v5H6v2h5v8h2v-8h5v-2h-5V3z",viewBox:"0 0 24 24"},arrowDownRight:{path:"M19 15v-2h-5V6h-2v7H6v2h7v5h2v-5h5z",viewBox:"0 0 24 24"},arrowUpLeft:{path:"M11 3v5H6v2h5v8h2v-8h5v-2h-5V3h-2z",viewBox:"0 0 24 24"},arrowDownLeft:{path:"M11 19H6v-2h5v-5h2v5h5v2h-5z",viewBox:"0 0 24 24"},filter:{path:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z",viewBox:"0 0 24 24"},sort:{path:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z",viewBox:"0 0 24 24"},searchPlus:{path:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm7.5 4l3.04 3.04.71-.71-3.75-3.75z",viewBox:"0 0 24 24"},searchMinus:{path:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm7.5-2h-5v-2h5v2z",viewBox:"0 0 24 24"},shield:{path:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z",viewBox:"0 0 24 24"},lock:{path:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z",viewBox:"0 0 24 24"},unlock:{path:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z",viewBox:"0 0 24 24"},tag:{path:"M20.59 13.41l-7.17 7.17c-.18.18-.43.29-.71.29H8c-1.1 0-1.99-.9-1.99-2V9.3c0-.28.11-.53.29-.71l7.17-7.17c.56-.56 1.41-.22 1.79.58l3.31 8.83c.38.95-.29 1.95-1.24 1.95h-2.06c-.28 0-.53.11-.71.29z",viewBox:"0 0 24 24"},bookmark:{path:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z",viewBox:"0 0 24 24"},flag:{path:"M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6h-5.6z",viewBox:"0 0 24 24"},map:{path:"M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.7z",viewBox:"0 0 24 24"},message:{path:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z",viewBox:"0 0 24 24"},phone:{path:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z",viewBox:"0 0 24 24"},camera:{path:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",viewBox:"0 0 24 24"},video:{path:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z",viewBox:"0 0 24 24"},music:{path:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z",viewBox:"0 0 24 24"},play:{path:"M8 5v14l11-7z",viewBox:"0 0 24 24"},pause:{path:"M6 19h4V5H6v14zm8-14v14h4V5h-4z",viewBox:"0 0 24 24"},stop:{path:"M6 19h12V5H6v14z",viewBox:"0 0 24 24"},refreshCw:{path:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",viewBox:"0 0 24 24"},refreshCcw:{path:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z",viewBox:"0 0 24 24"},undo:{path:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z",viewBox:"0 0 24 24"},redo:{path:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22l2.37.78C4.63 15.17 7.74 13 11.5 13c1.95 0 3.73.72 5.12 1.88L13 20h9V11l-3.6-3.6z",viewBox:"0 0 24 24"},zoomIn:{path:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm2.5-2h-2v-2h2v2z",viewBox:"0 0 24 24"},zoomOut:{path:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z",viewBox:"0 0 24 24"},infoCircle:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",viewBox:"0 0 24 24"},warningCircle:{path:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2V7h2v7z",viewBox:"0 0 24 24"},errorCircle:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",viewBox:"0 0 24 24"},checkCircle:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",viewBox:"0 0 24 24"},questionCircle:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z",viewBox:"0 0 24 24"},youtube:{path:"M10,15.5C10,16.88 8.67,18.14 6.88,18.64C5.08,19.14 3,18.47 3,17V7C3,5.53 5.08,4.86 6.88,5.36C8.67,5.86 10,7.12 10,8.5V15.5M15.5,15.5C15.5,16.88 14.17,18.14 12.38,18.64C10.58,19.14 8.5,18.47 8.5,17V7C8.5,5.53 10.58,4.86 12.38,5.36C14.17,5.86 15.5,7.12 15.5,8.5V15.5M19.83,7.41C20.22,7.69 20.39,8.14 20.39,8.64V15.36C20.39,15.86 20.22,16.31 19.83,16.59C19.63,16.72 19.39,16.79 19.14,16.79H15.41V7.21H19.14C19.39,7.21 19.63,7.28 19.83,7.41M19.14,15.56H16.5V8.44H19.14V15.56Z",viewBox:"0 0 24 24"},github:{path:"M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z",viewBox:"0 0 24 24"},weibo:{path:"M19,4H5C3.89,4 3,4.89 3,6V18A2,2 0 0,0 5,20H19A2,2 0 0,0 21,18V6C21,4.89 20.1,4 19,4M19,18H5V6H19V18M9.5,8A1.5,1.5 0 0,0 8,9.5A1.5,1.5 0 0,0 9.5,11A1.5,1.5 0 0,0 11,9.5A1.5,1.5 0 0,0 9.5,8M14.5,15A1.5,1.5 0 0,0 13,16.5A1.5,1.5 0 0,0 14.5,18A1.5,1.5 0 0,0 16,16.5A1.5,1.5 0 0,0 14.5,15M18,11C18,14.87 14.87,18 11,18C7.13,18 4,14.87 4,11C4,7.13 7.13,4 11,4C14.87,4 18,7.13 18,11Z",viewBox:"0 0 24 24"},telegram:{path:"M18.88,6.85L14.19,11.54L4.76,10.43L7.26,15.53L6.21,20.21L11.89,17.4L16.8,22L18.88,15.28L18.88,6.85Z",viewBox:"0 0 24 24"},hammer:{path:"M19.66,3.99C18.87,3.63 18,3.36 17.11,3.19L15,5.41L18.59,9L20.81,7.88C20.64,7 20.37,6.12 20.01,5.34L19.66,3.99M16.59,10L13,6.41L4,15.41V19H7.58L16.59,10Z",viewBox:"0 0 24 24"},wrench:{path:"M14.71,15.88L10.83,12L14.71,8.12L13.29,6.71L9.41,10.59L5.53,6.71L4.12,8.12L7.99,12L4.12,15.88L5.53,17.29L9.41,13.41L13.29,17.29L14.71,15.88Z",viewBox:"0 0 24 24"},screwdriver:{path:"M5,18H9V20H5V18M11,5.83V17.17L8,14.17L9.41,12.76L11,14.34V5.83M21.71,4.04C22.1,3.65 22.1,3 21.71,2.63L19.37,0.29C19,-0.1 18.35,-0.1 17.96,0.29L15,3.25L18.75,7L21.71,4.04Z",viewBox:"0 0 24 24"},paintbrush:{path:"M18,4A4,4 0 0,1 22,8A4,4 0 0,1 18,12A4,4 0 0,1 14,8A4,4 0 0,1 18,4M8.5,14.5A1.5,1.5 0 0,1 7,13A1.5,1.5 0 0,1 8.5,11.5A1.5,1.5 0 0,1 10,13A1.5,1.5 0 0,1 8.5,14.5M12,17A3,3 0 0,1 9,20H3V22H9A5,5 0 0,0 14,17H12Z",viewBox:"0 0 24 24"},fileEarmark:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z",viewBox:"0 0 24 24"},fileEarmarkText:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M15,12V14H9V12H15M15,16V18H9V16H15M15,8H9V10H15V8Z",viewBox:"0 0 24 24"},fileEarmarkImage:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M10,13L15,16L10,19V13Z",viewBox:"0 0 24 24"},fileEarmarkPdf:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M10,13H8V18H10V13M12,13H10V11H12V13M14,13H12V11H14V13M16,13H14V11H16V13Z",viewBox:"0 0 24 24"},arrowUpRightSquare:{path:"M18,2A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4C4,2.89 4.89,2 6,2H18M17,10L12,15L7,10H17Z",viewBox:"0 0 24 24"},arrowDownRightSquare:{path:"M18,2A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H18M17,14L12,9L7,14H17Z",viewBox:"0 0 24 24"},arrowUpLeftSquare:{path:"M18,2A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H18M7,10L12,15L17,10H7Z",viewBox:"0 0 24 24"},arrowDownLeftSquare:{path:"M18,2A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H18M7,14L12,9L17,14H7Z",viewBox:"0 0 24 24"},compass:{path:"M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4Z",viewBox:"0 0 24 24"},mapPin:{path:"M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z",viewBox:"0 0 24 24"},location:{path:"M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z",viewBox:"0 0 24 24"},pencilSquare:{path:"M18,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V4A2,2 0 0,0 18,2M15.5,13.5C15.5,14.35 15.13,15.09 14.5,15.5C13.88,15.91 13.15,16.1 12.3,16.1C11.45,16.1 10.73,15.91 10.1,15.5C9.47,15.09 9.1,14.35 9.1,13.5A4.4,4.4 0 0,1 13.5,9.1C14.35,9.1 15.09,9.47 15.5,10.1C15.91,10.73 16.1,11.45 16.1,12.3C16.1,13.15 15.91,13.88 15.5,14.5V13.5M12.3,14.9C12.69,14.9 13.07,14.82 13.4,14.66C14.08,14.34 14.4,13.69 14.4,13C14.4,12.31 14.08,11.66 13.4,11.34C13.07,11.18 12.69,11.1 12.3,11.1C11.91,11.1 11.53,11.18 11.2,11.34C10.52,11.66 10.2,12.31 10.2,13C10.2,13.69 10.52,14.34 11.2,14.66C11.53,14.82 11.91,14.9 12.3,14.9Z",viewBox:"0 0 24 24"},highlighter:{path:"M6,17A2,2 0 0,1 4,15V3A1,1 0 0,1 5,2H19A1,1 0 0,1 20,3V15A2,2 0 0,1 18,17H8L6,21V17M13,9H18V15H13V9M8,9H11V15H8V9Z",viewBox:"0 0 24 24"},checkCircleFill:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M10,17L5,12L6.41,10.59L10,14.17L17.59,6.58L19,8L10,17Z",viewBox:"0 0 24 24"},exclamationCircleFill:{path:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z",viewBox:"0 0 24 24"},infoCircleFill:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M11,17H13V19H11V17M12,5A1,1 0 0,0 11,6A1,1 0 0,0 12,7A1,1 0 0,0 13,6A1,1 0 0,0 12,5Z",viewBox:"0 0 24 24"},laptop:{path:"M20,18H4V6H20M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",viewBox:"0 0 24 24"},tablet:{path:"M21,18H3V5H21M21,3H3A2,2 0 0,0 1,5V18A2,2 0 0,0 3,20H21A2,2 0 0,0 23,18V5A2,2 0 0,0 21,3Z",viewBox:"0 0 24 24"},mobile:{path:"M17,19H7V5H17M17,3H7A2,2 0 0,0 5,5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V5A2,2 0 0,0 17,3Z",viewBox:"0 0 24 24"},dollar:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M14,18H12V15H14V18M14,13H12V4H10V13H8V11L12,15L16,11V13Z",viewBox:"0 0 24 24"},euro:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M15,18H13L11,15V13H15V18M13,9H11V7H15V10L13,9Z",viewBox:"0 0 24 24"},sun:{path:"M12,18A6,6 0 0,0 18,12A6,6 0 0,0 12,6A6,6 0 0,0 6,12A6,6 0 0,0 12,18M12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4M12,2V4M12,20V22M4.93,4.93L6.34,6.34M17.66,17.66L19.07,19.07M2,12H4M20,12H22M6.34,17.66L4.93,19.07M19.07,4.93L17.66,6.34",viewBox:"0 0 24 24"},moon:{path:"M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M12,19.93A7.93,7.93 0 0,1 4.07,12A7.93,7.93 0 0,1 12,4.07A7.93,7.93 0 0,1 19.93,12A7.93,7.93 0 0,1 12,19.93Z",viewBox:"0 0 24 24"},cloudSun:{path:"M19.35,10.03C18.67,6.59 15.64,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20H20C21.11,20 22,19.1 22,18C22,16.5 20.9,15.3 19.35,13.97L12,20V13L19.35,10.03Z",viewBox:"0 0 24 24"},settings:{path:"M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.22,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.22,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.68 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",viewBox:"0 0 24 24"},tools:{path:"M21.71,20.29L20.29,21.71C20.1,21.9 19.85,22 19.59,22C19.33,22 19.08,21.9 18.88,21.71L15,17.83C13.22,19.34 10.91,20.17 8.5,20C4.91,19.96 1.84,17.59 0.89,14.15C0,10.82 1.9,7.5 5,6C5,6 6,6 7,7C7,7 8,8 8,9C10,9 11,10 12,11C13,12 14,13 15,13C16,14 17,15 18,15C19,16 20,17 20,18C22.5,20.5 22.5,22.5 21.71,20.29M5.5,18C6.33,18 7,18.67 7,19.5C7,20.33 6.33,21 5.5,21C4.67,21 4,20.33 4,19.5C4,18.67 4.67,18 5.5,18Z",viewBox:"0 0 24 24"},tool:{path:"M22.7,19.6L14.4,11.3C14.7,10.5 14.9,9.7 14.9,8.8C14.9,5.6 12.3,3 9.1,3C8.2,3 7.3,3.2 6.5,3.5L10.8,7.8L7.9,10.7L3.6,6.4C3.2,7.2 3,8.1 3,9.1C3,12.3 5.6,14.9 8.8,14.9C9.7,14.9 10.5,14.7 11.3,14.4L19.6,22.7C20,23.1 20.5,23.3 21,23.3C21.5,23.3 22,23.1 22.4,22.7C23.1,22 23.1,20.8 22.7,19.6Z",viewBox:"0 0 24 24"},mallet:{path:"M2,19.63L13.43,8.2L12.72,7.5L14.14,6.07L12,3.89C13.2,2.7 15.09,2.7 16.27,3.89L19.87,7.5L18.45,8.91H21.29L22,9.62L18.45,13.21L17.74,12.5V9.62L16.27,11.04L15.56,10.33L4.13,21.76L2,19.63Z",viewBox:"0 0 24 24"},driver:{path:"M18,1.83C17.5,1.83 17,2 16.59,2.41L13.17,5.83L15.83,8.5L19.5,4.83C20,4.33 20,3.5 19.5,3C19,2.5 18.5,1.83 18,1.83M13,4L4,13C3.5,13.5 3.5,14.5 4,15L9,20C9.5,20.5 10.5,20.5 11,20L20,11C20.5,10.5 20.5,9.5 20,9L15,4C14.5,3.5 13.5,3.5 13,4M6.5,18.5L3.5,17.5L6,15L8.5,17.5L6.5,18.5Z",viewBox:"0 0 24 24"},document:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z",viewBox:"0 0 24 24"},directory:{path:"M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",viewBox:"0 0 24 24"},"folder-open":{path:"M19,20H4C2.89,20 2,19.1 2,18V6C2,4.89 2.89,4 4,4H10L12,6H19A2,2 0 0,1 21,8H21L4,8V18L6.14,10H23.21L20.93,18.5C20.7,19.37 19.92,20 19,20Z",viewBox:"0 0 24 24"},"file-pdf":{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M7,13H9V19H7V13M10,13H12V17H10V13M13,13H15V19H13V13Z",viewBox:"0 0 24 24"},"file-text":{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M8,13H16V15H8V13M8,9H10V11H8V9M8,17H13V19H8V17Z",viewBox:"0 0 24 24"},"arrow-left":{path:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z",viewBox:"0 0 24 24"},"arrow-right":{path:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z",viewBox:"0 0 24 24"},"arrow-up":{path:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",viewBox:"0 0 24 24"},"arrow-down":{path:"M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z",viewBox:"0 0 24 24"},"chevron-left":{path:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",viewBox:"0 0 24 24"},"chevron-right":{path:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",viewBox:"0 0 24 24"},"m-home":{path:"M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z",viewBox:"0 0 24 24"},"m-menu":{path:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",viewBox:"0 0 24 24"},"m-search":{path:"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",viewBox:"0 0 24 24"},"m-close":{path:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",viewBox:"0 0 24 24"},"m-user":{path:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",viewBox:"0 0 24 24"},"m-edit":{path:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",viewBox:"0 0 24 24"},delete:{path:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",viewBox:"0 0 24 24"},"m-copy":{path:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z",viewBox:"0 0 24 24"},"m-out":{path:"M19,3L13,9L15,11L22,4V3M12,12.5A0.5,0.5 0 0,1 11.5,12A0.5,0.5 0 0,1 12,11.5A0.5,0.5 0 0,1 12.5,12A0.5,0.5 0 0,1 12,12.5M6,20A2,2 0 0,1 4,18C4,16.89 4.9,16 6,16A2,2 0 0,1 8,18C8,19.11 7.1,20 6,20M6,8A2,2 0 0,1 4,6C4,4.89 4.9,4 6,4A2,2 0 0,1 8,6C8,7.11 7.1,8 6,8M9.64,7.64C9.87,7.14 10,6.59 10,6A4,4 0 0,0 6,2A4,4 0 0,0 2,6A4,4 0 0,0 6,10C6.59,10 7.14,9.87 7.64,9.64L10,12L7.64,14.36C7.14,14.13 6.59,14 6,14A4,4 0 0,0 2,18A4,4 0 0,0 6,22A4,4 0 0,0 10,18C10,17.41 9.87,16.86 9.64,16.36L12,14L19,21H22V20L9.64,7.64Z",viewBox:"0 0 24 24"},bold:{path:"M13.5,15.5H10V12.5H13.5A1.5,1.5 0 0,1 15,14A1.5,1.5 0 0,1 13.5,15.5M10,6.5H13A1.5,1.5 0 0,1 14.5,8A1.5,1.5 0 0,1 13,9.5H10M15.6,10.79C16.57,10.11 17.25,9 17.25,8C17.25,5.74 15.5,4 13.25,4H7V18H14.04C16.14,18 17.75,16.3 17.75,14.21C17.75,12.69 16.89,11.39 15.6,10.79Z",viewBox:"0 0 24 24"},"m-check":{path:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",viewBox:"0 0 24 24"},"m-error":{path:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",viewBox:"0 0 24 24"},"m-warning":{path:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z",viewBox:"0 0 24 24"},"m-info":{path:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",viewBox:"0 0 24 24"},"m-loading":{path:"M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z",viewBox:"0 0 24 24"},"m-phone":{path:"M6.62,10.79C8.06,13.62 10.38,15.94 13.21,17.38L15.41,15.18C15.69,14.9 16.08,14.82 16.43,14.93C17.55,15.3 18.75,15.5 20,15.5A1,1 0 0,1 21,16.5V20A1,1 0 0,1 20,21A17,17 0 0,1 3,4A1,1 0 0,1 4,3H7.5A1,1 0 0,1 8.5,4C8.5,5.25 8.7,6.45 9.07,7.57C9.18,7.92 9.1,8.31 8.82,8.59L6.62,10.79Z",viewBox:"0 0 24 24"},photograph:{path:"M4,4H7L9,2H15L17,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9Z",viewBox:"0 0 24 24"},printer:{path:"M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z",viewBox:"0 0 24 24"},headphones:{path:"M12,1C7,1 3,5 3,10V17A3,3 0 0,0 6,20H9V12H5V10A7,7 0 0,1 12,3A7,7 0 0,1 19,10V12H15V20H18A3,3 0 0,0 21,17V10C21,5 16.97,1 12,1Z",viewBox:"0 0 24 24"},mouse:{path:"M11,1.07C7.05,1.56 4,4.92 4,9H11M4,15A8,8 0 0,0 12,23A8,8 0 0,0 20,15V11H4M13,1.07V9H20C20,4.92 16.94,1.56 13,1.07Z",viewBox:"0 0 24 24"},schedule:{path:"M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z",viewBox:"0 0 24 24"},"m-clock":{path:"M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z",viewBox:"0 0 24 24"},"m-bell":{path:"M10,21H14A2,2 0 0,1 12,23A2,2 0 0,1 10,21M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19Z",viewBox:"0 0 24 24"},"m-star":{path:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",viewBox:"0 0 24 24"},"m-heart":{path:"M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z",viewBox:"0 0 24 24"},"m-download":{path:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",viewBox:"0 0 24 24"},"m-upload":{path:"M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z",viewBox:"0 0 24 24"},share:{path:"M18,16.08C17.24,16.08 16.56,16.38 16.04,16.85L8.91,12.7C8.96,12.47 9,12.24 9,12C9,11.76 8.96,11.53 8.91,11.3L15.96,7.19C16.5,7.69 17.21,8 18,8A3,3 0 0,0 21,5A3,3 0 0,0 18,2A3,3 0 0,0 15,5C15,5.24 15.04,5.47 15.09,5.7L8.04,9.81C7.5,9.31 6.79,9 6,9A3,3 0 0,0 3,12A3,3 0 0,0 6,15C6.79,15 7.5,14.69 8.04,14.19L15.16,18.34C15.11,18.55 15.08,18.77 15.08,19C15.08,20.61 16.39,21.91 18,21.91C19.61,21.91 20.92,20.61 20.92,19A2.92,2.92 0 0,0 18,16.08Z",viewBox:"0 0 24 24"},"external-link":{path:"M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",viewBox:"0 0 24 24"},"m-mail":{path:"M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",viewBox:"0 0 24 24"},secure:{path:"M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",viewBox:"0 0 24 24"},open:{path:"M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z",viewBox:"0 0 24 24"},view:{path:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z",viewBox:"0 0 24 24"},off:{path:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z",viewBox:"0 0 24 24"},"m-sort":{path:"M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z",viewBox:"0 0 24 24"},grid:{path:"M10,4V8H14V4H10M16,4V8H20V4H16M16,10V14H20V10H16M16,16V20H20V16H16M14,20V16H10V20H14M8,20V16H4V20H8M8,14V10H4V14H8M8,8V4H4V8H8M10,14H14V10H10V14M4,2H20A2,2 0 0,1 22,4V20A2,2 0 0,1 20,22H4C2.92,22 2,21.1 2,20V4A2,2 0 0,1 4,2Z",viewBox:"0 0 24 24"},list:{path:"M3,13H21V11H3V13M3,6H21V4H3V6M3,18H21V16H3V18Z",viewBox:"0 0 24 24"},reload:{path:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",viewBox:"0 0 24 24"},"volume-high":{path:"M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z",viewBox:"0 0 24 24"},"volume-off":{path:"M12,4L9.91,6.09L12,8.18M4.27,3L3,4.27L7.73,9H3V15H7L12,20V13.27L16.25,17.52C15.58,18.04 14.83,18.46 14,18.7V20.77C15.38,20.45 16.63,19.82 17.68,18.96L19.73,21L21,19.73L12,10.73M19,12C19,12.94 18.8,13.82 18.46,14.64L19.97,16.15C20.62,14.91 21,13.5 21,12C21,7.72 18,4.14 14,3.23V5.29C16.89,6.15 19,8.83 19,12M16.5,12C16.5,10.23 15.5,8.71 14,7.97V10.18L16.45,12.63C16.5,12.43 16.5,12.21 16.5,12Z",viewBox:"0 0 24 24"},"shield-check":{path:"M12,2L4,5V11C4,16.55 7.84,21.74 12,23C16.16,21.74 20,16.55 20,11V5L12,2M10.59,16.59L7.41,13.41L8.82,12L10.59,13.76L15.18,9.17L16.59,10.58L10.59,16.59Z",viewBox:"0 0 24 24"},"shield-off":{path:"M19,11V5L12,2L5,5V11C5,14.54 6.64,17.89 9.25,20.02L3.27,4.27L4.55,3L21,19.45L19.73,20.73L17.3,18.3C15.95,19.4 14.36,20.28 12.65,20.82C11.29,20.4 10.05,19.73 8.96,18.86L11.19,16.63C11.46,16.41 11.73,16.18 12,15.92V15.92C12.56,15.36 13.07,14.76 13.5,14.11L9.89,10.5L8.47,9.08L6.59,7.2V11C6.59,12.51 7.06,13.96 7.91,15.2L9.33,16.62",viewBox:"0 0 24 24"},key:{path:"M7,14A5,5 0 0,1 12,9A5,5 0 0,1 17,14A5,5 0 0,1 12,19A5,5 0 0,1 7,14M12,11A3,3 0 0,0 9,14A3,3 0 0,0 12,17A3,3 0 0,0 15,14A3,3 0 0,0 12,11M19,7L17,7V4H15V7H12V9H15V12H17V9H19V7Z",viewBox:"0 0 24 24"},"key-outline":{path:"M12,3A7,7 0 0,1 19,10A7,7 0 0,1 12,17A7,7 0 0,1 5,10A7,7 0 0,1 12,3M12,5A5,5 0 0,0 7,10A5,5 0 0,0 12,15A5,5 0 0,0 17,10A5,5 0 0,0 12,5M19,7H17V4H15V7H12V9H15V12H17V9H19V7Z",viewBox:"0 0 24 24"},logout:{path:"M14,17V14H6V10H14V7L19,12L14,17M4,19H12V21H4A2,2 0 0,1 2,19V5A2,2 0 0,1 4,3H12V5H4V19Z",viewBox:"0 0 24 24"},login:{path:"M10,17V14H18V10H10V7L5,12L10,17M20,19H12V21H20A2,2 0 0,0 22,19V5A2,2 0 0,0 20,3H12V5H20V19Z",viewBox:"0 0 24 24"},"settings-2":{path:"M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M4,12C4,11.3 4.07,10.62 4.2,9.95L2,8.5L3.5,6L5.95,6.8C6.44,6.28 6.99,5.82 7.6,5.44L7.3,2.8H10.2L10.5,5.44C11.17,5.2 11.85,5.08 12.55,5.08C13.25,5.08 13.93,5.2 14.6,5.44L14.9,2.8H17.8L17.5,5.44C18.11,5.82 18.66,6.28 19.15,6.8L21.6,6L23.1,8.5L20.9,9.95C21.03,10.62 21.1,11.3 21.1,12C21.1,12.7 21.03,13.38 20.9,14.05L23.1,15.5L21.6,18L19.15,17.2C18.66,17.72 18.11,18.18 17.5,18.56L17.8,21.2H14.9L14.6,18.56C13.93,18.8 13.25,18.92 12.55,18.92C11.85,18.92 11.17,18.8 10.5,18.56L10.2,21.2H7.3L7.6,18.56C6.99,18.18 6.44,17.72 5.95,17.2L3.5,18L2,15.5L4.2,14.05C4.07,13.38 4,12.7 4,12Z",viewBox:"0 0 24 24"},sliders:{path:"M10,4H4V6H10V4M20,4H14V6H20V4M16,9H4V11H16V9M20,9H18V11H20V9M8,14H4V16H8V14M20,14H12V16H20V14M12,19H4V21H12V19M20,19H16V21H20V19Z",viewBox:"0 0 24 24"},"chart-bar":{path:"M4,19H20V21H2V3H4V19M8,17V9H10V17H8M12,17V5H14V17H12M16,17V12H18V17H16Z",viewBox:"0 0 24 24"},"chart-line":{path:"M3,17L9,11L13,15L21,7L19.6,5.6L13,12.2L9,8.2L1.6,15.6L3,17M2,19H22V21H2V19Z",viewBox:"0 0 24 24"},"chart-pie":{path:"M11,2V12H21C20.45,6.4 16,2 11,2M13,13V3.08C7.94,3.58 4,7.86 4,13C4,18.52 8.48,23 14,23C19.14,23 23.42,19.06 23.92,14H13Z",viewBox:"0 0 24 24"},clipboard:{path:"M16,4H14.18C13.76,2.84 12.69,2 11.5,2C10.31,2 9.24,2.84 8.82,4H7A2,2 0 0,0 5,6V20A2,2 0 0,0 7,22H17A2,2 0 0,0 19,20V6A2,2 0 0,0 17,4H16M11.5,4A1,1 0 0,1 12.5,5A1,1 0 0,1 11.5,6A1,1 0 0,1 10.5,5A1,1 0 0,1 11.5,4Z",viewBox:"0 0 24 24"},"clipboard-check":{path:"M9,16.17L6.83,14L5.42,15.41L9,19L18,10L16.59,8.59L9,16.17M16,4H14.18C13.76,2.84 12.69,2 11.5,2C10.31,2 9.24,2.84 8.82,4H7A2,2 0 0,0 5,6V20A2,2 0 0,0 7,22H17A2,2 0 0,0 19,20V6A2,2 0 0,0 17,4H16Z",viewBox:"0 0 24 24"},"clipboard-text":{path:"M16,4H14.18C13.76,2.84 12.69,2 11.5,2C10.31,2 9.24,2.84 8.82,4H7A2,2 0 0,0 5,6V20A2,2 0 0,0 7,22H17A2,2 0 0,0 19,20V6A2,2 0 0,0 17,4H16M8,10H16V12H8V10M8,14H16V16H8V14Z",viewBox:"0 0 24 24"},database:{path:"M12,3C7.58,3 4,4.79 4,7V17C4,19.21 7.58,21 12,21C16.42,21 20,19.21 20,17V7C20,4.79 16.42,3 12,3M12,5C15.31,5 18,6.12 18,7.5C18,8.88 15.31,10 12,10C8.69,10 6,8.88 6,7.5C6,6.12 8.69,5 12,5M6,10.5C7.26,11.35 9.43,12 12,12C14.57,12 16.74,11.35 18,10.5V13C18,14.38 15.31,15.5 12,15.5C8.69,15.5 6,14.38 6,13V10.5M6,15.5C7.26,16.35 9.43,17 12,17C14.57,17 16.74,16.35 18,15.5V17C18,18.38 15.31,19.5 12,19.5C8.69,19.5 6,18.38 6,17V15.5Z",viewBox:"0 0 24 24"},server:{path:"M4,4H20A2,2 0 0,1 22,6V10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V6A2,2 0 0,1 4,4M4,14H20A2,2 0 0,1 22,16V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V16A2,2 0 0,1 4,14M6,7A1,1 0 0,0 5,8A1,1 0 0,0 6,9A1,1 0 0,0 7,8A1,1 0 0,0 6,7M6,17A1,1 0 0,0 5,18A1,1 0 0,0 6,19A1,1 0 0,0 7,18A1,1 0 0,0 6,17Z",viewBox:"0 0 24 24"},terminal:{path:"M4,5H20A2,2 0 0,1 22,7V17A2,2 0 0,1 20,19H4A2,2 0 0,1 2,17V7A2,2 0 0,1 4,5M6,8L10,12L6,16L7.41,17.41L12.83,12L7.41,6.59L6,8M13,15H18V17H13V15Z",viewBox:"0 0 24 24"},code:{path:"M8.59,16.59L4,12L8.59,7.41L7.17,6L1.17,12L7.17,18L8.59,16.59M15.41,16.59L20,12L15.41,7.41L16.83,6L22.83,12L16.83,18L15.41,16.59Z",viewBox:"0 0 24 24"},bug:{path:"M14,6H18V8H14V6M6,6H10V8H6V6M12,2A4,4 0 0,1 16,6V7H8V6A4,4 0 0,1 12,2M5,9H19V11H5V9M7,12H9V20H7V12M15,12H17V20H15V12M11,12H13V22H11V12Z",viewBox:"0 0 24 24"},gift:{path:"M20,12V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V12H20M12,2A2.5,2.5 0 0,1 14.5,4.5A2.5,2.5 0 0,1 12,7A2.5,2.5 0 0,1 9.5,4.5A2.5,2.5 0 0,1 12,2M2,8H22V12H2V8M11,12H13V22H11V12Z",viewBox:"0 0 24 24"},cart:{path:"M7,18A2,2 0 0,0 9,20A2,2 0 0,0 11,18A2,2 0 0,0 9,16A2,2 0 0,0 7,18M15,18A2,2 0 0,0 17,20A2,2 0 0,0 19,18A2,2 0 0,0 17,16A2,2 0 0,0 15,18M7.16,12H17.55L20.31,6H6L5.21,4H2V6H4L7.6,13.59L6.25,16H19V14H8.42L7.16,12Z",viewBox:"0 0 24 24"},"shopping-bag":{path:"M6,6V5A4,4 0 0,1 10,1H14A4,4 0 0,1 18,5V6H21A1,1 0 0,1 22,7V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V7A1,1 0 0,1 3,6H6M8,6H16V5A2,2 0 0,0 14,3H10A2,2 0 0,0 8,5V6Z",viewBox:"0 0 24 24"},"credit-card":{path:"M4,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M4,7V9H20V7H4M6,14H12V16H6V14Z",viewBox:"0 0 24 24"},wallet:{path:"M3,7H20A2,2 0 0,1 22,9V17A2,2 0 0,1 20,19H4A2,2 0 0,1 2,17V7A2,2 0 0,1 4,5H20V7H3M18,12A1,1 0 0,0 17,13A1,1 0 0,0 18,14A1,1 0 0,0 19,13A1,1 0 0,0 18,12Z",viewBox:"0 0 24 24"},"tag-outline":{path:"M20.59,13.41L11,3.83A2,2 0 0,0 9.59,3H5A2,2 0 0,0 3,5V9.59A2,2 0 0,0 3.59,11L13.17,20.59A2,2 0 0,0 16,20.59L20.59,16A2,2 0 0,0 20.59,13.41M7,7A1.5,1.5 0 0,1 8.5,5.5A1.5,1.5 0 0,1 10,7A1.5,1.5 0 0,1 8.5,8.5A1.5,1.5 0 0,1 7,7Z",viewBox:"0 0 24 24"},"bookmark-outline":{path:"M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5A2,2 0 0,0 17,3M17,18L12,16L7,18V5H17V18Z",viewBox:"0 0 24 24"},pin:{path:"M12,2A7,7 0 0,1 19,9C19,14.25 12,22 12,22C12,22 5,14.25 5,9A7,7 0 0,1 12,2M12,6.5A2.5,2.5 0 0,0 9.5,9A2.5,2.5 0 0,0 12,11.5A2.5,2.5 0 0,0 14.5,9A2.5,2.5 0 0,0 12,6.5Z",viewBox:"0 0 24 24"},"pin-outline":{path:"M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2M12,4A5,5 0 0,1 17,9C17,12.74 13.8,17.15 12,19.29C10.2,17.15 7,12.74 7,9A5,5 0 0,1 12,4M12,6.5A2.5,2.5 0 0,0 9.5,9A2.5,2.5 0 0,0 12,11.5A2.5,2.5 0 0,0 14.5,9A2.5,2.5 0 0,0 12,6.5Z",viewBox:"0 0 24 24"},"bell-outline":{path:"M12,22A2,2 0 0,0 14,20H10A2,2 0 0,0 12,22M18,16V11A6,6 0 0,0 12,5A6,6 0 0,0 6,11V16L4,18V19H20V18L18,16M12,7A4,4 0 0,1 16,11V16H8V11A4,4 0 0,1 12,7Z",viewBox:"0 0 24 24"},"bell-off":{path:"M2,5.27L3.28,4L20,20.72L18.73,22L16.68,19.95C15.7,20.4 14.61,20.68 13.5,20.78V22H10.5V20.78C9.62,20.7 8.74,20.48 7.91,20.14L6.5,21.55L5.23,20.28L7.05,18.46L4,15V11A6,6 0 0,1 9.08,5.08L7.61,3.61C8.98,2.59 10.55,2 12,2A6,6 0 0,1 18,8V12L20,14V15H17.82L15.82,13H18V12A4,4 0 0,0 14,8C13.46,8 12.93,8.11 12.45,8.32L9.95,5.82C10.62,5.29 11.29,5.03 12,5.03A6,6 0 0,1 18,11V16L19.18,17.18L2,5.27Z",viewBox:"0 0 24 24"},"check-circle":{path:"M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M10,17L5,12L6.41,10.59L10,14.17L17.59,6.58L19,8L10,17Z",viewBox:"0 0 24 24"},"close-circle":{path:"M12,2C6.47,2 2,6.47 2,12C2,17.53 6.47,22 12,22C17.53,22 22,17.53 22,12C22,6.47 17.53,2 12,2M15.59,17L12,13.41L8.41,17L7,15.59L10.59,12L7,8.41L8.41,7L12,10.59L15.59,7L17,8.41L13.41,12L17,15.59L15.59,17Z",viewBox:"0 0 24 24"}},I={search:C,loading:w,user:_,close:E,check:N,plus:S,minus:T,arrowLeft:O,arrowRight:L,arrowUp:A,arrowDown:k},j=function(e){return I[e]?I[e]:M[e]},R={small:12,medium:16,large:24},D=function(t){var r=t.type,i=t.path,o=t.viewBox,a=void 0===o?"0 0 24 24":o,s=t.size,l=void 0===s?"medium":s,c=t.color,d=void 0===c?"#339af0":c,u=t.hoverColor,p=t.spin,f=void 0!==p&&p,h=t.rotate,m=t.align,v=void 0===m?"center":m,x=t.className,b=void 0===x?"":x,y=t.style,C=t.onClick,w=n.useMemo(function(){return"number"==typeof l?l:R[l]||16},[l]),_=n.useMemo(function(){if(i)return i;if(r){var e=j(r);return(null==e?void 0:e.path)||""}return""},[r,i]),E=n.useMemo(function(){if("0 0 24 24"!==a)return a;if(r){var e=j(r);return(null==e?void 0:e.viewBox)||"0 0 24 24"}return"0 0 24 24"},[r,a]);if(!_)return null;var N=g({width:w,height:w,fill:d,transform:h?"rotate(".concat(h,"deg)"):void 0},y);return e.jsx("div",{className:"icon-container align-".concat(v," ").concat(b),children:e.jsx("svg",{viewBox:E,className:"icon ".concat(f?"icon-spin":""),style:N,onMouseEnter:function(e){u&&(e.currentTarget.style.fill=u)},onMouseLeave:function(e){u&&(e.currentTarget.style.fill=d)},onClick:C,children:e.jsx("path",{d:_})})})},H=u.default.forwardRef(function(n,t){var r=n.children,i=n.variant,o=void 0===i?"secondary":i,a=n.size,s=void 0===a?"medium":a,l=n.disabled,c=void 0!==l&&l,d=n.loading,u=void 0!==d&&d,f=n.onClick,h=n.className,v=n.style,x=n.icon,b=n.type,y=void 0===b?"button":b,C=n.href,w=m(n,["children","variant","size","disabled","loading","onClick","className","style","icon","type","href"]),_=p.default("idp-btn","idp-btn--".concat(o),"idp-btn--".concat(s),{"idp-btn--disabled":c||u},h),E=function(e){c||u?null==e||e.preventDefault():f&&f()},N=function(){return u?e.jsx(D,{type:"loading",style:{marginRight:r?"2px":0}}):x?"string"==typeof x?e.jsx(D,{type:x,style:{marginRight:r?"2px":0}}):e.jsx("span",{style:{marginRight:r?"8px":0,display:"inline-flex",alignItems:"center"},children:x}):null};return"link"===o&&C?e.jsxs("a",g({ref:t,href:c?void 0:C,className:_,onClick:E,style:v},w,{children:[N(),r]})):e.jsxs("button",g({ref:t,type:y,className:_,onClick:E,disabled:c,style:v},w,{children:[N(),r]}))});H.displayName="Button";var P,z,V,B,U,F,Y,$,G,W,K,Z,X,q,J,Q,ee,ne,te,re,ie,oe,ae,se=H,le=function(n){var t=n.size;return e.jsxs("svg",{viewBox:"0 0 24 24",className:"idp-spin-icon",style:{width:t,height:t},children:[e.jsx("circle",{className:"idp-spin-track",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"}),e.jsx("circle",{className:"idp-spin-indicator",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"})]})},ce={small:16,default:24,large:32},de=function(t){var r=t.spinning,i=void 0===r||r,o=t.indicator,a=t.tip,s=t.size,l=void 0===s?"default":s,c=t.delay,d=void 0===c?0:c,u=t.className,p=void 0===u?"":u,f=t.style,h=t.children,g=t.fullscreen,m=void 0!==g&&g,v=n.useState(i),x=v[0],b=v[1],y=n.useState(0===d),C=y[0],w=y[1];n.useEffect(function(){if(i){if(b(!0),d>0){var e=setTimeout(function(){w(!0)},d);return function(){return clearTimeout(e)}}w(!0)}else b(!1),w(!1)},[i,d]);var _=ce[l],E=n.useMemo(function(){return o||e.jsx(le,{size:_})},[o,_]),N=function(){return e.jsxs("div",{className:"idp-spin-content ".concat(a?"idp-spin-has-tip":""),children:[E,a&&e.jsx("div",{className:"idp-spin-tip",children:a})]})};return m?x&&C?e.jsx("div",{className:"idp-spin-fullscreen ".concat(p),style:f,children:N()}):null:h?e.jsxs("div",{className:"idp-spin-nested-wrapper ".concat(p),style:f,children:[h,x&&C&&e.jsx("div",{className:"idp-spin-mask idp-spin-mask-".concat(l),children:N()})]}):x&&C?e.jsx("div",{className:"idp-spin idp-spin-".concat(l," ").concat(p),style:f,children:N()}):null},ue=function(t){var r=t.items,i=t.currentIndex,o=t.defaultCurrentIndex,a=void 0===o?0:o,s=t.onChange,l=t.autoplay,c=void 0===l||l,d=t.interval,u=void 0===d?3e3:d,f=t.effect,h=void 0===f?"slide":f,m=t.direction,v=void 0===m?"horizontal":m,x=t.showIndicators,y=void 0===x||x,C=t.indicatorPosition,w=void 0===C?"bottom":C,_=t.showArrows,E=void 0===_||_,N=t.loop,S=void 0===N||N,T=t.pauseOnHover,O=void 0===T||T,L=t.className,A=t.style,k=t.contentClassName,M=t.contentStyle,I=t.onItemClick,j=t.duration,R=void 0===j?500:j,H=t.prevIcon,P=t.nextIcon,z=t.upIcon,V=t.downIcon,B=t.indicatorProgress,U=void 0!==B&&B,F=void 0!==i,Y=n.useState(a),$=Y[0],G=Y[1],W=F?i:$,K=n.useState(!1),Z=K[0],X=K[1],q=n.useState(!1),J=q[0],Q=q[1],ee=n.useState(!1),ne=ee[0],te=ee[1],re=n.useState([]),ie=re[0],oe=re[1],ae=n.useState([]),se=ae[0],le=ae[1],ce=n.useRef(null),de=n.useRef(null),ue=n.useRef(null),pe=n.useRef(null),fe=r.length,he="vertical"===v,ge="fade"===h,me=["flip","cards","creative","coverflow","parallax","zoom","book","curtain","mosaic","rain"].includes(h),ve=n.useCallback(function(e){if(S){if(e<0)return fe-1;if(e>=fe)return 0}else{if(e<0)return 0;if(e>=fe)return fe-1}return e},[S,fe]),xe=n.useCallback(function(e,n){if(void 0===n&&(n=!1),!(J||fe<=1)){var t=ve(e);if(t!==W){if("rain"===h&&n&&!ne)return te(!0),oe(Ee()),void(ce.current=setTimeout(function(){Q(!0),F||G(t),null==s||s(t),setTimeout(function(){Q(!1),te(!1),oe([])},R)},1500));Q(!0),F||G(t),null==s||s(t),setTimeout(function(){Q(!1)},R)}}},[W,F,J,s,ve,R,fe,h,ne]),be=n.useCallback(function(){xe(W+1)},[W,xe]),ye=n.useCallback(function(){xe(W-1)},[W,xe]);n.useEffect(function(){if(c&&!(fe<=1)&&(!O||!Z))return ue.current=setInterval(function(){be()},u),function(){ue.current&&clearInterval(ue.current)}},[c,u,Z,O,be,fe]);var Ce=n.useMemo(function(){return ge||me?0:100*-W},[W,ge,me]),we=n.useCallback(function(e,n,t){if(!S)return e-n;var r=e-n,i=r>0?r-t:r+t;return Math.abs(r)<=Math.abs(i)?r:i},[S]),_e=function(e){if(!me)return{};var n=e===W,t=we(e,W,fe);switch(h){case"flip":return{transform:"rotateY(".concat(o=180*t,"deg)"),opacity:Math.abs(t)<=1?n?1:.5:0,zIndex:n?10:1};case"cards":var r=n?0:-100,i=n?1:.9,o=5*t;return{transform:"translateX(".concat(c=30*t,"%) translateZ(").concat(r,"px) scale(").concat(i,") rotateY(").concat(o,"deg)"),opacity:n?1:Math.abs(t)<=2?.6-.2*Math.abs(t):0,zIndex:n?10:5-Math.abs(t)};case"coverflow":var a=Math.abs(t);o=-45*t,r=n?0:-200,i=n?1:.8;return{transform:"translateX(".concat(c=50*t,"%) translateZ(").concat(r,"px) rotateY(").concat(o,"deg) scale(").concat(i,")"),opacity:a<=2?1-.3*a:0,zIndex:n?10:5-a};case"parallax":i=n?1:.8;return{transform:"translateX(".concat(c=100*t,"%) scale(").concat(i,")"),opacity:Math.abs(t)<=1?1:0,zIndex:n?10:5};case"zoom":var s=n?1:0,l=n?0:10;return{transform:"scale(".concat(i=n?1:2,")"),opacity:s,filter:"blur(".concat(l,"px)"),zIndex:n?10:1};case"book":s=n?1:-1===t?.3:0;return{transform:"rotateY(".concat(o=t<0?-90:t>0?90:0,"deg)"),opacity:s,zIndex:n?10:5};case"mosaic":var c=20*t,d=5*t;return{transform:"scale(".concat(i=n?1:.8,") translateX(").concat(c,"%) rotate(").concat(d,"deg)"),opacity:n?1:0,filter:n?"blur(0)":"blur(5px)",zIndex:n?10:5};case"creative":default:return{};case"curtain":var u=n?1:0,p=t<0?"right":"left";return{transform:"translateX(".concat(c=n?0:t<0?-100:100,"%) scaleX(").concat(u,")"),opacity:n?1:0,zIndex:n?10:5,transformOrigin:p}}},Ee=n.useCallback(function(){for(var e=[],n=0;n<80;n++){var t=Math.random()>.7;e.push({id:n,left:100*Math.random(),delay:1.5*Math.random(),duration:.4+.4*Math.random(),isLarge:t})}return e},[]),Ne=p.default("idp-carousel","idp-carousel--".concat(h),"idp-carousel--".concat(v),{"idp-carousel--hover":Z,"idp-carousel--raining":ne},L),Se=p.default("idp-carousel__content",k),Te=p.default("idp-carousel__indicators","idp-carousel__indicators--".concat(w));return 0===fe?null:e.jsxs("div",{ref:de,className:Ne,style:A,onMouseEnter:function(){return X(!0)},onMouseLeave:function(){return X(!1)},onTouchStart:function(e){var n=e.touches[0];pe.current={x:n.clientX,y:n.clientY}},onTouchEnd:function(e){if(pe.current){var n=e.changedTouches[0],t=n.clientX-pe.current.x,r=n.clientY-pe.current.y;he?Math.abs(r)>50&&(r>0?ye():be()):Math.abs(t)>50&&(t>0?ye():be()),pe.current=null}},onKeyDown:function(e){"ArrowLeft"===e.key||"ArrowUp"===e.key?ye():"ArrowRight"!==e.key&&"ArrowDown"!==e.key||be()},onClick:function(e){var n;if("rain"===h){var t=null===(n=de.current)||void 0===n?void 0:n.getBoundingClientRect();if(t){var r=e.clientX-t.left,i=e.clientY-t.top,o={id:Date.now(),x:r,y:i};le(function(e){return b(b([],e,!0),[o],!1)}),te(!0),oe(Ee()),setTimeout(function(){be(),te(!1),oe([])},1500),setTimeout(function(){le(function(e){return e.filter(function(e){return e.id!==o.id})})},1e3)}}},tabIndex:0,role:"region","aria-roledescription":"carousel",children:[e.jsx("div",{className:Se,style:g(g({},M),me||ge?{}:{transform:he?"translateY(".concat(Ce,"%)"):"translateX(".concat(Ce,"%)"),transitionDuration:"".concat(R,"ms")}),children:r.map(function(n,t){var r=t===W,i=t-W,o=p.default("idp-carousel__item",{"idp-carousel__item--active":r,"idp-carousel__item--prev":-1===i,"idp-carousel__item--next":1===i,"idp-carousel__item--exit":"book"===h&&-1===i});return e.jsx("div",{className:o,style:g({},me?_e(t):ge?{opacity:r?1:0,zIndex:r?1:0,transitionDuration:"".concat(R,"ms")}:{}),role:"group","aria-roledescription":"slide","aria-label":"".concat(t+1," of ").concat(fe),"aria-hidden":!r,children:n.render?n.render():e.jsxs("div",{className:"idp-carousel__item-inner",onClick:function(){return function(e,n){e.link&&window.open(e.link,"_blank"),null==I||I(e,n)}(n,t)},style:{cursor:n.link||I?"pointer":"default"},children:[e.jsx("img",{src:n.image,alt:"string"==typeof n.title?n.title:"",className:"idp-carousel__image",draggable:!1}),(n.title||n.description)&&e.jsxs("div",{className:p.default("idp-carousel__info","idp-carousel__info--".concat(n.infoPosition||"bottom")),children:[n.title&&e.jsx("div",{className:"idp-carousel__title",children:n.title}),n.description&&e.jsx("div",{className:"idp-carousel__description",children:n.description})]})]})},n.key)})}),E&&fe>1&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:p.default("idp-carousel__arrow","idp-carousel__arrow--prev"),onClick:ye,"aria-label":"Previous slide",type:"button",children:he?null!=z?z:e.jsx(D,{type:"arrow-up",size:20}):null!=H?H:e.jsx(D,{type:"chevron-left",size:20})}),e.jsx("button",{className:p.default("idp-carousel__arrow","idp-carousel__arrow--next"),onClick:be,"aria-label":"Next slide",type:"button",children:he?null!=V?V:e.jsx(D,{type:"arrow-down",size:20}):null!=P?P:e.jsx(D,{type:"chevron-right",size:20})})]}),y&&fe>1&&e.jsx("div",{className:Te,role:"tablist",children:r.map(function(n,t){var r=t===W,i=U&&c&&r;return e.jsx("button",{className:p.default("idp-carousel__indicator",{"idp-carousel__indicator--active":r,"idp-carousel__indicator--progress":i}),onClick:function(){return xe(t)},role:"tab","aria-selected":r,"aria-label":"Go to slide ".concat(t+1),type:"button",style:i?{"--progress-duration":"".concat(u,"ms")}:void 0,children:i&&e.jsx("span",{className:"idp-carousel__indicator-progress-bar"},"progress-".concat(W))},"".concat(n.key,"-").concat(i?"progress":"static"))})}),e.jsxs("div",{className:"idp-carousel__pagination",children:[e.jsx("span",{className:"idp-carousel__pagination-current",children:W+1}),e.jsx("span",{className:"idp-carousel__pagination-separator",children:"/"}),e.jsx("span",{className:"idp-carousel__pagination-total",children:fe})]}),"rain"===h&&e.jsx("div",{className:"idp-carousel__rain-overlay"}),"rain"===h&&ie.map(function(n){return e.jsx("span",{className:p.default("idp-carousel__rain-drop",{"idp-carousel__rain-drop--large":n.isLarge}),style:{left:"".concat(n.left,"%"),animationDelay:"".concat(n.delay,"s"),animationDuration:"".concat(n.duration,"s")}},n.id)}),"rain"===h&&se.map(function(n){return e.jsx("span",{className:"idp-carousel__ripple",style:{left:n.x-20,top:n.y-20,width:40,height:40}},n.id)})]})},pe=function(n){var t=n.icon,r=n.image,i=n.description,o=void 0===i?"暂无数据":i,a=n.children,s=n.size,l=void 0===s?"middle":s,c=n.style,d=n.className;return e.jsxs("div",{className:"idp-empty idp-empty--".concat(l," ").concat(d||""),style:c,children:[e.jsxs("div",{className:"idp-empty__icon-wrapper",children:[t&&e.jsx("div",{className:"idp-empty__icon",children:t}),r&&e.jsx("img",{src:r,alt:"empty",className:"idp-empty__image"}),!t&&!r&&e.jsx(D,{type:"file-text",size:"large"===l?64:"small"===l?32:48,color:"#d9d9d9"})]}),e.jsx("div",{className:"idp-empty__description",children:o}),a&&e.jsx("div",{className:"idp-empty__actions",children:a})]})},fe=function(t){var r,i=t.value,o=t.defaultValue,a=t.onChange,s=t.options,l=void 0===s?[]:s,c=t.placeholder,d=void 0===c?"请选择":c,u=t.disabled,p=void 0!==u&&u,f=t.size,h=void 0===f?"middle":f,m=t.style,v=t.className,x=void 0===v?"":v,y=t.allowClear,C=void 0===y||y,w=t.expandTrigger,_=void 0===w?"click":w,E=t.changeOnSelect,N=void 0!==E&&E,S=t.fieldNames,T=void 0===S?{}:S,O=t.width,L=t.dropdownWidth,A=t.dropdownHeight,k=t.dropdownStyle,M=void 0===k?{}:k,I=t.dropdownClassName,j=void 0===I?"":I,R=t.placement,H=void 0===R?"bottomLeft":R,P=t.checkbox,z=void 0!==P&&P,V=t.autoWidth,B=void 0!==V&&V,U=n.useState(!1),F=U[0],Y=U[1],$=n.useState([]),G=$[0],W=$[1],K=n.useState([]),Z=K[0],X=K[1],q=n.useRef(null),J=n.useRef(null),Q=T.label,ee=void 0===Q?"label":Q,ne=T.value,te=void 0===ne?"value":ne,re=T.children,ie=void 0===re?"children":re,oe=n.useCallback(function(e){return e[te]||e.value},[te]),ae=n.useCallback(function(e){return e[ee]||e.label},[ee]),se=n.useCallback(function(e){return e[ie]||e.children},[ie]),le=n.useCallback(function(e){for(var n=[],t=l,r=function(e){var r=t.find(function(n){return oe(n)===e});if(!r)return{value:n};n.push(r),t=se(r)||[]},i=0,o=e;i<o.length;i++){var a=r(o[i]);if("object"==typeof a)return a.value}return n},[l,oe,se]),ce=n.useCallback(function(e){for(var n=[],t=l,r=function(e){var r=t.find(function(n){return oe(n)===e});if(!r)return{value:n};n.push(r),t=se(r)||[]},i=0,o=e;i<o.length;i++){var a=r(o[i]);if("object"==typeof a)return a.value}return n},[l,oe,se]),de=n.useCallback(function(){var e=void 0!==i?i:o;return!e||Array.isArray(e)&&0===e.length?[]:z?Array.isArray(e)&&Array.isArray(e[0])?e:[e]:Array.isArray(e)&&!Array.isArray(e[0])?[e]:[]},[i,o,z]),ue=n.useState(de()),fe=ue[0],he=ue[1];n.useEffect(function(){var e=void 0!==i?i:o;if(!e)return he([]),void W([]);if(z){var n=void 0;n=Array.isArray(e)?0===e.length?[]:Array.isArray(e[0])?e:[e]:[],he(n);var t=n.map(function(e){return ce(e)});W(t.map(function(e){return e&&0!==e.length?e[e.length-1]:null}).filter(function(e){return null!==e}))}else{(n=Array.isArray(e)&&!Array.isArray(e[0])?e:e[0])&&n.length>0?he([n]):he([])}},[i,o,z,ce]);var ge=n.useCallback(function(e){var n=[],t=function(e,r){for(var i=0,o=e;i<o.length;i++){var a=o[i];if(oe(a)===oe(r))return n.push(ae(a)),!0;var s=se(a);if(s&&s.length>0&&t(s,r))return n.unshift(ae(a)),!0}return!1};return t(l,e),n},[l,oe,ae,se]),me=n.useCallback(function(){if(z){if(!G||0===G.length)return d;var e=G.filter(function(e){var n=se(e);return!n||0===n.length}).map(function(e){return ge(e).join("/")});return e.length>3?e.slice(0,3).join(", ")+" +".concat(e.length-3):e.join(", ")}return 0!==fe.length&&fe[0]&&0!==fe[0].length?le(fe[0]).map(function(e){return ae(e)}).join(" / "):d},[fe,G,z,le,ae,d,ge,se]),ve=n.useCallback(function(e){var n=[],t=function(e,r,i){for(var o=0,a=e;o<a.length;o++){var s=a[o],l=b(b([],i,!0),[oe(s)],!1);if(oe(s)===oe(r))return n.push.apply(n,l),!0;var c=se(s);if(c&&c.length>0&&t(c,r,l))return!0}return!1};return t(l,e,[]),n},[l,oe,se]),xe=n.useCallback(function(e,n){var t=ve(n),r=ve(e);if(r.length<=t.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==r[i])return!1;return!0},[ve]),be=n.useCallback(function(e){var n=[],t=function(e,r,i){for(var o=0,a=e;o<a.length;o++){var s=a[o];if(oe(s)===oe(r))return n.unshift(s),!0;var l=se(s);if(l&&l.length>0&&t(l,r,b(b([],i,!0),[s],!1)))return n.unshift(s),!0}return!1};return t(l,e,[]),n},[l,oe,se]),ye=n.useCallback(function(e,n,t){if(e.stopPropagation(),z){var r=b([],G,!0),o=r.findIndex(function(e){return oe(e)===oe(n)});if(o>-1){r.splice(o,1);var s=r.filter(function(e){return!xe(e,n)});r.splice.apply(r,b([0,r.length],s,!1))}else{be(n).forEach(function(e){-1===r.findIndex(function(n){return oe(n)===oe(e)})&&r.push(e)})}W(r);var l=r.map(function(e){return ve(e)});null==a||a(l,r),void 0===i&&he(l);var c=se(n);if(c&&c.length>0){var d=b(b([],Z.slice(0,t),!0),[oe(n)],!1);X(d)}else{d=Z.slice(0,t+1);X(d)}}},[G,z,oe,se,ve,be,xe,a,i,Z]),Ce=n.useCallback(function(e,n){if(z){var t=b([],G,!0),r=t.findIndex(function(n){return oe(n)===oe(e)});if(r>-1){t.splice(r,1);var o=t.filter(function(n){return!xe(n,e)});t.splice.apply(t,b([0,t.length],o,!1))}else{be(e).forEach(function(e){-1===t.findIndex(function(n){return oe(n)===oe(e)})&&t.push(e)})}W(t);var s=t.map(function(e){return ve(e)});if(null==a||a(s,t),void 0===i&&he(s),(c=se(e))&&c.length>0){var l=b(b([],Z.slice(0,n),!0),[oe(e)],!1);X(l)}else{l=Z.slice(0,n+1);X(l)}}else{var c;l=b(b([],Z.slice(0,n),!0),[oe(e)],!1);if(X(l),(c=se(e))&&c.length>0){if(N){var d=le(l);null==a||a(l,d),void 0===i&&he([l])}}else{var u=le(l);null==a||a(l,u),void 0===i&&he([l]),Y(!1),X([])}}},[Z,G,z,oe,ae,se,N,le,ve,be,xe,a,i]),we=n.useCallback(function(e,n){if("hover"===_){var t=b(b([],Z.slice(0,n),!0),[oe(e)],!1);X(t)}},[Z,_,oe]),_e=n.useCallback(function(e,n,t){if(e.stopPropagation(),z){var r=se(n);if(r&&r.length>0){var i=b(b([],Z.slice(0,t),!0),[oe(n)],!1);X(i)}}else Ce(n,t)},[z,Z,oe,se,Ce]),Ee=n.useCallback(function(e){e.stopPropagation(),z?(null==a||a([],[]),W([]),void 0===i&&he([])):(null==a||a([],[]),void 0===i&&he([])),X([])},[a,i,z]),Ne=n.useCallback(function(e,n){if(e.stopPropagation(),z){var t=b([],G,!0),r=oe(n),o=t.findIndex(function(e){return oe(e)===r});if(o>-1){t.splice(o,1);var s=t.filter(function(e){return!xe(e,n)});t.splice.apply(t,b([0,t.length],s,!1));for(var l=be(n),c=function(e){var n=l[e],r=oe(n);if(!t.some(function(e){return oe(e)!==r&&xe(e,n)})){var i=t.findIndex(function(e){return oe(e)===r});i>-1&&t.splice(i,1)}},d=l.length-2;d>=0;d--)c(d);W(t);var u=t.map(function(e){return ve(e)});null==a||a(u,t),void 0===i&&he(u)}}},[G,z,oe,ve,be,xe,a,i]),Se=n.useCallback(function(){p||Y(!F)},[F,p]);n.useEffect(function(){var e=function(e){q.current&&!q.current.contains(e.target)&&(Y(!1),X([]))};return F&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[F]);var Te=n.useCallback(function(e){if(0===e)return l;for(var n=Z.slice(0,e),t=l,r=function(e){var n=t.find(function(n){return oe(n)===e});if(!n)return{value:[]};t=se(n)||[]},i=0,o=n;i<o.length;i++){var a=r(o[i]);if("object"==typeof a)return a.value}return t},[l,Z,oe,se]);n.useEffect(function(){z||(F&&fe.length>0&&fe[0]?X(fe[0]):F||X([]))},[F,fe,z]);var Oe=n.useCallback(function(e){return!!z&&G.some(function(n){return oe(n)===oe(e)})},[G,z,oe]),Le=n.useCallback(function(e,n){return!z&&(!(n>=fe.length||!fe[0])&&fe[0][n]===oe(e))},[fe,z,oe]),Ae=n.useCallback(function(e,n){return!(n>=Z.length)&&Z[n]===oe(e)},[Z,oe]),ke=n.useCallback(function(){if(0===Z.length)return 1;for(var e=Z.length,n=l,t=function(e){var t=n.find(function(n){return oe(n)===e});if(!t)return"break";n=se(t)||[]},r=0,i=Z;r<i.length;r++){if("break"===t(i[r]))break}return n&&n.length>0&&e++,e},[Z,l,oe,se]),Me=n.useCallback(function(){var e=g({},m);return O&&(e.width="number"==typeof O?"".concat(O,"px"):O),B||O?B&&!O?e.minWidth="180px":!B&&O&&(e.maxWidth="number"==typeof O?"".concat(O,"px"):O):(e.minWidth="180px",e.maxWidth="100%"),e},[O,m,B]),Ie=n.useCallback(function(){var e=g({},M);switch(H){case"bottomLeft":e.top="100%",e.left="0",e.marginTop="4px";break;case"bottomRight":e.top="100%",e.right="0",e.marginTop="4px";break;case"topLeft":e.bottom="100%",e.left="0",e.marginBottom="4px";break;case"topRight":e.bottom="100%",e.right="0",e.marginBottom="4px"}return L&&(e.width="number"==typeof L?"".concat(L,"px"):L),A&&(e.maxHeight="number"==typeof A?"".concat(A,"px"):A),e},[L,A,M,H]),je=z?G.filter(function(e){var n=se(e);return!n||0===n.length}).length>0:fe.length>0&&(null===(r=fe[0])||void 0===r?void 0:r.length)>0;return e.jsxs("div",{ref:q,className:"cascader cascader-".concat(h," ").concat(x," ").concat(p?"cascader-disabled":""," ").concat(F?"cascader-open":""," ").concat(je?"cascader-has-value":""),style:Me(),children:[e.jsxs("div",{className:"cascader-trigger",onClick:Se,children:[e.jsx("span",{className:"cascader-selection-placeholder ".concat(je?"cascader-selection-hidden":""),children:d}),z?e.jsx("div",{className:"cascader-selection-value ".concat(je?"":"cascader-selection-hidden"),children:G.filter(function(e){var n=se(e);return!n||0===n.length}).map(function(n){var t=ge(n);return e.jsxs("span",{className:"cascader-tag",children:[e.jsx("span",{className:"cascader-tag-content",children:t.join("/")}),e.jsx("span",{className:"cascader-tag-close",onClick:function(e){return!p&&Ne(e,n)},children:e.jsx(D,{type:"close",size:10})})]},oe(n))})}):e.jsx("span",{className:"cascader-selection-value ".concat(je?"":"cascader-selection-hidden"),children:me()}),e.jsx("span",{className:"cascader-arrow",children:e.jsx(D,{type:"arrowDown",size:12})}),C&&je&&!p&&e.jsx("span",{className:"cascader-clear",onClick:Ee,children:e.jsx(D,{type:"close",size:12})})]}),F&&e.jsx("div",{className:"cascader-dropdown cascader-dropdown-".concat(H," ").concat(j),ref:J,style:Ie(),children:e.jsx("div",{className:"cascader-menus",style:{width:L?void 0:"".concat(180*ke(),"px")},children:Array.from({length:ke()}).map(function(n,t){return function(n){var t=Te(n);return t&&0!==t.length?e.jsx("ul",{className:"cascader-menu cascader-menu-".concat(n," ").concat(z?"cascader-menu-checkbox":""),children:t.map(function(t,r){var i=z?Oe(t):Le(t,n),o=Ae(t,n),a=se(t)&&se(t).length>0,s=t.disabled;return e.jsxs("li",{className:"cascader-menu-item ".concat(i?"cascader-menu-item-selected":""," ").concat(o?"cascader-menu-item-active":""," ").concat(s?"cascader-menu-item-disabled":""),onClick:function(){return!s&&(z?void 0:Ce(t,n))},onMouseEnter:function(){return!s&&we(t,n)},children:[z&&e.jsx("span",{className:"cascader-menu-item-checkbox",onClick:function(e){return!s&&ye(e,t,n)},children:e.jsx("input",{type:"checkbox",checked:i,readOnly:!0})}),e.jsx("span",{className:"cascader-menu-item-content",onClick:function(e){return!s&&_e(e,t,n)},children:ae(t)}),a&&e.jsx("span",{className:"cascader-menu-item-expand-icon",children:e.jsx(D,{type:"arrowRight",size:12,color:"#bfbfbf"})})]},"".concat(oe(t),"-").concat(r))})}):e.jsx("div",{className:"cascader-menu cascader-menu-empty",children:e.jsx(pe,{size:"small",description:"暂无数据"})})}(t)})})})]})},he=function(e,n){return"var(".concat(e,", ").concat(n,")")},ge=f.default.div(P||(P=y(["\n position: relative;\n display: inline-block;\n width: ",";\n min-width: 180px;\n font-size: 14px;\n color: ",";\n box-sizing: border-box;\n\n &.treeselect-wrapper {\n /* 外部可通过 .treeselect-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: relative;\n display: inline-block;\n width: ",";\n min-width: 180px;\n font-size: 14px;\n color: ",";\n box-sizing: border-box;\n\n &.treeselect-wrapper {\n /* 外部可通过 .treeselect-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){return e.$width||"100%"},he("--idp-text-color","rgba(0, 0, 0, 0.85)"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),me=f.default.div(z||(z=y(["\n position: relative;\n display: flex;\n align-items: center;\n min-height: 32px;\n padding: 4px 28px 4px 11px;\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n cursor: pointer;\n transition: all "," ",";\n box-sizing: border-box;\n\n &.treeselect-selection {\n /* 外部可通过 .treeselect-selection 选择器覆盖样式 */\n }\n\n &:hover {\n border-color: ",";\n }\n\n ","\n\n ","\n\n ","\n\n ","\n"],["\n position: relative;\n display: flex;\n align-items: center;\n min-height: 32px;\n padding: 4px 28px 4px 11px;\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n cursor: pointer;\n transition: all "," ",";\n box-sizing: border-box;\n\n &.treeselect-selection {\n /* 外部可通过 .treeselect-selection 选择器覆盖样式 */\n }\n\n &:hover {\n border-color: ",";\n }\n\n ","\n\n ","\n\n ","\n\n ","\n"])),he("--idp-bg-color-white","#fff"),he("--idp-border-color-extra-light","#d9d9d9"),he("--idp-border-radius-sm","4px"),he("--idp-transition-duration","0.2s"),he("--idp-transition-timing-function","ease-in-out"),he("--idp-primary-hover-color","#40a9ff"),function(e){return e.$open&&"\n border-color: ".concat(he("--idp-primary-color","#1890ff"),";\n box-shadow: ").concat(he("--idp-input-box-shadow-focus","0 0 0 2px rgba(51, 154, 240, 0.2)"),";\n ")},function(e){return e.$disabled&&"\n background-color: ".concat(he("--idp-input-disabled-bg","#f5f5f5"),";\n border-color: ").concat(he("--idp-border-color-extra-light","#d9d9d9"),";\n cursor: not-allowed;\n ")},function(e){var n=e.$size;return"large"===n?"\n min-height: 40px;\n padding: 6px 32px 6px 15px;\n font-size: 16px;\n ":"small"===n?"\n min-height: 24px;\n padding: 2px 24px 2px 7px;\n font-size: 14px;\n ":""},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ve=f.default.div(V||(V=y(["\n flex: 1;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n overflow: hidden;\n\n &.treeselect-selection__rendered {\n /* 外部可通过 .treeselect-selection__rendered 选择器覆盖样式 */\n }\n\n ","\n"],["\n flex: 1;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n overflow: hidden;\n\n &.treeselect-selection__rendered {\n /* 外部可通过 .treeselect-selection__rendered 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){return e.$isPlaceholder&&"\n color: ".concat(he("--idp-input-placeholder-color","#bfbfbf"),";\n ")}),xe=f.default.span(B||(B=y(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-selection__item {\n /* 外部可通过 .treeselect-selection__item 选择器覆盖样式 */\n }\n"],["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-selection__item {\n /* 外部可通过 .treeselect-selection__item 选择器覆盖样式 */\n }\n"]))),be=f.default.span(U||(U=y(["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n padding: 2px 8px;\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-size: 12px;\n line-height: 1.5;\n\n &.treeselect-selection__tag {\n /* 外部可通过 .treeselect-selection__tag 选择器覆盖样式 */\n }\n\n &.treeselect-selection__tag--more {\n background-color: transparent;\n border-color: transparent;\n color: ",";\n }\n\n ","\n\n ","\n"],["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n padding: 2px 8px;\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-size: 12px;\n line-height: 1.5;\n\n &.treeselect-selection__tag {\n /* 外部可通过 .treeselect-selection__tag 选择器覆盖样式 */\n }\n\n &.treeselect-selection__tag--more {\n background-color: transparent;\n border-color: transparent;\n color: ",";\n }\n\n ","\n\n ","\n"])),he("--idp-bg-color-light","#f5f5f5"),he("--idp-border-color-light","#f0f0f0"),he("--idp-border-radius-sm","4px"),he("--idp-text-color-secondary","rgba(0, 0, 0, 0.65)"),function(e){var n=e.$size;return"large"===n?"\n font-size: 14px;\n padding: 4px 10px;\n ":"small"===n?"\n font-size: 12px;\n padding: 1px 6px;\n ":""},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ye=f.default.span(F||(F=y(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-selection__tag-content {\n /* 外部可通过 .treeselect-selection__tag-content 选择器覆盖样式 */\n }\n"],["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-selection__tag-content {\n /* 外部可通过 .treeselect-selection__tag-content 选择器覆盖样式 */\n }\n"]))),Ce=f.default.span(Y||(Y=y(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n padding: 2px;\n color: ",";\n cursor: pointer;\n transition: color ",";\n\n &.treeselect-selection__tag-close {\n /* 外部可通过 .treeselect-selection__tag-close 选择器覆盖样式 */\n }\n\n &:hover {\n color: ",";\n }\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n padding: 2px;\n color: ",";\n cursor: pointer;\n transition: color ",";\n\n &.treeselect-selection__tag-close {\n /* 外部可通过 .treeselect-selection__tag-close 选择器覆盖样式 */\n }\n\n &:hover {\n color: ",";\n }\n"])),he("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),he("--idp-transition-duration","0.2s"),he("--idp-text-color","rgba(0, 0, 0, 0.85)")),we=f.default.div($||($=y(["\n flex: 1;\n min-width: 30px;\n\n &.treeselect-selection__search {\n /* 外部可通过 .treeselect-selection__search 选择器覆盖样式 */\n }\n"],["\n flex: 1;\n min-width: 30px;\n\n &.treeselect-selection__search {\n /* 外部可通过 .treeselect-selection__search 选择器覆盖样式 */\n }\n"]))),_e=f.default.input(G||(G=y(["\n width: 100%;\n padding: 0;\n border: none;\n outline: none;\n background: transparent;\n font-size: 14px;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n\n &.treeselect-selection__search-input,\n &.treeselect-dropdown__search-input {\n /* 外部可通过这些选择器覆盖样式 */\n }\n"],["\n width: 100%;\n padding: 0;\n border: none;\n outline: none;\n background: transparent;\n font-size: 14px;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n\n &.treeselect-selection__search-input,\n &.treeselect-dropdown__search-input {\n /* 外部可通过这些选择器覆盖样式 */\n }\n"])),he("--idp-text-color","rgba(0, 0, 0, 0.85)"),he("--idp-input-placeholder-color","#bfbfbf")),Ee=f.default.span(W||(W=y(["\n position: absolute;\n right: 28px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n color: ",";\n cursor: pointer;\n transition: color ",";\n z-index: 1;\n\n &.treeselect-selection__clear {\n /* 外部可通过 .treeselect-selection__clear 选择器覆盖样式 */\n }\n\n &:hover {\n color: ",";\n }\n\n ","\n"],["\n position: absolute;\n right: 28px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n color: ",";\n cursor: pointer;\n transition: color ",";\n z-index: 1;\n\n &.treeselect-selection__clear {\n /* 外部可通过 .treeselect-selection__clear 选择器覆盖样式 */\n }\n\n &:hover {\n color: ",";\n }\n\n ","\n"])),he("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),he("--idp-transition-duration","0.2s"),he("--idp-text-color","rgba(0, 0, 0, 0.85)"),function(e){var n=e.$size;return"large"===n?"right: 32px;":"small"===n?"right: 24px;":""}),Ne=f.default.span(K||(K=y(["\n position: absolute;\n right: 11px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n transition: transform ",";\n pointer-events: none;\n\n &.treeselect-selection__arrow {\n /* 外部可通过 .treeselect-selection__arrow 选择器覆盖样式 */\n }\n\n ","\n\n ","\n"],["\n position: absolute;\n right: 11px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n transition: transform ",";\n pointer-events: none;\n\n &.treeselect-selection__arrow {\n /* 外部可通过 .treeselect-selection__arrow 选择器覆盖样式 */\n }\n\n ","\n\n ","\n"])),he("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),he("--idp-transition-duration","0.2s"),function(e){return e.$open&&"\n transform: translateY(-50%) rotate(180deg);\n "},function(e){var n=e.$size;return"large"===n?"right: 15px;":"small"===n?"right: 7px;":""}),Se=f.default.div(Z||(Z=y(["\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1050;\n margin-top: 4px;\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n overflow: hidden;\n width: ",";\n max-height: ",";\n\n &.treeselect-dropdown {\n /* 外部可通过 .treeselect-dropdown 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1050;\n margin-top: 4px;\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n overflow: hidden;\n width: ",";\n max-height: ",";\n\n &.treeselect-dropdown {\n /* 外部可通过 .treeselect-dropdown 选择器覆盖样式 */\n }\n\n ","\n"])),he("--idp-bg-color-white","#fff"),he("--idp-border-radius-sm","4px"),he("--idp-shadow-lg","0 8px 24px rgba(0, 0, 0, 0.15)"),function(e){return e.$width||"100%"},function(e){return e.$height||"300px"},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Te=f.default.div(X||(X=y(["\n padding: 8px 12px;\n border-bottom: 1px solid ",";\n\n &.treeselect-dropdown__search {\n /* 外部可通过 .treeselect-dropdown__search 选择器覆盖样式 */\n }\n"],["\n padding: 8px 12px;\n border-bottom: 1px solid ",";\n\n &.treeselect-dropdown__search {\n /* 外部可通过 .treeselect-dropdown__search 选择器覆盖样式 */\n }\n"])),he("--idp-border-color-light","#f0f0f0")),Oe=f.default.input(q||(q=y(["\n width: 100%;\n padding: 4px 8px;\n background-color: ",";\n border: none;\n border-radius: ",";\n outline: none;\n font-size: 14px;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n"],["\n width: 100%;\n padding: 4px 8px;\n background-color: ",";\n border: none;\n border-radius: ",";\n outline: none;\n font-size: 14px;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n"])),he("--idp-bg-color-light","#f5f5f5"),he("--idp-border-radius-sm","4px"),he("--idp-text-color","rgba(0, 0, 0, 0.85)"),he("--idp-input-placeholder-color","#bfbfbf")),Le=f.default.div(J||(J=y(["\n max-height: 300px;\n overflow-y: auto;\n padding: 4px 0;\n\n &.treeselect-dropdown__content {\n /* 外部可通过 .treeselect-dropdown__content 选择器覆盖样式 */\n }\n\n /* 滚动条样式 */\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.15);\n border-radius: 3px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.25);\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n"],["\n max-height: 300px;\n overflow-y: auto;\n padding: 4px 0;\n\n &.treeselect-dropdown__content {\n /* 外部可通过 .treeselect-dropdown__content 选择器覆盖样式 */\n }\n\n /* 滚动条样式 */\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.15);\n border-radius: 3px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.25);\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n"]))),Ae=f.default.div(Q||(Q=y(["\n padding: 32px 0;\n\n &.treeselect-dropdown__empty {\n /* 外部可通过 .treeselect-dropdown__empty 选择器覆盖样式 */\n }\n"],["\n padding: 32px 0;\n\n &.treeselect-dropdown__empty {\n /* 外部可通过 .treeselect-dropdown__empty 选择器覆盖样式 */\n }\n"]))),ke=f.default.div(ee||(ee=y(["\n display: flex;\n flex-direction: column;\n\n &.treeselect-tree-node-wrapper {\n /* 外部可通过 .treeselect-tree-node-wrapper 选择器覆盖样式 */\n }\n"],["\n display: flex;\n flex-direction: column;\n\n &.treeselect-tree-node-wrapper {\n /* 外部可通过 .treeselect-tree-node-wrapper 选择器覆盖样式 */\n }\n"]))),Me=f.default.div(ne||(ne=y(["\n display: flex;\n align-items: center;\n padding: 8px 12px;\n padding-left: ",";\n cursor: pointer;\n transition: background-color ",";\n user-select: none;\n\n &.treeselect-tree-node {\n /* 外部可通过 .treeselect-tree-node 选择器覆盖样式 */\n }\n\n &:hover {\n background-color: ",";\n }\n\n ","\n\n ","\n\n ","\n"],["\n display: flex;\n align-items: center;\n padding: 8px 12px;\n padding-left: ",";\n cursor: pointer;\n transition: background-color ",";\n user-select: none;\n\n &.treeselect-tree-node {\n /* 外部可通过 .treeselect-tree-node 选择器覆盖样式 */\n }\n\n &:hover {\n background-color: ",";\n }\n\n ","\n\n ","\n\n ","\n"])),function(e){return"".concat(20*e.$level+12,"px")},he("--idp-transition-duration","0.2s"),he("--idp-bg-color-light","#f5f5f5"),function(e){return e.$selected&&"\n background-color: #e6f7ff;\n\n &:hover {\n background-color: #bae7ff;\n }\n "},function(e){return e.$disabled&&"\n color: ".concat(he("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),";\n cursor: not-allowed;\n\n &:hover {\n background-color: transparent;\n }\n ")},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Ie=f.default.span(te||(te=y(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n margin-right: 4px;\n cursor: pointer;\n transition: transform ",";\n\n &.treeselect-tree-node__expand-icon {\n /* 外部可通过 .treeselect-tree-node__expand-icon 选择器覆盖样式 */\n }\n\n ","\n\n ","\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n margin-right: 4px;\n cursor: pointer;\n transition: transform ",";\n\n &.treeselect-tree-node__expand-icon {\n /* 外部可通过 .treeselect-tree-node__expand-icon 选择器覆盖样式 */\n }\n\n ","\n\n ","\n"])),he("--idp-transition-duration","0.2s"),function(e){return e.$expanded&&"\n transform: rotate(90deg);\n "},function(e){return!e.$hasChildren&&"\n visibility: hidden;\n cursor: default;\n "}),je=f.default.span(re||(re=y(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-right: 8px;\n\n &.treeselect-tree-node__checkbox {\n /* 外部可通过 .treeselect-tree-node__checkbox 选择器覆盖样式 */\n }\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-right: 8px;\n\n &.treeselect-tree-node__checkbox {\n /* 外部可通过 .treeselect-tree-node__checkbox 选择器覆盖样式 */\n }\n"]))),Re=f.default.span(ie||(ie=y(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n border: 1px solid ",";\n border-radius: 2px;\n background-color: ",";\n transition: all ",";\n\n &.treeselect-tree-node__checkbox-inner {\n /* 外部可通过 .treeselect-tree-node__checkbox-inner 选择器覆盖样式 */\n }\n\n .treeselect-tree-node:hover & {\n border-color: ",";\n }\n\n ","\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n border: 1px solid ",";\n border-radius: 2px;\n background-color: ",";\n transition: all ",";\n\n &.treeselect-tree-node__checkbox-inner {\n /* 外部可通过 .treeselect-tree-node__checkbox-inner 选择器覆盖样式 */\n }\n\n .treeselect-tree-node:hover & {\n border-color: ",";\n }\n\n ","\n"])),he("--idp-border-color-extra-light","#d9d9d9"),he("--idp-bg-color-white","#fff"),he("--idp-transition-duration","0.2s"),he("--idp-primary-color","#1890ff"),function(e){return e.$checked&&"\n background-color: ".concat(he("--idp-primary-color","#1890ff"),";\n border-color: ").concat(he("--idp-primary-color","#1890ff"),";\n ")}),De=f.default.span(oe||(oe=y(["\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-tree-node__title {\n /* 外部可通过 .treeselect-tree-node__title 选择器覆盖样式 */\n }\n"],["\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-tree-node__title {\n /* 外部可通过 .treeselect-tree-node__title 选择器覆盖样式 */\n }\n"]))),He=f.default.div(ae||(ae=y(["\n display: flex;\n flex-direction: column;\n\n &.treeselect-tree-node-children {\n /* 外部可通过 .treeselect-tree-node-children 选择器覆盖样式 */\n }\n"],["\n display: flex;\n flex-direction: column;\n\n &.treeselect-tree-node-children {\n /* 外部可通过 .treeselect-tree-node-children 选择器覆盖样式 */\n }\n"]))),Pe=function(t){var r=t.treeData,i=void 0===r?[]:r,o=t.value,a=t.defaultValue,s=t.onChange,l=t.placeholder,c=void 0===l?"请选择":l,d=t.disabled,u=void 0!==d&&d,f=t.multiple,h=void 0!==f&&f,g=t.maxTagCount,m=t.allowClear,v=void 0===m||m,x=t.size,y=void 0===x?"middle":x,C=t.styles,w=t.className,_=t.dropdownWidth,E=t.dropdownHeight,N=void 0===E?300:E,S=t.showSearch,T=void 0!==S&&S,O=t.filterOption,L=t.autoClearSearchValue,A=void 0===L||L,k=t.fieldNames,M=void 0===k?{}:k,I=t.width,j=n.useState(!1),R=j[0],H=j[1],P=n.useState(function(){return a?Array.isArray(a)?a:[a]:[]}),z=P[0],V=P[1],B=n.useState(""),U=B[0],F=B[1],Y=n.useRef(null),$=n.useRef(null),G=n.useState(new Set),W=G[0],K=G[1],Z=M.title,X=void 0===Z?"title":Z,q=M.value,J=void 0===q?"value":q,Q=M.children,ee=void 0===Q?"children":Q,ne=n.useCallback(function(e){return e[J]||e.value},[J]),te=n.useCallback(function(e){return e[X]||e.title},[X]),re=n.useCallback(function(e){return e[ee]},[ee]),ie=n.useMemo(function(){return void 0!==o?h?Array.isArray(o)?o:[o]:null!==o&&""!==o?[o]:[]:z},[o,z,h]),oe=n.useCallback(function(e,n){void 0===n&&(n=i);for(var t=0,r=n;t<r.length;t++){var o=r[t];if(ne(o)===e)return o;var a=re(o);if(a&&a.length>0){var s=oe(e,a);if(s)return s}}return null},[i,ne,re]),ae=n.useMemo(function(){return ie.map(function(e){return oe(e)}).filter(Boolean)},[ie,oe]);n.useEffect(function(){var e=function(e){Y.current&&!Y.current.contains(e.target)&&(H(!1),F(""))};return R&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[R]),n.useEffect(function(){R&&T&&$.current&&setTimeout(function(){var e;return null===(e=$.current)||void 0===e?void 0:e.focus()},0)},[R,T]);var se=n.useCallback(function(e){var n=ne(e);if(h){var t=void 0,r=(t=ie.includes(n)?ie.filter(function(e){return e!==n}):b(b([],ie,!0),[n],!1)).map(function(e){return oe(e)}).filter(Boolean);void 0===o&&V(t),null==s||s(t,r)}else void 0===o&&V([n]),null==s||s(n,[e]),H(!1);A&&F("")},[ie,h,ne,oe,o,s,A]),le=n.useCallback(function(e){e.stopPropagation(),void 0===o&&V([]),null==s||s(h?[]:void 0,[])},[o,s,h]),ce=n.useCallback(function(e,n){e.stopPropagation();var t=ie.filter(function(e){return e!==n}),r=t.map(function(e){return oe(e)}).filter(Boolean);void 0===o&&V(t),null==s||s(t,r)},[ie,oe,o,s]),de=n.useCallback(function(e,n){e.stopPropagation();var t=ne(n),r=new Set(W);r.has(t)?r.delete(t):r.add(t),K(r)},[W,ne]),ue=n.useCallback(function(e){if(!U)return!0;var n=String(te(e));return O?O(U,e):n.toLowerCase().includes(U.toLowerCase())},[U,te,O]),fe=n.useCallback(function(e){var n=re(e);return!(!n||0===n.length)&&n.some(function(e){return ue(e)||fe(e)})},[re,ue]),he=n.useCallback(function(n,t){void 0===t&&(t=0);var r=ne(n),i=te(n),o=re(n),a=o&&o.length>0,s=ie.includes(r),l=W.has(r),c=!!n.disabled,d=ue(n),u=fe(n);return d||u?e.jsxs(ke,{className:"treeselect-tree-node-wrapper",children:[e.jsxs(Me,{className:p.default("treeselect-tree-node",{"treeselect-tree-node--selected":s,"treeselect-tree-node--disabled":c,"treeselect-tree-node--leaf":!a}),$selected:s,$disabled:c,$level:t,$styles:null==C?void 0:C.treeNode,onClick:function(){return!c&&se(n)},children:[e.jsx(Ie,{className:p.default("treeselect-tree-node__expand-icon",{"treeselect-tree-node__expand-icon--expanded":l,"treeselect-tree-node__expand-icon--no-children":!a}),$expanded:l,$hasChildren:!!a,onClick:function(e){return a&&de(e,n)},children:a&&e.jsx(D,{type:"arrowRight",size:12,color:"#bfbfbf"})}),h&&e.jsx(je,{className:"treeselect-tree-node__checkbox",children:e.jsx(Re,{className:p.default("treeselect-tree-node__checkbox-inner",{"treeselect-tree-node__checkbox-inner--checked":s}),$checked:s,children:s&&e.jsx(D,{type:"check",size:10,color:"#fff"})})}),e.jsx(De,{className:"treeselect-tree-node__title",children:i})]}),a&&l&&e.jsx(He,{className:"treeselect-tree-node-children",children:o.map(function(e){return he(e,t+1)})})]},String(r)):null},[ie,W,ne,te,re,h,ue,fe,se,de,null==C?void 0:C.treeNode]),Pe=n.useCallback(function(){if(!h){var n=ae[0];return n?e.jsx(xe,{className:"treeselect-selection__item",children:te(n)}):c}if(0===ae.length)return c;var t=ae,r=0;return void 0!==g&&g>0&&ae.length>g&&(t=ae.slice(0,g),r=ae.length-g),e.jsxs(e.Fragment,{children:[t.map(function(n){return e.jsxs(be,{className:p.default("treeselect-selection__tag",{"treeselect-selection__tag--more":!1}),$size:y,$styles:null==C?void 0:C.tag,children:[e.jsx(ye,{className:"treeselect-selection__tag-content",children:te(n)}),e.jsx(Ce,{className:"treeselect-selection__tag-close",onClick:function(e){return ce(e,ne(n))},children:e.jsx(D,{type:"close",size:10})})]},ne(n))}),r>0&&e.jsxs(be,{className:"treeselect-selection__tag treeselect-selection__tag--more",$size:y,$styles:null==C?void 0:C.tag,children:["+",r]})]})},[h,ae,g,ne,te,ce,c,y,null==C?void 0:C.tag]),ze=p.default("treeselect-wrapper",w);return e.jsxs(ge,{ref:Y,className:ze,$width:I,$styles:null==C?void 0:C.wrapper,children:[e.jsxs(me,{className:p.default("treeselect-selection",{"treeselect-selection--open":R,"treeselect-selection--disabled":u}),$open:R,$disabled:u,$size:y,$styles:null==C?void 0:C.selection,onClick:function(){u||(H(!R),R||F(""))},children:[T&&R?e.jsx(we,{className:"treeselect-selection__search",children:e.jsx(_e,{ref:$,type:"text",className:"treeselect-selection__search-input",value:U,onChange:function(e){return F(e.target.value)},placeholder:0===ae.length?c:"",onClick:function(e){return e.stopPropagation()}})}):e.jsx(ve,{className:p.default("treeselect-selection__rendered",{"treeselect-selection__rendered--placeholder":0===ae.length}),$isPlaceholder:0===ae.length,children:Pe()}),v&&!u&&ae.length>0&&e.jsx(Ee,{className:"treeselect-selection__clear",$size:y,onClick:le,children:e.jsx(D,{type:"close",size:12})}),e.jsx(Ne,{className:p.default("treeselect-selection__arrow",{"treeselect-selection__arrow--open":R}),$open:R,$size:y,children:e.jsx(D,{type:"arrowDown",size:12})})]}),R&&e.jsxs(Se,{className:"treeselect-dropdown",$width:_,$height:N,$styles:null==C?void 0:C.dropdown,children:[T&&!R&&e.jsx(Te,{className:"treeselect-dropdown__search",children:e.jsx(Oe,{ref:$,type:"text",className:"treeselect-dropdown__search-input",value:U,onChange:function(e){return F(e.target.value)},placeholder:"搜索"})}),e.jsx(Le,{className:"treeselect-dropdown__content",children:i.length>0?i.map(function(e){return he(e)}):e.jsx(Ae,{className:"treeselect-dropdown__empty",children:e.jsx(pe,{size:"small",description:"暂无数据"})})})]})]})},ze=function(t){var r=t.color,o=t.onChange,a=t.onColorChange,s=t.disabled,l=void 0!==s&&s,c=t.className,d=t.style,u=t.alpha,f=void 0!==u&&u,h=t.presetColors,g=void 0===h?[]:h,m=t.gradient,v=void 0!==m&&m,x=t.children,y=n.useState(!1),C=y[0],w=y[1],_=n.useState(r),E=_[0],N=_[1],S=n.useState([r,"#ffffff"]),T=S[0],O=S[1],L=n.useState(90),A=L[0],k=L[1],M=n.useRef(null),I=n.useRef(null),j=p.default("idp-color-picker",{"idp-color-picker--disabled":l,"idp-color-picker--open":C},c),R=function(e,n){if(v&&void 0!==n){var t=b([],T,!0);t[n]=e.hex,O(t),D()}else N(e.hex),null==a||a(e.hex)},D=function(){var e="linear-gradient(".concat(A,"deg, ").concat(T[0],", ").concat(T[1],")");N(e),null==a||a(e)},H=function(e){e.stopPropagation(),l||w(!C)};return n.useEffect(function(){var e=function(e){var n=M.current&&M.current.contains(e.target),t=I.current&&I.current.contains(e.target);n||t||w(!1)};return C&&document.addEventListener("click",e),function(){document.removeEventListener("click",e)}},[C]),n.useEffect(function(){if(v&&r&&r.startsWith("linear-gradient")){var e=r.match(/linear-gradient\((\d+)deg,\s*(#[0-9a-fA-F]+),\s*(#[0-9a-fA-F]+)\)/);e&&(k(parseInt(e[1])),O([e[2],e[3]]))}},[r,v]),e.jsxs("div",{className:j,style:d,children:[x?e.jsx("div",{ref:I,className:"idp-color-picker-trigger-container",onClick:H,children:x}):e.jsx("div",{ref:I,className:"idp-color-picker-default-trigger",style:{background:r},onClick:H}),C&&e.jsxs("div",{className:"idp-color-picker-popup",children:[e.jsxs("div",{className:"idp-color-picker-content",ref:M,children:[v?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"idp-color-picker-gradient",children:[e.jsxs("div",{className:"idp-color-picker-gradient-item",children:[e.jsx("div",{className:"idp-color-picker-gradient-label",children:"起始颜色"}),e.jsx(i.SketchPicker,{color:T[0],onChange:function(e){R(e,0)},disableAlpha:!f})]}),e.jsxs("div",{className:"idp-color-picker-gradient-item",children:[e.jsx("div",{className:"idp-color-picker-gradient-label",children:"结束颜色"}),e.jsx(i.SketchPicker,{color:T[1],onChange:function(e){R(e,1)},disableAlpha:!f})]})]}),e.jsxs("div",{className:"idp-color-picker-gradient-direction",children:[e.jsxs("div",{className:"idp-color-picker-gradient-direction-label",children:["渐变方向: ",A,"°"]}),e.jsx("input",{type:"range",min:"0",max:"360",value:A,onChange:function(e){k(parseInt(e.target.value)),D()},className:"idp-color-picker-gradient-range"})]})]}):e.jsx(i.SketchPicker,{color:E,onChange:function(e){R(e)},disableAlpha:!f}),g.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"idp-color-picker-presets-label",children:"预设颜色"}),e.jsx("div",{className:"idp-color-picker-presets",children:g.map(function(n,t){return e.jsx("div",{className:"idp-color-picker-preset",style:{backgroundColor:n},onClick:function(){return R({hex:n})},title:n},t)})})]}),e.jsxs("div",{className:"idp-color-picker-actions",children:[e.jsx("div",{className:"idp-color-picker-preview-label",children:"参考值:"}),e.jsx("div",{className:"idp-color-picker-preview ".concat(v?"idp-color-picker-gradient-preview":"idp-color-picker-solid-preview"),style:{background:E}}),e.jsxs("div",{className:"idp-color-picker-button-group",children:[e.jsx(se,{size:"small",onClick:function(){N(r),v&&(O([r,"#ffffff"]),k(90)),w(!1)},children:"取消"}),e.jsx(se,{variant:"primary",size:"small",onClick:function(){o(E),w(!1)},children:"确认"})]})]})]}),e.jsx("div",{className:"idp-color-picker-overlay",onClick:function(){return w(!1)}})]})]})},Ve=function(e){return v(void 0,void 0,void 0,function(){var n;return x(this,function(t){switch(t.label){case 0:return navigator.clipboard&&window.isSecureContext?[4,navigator.clipboard.writeText(e)]:[3,2];case 1:return t.sent(),[3,3];case 2:(n=document.createElement("textarea")).style.position="fixed",n.style.top=n.style.left="-100vh",n.style.opacity="0",n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),t.label=3;case 3:return[2]}})})};function Be(){var e=this;return u.default.useCallback(function(n){return v(e,void 0,void 0,function(){return x(this,function(e){switch(e.label){case 0:return[4,Ve(n)];case 1:return[2,e.sent()]}})})},[])}var Ue=function(n){var t=n.url,r=n.onCopyStatusChange,i=n.children,o=Be();return e.jsx("span",{style:{margin:"0px",padding:"0px"},onClick:function(){return v(void 0,void 0,void 0,function(){return x(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,o(t)];case 1:return e.sent(),null==r||r("success"),[3,3];case 2:return e.sent(),null==r||r("error"),[3,3];case 3:return[2]}})})},children:i})},Fe=Be,Ye=function(n){var t=n.orientation,r=void 0===t?"horizontal":t,i=n.type,o=void 0===i?"solid":i,a=n.color,s=void 0===a?"#339af0":a,l=n.className,c=void 0===l?"":l,d=n.style;return e.jsx("div",{className:"divider divider-".concat(r," divider-").concat(o," ").concat(c),style:g({backgroundColor:"horizontal"===r?s:"transparent",borderColor:"vertical"===r?s:"transparent"},d)})},$e=function(n){var t=n.children,r=n.layout,i=void 0===r?"horizontal":r,o=n.direction,a=n.justify,s=void 0===a?"flex-start":a,l=n.align,c=void 0===l?"stretch":l,d=n.wrap,u=void 0===d?"nowrap":d,p=n.gap,f=n.style,h=void 0===f?{}:f,m=o||("column"===i?"column":"row");return e.jsx("div",{className:"flex",style:g({gap:"number"==typeof p?"".concat(p,"px"):p,justifyContent:s,alignItems:c,flexWrap:u,flexDirection:m},h),children:t})},Ge=function(n){var t=n.type,r=void 0===t?"text":t,i=n.placeholder,o=void 0===i?"":i,a=n.width,s=n.className,l=void 0===s?"":s,c=n.style,d=n.value,p=n.defaultValue,f=n.onChange,h=n.onBlur,v=n.onFocus,x=n.disabled,b=void 0!==x&&x,y=n.readOnly,C=void 0!==y&&y,w=n.onKeyDown,_=n.prefix,E=n.suffix,N=n.clear,S=void 0!==N&&N,T=n.extra,O=n.label,L=n.labelGap,A=void 0===L?8:L,k=n.labelClassName,M=void 0===k?"":k,I=n.labelStyle,j=n.autoComplete,R=m(n,["type","placeholder","width","className","style","value","defaultValue","onChange","onBlur","onFocus","disabled","readOnly","onKeyDown","prefix","suffix","clear","extra","label","labelGap","labelClassName","labelStyle","error","autoComplete"]),H=u.default.useState(p||""),P=H[0],z=H[1],V=u.default.useState(!1),B=V[0],U=V[1],F=function(n){return n?"string"==typeof n?e.jsx(D,{type:n,size:"medium",color:"#909399"}):n:null},Y=void 0!==d?d:P,$=S&&!b&&!C&&B&&null!=Y&&Y.toString().length>0;return e.jsxs("div",{className:"input-base-container",children:[e.jsxs("div",{className:"input-label-wrapper",style:{display:"flex",alignItems:"center"},children:[O&&e.jsx("div",{className:"input-label ".concat(M),style:g({marginRight:"number"==typeof A?"".concat(A,"px"):A},I),children:O}),e.jsxs("div",{className:"input-wrapper ".concat(l," ").concat(b?"input-disabled":""," ").concat(C?"input-readonly":""),style:g({width:a},c),children:[_&&e.jsx("div",{className:"input-prefix",children:F(_)}),e.jsx("input",g({type:r,placeholder:o,className:"input-inner",value:null!=d?String(d):Y,onChange:function(e){void 0===d&&z(e.target.value),null==f||f(e)},onBlur:function(e){U(!1),null==h||h(e)},onFocus:function(e){U(!0),null==v||v(e)},disabled:b,readOnly:C,onKeyDown:w,autoComplete:null!=j?j:"password"===r?"current-password":void 0},R)),e.jsxs("div",{className:"input-suffix-group",children:[e.jsx("div",{className:"input-suffix-clear ".concat($?"visible":""),onClick:function(){b||C||(void 0!==d||z(""),f&&f({target:{value:""}}))},children:e.jsx(D,{type:"close",size:"medium",color:"#1890ff"})}),E&&e.jsx("div",{className:"input-suffix-content",children:F(E)})]})]})]}),T&&e.jsx("div",{className:"input-extra",children:T})]})},We=function(n){var t=n.type,r=void 0===t?"text":t,i=n.placeholder,o=void 0===i?"搜索":i,a=n.width,s=n.className,l=void 0===s?"":s,c=n.style,d=n.value,u=n.onChange,p=n.onBlur,f=n.onFocus,h=n.disabled,v=void 0!==h&&h,x=n.readOnly,b=void 0!==x&&x,y=n.onSearch,C=n.onClear,w=n.clear,_=void 0!==w&&w,E=n.suffix,N=m(n,["type","placeholder","width","className","style","value","onChange","onBlur","onFocus","disabled","readOnly","onSearch","onClear","clear","suffix"]),S=function(){null==y||y()},T=_?e.jsx(D,{type:"search",onClick:S,style:{cursor:"pointer"}}):E;return e.jsxs("div",{className:"search-input-wrapper ".concat(l),style:g({width:a},c),children:[e.jsx(Ge,g({type:r,placeholder:o,width:"100%",value:d,onChange:u,onBlur:p,onFocus:f,disabled:v,readOnly:b,onKeyDown:function(e){"Enter"===e.key&&(null==y||y())},clear:_,suffix:T},N)),!_&&e.jsxs("div",{className:"search-input-suffix",children:[d&&e.jsx(D,{type:"clear",size:"small",onClick:function(){if(null==C||C(),!C&&u){u({target:{value:""}})}},style:{cursor:"pointer",marginRight:"8px"}}),e.jsx(D,{type:"search",onClick:S,style:{cursor:"pointer"}})]})]})},Ke=function(n){var t=n.nType,r=n.errorMessage,i=n.extra,o=n.value,a=n.onChange,s=n.clear,l=void 0!==s&&s,c=m(n,["nType","errorMessage","extra","value","onChange","clear"]),d=function(e){if(!e)return{isValid:!0,message:""};var n=("string"==typeof e?e:String(e)).trim(),r=parseFloat(n);if(isNaN(r))return{isValid:!1,message:"请输入有效的数字"};switch(t){case"positive-float":return/^\d+(\.\d+)?$/.test(n)&&r>0?{isValid:!0,message:""}:{isValid:!1,message:"请输入正浮点数"};case"negative-float":return/^-\d+(\.\d+)?$/.test(n)&&r<0?{isValid:!0,message:""}:{isValid:!1,message:"请输入负浮点数"};case"positive-integer":return/^\d+$/.test(n)&&r>0?{isValid:!0,message:""}:{isValid:!1,message:"请输入正整数"};case"negative-integer":return/^-\d+$/.test(n)&&r<0?{isValid:!0,message:""}:{isValid:!1,message:"请输入负整数"};case"integer":return/^-?\d+$/.test(n)?{isValid:!0,message:""}:{isValid:!1,message:"请输入整数"};case"negative":return/^-\d+(\.\d+)?$/.test(n)&&r<0?{isValid:!0,message:""}:{isValid:!1,message:"请输入负数"};case"positive":return/^\d+(\.\d+)?$/.test(n)&&r>0?{isValid:!0,message:""}:{isValid:!1,message:"请输入正数"};default:return{isValid:!0,message:""}}},p=u.default.useState({isValid:!0,message:""}),f=p[0],h=p[1];u.default.useEffect(function(){if(t&&o){var e=d(o);h(e)}},[t,o]);var v=r||f.message,x=!!v,b=!x&&i;return e.jsxs("div",{className:"number-input-wrapper",children:[e.jsx(Ge,g({type:"text",value:o,onChange:function(e){var n=e.target.value;if(null==a||a(e),t){var r=d(n);h(r)}},clear:l},c,{className:"".concat(c.className||""," ").concat(x?"input-error":"")})),x&&e.jsx("div",{className:"input-error-message ".concat(x?"visible":""),children:v}),b&&e.jsx("div",{className:"input-extra",children:i})]})},Ze=function(n){var t=n.placeholder,r=void 0===t?"":t,i=n.width,o=n.height,a=n.className,s=void 0===a?"":a,l=n.style,c=n.value,d=n.defaultValue,p=n.onChange,f=n.onBlur,h=n.onFocus,m=n.onKeyDown,v=n.disabled,x=void 0!==v&&v,b=n.readOnly,y=void 0!==b&&b,C=n.rows,w=void 0===C?4:C,_=n.cols,E=n.maxLength,N=n.showCount,S=void 0!==N&&N,T=n.clear,O=void 0!==T&&T,L=n.extra,A=n.label,k=n.labelGap,M=void 0===k?8:k,I=n.labelClassName,j=void 0===I?"":I,R=n.labelStyle,H=n.resizable,P=void 0!==H&&H,z=n.resizeHandleSize,V=void 0===z?10:z,B=n.minWidth,U=void 0===B?200:B,F=n.maxWidth,Y=void 0===F?2e3:F,$=n.minHeight,G=void 0===$?80:$,W=n.maxHeight,K=void 0===W?800:W,Z=n.onResize,X=u.default.useState(d||""),q=X[0],J=X[1],Q=u.default.useState(!1),ee=Q[0],ne=Q[1],te=u.default.useState(!1),re=te[0],ie=te[1],oe=u.default.useRef(null),ae=u.default.useRef(null),se=u.default.useRef(null),le=function(e){if(void 0===e)return 0;if("number"==typeof e)return e;var n=String(e).match(/^(\d+)px$/);return n?parseInt(n[1],10):0},ce=function(e){if(void 0===e)return 0;if("number"==typeof e)return e;var n=String(e).match(/^(\d+)px$/);return n?parseInt(n[1],10):0},de=u.default.useState(le(i)||0),ue=de[0],pe=de[1],fe=u.default.useState(ce(o)||24*w||80),he=fe[0],ge=fe[1];u.default.useEffect(function(){if(ae.current){var e=le(i)||ae.current.offsetWidth||0,n=ce(o)||24*w||80;pe(e),ge(n)}},[]);var me=void 0!==c,ve=me?c:q,xe=(null==ve?void 0:ve.length)||0;u.default.useEffect(function(){var e=function(e){if(re&&se.current){var n=e.clientX-se.current.mouseX,t=e.clientY-se.current.mouseY,r=se.current.width+n,i=se.current.height+t;r=Math.max(U,Math.min(Y,r)),i=Math.max(G,Math.min(K,i)),pe(r),ge(i),null==Z||Z({width:r,height:i})}},n=function(){se.current=null,ie(!1)};return re&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}},[re,U,Y,G,K,Z]);var be={display:"inline-flex",flexDirection:"column",width:i?"number"==typeof i?"".concat(i,"px"):i:"100%"},ye={position:"relative",display:"flex",alignItems:"flex-start",flex:1,width:P?"number"==typeof ue?"".concat(ue,"px"):ue:void 0},Ce=g({width:"100%",height:o?"number"==typeof o?"".concat(o,"px"):o:void 0,resize:"none"},l),we=O&&ve&&!x&&!y,_e=P?g(g({},Ce),{width:"100%",height:P?"number"==typeof he?"".concat(he,"px"):he:void 0}):Ce;return e.jsxs("div",{className:"textarea-wrapper ".concat(s),style:be,ref:ae,children:[(A||S||we)&&e.jsxs("div",{className:"textarea-header",style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[A?e.jsx("label",{className:"input-label ".concat(j),style:g({marginRight:"number"==typeof M?"".concat(M,"px"):M},R),children:A}):null,e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[we&&e.jsx("span",{className:"textarea-clear",onClick:function(){if(!x&&!y){me||J(""),null==p||p({target:{value:""}})}},style:{cursor:"pointer"},children:e.jsx(D,{type:"close-circle",size:"small",color:"#909399"})}),S&&E&&e.jsxs("span",{className:"textarea-count",style:{fontSize:"12px",color:"#909399"},children:[xe,"/",E]})]})]}),e.jsxs("div",{className:"input-wrapper textarea-input-wrapper ".concat(ee?"focused":""," ").concat(x?"disabled":""," ").concat(re?"resizing":""),style:ye,children:[e.jsx("textarea",{ref:oe,className:"input-base textarea-base",placeholder:r,value:ve,defaultValue:me?void 0:d,onChange:function(e){var n=e.target.value;me||J(n),null==p||p(e)},onBlur:function(e){ne(!1),null==f||f(e)},onFocus:function(e){ne(!0),null==h||h(e)},onKeyDown:m,disabled:x,readOnly:y,rows:w,cols:_,maxLength:E,style:_e}),P&&e.jsx("div",{className:"textarea-resize-handle",onMouseDown:function(e){P&&!x&&!y&&ae.current&&(e.preventDefault(),e.stopPropagation(),se.current={mouseX:e.clientX,mouseY:e.clientY,width:ae.current.offsetWidth,height:ae.current.offsetHeight},ie(!0))},style:{position:"absolute",bottom:"0",right:"0",width:"".concat(V,"px"),height:"".concat(V,"px"),cursor:"nwse-resize",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx("div",{style:{width:"8px",height:"8px",borderRight:"2px solid #909399",borderBottom:"2px solid #909399"}})})]}),L&&e.jsx("div",{className:"input-extra",style:{marginTop:"4px"},children:L})]})},Xe=function(n){var t=n.defaultVisible,r=void 0!==t&&t,i=n.onVisibleChange,o=n.autoComplete,a=void 0===o?"current-password":o,s=m(n,["defaultVisible","onVisibleChange","autoComplete"]),l=u.default.useState(r),c=l[0],d=l[1],p=function(){var e=!c;d(e),null==i||i(e)};return e.jsx(Ge,g({type:c?"text":"password",suffix:e.jsx("div",{className:"input-suffix-content",onClick:p,style:{cursor:"pointer"},children:e.jsx(D,{type:c?"eye":"eyeOff",size:"medium",color:"#909399"})}),autoComplete:a},s))},qe=Ge;qe.Search=We,qe.Number=Ke,qe.Textarea=Ze,qe.Password=Xe;var Je=qe,Qe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},en=u.default.createContext&&u.default.createContext(Qe),nn=["attr","size","title"];function tn(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(n.indexOf(r)>=0)continue;t[r]=e[r]}return t}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function rn(){return rn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},rn.apply(this,arguments)}function on(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function an(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?on(Object(t),!0).forEach(function(n){sn(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):on(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function sn(e,n,t){var r;return(n="symbol"==typeof(r=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"))?r:r+"")in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ln(e){return e&&e.map((e,n)=>u.default.createElement(e.tag,an({key:n},e.attr),ln(e.child)))}function cn(e){return n=>u.default.createElement(dn,rn({attr:an({},e.attr)},n),ln(e.child))}function dn(e){var n=n=>{var t,{attr:r,size:i,title:o}=e,a=tn(e,nn),s=i||n.size||"1em";return n.className&&(t=n.className),e.className&&(t=(t?t+" ":"")+e.className),u.default.createElement("svg",rn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:t,style:an(an({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&u.default.createElement("title",null,o),e.children)};return void 0!==en?u.default.createElement(en.Consumer,null,e=>n(e)):n(Qe)}function un(e){return cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}var pn=function(t){var r=t.announcement,i=t.height,o=void 0===i?40:i,a=t.speed,s=void 0===a?50:a,l=t.backgroundColor,c=void 0===l?"linear-gradient(to right, #e8eaf6 0%, #f5f5f5 50%, #e8eaf6 100%)":l,d=t.visible,u=void 0===d||d,p=t.fixed,f=void 0!==p&&p,h=t.fixedTop,g=void 0===h?0:h,m=t.isIcon,v=void 0===m||m,x=t.onClose;if(!r)return null;var b=n.useState(!0),y=b[0],C=b[1],w=u&&y,_=n.useRef(null),E=n.useRef(null),N=n.useRef(void 0),S=n.useRef(!1),T=n.useRef(!0);return n.useEffect(function(){if(w&&_.current&&E.current){var e=_.current,n=E.current;n.style.left="".concat(e.offsetWidth,"px");var t=function(){if(T.current&&n)if(S.current)N.current=requestAnimationFrame(t);else{var r=parseFloat(n.style.left)||0;r<-n.offsetWidth?n.style.left="".concat(e.offsetWidth,"px"):n.style.left="".concat(r-s/100,"px"),N.current=requestAnimationFrame(t)}};N.current=requestAnimationFrame(t);var r=function(){S.current=!0},i=function(){S.current=!1};return e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",i),function(){N.current&&cancelAnimationFrame(N.current),e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",i)}}},[s,r,w]),w?e.jsxs("div",{ref:_,className:"marquee-container ".concat(f?"marquee-container-fixed":""),style:{height:"".concat(o,"px"),background:c,top:f?"".concat(g,"px"):void 0},children:[e.jsx("div",{ref:E,className:"marquee-text",children:Array.isArray(r)?e.jsx("span",{children:r.map(function(n,t){return e.jsxs("span",{style:0==t?{}:{marginLeft:"100px"},children:[e.jsx("span",{style:{marginRight:"5px"},children:v?"📢":null}),n]},t)})}):r}),e.jsx("div",{className:"marquee-close",style:{height:"".concat(o,"px"),width:"45px",background:c},onClick:function(){T.current=!1,C(!1),x&&x()},onMouseEnter:function(){S.current=!0},onMouseLeave:function(){S.current=!1},children:e.jsx(un,{size:18,color:"#666"})})]}):null},fn=function(t){var r=t.type,i=t.content,o=t.duration,a=void 0===o?3e3:o,s=t.className,l=void 0===s?"":s,c=t.style,d=t.onClose,u=n.useState(!0),p=u[0],f=u[1];if(n.useEffect(function(){if(a>0){var e=setTimeout(function(){f(!1),null==d||d()},a);return function(){return clearTimeout(e)}}},[a,d]),!p)return null;return e.jsx("div",{className:"idp-message idp-message--".concat(r," ").concat(l," ").concat(p?"idp-message--show":""),style:c,children:e.jsxs("div",{className:"idp-message-content",children:[e.jsx(D,{type:function(){switch(r){case"success":return"success";case"warning":return"warning";case"error":return"error";default:return"infoCircleFill"}}(),size:20,color:function(){switch(r){case"success":return"var(--idp-success-color)";case"warning":return"var(--idp-warning-color)";case"error":return"var(--idp-error-color)";default:return"var(--idp-primary-color)"}}()}),e.jsx("span",{className:"idp-message-text",children:i})]})})},hn=0,gn=new Map,mn=function(e){var n=gn.get(e);if(n){var t=n.container;n.root.unmount(),document.body.contains(t)&&document.body.removeChild(t),gn.delete(e)}},vn=function(n,t,r){void 0===r&&(r=3e3);var i=++hn,a=function(){var e=document.createElement("div");return e.style.position="fixed",e.style.top="20px",e.style.left="50%",e.style.transform="translateX(-50%)",e.style.zIndex="1050",e.style.pointerEvents="none",document.body.appendChild(e),e}(),s=o.createRoot(a);s.render(e.jsx(fn,{type:n,content:t,duration:r,onClose:function(){mn(i)}})),gn.set(i,{container:a,root:s});var l=setTimeout(function(){mn(i)},r);return{close:function(){clearTimeout(l),mn(i)}}},xn={success:function(e,n){vn("success",e,n)},warning:function(e,n){vn("warning",e,n)},error:function(e,n){vn("error",e,n)},info:function(e,n){vn("info",e,n)},close:function(){gn.forEach(function(e,n){return mn(n)})}},bn=n.createContext({message:null}),yn=function(t){var r,i=t.visible,o=t.title,s=void 0===o?"标题":o,l=t.width,c=void 0===l?600:l,d=t.height,u=void 0===d?300:d,f=t.headerHeight,h=void 0===f?40:f,m=t.footerHeight,v=void 0===m?40:m,x=t.confirmLoading,b=void 0!==x&&x,y=t.direction,C=void 0===y?"normal":y,w=t.top,_=t.onCancel,E=t.onOk,N=t.children,S=t.footer,T=void 0===S?null:S,O=t.bordered,L=void 0!==O&&O,A=t.className,k=t.style,M=t.okText,I=void 0===M?"确认":M,j=t.cancelText,R=void 0===j?"取消":j,H=t.getContainer,P=void 0===H?function(){return document.body}:H,z=t.maskStyle,V=t.maskClassName,B=t.zIndex,U=void 0===B?1e3:B,F=t.contentClassName,Y=t.contentStyle,$=t.destroyOnClose,G=void 0!==$&&$,W=t.loading,K=void 0!==W&&W,Z=t.loadingIcon,X=n.useState(!1),q=X[0],J=X[1],Q=n.useState(!1),ee=Q[0],ne=Q[1],te=n.useState({x:0,y:0}),re=te[0],ie=te[1],oe=n.useRef(null),ae=C,le=function(e){if("number"==typeof e)return e;var n=e.match(/^(\d+)px$/);return n?parseInt(n[1],10):0};n.useEffect(function(){var e=function(e){oe.current={x:e.clientX,y:e.clientY}};return document.addEventListener("mousedown",e,!0),function(){document.removeEventListener("mousedown",e,!0)}},[]),n.useEffect(function(){if(!i){ne(!0);var e=setTimeout(function(){J(!1),ne(!1)},550);return function(){return clearTimeout(e)}}var n=function(){var e=oe.current;if(!e||"undefined"==typeof window)return{x:0,y:0};var n=u?le(u):0;if("center"===ae&&void 0!==w){var t=window.innerWidth/2,r=w+(n>0?n/2:0);return{x:e.x-t,y:e.y-r}}if("center"===ae)return t=window.innerWidth/2,r=window.innerHeight/2,{x:e.x-t,y:e.y-r};if(void 0!==w&&n>0)return t=window.innerWidth/2,r=w+n/2,{x:e.x-t,y:e.y-r};return t=window.innerWidth/2,r=window.innerHeight/2,{x:e.x-t,y:e.y-r}}();ie(n),ne(!1),J(!0)},[i,550,u,w,G]);var ce=function(){ne(!0);var e=setTimeout(function(){J(!1),ne(!1),null==_||_()},550);return function(){return clearTimeout(e)}},de=function(){null==E||E()},ue=g(((r={width:"number"==typeof c?"".concat(c,"px"):c,top:void 0!==w?"".concat(w,"px"):void 0})["--idp-modal-origin-x"]="".concat(re.x,"px"),r["--idp-modal-origin-y"]="".concat(re.y,"px"),r),k),pe={height:"number"==typeof h?"".concat(h,"px"):h},fe=u?le(u):0,he=le(h),ge=le(v),me=fe>0?Math.max(0,fe-he-ge):void 0,ve=g({},Y);if(!ve.maxHeight&&u){var xe=le(u);ve.maxHeight="".concat(xe,"px")}!ve.maxHeight&&me&&(ve.maxHeight="".concat(me,"px"));var be={height:"number"==typeof v?"".concat(v,"px"):v},ye=function(){if(!q&&!ee)return null;var n=g({zIndex:U},z);return e.jsx("div",{className:p.default("idp-modal-overlay",{"idp-modal-overlay--visible":q,"idp-modal-overlay--closing":ee,"idp-modal-overlay--custom-top":void 0!==w},A,V),onClick:ce,style:n,children:e.jsxs("div",{className:p.default("idp-modal-container",{"idp-modal-container--center-top":q&&!ee&&"center"===ae&&void 0!==w,"idp-modal-container--center":q&&!ee&&"center"===ae&&void 0===w,"idp-modal-container--top-right":q&&!ee&&"top-right"===ae,"idp-modal-container--bottom-right":q&&!ee&&"bottom-right"===ae,"idp-modal-container--bottom-left":q&&!ee&&"bottom-left"===ae,"idp-modal-container--normal":q&&!ee&&"normal"===ae,"idp-modal-container--closing-center-top":ee&&"center"===ae&&void 0!==w,"idp-modal-container--closing-center":ee&&"center"===ae&&void 0===w,"idp-modal-container--closing-top-right":ee&&"top-right"===ae,"idp-modal-container--closing-bottom-right":ee&&"bottom-right"===ae,"idp-modal-container--closing-bottom-left":ee&&"bottom-left"===ae,"idp-modal-container--closing-normal":ee&&"normal"===ae,"idp-modal-container--bordered":L,"idp-modal-container--has-height":void 0!==u}),style:ue,onClick:function(e){return e.stopPropagation()},children:[K?Z?e.jsx("div",{className:"idp-modal-loading",children:e.jsx("div",{className:"idp-modal-loading-content",children:Z})}):e.jsx("div",{className:"idp-modal-loading",children:e.jsx("div",{className:"idp-modal-loading-content",children:e.jsx("div",{className:"idp-modal-loading-spinner",children:e.jsxs("svg",{viewBox:"0 0 24 24",className:"idp-modal-loading-icon",children:[e.jsx("circle",{className:"idp-modal-loading-track",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"}),e.jsx("circle",{className:"idp-modal-loading-indicator",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"})]})})})}):null,e.jsxs("div",{className:"idp-modal-header",style:pe,children:[e.jsx("div",{className:"idp-modal-header__left",children:e.jsx("span",{className:"idp-modal-header__title",children:s})}),e.jsx("div",{className:"idp-modal-header__right",children:e.jsx("div",{className:"idp-modal-close-btn",onClick:ce,children:e.jsx(D,{type:"close",size:20,color:"currentColor"})})})]}),q&&e.jsx("div",{className:p.default("idp-modal-content",F),style:ve,children:G&&ee?null:N}),e.jsx($e,{className:"idp-modal-footer",align:"center",justify:"flex-end",style:Object.assign({},be,{padding:"0px 10px"}),gap:12,children:null===T?e.jsxs($e,{className:"idp-modal-footer__actions",justify:"flex-end",gap:12,children:[e.jsx(se,{variant:"secondary",onClick:ce,disabled:b,children:R||"取消"}),e.jsx(se,{variant:"primary",onClick:de,loading:b,children:I||"确认"})]}):T})]})})}();if(!ye)return null;if(!1===P)return ye;var Ce="function"==typeof P?P():P;return Ce?a.createPortal(ye,Ce):ye},Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});var wn=u.default;function _n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var En=_n(wn);!function(e){if(!e||"undefined"==typeof window)return;const n=document.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=e,document.head.appendChild(n)}('.rfm-marquee-container {\n overflow-x: hidden;\n display: flex;\n flex-direction: row;\n position: relative;\n width: var(--width);\n transform: var(--transform);\n}\n.rfm-marquee-container:hover div {\n animation-play-state: var(--pause-on-hover);\n}\n.rfm-marquee-container:active div {\n animation-play-state: var(--pause-on-click);\n}\n\n.rfm-overlay {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.rfm-overlay::before, .rfm-overlay::after {\n background: linear-gradient(to right, var(--gradient-color), rgba(255, 255, 255, 0));\n content: "";\n height: 100%;\n position: absolute;\n width: var(--gradient-width);\n z-index: 2;\n pointer-events: none;\n touch-action: none;\n}\n.rfm-overlay::after {\n right: 0;\n top: 0;\n transform: rotateZ(180deg);\n}\n.rfm-overlay::before {\n left: 0;\n top: 0;\n}\n\n.rfm-marquee {\n flex: 0 0 auto;\n min-width: var(--min-width);\n z-index: 1;\n display: flex;\n flex-direction: row;\n align-items: center;\n animation: scroll var(--duration) linear var(--delay) var(--iteration-count);\n animation-play-state: var(--play);\n animation-delay: var(--delay);\n animation-direction: var(--direction);\n}\n@keyframes scroll {\n 0% {\n transform: translateX(0%);\n }\n 100% {\n transform: translateX(-100%);\n }\n}\n\n.rfm-initial-child-container {\n flex: 0 0 auto;\n display: flex;\n min-width: auto;\n flex-direction: row;\n align-items: center;\n}\n\n.rfm-child {\n transform: var(--transform);\n}');const Nn=wn.forwardRef(function({style:e={},className:n="",autoFill:t=!1,play:r=!0,pauseOnHover:i=!1,pauseOnClick:o=!1,direction:a="left",speed:s=50,delay:l=0,loop:c=0,gradient:d=!1,gradientColor:u="white",gradientWidth:p=200,onFinish:f,onCycleComplete:h,onMount:g,children:m},v){const[x,b]=wn.useState(0),[y,C]=wn.useState(0),[w,_]=wn.useState(1),[E,N]=wn.useState(!1),S=wn.useRef(null),T=v||S,O=wn.useRef(null),L=wn.useCallback(()=>{if(O.current&&T.current){const e=T.current.getBoundingClientRect(),n=O.current.getBoundingClientRect();let r=e.width,i=n.width;"up"!==a&&"down"!==a||(r=e.height,i=n.height),_(t&&r&&i&&i<r?Math.ceil(r/i):1),b(r),C(i)}},[t,T,a]);wn.useEffect(()=>{if(E&&(L(),O.current&&T.current)){const e=new ResizeObserver(()=>L());return e.observe(T.current),e.observe(O.current),()=>{e&&e.disconnect()}}},[L,T,E]),wn.useEffect(()=>{L()},[L,m]),wn.useEffect(()=>{N(!0)},[]),wn.useEffect(()=>{"function"==typeof g&&g()},[]);const A=wn.useMemo(()=>t?y*w/s:y<x?x/s:y/s,[t,x,y,w,s]),k=wn.useMemo(()=>Object.assign(Object.assign({},e),{"--pause-on-hover":!r||i?"paused":"running","--pause-on-click":!r||i&&!o||o?"paused":"running","--width":"up"===a||"down"===a?"100vh":"100%","--transform":"up"===a?"rotate(-90deg)":"down"===a?"rotate(90deg)":"none"}),[e,r,i,o,a]),M=wn.useMemo(()=>({"--gradient-color":u,"--gradient-width":"number"==typeof p?`${p}px`:p}),[u,p]),I=wn.useMemo(()=>({"--play":r?"running":"paused","--direction":"left"===a?"normal":"reverse","--duration":`${A}s`,"--delay":`${l}s`,"--iteration-count":c?`${c}`:"infinite","--min-width":t?"auto":"100%"}),[r,a,A,l,c,t]),j=wn.useMemo(()=>({"--transform":"up"===a?"rotate(90deg)":"down"===a?"rotate(-90deg)":"none"}),[a]),R=wn.useCallback(e=>[...Array(Number.isFinite(e)&&e>=0?e:0)].map((e,n)=>En.default.createElement(wn.Fragment,{key:n},wn.Children.map(m,e=>En.default.createElement("div",{style:j,className:"rfm-child"},e)))),[j,m]);return E?En.default.createElement("div",{ref:T,style:k,className:"rfm-marquee-container "+n},d&&En.default.createElement("div",{style:M,className:"rfm-overlay"}),En.default.createElement("div",{className:"rfm-marquee",style:I,onAnimationIteration:h,onAnimationEnd:f},En.default.createElement("div",{className:"rfm-initial-child-container",ref:O},wn.Children.map(m,e=>En.default.createElement("div",{style:j,className:"rfm-child"},e))),R(w-1)),En.default.createElement("div",{className:"rfm-marquee",style:I},R(w))):null});var Sn=Cn.default=Nn,Tn=function(n){var t=n.text,r=void 0===t?"":t,i=n.speed,o=void 0===i?50:i,a=n.height,s=void 0===a?60:a,l=n.icon,c=void 0===l?null:l,d=n.styles,p=void 0===d?{}:d,f=n.closeStyle,h=void 0===f?{}:f,m=n.showCloseButton,v=void 0!==m&&m,x=n.floatingTop,b=void 0!==x&&x,y=n.pauseOnHover,C=void 0===y||y,w=n.type,_=void 0===w?"primary":w,E=n.className,N=void 0===E?"":E,S=u.default.useState(!0),T=S[0],O=S[1];if(!r||!T)return null;return e.jsxs("div",{className:"idp-notice idp-notice--".concat(_," ").concat(b?"idp-notice-floating":""," ").concat(N),style:g({height:"".concat(s,"px")},p),children:[e.jsxs(Sn,{pauseOnHover:C,speed:o,gradient:!1,children:[e.jsx("span",{style:{width:"1200px"}}),Array.isArray(r)?e.jsx("div",{className:"idp-notice-content",children:r.map(function(n,t){return e.jsxs("span",{style:{marginRight:"15px",display:"inline-block"},children:[c?e.jsx("span",{className:"idp-notice-icon",children:c}):null,e.jsx("span",{className:"idp-notice-text",children:n})]},t)})}):e.jsx("div",{className:"idp-notice-content",children:e.jsxs("span",{children:[c?e.jsx("span",{className:"idp-notice-icon",children:c}):null,e.jsx("span",{className:"idp-notice-text",children:r})]})})]}),v&&e.jsx("div",{className:"idp-notice-close",style:g({height:"".concat(s,"px")},h),onClick:function(){O(!1)},children:e.jsx("span",{className:"idp-notice-close-icon",children:"×"})})]})},On=function(n){switch(n){case"success":return e.jsx("i",{className:"fas fa-check-circle"});case"warning":return e.jsx("i",{className:"fas fa-exclamation-triangle"});case"error":return e.jsx("i",{className:"fas fa-times-circle"});default:return e.jsx("i",{className:"fas fa-info-circle"})}},Ln=function(t){var r=t.message,i=t.duration,o=void 0===i?3e3:i,a=t.type,s=void 0===a?"info":a,l=t.position,c=void 0===l?"center":l,d=t.color,u=t.top,p=t.open,f=t.clickOutsideToClose,h=void 0!==f&&f,m=t.onClose,v=void 0!==p,x=n.useState(!0),b=x[0],y=x[1],C=n.useState(!0),w=C[0],_=C[1],E=n.useRef(null),N=v?p:b;if(n.useEffect(function(){var e=function(e){h&&E.current&&!E.current.contains(e.target)&&(_(!1),setTimeout(function(){m&&m(),v||y(!1)},500))};return h&&N&&document.addEventListener("click",e),function(){document.removeEventListener("click",e)}},[h,N,v,m]),n.useEffect(function(){v&&(p?_(!0):(_(!1),setTimeout(function(){m&&m()},500)))},[p,v,m]),n.useEffect(function(){if(N){var e=setTimeout(function(){_(!1),setTimeout(function(){m&&m(),v||y(!1)},500)},o);return function(){return clearTimeout(e)}}},[o,N,v,m]),!N||!w)return null;var S="notification-".concat(s),T=d?"notification-custom":"",O=function(){var e={};if(void 0!==u)if(e.top="".concat(u,"px"),c.startsWith("top-"))switch(c){case"top-left":e.left="20px",e.right="auto";break;case"top-center":e.left="50%",e.transform="translateX(-50%)",e.right="auto";break;case"top-right":e.right="20px",e.left="auto"}else e.right="20px",e.left="auto",e.bottom="auto";return e}(),L=g({backgroundColor:d},O),A=void 0===u?"notification-".concat(c):"";return e.jsx("div",{ref:E,className:"notification ".concat(S," ").concat(A," ").concat(T," ").concat(w?"fade-in":"fade-out"),style:L,children:e.jsxs("div",{className:"notification-content",children:[On(s),e.jsx("span",{children:r})]})})},An=n.createContext(void 0),kn=function(t){var r,i=t.value,o=t.checked,a=t.defaultChecked,s=void 0!==a&&a,l=t.onChange,c=t.disabled,d=void 0!==c&&c,u=t.size,f=t.children,h=t.className,m=t.style,v=t.label,x=t.labelGap,b=void 0===x?8:x,y=t.labelClassName,C=void 0===y?"":y,w=t.labelStyle,_=n.useContext(An),E=!!_,N=n.useRef(null),S=n.useState(s),T=S[0],O=S[1],L=E?_.value===i:void 0!==o?o:T,A=u||(E?_.size:void 0),k="button"===(E?_.type:void 0);n.useEffect(function(){if(E&&_.registerRadio)return _.registerRadio(i,N.current),function(){var e;null===(e=_.unregisterRadio)||void 0===e||e.call(_,i)}},[E,i,_]),n.useEffect(function(){L&&E&&_.updateIndicator&&requestAnimationFrame(function(){var e;null===(e=_.updateIndicator)||void 0===e||e.call(_)})},[L,E]),n.useEffect(function(){E||void 0===o||O(o)},[o,E]);var M=p.default("idp-radio",((r={"idp-radio--checked":L,"idp-radio--disabled":d||E&&_.disabled})["idp-radio--".concat(A)]=A,r["idp-radio--button"]=k,r),h);return e.jsx("label",{ref:N,className:M,style:m,children:e.jsxs("div",{className:"idp-radio-wrapper",style:{display:"flex",alignItems:"center"},children:[v&&e.jsx("div",{className:"idp-radio-label ".concat(C),style:g({marginRight:"number"==typeof b?"".concat(b,"px"):b},w),children:v}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[e.jsx("input",{type:"radio",className:"idp-radio__input",checked:L,onChange:function(e){var n,t=e.target.checked;d||E&&_.disabled||(E?null===(n=_.onChange)||void 0===n||n.call(_,i):(O(t),null==l||l(t,i)))},disabled:d||E&&_.disabled,value:i}),!k&&e.jsx("span",{className:"idp-radio__inner"}),f&&e.jsx("span",{className:"idp-radio__label",children:f})]})]})})};kn.Group=function(t){var r,i=t.value,o=t.defaultValue,a=t.onChange,s=t.disabled,l=void 0!==s&&s,c=t.type,d=void 0===c?"radio":c,u=t.size,f=void 0===u?"middle":u,h=t.children,g=t.className,m=t.style,v=n.useState(o),x=v[0],b=v[1],y=n.useRef(null),C=n.useRef(new Map),w=n.useState({width:0,height:0,transform:"translateX(0px)"}),_=w[0],E=w[1],N=void 0!==i?i:x,S=n.useCallback(function(e,n){n&&C.current.set(e,n)},[]),T=n.useCallback(function(e){C.current.delete(e)},[]),O=n.useCallback(function(){if("button"===d&&y.current){var e=C.current.get(N);if(e){var n=y.current.getBoundingClientRect(),t=e.getBoundingClientRect(),r=t.left-n.left;E({width:t.width,height:t.height,transform:"translateX(".concat(r,"px)")})}}},[N,d]);n.useEffect(function(){if("button"===d){var e=requestAnimationFrame(function(){O()});return function(){return cancelAnimationFrame(e)}}},[d,O]),n.useEffect(function(){if("button"===d){var e=function(){O()};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[d,O]),n.useEffect(function(){void 0!==i&&b(i)},[i]);var L=p.default("idp-radio-group",((r={"idp-radio-group--button":"button"===d})["idp-radio-group--".concat(f)]=f,r),g);return e.jsx(An.Provider,{value:{value:N,onChange:function(e){b(e),null==a||a(e)},disabled:l,type:d,size:f,registerRadio:S,unregisterRadio:T,updateIndicator:O},children:e.jsxs("div",{ref:y,className:L,style:m,children:["button"===d&&e.jsx("div",{className:"idp-radio-group__indicator",style:{width:_.width,height:_.height,transform:_.transform}}),h]})})},kn.displayName="Radio",kn.Group.displayName="Radio.Group";var Mn,In,jn,Rn,Dn,Hn,Pn,zn,Vn,Bn,Un,Fn,Yn,$n,Gn,Wn,Kn,Zn,Xn,qn,Jn=kn,Qn=function(e,n){return"var(".concat(e,", ").concat(n,")")},et=f.default.div(Mn||(Mn=y(["\n display: inline-block;\n position: relative;\n width: 100%;\n\n &.select-wrapper {\n /* 外部可通过 .select-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: inline-block;\n position: relative;\n width: 100%;\n\n &.select-wrapper {\n /* 外部可通过 .select-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),nt=f.default.div(In||(In=y(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),tt=f.default.div(jn||(jn=y(["\n font-size: 14px;\n color: ",";\n white-space: nowrap;\n flex-shrink: 0;\n font-weight: 500;\n letter-spacing: 0.2px;\n"],["\n font-size: 14px;\n color: ",";\n white-space: nowrap;\n flex-shrink: 0;\n font-weight: 500;\n letter-spacing: 0.2px;\n"])),Qn("--idp-text-color","rgba(0, 0, 0, 0.85)")),rt=f.default.div(Rn||(Rn=y(["\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n border: 1px solid ",";\n border-radius: ",";\n background: linear-gradient(135deg, "," 0%, "," 100%);\n transition: all "," ",";\n outline: none;\n box-sizing: border-box;\n box-shadow: ","; \n overflow: hidden;\n cursor: ",";\n opacity: ",";\n\n &:hover {\n border-color: ",";\n box-shadow: ",";\n }\n\n &.select-selector {\n /* 外部可通过 .select-selector 选择器覆盖样式 */\n }\n\n /* 尺寸样式 */\n ","\n\n ","\n"],["\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n border: 1px solid ",";\n border-radius: ",";\n background: linear-gradient(135deg, "," 0%, "," 100%);\n transition: all "," ",";\n outline: none;\n box-sizing: border-box;\n box-shadow: ","; \n overflow: hidden;\n cursor: ",";\n opacity: ",";\n\n &:hover {\n border-color: ",";\n box-shadow: ",";\n }\n\n &.select-selector {\n /* 外部可通过 .select-selector 选择器覆盖样式 */\n }\n\n /* 尺寸样式 */\n ","\n\n ","\n"])),function(e){return e.$open?Qn("--idp-primary-color","#1890ff"):Qn("--idp-input-border","#d9d9d9")},Qn("--idp-border-radius-lg","8px"),Qn("--idp-bg-color-white","#fff"),Qn("--idp-bg-color","#fafafa"),Qn("--idp-transition-duration","0.2s"),Qn("--idp-transition-timing-function","ease-in-out"),function(e){return e.$open?Qn("--idp-input-box-shadow-focus","0 0 0 2px rgba(51, 154, 240, 0.2)"):Qn("--idp-shadow-extra-light","0 2px 8px rgba(0, 0, 0, 0.08)")},function(e){return e.$disabled?"not-allowed":"pointer"},function(e){return e.$disabled?Qn("--idp-opacity-disabled","0.65"):1},function(e){return e.$disabled?Qn("--idp-input-border","#d9d9d9"):Qn("--idp-primary-color","#1890ff")},function(e){return e.$disabled?"none":Qn("--idp-input-box-shadow-hover","0 0 0 2px rgba(51, 154, 240, 0.2)")},function(e){switch(e.$size){case"small":return"\n min-height: 24px;\n padding: 2px 8px;\n font-size: 13px;\n ";case"large":return"\n min-height: 40px;\n padding: 8px 16px;\n font-size: 15px;\n ";default:return"\n min-height: 32px;\n padding: 6px 12px;\n font-size: 14px;\n "}},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),it=f.default.div(Dn||(Dn=y(["\n flex: 1;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 4px;\n overflow: hidden;\n"],["\n flex: 1;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 4px;\n overflow: hidden;\n"]))),ot=f.default.span(Hn||(Hn=y(["\n color: ",";\n user-select: none;\n"],["\n color: ",";\n user-select: none;\n"])),Qn("--idp-text-color-light","#bfbfbf")),at=f.default.span(Pn||(Pn=y(["\n color: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n color: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])),Qn("--idp-text-color","rgba(0, 0, 0, 0.85)")),st=f.default.div(zn||(zn=y(["\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 4px;\n"]))),lt=f.default.span(Vn||(Vn=y(["\n display: inline-flex;\n align-items: center;\n padding: 2px 8px;\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n color: ",";\n font-size: 13px;\n line-height: 1.4;\n transition: all "," ease;\n\n &:hover {\n background: ",";\n color: ",";\n }\n\n ","\n\n ","\n"],["\n display: inline-flex;\n align-items: center;\n padding: 2px 8px;\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n color: ",";\n font-size: 13px;\n line-height: 1.4;\n transition: all "," ease;\n\n &:hover {\n background: ",";\n color: ",";\n }\n\n ","\n\n ","\n"])),Qn("--idp-primary-light-color","rgba(24, 100, 240, 0.1)"),Qn("--idp-primary-color","#1890ff"),Qn("--idp-border-radius-sm","4px"),Qn("--idp-primary-color","#1890ff"),Qn("--idp-transition-duration","0.2s"),Qn("--idp-primary-color","#1890ff"),Qn("--idp-bg-color-white","#fff"),function(e){return e.$disabled&&"\n cursor: not-allowed;\n opacity: 0.6;\n "},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ct=f.default.span(Bn||(Bn=y(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n cursor: pointer;\n transition: all 0.2s ease;\n\n &:hover {\n background: rgba(0, 0, 0, 0.1);\n }\n\n svg {\n width: 10px;\n height: 10px;\n }\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n cursor: pointer;\n transition: all 0.2s ease;\n\n &:hover {\n background: rgba(0, 0, 0, 0.1);\n }\n\n svg {\n width: 10px;\n height: 10px;\n }\n"]))),dt=f.default.input(Un||(Un=y(["\n flex: 1;\n min-width: 60px;\n border: none;\n outline: none;\n background: transparent;\n padding: 0;\n font-size: inherit;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n"],["\n flex: 1;\n min-width: 60px;\n border: none;\n outline: none;\n background: transparent;\n padding: 0;\n font-size: inherit;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n"])),Qn("--idp-text-color","rgba(0, 0, 0, 0.85)"),Qn("--idp-text-color-light","#bfbfbf")),ut=f.default.div(Fn||(Fn=y(["\n display: flex;\n align-items: center;\n gap: 8px;\n margin-left: 8px;\n flex-shrink: 0;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n margin-left: 8px;\n flex-shrink: 0;\n"]))),pt=f.default.div(Yn||(Yn=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.06);\n color: ",";\n cursor: pointer;\n transition: all "," ease;\n\n &:hover {\n background: rgba(0, 0, 0, 0.12);\n color: ",";\n }\n\n svg {\n width: 10px;\n height: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.06);\n color: ",";\n cursor: pointer;\n transition: all "," ease;\n\n &:hover {\n background: rgba(0, 0, 0, 0.12);\n color: ",";\n }\n\n svg {\n width: 10px;\n height: 10px;\n }\n"])),Qn("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),Qn("--idp-transition-duration","0.2s"),Qn("--idp-text-color-secondary","rgba(0, 0, 0, 0.65)")),ft=f.default.div($n||($n=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n transition: transform "," ease;\n transform: ",";\n\n svg {\n width: 12px;\n height: 12px;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n transition: transform "," ease;\n transform: ",";\n\n svg {\n width: 12px;\n height: 12px;\n }\n"])),Qn("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),Qn("--idp-transition-duration","0.2s"),function(e){return e.$open?"rotate(180deg)":"rotate(0deg)"}),ht=f.default.div(Gn||(Gn=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n animation: select-spin 1s linear infinite;\n\n svg {\n width: 14px;\n height: 14px;\n }\n\n @keyframes select-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n animation: select-spin 1s linear infinite;\n\n svg {\n width: 14px;\n height: 14px;\n }\n\n @keyframes select-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n"])),Qn("--idp-primary-color","#1890ff")),gt=f.default.div(Wn||(Wn=y(["\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n right: 0;\n z-index: ",";\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n box-shadow: ",";\n opacity: ",";\n visibility: ",";\n transform: ",";\n transition: all "," ",";\n overflow: hidden;\n\n &.select-dropdown {\n /* 外部可通过 .select-dropdown 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n right: 0;\n z-index: ",";\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n box-shadow: ",";\n opacity: ",";\n visibility: ",";\n transform: ",";\n transition: all "," ",";\n overflow: hidden;\n\n &.select-dropdown {\n /* 外部可通过 .select-dropdown 选择器覆盖样式 */\n }\n\n ","\n"])),Qn("--idp-z-index-modal","1000"),Qn("--idp-bg-color-white","#fff"),Qn("--idp-border-color-light","#f0f0f0"),Qn("--idp-border-radius-md","6px"),Qn("--idp-shadow-lg","0 8px 24px rgba(0, 0, 0, 0.15)"),function(e){return e.$open?1:0},function(e){return e.$open?"visible":"hidden"},function(e){return e.$open?"translateY(0)":"translateY(-8px)"},Qn("--idp-transition-duration","0.2s"),Qn("--idp-transition-timing-function","ease-in-out"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),mt=f.default.div(Kn||(Kn=y(["\n max-height: ",";\n overflow-y: auto;\n padding: 4px 0;\n\n /* 滚动条样式 */\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background: ",";\n border-radius: 3px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background: ",";\n }\n"],["\n max-height: ",";\n overflow-y: auto;\n padding: 4px 0;\n\n /* 滚动条样式 */\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background: ",";\n border-radius: 3px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background: ",";\n }\n"])),function(e){var n=e.$maxHeight;return n?"".concat(n,"px"):"256px"},Qn("--idp-border-color","#e8e8e8"),Qn("--idp-text-color-light","#bfbfbf")),vt=f.default.div(Zn||(Zn=y(["\n display: flex;\n align-items: center;\n padding: 10px 12px;\n cursor: ",";\n transition: all "," ease;\n background: ",";\n color: ",";\n opacity: ",";\n\n &:hover {\n background: ",";\n }\n\n &.select-option {\n /* 外部可通过 .select-option 选择器覆盖样式 */\n }\n\n &.select-option-selected {\n font-weight: 500;\n }\n\n &.select-option-active {\n background: ",";\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n padding: 10px 12px;\n cursor: ",";\n transition: all "," ease;\n background: ",";\n color: ",";\n opacity: ",";\n\n &:hover {\n background: ",";\n }\n\n &.select-option {\n /* 外部可通过 .select-option 选择器覆盖样式 */\n }\n\n &.select-option-selected {\n font-weight: 500;\n }\n\n &.select-option-active {\n background: ",";\n }\n\n ","\n"])),function(e){return e.$disabled?"not-allowed":"pointer"},Qn("--idp-transition-duration","0.2s"),function(e){return e.$selected?Qn("--idp-primary-light-color","rgba(24, 100, 240, 0.1)"):"transparent"},function(e){var n=e.$disabled,t=e.$selected;return n?Qn("--idp-text-color-light","#bfbfbf"):t?Qn("--idp-primary-color","#1890ff"):Qn("--idp-text-color","rgba(0, 0, 0, 0.85)")},function(e){return e.$disabled?.6:1},function(e){var n=e.$disabled,t=e.$selected;return n?"transparent":t?Qn("--idp-primary-light-color","rgba(24, 100, 240, 0.1)"):Qn("--idp-bg-color","#fafafa")},Qn("--idp-bg-color","#fafafa"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),xt=f.default.div(Xn||(Xn=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 8px;\n color: ",";\n\n svg {\n width: 14px;\n height: 14px;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 8px;\n color: ",";\n\n svg {\n width: 14px;\n height: 14px;\n }\n"])),Qn("--idp-primary-color","#1890ff")),bt=f.default.div(qn||(qn=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 24px 16px;\n color: ",";\n font-size: 14px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 24px 16px;\n color: ",";\n font-size: 14px;\n"])),Qn("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)")),yt=function(t){var r=t.value,i=t.defaultValue,o=t.options,a=void 0===o?[]:o,s=t.disabled,l=void 0!==s&&s,c=t.loading,d=void 0!==c&&c,u=t.mode,p=void 0===u?"single":u,f=t.placeholder,h=void 0===f?"请选择":f,m=t.searchable,v=void 0!==m&&m,x=t.clearable,y=void 0!==x&&x,C=t.size,w=void 0===C?"default":C,_=t.width,E=t.styles,N=t.onChange,S=t.onOpenChange,T=t.onSearch,O=t.optionRender,L=t.tagRender,A=t.label,k=t.labelGap,M=void 0===k?8:k,I=t.labelClassName,j=void 0===I?"":I,R=t.labelStyle,D=t.className,H=void 0===D?"":D,P=t.style,z=t.showArrow,V=void 0===z||z,B=t.maxHeight,U=void 0===B?256:B,F=t.emptyContent,Y=void 0===F?"暂无数据":F,$=t.getPopupContainer,G=void 0!==r,W=n.useState(void 0!==i?i:"multiple"===p?[]:""),K=W[0],Z=W[1],X=n.useState(!1),q=X[0],J=X[1],Q=n.useState(""),ee=Q[0],ne=Q[1],te=n.useState(-1),re=te[0],ie=te[1],oe=n.useState(!1),ae=oe[0],se=oe[1],le=n.useRef(null),ce=n.useRef(null),de=n.useRef(null);n.useEffect(function(){!function(){if("undefined"!=typeof document){var e="select-global-styles";if(!document.getElementById(e)){var n=document.createElement("style");n.id=e,n.textContent="\n @keyframes select-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n ",document.head.appendChild(n)}}}()},[]);var ue=G?r:K,pe="multiple"===p,fe=n.useMemo(function(){return ee?a.filter(function(e){return String(e.label).toLowerCase().includes(ee.toLowerCase())}):a},[a,ee]),he=n.useMemo(function(){if(pe){var e=Array.isArray(ue)?ue:[];return a.filter(function(n){return e.includes(n.value)})}return a.find(function(e){return e.value===ue})||null},[ue,a,pe]),ge=n.useCallback(function(e,n){G||Z(e),null==N||N(e,n)},[G,N]),me=n.useCallback(function(e){e.disabled||(ge(e.value,e),ne(""),J(!1))},[ge]),ve=n.useCallback(function(e){if(!e.disabled){var n,t,r=Array.isArray(ue)?ue:[];r.includes(e.value)?(n=r.filter(function(n){return n!==e.value}),t=he.filter(function(n){return n.value!==e.value})):(n=b(b([],r,!0),[e.value],!1),t=b(b([],he,!0),[e],!1)),ge(n,t),ne(""),setTimeout(function(){var e;return null===(e=de.current)||void 0===e?void 0:e.focus()},0)}},[ue,ge,he]),xe=n.useCallback(function(e){pe?ve(e):me(e)},[pe,ve,me]),be=n.useCallback(function(e,n){if(e.stopPropagation(),!l){var t=(Array.isArray(ue)?ue:[]).filter(function(e){return e!==n}),r=he.filter(function(e){return e.value!==n});ge(t,r)}},[ue,l,ge,he]),ye=n.useCallback(function(e){(e.stopPropagation(),l)||(ge(pe?[]:"",pe?[]:void 0),ne(""))},[l,pe,ge]),Ce=n.useCallback(function(e){var n=e.target.value;ne(n),null==T||T(n)},[T]);n.useEffect(function(){var e=function(e){le.current&&!le.current.contains(e.target)&&(J(!1),ne(""))};return q&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[q]),n.useEffect(function(){null==S||S(q),q&&v&&setTimeout(function(){var e;return null===(e=de.current)||void 0===e?void 0:e.focus()},0)},[q,v,S]);var we,_e=n.useCallback(function(e){if(q)switch(e.key){case"Escape":e.preventDefault(),J(!1);break;case"ArrowDown":e.preventDefault(),ie(function(e){return e<fe.length-1?e+1:0});break;case"ArrowUp":e.preventDefault(),ie(function(e){return e>0?e-1:fe.length-1});break;case"Enter":e.preventDefault(),re>=0&&re<fe.length&&xe(fe[re])}else"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),J(!0))},[q,re,fe,xe]),Ee=function(n){return L?L({value:n.value,label:n.label,onClose:function(e){return be(e,n.value)},disabled:l}):e.jsxs(lt,{className:"select-tag",$disabled:l,$styles:null==E?void 0:E.tag,children:[e.jsx("span",{children:n.label}),!l&&e.jsx(ct,{className:"select-tag-close",onClick:function(e){return be(e,n.value)},children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})]},n.value)},Ne=function(n,t){var r=pe?ue.includes(n.value):ue===n.value,i=t===re,o=O?O(n):e.jsxs(e.Fragment,{children:[r&&pe&&e.jsx(xt,{children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})})}),e.jsx("span",{children:n.label})]});return e.jsx(vt,{className:"select-option ".concat(r?"select-option-selected":""," ").concat(i?"select-option-active":""),$selected:r,$active:i,$disabled:!!n.disabled,$styles:null==E?void 0:E.option,onClick:function(){return xe(n)},onMouseEnter:function(){return ie(t)},children:o},n.value)},Se=pe?Array.isArray(ue)&&ue.length>0:""!==ue&&null!=ue,Te=y&&!l&&Se&&!d&&ae,Oe=V&&!d&&!Te;return e.jsx(et,{ref:le,className:"select-wrapper ".concat(H),$styles:null==E?void 0:E.wrapper,style:g({width:_},P),children:e.jsxs(nt,{children:[A&&e.jsx(tt,{className:"select-label ".concat(j),style:g({marginRight:"number"==typeof M?"".concat(M,"px"):M},R),children:A}),e.jsxs("div",{style:{flex:1,position:"relative"},children:[e.jsxs(rt,{className:"select-selector select-".concat(w," ").concat(q?"select-open":""," ").concat(l?"select-disabled":""),$disabled:l,$loading:d,$size:w,$open:q,$styles:null==E?void 0:E.selector,onClick:function(){return!l&&!d&&J(!q)},onKeyDown:_e,onMouseEnter:function(){return se(!0)},onMouseLeave:function(){return se(!1)},tabIndex:l?-1:0,role:"combobox","aria-expanded":q,"aria-haspopup":"listbox",children:[e.jsx(it,{children:function(){if(v&&q){var n=pe?"搜索...":String((null==he?void 0:he.label)||h);return e.jsx(dt,{ref:de,type:"text",value:ee,onChange:Ce,placeholder:n,onClick:function(e){return e.stopPropagation()}})}if(pe){var t=he;return t.length>0?e.jsx(st,{children:t.map(Ee)}):e.jsx(ot,{children:h})}var r=he;return r?e.jsx(at,{children:r.label}):e.jsx(ot,{children:h})}()}),e.jsxs(ut,{children:[Te&&e.jsx(pt,{className:"select-clear",onClick:ye,children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})}),d&&e.jsx(ht,{className:"select-loading",children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"})})}),Oe&&e.jsx(ft,{className:"select-arrow ".concat(q?"select-open":""),$open:q,children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M7 10l5 5 5-5z"})})})]})]}),(we=e.jsx(gt,{ref:ce,className:"select-dropdown",$open:q,$styles:null==E?void 0:E.dropdown,children:e.jsx(mt,{$maxHeight:U,children:fe.length>0?fe.map(Ne):e.jsx(bt,{className:"select-empty",children:Y})})}),$?$()?we:null:we)]})]})})},Ct=function(t){var r=t.value,i=t.options,o=t.onChange,a=n.useState(!1),s=a[0],l=a[1],c=n.useRef(null),d=n.useRef(null),u=n.useState({}),p=u[0],f=u[1],h=n.useCallback(function(){var e,n;if(c.current){var t=c.current.getBoundingClientRect(),r=window.innerHeight,i=(null===(e=d.current)||void 0===e?void 0:e.offsetWidth)||120,o=(null===(n=d.current)||void 0===n?void 0:n.offsetHeight)||200,a=t.left+t.width/2-i/2+window.scrollX,s=r-t.bottom,l=s>=o||s>=t.top;f(l?{top:t.bottom+window.scrollY+6,left:a,width:"auto",minWidth:Math.max(i,120)}:{top:t.top+window.scrollY-o-6,left:a,width:"auto",minWidth:Math.max(i,120)})}},[]);n.useEffect(function(){var e=function(e){c.current&&!c.current.contains(e.target)&&l(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),n.useEffect(function(){if(s){h();var e=function(){return h()};return window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}}},[s,h]);return e.jsxs("div",{className:"idp-page-size-select",ref:c,children:[e.jsxs("div",{className:"idp-page-size-select-trigger ".concat(s?"is-open":""),onClick:function(){l(!s),s||setTimeout(h,0)},children:[e.jsxs("span",{className:"idp-page-size-select-value",children:[r," 条/页"]}),e.jsx("svg",{className:"idp-page-size-select-arrow",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:e.jsx("path",{d:"M6 8L1 3h10z",fill:"currentColor"})})]}),s&&e.jsx("div",{className:"idp-page-size-select-dropdown is-open",ref:d,style:p,children:i.map(function(n){var t="number"==typeof n?n:parseInt(n,10);return e.jsxs("div",{className:"idp-page-size-select-option ".concat(r===t?"is-selected":""),onClick:function(){return o(t),void l(!1)},children:[n," 条/页"]},n)})})]})},wt=function(t){var r=t.total,i=void 0===r?0:r,o=t.current,a=t.pageSize,s=void 0===a?10:a,l=t.onChange,c=t.pageSizeOptions,d=void 0===c?["10","20","50","100"]:c,u=t.showSizeChanger,p=void 0!==u&&u,f=t.showQuickJumper,h=void 0!==f&&f,g=t.showTotal,m=t.size,v=void 0===m?"default":m,x=t.align,b=t.className,y=void 0===b?"":b,C=t.style,w=n.useState(1),_=w[0],E=w[1],N=n.useState(s),S=N[0],T=N[1],O=n.useRef(!0),L=void 0!==o?o:_,A=void 0!==s?s:S,k=Math.ceil(i/A),M=n.useRef(l);M.current=l,n.useEffect(function(){void 0!==s&&T(s)},[s]),n.useEffect(function(){void 0!==o&&E(o)},[o]),n.useEffect(function(){if(O.current)O.current=!1;else if(L>k&&k>0){var e=k;void 0===o&&E(e),M.current&&M.current(e,A)}},[L,k,o,A]);var I=function(e){e===L||e<1||e>k||(void 0===o&&E(e),l&&l(e,A))},j=(L-1)*A+1,R=Math.min(L*A,i),H="center"===x?"align-center":"flex-end"===x?"align-right":"";return e.jsxs("div",{className:"idp-pagination ".concat("small"===v?"mini":""," ").concat(H," ").concat(y),style:C,children:[g&&e.jsx("div",{className:"idp-pagination-total-text",children:g(i,[j,R])}),e.jsxs("ul",{className:"idp-pagination-list",children:[e.jsx("li",{className:"idp-pagination-prev ".concat(L<=1?"idp-pagination-prev-disabled":""),onClick:function(){L>1&&I(L-1)},children:e.jsx(D,{type:"arrowLeft"})}),function(){if(k<=7)return Array.from({length:k},function(e,n){return n+1});var e=[];if(e.push(1),L<=4){for(var n=2;n<=5;n++)e.push(n);e.push("..."),e.push(k)}else if(L>=k-3){e.push("...");for(n=k-4;n<=k-1;n++)e.push(n);e.push(k)}else{e.push("...");for(n=L-1;n<=L+1;n++)e.push(n);e.push("..."),e.push(k)}return e}().map(function(n,t){return e.jsx("li",{className:"number"==typeof n?"idp-pagination-item ".concat(n===L?"idp-pagination-item-active":""):"idp-pagination-ellipsis",onClick:function(){return"number"==typeof n&&I(n)},children:n},t)}),e.jsx("li",{className:"idp-pagination-next ".concat(L>=k?"idp-pagination-next-disabled":""),onClick:function(){L<k&&I(L+1)},children:e.jsx(D,{type:"arrowRight"})})]}),(p||h)&&e.jsxs("div",{className:"idp-pagination-options",children:[p&&e.jsx(Ct,{value:A,options:d,onChange:function(e){return function(e){var n=parseInt(e,10);void 0===s&&T(n),void 0===o&&E(1),l&&l(1,n)}(e.toString())}}),h&&e.jsxs("div",{className:"idp-pagination-options-quick-jumper",children:[e.jsx("div",{style:{minWidth:"30px"},children:"跳至"}),e.jsx("input",{type:"text",onKeyPress:function(e){if("Enter"===e.key){var n=e.target,t=parseInt(n.value,10);!isNaN(t)&&t>=1&&t<=k&&(I(t),n.value="")}},placeholder:"页码"}),"页"]})]})]})},_t=function(t){var r=t.children,i=t.title,o=t.placement,a=void 0===o?"top":o,s=t.trigger,l=void 0===s?"hover":s,c=t.delay,d=void 0===c?100:c,u=t.open,p=t.backgroundColor,f=t.style,h=void 0===f?{}:f,m=t.className,v=void 0===m?"":m,x=n.useState(!1),b=x[0],y=x[1],C=n.useState(!1),w=C[0],_=C[1],E=n.useState({top:0,left:0}),N=E[0],S=E[1],T=n.useRef(null),O=n.useRef(null),L=n.useRef(null),A=n.useRef(null),k=void 0!==u,M=(k?u:b)||w,I=n.useCallback(function(){if(T.current&&O.current){var e=T.current.getBoundingClientRect(),n=O.current.getBoundingClientRect(),t=window.pageYOffset||document.documentElement.scrollTop,r=window.pageXOffset||document.documentElement.scrollLeft,i=0,o=0;switch(a){case"top":i=e.top-n.height-8,o=e.left+(e.width-n.width)/2;break;case"bottom":i=e.bottom+8,o=e.left+(e.width-n.width)/2;break;case"left":i=e.top+(e.height-n.height)/2,o=e.left-n.width-8;break;case"right":i=e.top+(e.height-n.height)/2,o=e.right+8}S({top:i+t,left:o+r})}},[a]),j=n.useCallback(function(){i&&(A.current&&(clearTimeout(A.current),A.current=null),k||(y(!0),requestAnimationFrame(function(){_(!0)})))},[i,k]),R=n.useCallback(function(){k||(_(!1),A.current=setTimeout(function(){y(!1),A.current=null},200))},[k]),D=n.useCallback(function(e){if("click"===l&&!k&&b){var n=e.target;T.current&&!T.current.contains(n)&&O.current&&!O.current.contains(n)&&R()}},[l,k,b,R]);return n.useEffect(function(){k&&(u?(A.current&&(clearTimeout(A.current),A.current=null),requestAnimationFrame(function(){_(!0)})):(_(!1),A.current=setTimeout(function(){A.current=null},200)))},[u,k]),n.useEffect(function(){if(M){requestAnimationFrame(I);var e=function(){return I()},n=function(){return I()};return window.addEventListener("resize",e),window.addEventListener("scroll",n,!0),"click"!==l||k||document.addEventListener("click",D),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",n,!0),"click"!==l||k||document.removeEventListener("click",D)}}},[M,a,l,k,I,D]),n.useEffect(function(){return function(){L.current&&clearTimeout(L.current),A.current&&clearTimeout(A.current)}},[]),e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:T,onMouseEnter:"hover"===l?function(){"hover"!==l||k||(L.current&&clearTimeout(L.current),L.current=setTimeout(function(){j(),L.current=null},d))}:void 0,onMouseLeave:"hover"===l?function(){"hover"!==l||k||(L.current&&(clearTimeout(L.current),L.current=null),R())}:void 0,onClick:"click"===l?function(){"click"!==l||k||(b?R():j())}:void 0,style:{display:"inline-block"},children:r}),M&&i&&e.jsxs("div",{ref:O,className:"idp-tooltip idp-tooltip-".concat(a," ").concat(w?"idp-tooltip-visible":""," ").concat(v),style:g({position:"fixed",top:N.top,left:N.left,zIndex:1e3,backgroundColor:p},h),onMouseEnter:"hover"!==l||k?void 0:function(){A.current&&(clearTimeout(A.current),A.current=null),y(!0),_(!0)},onMouseLeave:"hover"!==l||k?void 0:R,children:[e.jsx("div",{className:"idp-tooltip-content",children:i}),e.jsx("div",{className:"idp-tooltip-arrow",style:{backgroundColor:p}})]})]})},Et=function(n){var t=n.id,r=n.record,i=n.rowIndex,o=n.allColumns,a=n.renderTableCell,s=l.useSortable({id:t}),d=s.attributes,u=s.listeners,p=s.setNodeRef,f=s.transform,h=s.transition,m=s.isDragging,v={transform:c.CSS.Transform.toString(f),transition:h,opacity:m?.5:1,cursor:"grab"};return e.jsx("tr",g({ref:p,style:v},d,u,{className:"idp-table-sortable-row ".concat(m?"is-dragging":""),"data-dragging":m,children:o.map(function(e,n){return a(e,r,i,n,o)})}))},Nt=function(t){var r=t.dataSource,i=void 0===r?[]:r,o=t.columns,a=void 0===o?[]:o,c=t.bordered,d=void 0!==c&&c,p=t.scroll,f=void 0===p?{}:p,h=t.rowKey,v=void 0===h?"key":h,x=t.className,y=void 0===x?"":x,C=t.pagination,w=t.empty,_=t.loading,E=void 0!==_&&_,N=t.loadingText,S=void 0===N?"加载中...":N,T=t.loadingDelay,O=t.draggable,L=void 0!==O&&O,A=t.onDragEnd,k=n.useState([]),M=k[0],I=k[1],j=n.useState([]),R=j[0],H=j[1],P=n.useState([]),z=P[0],V=P[1],B=n.useState([]),U=B[0],F=B[1],Y=n.useState(1),$=Y[0],G=Y[1],W=n.useState(10),K=W[0],Z=W[1],X=n.useState(E),q=X[0],J=X[1],Q=n.useState(i),ee=Q[0],ne=Q[1],te=n.useRef(null),re=n.useRef(null),ie=n.useRef(null),oe=n.useRef(null),ae=n.useRef(null),se=n.useRef(0),le=n.useRef(!1),ce=n.useRef(null),de=n.useRef(0),ue=n.useState(null),fe=ue[0],he=ue[1],ge=n.useState(""),me=ge[0],ve=ge[1];n.useEffect(function(){ne(i)},[i]),n.useEffect(function(){return te.current&&(clearTimeout(te.current),te.current=null),E&&T&&T>0?(J(!0),te.current=setTimeout(function(){J(!1)},T)):J(E),function(){te.current&&clearTimeout(te.current)}},[E,T]),n.useEffect(function(){C&&"object"==typeof C&&(void 0!==C.current&&G(C.current),void 0!==C.pageSize&&Z(C.pageSize))},[C&&"object"==typeof C?C.current:void 0,C&&"object"==typeof C?C.pageSize:void 0]),n.useEffect(function(){return function(){ae.current&&cancelAnimationFrame(ae.current),ce.current&&clearTimeout(ce.current)}},[]);n.useEffect(function(){var e=[],n=[],t=[],r=[];a.forEach(function(i,o){var a,s=(a=i.width)?"number"==typeof a?a:parseInt(a,10)||0:0;r[o]=s;var l=g(g({},i),{_index:o});"start"===i.fixed||!0===i.fixed?e.push(l):"end"===i.fixed?n.push(l):t.push(l)}),I(e),H(n),V(t),F(r),requestAnimationFrame(function(){xe.current(0)})},[a]);var xe=n.useRef(function(e){re.current&&re.current.querySelectorAll('.custom-table th[style*="sticky"], .custom-table td[style*="sticky"]').forEach(function(n){var t=n,r=window.getComputedStyle(t),i=r.left,o=r.right;"auto"!==i&&"0px"!==i?t.style.transform="translateX(".concat(e,"px)"):"auto"!==o&&"0px"!==o&&(t.style.transform="translateX(".concat(-e,"px)"))})}),be=function(e,n,t){ae.current&&cancelAnimationFrame(ae.current),ae.current=requestAnimationFrame(function(){n&&n.scrollLeft!==t&&(n.scrollLeft=t),xe.current(t),ae.current=null})},ye=function(e,n){var t=n||K,r=t!==K?1:e;G(r),Z(t),C&&"function"==typeof C.onChange&&C.onChange(r,n)},Ce=function(e,n){if(void 0===e&&(e=$),void 0===n&&(n=K),!1===C)return null;var t,r=void 0!==(null==C?void 0:C.total)?C.total:ee.length,i=Math.ceil(r/n)||1,o=Math.min(e,i);if(void 0!==(null==C?void 0:C.total))t=ee;else{var a=(o-1)*n,s=a+n;t=ee.slice(a,s)}return{data:t,total:r,pageSize:n,current:o,totalPages:i}},we=function(e,n){return"function"==typeof v?v(e,n):e[v]||n},_e=function(e){if(null==e)return"";if("string"==typeof e)return e;if("number"==typeof e)return String(e);if("boolean"==typeof e)return"";if(Array.isArray(e))return e.map(_e).join("");if("object"==typeof e&&!u.default.isValidElement(e)){if(void 0!==e.name)return String(e.name);if(void 0!==e.label)return String(e.label);if(void 0!==e.title)return String(e.title);try{return JSON.stringify(e)}catch(e){return""}}return"object"==typeof e&&e.props&&e.props.children?_e(e.props.children):""},Ee=function(e,n,t){he({rowIndex:e,colKey:n}),ve(String(t||""))},Ne=function(e,n){n.onSave&&n.onSave(e,me),he(null),ve("")},Se=function(){he(null),ve("")},Te=function(n,t,r,i,o){var a={width:n.width||"auto",textAlign:n.align||"left",backgroundColor:"white"};if("start"===n.fixed||!0===n.fixed){a.position="sticky";for(var s=0,l=0;l<i;l++)s+=U[l]||0;a.left="".concat(s,"px"),a.zIndex=5}else if("end"===n.fixed){a.position="sticky";var c=0;for(l=o.length-1;l>i;l--)c+=U[l]||0;a.right="".concat(c,"px"),a.zIndex=5}var d=M.length?M.length-1:-1,p=R.length?M.length+z.length:-1,f=("start"===n.fixed||!0===n.fixed)&&i===d,h="end"===n.fixed&&i===p,g=n.key||n.dataIndex||n._index,m=(null==fe?void 0:fe.rowIndex)===r&&(null==fe?void 0:fe.colKey)===String(g),v=n.dataIndex?t[n.dataIndex]:null;n.render&&(v=n.render(v,t,r));var x=v;if(null!==v&&"object"==typeof v&&!u.default.isValidElement(v))if(void 0!==v.name)x=String(v.name);else if(void 0!==v.label)x=String(v.label);else if(void 0!==v.title)x=String(v.title);else try{x=JSON.stringify(v)}catch(e){x=""}var b=n.maxLines&&n.maxLines>0,y="";if(n.tooltip&&!m&&!(y=_e(x))&&n.dataIndex){var C=t[n.dataIndex];y="object"==typeof C?_e(C):String(C||"")}if(n.editable&&m)return e.jsx("td",{style:a,className:"".concat(f?"idp-table-fixed-left-shadow":"").concat(h?" idp-table-fixed-right-shadow":""),children:e.jsxs("div",{className:"idp-table-edit-cell",onClick:function(e){return e.stopPropagation()},children:[e.jsx("input",{type:"text",className:"idp-table-edit-input",value:me,onChange:function(e){return ve(e.target.value)},autoFocus:!0,onClick:function(e){return e.stopPropagation()}}),e.jsxs("div",{className:"idp-table-edit-actions",children:[e.jsx("span",{className:"idp-table-edit-icon idp-edit-submit",onClick:function(){return Ne(t,n)},title:"保存",children:e.jsx(D,{type:"check",size:24,color:"#339af0"})}),e.jsx("span",{className:"idp-table-edit-icon idp-edit-cancel",onClick:Se,title:"取消",children:e.jsx(D,{type:"close",size:24,color:"#339af0"})})]})]})},n.key||n.dataIndex||n._index);var w=b?e.jsx("div",{className:"idp-table-cell-ellipsis",style:{WebkitLineClamp:n.maxLines},children:x}):x,_=y?e.jsx(_t,{title:y,placement:"top",children:w}):w;return e.jsxs("td",{style:a,onClick:n.editable?function(){return Ee(r,String(g),v)}:void 0,className:"".concat(f?"idp-table-fixed-left-shadow":"").concat(h?" idp-table-fixed-right-shadow":"").concat(b?" idp-table-cell-has-ellipsis":"").concat(n.editable?" idp-table-editable-cell":""),children:[_,n.editable&&e.jsx("span",{className:"idp-table-edit-icon-wrapper",children:e.jsx(D,{type:"edit",size:16,color:"#339af0"})})]},n.key||n.dataIndex||n._index)},Oe=s.useSensors(s.useSensor(s.PointerSensor,{activationConstraint:{distance:8}}),s.useSensor(s.KeyboardSensor,{coordinateGetter:l.sortableKeyboardCoordinates})),Le=function(e){var n=e.active,t=e.over;if(t&&n.id!==t.id){var r=Ce(),i=r?r.data:ee,o=i.findIndex(function(e,t){return String(we(e,t))===String(n.id)}),a=i.findIndex(function(e,n){return String(we(e,n))===String(t.id)});if(-1!==o&&-1!==a){var s=l.arrayMove(i,o,a);if(r&&C&&"object"==typeof C&&void 0===C.total){var c=(r.current-1)*r.pageSize,d=b([],ee,!0);s.forEach(function(e,n){d[c+n]=e}),ne(d),A&&A(d)}else ne(s),A&&A(s)}}},Ae={width:f.x?"number"==typeof f.x?"".concat(f.x,"px"):f.x:"100%"},ke={maxHeight:f.y?"number"==typeof f.y?"".concat(f.y,"px"):f.y:"auto",overflowY:f.y?"auto":"visible",overflowX:f.x?"auto":"visible"},Me=b(b(b([],M,!0),z,!0),R,!0),Ie=n.useMemo(function(){return Ce()},[ee,C,K,$]),je=Ie?Ie.data:ee;return e.jsxs("div",{ref:re,className:"custom-table-container ".concat(d?"bordered":""," ").concat(y," ").concat(L?"draggable":""),style:Ae,children:[q&&e.jsx("div",{className:"custom-table-loading-mask",children:e.jsxs("div",{className:"custom-table-loading-content",children:[e.jsx("div",{className:"custom-table-loading-spinner",children:e.jsxs("svg",{viewBox:"0 0 24 24",className:"custom-table-loading-icon",children:[e.jsx("circle",{className:"custom-table-loading-track",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"}),e.jsx("circle",{className:"custom-table-loading-indicator",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"})]})}),S&&e.jsx("div",{className:"custom-table-loading-text",children:S})]})}),e.jsx("div",{className:"custom-table-header",ref:ie,onScroll:function(e){if(ie.current&&oe.current){var n=e.target;if(n===ie.current){var t=n.scrollLeft;le.current=!0,ce.current&&clearTimeout(ce.current),ce.current=setTimeout(function(){le.current=!1},150),Math.abs(t-se.current)>.5&&(se.current=t,de.current=t,be(ie.current,oe.current,t))}}},children:e.jsxs("table",{className:"custom-table ".concat(d?"bordered":""),children:[e.jsx("colgroup",{children:Me.map(function(n,t){return e.jsx("col",{style:{width:n.width||"auto"}},"header-col-".concat(n.dataIndex||n.key||t))})}),e.jsx("thead",{children:e.jsx("tr",{children:Me.map(function(n,t){return function(n,t,r){var i={width:n.width||"auto",textAlign:n.align||"left",backgroundColor:"#fafafa !important",top:0};if("start"===n.fixed||!0===n.fixed){i.position="sticky";for(var o=0,a=0;a<t;a++)o+=U[a]||0;i.left="".concat(o,"px"),i.zIndex=10}else if("end"===n.fixed){i.position="sticky";var s=0;for(a=r.length-1;a>t;a--)s+=U[a]||0;i.right="".concat(s,"px"),i.zIndex=10}return e.jsx("th",{style:i,children:n.title||""},n.key||n.dataIndex||n._index)}(n,t,Me)})})})]})}),e.jsx("div",{className:"custom-table-body",ref:oe,style:ke,onScroll:function(e){if(ie.current&&oe.current){var n=e.target;if(n===oe.current){var t=n.scrollLeft;le.current=!0,ce.current&&clearTimeout(ce.current),ce.current=setTimeout(function(){le.current=!1},150),Math.abs(t-se.current)>.5&&(se.current=t,de.current=t,be(oe.current,ie.current,t))}}},children:function(){var n=e.jsxs("table",{className:"custom-table ".concat(d?"bordered":""),children:[e.jsx("colgroup",{children:Me.map(function(n,t){return e.jsx("col",{style:{width:n.width||"auto"}},"body-col-".concat(n.dataIndex||n.key||t))})}),e.jsx("tbody",{children:L?je.map(function(n,t){return e.jsx(Et,{id:String(we(n,t)),record:n,rowIndex:t,columns:a,columnWidths:U,fixedLeftColumns:M,fixedRightColumns:R,normalColumns:z,allColumns:Me,editingCell:fe,editingValue:me,handleEdit:Ee,handleSave:Ne,handleCancel:Se,setEditingValue:ve,renderTableCell:Te},we(n,t))}):je.map(function(n,t){return e.jsx("tr",{children:Me.map(function(e,r){return Te(e,n,t,r,Me)})},we(n,t))})})]});if(L){var t=je.map(function(e,n){return String(we(e,n))});return e.jsx(s.DndContext,{sensors:Oe,collisionDetection:s.closestCenter,onDragEnd:Le,children:e.jsx(l.SortableContext,{items:t,strategy:l.verticalListSortingStrategy,children:n})})}return n}()}),0===je.length&&e.jsx("div",{className:"custom-table-empty",children:w||e.jsx(pe,{size:"small",description:"暂无数据"})}),function(){if(!1===C||!Ie)return null;var n=Ie.total,t=Ie.current,r=Ie.pageSize,i=m(C||{},["onChange","pageSize","current"]);return e.jsx("div",{className:"custom-table-pagination-wrapper",children:e.jsx(wt,g({total:n,current:t,pageSize:r,onChange:ye,showTotal:function(e,n){return"第 ".concat(n[0],"-").concat(n[1]," 条,共 ").concat(e," 条")},showSizeChanger:!0,showQuickJumper:!0,align:"flex-end"},i))})}()]})};function St(e){return cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"},child:[]}]})(e)}var Tt=function(t){var r=t.showAfter,i=void 0===r?100:r,o=t.bottom,a=void 0===o?30:o,s=t.right,l=void 0===s?30:s,c=t.size,d=void 0===c?40:c,u=t.color,p=void 0===u?"#fff":u,f=t.bgColor,h=void 0===f?"#1a2980":f,g=t.boxShadow,m=void 0===g?"0 2px 10px rgba(0, 0, 0, 0.15)":g,v=t.onClick,x=t.containerRef,b=t.icon,y=n.useState(!1),C=y[0],w=y[1],_=n.useRef(null),E=n.useCallback(function(){(null==x?void 0:x.current)?x.current.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"}),null==v||v()},[v,x]);if(n.useEffect(function(){var e=function(){var e=0;e=(null==x?void 0:x.current)?x.current.scrollTop:window.pageYOffset,w(e>i)};if(null==x?void 0:x.current){var n=x.current;return n.addEventListener("scroll",e),e(),function(){return n.removeEventListener("scroll",e)}}return window.addEventListener("scroll",e),e(),function(){return window.removeEventListener("scroll",e)}},[i,x]),!C)return null;var N=e.jsx(St,{size:Math.floor(.5*d)}),S=.5*d;return(null==x?void 0:x.current)?e.jsx("div",{ref:_,className:"top-button-wrapper-container",style:{position:"sticky",bottom:"".concat(a,"px"),marginLeft:"auto",width:"".concat(d,"px"),height:"".concat(d,"px"),right:"".concat(l,"px"),zIndex:10},children:e.jsx("button",{className:"top-button",onClick:E,style:{width:"".concat(d,"px"),height:"".concat(d,"px"),backgroundColor:h,color:p,boxShadow:m,padding:0,border:"none"},children:b?e.jsx("span",{style:{width:S,height:S,display:"flex",alignItems:"center",justifyContent:"center"},children:b}):N})}):e.jsx("div",{ref:_,className:"top-button-wrapper",style:{position:"fixed",bottom:"".concat(a,"px"),right:"".concat(l,"px"),zIndex:1e3},children:e.jsx("button",{className:"top-button",onClick:E,style:{width:"".concat(d,"px"),height:"".concat(d,"px"),backgroundColor:h,color:p,boxShadow:m,padding:0,border:"none"},children:b?e.jsx("span",{style:{width:S,height:S,display:"flex",alignItems:"center",justifyContent:"center"},children:b}):N})})},Ot=function(n){var t=n.children,r=n.width,i=n.rows,o=n.style,a=n.className,s=g(g({},o),{width:r}),l=["idp-typography",function(e){return e?"idp-typography--line-clamp-".concat(e):""}(i),a].filter(Boolean);return e.jsx("div",{className:l.join(" "),style:s,children:t})},Lt=function(t){var r=t.items,i=t.columns,o=void 0===i?3:i,a=t.gutter,s=void 0===a?20:a,l=t.className,c=t.style,d=t.classNames,u=void 0===d?{}:d,p=t.styles,f=void 0===p?{}:p,h=t.onLayoutChange,m=n.useRef(null),v=n.useState(3),x=v[0],b=v[1],y=n.useState(20),C=y[0],w=y[1],_=function(e,n,t){if(null!==e&&"object"==typeof e&&!Array.isArray(e)){for(var r=e,i=0,o=Object.keys(r).map(Number).sort(function(e,n){return n-e});i<o.length;i++){var a=o[i];if(t>=a&&r.hasOwnProperty(a))return r[a]}return n}return e};n.useEffect(function(){var e,n=function(){clearTimeout(e),e=window.setTimeout(function(){if(m.current){var e=m.current.offsetWidth,n=_(o,3,e),t=_(s,20,e);b(n),w(t),h&&h(n,r)}},100)};return n(),window.addEventListener("resize",n),function(){clearTimeout(e),window.removeEventListener("resize",n)}},[o,s,r,h]);var E=n.useMemo(function(){var e=Array.from({length:x},function(){return[]});return r.filter(function(n){return!(void 0!==n.column&&n.column>=0&&n.column<x)||(e[n.column].push(n),!1)}).forEach(function(n,t){e[t%x].push(n)}),e},[r,x]),N=function(e,n){var t=u[e];return"function"==typeof t?t(n):t||""},S=function(e,n){var t=f[e];return"function"==typeof t?t(n):t||{}};return e.jsx("div",{ref:m,className:"idp-masonry ".concat(l||""," ").concat(N("container",0)),style:g(g({display:"flex",gap:"".concat(C,"px")},c),S("container",0)),children:E.map(function(n,t){return e.jsx("div",{className:"idp-masonry-column ".concat(N("column",t)),style:g({flex:1,display:"flex",flexDirection:"column",gap:"".concat(C,"px")},S("column",t)),children:n.map(function(n,t){return e.jsx("div",{className:"idp-masonry-item ".concat(N("item",t)),style:g({},S("item",t)),children:n.content},n.key)})},"column-".concat(t))})})},At=function(n){var t=n.children,r=n.gap,i=void 0===r?12:r,o=n.align,a=void 0===o?"center":o,s=n.wrap,l=void 0===s?"nowrap":s,c=n.className,d=n.style,p=void 0===d?{}:d,f=n.inline,h=void 0!==f&&f,m=u.default.Children.toArray(t).filter(function(e){return null!=e});return 0===m.length?null:e.jsx("div",{className:"space ".concat(h?"space-inline":""," ").concat(c||""),style:g({display:h?"inline-flex":"flex",gap:"number"==typeof i?"".concat(i,"px"):i,alignItems:function(){switch(a){case"start":return"flex-start";case"end":return"flex-end";case"center":default:return"center";case"baseline":return"baseline";case"stretch":return"stretch"}}(),flexWrap:l},p),children:m.map(function(n,t){return e.jsx("div",{className:"space-item",children:n},t)})})},kt=function(){return null},Mt=function(t){var r=t.className,i=t.style,o=t.children,a=t.offsetTop,s=void 0===a?0:a,l=t.affix,c=void 0===l||l,d=t.bounds,p=void 0===d?5:d,f=t.getContainer,h=void 0===f?function(){return window.document.documentElement}:f,m=t.onChange,v=n.useState(""),x=v[0],y=v[1],C=n.useState([]),w=C[0],_=C[1],E=n.useRef(null),N=n.useRef(null),S=n.useRef(""),T=n.useRef(!1),O=n.useRef("");n.useEffect(function(){S.current=x},[x]);var L=function(){var e=h(),n=e===window.document.documentElement||e===document.body,t=!1,r=w.map(function(r){var i=document.querySelector(r.href);if(i){var o=i.getBoundingClientRect(),a=0;if(n)a=o.top+window.scrollY-s;else{var l=e.getBoundingClientRect();a=o.top-l.top+e.scrollTop-s}if(Math.abs(a-r.top)>1)return t=!0,g(g({},r),{top:a})}return r});t&&_(r)},A=function(){if(!T.current&&0!==w.length){for(var e=h(),n=(e===window.document.documentElement||e===document.body?window.scrollY:e.scrollTop)+s+p,t="",r=b([],w,!0).sort(function(e,n){return e.top-n.top}),i=0;i<r.length&&n>=r[i].top;i+=1)t=r[i].href;if(O.current){var o=r.find(function(e){return e.href===O.current});if(o)return void(Math.abs(n-o.top)<50&&(O.current!==S.current&&(y(O.current),S.current=O.current,null==m||m(O.current)),O.current=""))}t!==S.current&&(y(t),S.current=t,null==m||m(t))}};n.useEffect(function(){var e=function(e){var n=[],t=function(e){if(u.default.isValidElement(e)){var r=e;if(r.type===kt&&r.props.href&&r.props.title&&n.push({href:r.props.href,title:r.props.title,top:0}),"children"in r.props&&r.props.children){var i=r.props.children;Array.isArray(i)?i.forEach(t):t(i)}}};return Array.isArray(e)?e.forEach(t):t(e),n}(o);_(e)},[o]),n.useEffect(function(){L(),A();var e=h();N.current=function(){A()},e.addEventListener("scroll",N.current);var n=function(){L(),A()};return window.addEventListener("resize",n),function(){N.current&&e.removeEventListener("scroll",N.current),window.removeEventListener("resize",n)}},[w,s,p,h,m]);var k="idp-anchor ".concat(r||""," ").concat(c?"idp-anchor-affix":"");return e.jsx("div",{ref:E,className:k,style:i,children:e.jsx("ul",{className:"idp-anchor-list",children:w.map(function(n){return e.jsx("li",{className:"idp-anchor-link ".concat(x===n.href?"idp-anchor-link-active":""),children:e.jsx("a",{href:n.href,onClick:function(e){return function(e,n){e.preventDefault();var t=document.querySelector(n);if(t){var r=h();T.current=!0,O.current=n,y(n),S.current=n,m&&m(n),setTimeout(function(){if(r!==window.document.documentElement&&r!==document.body){var e=r.getBoundingClientRect(),n=(i=t.getBoundingClientRect()).top-e.top+r.scrollTop-s;r&&"function"==typeof r.scrollTo&&r.scrollTo({top:n,behavior:"smooth"})}else{var i=t.getBoundingClientRect(),o=window.pageYOffset||document.documentElement.scrollTop;n=i.top+o-s,window.scrollTo({top:n,behavior:"smooth"})}setTimeout(function(){T.current=!1},1500)},0)}}(e,n.href)},className:"idp-anchor-link-a",children:n.title})},n.href)})})})};Mt.Link=kt;var It=Mt,jt=function(n){var t=n.items,r=n.separator,i=void 0===r?"/":r,o=n.className,a=void 0===o?"":o;return t&&0!==t.length?e.jsx("nav",{className:"breadcrumb ".concat(a),"aria-label":"breadcrumb",children:e.jsx("ol",{className:"breadcrumb-list",children:t.map(function(n,r){var o=r===t.length-1;return e.jsx("li",{className:"breadcrumb-item",children:o?e.jsx("span",{className:"breadcrumb-current",children:n.label}):e.jsxs(e.Fragment,{children:[n.href?e.jsx("a",{href:n.href,className:"breadcrumb-link",children:n.label}):e.jsx("span",{className:"breadcrumb-text",children:n.label}),r<t.length-1&&e.jsx("span",{className:"breadcrumb-separator",children:i})]})},r)})})}):null};const Rt=e=>"string"==typeof e,Dt=()=>{let e,n;const t=new Promise((t,r)=>{e=t,n=r});return t.resolve=e,t.reject=n,t},Ht=e=>null==e?"":""+e,Pt=/###/g,zt=e=>e&&e.indexOf("###")>-1?e.replace(Pt,"."):e,Vt=e=>!e||Rt(e),Bt=(e,n,t)=>{const r=Rt(n)?n.split("."):n;let i=0;for(;i<r.length-1;){if(Vt(e))return{};const n=zt(r[i]);!e[n]&&t&&(e[n]=new t),e=Object.prototype.hasOwnProperty.call(e,n)?e[n]:{},++i}return Vt(e)?{}:{obj:e,k:zt(r[i])}},Ut=(e,n,t)=>{const{obj:r,k:i}=Bt(e,n,Object);if(void 0!==r||1===n.length)return void(r[i]=t);let o=n[n.length-1],a=n.slice(0,n.length-1),s=Bt(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Bt(e,a,Object),s?.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=t},Ft=(e,n)=>{const{obj:t,k:r}=Bt(e,n);if(t&&Object.prototype.hasOwnProperty.call(t,r))return t[r]},Yt=(e,n,t)=>{for(const r in n)"__proto__"!==r&&"constructor"!==r&&(r in e?Rt(e[r])||e[r]instanceof String||Rt(n[r])||n[r]instanceof String?t&&(e[r]=n[r]):Yt(e[r],n[r],t):e[r]=n[r]);return e},$t=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Gt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Wt=e=>Rt(e)?e.replace(/[&<>"'\/]/g,e=>Gt[e]):e;const Kt=[" ",",","?","!",";"],Zt=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(void 0!==n)return n;const t=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,t),this.regExpQueue.push(e),t}}(20),Xt=(e,n,t=".")=>{if(!e)return;if(e[n]){if(!Object.prototype.hasOwnProperty.call(e,n))return;return e[n]}const r=n.split(t);let i=e;for(let e=0;e<r.length;){if(!i||"object"!=typeof i)return;let n,o="";for(let a=e;a<r.length;++a)if(a!==e&&(o+=t),o+=r[a],n=i[o],void 0!==n){if(["string","number","boolean"].indexOf(typeof n)>-1&&a<r.length-1)continue;e+=a-e+1;break}i=n}return i},qt=e=>e?.replace("_","-"),Jt={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,n){console?.[e]?.apply?.(console,n)}};class Qt{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||Jt,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,t,r){return r&&!this.debug?null:(Rt(e[0])&&(e[0]=`${t}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new Qt(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Qt(this.logger,e)}}var er=new Qt;class nr{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const t=this.observers[e].get(n)||0;this.observers[e].set(n,t+1)}),this}off(e,n){this.observers[e]&&(n?this.observers[e].delete(n):delete this.observers[e])}emit(e,...n){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,t])=>{for(let r=0;r<t;r++)e(...n)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([t,r])=>{for(let i=0;i<r;i++)t.apply(t,[e,...n])})}}}class tr extends nr{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,t,r={}){const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,n],t&&(Array.isArray(t)?a.push(...t):Rt(t)&&i?a.push(...t.split(i)):a.push(t)));const s=Ft(this.data,a);return!s&&!n&&!t&&e.indexOf(".")>-1&&(e=a[0],n=a[1],t=a.slice(2).join(".")),!s&&o&&Rt(t)?Xt(this.data?.[e]?.[n],t,i):s}addResource(e,n,t,r,i={silent:!1}){const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,n];t&&(a=a.concat(o?t.split(o):t)),e.indexOf(".")>-1&&(a=e.split("."),r=n,n=a[1]),this.addNamespaces(n),Ut(this.data,a,r),i.silent||this.emit("added",e,n,t,r)}addResources(e,n,t,r={silent:!1}){for(const r in t)(Rt(t[r])||Array.isArray(t[r]))&&this.addResource(e,n,r,t[r],{silent:!0});r.silent||this.emit("added",e,n,t)}addResourceBundle(e,n,t,r,i,o={silent:!1,skipCopy:!1}){let a=[e,n];e.indexOf(".")>-1&&(a=e.split("."),r=t,t=n,n=a[1]),this.addNamespaces(n);let s=Ft(this.data,a)||{};o.skipCopy||(t=JSON.parse(JSON.stringify(t))),r?Yt(s,t,i):s={...s,...t},Ut(this.data,a,s),o.silent||this.emit("added",e,n,t)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return void 0!==this.getResource(e,n)}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(e=>n[e]&&Object.keys(n[e]).length>0)}toJSON(){return this.data}}var rr={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,n,t,r,i){return e.forEach(e=>{n=this.processors[e]?.process(n,t,r,i)??n}),n}};const ir=Symbol("i18next/PATH_KEY");function or(e,n){const{[ir]:t}=e(function(){const e=[],n=Object.create(null);let t;return n.get=(r,i)=>(t?.revoke?.(),i===ir?e:(e.push(i),t=Proxy.revocable(r,n),t.proxy)),Proxy.revocable(Object.create(null),n).proxy}());return t.join(n?.keySeparator??".")}const ar={},sr=e=>!Rt(e)&&"boolean"!=typeof e&&"number"!=typeof e;class lr extends nr{constructor(e,n={}){var t,r;super(),t=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{t[e]&&(r[e]=t[e])}),this.options=n,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=er.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const t={...n};if(null==e)return!1;const r=this.resolve(e,t);if(void 0===r?.res)return!1;const i=sr(r.res);return!1!==t.returnObjects||!i}extractFromKey(e,n){let t=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===t&&(t=":");const r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=t&&e.indexOf(t)>-1,a=!(this.options.userDefinedKeySeparator||n.keySeparator||this.options.userDefinedNsSeparator||n.nsSeparator||((e,n,t)=>{n=n||"",t=t||"";const r=Kt.filter(e=>n.indexOf(e)<0&&t.indexOf(e)<0);if(0===r.length)return!0;const i=Zt.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let o=!i.test(e);if(!o){const n=e.indexOf(t);n>0&&!i.test(e.substring(0,n))&&(o=!0)}return o})(e,t,r));if(o&&!a){const n=e.match(this.interpolator.nestingRegexp);if(n&&n.length>0)return{key:e,namespaces:Rt(i)?[i]:i};const o=e.split(t);(t!==r||t===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return{key:e,namespaces:Rt(i)?[i]:i}}translate(e,n,t){let r="object"==typeof n?{...n}:n;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=or(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);const i=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],r),l=s[s.length-1];let c=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const d=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===d?.toLowerCase())return u?i?{res:`${l}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${c}${a}`:i?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:a;const p=this.resolve(e,r);let f=p?.res;const h=p?.usedKey||a,g=p?.exactUsedKey||a,m=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,x=void 0!==r.count&&!Rt(r.count),b=lr.hasDefaultValue(r),y=x?this.pluralResolver.getSuffix(d,r.count,r):"",C=r.ordinal&&x?this.pluralResolver.getSuffix(d,r.count,{ordinal:!1}):"",w=x&&!r.ordinal&&0===r.count,_=w&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${y}`]||r[`defaultValue${C}`]||r.defaultValue;let E=f;v&&!f&&b&&(E=_);const N=sr(E),S=Object.prototype.toString.apply(E);if(!(v&&E&&N&&["[object Number]","[object Function]","[object RegExp]"].indexOf(S)<0)||Rt(m)&&Array.isArray(E))if(v&&Rt(m)&&Array.isArray(f))f=f.join(m),f&&(f=this.extendTranslation(f,e,r,t));else{let n=!1,i=!1;!this.isValidLookup(f)&&b&&(n=!0,f=_),this.isValidLookup(f)||(i=!0,f=a);const s=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:f,u=b&&_!==f&&this.options.updateMissing;if(i||n||u){if(this.logger.log(u?"updateKey":"missingKey",d,l,a,u?_:f),o){const e=this.resolve(a,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const t=(e,n,t)=>{const i=b&&t!==f?t:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,i,u,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,n,i,u,r),this.emit("missingKey",e,l,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?e.forEach(e=>{const n=this.pluralResolver.getSuffixes(e,r);w&&r[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach(n=>{t([e],a+n,r[`defaultValue${n}`]||_)})}):t(e,a,_))}f=this.extendTranslation(f,e,r,p,t),i&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}${c}${a}`),(i||n)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${c}${a}`:a,n?f:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...r,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(p.res=e,p.usedParams=this.getUsedParamsDetails(r),p):e}if(o){const e=Array.isArray(E),n=e?[]:{},t=e?g:h;for(const e in E)if(Object.prototype.hasOwnProperty.call(E,e)){const i=`${t}${o}${e}`;n[e]=b&&!f?this.translate(i,{...r,defaultValue:sr(_)?_[e]:void 0,joinArrays:!1,ns:s}):this.translate(i,{...r,joinArrays:!1,ns:s}),n[e]===i&&(n[e]=E[e])}f=n}}return i?(p.res=f,p.usedParams=this.getUsedParamsDetails(r),p):f}extendTranslation(e,n,t,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...t},t.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!t.skipInterpolation){t.interpolation&&this.interpolator.init({...t,interpolation:{...this.options.interpolation,...t.interpolation}});const o=Rt(e)&&(void 0!==t?.interpolation?.skipOnVariables?t.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(o){const n=e.match(this.interpolator.nestingRegexp);a=n&&n.length}let s=t.replace&&!Rt(t.replace)?t.replace:t;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,t.lng||this.language||r.usedLng,t),o){const n=e.match(this.interpolator.nestingRegexp);a<(n&&n.length)&&(t.nest=!1)}!t.lng&&r&&r.res&&(t.lng=this.language||r.usedLng),!1!==t.nest&&(e=this.interpolator.nest(e,(...e)=>i?.[0]!==e[0]||t.context?this.translate(...e,n):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${n[0]}`),null),t)),t.interpolation&&this.interpolator.reset()}const o=t.postProcess||this.options.postProcess,a=Rt(o)?[o]:o;return null!=e&&a?.length&&!1!==t.applyPostProcessor&&(e=rr.handle(a,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(t)},...t}:t,this)),e}resolve(e,n={}){let t,r,i,o,a;return Rt(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,n),l=s.key;r=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const d=void 0!==n.count&&!Rt(n.count),u=d&&!n.ordinal&&0===n.count,p=void 0!==n.context&&(Rt(n.context)||"number"==typeof n.context)&&""!==n.context,f=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);c.forEach(e=>{this.isValidLookup(t)||(a=e,ar[`${f[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(a)||(ar[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(r=>{if(this.isValidLookup(t))return;o=r;const a=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,r,e,n);else{let e;d&&(e=this.pluralResolver.getSuffix(r,n.count,n));const t=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(n.ordinal&&0===e.indexOf(i)&&a.push(l+e.replace(i,this.options.pluralSeparator)),a.push(l+e),u&&a.push(l+t)),p){const r=`${l}${this.options.contextSeparator||"_"}${n.context}`;a.push(r),d&&(n.ordinal&&0===e.indexOf(i)&&a.push(r+e.replace(i,this.options.pluralSeparator)),a.push(r+e),u&&a.push(r+t))}}let s;for(;s=a.pop();)this.isValidLookup(t)||(i=s,t=this.getResource(r,e,s,n))}))})}),{res:t,usedKey:r,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,n,t,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,t,r):this.resourceStore.getResource(e,n,t,r)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],t=e.replace&&!Rt(e.replace);let r=t?e.replace:e;if(t&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t){r={...r};for(const e of n)delete r[e]}return r}static hasDefaultValue(e){const n="defaultValue";for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}class cr{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=er.create("languageUtils")}getScriptPartFromCode(e){if(!(e=qt(e))||e.indexOf("-")<0)return null;const n=e.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}getLanguagePartFromCode(e){if(!(e=qt(e))||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Rt(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch(e){}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(e=>{if(n)return;const t=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(t)||(n=t)}),!n&&this.options.supportedLngs&&e.forEach(e=>{if(n)return;const t=this.getScriptPartFromCode(e);if(this.isSupportedCode(t))return n=t;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0)}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if("function"==typeof e&&(e=e(n)),Rt(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let t=e[n];return t||(t=e[this.getScriptPartFromCode(n)]),t||(t=e[this.formatLanguageCode(n)]),t||(t=e[this.getLanguagePartFromCode(n)]),t||(t=e.default),t||[]}toResolveHierarchy(e,n){const t=this.getFallbackCodes((!1===n?[]:n)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return Rt(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):Rt(e)&&i(this.formatLanguageCode(e)),t.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}}const dr={zero:0,one:1,two:2,few:3,many:4,other:5},ur={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class pr{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=er.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const t=qt("dev"===e?"en":e),r=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:t,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(t,{type:r})}catch(t){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),ur;if(!e.match(/-|_/))return ur;const r=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(r,n)}return this.pluralRulesCache[i]=o,o}needsPlural(e,n={}){let t=this.getRule(e,n);return t||(t=this.getRule("dev",n)),t?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n,t={}){return this.getSuffixes(e,t).map(e=>`${n}${e}`)}getSuffixes(e,n={}){let t=this.getRule(e,n);return t||(t=this.getRule("dev",n)),t?t.resolvedOptions().pluralCategories.sort((e,n)=>dr[e]-dr[n]).map(e=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,n,t={}){const r=this.getRule(e,t);return r?`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,t))}}const fr=(e,n,t,r=".",i=!0)=>{let o=((e,n,t)=>{const r=Ft(e,t);return void 0!==r?r:Ft(n,t)})(e,n,t);return!o&&i&&Rt(t)&&(o=Xt(e,t,r),void 0===o&&(o=Xt(n,t,r))),o},hr=e=>e.replace(/\$/g,"$$$$");class gr{constructor(e={}){this.logger=er.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:t,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:u,nestingPrefixEscaped:p,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=void 0!==n?n:Wt,this.escapeValue=void 0===t||t,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?$t(i):o||"{{",this.suffix=a?$t(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=u?$t(u):p||$t("$t("),this.nestingSuffix=f?$t(f):h||$t(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,n)=>e?.source===n?(e.lastIndex=0,e):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,t,r){let i,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const i=fr(n,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,t,{...r,...n,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(fr(n,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,t,{...r,...n,interpolationkey:o})};this.resetRegExp();const c=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>hr(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?hr(this.escape(e)):hr(e)}].forEach(n=>{for(a=0;i=n.regex.exec(e);){const t=i[1].trim();if(o=l(t),void 0===o)if("function"==typeof c){const n=c(e,i,r);o=Rt(n)?n:""}else if(r&&Object.prototype.hasOwnProperty.call(r,t))o="";else{if(d){o=i[0];continue}this.logger.warn(`missed to pass in variable ${t} for interpolating ${e}`),o=""}else Rt(o)||this.useRawValueToEscape||(o=Ht(o));const s=n.safeValue(o);if(e=e.replace(i[0],s),d?(n.regex.lastIndex+=o.length,n.regex.lastIndex-=i[0].length):n.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,n,t={}){let r,i,o;const a=(e,n)=>{const t=this.nestingOptionsSeparator;if(e.indexOf(t)<0)return e;const r=e.split(new RegExp(`${t}[ ]*{`));let i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);const a=i.match(/'/g),s=i.match(/"/g);((a?.length??0)%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),n&&(o={...n,...o})}catch(n){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,n),`${e}${t}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];o={...t},o=o.replace&&!Rt(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const l=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==l&&(s=r[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,l)),i=n(a.call(this,r[1].trim(),o),o),i&&r[0]===e&&!Rt(i))return i;Rt(i)||(i=Ht(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),s.length&&(i=s.reduce((e,n)=>this.format(e,n,t.lng,{...t,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const mr=e=>{const n={};return(t,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=n[a];return s||(s=e(qt(r),i),n[a]=s),s(t)}},vr=e=>(n,t,r)=>e(qt(t),r)(n);class xr{constructor(e={}){this.logger=er.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const t=n.cacheInBuiltFormats?mr:vr;this.formats={number:t((e,n)=>{const t=new Intl.NumberFormat(e,{...n});return e=>t.format(e)}),currency:t((e,n)=>{const t=new Intl.NumberFormat(e,{...n,style:"currency"});return e=>t.format(e)}),datetime:t((e,n)=>{const t=new Intl.DateTimeFormat(e,{...n});return e=>t.format(e)}),relativetime:t((e,n)=>{const t=new Intl.RelativeTimeFormat(e,{...n});return e=>t.format(e,n.range||"day")}),list:t((e,n)=>{const t=new Intl.ListFormat(e,{...n});return e=>t.format(e)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=mr(n)}format(e,n,t,r={}){const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(e=>e.indexOf(")")>-1)){const e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,n)=>{const{formatName:i,formatOptions:o}=(e=>{let n=e.toLowerCase().trim();const t={};if(e.indexOf("(")>-1){const r=e.split("(");n=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===n&&i.indexOf(":")<0?t.currency||(t.currency=i.trim()):"relativetime"===n&&i.indexOf(":")<0?t.range||(t.range=i.trim()):i.split(";").forEach(e=>{if(e){const[n,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=n.trim();t[o]||(t[o]=i),"false"===i&&(t[o]=!1),"true"===i&&(t[o]=!0),isNaN(i)||(t[o]=parseInt(i,10))}})}return{formatName:n,formatOptions:t}})(n);if(this.formats[i]){let n=e;try{const a=r?.formatParams?.[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||t;n=this.formats[i](e,s,{...o,...r,...a})}catch(e){this.logger.warn(e)}return n}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class br extends nr{constructor(e,n,t,r={}){super(),this.backend=e,this.store=n,this.services=t,this.languageUtils=t.languageUtils,this.options=r,this.logger=er.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(t,r.backend,r)}queueLoad(e,n,t,r){const i={},o={},a={},s={};return e.forEach(e=>{let r=!0;n.forEach(n=>{const a=`${e}|${n}`;!t.reload&&this.store.hasResourceBundle(e,n)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[n]&&(s[n]=!0)))}),r||(a[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,n,t){const r=e.split("|"),i=r[0],o=r[1];n&&this.emit("failedLoading",i,o,n),!n&&t&&this.store.addResourceBundle(i,o,t,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&t&&(this.state[e]=0);const a={};this.queue.forEach(t=>{((e,n,t)=>{const{obj:r,k:i}=Bt(e,n,Object);r[i]=r[i]||[],r[i].push(t)})(t.loaded,[i],o),((e,n)=>{void 0!==e.pending[n]&&(delete e.pending[n],e.pendingCount--)})(t,e),n&&t.errors.push(n),0!==t.pendingCount||t.done||(Object.keys(t.loaded).forEach(e=>{a[e]||(a[e]={});const n=t.loaded[e];n.length&&n.forEach(n=>{void 0===a[e][n]&&(a[e][n]=!0)})}),t.done=!0,t.errors.length?t.callback(t.errors):t.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,n,t,r=0,i=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:n,fcName:t,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,n,t,r+1,2*i,o)},i):o(a,s)},s=this.backend[t].bind(this.backend);if(2!==s.length)return s(e,n,a);try{const t=s(e,n);t&&"function"==typeof t.then?t.then(e=>a(null,e)).catch(a):a(null,t)}catch(e){a(e)}}prepareLoading(e,n,t={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Rt(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Rt(n)&&(n=[n]);const i=this.queueLoad(e,n,t,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,n,t){this.prepareLoading(e,n,{},t)}reload(e,n,t){this.prepareLoading(e,n,{reload:!0},t)}loadOne(e,n=""){const t=e.split("|"),r=t[0],i=t[1];this.read(r,i,"read",void 0,void 0,(t,o)=>{t&&this.logger.warn(`${n}loading namespace ${i} for language ${r} failed`,t),!t&&o&&this.logger.log(`${n}loaded namespace ${i} for language ${r}`,o),this.loaded(e,t,o)})}saveMissing(e,n,t,r,i,o={},a=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(n)){if(null!=t&&""!==t){if(this.backend?.create){const s={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(e,n,t,r,s):l(e,n,t,r),i&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else l(e,n,t,r,a,s)}e&&e[0]&&this.store.addResource(e[0],n,t,r)}}else this.logger.warn(`did not save key "${t}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const yr=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let n={};if("object"==typeof e[1]&&(n=e[1]),Rt(e[1])&&(n.defaultValue=e[1]),Rt(e[2])&&(n.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const t=e[3]||e[2];Object.keys(t).forEach(e=>{n[e]=t[e]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Cr=e=>(Rt(e.ns)&&(e.ns=[e.ns]),Rt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Rt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),wr=()=>{};class _r extends nr{constructor(e={},n){var t;if(super(),this.options=Cr(e),this.services={},this.logger=er,this.modules={external:[]},t=this,Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(e=>{"function"==typeof t[e]&&(t[e]=t[e].bind(t))}),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,"function"==typeof e&&(n=e,e={}),null==e.defaultNS&&e.ns&&(Rt(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const t=yr();this.options={...t,...this.options,...Cr(e)},this.options.interpolation={...t.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=t.overloadTranslationOptionHandler),!0===this.options.debug&&"undefined"!=typeof console&&console.warn("i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com");const r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?er.init(r(this.modules.logger),this.options):er.init(null,this.options),e=this.modules.formatter?this.modules.formatter:xr;const n=new cr(this.options);this.store=new tr(this.options.resources,this.options);const i=this.services;i.logger=er,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new pr(n,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==t.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==t.interpolation.format||(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new gr(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new br(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(e,...n)=>{this.emit(e,...n)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new lr(this.services,this.options),this.translator.on("*",(e,...n)=>{this.emit(e,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=wr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...n)=>this.store[e](...n)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...n)=>(this.store[e](...n),this)});const i=Dt(),o=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),n(e,t)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?o():setTimeout(o,0),i}loadResources(e,n=wr){let t=n;const r=Rt(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===r?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],n=n=>{if(!n)return;if("cimode"===n)return;this.services.languageUtils.toResolveHierarchy(n).forEach(n=>{"cimode"!==n&&e.indexOf(n)<0&&e.push(n)})};if(r)n(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>n(e))}this.options.preload?.forEach?.(e=>n(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,n,t){const r=Dt();return"function"==typeof e&&(t=e,e=void 0),"function"==typeof n&&(t=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),t||(t=wr),this.services.backendConnector.reload(e,n,e=>{r.resolve(),t(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&rr.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const n=this.languages[e];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const t=Dt();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,o)=>{o?this.isLanguageChangingTo===e&&(r(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,t.resolve((...e)=>this.t(...e)),n&&n(i,(...e)=>this.t(...e))},o=n=>{e||n||!this.services.languageDetector||(n=[]);const t=Rt(n)?n:n&&n[0],o=this.store.hasLanguageSomeTranslations(t)?t:this.services.languageUtils.getBestMatchFromCodes(Rt(n)?[n]:n);o&&(this.language||r(o),this.translator.language||this.translator.changeLanguage(o),this.services.languageDetector?.cacheUserLanguage?.(o)),this.loadResources(o,e=>{i(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),t}getFixedT(e,n,t){const r=(e,n,...i)=>{let o;o="object"!=typeof n?this.options.overloadTranslationOptionHandler([e,n].concat(i)):{...n},o.lng=o.lng||r.lng,o.lngs=o.lngs||r.lngs,o.ns=o.ns||r.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||t||r.keyPrefix);const a=this.options.keySeparator||".";let s;return o.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=or(e,{...this.options,...n})),`${o.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=or(e,{...this.options,...n})),s=o.keyPrefix?`${o.keyPrefix}${a}${e}`:e),this.t(s,o)};return Rt(e)?r.lng=e:r.lngs=e,r.ns=n,r.keyPrefix=t,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const t=n.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===t.toLowerCase())return!0;const o=(e,n)=>{const t=this.services.backendConnector.state[`${e}|${n}`];return-1===t||0===t||2===t};if(n.precheck){const e=n.precheck(this,o);if(void 0!==e)return e}return!!this.hasResourceBundle(t,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(t,e)||r&&!o(i,e)))}loadNamespaces(e,n){const t=Dt();return this.options.ns?(Rt(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{t.resolve(),n&&n(e)}),t):(n&&n(),Promise.resolve())}loadLanguages(e,n){const t=Dt();Rt(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{t.resolve(),n&&n(e)}),t):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const n=new Intl.Locale(e);if(n&&n.getTextInfo){const e=n.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const n=this.services?.languageUtils||new cr(yr());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const t=new _r(e,n);return t.createInstance=_r.createInstance,t}cloneInstance(e={},n=wr){const t=e.forkResourceStore;t&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new _r(r);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));if(["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},t){const e=Object.keys(this.store.data).reduce((e,n)=>(e[n]={...this.store.data[n]},e[n]=Object.keys(e[n]).reduce((t,r)=>(t[r]={...e[n][r]},t),e[n]),e),{});i.store=new tr(e,r),i.services.resourceStore=i.store}if(e.interpolation){const n={...yr().interpolation,...this.options.interpolation,...e.interpolation},t={...r,interpolation:n};i.services.interpolator=new gr(t)}return i.translator=new lr(i.services,r),i.translator.on("*",(e,...n)=>{i.emit(e,...n)}),i.init(r,n),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Er=_r.createInstance(),Nr={},Sr=(e,n,t,r)=>{Ar(t)&&Nr[t]||(Ar(t)&&(Nr[t]=new Date),((e,n,t,r)=>{const i=[t,{code:n,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);Ar(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)})(e,n,t,r))},Tr=(e,n)=>()=>{if(e.isInitialized)n();else{const t=()=>{setTimeout(()=>{e.off("initialized",t)},0),n()};e.on("initialized",t)}},Or=(e,n,t)=>{e.loadNamespaces(n,Tr(e,t))},Lr=(e,n,t,r)=>{if(Ar(t)&&(t=[t]),e.options.preload&&e.options.preload.indexOf(n)>-1)return Or(e,t,r);t.forEach(n=>{e.options.ns.indexOf(n)<0&&e.options.ns.push(n)}),e.loadLanguages(n,Tr(e,r))},Ar=e=>"string"==typeof e,kr=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Mr={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Ir=e=>Mr[e];let jr={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(kr,Ir),transDefaultProps:void 0};let Rr;const Dr={type:"3rdParty",init(e){((e={})=>{jr={...jr,...e}})(e.options.react),(e=>{Rr=e})(e)}},Hr=n.createContext();class Pr{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var zr,Vr={exports:{}},Br={};var Ur,Fr={};"production"===process.env.NODE_ENV?Vr.exports=function(){if(zr)return Br;zr=1;var e=u.default,n="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},t=e.useState,r=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function a(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var s=n(),l=t({inst:{value:s,getSnapshot:n}}),c=l[0].inst,d=l[1];return i(function(){c.value=s,c.getSnapshot=n,a(c)&&d({inst:c})},[e,s,n]),r(function(){return a(c)&&d({inst:c}),e(function(){a(c)&&d({inst:c})})},[e]),o(s),s};return Br.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,Br}():Vr.exports=(Ur||(Ur=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=u.default,t="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},r=n.useState,i=n.useEffect,o=n.useLayoutEffect,a=n.useDebugValue,s=!1,l=!1,c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(c,d){s||void 0===n.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var u=d();if(!l){var p=d();t(u,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var f=(p=r({inst:{value:u,getSnapshot:d}}))[0].inst,h=p[1];return o(function(){f.value=u,f.getSnapshot=d,e(f)&&h({inst:f})},[c,u,d]),i(function(){return e(f)&&h({inst:f}),c(function(){e(f)&&h({inst:f})})},[c]),a(u),u};Fr.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Fr);var Yr=Vr.exports;const $r={t:(e,n)=>{return Ar(n)?n:"object"==typeof(t=n)&&null!==t&&Ar(n.defaultValue)?n.defaultValue:Array.isArray(e)?e[e.length-1]:e;var t},ready:!1},Gr=()=>()=>{},Wr=(e,t={})=>{const{i18n:r}=t,{i18n:i,defaultNS:o}=n.useContext(Hr)||{},a=r||i||Rr;a&&!a.reportNamespaces&&(a.reportNamespaces=new Pr),a||Sr(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const s=n.useMemo(()=>({...jr,...a?.options?.react,...t}),[a,t]),{useSuspense:l,keyPrefix:c}=s,d=e||o||a?.options?.defaultNS,u=Ar(d)?[d]:d||["translation"],p=n.useMemo(()=>u,u);a?.reportNamespaces?.addUsedNamespaces?.(p);const f=n.useRef(0),h=n.useCallback(e=>{if(!a)return Gr;const{bindI18n:n,bindI18nStore:t}=s,r=()=>{f.current+=1,e()};return n&&a.on(n,r),t&&a.store.on(t,r),()=>{n&&n.split(" ").forEach(e=>a.off(e,r)),t&&t.split(" ").forEach(e=>a.store.off(e,r))}},[a,s]),g=n.useRef(),m=n.useCallback(()=>{if(!a)return $r;const e=!(!a.isInitialized&&!a.initializedStoreOnce)&&p.every(e=>((e,n,t={})=>n.languages&&n.languages.length?n.hasLoadedNamespace(e,{lng:t.lng,precheck:(n,r)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!r(n.isLanguageChangingTo,e))return!1}}):(Sr(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0))(e,a,s)),n=t.lng||a.language,r=f.current,i=g.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;const o={t:a.getFixedT(n,"fallback"===s.nsMode?p:p[0],c),ready:e,lng:n,keyPrefix:c,revision:r};return g.current=o,o},[a,p,c,s,t.lng]),[v,x]=n.useState(0),{t:b,ready:y}=Yr.useSyncExternalStore(h,m,m);n.useEffect(()=>{if(a&&!y&&!l){const e=()=>x(e=>e+1);t.lng?Lr(a,t.lng,p,e):Or(a,p,e)}},[a,t.lng,p,y,l,v]);const C=a||{},w=n.useRef(null),_=n.useRef(),E=e=>{const n=Object.getOwnPropertyDescriptors(e);n.__original&&delete n.__original;const t=Object.create(Object.getPrototypeOf(e),n);if(!Object.prototype.hasOwnProperty.call(t,"__original"))try{Object.defineProperty(t,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return t},N=n.useMemo(()=>{const e=C,n=e?.language;let t=e;e&&(w.current&&w.current.__original===e?_.current!==n?(t=E(e),w.current=t,_.current=n):t=w.current:(t=E(e),w.current=t,_.current=n));const r=[b,t,y];return r.t=b,r.i18n=t,r.ready=y,r},[b,C,y,C.resolvedLanguage,C.language,C.languages]);if(a&&l&&!y)throw new Promise(e=>{const n=()=>e();t.lng?Lr(a,t.lng,p,n):Or(a,p,n)});return N};function Kr({i18n:e,defaultNS:t,children:r}){const i=n.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return n.createElement(Hr.Provider,{value:i},r)}var Zr={MODAL_TITLE:"标题",MODAL_OKTEXT:"确认",MODAL_CANCELTEXT:"取消",EMPTY_DESCRIPTION:"空状态组件,用于在数据为空时展示友好的提示信息。",SELECT_PLACEHOLDER:"请选择",INTRO:"简介",INSTALL:"安装",I18N:"国际化",BUTTON:"按钮",COLORPICKER:"颜色选择器",COPYTOCLIPBOARD:"剪贴板复制",DIVIDER:"分割线",EMPTY:"空状态",FLEX:"弹性布局",ICON:"icon",INPUT:"输入框",MARQUEE:"跑马灯",MESSAGE:"消息提示",NOTICE:"公告栏",NOTIFICATION:"通知",RADIO:"单选框",TABLE:"表格",TOP:"回到顶部",TYPOGRAPHY:"排版",VARIABLES:"自定义变量",API_REF:"API 参考",IDP_DESIGN:"ZjpCy Design",IDP_STUDIO:"IDP Studio",INTRO_DESCRIPTION:"ZjpCy Design 组件库介绍",INSTALL_DESCRIPTION:"如何安装和引用",I18N_DESCRIPTION:"组件库国际化支持",BUTTON_DESCRIPTION:"可定制的按钮组件,支持多种样式和尺寸。",COLORPICKER_DESCRIPTION:"用于选择颜色的组件,支持预设颜色、透明度调整和渐变色等功能。",COPYTOCLIPBOARD_DESCRIPTION:"用于将文本复制到剪贴板的组件,支持自定义样式和状态回调。",DIVIDER_DESCRIPTION:"用于页面内容分割的组件,支持横向和纵向两种方向,以及实线和虚线两种类型。",FLEX_DESCRIPTION:"通用的 flex 布局组件,提供灵活的布局方式。",ICON_DESCRIPTION:"图标组件",INPUT_DESCRIPTION:"输入框组件",MARQUEE_DESCRIPTION:"这是一个可定制的滚动公告栏组件,支持多种样式和配置选项。",MESSAGE_DESCRIPTION:"消息提示组件",NOTICE_DESCRIPTION:"公告栏组件",NOTIFICATION_DESCRIPTION:"通知组件",RADIO_DESCRIPTION:"单选框组件",SELECT_DESCRIPTION:"选择器组件",TABLE_DESCRIPTION:"表格组件",TOP_DESCRIPTION:"回到顶部组件",TYPOGRAPHY_DESCRIPTION:"排版组件,支持自定义宽度和行数限制,超过行数限制时显示省略号。",VARIABLES_DESCRIPTION:"自定义组件库主题颜色",API_REF_DESCRIPTION:"查看组件 API 文档",LANGUAGE_SWITCH:"语言切换",ENGLISH:"English",CHINESE:"中文",VERSION:"版本",BUTTON_COMPONENT:"Button 组件",BASIC_USAGE:"基本使用",SHOW_VARIANTS_SIZES:"展示不同变体和尺寸的按钮。",VARIANT_BUTTONS:"变体按钮",SIZE_BUTTONS:"尺寸按钮",DISABLED_STATE:"禁用状态",ICON_BUTTONS:"带图标按钮",CUSTOM_STYLE:"自定义样式",API_PARAMETERS:"API 参数",PARAM_NAME:"参数名",TYPE:"类型",DEFAULT_VALUE:"默认值",DESCRIPTION:"描述",CHILDREN:"children",CHILDREN_DESC:"按钮文本内容",VARIANT:"variant",VARIANT_DESC:"按钮变体样式",SIZE:"size",SIZE_DESC:"按钮尺寸",DISABLED:"disabled",DISABLED_DESC:"是否禁用按钮",ON_CLICK:"onClick",ON_CLICK_DESC:"点击事件回调",CLASS_NAME:"className",CLASS_NAME_DESC:"自定义 CSS 类名",STYLE:"style",STYLE_DESC:"自定义内联样式",ICON_DESC:"按钮前缀图标,支持字符串(内置图标名)或自定义图标节点",CODE_EXAMPLES:"代码示例",USAGE_IN_OTHER_PROJECTS:"在其他项目中引用",BASIC_USAGE_CODE:"基本用法",DIFFERENT_SIZES:"不同尺寸",DISABLED_BUTTON:"禁用状态",BUTTON_WITH_ICON:"带图标按钮",BUTTON_SEARCH:"搜索",BUTTON_USER:"用户",BUTTON_DELETE:"删除",BUTTON_CONFIRM:"确认",BUTTON_WARNING:"警告",CUSTOM_STYLE_CLICK:"自定义样式和点击事件",INSTALLATION:"安装",INSTALLATION_DESCRIPTION:"ZjpCy Design 组件库支持多种安装方式,您可以根据实际需求选择适合的安装方法。",LOCAL_FILE_INSTALLATION:"从本地文件安装",LOCAL_FILE_INSTALLATION_DESC:"如果您已经获取了 ZjpCy Design 组件库的本地文件,可以通过以下方式安装:",NPM_LOCAL_INSTALL:"使用 npm 从本地目录安装",NPM_LOCAL_INSTALL_DESC:"将本地组件库目录作为依赖安装到您的项目中:",YARN_LOCAL_INSTALL:"使用 yarn 从本地目录安装",PATH_TO_IDP_DESIGN:"/path/to/idp-design",PATH_TO_IDP_DESIGN_DESC:"是您本地 ZjpCy Design 组件库的绝对路径。",GIT_REPO_INSTALLATION:"从 Git 仓库安装",GIT_REPO_INSTALLATION_DESC:"您可以直接从 Git 仓库安装 ZjpCy Design 组件库,支持指定分支或标签:",LATEST_MAIN_BRANCH:"安装主分支最新版本",SPECIFIC_BRANCH:"安装指定分支",BRANCH_NAME:"branch-name",BRANCH_NAME_DESC:"替换为您想要安装的分支名称,例如",EXAMPLE_BRANCHES:"dev 或 feature/new-component。",SPECIFIC_TAG:"安装指定标签版本",V1_0_0:"v1.0.0",V1_0_0_DESC:"替换为您想要安装的具体版本标签。",UPDATING_DEPENDENCIES:"更新依赖",UPDATING_DEPENDENCIES_DESC:"当 ZjpCy Design 组件库有新版本发布时,您可以通过以下方式更新依赖:",UPDATING_INSTALLED_DEPENDENCIES:"更新本地安装的依赖",REINSTALLING_LOCAL_FILES:"重新安装本地文件依赖",USING_FORCE_PARAM:"使用 --force 参数强制重新安装,确保获取最新的本地文件。",UPDATING_GIT_DEPENDENCIES:"更新 Git 仓库依赖",UNINSTALL_REINSTALL:"或者先卸载再重新安装:",SEARCH:"搜索",USER:"用户",DELETE:"删除",CONFIRM:"确认",WARNING:"警告",REFERENCE_COMPONENT:"引用组件",COLORPICKER_COMPONENT:"ColorPicker 组件",DIVIDER_ORIENTATION:"分割线方向",DIVIDER_TYPE:"分割线类型",DIVIDER_COLOR:"分割线颜色",DIVIDER_COMPONENT:"Divider 组件",DIVIDER_SHOW_ORIENTATIONS_TYPES:"展示不同方向和类型的分割线。",HORIZONTAL_DIVIDER:"横向分割线",ABOVE_DEFAULT_HORIZONTAL:"上方是默认的横向分割线",BELOW_DEFAULT_HORIZONTAL:"下方是默认的横向分割线",VERTICAL_DIVIDER:"纵向分割线",LEFT_CONTENT:"左侧内容",RIGHT_CONTENT:"右侧内容",SOLID_DASHED:"实线与虚线",ABOVE_SOLID_DEFAULT:"上方是实线分割线(默认)",CONTENT_BETWEEN_DIVIDERS:"实线分割线和虚线分割线之间的内容",BELOW_DASHED:"下方是虚线分割线",CUSTOM_COLOR:"颜色自定义",DIVIDERS_DIFFERENT_COLORS:"不同颜色的分割线",COMBINED_USAGE:"组合用法",HORIZONTAL_DASHED_CUSTOM_COLOR:"横向虚线,自定义颜色",DIVIDERS_CUSTOM_STYLE:"带有自定义样式的分割线",DIVIDER_WITH_TEXT:"带文本的分割线效果",TEXT_CONTENT:"文本内容",COPY_URL_OR_TEXT_CONTENT:"需要复制的URL或文本内容",COPY_STATUS_CHANGE_CALLBACK:"复制状态变化回调",CUSTOM_CHILD_ELEMENT:"自定义子元素",COPY_OPERATION_PROMISE:"复制操作的Promise",COPY_SUCCESS:"复制成功!",COPY_FAILED:"复制失败!",COPYTOCLIPBOARD_COMPONENT:"CopyToClipboard 组件",DISPLAY_DIFFERENT_STYLES_COPY_BUTTONS:"展示不同样式的复制按钮。",TEXT_LINK_STYLE:"文本链接样式",COPY_LINK:"复制链接",BUTTON_STYLE:"按钮样式",CLICK_TO_COPY_CUSTOM_LINK:"点击复制自定义链接",STYLED_LINK:"带样式的链接",COPY_STYLED_LINK:"复制带样式的链接",USING_USECOPY_HOOK:"使用 useCopy 钩子",USE_USECOPY_TO_COPY_LINK:"使用 useCopy 复制链接",COMPONENT:"组件",HOOK:"钩子",SUCCESS:"成功",EMPTY_COMPONENT:"Empty 空状态",DEFAULT_EMPTY_STATE:"默认空状态",CUSTOM_DESCRIPTION:"自定义描述",CUSTOM_ICON:"自定义图标",CUSTOM_IMAGE:"自定义图片",WITH_ACTION_BUTTON:"带操作按钮",LARGE_SIZE:"大尺寸",MIDDLE_SIZE:"中尺寸",SMALL_SIZE:"小尺寸",NO_EXCEL_FILE:"暂无Excel文件",UPLOAD_FILE:"上传文件",VIEW_TEMPLATE:"查看模板",LOAD_DATA:"点击加载",TRANSPARENCY_ADJUSTMENT:"透明度调整",ENABLE_ALPHA_PROPERTY:"通过 alpha 属性启用透明度调整,支持 RGBA 颜色格式。",WITH_TRANSPARENCY:"带透明度",PRESET_COLORS:"预设颜色",SET_PRESET_COLORS:"通过 presetColors 属性设置常用的预设颜色,方便快速选择。",DISABLE_COLOR_PICKER:"通过 disabled 属性禁用颜色选择器,禁用后无法打开选择面板。",COLOR_SQUARE:"颜色方块",COLOR_TEXT:"颜色文字",COLOR_BUTTON:"颜色按钮",SELECT_COLOR:"选择颜色",CUSTOM_STYLE_PROPERTY:"通过 style 属性自定义颜色选择器的样式。",CUSTOM_BORDER_RADIUS:"自定义圆角",GRADIENT_SUPPORT:"渐变色支持",ENABLE_GRADIENT:"通过 gradient 属性启用渐变色支持,支持线性渐变颜色选择。",BASIC_GRADIENT:"基本渐变色",GRADIENT_COLOR:"渐变颜色",FEATURES:"特性说明",LIGHTWEIGHT:"轻量:仅 2.8KB gzipped(比 react-color 轻 13 倍)",TREE_SHAKING:"支持树摇:仅导入使用的部分",FAST:"快速:使用 hooks 和函数组件",TYPE_SAFE:"类型安全:严格的 TypeScript 支持",MOBILE_FRIENDLY:"移动端友好:支持触摸设备",ACCESSIBLE:"可访问性:遵循 WAI-ARIA 指南",NO_DEPENDENCIES:"无依赖:不依赖其他库",FLEX_COMPONENT:"Flex 组件",INTERACTIVE_EXAMPLE:"交互式示例",ADJUST_PROPERTIES:"通过下方的按钮和输入框,实时调整 flex 布局的各项属性。",ITEM_COUNT:"项目数量",ITEMS:"个项目",DIRECTION:"Direction (优先级高于Layout)",CURRENT_VALUE:"当前值",DEMONSTRATION_EFFECT:"演示效果",CURRENT_CONFIGURATION:"当前配置",MULTI_LEVEL_NESTING:"多层次嵌套示例",NESTING_DESCRIPTION:"展示 Flex 组件的多层次嵌套使用,实现复杂的布局结构。",TITLE_AREA:"标题区域",VERTICAL_LAYOUT:"垂直布局",CENTER_ALIGNMENT:"居中对齐",JUSTIFY_BETWEEN:"两端对齐",WRAP_LAYOUT:"换行布局",COMPLEX_USAGE:"复合使用",ACTION_AREA:"操作区域",FLEX_CHILDREN_DESC:"子组件内容",FLEX_LAYOUT_DESC:"快速设置布局方向,horizontal 为水平布局,column 为列布局",FLEX_DIRECTION_DESC:"flex-direction 属性,优先级高于 layout",FLEX_JUSTIFY_DESC:"justify-content 属性",FLEX_ALIGN_DESC:"align-items 属性",FLEX_WRAP_DESC:"flex-wrap 属性",FLEX_GAP_DESC:"gap 属性,支持数值(px)和字符串",CENTER_CONTENT:"居中内容",MARQUEE_COMPONENT:"Marquee 公告组件",DEFAULT_CONFIGURATION:"1. 默认配置",DEFAULT_CONFIG_DESC:"默认高度: 40px, 默认速度: 50, 默认渐变背景",DEFAULT_ANNOUNCEMENT:"这是一条默认配置的公告信息,从右向左滚动,播放完毕后会自动重复播放!",CUSTOM_HEIGHT:"支持自定义公告栏高度(默认为60px,范围30-100px)",HEIGHT_60PX:"高度: 60px",CUSTOM_HEIGHT_ANNOUNCEMENT:"这是一条自定义高度为60px的公告信息!",CUSTOM_SPEED:"3. 自定义速度",SLOW_SPEED:"慢速: 20",SLOW_SPEED_ANNOUNCEMENT:"这是一条慢速滚动的公告信息,速度为20!",FAST_SPEED:"快速: 100",FAST_SPEED_ANNOUNCEMENT:"这是一条快速滚动的公告信息,速度为100!",CUSTOM_BACKGROUND:"4. 自定义背景色",CUSTOM_GRADIENT_BACKGROUND:"自定义渐变背景",GRADIENT_BACKGROUND_ANNOUNCEMENT_1:"这是一条自定义渐变背景的公告信息",GRADIENT_BACKGROUND_ANNOUNCEMENT_2:"这是第二条自定义渐变背景的公告信息",COMPREHENSIVE_CUSTOM:"5. 综合自定义",COMPREHENSIVE_CUSTOM_DESC:"高度: 50px, 速度: 75, 自定义背景",COMPREHENSIVE_ANNOUNCEMENT:"这是一条综合自定义配置的公告信息,高度50px,速度75,自定义渐变背景!",FIXED_TOP:"6. 固定到顶部",FIXED_TOP_DESC:"fixed=true,公告栏会浮动固定在页面顶部",FIXED_TOP_ANNOUNCEMENT:"这是一条固定顶部的公告信息,滚动页面时保持可见!",CLOSE_CALLBACK:"7. 关闭回调",CLOSE_CALLBACK_DESC:"点击关闭按钮触发 onClose 回调",CLOSE_CALLBACK_ANNOUNCEMENT:"这是一条带关闭回调的公告信息,点击右侧X关闭!",FULL_FUNCTIONALITY:"8. 完整功能示例",FULL_FUNCTIONALITY_DESC:"固定顶部 + 自定义高度 + 自定义速度 + 关闭回调",FULL_FUNCTIONALITY_ANNOUNCEMENT:"这是一条功能完整的公告信息,固定顶部、自定义高度和速度、支持关闭!",ANNOUNCEMENT_TEXT:"公告文本,可以是字符串或字符串数组",ANNOUNCEMENT_HEIGHT:"公告栏高度,单位为像素",SCROLL_SPEED:"滚动速度,数值越大滚动越快",ANNOUNCEMENT_BACKGROUND:"公告栏背景色,可以是纯色或渐变",DISPLAY_ANNOUNCEMENT:"是否显示公告栏",FIXED_POSITION:"是否固定在页面顶部",FIXED_DISTANCE:"固定时距离顶部的距离,单位为像素",DISPLAY_ICON:"是否显示公告图标",CLOSE_BUTTON_CALLBACK:"关闭按钮点击时的回调函数",COLORPICKER_CURRENT_COLOR:"当前颜色",COLORPICKER_CURRENT_GRADIENT:"当前渐变色",COLORPICKER_COLOR_VALUE:"当前颜色值(支持 HEX 格式)",COLORPICKER_CONFIRM_CHANGE:"确认选择颜色后的回调函数",COLORPICKER_REAL_TIME_CHANGE:"实时颜色变化时的回调函数",COLORPICKER_PRESET_COLORS:"预设颜色数组",COLORPICKER_GRADIENT_SUPPORT:"是否支持渐变色,启用后可选择线性渐变颜色",COLORPICKER_CUSTOM_TRIGGER:"自定义触发区域,支持任意 React 节点",EMPTY_CUSTOM_ICON:"自定义图标",EMPTY_CUSTOM_IMAGE_PATH:"自定义图片路径",EMPTY_DATA:"暂无数据",EMPTY_STATUS_DESCRIPTION:"空状态描述信息",EMPTY_CUSTOM_ACTION_AREA:"自定义操作区域",EMPTY_SIZE:"空状态尺寸",EMPTY_CUSTOM_STYLE:"自定义样式",EMPTY_CUSTOM_CLASS_NAME:"自定义CSS类名",NOTICE_COMPONENT_DESC:"这是一个滚动通知栏组件,使用 react-fast-marquee 实现无缝滚动效果。",NOTICE_HIDDEN:"通知已隐藏",HIDE_NOTICE:"隐藏通知",SHOW_NOTICE:"显示通知",CUSTOM_CONFIGURATION:"自定义配置",NOTICE_TEXT:"通知文本",ENTER_NOTICE_TEXT:"输入通知文本",NOTICE_BAR_HEIGHT:"公告栏高度",SHOW_CLOSE_BUTTON:"显示关闭按钮",FLOAT_TO_TOP:"悬浮到顶部",SEAMLESS_SCROLL:"使用 Marquee 组件实现无缝滚动效果",CONFIGURABLE_SPEED:"滚动速度可配置(默认为50,范围10-100)",CUSTOM_NOTICE_TEXT:"支持自定义通知文本内容",OPTIONAL_CLOSE_BUTTON:"可选择显示关闭按钮,宽度30px,点击可隐藏公告栏",FLOATING_TOP_FUNCTION:"支持悬浮到顶部功能,固定显示在页面顶部",TYPESCRIPT_SUPPORT:"组件支持TypeScript类型定义",USAGE_SCENARIOS:"使用场景",WEBSITE_ANNOUNCEMENT:"网站公告",SYSTEM_NOTIFICATION:"系统通知",PROMOTION_INFO:"促销活动信息",IMPORTANT_REMINDER:"重要消息提醒",SPEED_DESC:"滚动速度,数值越大滚动越快",HEIGHT_DESC:"公告栏高度,单位为像素",STYLES_DESC:"自定义通知栏样式",ICON_NOTICE_DESC:"通知文本前的图标",SHOW_CLOSE_BUTTON_DESC:"是否显示关闭按钮",CLOSE_STYLE_DESC:"自定义关闭按钮样式",FLOATING_TOP_DESC:"是否固定悬浮在页面顶部",PAUSE_ON_HOVER_DESC:"鼠标悬停时是否暂停滚动",MESSAGE_COMPONENT_DESC:"轻量级消息提示框,用于显示成功、警告和错误信息。",CLICK_BUTTONS_TO_SHOW_MESSAGES:"点击按钮显示不同类型的消息提示。",SHOW_SUCCESS_MESSAGE:"显示成功消息",SHOW_WARNING_MESSAGE:"显示警告消息",SHOW_ERROR_MESSAGE:"显示错误消息",OPERATION_SUCCESS:"操作成功!",WARNING_CHECK_INPUT:"警告:请检查输入!",OPERATION_FAILED_RETRY:"操作失败,请重试!",MESSAGE_TYPE:"消息类型",MESSAGE_CONTENT:"消息内容",MESSAGE_DURATION:"消息自动关闭时长(毫秒)",MESSAGE_CLOSE_CALLBACK:"消息关闭回调",MODAL_COMPONENT_DESC:"模态对话框组件,用于显示重要信息或需要用户确认的操作。",CLICK_BUTTON_OPEN_BASIC_MODAL:"点击按钮打开基本弹窗。",OPEN_BASIC_MODAL:"打开基本弹窗",BASIC_MODAL:"基本弹窗",MODAL_CONTENT_AREA:"这是弹窗的内容区域,可以放置任意内容。",MODAL_CENTERED:"弹窗会上下左右居中显示。",CUSTOM_SIZE:"自定义尺寸",CAN_CUSTOMIZE_MODAL_WIDTH_HEIGHT:"可以自定义弹窗的宽度和高度。",SMALL_SIZE_MODAL:"小尺寸弹窗",LARGE_SIZE_MODAL:"大尺寸弹窗",SMALL_SIZE_MODAL_CONTENT:"这是小尺寸弹窗,宽度为 400px。",LARGE_SIZE_MODAL_CONTENT:"这是大尺寸弹窗,宽度为 800px,高度为 500px。",CAN_PLACE_MORE_CONTENT:"可以放置更多内容。",ASYNC_CONFIRMATION:"异步确认",CLICK_CONFIRM_TO_PERFORM_ASYNC_OPERATION:"点击确认按钮后可以进行异步操作,完成后关闭弹窗。",ASYNC_CONFIRMATION_MODAL:"异步确认弹窗",AFTER_CLICK_CONFIRM_BUTTON:"点击确认按钮后,会模拟 1 秒的异步操作。",MODAL_WILL_AUTOMATICALLY_CLOSE_AFTER_OPERATION_COMPLETE:"操作完成后弹窗会自动关闭。",CONTENT_HEIGHT_AUTO_ADJUSTMENT:"内容高度自适应",WHEN_HEIGHT_NOT_SET_CONTENT_AREA_ADAPTS:"当未设置height时,内容区域高度自适应;当设置height时,内容区域高度自动计算。",AUTO_ADJUST_HEIGHT:"自适应高度",CONTENT_SCROLL_EXAMPLE:"内容滚动示例",AUTO_ADJUST_HEIGHT_MODAL:"自适应高度弹窗",THIS_IS_A_MODAL_WITHOUT_HEIGHT_SET:"这是一个未设置height的弹窗,内容区域高度会根据内容自动调整。",YOU_CAN_ADD_MORE_CONTENT_TO_TEST_ADAPTIVE_EFFECT:"你可以添加更多内容来测试自适应效果。",CONTENT_SCROLL_MODAL:"内容滚动弹窗",LONG_CONTENT_TEST:"长内容测试",THIS_IS_A_MODAL_WITH_FIXED_HEIGHT:"这是一个设置了固定高度的弹窗,内容区域高度会自动计算。",WHEN_CONTENT_EXCEEDS_CALCULATED_HEIGHT:"当内容超过计算高度时,会自动显示滚动条。",ANIMATION_DIRECTION_DEMONSTRATION:"动画方向演示",SUPPORT_FOUR_ANIMATION_DIRECTIONS:"支持四种动画方向,打开和关闭将使用相同的方向设置。",CENTER_ANIMATION:"中心动画",TOP_RIGHT_ANIMATION:"右上角动画",BOTTOM_RIGHT_ANIMATION:"右下角动画",NORMAL_ANIMATION:"正常动画",OPEN_FROM_CENTER_POINT_ENLARGE:"打开:从中心点放大",CLOSE_FROM_CENTER_POINT_SHRINK:"关闭:从中心点缩小消失",OPEN_FROM_TOP_RIGHT_MOVE_AND_ENLARGE:"打开:从右上角移动并放大",CLOSE_TO_TOP_RIGHT_MOVE_AND_SHRINK:"关闭:向右上角移动并缩小消失",OPEN_FROM_BOTTOM_RIGHT_MOVE_AND_ENLARGE:"打开:从右下角移动并放大",CLOSE_TO_BOTTOM_RIGHT_MOVE_AND_SHRINK:"关闭:向右下角移动并缩小消失",OPEN_SLIGHTLY_ENLARGE_AND_FADE_IN:"打开:轻微放大并淡入",CLOSE_SLIGHTLY_SHRINK_AND_FADE_OUT:"关闭:轻微缩小并淡出",CUSTOM_TOP_POSITION:"自定义顶部位置",THROUGH_TOP_PARAM_CUSTOMIZE_MODAL_DISTANCE_FROM_TOP:"通过 top 参数可以自定义弹窗距离顶部的位置,当同时设置 direction 时,direction 会强制使用默认值 normal。",USE_TOP_AND_DIRECTION_SIMULTANEOUSLY:"top 与 direction 同时使用",THIS_MODAL_IS_100PX_FROM_TOP:"此弹窗距离顶部 100px",USE_TOP_PARAM_TO_CUSTOMIZE_MODAL_VERTICAL_POSITION:"使用 top 参数可以自定义弹窗的垂直位置",THIS_MODAL_IS_200PX_FROM_TOP:"此弹窗距离顶部 200px",ALTHOUGH_DIRECTION_TOP_RIGHT_SET_BUT_DUE_TO_TOP_PARAM:'虽然设置了 direction="top-right",但由于同时设置了 top 参数,direction 被强制为 normal',CUSTOM_FOOTER:"自定义 Footer",CAN_CUSTOMIZE_BOTTOM_BUTTONS_THROUGH_FOOTER_PARAM:"可以通过 footer 参数自定义底部按钮,footer 为 null 时显示默认按钮,提供值时显示自定义按钮。",CUSTOM_FOOTER_MODAL:"自定义 Footer 弹窗",CANCEL:"取消",SAVE:"保存",THIS_IS_A_MODAL_WITH_CUSTOM_FOOTER:"这是一个自定义 Footer 的弹窗,底部显示了三个按钮:取消、保存和删除。",YOU_CAN_CUSTOMIZE_FOOTER_CONTENT_AND_STYLE:"您可以根据需要自定义 footer 的内容和样式。",CUSTOM_MOUNT_CONTAINER:"自定义挂载容器",CAN_SPECIFY_MODAL_MOUNT_HTML_NODE_THROUGH_GET_CONTAINER_PARAM:"可以通过 getContainer 参数指定 Modal 挂载的 HTML 节点,false 为挂载在当前 DOM。",MOUNT_IN_CURRENT_DOM:"挂载在当前 DOM",MOUNT_IN_CUSTOM_CONTAINER:"挂载在自定义容器",THIS_IS_A_CUSTOM_MOUNT_CONTAINER:"这是一个自定义的挂载容器",CLICK_MOUNT_IN_CUSTOM_CONTAINER_BUTTON:'点击"挂载在自定义容器"按钮,Modal 将挂载在此处',THIS_MODAL_IS_MOUNTED_IN_CURRENT_DOM:"这个 Modal 被挂载在当前 DOM 中,而不是 document.body。",CAN_ACHIEVE_THIS_EFFECT_THROUGH_GET_CONTAINER_FALSE:"可以通过 getContainer={false} 实现此效果。",THIS_MODAL_IS_MOUNTED_IN_CUSTOM_CONTAINER:"这个 Modal 被挂载在页面中的自定义容器里。",CAN_SPECIFY_MOUNTED_HTML_NODE_THROUGH_GET_CONTAINER_PROPERTY:"可以通过 getContainer 属性指定挂载的 HTML 节点。",CUSTOM_MASK_BACKGROUND_COLOR:"自定义遮罩背景色",CAN_CUSTOMIZE_MASK_BACKGROUND_COLOR_AND_OTHER_STYLES:"可以通过 maskStyle 属性自定义遮罩层的背景色和其他样式。",THIS_MODAL_MASK_USES_CUSTOM_BACKGROUND_COLOR:"这个 Modal 的遮罩层使用了自定义的背景色(半透明的红色)。",CAN_SET_VARIOUS_STYLES_OF_MASK_THROUGH_MASK_STYLE_PROPERTY:"可以通过 maskStyle 属性设置遮罩层的各种样式,如背景色、透明度等。",CUSTOM_ZINDEX:"自定义zIndex",CAN_SET_MASK_LAYER_LEVEL_THROUGH_ZINDEX_PROPERTY:"可以通过zIndex属性设置遮罩层的层级,默认值为1000。在嵌套Modal的情况下,需要设置不同的zIndex值来确保正确的显示层级。",OPEN_FIRST_MODAL:"打开第一个Modal",FIRST_MODAL_ZINDEX_1000:"第一个Modal (zIndex: 1000)",CLOSE:"关闭",OPEN_SECOND_MODAL:"打开第二个Modal",THIS_IS_THE_FIRST_MODAL_USING_DEFAULT_ZINDEX_1000:"这是第一个Modal,使用默认的zIndex值(1000)。",CLICK_OPEN_SECOND_MODAL_BUTTON_TO_POP_UP_SECOND_MODAL:'点击"打开第二个Modal"按钮,会弹出第二个Modal。',SECOND_MODAL_ZINDEX_1010:"第二个Modal (zIndex: 1010)",THIS_IS_THE_SECOND_MODAL_USING_HIGHER_ZINDEX_1010:"这是第二个Modal,使用了更高的zIndex值(1010)。",DUE_TO_HIGHER_ZINDEX_IT_WILL_DISPLAY_ABOVE_FIRST_MODAL:"由于设置了更高的zIndex,它会显示在第一个Modal的上方。",MODAL_VISIBLE_DESC:"控制弹窗显示/隐藏(必填)",MODAL_TITLE_DESC:"弹窗标题",MODAL_WIDTH_DESC:"弹窗宽度",MODAL_HEIGHT_DESC:"弹窗高度(可选,不设置则自适应)",MODAL_HEADER_HEIGHT_DESC:"顶部区域高度",MODAL_FOOTER_HEIGHT_DESC:"底部区域高度",MODAL_CONFIRM_LOADING_DESC:"确认按钮是否显示加载状态",MODAL_DIRECTION_DESC:"打开和关闭的动画方向",MODAL_TOP_DESC:"弹窗距离顶部的距离,设置后direction会强制使用normal",MODAL_FOOTER_DESC:"底部内容,为 null 时显示默认按钮,提供值时显示自定义内容",MODAL_ON_CANCEL_DESC:"取消按钮点击回调",MODAL_ON_OK_DESC:"确认按钮点击回调",MODAL_CHILDREN_DESC:"弹窗内容",MODAL_GET_CONTAINER_DESC:"指定 Modal 挂载的 HTML 节点,false 为挂载在当前 DOM",MODAL_OK_TEXT_DESC:"确认按钮文本",MODAL_CANCEL_TEXT_DESC:"取消按钮文本",MODAL_MASK_STYLE_DESC:"自定义遮罩层样式",MODAL_MASK_CLASS_NAME_DESC:"自定义遮罩层类名",MODAL_Z_INDEX_DESC:"遮罩层的z-index值",TYPOGRAPHY_COMPONENT:"Typography 组件",SHOW_BASIC_USAGE_TYPOGRAPHY:"展示Typography组件的基本使用方式。",DEFAULT_DISPLAY_NO_ROW_LIMIT:"默认显示(不限制行数)",LIMIT_1_ROW:"限制1行",LIMIT_2_ROWS:"限制2行",LIMIT_3_ROWS:"限制3行",DIFFERENT_WIDTHS:"不同宽度",WIDTH_200PX_LIMIT_1_ROW:"宽度200px,限制1行",WIDTH_300PX_LIMIT_2_ROWS:"宽度300px,限制2行",WIDTH_500PX_LIMIT_3_ROWS:"宽度500px,限制3行",MIXED_TEXT_WRAPPING:"中英文混合文本(测试换行问题)",MIXED_TEXT_CONTENT:"这是一段包含English英文的测试文本,用于测试中英文混合时的换行问题。当文本内容超过容器宽度时,英文应该紧跟在中文后面,而不是单独换行显示。",MIXED_TEXT_LIMIT_2_ROWS:"中英文混合文本(限制2行)",TYPOGRAPHY_LONG_TEXT:"这是一段很长的测试文本,用于测试Typography组件的行数限制功能。当文本内容超过指定的行数限制时,应该在末尾显示省略号。这个组件支持自定义宽度和行数限制,可以满足不同的布局需求。",TYPOGRAPHY_CHILDREN_DESC:"文本内容",TYPOGRAPHY_WIDTH_DESC:"宽度限制",TYPOGRAPHY_ROWS_DESC:"行数限制",TYPOGRAPHY_STYLE_DESC:"自定义样式",TYPOGRAPHY_CLASSNAME_DESC:"自定义类名",TYPOGRAPHY_MIXED_TEXT:"这是一段包含English英文的测试文本,用于测试中英文混合时的换行问题。当文本内容超过容器宽度时,英文应该紧跟在中文后面,而不是单独换行显示。",TYPOGRAPHY_MIXED_TEXT_2:"这是一段包含English英文的测试文本,用于测试中英文混合时的换行问题。当文本内容超过容器宽度时,英文应该紧跟在中文后面,而不是单独换行显示。",TYPOGRAPHY_DEFAULT_DISPLAY:"默认显示(不限制行数)",TYPOGRAPHY_LIMIT_1_ROW:"限制1行",TYPOGRAPHY_LIMIT_2_ROWS:"限制2行",TYPOGRAPHY_LIMIT_3_ROWS:"限制3行",TYPOGRAPHY_DIFFERENT_WIDTHS:"不同宽度",TYPOGRAPHY_MIXED_TEXT_TEST:"中英文混合文本(测试换行问题)",TYPOGRAPHY_MIXED_TEXT_TEST_2:"中英文混合文本(限制2行)",TYPOGRAPHY_BASIC_USAGE:"基本使用",TYPOGRAPHY_API_PARAMETERS:"API 参数",TYPOGRAPHY_CODE_EXAMPLE:"代码示例",TYPOGRAPHY_COMPONENT_DESCRIPTION:"排版组件,支持自定义宽度和行数限制,超过行数限制时显示省略号。",TYPOGRAPHY_BASIC_USAGE_DESCRIPTION:"展示Typography组件的基本使用方式。",TYPOGRAPHY_WIDTH_200PX:"宽度200px,限制1行",TYPOGRAPHY_WIDTH_300PX:"宽度300px,限制2行",TYPOGRAPHY_WIDTH_500PX:"宽度500px,限制3行"},Xr={MODAL_TITLE:"Title",MODAL_OKTEXT:"OK",MODAL_CANCELTEXT:"Cancel",EMPTY_DESCRIPTION:"Empty state component used to display friendly prompt messages when there is no data.",SELECT_PLACEHOLDER:"Please select",INTRO:"Introduction",INSTALL:"Installation",I18N:"Internationalization",BUTTON:"Button",COLORPICKER:"Color Picker",COPYTOCLIPBOARD:"Copy to Clipboard",DIVIDER:"Divider",EMPTY:"Empty State",FLEX:"Flex",ICON:"icon",INPUT:"Input",MARQUEE:"Marquee",MESSAGE:"Message",NOTICE:"Notice",NOTIFICATION:"Notification",RADIO:"Radio",TABLE:"Table",TOP:"Back to Top",TYPOGRAPHY:"Typography",VARIABLES:"Variables",API_REF:"API Reference",IDP_DESIGN:"ZjpCy Design",IDP_STUDIO:"IDP Studio",INTRO_DESCRIPTION:"Introduction to ZjpCy Design Component Library",INSTALL_DESCRIPTION:"How to install and reference",I18N_DESCRIPTION:"Internationalization support for component library",BUTTON_DESCRIPTION:"Customizable button component with multiple styles and sizes.",COLORPICKER_DESCRIPTION:"Color selection component that supports preset colors, opacity adjustment, and gradient colors.",COPYTOCLIPBOARD_DESCRIPTION:"Component for copying text to clipboard, supporting custom styles and status callbacks.",DIVIDER_DESCRIPTION:"Component for dividing page content, supporting both horizontal and vertical orientations, and solid and dashed types.",FLEX_DESCRIPTION:"General flex layout component that provides flexible layout options.",ICON_DESCRIPTION:"Icon component",INPUT_DESCRIPTION:"Input component",MARQUEE_DESCRIPTION:"This is a customizable scrolling announcement component that supports various styles and configuration options.",MESSAGE_DESCRIPTION:"Message component",NOTICE_DESCRIPTION:"Notice component",NOTIFICATION_DESCRIPTION:"Notification component",RADIO_DESCRIPTION:"Radio component",SELECT_DESCRIPTION:"Select component",TABLE_DESCRIPTION:"Table component",TOP_DESCRIPTION:"Back to top component",TYPOGRAPHY_DESCRIPTION:"Typography component, supports custom width and row limits, displays ellipsis when exceeding row limits.",VARIABLES_DESCRIPTION:"Customize component library theme colors",API_REF_DESCRIPTION:"View component API documentation",LANGUAGE_SWITCH:"Language Switch",ENGLISH:"English",CHINESE:"中文",VERSION:"Version",BUTTON_COMPONENT:"Button Component",BASIC_USAGE:"Basic Usage",SHOW_VARIANTS_SIZES:"Display buttons with different variants and sizes.",VARIANT_BUTTONS:"Variant Buttons",SIZE_BUTTONS:"Size Buttons",DISABLED_STATE:"Disabled State",ICON_BUTTONS:"Buttons with Icons",CUSTOM_STYLE:"Custom Style",API_PARAMETERS:"API Parameters",PARAM_NAME:"Parameter Name",TYPE:"Type",DEFAULT_VALUE:"Default Value",DESCRIPTION:"Description",CHILDREN:"children",CHILDREN_DESC:"Button text content",VARIANT:"variant",VARIANT_DESC:"Button variant style",SIZE:"size",SIZE_DESC:"Button size",DISABLED:"disabled",DISABLED_DESC:"Whether the button is disabled",ON_CLICK:"onClick",ON_CLICK_DESC:"Click event callback",CLASS_NAME:"className",CLASS_NAME_DESC:"Custom CSS class name",STYLE:"style",STYLE_DESC:"Custom inline style",ICON_DESC:"Button prefix icon, supports string (built-in icon name) or custom icon node",CODE_EXAMPLES:"Code Examples",USAGE_IN_OTHER_PROJECTS:"Usage in Other Projects",BASIC_USAGE_CODE:"Basic Usage",DIFFERENT_SIZES:"Different Sizes",DISABLED_BUTTON:"Disabled Button",BUTTON_WITH_ICON:"Button with Icon",BUTTON_SEARCH:"Search",BUTTON_USER:"User",BUTTON_DELETE:"Delete",BUTTON_CONFIRM:"Confirm",BUTTON_WARNING:"Warning",CUSTOM_STYLE_CLICK:"Custom Style and Click Event",INSTALLATION:"Installation",INSTALLATION_DESCRIPTION:"ZjpCy Design component library supports multiple installation methods, you can choose the one that suits your needs.",LOCAL_FILE_INSTALLATION:"Installation from Local Files",LOCAL_FILE_INSTALLATION_DESC:"If you have obtained the local files of the ZjpCy Design component library, you can install it in the following ways:",NPM_LOCAL_INSTALL:"Install from local directory using npm",NPM_LOCAL_INSTALL_DESC:"Install the local component library directory as a dependency in your project:",YARN_LOCAL_INSTALL:"Install from local directory using yarn",PATH_TO_IDP_DESIGN:"/path/to/idp-design",PATH_TO_IDP_DESIGN_DESC:"is the absolute path to your local ZjpCy Design component library.",GIT_REPO_INSTALLATION:"Installation from Git Repository",GIT_REPO_INSTALLATION_DESC:"You can directly install the ZjpCy Design component library from the Git repository, supporting specified branches or tags:",LATEST_MAIN_BRANCH:"Install the latest version of the main branch",SPECIFIC_BRANCH:"Install a specified branch",BRANCH_NAME:"branch-name",BRANCH_NAME_DESC:"Replace with the branch name you want to install, for example",EXAMPLE_BRANCHES:"dev or feature/new-component.",SPECIFIC_TAG:"Install a specified tag version",V1_0_0:"v1.0.0",V1_0_0_DESC:"Replace with the specific version tag you want to install.",UPDATING_DEPENDENCIES:"Updating Dependencies",UPDATING_DEPENDENCIES_DESC:"When a new version of the ZjpCy Design component library is released, you can update the dependencies in the following ways:",UPDATING_INSTALLED_DEPENDENCIES:"Update locally installed dependencies",REINSTALLING_LOCAL_FILES:"Reinstall local file dependencies",USING_FORCE_PARAM:"Use the --force parameter to force reinstallation to ensure you get the latest local files.",UPDATING_GIT_DEPENDENCIES:"Update Git repository dependencies",UNINSTALL_REINSTALL:"Or uninstall and then reinstall:",SEARCH:"Search",USER:"User",DELETE:"Delete",CONFIRM:"Confirm",WARNING:"Warning",REFERENCE_COMPONENT:"Reference Component",COLORPICKER_COMPONENT:"ColorPicker Component",DIVIDER_ORIENTATION:"Divider orientation",DIVIDER_TYPE:"Divider type",DIVIDER_COLOR:"Divider color",DIVIDER_COMPONENT:"Divider Component",DIVIDER_SHOW_ORIENTATIONS_TYPES:"Display dividers with different orientations and types.",HORIZONTAL_DIVIDER:"Horizontal Divider",ABOVE_DEFAULT_HORIZONTAL:"Above is the default horizontal divider",BELOW_DEFAULT_HORIZONTAL:"Below is the default horizontal divider",VERTICAL_DIVIDER:"Vertical Divider",LEFT_CONTENT:"Left Content",RIGHT_CONTENT:"Right Content",SOLID_DASHED:"Solid and Dashed",ABOVE_SOLID_DEFAULT:"Above is the solid divider (default)",CONTENT_BETWEEN_DIVIDERS:"Content between solid and dashed dividers",BELOW_DASHED:"Below is the dashed divider",CUSTOM_COLOR:"Custom Color",DIVIDERS_DIFFERENT_COLORS:"Dividers with different colors",COMBINED_USAGE:"Combined Usage",HORIZONTAL_DASHED_CUSTOM_COLOR:"Horizontal dashed line with custom color",DIVIDERS_CUSTOM_STYLE:"Dividers with custom styles",DIVIDER_WITH_TEXT:"Divider with Text",TEXT_CONTENT:"Text content",COPY_URL_OR_TEXT_CONTENT:"URL or text content to copy",COPY_STATUS_CHANGE_CALLBACK:"Copy status change callback",CUSTOM_CHILD_ELEMENT:"Custom child element",COPY_OPERATION_PROMISE:"Copy operation Promise",COPY_SUCCESS:"Copy successful!",COPY_FAILED:"Copy failed!",COPYTOCLIPBOARD_COMPONENT:"CopyToClipboard Component",DISPLAY_DIFFERENT_STYLES_COPY_BUTTONS:"Display copy buttons with different styles.",TEXT_LINK_STYLE:"Text Link Style",COPY_LINK:"Copy Link",BUTTON_STYLE:"Button Style",CLICK_TO_COPY_CUSTOM_LINK:"Click to copy custom link",STYLED_LINK:"Styled Link",COPY_STYLED_LINK:"Copy styled link",USING_USECOPY_HOOK:"Using useCopy Hook",USE_USECOPY_TO_COPY_LINK:"Use useCopy to copy link",COMPONENT:"Component",HOOK:"Hook",SUCCESS:"success",EMPTY_COMPONENT:"Empty Empty State",DEFAULT_EMPTY_STATE:"Default Empty State",CUSTOM_DESCRIPTION:"Custom Description",CUSTOM_ICON:"Custom Icon",CUSTOM_IMAGE:"Custom Image",WITH_ACTION_BUTTON:"With Action Button",LARGE_SIZE:"Large Size",MIDDLE_SIZE:"Middle Size",SMALL_SIZE:"Small Size",NO_EXCEL_FILE:"No Excel Files",UPLOAD_FILE:"Upload File",VIEW_TEMPLATE:"View Template",LOAD_DATA:"Load Data",TRANSPARENCY_ADJUSTMENT:"Transparency Adjustment",ENABLE_ALPHA_PROPERTY:"Enable transparency adjustment through the alpha property, supporting RGBA color format.",WITH_TRANSPARENCY:"With Transparency",PRESET_COLORS:"Preset Colors",SET_PRESET_COLORS:"Set common preset colors through the presetColors property for quick selection.",DISABLE_COLOR_PICKER:"Disable the color picker through the disabled property; cannot open the selection panel when disabled.",COLOR_SQUARE:"Color Square",COLOR_TEXT:"Color Text",COLOR_BUTTON:"Color Button",SELECT_COLOR:"Select Color",CUSTOM_STYLE_PROPERTY:"Customize the style of the color picker through the style property.",CUSTOM_BORDER_RADIUS:"Custom Border Radius",GRADIENT_SUPPORT:"Gradient Support",ENABLE_GRADIENT:"Enable gradient color support through the gradient property, supporting linear gradient color selection.",BASIC_GRADIENT:"Basic Gradient",GRADIENT_COLOR:"Gradient Color",FEATURES:"Features",LIGHTWEIGHT:"Lightweight: Only 2.8KB gzipped (13 times lighter than react-color)",TREE_SHAKING:"Tree Shaking: Only import used parts",FAST:"Fast: Uses hooks and functional components",TYPE_SAFE:"Type Safe: Strict TypeScript support",MOBILE_FRIENDLY:"Mobile Friendly: Supports touch devices",ACCESSIBLE:"Accessible: Follows WAI-ARIA guidelines",NO_DEPENDENCIES:"No Dependencies: Does not depend on other libraries",FLEX_COMPONENT:"Flex Component",INTERACTIVE_EXAMPLE:"Interactive Example",ADJUST_PROPERTIES:"Adjust various properties of the flex layout in real-time through the buttons and input boxes below.",ITEM_COUNT:"Item Count",ITEMS:"items",DIRECTION:"Direction (higher priority than Layout)",CURRENT_VALUE:"Current Value",DEMONSTRATION_EFFECT:"Demonstration Effect",CURRENT_CONFIGURATION:"Current Configuration",MULTI_LEVEL_NESTING:"Multi-level Nesting Example",NESTING_DESCRIPTION:"Demonstrates the multi-level nesting usage of the Flex component to achieve complex layout structures.",TITLE_AREA:"Title Area",VERTICAL_LAYOUT:"Vertical Layout",CENTER_ALIGNMENT:"Center Alignment",JUSTIFY_BETWEEN:"Space Between",WRAP_LAYOUT:"Wrap Layout",COMPLEX_USAGE:"Complex Usage",ACTION_AREA:"Action Area",FLEX_CHILDREN_DESC:"Child component content",FLEX_LAYOUT_DESC:"Quickly set the layout direction, horizontal for horizontal layout, column for column layout",FLEX_DIRECTION_DESC:"flex-direction property, with higher priority than layout",FLEX_JUSTIFY_DESC:"justify-content property",FLEX_ALIGN_DESC:"align-items property",FLEX_WRAP_DESC:"flex-wrap property",FLEX_GAP_DESC:"gap property, supporting numeric values (px) and strings",CENTER_CONTENT:"Center Content",MARQUEE_COMPONENT:"Marquee Announcement Component",DEFAULT_CONFIGURATION:"1. Default Configuration",DEFAULT_CONFIG_DESC:"Default height: 40px, default speed: 50, default gradient background",DEFAULT_ANNOUNCEMENT:"This is a default configured announcement message that scrolls from right to left and automatically repeats after playback!",CUSTOM_HEIGHT:"Supports custom notice bar height (default: 60px, range: 30-100px)",HEIGHT_60PX:"Height: 60px",CUSTOM_HEIGHT_ANNOUNCEMENT:"This is an announcement message with a custom height of 60px!",CUSTOM_SPEED:"3. Custom Speed",SLOW_SPEED:"Slow Speed: 20",SLOW_SPEED_ANNOUNCEMENT:"This is a slow-scrolling announcement message with a speed of 20!",FAST_SPEED:"Fast Speed: 100",FAST_SPEED_ANNOUNCEMENT:"This is a fast-scrolling announcement message with a speed of 100!",CUSTOM_BACKGROUND:"4. Custom Background",CUSTOM_GRADIENT_BACKGROUND:"Custom Gradient Background",GRADIENT_BACKGROUND_ANNOUNCEMENT_1:"This is an announcement with a custom gradient background",GRADIENT_BACKGROUND_ANNOUNCEMENT_2:"This is the second announcement with a custom gradient background",COMPREHENSIVE_CUSTOM:"5. Comprehensive Customization",COMPREHENSIVE_CUSTOM_DESC:"Height: 50px, Speed: 75, Custom Background",COMPREHENSIVE_ANNOUNCEMENT:"This is a comprehensively customized announcement, height 50px, speed 75, custom gradient background!",FIXED_TOP:"6. Fixed to Top",FIXED_TOP_DESC:"fixed=true, the announcement bar will be fixed at the top of the page",FIXED_TOP_ANNOUNCEMENT:"This is an announcement fixed at the top, remaining visible while scrolling!",CLOSE_CALLBACK:"7. Close Callback",CLOSE_CALLBACK_DESC:"Click the close button to trigger onClose callback",CLOSE_CALLBACK_ANNOUNCEMENT:"This is an announcement with close callback, click the X on the right to close!",FULL_FUNCTIONALITY:"8. Full Functionality Example",FULL_FUNCTIONALITY_DESC:"Fixed Top + Custom Height + Custom Speed + Close Callback",FULL_FUNCTIONALITY_ANNOUNCEMENT:"This is a fully functional announcement with fixed top, custom height and speed, and close support!",ANNOUNCEMENT_TEXT:"Announcement text, can be a string or string array",ANNOUNCEMENT_HEIGHT:"Height of the announcement bar in pixels",SCROLL_SPEED:"Scrolling speed, larger values scroll faster",ANNOUNCEMENT_BACKGROUND:"Background color of the announcement bar, can be solid color or gradient",DISPLAY_ANNOUNCEMENT:"Whether to display the announcement bar",FIXED_POSITION:"Whether to fix at the top of the page",FIXED_DISTANCE:"Distance from the top when fixed, in pixels",DISPLAY_ICON:"Whether to display the announcement icon",CLOSE_BUTTON_CALLBACK:"Callback function when the close button is clicked",COLORPICKER_CURRENT_COLOR:"Current Color",COLORPICKER_CURRENT_GRADIENT:"Current Gradient",COLORPICKER_COLOR_VALUE:"Current color value (supports HEX format)",COLORPICKER_CONFIRM_CHANGE:"Callback function after confirming color selection",COLORPICKER_REAL_TIME_CHANGE:"Callback function when color changes in real-time",COLORPICKER_PRESET_COLORS:"Array of preset colors",COLORPICKER_GRADIENT_SUPPORT:"Whether to support gradient colors; after enabling, can select linear gradient colors",COLORPICKER_CUSTOM_TRIGGER:"Custom trigger area, supports any React node",EMPTY_CUSTOM_ICON:"Custom icon",EMPTY_CUSTOM_IMAGE_PATH:"Custom image path",EMPTY_DATA:"No data",EMPTY_STATUS_DESCRIPTION:"Empty state description",EMPTY_CUSTOM_ACTION_AREA:"Custom action area",EMPTY_SIZE:"Empty state size",EMPTY_CUSTOM_STYLE:"Custom style",EMPTY_CUSTOM_CLASS_NAME:"Custom CSS class name",NOTICE_COMPONENT_DESC:"This is a scrolling notification bar component that uses react-fast-marquee to achieve seamless scrolling effects.",NOTICE_HIDDEN:"Notice hidden",HIDE_NOTICE:"Hide notice",SHOW_NOTICE:"Show notice",CUSTOM_CONFIGURATION:"Custom Configuration",NOTICE_TEXT:"Notice text",ENTER_NOTICE_TEXT:"Enter notice text",NOTICE_BAR_HEIGHT:"Notice bar height",SHOW_CLOSE_BUTTON:"Show close button",FLOAT_TO_TOP:"Float to top",SEAMLESS_SCROLL:"Uses Marquee component to achieve seamless scrolling effect",CONFIGURABLE_SPEED:"Scrolling speed configurable (default: 50, range: 10-100)",CUSTOM_NOTICE_TEXT:"Supports custom notice text content",OPTIONAL_CLOSE_BUTTON:"Optional close button, 30px wide, click to hide the notice bar",FLOATING_TOP_FUNCTION:"Supports floating top function, fixed at the top of the page",TYPESCRIPT_SUPPORT:"Component supports TypeScript type definitions",USAGE_SCENARIOS:"Usage Scenarios",WEBSITE_ANNOUNCEMENT:"Website announcements",SYSTEM_NOTIFICATION:"System notifications",PROMOTION_INFO:"Promotional activity information",IMPORTANT_REMINDER:"Important message reminders",SPEED_DESC:"Scrolling speed, larger values scroll faster",HEIGHT_DESC:"Height of the notice bar in pixels",STYLES_DESC:"Custom notice bar styles",ICON_NOTICE_DESC:"Icon before the notice text",SHOW_CLOSE_BUTTON_DESC:"Whether to show the close button",CLOSE_STYLE_DESC:"Custom close button style",FLOATING_TOP_DESC:"Whether to fix and float at the top of the page",PAUSE_ON_HOVER_DESC:"Whether to pause scrolling when hovering",MESSAGE_COMPONENT_DESC:"Lightweight message prompt box for displaying success, warning and error messages.",CLICK_BUTTONS_TO_SHOW_MESSAGES:"Click the buttons to display different types of message prompts.",SHOW_SUCCESS_MESSAGE:"Show success message",SHOW_WARNING_MESSAGE:"Show warning message",SHOW_ERROR_MESSAGE:"Show error message",OPERATION_SUCCESS:"Operation successful!",WARNING_CHECK_INPUT:"Warning: Please check your input!",OPERATION_FAILED_RETRY:"Operation failed, please try again!",MESSAGE_TYPE:"Message type",MESSAGE_CONTENT:"Message content",MESSAGE_DURATION:"Message auto-close duration (milliseconds)",MESSAGE_CLOSE_CALLBACK:"Message close callback",MODAL_COMPONENT_DESC:"Modal dialog component for displaying important information or operations that require user confirmation.",CLICK_BUTTON_OPEN_BASIC_MODAL:"Click the button to open the basic modal.",OPEN_BASIC_MODAL:"Open Basic Modal",BASIC_MODAL:"Basic Modal",MODAL_CONTENT_AREA:"This is the content area of the modal, which can contain any content.",MODAL_CENTERED:"The modal will be centered horizontally and vertically.",CUSTOM_SIZE:"Custom Size",CAN_CUSTOMIZE_MODAL_WIDTH_HEIGHT:"You can customize the width and height of the modal.",SMALL_SIZE_MODAL:"Small Size Modal",LARGE_SIZE_MODAL:"Large Size Modal",SMALL_SIZE_MODAL_CONTENT:"This is a small size modal with a width of 400px.",LARGE_SIZE_MODAL_CONTENT:"This is a large size modal with a width of 800px and height of 500px.",CAN_PLACE_MORE_CONTENT:"You can place more content.",ASYNC_CONFIRMATION:"Async Confirmation",CLICK_CONFIRM_TO_PERFORM_ASYNC_OPERATION:"Click the confirm button to perform asynchronous operations, and close the modal after completion.",ASYNC_CONFIRMATION_MODAL:"Async Confirmation Modal",AFTER_CLICK_CONFIRM_BUTTON:"After clicking the confirm button, it will simulate a 1-second asynchronous operation.",MODAL_WILL_AUTOMATICALLY_CLOSE_AFTER_OPERATION_COMPLETE:"The modal will automatically close after the operation is complete.",CONTENT_HEIGHT_AUTO_ADJUSTMENT:"Content Height Auto-adjustment",WHEN_HEIGHT_NOT_SET_CONTENT_AREA_ADAPTS:"When height is not set, the content area height adapts; when height is set, the content area height is automatically calculated.",AUTO_ADJUST_HEIGHT:"Auto-adjust Height",CONTENT_SCROLL_EXAMPLE:"Content Scroll Example",AUTO_ADJUST_HEIGHT_MODAL:"Auto-adjust Height Modal",THIS_IS_A_MODAL_WITHOUT_HEIGHT_SET:"This is a modal without height set, and the content area height will automatically adjust according to the content.",YOU_CAN_ADD_MORE_CONTENT_TO_TEST_ADAPTIVE_EFFECT:"You can add more content to test the adaptive effect.",CONTENT_SCROLL_MODAL:"Content Scroll Modal",LONG_CONTENT_TEST:"Long Content Test",THIS_IS_A_MODAL_WITH_FIXED_HEIGHT:"This is a modal with fixed height, and the content area height is automatically calculated.",WHEN_CONTENT_EXCEEDS_CALCULATED_HEIGHT:"When the content exceeds the calculated height, a scrollbar will be automatically displayed.",ANIMATION_DIRECTION_DEMONSTRATION:"Animation Direction Demonstration",SUPPORT_FOUR_ANIMATION_DIRECTIONS:"Supports four animation directions, and opening and closing will use the same direction setting.",CENTER_ANIMATION:"Center Animation",TOP_RIGHT_ANIMATION:"Top Right Animation",BOTTOM_RIGHT_ANIMATION:"Bottom Right Animation",NORMAL_ANIMATION:"Normal Animation",OPEN_FROM_CENTER_POINT_ENLARGE:"Open: Enlarge from the center point",CLOSE_FROM_CENTER_POINT_SHRINK:"Close: Shrink from the center point",OPEN_FROM_TOP_RIGHT_MOVE_AND_ENLARGE:"Open: Move from top right and enlarge",CLOSE_TO_TOP_RIGHT_MOVE_AND_SHRINK:"Close: Move to top right and shrink",OPEN_FROM_BOTTOM_RIGHT_MOVE_AND_ENLARGE:"Open: Move from bottom right and enlarge",CLOSE_TO_BOTTOM_RIGHT_MOVE_AND_SHRINK:"Close: Move to bottom right and shrink",OPEN_SLIGHTLY_ENLARGE_AND_FADE_IN:"Open: Slightly enlarge and fade in",CLOSE_SLIGHTLY_SHRINK_AND_FADE_OUT:"Close: Slightly shrink and fade out",CUSTOM_TOP_POSITION:"Custom Top Position",THROUGH_TOP_PARAM_CUSTOMIZE_MODAL_DISTANCE_FROM_TOP:"You can customize the modal's distance from the top through the top parameter. When direction is set at the same time, direction will be forced to use normal.",USE_TOP_AND_DIRECTION_SIMULTANEOUSLY:"Use top and direction simultaneously",THIS_MODAL_IS_100PX_FROM_TOP:"This modal is 100px from the top",USE_TOP_PARAM_TO_CUSTOMIZE_MODAL_VERTICAL_POSITION:"Use the top parameter to customize the vertical position of the modal",THIS_MODAL_IS_200PX_FROM_TOP:"This modal is 200px from the top",ALTHOUGH_DIRECTION_TOP_RIGHT_SET_BUT_DUE_TO_TOP_PARAM:'Although direction="top-right" is set, direction is forced to normal because the top parameter is set at the same time',CUSTOM_FOOTER:"Custom Footer",CAN_CUSTOMIZE_BOTTOM_BUTTONS_THROUGH_FOOTER_PARAM:"You can customize the bottom buttons through the footer parameter. When footer is null, default buttons are displayed; when a value is provided, custom buttons are displayed.",CUSTOM_FOOTER_MODAL:"Custom Footer Modal",CANCEL:"Cancel",SAVE:"Save",THIS_IS_A_MODAL_WITH_CUSTOM_FOOTER:"This is a modal with custom footer, which displays three buttons at the bottom: Cancel, Save, and Delete.",YOU_CAN_CUSTOMIZE_FOOTER_CONTENT_AND_STYLE:"You can customize the content and style of the footer according to your needs.",CUSTOM_MOUNT_CONTAINER:"Custom Mount Container",CAN_SPECIFY_MODAL_MOUNT_HTML_NODE_THROUGH_GET_CONTAINER_PARAM:"You can specify the HTML node where the Modal is mounted through the getContainer parameter. false means mount in the current DOM.",MOUNT_IN_CURRENT_DOM:"Mount in Current DOM",MOUNT_IN_CUSTOM_CONTAINER:"Mount in Custom Container",THIS_IS_A_CUSTOM_MOUNT_CONTAINER:"This is a custom mount container",CLICK_MOUNT_IN_CUSTOM_CONTAINER_BUTTON:'Click the "Mount in Custom Container" button, and the Modal will be mounted here',THIS_MODAL_IS_MOUNTED_IN_CURRENT_DOM:"This Modal is mounted in the current DOM, not in document.body.",CAN_ACHIEVE_THIS_EFFECT_THROUGH_GET_CONTAINER_FALSE:"You can achieve this effect through getContainer={false}.",THIS_MODAL_IS_MOUNTED_IN_CUSTOM_CONTAINER:"This Modal is mounted in a custom container on the page.",CAN_SPECIFY_MOUNTED_HTML_NODE_THROUGH_GET_CONTAINER_PROPERTY:"You can specify the mounted HTML node through the getContainer property.",CUSTOM_MASK_BACKGROUND_COLOR:"Custom Mask Background Color",CAN_CUSTOMIZE_MASK_BACKGROUND_COLOR_AND_OTHER_STYLES:"You can customize the mask background color and other styles through the maskStyle property.",THIS_MODAL_MASK_USES_CUSTOM_BACKGROUND_COLOR:"The mask layer of this Modal uses a custom background color (semi-transparent red).",CAN_SET_VARIOUS_STYLES_OF_MASK_THROUGH_MASK_STYLE_PROPERTY:"You can set various styles of the mask through the maskStyle property, such as background color, opacity, etc.",CUSTOM_ZINDEX:"Custom zIndex",CAN_SET_MASK_LAYER_LEVEL_THROUGH_ZINDEX_PROPERTY:"You can set the level of the mask layer through the zIndex property, with a default value of 1000. In the case of nested Modals, you need to set different zIndex values to ensure the correct display level.",OPEN_FIRST_MODAL:"Open First Modal",FIRST_MODAL_ZINDEX_1000:"First Modal (zIndex: 1000)",CLOSE:"Close",OPEN_SECOND_MODAL:"Open Second Modal",THIS_IS_THE_FIRST_MODAL_USING_DEFAULT_ZINDEX_1000:"This is the first Modal, using the default zIndex value (1000).",CLICK_OPEN_SECOND_MODAL_BUTTON_TO_POP_UP_SECOND_MODAL:'Click the "Open Second Modal" button to pop up the second Modal.',SECOND_MODAL_ZINDEX_1010:"Second Modal (zIndex: 1010)",THIS_IS_THE_SECOND_MODAL_USING_HIGHER_ZINDEX_1010:"This is the second Modal, using a higher zIndex value (1010).",DUE_TO_HIGHER_ZINDEX_IT_WILL_DISPLAY_ABOVE_FIRST_MODAL:"Due to the higher zIndex setting, it will be displayed above the first Modal.",MODAL_VISIBLE_DESC:"Controls whether the modal is displayed/hidden (required)",MODAL_TITLE_DESC:"Modal title",MODAL_WIDTH_DESC:"Modal width",MODAL_HEIGHT_DESC:"Modal height (optional, adapts if not set)",MODAL_HEADER_HEIGHT_DESC:"Top area height",MODAL_FOOTER_HEIGHT_DESC:"Bottom area height",MODAL_CONFIRM_LOADING_DESC:"Whether the confirm button shows loading status",MODAL_DIRECTION_DESC:"Animation direction for opening and closing",MODAL_TOP_DESC:"Distance from the top of the modal; when set, direction will be forced to normal",MODAL_FOOTER_DESC:"Bottom content, shows default buttons when null, shows custom content when provided",MODAL_ON_CANCEL_DESC:"Cancel button click callback",MODAL_ON_OK_DESC:"Confirm button click callback",MODAL_CHILDREN_DESC:"Modal content",MODAL_GET_CONTAINER_DESC:"Specifies the HTML node where the Modal is mounted; false means mount in current DOM",MODAL_OK_TEXT_DESC:"Confirm button text",MODAL_CANCEL_TEXT_DESC:"Cancel button text",MODAL_MASK_STYLE_DESC:"Custom mask layer style",MODAL_MASK_CLASS_NAME_DESC:"Custom mask layer class name",MODAL_Z_INDEX_DESC:"z-index value of the mask layer",TYPOGRAPHY_COMPONENT:"Typography component",SHOW_BASIC_USAGE_TYPOGRAPHY:"Demonstrates the basic usage of the Typography component.",DEFAULT_DISPLAY_NO_ROW_LIMIT:"Default display (no row limit)",LIMIT_1_ROW:"Limit to 1 row",LIMIT_2_ROWS:"Limit to 2 rows",LIMIT_3_ROWS:"Limit to 3 rows",DIFFERENT_WIDTHS:"Different widths",WIDTH_200PX_LIMIT_1_ROW:"Width 200px, limit to 1 row",WIDTH_300PX_LIMIT_2_ROWS:"Width 300px, limit to 2 rows",WIDTH_500PX_LIMIT_3_ROWS:"Width 500px, limit to 3 rows",MIXED_TEXT_WRAPPING:"Mixed Chinese and English text (testing line break issues)",MIXED_TEXT_CONTENT:"This is a test text containing English, used to test line break issues when mixing Chinese and English. When the text content exceeds the container width, English should follow immediately after Chinese instead of starting a new line separately.",MIXED_TEXT_LIMIT_2_ROWS:"Mixed Chinese and English text (limit to 2 rows)",TYPOGRAPHY_LONG_TEXT:"This is a long test text used to test the row limit function of the Typography component. When the text content exceeds the specified row limit, ellipsis should be displayed at the end. This component supports custom width and row limits to meet different layout needs.",TYPOGRAPHY_CHILDREN_DESC:"Text content",TYPOGRAPHY_WIDTH_DESC:"Width limit",TYPOGRAPHY_ROWS_DESC:"Row limit",TYPOGRAPHY_STYLE_DESC:"Custom style",TYPOGRAPHY_CLASSNAME_DESC:"Custom class name",TYPOGRAPHY_MIXED_TEXT:"This is a test text containing English, used to test line break issues when mixing Chinese and English. When the text content exceeds the container width, English should follow immediately after Chinese instead of starting a new line separately.",TYPOGRAPHY_MIXED_TEXT_2:"This is a test text containing English, used to test line break issues when mixing Chinese and English. When the text content exceeds the container width, English should follow immediately after Chinese instead of starting a new line separately.",TYPOGRAPHY_DEFAULT_DISPLAY:"Default display (no row limit)",TYPOGRAPHY_LIMIT_1_ROW:"Limit to 1 row",TYPOGRAPHY_LIMIT_2_ROWS:"Limit to 2 rows",TYPOGRAPHY_LIMIT_3_ROWS:"Limit to 3 rows",TYPOGRAPHY_DIFFERENT_WIDTHS:"Different widths",TYPOGRAPHY_MIXED_TEXT_TEST:"Mixed Chinese and English text (testing line break issues)",TYPOGRAPHY_MIXED_TEXT_TEST_2:"Mixed Chinese and English text (limit to 2 rows)",TYPOGRAPHY_BASIC_USAGE:"Basic usage",TYPOGRAPHY_API_PARAMETERS:"API parameters",TYPOGRAPHY_CODE_EXAMPLE:"Code example",TYPOGRAPHY_COMPONENT_DESCRIPTION:"Typography component that supports custom width and row limits, displaying ellipsis when exceeding row limits.",TYPOGRAPHY_BASIC_USAGE_DESCRIPTION:"Demonstrates the basic usage of the Typography component.",TYPOGRAPHY_WIDTH_200PX:"Width 200px, limit to 1 row",TYPOGRAPHY_WIDTH_300PX:"Width 300px, limit to 2 rows",TYPOGRAPHY_WIDTH_500PX:"Width 500px, limit to 3 rows"};Er.use(Dr).init({resources:{"zh-CN":{translation:Zr},"en-US":{translation:Xr}},lng:"zh-CN",fallbackLng:"zh-CN",interpolation:{escapeValue:!1}});var qr=function(n){var t=n.children,r=n.locale,i=n.resources;return u.default.useEffect(function(){i&&Object.keys(i).forEach(function(e){var n=i[e];Object.keys(n).forEach(function(t){var r=n[t];Er.addResourceBundle(e,t,r,!0)})})},[i]),u.default.useEffect(function(){r&&r!==Er.language&&Er.changeLanguage(r)},[r]),e.jsx(Kr,{i18n:Er,children:t})},Jr=function(t){var r=t.items,i=t.type,o=void 0===i?"text":i,a=t.children,s=t.trigger,l=void 0===s?"click":s,c=t.placement,d=void 0===c?"bottom":c,u=t.disabled,f=void 0!==u&&u,g=t.open,m=t.ellipsis,v=void 0===m||m,x=t.className,b=t.style,y=t.contentStyles,C=t.getContainer,w=t.onVisibleChange,_=t.onChange,E=void 0!==g,N=n.useState(!1),S=N[0],T=N[1],O=n.useState(!1),L=O[0],A=O[1],k=E?g:S,M=n.useRef(null),I=n.useRef(null),j=n.useRef(null);n.useEffect(function(){return function(){j.current&&clearTimeout(j.current)}},[]),n.useEffect(function(){var e=function(e){M.current&&!M.current.contains(e.target)&&R()};return k&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[k,w,E]);var R=function(){A(!0),j.current&&clearTimeout(j.current),j.current=setTimeout(function(){A(!1),E||T(!1),null==w||w(!1)},200)},H=function(){j.current&&(clearTimeout(j.current),j.current=null),A(!1),E||T(!0),null==w||w(!0)},P=function(){f||"click"===l&&(k||L?R():H())},z=function(){f||"hover"!==l||H()},V=function(){f||"hover"!==l||R()};return e.jsx("div",{ref:M,className:p.default("dropdown",x,{"dropdown--disabled":f}),style:b,children:e.jsxs("div",{className:"dropdown-content-wrapper",children:["button"===o?e.jsx(se,{variant:"secondary",size:"medium",disabled:f,onClick:P,icon:"caret-down",children:a||"Dropdown"}):e.jsxs("div",{ref:I,className:p.default("dropdown-trigger",{"dropdown-trigger--text":"text"===o,"dropdown-trigger--disabled":f}),onClick:P,onMouseEnter:z,onMouseLeave:V,children:[a||"Dropdown",e.jsx(D,{type:"caret-down",className:"dropdown-arrow"})]}),function(){if(!r||0===r.length||!k&&!L)return null;var n=e.jsx("div",{className:p.default("dropdown-menu dropdown-menu--".concat(d," dropdown-menu--p-").concat(d),{"dropdown-menu--visible":k&&!L,"dropdown-menu--closing":L}),children:e.jsx("ul",{className:"dropdown-list",style:y,children:r.map(function(n){return e.jsxs("li",{className:p.default("dropdown-item",{"dropdown-item--disabled":n.disabled}),onClick:function(){return function(e){var n;e.disabled||(null===(n=e.onClick)||void 0===n||n.call(e),null==_||_(e),R())}(n)},children:[n.icon&&e.jsx("span",{className:"dropdown-item-icon",children:"string"==typeof n.icon?e.jsx(D,{type:n.icon}):n.icon}),e.jsx("span",{className:p.default("dropdown-item-label",{"dropdown-item-label--with-width":(null==y?void 0:y.width)&&!v,"dropdown-item-label--ellipsis":(null==y?void 0:y.width)&&v}),children:n.label})]},n.key)})})});if(C){var t=C();if(t)return h.default.createPortal(n,t)}return n}()]})})},Qr=u.default.memo(function(t){var r,i,o,a,s=t.item,l=t.level,c=t.mode,d=t.collapsed,u=t.theme,p=t.openKeySet,f=t.selectedKey,h=t.onItemClick,g=t.onToggleOpen,m=!!s.children&&s.children.length>0,v=p.has(s.key),x=f===s.key,b="horizontal"===c,y="inline"===c,C="vertical-flat"===c,w=0===l,_=n.useCallback(function(e){e.stopPropagation(),s.disabled||(m&&!C&&g(s.key),C&&m||h(s,s.key))},[s,h,g,m,C]),E=b&&w?16:y?12+24*l:d?0:12+16*l,N=v&&(!d||b),S=function(e){var t=n.useState(e),r=t[0],i=t[1],o=n.useState(e),a=o[0],s=o[1];return n.useEffect(function(){var n;return e?(s(!0),n=requestAnimationFrame(function(){i(!0)})):(i(!1),n=setTimeout(function(){s(!1)},150)),function(){"number"==typeof n?cancelAnimationFrame(n):clearTimeout(n)}},[e]),{isVisible:r,shouldRender:a}}(N&&b&&w),T=S.isVisible,O=S.shouldRender,L=m&&(!d||!w)&&!C,A=u||"light";return e.jsxs("div",{className:"idp-menu-item-wrapper ".concat(w?"root":""),children:[e.jsx("div",{className:"\n idp-menu-item\n ".concat(x?"selected":"","\n ").concat(s.disabled?"disabled":"","\n ").concat(m?"has-children":"","\n ").concat(w?"root":"","\n ").concat(d&&w?"collapsed":"","\n ").concat(c,"\n ").concat(A,"\n "),style:{padding:"0px ".concat(E,"px")},title:d&&w?s.label:void 0,onClick:_,children:e.jsxs("div",{className:"idp-menu-item-content",children:[d?e.jsx(e.Fragment,{children:s.icon?e.jsx("span",{className:"idp-menu-item-icon collapsed",children:s.icon}):e.jsx("span",{className:"idp-menu-item-collapsed-label",children:(a=s.label,a.charAt(0).toUpperCase())})}):e.jsxs(e.Fragment,{children:[s.icon&&e.jsx("span",{className:"idp-menu-item-icon",children:s.icon}),e.jsxs("div",{className:"idp-menu-item-text",children:[e.jsx("span",{className:"idp-menu-item-label",children:s.label}),s.description&&!m&&e.jsx("span",{className:"idp-menu-item-description",children:s.description})]})]}),L&&e.jsx("span",{className:"idp-menu-item-arrow ".concat(N?"open":""," ").concat(c),children:e.jsx("svg",{viewBox:"0 0 1024 1024",width:"10",height:"10",fill:"currentColor",children:e.jsx("path",{d:"M840.4 300H183.6c-19.7 0-30.7 25.7-18.5 40.5l328.4 402.4c9.4 11.6 26.7 11.6 36.1 0l328.4-402.4c12.2-14.8 1.2-40.5-18.5-40.5z"})})})]})}),m&&(!b||!w||O)&&e.jsx("div",{className:"idp-menu-submenu-wrapper ".concat(c," ").concat(b&&w?"horizontal-popup-wrapper":""," ").concat(C?"vertical-flat":""),children:e.jsx("div",{className:"idp-menu-submenu ".concat((i=b&&w?"horizontal-popup":"",o=y&&N?"open inline":"",C?"open vertical-flat":b&&w?"".concat(b&&w?T?"open":"":N?"open":""," ").concat(i).trim():y?o:N?"open":"")," ").concat(c),children:e.jsx("div",{className:"idp-menu-submenu-content",children:null===(r=s.children)||void 0===r?void 0:r.map(function(n){return e.jsx(Qr,{item:n,level:l+1,mode:c,collapsed:d,theme:u,openKeySet:p,selectedKey:f,onItemClick:h,onToggleOpen:g},n.key)})})})})]})});Qr.displayName="MenuItemComponent";var ei,ni,ti,ri,ii,oi,ai,si,li,ci,di,ui,pi,fi,hi,gi,mi,vi,xi,bi,yi,Ci,wi,_i,Ei,Ni,Si=function(t){var r=t.mode,i=void 0===r?"vertical":r,o=t.items,a=t.className,s=void 0===a?"":a,l=t.style,c=t.selectedKey,d=t.defaultOpenKeys,u=void 0===d?[]:d,p=t.openKeys,f=t.collapsed,h=void 0!==f&&f,g=t.open,m=t.theme,v=void 0===m?"light":m,x=t.onChange,y=t.onOpenChange,C=n.useRef(null),w=n.useState(!0)[0],_=n.useState(u),E=_[0],N=_[1],S=n.useState(""),T=S[0],O=S[1],L=void 0!==p,A=void 0!==c,k=L?p:E,M=A?c:T,I=void 0!==g?g:w,j=n.useMemo(function(){return new Set(k)},[k]);n.useEffect(function(){void 0!==c&&O(c)},[c]),n.useEffect(function(){if(M&&!L&&"horizontal"!==i&&"vertical-flat"!==i){var e=function(n,t,r){void 0===r&&(r=[]);for(var i=0,o=n;i<o.length;i++){var a=o[i];if(a.key===t)return r;if(a.children&&a.children.length>0){var s=e(a.children,t,b(b([],r,!0),[a.key],!1));if(s.length>0)return s}}return[]},n=e(o,M);n.length>0&&N(function(e){var t=new Set(b(b([],e,!0),n,!0));return Array.from(t)})}},[M,o,L,i]);var R,D,H=n.useCallback(function(e,n){A||O(n),null==x||x(e,n),"horizontal"===i&&(!e.children||0===e.children.length)&&k.length>0&&(L||N([]),null==y||y([]))},[x,A,i,k.length,L,y]),P=n.useCallback(function(e){if(L){var n=j.has(e)?k.filter(function(n){return n!==e}):b(b([],k,!0),[e],!1);null==y||y(n)}else N(function(n){var t=n.includes(e)?n.filter(function(n){return n!==e}):b(b([],n,!0),[e],!1);return null==y||y(t),t})},[j,k,L,y]),z="horizontal"!==i&&h;return R=C,D=n.useCallback(function(){"horizontal"===i&&k.length>0&&(L||N([]),null==y||y([]))},[i,k.length,L,y]),n.useEffect(function(){var e=function(e){R.current&&!R.current.contains(e.target)&&D(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[R,D]),I?e.jsx("div",{ref:C,className:"idp-menu idp-menu-".concat(v," idp-menu-").concat(i," ").concat(z?"collapsed":""," ").concat(s),style:l,role:"menu",children:o.map(function(n){return e.jsx(Qr,{item:n,level:0,mode:i,collapsed:z,theme:v,openKeySet:j,selectedKey:M,onItemClick:H,onToggleOpen:P},n.key)})}):null},Ti=function(t){var r=t.value,i=void 0===r?0:r,o=t.count,a=void 0===o?5:o,s=t.allowHalf,l=void 0===s||s,c=t.disabled,d=void 0!==c&&c,u=t.color,p=void 0===u?"#1677ff":u,f=t.onChange,h=t.className,g=void 0===h?"":h,m=t.size,v=void 0===m?24:m,x=t.chats,b=n.useState(0),y=b[0],C=b[1],w=n.useRef([]),_=n.useRef(0),E=Array.isArray(x)&&x.length>=a&&x.every(function(e){return null!=e&&""!==e}),N=n.useState([]),S=N[0],T=N[1],O=n.useState(!1),L=O[0],A=O[1];w.current.length!==a&&(w.current=Array(a).fill(null)),n.useEffect(function(){if(E)if("string"==typeof i&&i.length>0){var e=Math.min(i.length,a);T(x.slice(0,e))}else T([]);else T([])},[i,E,x,a]),n.useLayoutEffect(function(){0===y&&L&&A(!1)},[y,L]);var k=y||(E?S.length:parseFloat(Number(i).toFixed(1)||"0")),M=n.useCallback(function(e){return function(n){w.current[e]=n}},[]),I=n.useMemo(function(){return Array.from({length:a}).map(function(e,n){var t=n+1,r=!1,i=!1;E?r=n<(L&&y>0?y:S.length):k>=t?r=!0:l&&k>n&&k<t&&(i=!0);return{index:n,isHalf:i,isFull:r,iconType:i?"half":r?"full":"empty",iconColor:r||i?p:"#d9d9d9"}})},[a,k,l,p,E,S.length,L,y]),j=function(n){if(E){var t=x[n.index],r=n.isFull;return e.jsx("span",{className:"rate-chat-item",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",fontSize:"inherit",backgroundColor:"transparent",color:d?"inherit":r?p:"inherit",cursor:d?"default":"pointer"},onMouseEnter:function(e){if(!d){e.stopPropagation();var t=n.index+1;t!==_.current&&(_.current=t,C(t))}},onClick:function(e){if(!d){e.stopPropagation();var t=n.index+1;if(x&&Array.isArray(x)&&x.length>=0){var r=x.slice(0,t);T(r),null==f||f(r.join(""))}else null==f||f(t.toString());C(0),_.current=0,A(!1)}},children:t})}return e.jsxs(e.Fragment,{children:[e.jsx(D,{type:"starOutline",size:v,color:"#d9d9d9",className:"rate-star-bg"}),e.jsx("span",{className:"rate-star-left",onMouseEnter:function(e){if(!d&&l){e.stopPropagation();var t=n.index+.5;t!==_.current&&(_.current=t,C(t))}},onClick:function(e){!d&&l&&(e.stopPropagation(),null==f||f((n.index+.5).toString()),C(0),_.current=0,A(!1))}}),e.jsx("span",{className:"rate-star-right",onMouseEnter:function(e){if(!d){e.stopPropagation();var t=n.index+1;t!==_.current&&(_.current=t,C(t))}},onClick:function(e){if(!d){if(e.stopPropagation(),E){var t=x.slice(0,n.index+1);null==f||f(t.join(""))}else null==f||f((n.index+1).toString());C(0),_.current=0,A(!1)}}}),e.jsx("span",{className:"rate-star-fill ".concat(n.isHalf?"half":""," ").concat(n.isFull?"full":""),style:{color:n.iconColor},children:e.jsx(D,{type:"star",size:v,color:n.iconColor,className:"rate-star-icon"})})]})};return e.jsx("div",{className:"rate ".concat(d?"disabled":""," ").concat(E?"rate-chats-mode":"rate-star-mode"," ").concat(g),style:{"--rate-color":p},onMouseEnter:function(){d||A(!0)},onMouseLeave:function(){d||(A(!1),C(0),_.current=0)},children:I.map(function(n){return e.jsx("span",{ref:M(n.index),className:"rate-star",style:{fontSize:"".concat(v,"px")},children:j(n)},n.index)})})},Oi=function(t){var r,i=t.min,o=void 0===i?0:i,a=t.max,s=void 0===a?100:a,l=t.step,c=void 0===l?1:l,d=t.value,u=t.defaultValue,p=void 0===u?0:u,f=t.disabled,h=void 0!==f&&f,m=t.marks,v=void 0===m?{}:m,x=t.showValue,b=void 0!==x&&x,y=t.trackColor,C=void 0===y?"#1890ff":y,w=t.handleColor,_=void 0===w?"#1890ff":w,E=t.gradient,N=t.onChange,S=t.onAfterChange,T=t.className,O=void 0===T?"":T,L=t.style,A=n.useState(p),k=A[0],M=A[1],I=n.useState(!1),j=I[0],R=I[1],D=n.useRef(null),H=n.useRef(null),P=n.useRef(void 0!==d?d:p),z=void 0!==d,V=z?d:k;n.useEffect(function(){P.current=V},[V]);var B=n.useCallback(function(e){var n=(e-o)/(s-o);return Math.max(0,Math.min(1,n))},[o,s]),U=n.useCallback(function(e){var n=Math.max(0,Math.min(1,e)),t=o+n*(s-o);if(c>0){var r=Math.round(t/c)*c;return Math.min(s,Math.max(o,r))}return Math.min(s,Math.max(o,t))},[o,s,c]),F=function(e){return"touches"in e?e.touches[0].clientX:e.clientX},Y=n.useCallback(function(e){D.current&&!h&&(H.current&&cancelAnimationFrame(H.current),H.current=requestAnimationFrame(function(){var n=D.current.getBoundingClientRect(),t=(e-n.left)/n.width,r=U(t);r!==P.current&&(P.current=r,z||M(r),null==N||N(r))}))},[h,z,U,N]),$=function(e){if(!h){e.preventDefault(),R(!0);var n=F(e);Y(n)}};n.useEffect(function(){if(j){var e=function(e){e.preventDefault();var n=F(e);Y(n)},n=function(){R(!1),H.current&&(cancelAnimationFrame(H.current),H.current=null),null==S||S(P.current)};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",n),document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n),document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n),H.current&&(cancelAnimationFrame(H.current),H.current=null)}}},[j,Y,S]);var G=B(V),W=n.useMemo(function(){return Object.entries(v).map(function(e){var n=e[0],t=e[1],r=Number(n),i="string"==typeof t?{trackColor:void 0,handleColor:void 0,mark:t}:t;return{value:r,label:i.mark,trackColor:i.trackColor,handleColor:i.handleColor,position:B(r)}}).sort(function(e,n){return e.value-n.value})},[v,B]),K=n.useMemo(function(){for(var e=0;e<W.length;e++){var n=W[e];if(V<=n.value)return{trackColor:n.trackColor,handleColor:n.handleColor,mark:n.label}}var t=W[W.length-1];return t?{trackColor:t.trackColor,handleColor:t.handleColor,mark:t.label}:{trackColor:void 0,handleColor:void 0,mark:""}},[W,V]),Z=L&&L["--idp-slider-track-filled-bg"],X=L&&L["--idp-slider-handle-border"],q=E&&!K.trackColor&&!Z&&"#1890ff"===C,J=K.trackColor||Z||C,Q=K.handleColor||X||_;return e.jsxs("div",{className:"slider-container ".concat(h?"disabled":""," ").concat(j?"dragging":""," ").concat(O),style:g((r={},r["--idp-slider-track-filled-bg"]=J,r["--idp-slider-handle-border"]="2px solid ".concat(Q),r),L),children:[e.jsxs("div",{ref:D,className:"slider-track",onClick:function(e){h||(e.target.classList.contains("slider-handle")||(Y(e.clientX),null==S||S(V)))},role:"presentation",children:[e.jsx("div",{className:"slider-track-filled",style:g({width:"".concat(100*G,"%")},q&&E?{background:"linear-gradient(to right, ".concat(E.startColor,", ").concat(E.endColor,")")}:{})}),e.jsx("div",{className:"slider-handle",style:{left:"".concat(100*G,"%")},onMouseDown:$,onTouchStart:$,onKeyDown:function(e){if(!h){var n=V;switch(e.key){case"ArrowLeft":case"ArrowDown":n=Math.max(o,V-c);break;case"ArrowRight":case"ArrowUp":n=Math.min(s,V+c);break;case"Home":n=o;break;case"End":n=s;break;case"PageDown":n=Math.max(o,V-10*c);break;case"PageUp":n=Math.min(s,V+10*c);break;default:return}e.preventDefault(),void 0===d&&M(n),null==N||N(n),null==S||S(n)}},role:"slider","aria-valuemin":o,"aria-valuemax":s,"aria-valuenow":V,"aria-disabled":h,tabIndex:h?-1:0,children:e.jsx("div",{className:"slider-tooltip",children:V})})]}),W.length>0&&e.jsx("div",{className:"slider-marks",children:W.map(function(n){return e.jsx("div",{className:"slider-mark",style:{left:"".concat(100*n.position,"%"),color:n.trackColor||void 0},children:n.label},n.value)})}),b&&e.jsxs("div",{className:"slider-value-display",children:["当前值:",V]})]})},Li=n.createContext(null),Ai=function(n){var t=n.index,r=n.status,i=n.item;return i.node?e.jsx("span",{className:"idp-step-node idp-step-node-".concat(r),children:i.node}):i.title?e.jsx("span",{className:"idp-step-node idp-step-node-".concat(r),children:i.title}):i.description?e.jsx("span",{className:"idp-step-node idp-step-node-".concat(r),children:i.description}):"finish"===r?e.jsx("span",{className:"idp-step-node idp-step-node-finish",children:"✓"}):"error"===r?e.jsx("span",{className:"idp-step-node idp-step-node-error",children:"✕"}):e.jsx("span",{className:"idp-step-node idp-step-node-".concat(r),children:t+1})},ki=function(t){var r=t.item,i=t.index,o=t.isLast,a=u.default.useRef(null),s=n.useContext(Li),l=n.useState(0),c=l[0],d=l[1];if(!s)return null;var p=s.current,f=s.status,h=s.direction,g=s.onChange,m=r.status||(i<p?"finish":i===p?f:"wait");u.default.useEffect(function(){var e;if(a.current&&"panel"===s.type){var n=null===(e=a.current.getBoundingClientRect())||void 0===e?void 0:e.height;d(n||0)}},[a,s]);var v=n.useMemo(function(){if("panel"!==s.type||0===c)return null;var n=c/4-8;return e.jsx("div",{style:{transform:"translateY(".concat(n,"px)")},className:"idp-step-arrow",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:e.jsx("path",{d:"M5.5 3L10.5 8L5.5 13",stroke:"currentColor",strokeWidth:"2",fill:"none"})})})},[c,s]),x={};r.tailColor&&(x.backgroundColor=r.tailColor);var b=r.tailType||"solid";return e.jsxs("div",{className:"idp-step ".concat(h," ").concat(m," ").concat(r.disabled?"disabled":""),onClick:function(){!r.disabled&&g&&i!==p&&g(i)},ref:a,children:[e.jsxs("div",{className:"idp-step-head",children:[e.jsx(Ai,{index:i,status:m,item:r}),!o&&e.jsxs(e.Fragment,{children:["default"===s.type&&e.jsx("div",{className:"idp-step-tail idp-step-tail-".concat(b),style:x,children:r.tailTitle&&e.jsx("div",{className:"idp-step-tail-title",children:r.tailTitle})}),v]})]}),e.jsxs("div",{className:"idp-step-content",children:[r.title&&e.jsx("div",{className:"idp-step-title",children:r.title}),r.description&&e.jsx("div",{className:"idp-step-description",children:r.description})]})]})},Mi=function(n){var t=n.current,r=void 0===t?0:t,i=n.status,o=void 0===i?"process":i,a=n.direction,s=void 0===a?"horizontal":a,l=n.size,c=void 0===l?"default":l,d=n.type,u=void 0===d?"default":d,p=n.items,f=n.onChange,h=n.className,g=void 0===h?"":h,m=n.style,v={current:r,status:o,direction:s,size:c,type:u,onChange:f};return e.jsx(Li.Provider,{value:v,children:e.jsx("div",{className:"idp-steps ".concat(s," ").concat(c," ").concat(u," ").concat(g),style:m,children:p.map(function(n,t){return e.jsx(ki,{item:n,index:t,isLast:t===p.length-1},t)})})})},Ii=function(e,n){return"var(".concat(e,", ").concat(n,")")},ji=f.default.div(ei||(ei=y(["\n display: inline-block;\n\n &.switch-wrapper {\n /* 外部可通过 .switch-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: inline-block;\n\n &.switch-wrapper {\n /* 外部可通过 .switch-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Ri=f.default.div(ni||(ni=y(["\n position: relative;\n background: ",";\n border-radius: ",";\n transition: ",";\n cursor: ",";\n opacity: ",";\n box-sizing: border-box;\n overflow: hidden;\n box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);\n\n &.switch-track {\n /* 外部可通过 .switch-track 选择器覆盖样式 */\n }\n\n &.switch-track-checked {\n background: ",";\n box-shadow: 0 2px 8px rgba(24, 144, 255, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.2);\n }\n\n &.switch-track-disabled {\n cursor: not-allowed;\n opacity: var(--idp-switch-disabled-opacity, 0.65);\n background: ",";\n }\n\n &.switch-track-loading {\n cursor: wait;\n }\n\n &:hover:not(.switch-track-disabled) {\n box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);\n }\n\n &.switch-track-checked:hover:not(.switch-track-disabled) {\n box-shadow: 0 4px 12px rgba(24, 144, 255, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.2);\n }\n\n ","\n\n ","\n\n ","\n\n ","\n"],["\n position: relative;\n background: ",";\n border-radius: ",";\n transition: ",";\n cursor: ",";\n opacity: ",";\n box-sizing: border-box;\n overflow: hidden;\n box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);\n\n &.switch-track {\n /* 外部可通过 .switch-track 选择器覆盖样式 */\n }\n\n &.switch-track-checked {\n background: ",";\n box-shadow: 0 2px 8px rgba(24, 144, 255, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.2);\n }\n\n &.switch-track-disabled {\n cursor: not-allowed;\n opacity: var(--idp-switch-disabled-opacity, 0.65);\n background: ",";\n }\n\n &.switch-track-loading {\n cursor: wait;\n }\n\n &:hover:not(.switch-track-disabled) {\n box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);\n }\n\n &.switch-track-checked:hover:not(.switch-track-disabled) {\n box-shadow: 0 4px 12px rgba(24, 144, 255, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.2);\n }\n\n ","\n\n ","\n\n ","\n\n ","\n"])),Ii("--idp-switch-track-bg-gradient","linear-gradient(135deg, #e8e8e8 0%, #d9d9d9 100%)"),Ii("--idp-switch-track-radius","12px"),Ii("--idp-switch-transition","all 0.2s ease-in-out"),function(e){return e.$disabled?"not-allowed":"pointer"},function(e){return e.$disabled?"var(--idp-switch-disabled-opacity, 0.65)":1},Ii("--idp-switch-track-active-gradient","linear-gradient(135deg, #1890ff 0%, #40a9ff 100%)"),Ii("--idp-switch-disabled-bg","#f5f5f5"),function(e){var n=e.$size,t=e.$hasChildren,r=e.$width;return r?"\n width: ".concat(r,"px;\n min-width: ").concat(r,"px;\n height: ").concat("small"===n?Ii("--idp-switch-small-height","16px"):Ii("--idp-switch-default-height","22px"),";\n "):"small"===n?"\n width: ".concat(t?"auto":Ii("--idp-switch-small-width","28px"),";\n min-width: ").concat(Ii("--idp-switch-small-width","28px"),";\n height: ").concat(Ii("--idp-switch-small-height","16px"),";\n "):"\n width: ".concat(t?"auto":Ii("--idp-switch-default-width","44px"),";\n min-width: ").concat(Ii("--idp-switch-default-width","44px"),";\n height: ").concat(Ii("--idp-switch-default-height","22px"),";\n ")},function(e){return e.$checked&&"\n background: ".concat(Ii("--idp-switch-track-active-gradient","linear-gradient(135deg, #1890ff 0%, #40a9ff 100%)"),";\n box-shadow: 0 2px 8px rgba(24, 144, 255, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.2);\n ")},function(e){return e.$loading&&"\n cursor: wait;\n "},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Di=f.default.div(ti||(ti=y(["\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n background: linear-gradient(135deg, "," 0%, "," 100%);\n border-radius: ",";\n box-shadow: ",";\n transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;\n z-index: 2;\n\n &.switch-thumb {\n /* 外部可通过 .switch-thumb 选择器覆盖样式 */\n }\n\n &.switch-thumb-checked {\n box-shadow: ",";\n }\n\n ","\n\n ","\n\n ","\n"],["\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n background: linear-gradient(135deg, "," 0%, "," 100%);\n border-radius: ",";\n box-shadow: ",";\n transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;\n z-index: 2;\n\n &.switch-thumb {\n /* 外部可通过 .switch-thumb 选择器覆盖样式 */\n }\n\n &.switch-thumb-checked {\n box-shadow: ",";\n }\n\n ","\n\n ","\n\n ","\n"])),Ii("--idp-switch-thumb-bg","#fff"),Ii("--idp-bg-color-light","#f5f5f5"),Ii("--idp-switch-thumb-radius","50%"),Ii("--idp-switch-thumb-shadow","0 2px 8px rgba(0, 0, 0, 0.15)"),Ii("--idp-switch-thumb-shadow-active","0 2px 8px rgba(24, 144, 255, 0.4)"),function(e){var n=e.$size,t=e.$checked,r=e.$width,i="small"===n?12:18;if(r){var o="".concat(t?r-i-2:2,"px");return"\n width: ".concat(i,"px;\n height: ").concat(i,"px;\n left: ").concat(o,";\n ")}if("small"===n){var a=t?"14px":"2px";return"\n width: ".concat(i,"px;\n height: ").concat(i,"px;\n left: ").concat(a,";\n ")}var s=t?"24px":"2px";return"\n width: ".concat(i,"px;\n height: ").concat(i,"px;\n left: ").concat(s,";\n ")},function(e){return e.$loading&&"\n animation: idp-switch-thumb-spin 1s linear infinite;\n "},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Hi=f.default.div(ri||(ri=y(["\n position: absolute;\n top: 50%;\n margin-top: -6px; /* 12px 高度的一半,实现垂直居中 */\n width: ",";\n height: ",";\n z-index: 3;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &.switch-loading-icon {\n /* 外部可通过 .switch-loading-icon 选择器覆盖样式 */\n }\n\n /* SVG 旋转动画 - 以中心点旋转 */\n & > svg {\n width: 100%;\n height: 100%;\n animation: idp-switch-spin 1s linear infinite;\n transform-origin: center center;\n display: block;\n fill: ",";\n }\n\n ","\n\n ","\n"],["\n position: absolute;\n top: 50%;\n margin-top: -6px; /* 12px 高度的一半,实现垂直居中 */\n width: ",";\n height: ",";\n z-index: 3;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &.switch-loading-icon {\n /* 外部可通过 .switch-loading-icon 选择器覆盖样式 */\n }\n\n /* SVG 旋转动画 - 以中心点旋转 */\n & > svg {\n width: 100%;\n height: 100%;\n animation: idp-switch-spin 1s linear infinite;\n transform-origin: center center;\n display: block;\n fill: ",";\n }\n\n ","\n\n ","\n"])),Ii("--idp-switch-loading-size","12px"),Ii("--idp-switch-loading-size","12px"),Ii("--idp-switch-loading-color","#1890ff"),function(e){var n=e.$size,t=e.$checked,r=e.$width,i="small"===n?12:18;return r?"\n left: ".concat((t?r-i-2:2)+(i-12)/2,"px;\n "):"small"===n?"\n left: ".concat((t?14:2)+(i-12)/2,"px;\n "):"\n left: ".concat((t?24:2)+(i-12)/2,"px;\n ")},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Pi=f.default.span(ii||(ii=y(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: ",";\n display: flex;\n align-items: center;\n justify-content: flex-start;\n font-size: ",";\n color: #fff;\n white-space: nowrap;\n user-select: none;\n z-index: 1;\n padding-right: ",";\n font-weight: 500;\n letter-spacing: 0.2px;\n\n &.switch-checked-inner {\n /* 外部可通过 .switch-checked-inner 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: absolute;\n top: 0;\n bottom: 0;\n left: ",";\n display: flex;\n align-items: center;\n justify-content: flex-start;\n font-size: ",";\n color: #fff;\n white-space: nowrap;\n user-select: none;\n z-index: 1;\n padding-right: ",";\n font-weight: 500;\n letter-spacing: 0.2px;\n\n &.switch-checked-inner {\n /* 外部可通过 .switch-checked-inner 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){return"small"===e.$size?"3px":"4px"},function(e){return"small"===e.$size?"9px":"10px"},function(e){return"small"===e.$size?"14px":"20px"},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),zi=f.default.span(oi||(oi=y(["\n position: absolute;\n top: 0;\n bottom: 0;\n right: ",";\n display: flex;\n align-items: center;\n justify-content: flex-end;\n font-size: ",";\n color: ",";\n white-space: nowrap;\n user-select: none;\n z-index: 1;\n padding-left: ",";\n font-weight: 500;\n letter-spacing: 0.2px;\n\n &.switch-unchecked-inner {\n /* 外部可通过 .switch-unchecked-inner 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: absolute;\n top: 0;\n bottom: 0;\n right: ",";\n display: flex;\n align-items: center;\n justify-content: flex-end;\n font-size: ",";\n color: ",";\n white-space: nowrap;\n user-select: none;\n z-index: 1;\n padding-left: ",";\n font-weight: 500;\n letter-spacing: 0.2px;\n\n &.switch-unchecked-inner {\n /* 外部可通过 .switch-unchecked-inner 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){return"small"===e.$size?"3px":"4px"},function(e){return"small"===e.$size?"9px":"10px"},Ii("--idp-text-color-secondary","rgba(0, 0, 0, 0.65)"),function(e){return"small"===e.$size?"14px":"20px"},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Vi=function(t){var r=t.checked,i=t.defaultChecked,o=void 0!==i&&i,a=t.disabled,s=void 0!==a&&a,l=t.loading,c=void 0!==l&&l,d=t.size,u=void 0===d?"default":d,p=t.width,f=t.checkedChildren,h=t.unCheckedChildren,m=t.styles,v=t.onChange,x=t.label,b=t.labelGap,y=void 0===b?8:b,C=t.labelClassName,w=void 0===C?"":C,_=t.labelStyle,E=void 0!==r,N=n.useState(o),S=N[0],T=N[1],O=E?r:S,L=void 0!==f||void 0!==h;n.useEffect(function(){!function(){if("undefined"!=typeof document&&!document.getElementById("idp-switch-styles")){var e=document.createElement("style");e.id="idp-switch-styles",e.textContent="\n @keyframes idp-switch-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n @keyframes idp-switch-thumb-spin {\n from { transform: translateY(-50%) rotate(0deg); }\n to { transform: translateY(-50%) rotate(360deg); }\n }\n ",document.head.appendChild(e)}}()},[]);return e.jsx(ji,{className:"switch-wrapper",$styles:null==m?void 0:m.wrapper,children:e.jsxs("div",{className:"switch-label-wrapper",style:{display:"flex",alignItems:"center"},children:[x&&e.jsx("div",{className:"switch-label ".concat(w),style:g({marginRight:"number"==typeof y?"".concat(y,"px"):y},_),children:x}),e.jsxs(Ri,{className:"switch-track".concat(O?" switch-track-checked":"").concat(s?" switch-track-disabled":"").concat(c?" switch-track-loading":""),$checked:O,$disabled:s,$size:u,$loading:c,$hasChildren:L,$width:p,$styles:null==m?void 0:m.track,onClick:function(){if(!s&&!c){var e=!O;E||T(e),null==v||v(e)}},children:[c&&e.jsx(Hi,{className:"switch-loading-icon",$checked:O,$size:u,$width:p,$styles:null==m?void 0:m.loading,children:e.jsx("svg",{viewBox:"0 0 24 24",width:"12",height:"12",fill:"#1890ff",children:e.jsx("path",{d:"M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"})})}),!c&&O&&f&&e.jsx(Pi,{className:"switch-checked-inner",$size:u,$styles:null==m?void 0:m.inner,children:f}),!c&&!O&&h&&e.jsx(zi,{className:"switch-unchecked-inner",$size:u,$styles:null==m?void 0:m.inner,children:h}),e.jsx(Di,{className:"switch-thumb".concat(O?" switch-thumb-checked":""),$checked:O,$size:u,$loading:c,$hasChildren:L,$width:p,$styles:null==m?void 0:m.thumb})]})]})})},Bi=function(n){var t=n.item,r=n.isActive,i=n.isClosable,o=n.onClick,a=n.onClose,s=n.tabRefs,d=l.useSortable({id:t.key,disabled:t.disabled}),u=d.attributes,f=d.listeners,h=d.setNodeRef,m=d.transform,v=d.transition,x=d.isDragging,b={transform:c.CSS.Transform.toString(m),transition:v,opacity:x?.5:1,zIndex:x?1e3:"auto",position:"relative"};return e.jsxs("div",{ref:function(e){h(e),e?s.current.set(t.key,e):s.current.delete(t.key)},className:p.default("idp-tabs-tab",{"idp-tabs-tab--active":r,"idp-tabs-tab--disabled":t.disabled,"idp-tabs-tab--dragging":x}),role:"tab","aria-selected":r,style:b,children:[e.jsxs("div",g({className:"idp-tabs-tab__drag-handle"},u,f,{onClick:o,style:{cursor:t.disabled?"not-allowed":"grab",display:"flex",alignItems:"center",gap:"6px"},children:[t.icon&&e.jsx("span",{className:"idp-tabs-tab__icon",children:t.icon}),e.jsx("span",{className:"idp-tabs-tab__label",children:t.label})]})),i&&!t.disabled&&e.jsx("span",{className:"idp-tabs-tab__close",onClick:function(e){return a(e)},children:e.jsx(D,{type:"close",size:12})})]})},Ui=function(t){var r=t.items,i=void 0===r?[]:r,o=t.activeKey,a=t.defaultActiveKey,c=t.onChange,d=t.onClose,f=t.tabsClosable,h=void 0!==f&&f,m=t.tabPlacement,v=void 0===m?"top":m,x=t.type,b=void 0===x?"line":x,y=t.onAdd,C=t.className,w=t.style,_=t.contentClassName,E=t.contentStyle,N=t.draggable,S=void 0!==N&&N,T=t.onDragEnd,O=n.useState(function(){return a}),L=O[0],A=O[1],k=n.useRef(null),M=n.useRef(new Map),I=n.useRef(null),j=n.useState({}),R=j[0],H=j[1],P=n.useState(!1),z=P[0],V=P[1],B=n.useState(!1),U=B[0],F=B[1],Y=n.useState(!1),$=Y[0],G=Y[1],W=n.useState(!1),K=W[0],Z=W[1],X=n.useRef(!1),q=n.useRef(!0),J=n.useState(!1),Q=J[0],ee=J[1],ne=n.useState(i),te=ne[0],re=ne[1];n.useEffect(function(){void 0!==o&&A(o)},[o]),n.useEffect(function(){re(i)},[i]),n.useEffect(function(){var e;if(void 0===o){var n=null===(e=i[0])||void 0===e?void 0:e.key;if(!(!!a&&i.some(function(e){return e.key===a}))||L)if(n)i.some(function(e){return e.key===L})||A(n);else A(void 0);else A(a)}},[i,L,o,a]);var ie=void 0!==o?o:L,oe=n.useMemo(function(){return i.find(function(e){return e.key===ie})||i[0]},[i,ie]),ae=function(e,n){if(void 0===n&&(n=!0),e&&k.current){var t=M.current.get(e),r=k.current;if(t&&r){var i=r.querySelector(".idp-tabs-indicator"),o=q.current;if(i&&o&&(i.style.transition="none"),"top"===v||"bottom"===v){if(H({left:t.offsetLeft,width:t.offsetWidth,top:void 0,height:void 0}),!n){var a=t.offsetLeft,s=a+t.offsetWidth,l=r.scrollLeft,c=r.clientWidth;(a<l||s>l+c)&&t.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"})}}else H({top:t.offsetTop,height:t.offsetHeight,left:void 0,width:void 0});i&&o&&n?requestAnimationFrame(function(){i.style.transition="",q.current=!1}):o&&(q.current=!1)}}},se=u.default.useCallback(function(){if(k.current){var e=k.current,n="top"===v||"bottom"===v;if("card"===b)return V(!1),F(!1),void G(!1);if(n){var t=Math.ceil(e.scrollWidth)>Math.floor(e.clientWidth);if(V(t),t){var r=e.scrollLeft>1;F(r);var i=e.scrollWidth-e.clientWidth,o=e.scrollLeft<i-1;G(o)}else F(!1),G(!1)}else V(!1),F(!1),G(!1)}},[v,b]),le=function(e){if(k.current&&!X.current){var n=k.current,t=n.clientWidth,r=Math.max(200,.6*t);X.current=!0,"left"===e?n.scrollTo({left:n.scrollLeft-r,behavior:"smooth"}):n.scrollTo({left:n.scrollLeft+r,behavior:"smooth"}),setTimeout(function(){X.current=!1,se()},400)}};n.useEffect(function(){ie&&(ae(ie,!1),se())},[ie,i,v,se]),n.useEffect(function(){se();var e=requestAnimationFrame(function(){ie&&ae(ie,!1),se()});return function(){return cancelAnimationFrame(e)}},[se,ie]),n.useEffect(function(){var e,n=function(){ie&&ae(ie,!1),se()},t=function(){clearTimeout(e),e=setTimeout(function(){se()},100)},r=k.current;return r&&r.addEventListener("scroll",t),window.addEventListener("resize",n),function(){window.removeEventListener("resize",n),r&&r.removeEventListener("scroll",t),clearTimeout(e)}},[se,ie]),n.useEffect(function(){var e=function(){if(I.current&&k.current&&"card"===b&&y){var e=k.current,n=I.current,t=e.getBoundingClientRect(),r=n.getBoundingClientRect(),i=t.right-r.right;ee(i<=20)}else ee(!1)};e();var n=function(){e()},t=k.current;return t&&(t.addEventListener("scroll",n),window.addEventListener("resize",n)),function(){t&&t.removeEventListener("scroll",n),window.removeEventListener("resize",n)}},[b,y,i]);var ce=function(e){e.disabled||(void 0===o&&A(e.key),ae(e.key,!0),se(),null==c||c(e.key))},de=function(e,n){e.stopPropagation(),n.disabled||null==d||d(n.key)},ue=function(){null==y||y(),setTimeout(function(){k.current&&requestAnimationFrame(function(){if(k.current&&M.current.size>0){var e=Array.from(M.current.keys());if(e.length>0){var n=e[e.length-1],t=M.current.get(n),r=k.current;if(t&&r&&I.current)if("card"===b){var i=I.current.offsetWidth+4,o=t.offsetLeft+t.offsetWidth,a=r.clientWidth;if(o-r.scrollLeft>a-i){var s=o-a+i;r.scrollTo({left:s,behavior:"smooth"})}}else t.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"})}}})},100)},pe=s.useSensors(s.useSensor(s.PointerSensor,{activationConstraint:{distance:8}})),fe=function(e){},he=function(e){var n=e.active,t=e.over;if(t&&n.id!==t.id){var r=te.findIndex(function(e){return e.key===n.id}),i=te.findIndex(function(e){return e.key===t.id});if(-1!==r&&-1!==i){var o=l.arrayMove(te,r,i);re(o),null==T||T(o)}}},ge=function(){var n="top"===v||"bottom"===v,t="card"===b,r=S?te:i,o=e.jsxs("div",{className:"idp-tabs-nav-wrapper",onMouseEnter:function(){return Z(!0)},onMouseLeave:function(){return Z(!1)},children:[n&&z&&!t&&e.jsx("button",{className:p.default("idp-tabs-nav__button","idp-tabs-nav__button--left",{"idp-tabs-nav__button--disabled":!U,"idp-tabs-nav__button--visible":K}),onClick:function(){return le("left")},disabled:!U,type:"button",children:e.jsx(D,{type:"arrowLeft",size:12})}),e.jsxs("div",{className:"idp-tabs-nav",ref:k,children:[r.map(function(n){return function(n,t,r){return!S||n.disabled||"top"!==v&&"bottom"!==v?e.jsxs("div",{ref:function(e){e?M.current.set(n.key,e):M.current.delete(n.key)},className:p.default("idp-tabs-tab",{"idp-tabs-tab--active":t,"idp-tabs-tab--disabled":n.disabled}),role:"tab","aria-selected":t,onClick:function(){return ce(n)},children:[n.icon&&e.jsx("span",{className:"idp-tabs-tab__icon",children:n.icon}),e.jsx("span",{className:"idp-tabs-tab__label",children:n.label}),r&&!n.disabled&&e.jsx("span",{className:"idp-tabs-tab__close",onClick:function(e){return de(e,n)},children:e.jsx(D,{type:"close",size:12})})]},n.key):e.jsx(Bi,{item:n,isActive:t,isClosable:r,onClick:function(){return ce(n)},onClose:function(e){return de(e,n)},tabRefs:M},n.key)}(n,n.key===ie,h||n.closable||!1)}),"card"===b&&y&&e.jsx("div",{ref:I,className:p.default("idp-tabs-tab idp-tabs-tab--add",{sticky:!0===Q}),role:"tab",onClick:ue,children:e.jsx(D,{type:"plus",size:16})}),e.jsx("div",{className:"idp-tabs-indicator",style:R})]}),n&&z&&!t&&e.jsx("button",{className:p.default("idp-tabs-nav__button","idp-tabs-nav__button--right",{"idp-tabs-nav__button--disabled":!$,"idp-tabs-nav__button--visible":K}),onClick:function(){return le("right")},disabled:!$,type:"button",children:e.jsx(D,{type:"arrowRight",size:12})})]});return!S||t||"top"!==v&&"bottom"!==v?o:e.jsx(s.DndContext,{sensors:pe,collisionDetection:s.closestCenter,onDragStart:fe,onDragEnd:he,children:e.jsx(l.SortableContext,{items:r.map(function(e){return e.key}),strategy:l.horizontalListSortingStrategy,children:o})})},me=function(){var n=(null==oe?void 0:oe.renderContent)?oe.renderContent():null==oe?void 0:oe.content,t=p.default("idp-tabs-content","idp-tabs-content--".concat(v),_),r=g({},E);return e.jsx("div",{className:t,style:r,children:n})};return e.jsx("div",{className:p.default("idp-tabs","idp-tabs--".concat(v),"idp-tabs--".concat(b),C),style:w,children:"bottom"===v?e.jsxs(e.Fragment,{children:[me(),ge()]}):e.jsxs(e.Fragment,{children:[ge(),me()]})})},Fi=function(e,n){return"var(".concat(e,", ").concat(n,")")},Yi=f.default.div(ai||(ai=y(["\n display: flex;\n align-items: center;\n gap: 8px;\n\n &.transfer-wrapper {\n /* 外部可通过 .transfer-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n\n &.transfer-wrapper {\n /* 外部可通过 .transfer-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),$i=f.default.div(si||(si=y(["\n width: ",";\n height: ",";\n border: 1px solid ",";\n border-radius: ",";\n background: ",";\n display: flex;\n flex-direction: column;\n overflow: hidden;\n opacity: ",";\n /* 立体感阴影效果 */\n box-shadow:\n 0 2px 4px rgba(0, 0, 0, 0.04),\n 0 4px 8px rgba(0, 0, 0, 0.06),\n 0 8px 16px rgba(0, 0, 0, 0.04),\n inset 0 1px 0 rgba(255, 255, 255, 0.8);\n transition: box-shadow 0.3s ease, transform 0.3s ease;\n\n &.transfer-list {\n /* 外部可通过 .transfer-list 选择器覆盖样式 */\n }\n\n ","\n"],["\n width: ",";\n height: ",";\n border: 1px solid ",";\n border-radius: ",";\n background: ",";\n display: flex;\n flex-direction: column;\n overflow: hidden;\n opacity: ",";\n /* 立体感阴影效果 */\n box-shadow:\n 0 2px 4px rgba(0, 0, 0, 0.04),\n 0 4px 8px rgba(0, 0, 0, 0.06),\n 0 8px 16px rgba(0, 0, 0, 0.04),\n inset 0 1px 0 rgba(255, 255, 255, 0.8);\n transition: box-shadow 0.3s ease, transform 0.3s ease;\n\n &.transfer-list {\n /* 外部可通过 .transfer-list 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$width;return"number"==typeof n?"".concat(n,"px"):n||Fi("--transfer-list-width","200px")},function(e){var n=e.$height;return"number"==typeof n?"".concat(n,"px"):n||Fi("--transfer-height","300px")},Fi("--transfer-border-color","#d9d9d9"),Fi("--transfer-border-radius","6px"),Fi("--transfer-bg","#fff"),function(e){return e.$disabled?.6:1},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Gi=f.default.div(li||(li=y(["\n height: ",";\n padding: 0 ",";\n background: ",";\n border-bottom: 1px solid ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: ",";\n font-weight: 500;\n color: ",";\n\n &.transfer-list-header {\n /* 外部可通过 .transfer-list-header 选择器覆盖样式 */\n }\n"],["\n height: ",";\n padding: 0 ",";\n background: ",";\n border-bottom: 1px solid ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: ",";\n font-weight: 500;\n color: ",";\n\n &.transfer-list-header {\n /* 外部可通过 .transfer-list-header 选择器覆盖样式 */\n }\n"])),Fi("--transfer-header-height","40px"),Fi("--transfer-padding","12px"),Fi("--transfer-header-bg","#fafafa"),Fi("--transfer-border-color","#d9d9d9"),Fi("--transfer-header-font-size","14px"),Fi("--transfer-item-text-color","rgba(0, 0, 0, 0.85)")),Wi=f.default.div(ci||(ci=y(["\n display: flex;\n align-items: center;\n gap: 8px;\n\n .transfer-checkbox {\n cursor: pointer;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n\n .transfer-checkbox {\n cursor: pointer;\n }\n"]))),Ki=f.default.span(di||(di=y(["\n font-size: 12px;\n color: ",";\n"],["\n font-size: 12px;\n color: ",";\n"])),Fi("--transfer-description-color","rgba(0, 0, 0, 0.45)")),Zi=f.default.div(ui||(ui=y(["\n padding: 8px ",";\n border-bottom: 1px solid ",";\n display: flex;\n align-items: center;\n gap: 8px;\n box-sizing: border-box;\n width: 100%;\n\n &.transfer-search-wrapper {\n /* 外部可通过 .transfer-search-wrapper 选择器覆盖样式 */\n }\n"],["\n padding: 8px ",";\n border-bottom: 1px solid ",";\n display: flex;\n align-items: center;\n gap: 8px;\n box-sizing: border-box;\n width: 100%;\n\n &.transfer-search-wrapper {\n /* 外部可通过 .transfer-search-wrapper 选择器覆盖样式 */\n }\n"])),Fi("--transfer-padding","12px"),Fi("--transfer-border-color","#d9d9d9")),Xi=f.default.input(pi||(pi=y(["\n flex: 1;\n min-width: 0;\n height: ",";\n padding: ",";\n border: 1px solid ",";\n border-radius: 4px;\n font-size: ",";\n outline: none;\n transition: ",";\n box-sizing: border-box;\n\n &::placeholder {\n color: ",";\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:disabled {\n background: #f5f5f5;\n cursor: not-allowed;\n }\n\n ","\n"],["\n flex: 1;\n min-width: 0;\n height: ",";\n padding: ",";\n border: 1px solid ",";\n border-radius: 4px;\n font-size: ",";\n outline: none;\n transition: ",";\n box-sizing: border-box;\n\n &::placeholder {\n color: ",";\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:disabled {\n background: #f5f5f5;\n cursor: not-allowed;\n }\n\n ","\n"])),Fi("--transfer-search-height","32px"),Fi("--transfer-search-padding","0 8px"),Fi("--transfer-search-border","#d9d9d9"),Fi("--transfer-font-size","14px"),Fi("--transfer-transition","all 0.3s"),Fi("--transfer-search-placeholder-color","rgba(0, 0, 0, 0.45)"),Fi("--transfer-search-focus-border","#1890ff"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),qi=f.default.button(fi||(fi=y(["\n width: 32px;\n min-width: 32px;\n height: ",";\n border: 1px solid ",";\n border-radius: 4px;\n background: ",";\n cursor: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n transition: ",";\n opacity: ",";\n flex-shrink: 0;\n padding: 0;\n box-sizing: border-box;\n\n &:hover:not(:disabled) {\n border-color: ",";\n color: ",";\n }\n\n &:disabled {\n background: #f5f5f5;\n }\n\n /* 搜索图标 */\n .search-icon {\n width: 16px;\n height: 16px;\n }\n"],["\n width: 32px;\n min-width: 32px;\n height: ",";\n border: 1px solid ",";\n border-radius: 4px;\n background: ",";\n cursor: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n transition: ",";\n opacity: ",";\n flex-shrink: 0;\n padding: 0;\n box-sizing: border-box;\n\n &:hover:not(:disabled) {\n border-color: ",";\n color: ",";\n }\n\n &:disabled {\n background: #f5f5f5;\n }\n\n /* 搜索图标 */\n .search-icon {\n width: 16px;\n height: 16px;\n }\n"])),Fi("--transfer-search-height","32px"),Fi("--transfer-search-border","#d9d9d9"),Fi("--transfer-bg","#fff"),function(e){return e.$disabled?"not-allowed":"pointer"},Fi("--transfer-transition","all 0.3s"),function(e){return e.$disabled?.6:1},Fi("--transfer-search-focus-border","#1890ff"),Fi("--transfer-search-focus-border","#1890ff")),Ji=f.default.div(hi||(hi=y(["\n flex: 1;\n overflow-y: auto;\n padding: 4px 0;\n\n &.transfer-list-body {\n /* 外部可通过 .transfer-list-body 选择器覆盖样式 */\n }\n\n /* 滚动条样式 - 淡色精致设计 */\n &::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n border: 2px solid transparent;\n background-clip: padding-box;\n transition: background 0.2s ease;\n\n &:hover {\n background: rgba(0, 0, 0, 0.25);\n }\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n border-radius: 4px;\n }\n\n &::-webkit-scrollbar-corner {\n background: transparent;\n }\n"],["\n flex: 1;\n overflow-y: auto;\n padding: 4px 0;\n\n &.transfer-list-body {\n /* 外部可通过 .transfer-list-body 选择器覆盖样式 */\n }\n\n /* 滚动条样式 - 淡色精致设计 */\n &::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n border: 2px solid transparent;\n background-clip: padding-box;\n transition: background 0.2s ease;\n\n &:hover {\n background: rgba(0, 0, 0, 0.25);\n }\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n border-radius: 4px;\n }\n\n &::-webkit-scrollbar-corner {\n background: transparent;\n }\n"]))),Qi=f.default.div(gi||(gi=y(["\n height: ",";\n padding: ",";\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: ",";\n transition: ",";\n font-size: ",";\n color: ",";\n background: ",";\n\n &:hover {\n background: ",";\n }\n\n &.transfer-list-item {\n /* 外部可通过 .transfer-list-item 选择器覆盖样式 */\n }\n\n ","\n"],["\n height: ",";\n padding: ",";\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: ",";\n transition: ",";\n font-size: ",";\n color: ",";\n background: ",";\n\n &:hover {\n background: ",";\n }\n\n &.transfer-list-item {\n /* 外部可通过 .transfer-list-item 选择器覆盖样式 */\n }\n\n ","\n"])),Fi("--transfer-item-height","32px"),Fi("--transfer-item-padding","0 12px"),function(e){return e.$disabled?"not-allowed":"pointer"},Fi("--transfer-transition","all 0.3s"),Fi("--transfer-item-font-size","14px"),function(e){return e.$disabled?Fi("--transfer-item-disabled-color","rgba(0, 0, 0, 0.25)"):Fi("--transfer-item-text-color","rgba(0, 0, 0, 0.85)")},function(e){return e.$selected?Fi("--transfer-item-selected-bg","#e6f7ff"):"transparent"},function(e){var n=e.$disabled,t=e.$selected;return n?"transparent":t?Fi("--transfer-item-selected-bg","#e6f7ff"):Fi("--transfer-item-hover-bg","#f5f5f5")},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),eo=f.default.span(mi||(mi=y(["\n width: 16px;\n height: 16px;\n border: 1px solid\n ",";\n border-radius: 2px;\n background: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: all 0.3s;\n\n &::after {\n content: ",";\n font-size: ",";\n color: #fff;\n transform: scale(",");\n transition: all 0.2s;\n line-height: 1;\n font-weight: ",";\n }\n"],["\n width: 16px;\n height: 16px;\n border: 1px solid\n ",";\n border-radius: 2px;\n background: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: all 0.3s;\n\n &::after {\n content: ",";\n font-size: ",";\n color: #fff;\n transform: scale(",");\n transition: all 0.2s;\n line-height: 1;\n font-weight: ",";\n }\n"])),function(e){var n=e.$checked,t=e.$indeterminate;return n||t?"#1890ff":"#d9d9d9"},function(e){var n=e.$checked,t=e.$indeterminate;return n||t?"#1890ff":"#fff"},function(e){var n=e.$checked;return e.$indeterminate?"'−'":n?"'✓'":"''"},function(e){return e.$indeterminate?"14px":"12px"},function(e){var n=e.$checked,t=e.$indeterminate;return n||t?1:0},function(e){return e.$indeterminate?"bold":"normal"}),no=f.default.span(vi||(vi=y(["\n width: 16px;\n height: 16px;\n border: 1px solid ",";\n border-radius: 2px;\n background: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: all 0.3s;\n\n &::after {\n content: '✓';\n font-size: 12px;\n color: #fff;\n transform: scale(",");\n transition: all 0.2s;\n line-height: 1;\n }\n"],["\n width: 16px;\n height: 16px;\n border: 1px solid ",";\n border-radius: 2px;\n background: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: all 0.3s;\n\n &::after {\n content: '✓';\n font-size: 12px;\n color: #fff;\n transform: scale(",");\n transition: all 0.2s;\n line-height: 1;\n }\n"])),function(e){return e.$checked?"#1890ff":"#d9d9d9"},function(e){return e.$checked?"#1890ff":"#fff"},function(e){return e.$checked?1:0}),to=f.default.span(xi||(xi=y(["\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]))),ro=f.default.div(bi||(bi=y(["\n padding: 8px ",";\n border-top: 1px solid ",";\n font-size: ",";\n color: ",";\n min-height: 20px;\n display: flex;\n align-items: center;\n\n &.transfer-list-footer {\n /* 外部可通过 .transfer-list-footer 选择器覆盖样式 */\n }\n"],["\n padding: 8px ",";\n border-top: 1px solid ",";\n font-size: ",";\n color: ",";\n min-height: 20px;\n display: flex;\n align-items: center;\n\n &.transfer-list-footer {\n /* 外部可通过 .transfer-list-footer 选择器覆盖样式 */\n }\n"])),Fi("--transfer-padding","12px"),Fi("--transfer-border-color","#d9d9d9"),Fi("--transfer-description-font-size","12px"),Fi("--transfer-description-color","rgba(0, 0, 0, 0.45)")),io=f.default.div(yi||(yi=y(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: ",";\n align-items: center;\n\n &.transfer-operation {\n /* 外部可通过 .transfer-operation 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: ",";\n align-items: center;\n\n &.transfer-operation {\n /* 外部可通过 .transfer-operation 选择器覆盖样式 */\n }\n\n ","\n"])),Fi("--transfer-operation-width","40px"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),oo=f.default.button(Ci||(Ci=y(["\n width: 32px;\n height: 28px;\n border: 1px solid ",";\n border-radius: 4px;\n background: ",";\n cursor: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n transition: ",";\n opacity: ",";\n\n &:hover:not(:disabled) {\n background: ",";\n border-color: ",";\n color: #1890ff;\n }\n\n &:disabled {\n background: ",";\n color: ",";\n }\n\n /* 箭头图标 - 使用字符 */\n &::before {\n content: ",";\n font-size: 14px;\n font-weight: 600;\n line-height: 1;\n color: inherit;\n }\n"],["\n width: 32px;\n height: 28px;\n border: 1px solid ",";\n border-radius: 4px;\n background: ",";\n cursor: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n transition: ",";\n opacity: ",";\n\n &:hover:not(:disabled) {\n background: ",";\n border-color: ",";\n color: #1890ff;\n }\n\n &:disabled {\n background: ",";\n color: ",";\n }\n\n /* 箭头图标 - 使用字符 */\n &::before {\n content: ",";\n font-size: 14px;\n font-weight: 600;\n line-height: 1;\n color: inherit;\n }\n"])),Fi("--transfer-operation-border","#d9d9d9"),Fi("--transfer-operation-bg","#f5f5f5"),function(e){return e.$disabled?"not-allowed":"pointer"},Fi("--transfer-transition","all 0.3s"),function(e){return e.$disabled?.6:1},Fi("--transfer-operation-hover-bg","#e6f7ff"),Fi("--transfer-operation-hover-border","#1890ff"),Fi("--transfer-operation-disabled-bg","#f5f5f5"),Fi("--transfer-operation-disabled-color","rgba(0, 0, 0, 0.25)"),function(e){return"right"===e.$direction?"'>'":"'<'"}),ao=f.default.div(wi||(wi=y(["\n padding: 32px 0;\n text-align: center;\n color: ",";\n font-size: ",";\n\n &.transfer-empty {\n /* 外部可通过 .transfer-empty 选择器覆盖样式 */\n }\n"],["\n padding: 32px 0;\n text-align: center;\n color: ",";\n font-size: ",";\n\n &.transfer-empty {\n /* 外部可通过 .transfer-empty 选择器覆盖样式 */\n }\n"])),Fi("--transfer-description-color","rgba(0, 0, 0, 0.45)"),Fi("--transfer-font-size","14px")),so=f.default.div(_i||(_i=y(["\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 32px 0;\n\n &.transfer-loading {\n /* 外部可通过 .transfer-loading 选择器覆盖样式 */\n }\n"],["\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 32px 0;\n\n &.transfer-loading {\n /* 外部可通过 .transfer-loading 选择器覆盖样式 */\n }\n"]))),lo=f.default.div(Ei||(Ei=y(["\n width: 32px;\n height: 32px;\n border: 3px solid ",";\n border-top-color: ",";\n border-radius: 50%;\n animation: transfer-spin 0.8s linear infinite;\n\n @keyframes transfer-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n"],["\n width: 32px;\n height: 32px;\n border: 3px solid ",";\n border-top-color: ",";\n border-radius: 50%;\n animation: transfer-spin 0.8s linear infinite;\n\n @keyframes transfer-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n"])),Fi("--transfer-loading-track-color","#f0f0f0"),Fi("--transfer-loading-spinner-color","#1890ff")),co=function(e,n,t){return n?e[n]:e[t]},uo=function(e,n){return co(e,null==n?void 0:n.key,"key")},po=function(e,n){return co(e,null==n?void 0:n.title,"title")},fo=function(t){var r=t.dataSource,i=t.fieldNames,o=t.selectedKeys,a=t.showSearch,s=t.disabled,l=t.title,c=t.description,d=t.searchPlaceholder,u=void 0===d?"请输入搜索内容":d,p=t.filterOption,f=t.styles,h=t.listHeight,g=t.listWidth,m=t.header,v=t.search,x=t.body,y=t.onSelectChange,C=t.onSearch,w=t.render,_=t.footer,E=t.direction,N=t.rowClassName,S=t.loading,T=t.loadingRender,O=t.loadingDelay,L=t.sourceSelectedKeys,A=t.targetSelectedKeys,k=n.useState(""),M=k[0],I=k[1],j=n.useState(S),R=j[0],H=j[1],P=n.useRef(null);n.useEffect(function(){return P.current&&(clearTimeout(P.current),P.current=null),S&&O&&O>0?(H(!0),P.current=setTimeout(function(){H(!1)},O)):H(S),function(){P.current&&clearTimeout(P.current)}},[S,O]);var z=n.useMemo(function(){return M?p?r.filter(function(e){return p(M,e)}):r.filter(function(e){var n=po(e,i),t=null!=n?String(n):"";if(t)return t.toLowerCase().includes(M.toLowerCase());var r=M.toLowerCase();return Object.keys(e).some(function(n){var t=e[n];return"key"!==n&&"disabled"!==n&&(null!=t&&String(t).toLowerCase().includes(r))})}):r},[r,M,p,i]),V=n.useMemo(function(){var e=z.filter(function(e){return!e.disabled});return 0!==e.length&&e.every(function(e){return o.includes(uo(e,i))})},[z,o,i]),B=n.useMemo(function(){var e=z.filter(function(e){return!e.disabled});if(0===e.length)return!1;var n=e.filter(function(e){return o.includes(uo(e,i))}).length;return n>0&&n<e.length},[z,o,i]),U=n.useCallback(function(){if(!s){var e=z.filter(function(e){return!e.disabled}).map(function(e){return uo(e,i)});if(V){var n=o.filter(function(n){return!e.includes(n)});"left"===E?y(n,A):y(L,n)}else{var t=b(b([],o,!0),e,!0);n=t.filter(function(e,n){return t.indexOf(e)===n});"left"===E?y(n,A):y(L,n)}}},[s,z,o,V,y,i,E,L,A]),F=n.useCallback(function(e){if(!s&&!e.disabled){var n,t=uo(e,i),r=o.indexOf(t);n=r>-1?b(b([],o.slice(0,r),!0),o.slice(r+1),!0):b(b([],o,!0),[t],!1),"left"===E?y(n,A):y(L,n)}},[s,o,y,i,E,L,A]),Y=n.useCallback(function(e){var n=e.target.value;I(n)},[]),$=n.useCallback(function(){null==C||C(M)},[C,M]),G=n.useCallback(function(e){"Enter"===e.key&&$()},[$]),W=n.useCallback(function(){$()},[$]),K=n.useMemo(function(){var e=o.length,n=r.length;return"".concat(e,"/").concat(n)},[o,r]);return e.jsxs($i,{className:"transfer-list",$disabled:s,$styles:null==f?void 0:f.list,$height:h,$width:g,children:[function(){if(m){var n=m({direction:E,dataSource:r,selectedKeys:o,sourceSelectedKeys:L,targetSelectedKeys:A});return null===n?null:n}return e.jsxs(Gi,{className:"transfer-list-header",children:[e.jsxs(Wi,{children:[e.jsx(eo,{className:"transfer-checkbox",$checked:V,$indeterminate:B,$disabled:s||0===z.length,onClick:U,style:{opacity:s||0===z.length?.6:1}}),e.jsx("span",{children:l})]}),e.jsx(Ki,{children:K})]})}(),a&&null!==m&&e.jsx(Zi,{className:"transfer-search-wrapper",children:v?v({direction:E,value:M,onChange:function(e){I(e),null==C||C(e)},disabled:s}):e.jsxs(e.Fragment,{children:[e.jsx(Xi,{type:"text",placeholder:u,value:M,onChange:Y,onKeyDown:G,disabled:s,$styles:null==f?void 0:f.search}),e.jsx(qi,{onClick:W,disabled:s,$disabled:s,"aria-label":"搜索",children:e.jsx(D,{type:"search",size:"small",color:s?"#bfbfbf":"#1890ff"})})]})}),x?x({direction:E,dataSource:z,selectedKeys:o,sourceSelectedKeys:L,targetSelectedKeys:A,onSelectChange:y}):R?e.jsx(so,{className:"transfer-loading",children:T?T():e.jsx(lo,{className:"transfer-loading-spinner"})}):e.jsx(Ji,{className:"transfer-list-body",children:z.length>0?z.map(function(n){var t=uo(n,i),r=o.includes(t),a=(null==N?void 0:N(n))||"";return e.jsxs(Qi,{className:"transfer-list-item ".concat(a),$selected:r,$disabled:s||n.disabled,$styles:null==f?void 0:f.item,onClick:function(){return F(n)},children:[e.jsx(no,{$checked:r}),e.jsx(to,{children:w?w(n):po(n,i)})]},t)}):e.jsx(ao,{className:"transfer-empty",children:"暂无数据"})}),(c||_)&&e.jsx(ro,{className:"transfer-list-footer",children:_?_({direction:E}):c})]})},ho=function(n){var t=n.moveToRightDisabled,r=n.moveToLeftDisabled,i=n.onMoveToRight,o=n.onMoveToLeft,a=n.style;return e.jsxs(io,{className:"transfer-operation",$styles:a,children:[e.jsx(oo,{type:"button",$direction:"right",$disabled:t,onClick:i,disabled:t,"aria-label":"移动到右侧"}),e.jsx(oo,{type:"button",$direction:"left",$disabled:r,onClick:o,disabled:r,"aria-label":"移动到左侧"})]})},go=function(t){var r=t.dataSource,i=t.fieldNames,o=t.targetKeys,a=t.defaultTargetKeys,s=void 0===a?[]:a,l=t.selectedKeys,c=t.defaultSelectedKeys,d=void 0===c?[]:c,u=t.showSearch,p=void 0!==u&&u,f=t.disabled,h=void 0!==f&&f,g=t.leftTitle,m=void 0===g?"源列表":g,v=t.rightTitle,x=void 0===v?"目标列表":v,y=t.leftDescription,C=t.rightDescription,w=t.filterOption,_=t.styles,E=t.listHeight,N=t.listWidth,S=t.header,T=t.search,O=t.body,L=t.onSelectChange,A=t.onChange,k=t.onSearch,M=t.render,I=t.footer,j=t.rowClassName,R=t.mode,D=void 0===R?"transfer":R,H=t.loading,P=void 0!==H&&H,z=t.loadingRender,V=t.loadingDelay,B=void 0!==o,U=void 0!==l,F=n.useState(s),Y=F[0],$=F[1],G=n.useState(d),W=G[0],K=G[1],Z=n.useState([]),X=Z[0],q=Z[1],J=B?o:Y,Q=U?l.filter(function(e){return!J.includes(e)}):W,ee=U?l.filter(function(e){return J.includes(e)}):X,ne=n.useMemo(function(){return r.filter(function(e){return!J.includes(uo(e,i))})},[r,J,i]),te=n.useMemo(function(){return r.filter(function(e){return J.includes(uo(e,i))})},[r,J,i]),re=n.useCallback(function(e,n){U||K(e),null==L||L(e,n)},[U,L]),ie=n.useCallback(function(e,n){U||q(n),null==L||L(e,n)},[U,L]),oe=n.useCallback(function(){if(0!==Q.length){var e=b(b([],J,!0),Q,!0),n=b([],Q,!0);B||($(e),K([])),null==A||A(e,"right",n)}},[Q,J,B,A]),ae=n.useCallback(function(){if(0!==ee.length){var e=J.filter(function(e){return!ee.includes(e)}),n=b([],ee,!0);B||($(e),q([])),null==A||A(e,"left",n)}},[ee,J,B,A]),se=n.useCallback(function(e){null==k||k("left",e)},[k]),le=n.useCallback(function(e){null==k||k("right",e)},[k]),ce=h||0===Q.length,de=h||0===ee.length,ue=n.useCallback(function(e,n){var t=e;B||$(t),null==A||A(t,"right",t),null==L||L([],t)},[B,A,L]),pe=n.useMemo(function(){return r},[r]),fe=n.useMemo(function(){return U?l.filter(function(e){return J.includes(e)}):J},[U,l,J]);return e.jsx(Yi,{className:"transfer-wrapper",$styles:null==_?void 0:_.wrapper,children:"single"===D?e.jsx(fo,{direction:"left",dataSource:pe,fieldNames:i,selectedKeys:fe,showSearch:p,disabled:h,title:m,description:y,filterOption:w,styles:_,listHeight:E,listWidth:N,header:S,search:T,body:O,onSelectChange:ue,onSearch:se,render:M,footer:I,rowClassName:j,loading:P,loadingRender:z,loadingDelay:V,sourceSelectedKeys:[],targetSelectedKeys:fe}):e.jsxs(e.Fragment,{children:[e.jsx(fo,{direction:"left",dataSource:ne,fieldNames:i,selectedKeys:Q,showSearch:p,disabled:h,title:m,description:y,filterOption:w,styles:_,listHeight:E,listWidth:N,header:S,search:T,body:O,onSelectChange:re,onSearch:se,render:M,footer:I,rowClassName:j,loading:P,loadingRender:z,loadingDelay:V,sourceSelectedKeys:Q,targetSelectedKeys:ee}),e.jsx(ho,{moveToRightDisabled:ce,moveToLeftDisabled:de,onMoveToRight:oe,onMoveToLeft:ae,style:null==_?void 0:_.operation}),e.jsx(fo,{direction:"right",dataSource:te,fieldNames:i,selectedKeys:ee,showSearch:p,disabled:h,title:x,description:C,filterOption:w,styles:_,listHeight:E,listWidth:N,header:S,search:T,body:O,onSelectChange:ie,onSearch:le,render:M,footer:I,rowClassName:j,loading:P,loadingRender:z,loadingDelay:V,sourceSelectedKeys:Q,targetSelectedKeys:ee})]})})},mo=f.default.label(Ni||(Ni=y(["\n /* 基础样式 */\n background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);\n padding: 10px 16px;\n padding-right: var(--label-padding-right, 16px);\n padding-left: 16px;\n border-radius: 8px;\n position: relative;\n display: inline-flex;\n align-items: center;\n font-weight: 600;\n font-size: 14px;\n color: #262626;\n letter-spacing: 0.3px;\n \n /* 阴影效果 */\n box-shadow: \n 0 2px 8px rgba(0, 0, 0, 0.06),\n 0 1px 2px rgba(0, 0, 0, 0.04);\n \n /* 平滑过渡 */\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n \n /* 悬停效果 */\n &:hover {\n background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);\n box-shadow: \n 0 4px 16px rgba(0, 0, 0, 0.1),\n 0 2px 4px rgba(0, 0, 0, 0.06);\n // transform: translateY(-1px);\n }\n \n /* 指示器样式 - 渐变条 */\n &::before {\n content: '';\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n width: var(--label-indicator-width, 4px);\n height: var(--label-indicator-height, 70%);\n background: linear-gradient(\n 180deg,\n var(--label-indicator-color, #1890ff) 0%,\n rgba(24, 144, 255, 0.6) 100%\n );\n border-radius: 0 4px 4px 0;\n box-shadow: 2px 0 8px rgba(24, 144, 255, 0.3);\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n }\n \n /* 悬停时指示器效果 */\n &:hover::before {\n width: calc(var(--label-indicator-width, 4px) + 1px);\n box-shadow: 3px 0 12px rgba(24, 144, 255, 0.4);\n filter: brightness(1.1);\n }\n \n /* 光晕装饰 */\n &::after {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n width: 60px;\n height: 100%;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n rgba(255, 255, 255, 0.4) 50%,\n transparent 100%\n );\n border-radius: 0 8px 8px 0;\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.3s ease;\n }\n \n &:hover::after {\n opacity: 1;\n }\n"],["\n /* 基础样式 */\n background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);\n padding: 10px 16px;\n padding-right: var(--label-padding-right, 16px);\n padding-left: 16px;\n border-radius: 8px;\n position: relative;\n display: inline-flex;\n align-items: center;\n font-weight: 600;\n font-size: 14px;\n color: #262626;\n letter-spacing: 0.3px;\n \n /* 阴影效果 */\n box-shadow: \n 0 2px 8px rgba(0, 0, 0, 0.06),\n 0 1px 2px rgba(0, 0, 0, 0.04);\n \n /* 平滑过渡 */\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n \n /* 悬停效果 */\n &:hover {\n background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);\n box-shadow: \n 0 4px 16px rgba(0, 0, 0, 0.1),\n 0 2px 4px rgba(0, 0, 0, 0.06);\n // transform: translateY(-1px);\n }\n \n /* 指示器样式 - 渐变条 */\n &::before {\n content: '';\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n width: var(--label-indicator-width, 4px);\n height: var(--label-indicator-height, 70%);\n background: linear-gradient(\n 180deg,\n var(--label-indicator-color, #1890ff) 0%,\n rgba(24, 144, 255, 0.6) 100%\n );\n border-radius: 0 4px 4px 0;\n box-shadow: 2px 0 8px rgba(24, 144, 255, 0.3);\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n }\n \n /* 悬停时指示器效果 */\n &:hover::before {\n width: calc(var(--label-indicator-width, 4px) + 1px);\n box-shadow: 3px 0 12px rgba(24, 144, 255, 0.4);\n filter: brightness(1.1);\n }\n \n /* 光晕装饰 */\n &::after {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n width: 60px;\n height: 100%;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n rgba(255, 255, 255, 0.4) 50%,\n transparent 100%\n );\n border-radius: 0 8px 8px 0;\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.3s ease;\n }\n \n &:hover::after {\n opacity: 1;\n }\n"]))),vo=function(n){var t=n.title,r=n.indicatorColor,i=void 0===r?"blue":r,o=n.indicatorWidth,a=void 0===o?"3px":o,s=n.indicatorHeight,l=void 0===s?"100%":s,c=n.paddingRight,d=void 0===c?"8px":c,u=n.style,p=function(e){return void 0===e?"":"number"==typeof e?"".concat(e,"px"):e},f={"--label-indicator-color":i,"--label-indicator-width":p(a),"--label-indicator-height":p(l),"--label-padding-right":p(d)},h=g(g({},f),u);return e.jsx(mo,{className:"label-wrapper",style:h,children:t||null})},xo=function(e,n){return"var(".concat(e,", ").concat(n,")")},bo=f.default.div(No||(No=y(["\n display: flex;\n flex-direction: column;\n min-height: ",";\n max-height: 100vh;\n background: ",";\n box-sizing: border-box;\n position: relative;\n overflow: hidden;\n flex: 1;\n\n &.layout-wrapper {\n /* 外部可通过 .layout-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n flex-direction: column;\n min-height: ",";\n max-height: 100vh;\n background: ",";\n box-sizing: border-box;\n position: relative;\n overflow: hidden;\n flex: 1;\n\n &.layout-wrapper {\n /* 外部可通过 .layout-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),xo("--layout-min-height","100vh"),function(e){return"dark"===e.$theme?"linear-gradient(180deg, ".concat(xo("--layout-bg-dark","#000")," 0%, ").concat(xo("--idp-text-color","rgba(0, 0, 0, 0.85)")," 100%)"):"linear-gradient(180deg, ".concat(xo("--layout-bg-light","#f5f5f5")," 0%, ").concat(xo("--idp-bg-color","#fafafa")," 100%)")},function(e){return e.$hasSider&&"\n flex-direction: row;\n align-items: stretch;\n "}),yo=f.default.header(So||(So=y(["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: ",";\n background: ",";\n color: ",";\n height: ",";\n z-index: ",";\n transition: ",";\n box-sizing: border-box;\n\n &.layout-header-light {\n border-bottom: ",";\n }\n\n &.layout-header-dark {\n border-bottom: 1px solid transparent;\n }\n\n &.layout-header {\n /* 外部可通过 .layout-header 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: ",";\n background: ",";\n color: ",";\n height: ",";\n z-index: ",";\n transition: ",";\n box-sizing: border-box;\n\n &.layout-header-light {\n border-bottom: ",";\n }\n\n &.layout-header-dark {\n border-bottom: 1px solid transparent;\n }\n\n &.layout-header {\n /* 外部可通过 .layout-header 选择器覆盖样式 */\n }\n\n ","\n"])),xo("--layout-header-padding","0 24px"),function(e){return"dark"===e.$theme?"linear-gradient(135deg, ".concat(xo("--layout-header-bg-dark","#001529")," 0%, #002140 100%)"):"linear-gradient(135deg, ".concat(xo("--layout-header-bg-light","#fff")," 0%, ").concat(xo("--idp-bg-color","#fafafa")," 100%)")},function(e){return"dark"===e.$theme?xo("--layout-header-color-dark","#fff"):xo("--layout-header-color-light","rgba(0, 0, 0, 0.85)")},function(e){var n=e.$height;return"number"==typeof n?"".concat(n,"px"):n||xo("--layout-header-height","60px")},xo("--layout-header-z-index","10"),xo("--layout-header-transition","all 0.2s ease-in-out"),function(e){var n=e.$bgColor;return"1px solid ".concat(n)},function(e){return e.$fixed&&"\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n box-shadow: ".concat(xo("--layout-header-box-shadow","0 2px 8px rgba(0, 0, 0, 0.15)"),";\n ")}),Co=f.default.aside(To||(To=y(["\n display: flex;\n flex-direction: column;\n background: ",";\n color: ",";\n z-index: ",";\n transition: ",";\n flex: ",";\n box-sizing: border-box;\n border-right: ",";\n box-shadow: ",";\n\n\n &.layout-sider {\n /* 外部可通过 .layout-sider 选择器覆盖样式 */\n }\n\n /* 让子元素占据剩余空间,使 trigger 可以固定在底部 */\n & > *:not(.layout-sider-trigger) {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n\n ","\n\n ","\n\n /* ============================================\n 集成 Menu 组件样式 - 与 Menu.css 保持一致\n ============================================ */\n \n /* 覆盖 Menu 组件基础样式 */\n .idp-menu {\n background: transparent;\n }\n\n /* Menu 菜单项在 Sider 中的样式 - 覆盖默认样式 */\n .idp-menu-item {\n border-radius: ",";\n \n /* Light 主题 - 与 Menu.css 保持一致 */\n &.light {\n color: ",";\n \n &:hover:not(.disabled) {\n background: ",";\n color: ",";\n }\n \n &.selected {\n background-color: ",";\n color: ",";\n box-shadow: inset 3px 0 0 ",";\n font-weight: 600;\n \n &:hover {\n background-color: ",";\n }\n }\n }\n \n /* Dark 主题 - 与 Menu.css 保持一致 */\n &.dark {\n color: rgba(255, 255, 255, 0.85);\n \n &:hover:not(.disabled) {\n background-color: rgba(255, 255, 255, 0.08);\n color: #fff;\n }\n \n &.selected {\n background-color: rgba(24, 144, 255, 0.25);\n color: #fff;\n box-shadow: inset 3px 0 0 ",";\n font-weight: 600;\n \n &:hover {\n background-color: rgba(24, 144, 255, 0.35);\n }\n }\n }\n }\n\n /* 子菜单样式 */\n .idp-menu-submenu {\n .idp-menu-item {\n margin: 0px;\n }\n }\n\n /* Dark 主题下的子菜单样式 */\n .idp-menu-submenu.horizontal-popup,\n .idp-menu-submenu.horizontal-popup .idp-menu-submenu {\n background: linear-gradient(135deg, #001529 0%, #002140 100%);\n border: 1px solid #303030;\n }\n\n /* Dark 主题下子菜单中的菜单项 */\n .idp-menu-submenu .idp-menu-item.dark {\n color: rgba(255, 255, 255, 0.85);\n \n &:hover:not(.disabled) {\n background-color: rgba(255, 255, 255, 0.08);\n color: #fff;\n }\n \n &.selected {\n background-color: rgba(24, 144, 255, 0.25);\n color: #fff;\n }\n }\n"],["\n display: flex;\n flex-direction: column;\n background: ",";\n color: ",";\n z-index: ",";\n transition: ",";\n flex: ",";\n box-sizing: border-box;\n border-right: ",";\n box-shadow: ",";\n\n\n &.layout-sider {\n /* 外部可通过 .layout-sider 选择器覆盖样式 */\n }\n\n /* 让子元素占据剩余空间,使 trigger 可以固定在底部 */\n & > *:not(.layout-sider-trigger) {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n\n ","\n\n ","\n\n /* ============================================\n 集成 Menu 组件样式 - 与 Menu.css 保持一致\n ============================================ */\n \n /* 覆盖 Menu 组件基础样式 */\n .idp-menu {\n background: transparent;\n }\n\n /* Menu 菜单项在 Sider 中的样式 - 覆盖默认样式 */\n .idp-menu-item {\n border-radius: ",";\n \n /* Light 主题 - 与 Menu.css 保持一致 */\n &.light {\n color: ",";\n \n &:hover:not(.disabled) {\n background: ",";\n color: ",";\n }\n \n &.selected {\n background-color: ",";\n color: ",";\n box-shadow: inset 3px 0 0 ",";\n font-weight: 600;\n \n &:hover {\n background-color: ",";\n }\n }\n }\n \n /* Dark 主题 - 与 Menu.css 保持一致 */\n &.dark {\n color: rgba(255, 255, 255, 0.85);\n \n &:hover:not(.disabled) {\n background-color: rgba(255, 255, 255, 0.08);\n color: #fff;\n }\n \n &.selected {\n background-color: rgba(24, 144, 255, 0.25);\n color: #fff;\n box-shadow: inset 3px 0 0 ",";\n font-weight: 600;\n \n &:hover {\n background-color: rgba(24, 144, 255, 0.35);\n }\n }\n }\n }\n\n /* 子菜单样式 */\n .idp-menu-submenu {\n .idp-menu-item {\n margin: 0px;\n }\n }\n\n /* Dark 主题下的子菜单样式 */\n .idp-menu-submenu.horizontal-popup,\n .idp-menu-submenu.horizontal-popup .idp-menu-submenu {\n background: linear-gradient(135deg, #001529 0%, #002140 100%);\n border: 1px solid #303030;\n }\n\n /* Dark 主题下子菜单中的菜单项 */\n .idp-menu-submenu .idp-menu-item.dark {\n color: rgba(255, 255, 255, 0.85);\n \n &:hover:not(.disabled) {\n background-color: rgba(255, 255, 255, 0.08);\n color: #fff;\n }\n \n &.selected {\n background-color: rgba(24, 144, 255, 0.25);\n color: #fff;\n }\n }\n"])),function(e){var n=e.$theme,t=e.style;return void 0!==(null==t?void 0:t.background)?t.background:"dark"===n?"linear-gradient(180deg, ".concat(xo("--layout-sider-bg-dark","#001529")," 0%, #002140 100%)"):"linear-gradient(180deg, ".concat(xo("--layout-sider-bg-light","#fff")," 0%, ").concat(xo("--idp-bg-color","#fafafa")," 100%)")},function(e){var n=e.$theme,t=e.style;return void 0!==(null==t?void 0:t.color)?t.color:"dark"===n?xo("--layout-sider-color-dark","#fff"):xo("--layout-sider-color-light","rgba(0, 0, 0, 0.85)")},xo("--layout-sider-z-index","10"),xo("--layout-sider-transition","all 0.2s ease-in-out"),xo("--layout-sider-flex","0 0 200px"),function(e){return"dark"===e.$theme?"var(--layout-sider-border, 1px solid #303030)":"var(--layout-sider-border, 1px solid ".concat(xo("--idp-border-color-light","#f0f0f0"),")")},function(e){return"dark"===e.$theme?"2px 0 8px rgba(0, 0, 0, 0.3)":xo("--idp-shadow-sm","0 2px 8px rgba(0, 0, 0, 0.08)")},function(e){var n=e.$width,t=e.$collapsedWidth,r=e.$collapsed,i="number"==typeof n?"".concat(n,"px"):n||xo("--layout-sider-width","200px"),o=void 0!==t?"".concat(t,"px"):xo("--layout-sider-collapsed-width","60px");return"\n width: ".concat(r?o:i,";\n min-width: ").concat(r?o:i,";\n max-width: ").concat(r?o:i,";\n ")},function(e){return e.$fixed&&"\n position: fixed;\n top: ".concat(xo("--layout-header-height","64px"),";\n left: 0;\n bottom: 0;\n overflow-y: auto;\n box-shadow: ").concat(xo("--layout-sider-box-shadow","0 4px 12px rgba(0, 0, 0, 0.15)"),";\n ")},xo("--idp-border-radius-sm","4px"),xo("--idp-text-color","rgba(0, 0, 0, 0.85)"),xo("--idp-primary-light-color","rgba(24, 144, 255, 0.06)"),xo("--idp-primary-color","#1890ff"),xo("--idp-primary-light-color","rgba(24, 144, 255, 0.12)"),xo("--idp-primary-color","#1890ff"),xo("--idp-primary-color","#1890ff"),xo("--idp-primary-light-color","rgba(24, 144, 255, 0.18)"),xo("--idp-primary-color","#1890ff")),wo=f.default.div(Oo||(Oo=y(["\n flex: 1;\n overflow-y: auto;\n overflow-x: ",";\n\n /* 内容过渡动画 */\n & > * {\n transition: all "," ease;\n }\n\n /* 收缩状态下的内容样式 */\n ","\n"],["\n flex: 1;\n overflow-y: auto;\n overflow-x: ",";\n\n /* 内容过渡动画 */\n & > * {\n transition: all "," ease;\n }\n\n /* 收缩状态下的内容样式 */\n ","\n"])),function(e){return e.$collapsed?"visible":"hidden"},xo("--idp-transition-duration","0.2s"),function(e){return e.$collapsed&&"\n & > * {\n text-align: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "}),_o=f.default.div(Lo||(Lo=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: ",";\n background: ",";\n color: ",";\n cursor: pointer;\n transition: ",";\n user-select: none;\n order: ",";\n\n &.layout-sider-trigger {\n /* 外部可通过 .layout-sider-trigger 选择器覆盖样式 */\n }\n\n &:hover {\n background: ",";\n color: ",";\n }\n\n /* 分割线 */\n ","\n\n ","\n\n /* 零宽度模式下,收缩时隐藏触发器 */\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n height: ",";\n background: ",";\n color: ",";\n cursor: pointer;\n transition: ",";\n user-select: none;\n order: ",";\n\n &.layout-sider-trigger {\n /* 外部可通过 .layout-sider-trigger 选择器覆盖样式 */\n }\n\n &:hover {\n background: ",";\n color: ",";\n }\n\n /* 分割线 */\n ","\n\n ","\n\n /* 零宽度模式下,收缩时隐藏触发器 */\n ","\n"])),xo("--layout-trigger-height","48px"),function(e){return"dark"===e.$theme?"linear-gradient(135deg, ".concat(xo("--layout-sider-bg-dark","#001529")," 0%, #002140 100%)"):"linear-gradient(135deg, ".concat(xo("--layout-sider-bg-light","#fff")," 0%, ").concat(xo("--idp-bg-color","#fafafa")," 100%)")},function(e){return"dark"===e.$theme?xo("--layout-sider-color-dark","#fff"):xo("--layout-sider-color-light","rgba(0, 0, 0, 0.85)")},xo("--layout-trigger-transition","all 0.2s ease-in-out"),function(e){return"top"===e.$placement?"-1":"auto"},function(e){return"dark"===e.$theme?"linear-gradient(135deg, #002140 0%, ".concat(xo("--idp-primary-color","#1890ff")," 100%)"):"linear-gradient(135deg, ".concat(xo("--idp-primary-light-color","rgba(24, 100, 240, 0.1)")," 0%, ").concat(xo("--idp-bg-color-light","#f5f5f5")," 100%)")},function(e){return"dark"===e.$theme?"#fff":xo("--idp-primary-color","#1890ff")},function(e){var n=e.$placement,t=e.$theme;return"top"===n&&"\n border-bottom: 1px solid ".concat("dark"===t?"#303030":xo("--idp-border-color-light","#f0f0f0"),";\n ")},function(e){var n=e.$placement,t=e.$theme;return"top"!==n&&"\n border-top: 1px solid ".concat("dark"===t?"#303030":xo("--idp-border-color-light","#f0f0f0"),";\n ")},function(e){var n=e.$zeroWidthMode,t=e.$collapsed;return n&&t&&"\n display: none;\n "}),Eo=f.default.div(Ao||(Ao=y(["\n position: absolute;\n top: 16px;\n left: 16px;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n background: linear-gradient(135deg, "," 0%, "," 100%);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: ",";\n z-index: 100;\n transition: all "," ",";\n\n &:hover {\n background: linear-gradient(135deg, "," 0%, #69c0ff 100%);\n box-shadow: ",";\n transform: scale(1.05);\n }\n\n &:active {\n transform: scale(0.95);\n box-shadow: ",";\n }\n"],["\n position: absolute;\n top: 16px;\n left: 16px;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n background: linear-gradient(135deg, "," 0%, "," 100%);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: ",";\n z-index: 100;\n transition: all "," ",";\n\n &:hover {\n background: linear-gradient(135deg, "," 0%, #69c0ff 100%);\n box-shadow: ",";\n transform: scale(1.05);\n }\n\n &:active {\n transform: scale(0.95);\n box-shadow: ",";\n }\n"])),xo("--idp-primary-color","#1890ff"),xo("--idp-primary-hover-color","#40a9ff"),xo("--idp-shadow-sm","0 2px 8px rgba(0, 0, 0, 0.15)"),xo("--idp-transition-duration","0.2s"),xo("--idp-transition-timing-function","ease-in-out"),xo("--idp-primary-hover-color","#40a9ff"),xo("--idp-shadow-md","0 4px 12px rgba(0, 0, 0, 0.25)"),xo("--idp-shadow-extra-light","0 2px 8px rgba(0, 0, 0, 0.08)"));f.default.div(ko||(ko=y(["\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow: hidden;\n\n ","\n"],["\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow: hidden;\n\n ","\n"])),function(e){return e.$hasSider&&"\n flex-direction: row;\n "});var No,So,To,Oo,Lo,Ao,ko,Mo,Io,jo=f.default.main(Mo||(Mo=y(["\n flex: 1;\n padding: ",";\n background: ",";\n min-height: ",";\n transition: ",";\n overflow-y: auto;\n box-sizing: border-box;\n position: relative;\n\n &.layout-content {\n /* 外部可通过 .layout-content 选择器覆盖样式 */\n }\n\n ","\n\n /* 滚动条样式 */\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ",";\n border-radius: ",";\n transition: background-color "," ease;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: ",";\n }\n\n /* Dark 主题滚动条样式 */\n ","\n"],["\n flex: 1;\n padding: ",";\n background: ",";\n min-height: ",";\n transition: ",";\n overflow-y: auto;\n box-sizing: border-box;\n position: relative;\n\n &.layout-content {\n /* 外部可通过 .layout-content 选择器覆盖样式 */\n }\n\n ","\n\n /* 滚动条样式 */\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ",";\n border-radius: ",";\n transition: background-color "," ease;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: ",";\n }\n\n /* Dark 主题滚动条样式 */\n ","\n"])),xo("--layout-content-padding","24px"),xo("--layout-content-bg","transparent"),xo("--layout-content-min-height","280px"),xo("--layout-content-transition","all 0.2s ease-in-out"),function(e){return e.$fixed&&"\n overflow-y: auto;\n "},xo("--idp-border-color-extra-light","#d9d9d9"),xo("--idp-border-radius-sm","4px"),xo("--idp-transition-duration","0.2s"),xo("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),function(e){return"dark"===e.$theme&&"\n &::-webkit-scrollbar-thumb {\n background-color: color-mix(in srgb, ".concat(xo("--idp-primary-color","#1890ff")," 50%, transparent);\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: color-mix(in srgb, ").concat(xo("--idp-primary-color","#1890ff")," 70%, transparent);\n }\n\n scrollbar-width: thin;\n scrollbar-color: color-mix(in srgb, ").concat(xo("--idp-primary-color","#1890ff")," 50%, transparent) transparent;\n ")}),Ro=f.default.footer(Io||(Io=y(["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: ",";\n background: ",";\n color: ",";\n height: ",";\n border-top: ",";\n z-index: ",";\n transition: ",";\n box-sizing: border-box;\n\n &.layout-footer {\n /* 外部可通过 .layout-footer 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: ",";\n background: ",";\n color: ",";\n height: ",";\n border-top: ",";\n z-index: ",";\n transition: ",";\n box-sizing: border-box;\n\n &.layout-footer {\n /* 外部可通过 .layout-footer 选择器覆盖样式 */\n }\n\n ","\n"])),xo("--layout-footer-padding","24px 50px"),function(e){return"dark"===e.$theme?"linear-gradient(135deg, ".concat(xo("--layout-footer-bg-dark","#001529")," 0%, #002140 100%)"):"linear-gradient(135deg, ".concat(xo("--layout-footer-bg-light","#fff")," 0%, ").concat(xo("--idp-bg-color","#fafafa")," 100%)")},function(e){return"dark"===e.$theme?xo("--layout-footer-color-dark","#fff"):xo("--layout-footer-color-light","rgba(0, 0, 0, 0.85)")},function(e){var n=e.$height;return"number"==typeof n?"".concat(n,"px"):n||xo("--layout-footer-height","48px")},function(e){return"dark"===e.$theme?"var(--layout-footer-border, 1px solid #303030)":"var(--layout-footer-border, 1px solid ".concat(xo("--idp-border-color-light","#f0f0f0"),")")},xo("--layout-footer-z-index","10"),xo("--layout-footer-transition","all 0.2s ease-in-out"),function(e){return e.$fixed&&"\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);\n "}),Do=n.createContext(void 0),Ho=function(t){var r=t.children,i=n.useState(!1),o=i[0],a=i[1],s=n.useState(!1),l=s[0],c=s[1],d=n.useState(function(){return function(){}}),u=d[0],p=d[1];return e.jsx(Do.Provider,{value:{siderCollapsed:o,setSiderCollapsed:a,zeroWidthMode:l,setZeroWidthMode:c,onExpand:u,setOnExpand:p},children:r})},Po=function(){var e=n.useContext(Do);if(!e)throw new Error("useLayoutContext must be used within a LayoutProvider");return e},zo=u.default.createContext({isNested:!1}),Vo=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,o=void 0===i?{}:i,a=n.children,s=n.width,l=void 0===s?200:s,c=n.collapsedWidth,d=void 0===c?60:c,p=n.collapsible,f=void 0!==p&&p,h=n.collapsed,g=void 0!==h&&h,m=n.onCollapse,v=n.trigger,x=n.triggerPlacement,b=void 0===x?"bottom":x,y=n.zeroWidthMode,C=void 0!==y&&y,w=n.fixed,_=void 0!==w&&w,E=n.theme,N=void 0===E?"light":E,S=u.default.useContext(zo).isNested,T=Po(),O=T.setSiderCollapsed,L=T.setZeroWidthMode,A=T.setOnExpand;u.default.useEffect(function(){O(g),L(C)},[g,C,O,L]);var k=function(){null==m||m(!g)};u.default.useEffect(function(){A(function(){return k})},[g,m,A]);var M=C&&g?0:d;return e.jsxs(Co,{className:"layout-sider ".concat(g?"collapsed":""," ").concat(r),style:o,$width:l,$collapsedWidth:M,$collapsed:g,$fixed:_,$theme:N,$inNestedLayout:S,children:[e.jsx(wo,{children:a}),f&&e.jsx(_o,{className:"layout-sider-trigger",$collapsed:g,$placement:C?"top":b,onClick:k,$zeroWidthMode:C,$theme:N,children:v||e.jsx(D,{type:g?"arrowRight":"arrowLeft",size:20,color:"dark"===N?"#fff":"rgba(0, 0, 0, 0.65)"})})]})},Bo=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,o=void 0===i?{}:i,a=n.children,s=n.hasSider,l=n.theme,c=void 0!==s?s:function(e){return!!e&&u.default.Children.toArray(e).some(function(e){return u.default.isValidElement(e)&&e.type===Vo})}(a);return e.jsx(Ho,{children:e.jsx(zo.Provider,{value:{isNested:!0},children:e.jsx(bo,{className:"layout-wrapper ".concat(r),style:o,$hasSider:c,$theme:l,children:a})})})};Bo.Header=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,o=void 0===i?{}:i,a=n.children,s=n.height,l=n.fixed,c=void 0!==l&&l,d=n.theme,u=void 0===d?"light":d,p=(null==o?void 0:o.background)||"#3030302b";return e.jsx(yo,{className:"layout-header layout-header-".concat(u," ").concat(r),style:o,$height:s,$fixed:c,$theme:u,$bgColor:p,children:a})},Bo.Sider=Vo,Bo.Content=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,o=void 0===i?{}:i,a=n.children,s=n.theme,l=void 0===s?"light":s,c=Po(),d=c.siderCollapsed,u=c.zeroWidthMode,p=c.onExpand;return e.jsxs(jo,{className:"layout-content ".concat(r),style:o,$theme:l,children:[u&&d&&e.jsx(Eo,{onClick:p,children:e.jsx(D,{type:"menu",size:24,color:"#fff"})}),a]})},Bo.Footer=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,o=void 0===i?{}:i,a=n.children,s=n.height,l=n.fixed,c=void 0!==l&&l,d=n.theme;return e.jsx(Ro,{className:"layout-footer ".concat(r),style:o,$height:s,$fixed:c,$theme:d,children:a})};var Uo,Fo,Yo,$o,Go,Wo,Ko,Zo=Bo,Xo=function(e,n){return"var(".concat(e,", ").concat(n,")")},qo=r.keyframes(Uo||(Uo=y(["\n from {\n opacity: 0;\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n }\n to {\n opacity: 1;\n max-height: 100px;\n padding-bottom: 4px;\n }\n"],["\n from {\n opacity: 0;\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n }\n to {\n opacity: 1;\n max-height: 100px;\n padding-bottom: 4px;\n }\n"]))),Jo=f.default.form(Fo||(Fo=y(["\n width: 100%;\n\n &.form-wrapper {\n /* 外部可通过 .form-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n width: 100%;\n\n &.form-wrapper {\n /* 外部可通过 .form-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Qo=f.default.div(Yo||(Yo=y(["\n margin-bottom: ",";\n\n &.form-item {\n /* 外部可通过 .form-item 选择器覆盖样式 */\n }\n\n ","\n\n ","\n\n ","\n"],["\n margin-bottom: ",";\n\n &.form-item {\n /* 外部可通过 .form-item 选择器覆盖样式 */\n }\n\n ","\n\n ","\n\n ","\n"])),Xo("--form-item-margin-bottom","24px"),function(e){return"horizontal"===e.$layout&&"\n display: flex;\n align-items: center;\n\n & .form-label {\n margin-bottom: 0;\n }\n "},function(e){return"inline"===e.$layout&&"\n display: inline-flex;\n align-items: center;\n margin-right: ".concat(Xo("--form-inline-item-margin-right","24px"),";\n margin-bottom: 0;\n\n & .form-label {\n margin-bottom: 0;\n }\n ")},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ea=f.default.label($o||($o=y(["\n display: block;\n font-size: ",";\n color: ",";\n margin-bottom: ",";\n white-space: nowrap;\n text-align: ",";\n\n &.form-label {\n /* 外部可通过 .form-label 选择器覆盖样式 */\n }\n\n &::after {\n content: ",";\n margin: 0 8px 0 2px;\n }\n\n &::before {\n content: ",";\n color: ",";\n margin-right: 4px;\n display: inline-block;\n vertical-align: middle;\n }\n\n ","\n"],["\n display: block;\n font-size: ",";\n color: ",";\n margin-bottom: ",";\n white-space: nowrap;\n text-align: ",";\n\n &.form-label {\n /* 外部可通过 .form-label 选择器覆盖样式 */\n }\n\n &::after {\n content: ",";\n margin: 0 8px 0 2px;\n }\n\n &::before {\n content: ",";\n color: ",";\n margin-right: 4px;\n display: inline-block;\n vertical-align: middle;\n }\n\n ","\n"])),Xo("--form-label-font-size","14px"),Xo("--form-label-color","#333"),Xo("--form-label-margin-bottom","8px"),function(e){return e.$labelAlign||"end"},function(e){return e.$colon?'":"':""},function(e){return e.$required?'"*"':'""'},Xo("--form-label-required-color","#f5222d"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),na=f.default.div(Go||(Go=y(["\n width: 100%;\n position: relative;\n\n &.form-control {\n /* 外部可通过 .form-control 选择器覆盖样式 */\n }\n\n ","\n"],["\n width: 100%;\n position: relative;\n\n &.form-control {\n /* 外部可通过 .form-control 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ta=f.default.div(Wo||(Wo=y(["\n font-size: ",";\n color: ",";\n line-height: 1.5;\n position: absolute;\n top: 100%;\n left: 0;\n width: 100%;\n opacity: 0;\n max-height: 0;\n overflow: hidden;\n z-index: 10;\n\n &.form-error {\n /* 外部可通过 .form-error 选择器覆盖样式 */\n }\n\n &.form-error-visible {\n animation: "," 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;\n }\n\n ","\n"],["\n font-size: ",";\n color: ",";\n line-height: 1.5;\n position: absolute;\n top: 100%;\n left: 0;\n width: 100%;\n opacity: 0;\n max-height: 0;\n overflow: hidden;\n z-index: 10;\n\n &.form-error {\n /* 外部可通过 .form-error 选择器覆盖样式 */\n }\n\n &.form-error-visible {\n animation: "," 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;\n }\n\n ","\n"])),Xo("--form-error-font-size","12px"),Xo("--form-error-color","#f5222d"),qo,function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ra=f.default.div(Ko||(Ko=y(["\n font-size: ",";\n color: ",";\n line-height: 1.5;\n position: absolute;\n\n &.form-help {\n /* 外部可通过 .form-help 选择器覆盖样式 */\n }\n\n ","\n"],["\n font-size: ",";\n color: ",";\n line-height: 1.5;\n position: absolute;\n\n &.form-help {\n /* 外部可通过 .form-help 选择器覆盖样式 */\n }\n\n ","\n"])),Xo("--form-help-font-size","12px"),Xo("--form-help-color","#00000073"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ia=n.createContext(null),oa=function(t){var r=t.children,i=t.className,o=void 0===i?"":i,a=t.style,s=t.layout,l=void 0===s?"horizontal":s,c=t.labelSpan,d=t.wrapperSpan,p=t.initialValues,f=void 0===p?{}:p,h=t.onFinish,m=t.onFinishFailed,b=t.colon,y=void 0===b||b,C=t.requiredMark,w=void 0===C||C,_=t.styles,E=t.formRef,N=t.form,S=n.useState(f),T=S[0],O=S[1],L=n.useState({}),A=L[0],k=L[1],M=n.useRef(null),I=n.useRef(new Map),j=n.useRef(null),R=n.useCallback(function(e,n){O(function(t){var r;return g(g({},t),((r={})[e]=n,r))}),A[e]&&k(function(n){var t=g({},n);return delete t[e],t})},[A]),D=n.useCallback(function(e){return T[e]},[T]),H=n.useCallback(function(e){O(function(n){return g(g({},n),e)}),Object.keys(e).forEach(function(e){A[e]&&k(function(n){var t=g({},n);return delete t[e],t})})},[A]),P=n.useCallback(function(e){return v(void 0,void 0,void 0,function(){var n,t,r,i,o,a,s,l;return x(this,function(c){switch(c.label){case 0:if(!(n=I.current.get(e)))return[2];if(t=n.rules,r=T[e],!t||0===t.length)return[2];i=function(n){var t,i,o,a,s,l,c,d,u;return x(this,function(p){switch(p.label){case 0:if(n.required&&(null==r||""===r))return t=n.message||"".concat(e," is required"),k(function(n){var r;return g(g({},n),((r={})[e]=t,r))}),[2,{value:t}];if(n.pattern&&!n.pattern.test(r))return i=n.message||"".concat(e," format is invalid"),k(function(n){var t;return g(g({},n),((t={})[e]=i,t))}),[2,{value:i}];if(n.type){switch(o=!0,n.type){case"email":o=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r);break;case"url":o=/^https?:\/\/.+$/.test(r);break;case"number":o=!isNaN(Number(r));break;case"integer":o=Number.isInteger(Number(r));break;case"float":o=!isNaN(parseFloat(r))&&isFinite(r);break;case"string":o="string"==typeof r;break;case"boolean":o="boolean"==typeof r;break;case"array":o=Array.isArray(r);break;case"object":o="object"==typeof r&&null!==r&&!Array.isArray(r)}if(!o)return a=n.message||"".concat(e," must be a ").concat(n.type),k(function(n){var t;return g(g({},n),((t={})[e]=a,t))}),[2,{value:a}]}if(void 0!==n.min&&r.length<n.min)return s=n.message||"".concat(e," must be at least ").concat(n.min," characters"),k(function(n){var t;return g(g({},n),((t={})[e]=s,t))}),[2,{value:s}];if(void 0!==n.max&&r.length>n.max)return l=n.message||"".concat(e," must be at most ").concat(n.max," characters"),k(function(n){var t;return g(g({},n),((t={})[e]=l,t))}),[2,{value:l}];if(void 0!==n.len&&r.length!==n.len)return c=n.message||"".concat(e," must be exactly ").concat(n.len," characters"),k(function(n){var t;return g(g({},n),((t={})[e]=c,t))}),[2,{value:c}];if(!n.validator)return[3,4];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,n.validator(n,r)];case 2:return p.sent(),[3,4];case 3:return d=p.sent(),u=d instanceof Error?d.message:n.message||"".concat(e," validation failed"),k(function(n){var t;return g(g({},n),((t={})[e]=u,t))}),[2,{value:u}];case 4:return[2]}})},o=0,a=t,c.label=1;case 1:return o<a.length?(s=a[o],[5,i(s)]):[3,4];case 2:if("object"==typeof(l=c.sent()))return[2,l.value];c.label=3;case 3:return o++,[3,1];case 4:return k(function(n){var t=g({},n);return delete t[e],t}),[2,null]}})})},[T]),z=n.useCallback(function(e){return v(void 0,void 0,void 0,function(){var n,t;return x(this,function(r){switch(r.label){case 0:return n=e||Array.from(I.current.keys()),[4,Promise.all(n.map(function(e){return P(e)}))];case 1:if(t=r.sent(),t.some(function(e){return null!==e}))throw new Error("Validation failed");return[2,T]}})})},[P,T]),V=n.useCallback(function(e){if(e){var n=g({},T);e.forEach(function(e){n[e]=f[e]||void 0}),O(n)}else O(f);k({})},[T,f]),B={getFieldValue:D,getFieldsValue:function(e){if(!e)return T;var n={};return e.forEach(function(e){n[e]=T[e]}),n},setFieldValue:R,setFieldsValue:H,setFields:function(e){var n=g({},T),t=g({},A);e.forEach(function(e){void 0!==e.value&&(n[e.name]=e.value),e.errors&&e.errors.length>0?t[e.name]=e.errors[0]:delete t[e.name]}),O(n),k(t)},resetFields:V,validateFields:z,submit:function(){z().then(function(){var e=document.querySelector("form");e&&e.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))})},destroy:function(){O({}),k({}),I.current.clear(),j.current=null}};n.useEffect(function(){j.current=B,E&&(E.current=B),N&&(N.getFieldValue=B.getFieldValue,N.getFieldsValue=B.getFieldsValue,N.setFieldValue=B.setFieldValue,N.setFieldsValue=B.setFieldsValue,N.setFields=B.setFields,N.resetFields=B.resetFields,N.validateFields=B.validateFields,N.submit=B.submit,N.destroy=B.destroy)},[B,E,N]);var U=n.useCallback(function(e,n){return I.current.set(e,n),function(){I.current.delete(e)}},[]),F={layout:l,labelSpan:c,wrapperSpan:d,colon:y,requiredMark:w,values:T,errors:A,setFieldValue:R,getFieldValue:D,setFieldValueList:H,validateField:P,validateFields:z,resetFields:V};return e.jsx(ia.Provider,{value:F,children:e.jsx(Jo,{ref:M,className:"form-wrapper ".concat(o),style:a,$styles:null==_?void 0:_.wrapper,onSubmit:function(e){return v(void 0,void 0,void 0,function(){var n;return x(this,function(t){switch(t.label){case 0:e.preventDefault(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,z()];case 2:return t.sent(),null==h||h(T),[3,4];case 3:return n=t.sent(),null==m||m({error:n,values:T}),[3,4];case 4:return[2]}})})},children:u.default.Children.map(r,function(e){return u.default.isValidElement(e)&&e.type===aa?u.default.cloneElement(e,{registerItem:U}):e})})})},aa=function(t){var r=t.name,i=t.label,o=t.required,a=t.rules,s=void 0===a?[]:a,l=t.className,c=void 0===l?"":l,d=t.style,p=t.help,f=t.validateStatus,h=t.colon,m=t.labelSpan,v=t.wrapperSpan,x=t.hidden,b=void 0!==x&&x,y=t.extra,C=t.styles,w=t.registerItem,_=t.children,E=n.useContext(ia),N=n.useState(r&&(null==E?void 0:E.values[r])?E.values[r]:""),S=N[0],T=N[1];n.useEffect(function(){if(w&&r)return w(r,{rules:s})},[w,r,s]),n.useEffect(function(){E&&r&&T(E.values[r])},[E,r,null==E?void 0:E.values]);var O=o||s.some(function(e){return e.required}),L=E&&r?E.errors[r]:"",A=!!L||"error"===f,k=void 0!==m?m:null==E?void 0:E.labelSpan,M=void 0!==v?v:null==E?void 0:E.wrapperSpan,I=k?k/24*100:void 0,j=void 0;if(void 0!==k){var R=24-k,D=void 0!==M?M:R;D>R&&(D=R),D<1&&(D=1),j=D/24*100}return b?null:e.jsxs(Qo,{className:"form-item ".concat(c),style:d,$layout:(null==E?void 0:E.layout)||"horizontal",$styles:null==C?void 0:C.wrapper,children:[i&&e.jsx(ea,{className:"form-label",$required:O,$colon:void 0!==h?h:null==E?void 0:E.colon,$styles:g(g({},null==C?void 0:C.label),void 0!==I?{width:"".concat(I,"%")}:{}),children:i}),e.jsxs(na,{className:"form-control",$styles:g(g({},null==C?void 0:C.input),void 0!==j?{width:"".concat(j,"%")}:{}),children:[u.default.Children.map(u.default.Children.toArray(_).filter(function(e){return u.default.isValidElement(e)}),function(e){var n=e.props,t=n.autoComplete||function(e){if(e)return{username:"username",email:"email",password:"current-password","new-password":"new-password","current-password":"current-password",name:"name","given-name":"given-name","family-name":"family-name",tel:"tel",phone:"tel",address:"street-address",city:"address-level2",country:"country-name",zipcode:"postal-code","postal-code":"postal-code",organization:"organization",company:"organization"}[e.toLowerCase()]}(r);return u.default.cloneElement(e,{value:S,onChange:function(e){var t,i;!function(e){T(e),r&&(null==E||E.setFieldValue(r,e))}(void 0!==(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)?e.target.value:e),null===(i=n.onChange)||void 0===i||i.call(n,e)},error:A||void 0,autoComplete:t})}),A&&e.jsx(ta,{className:"form-error ".concat(A?"form-error-visible":""),$styles:null==C?void 0:C.error,children:L}),p&&!A&&e.jsx(ra,{className:"form-help",$styles:null==C?void 0:C.help,children:p}),y&&!A&&e.jsx(ra,{className:"form-help",$styles:null==C?void 0:C.help,children:y})]})]})};oa.Item=aa;var sa,la,ca,da=oa,ua=f.default.div.withConfig({shouldForwardProp:function(e){return!["width","height","gap","padding","backgroundColor"].includes(e)}})(sa||(sa=y(["\n width: ",";\n height: ",";\n gap: ",";\n padding: ",";\n background-color: ",";\n box-sizing: border-box;\n"],["\n width: ",";\n height: ",";\n gap: ",";\n padding: ",";\n background-color: ",";\n box-sizing: border-box;\n"])),function(e){return void 0!==e.width?"number"==typeof e.width?"".concat(e.width,"px"):e.width:"100%"},function(e){return void 0!==e.height?"number"==typeof e.height?"".concat(e.height,"px"):e.height:"auto"},function(e){return void 0!==e.gap?"number"==typeof e.gap?"".concat(e.gap,"px"):e.gap:"0"},function(e){return void 0!==e.padding?"number"==typeof e.padding?"".concat(e.padding,"px"):e.padding:"0"},function(e){return e.backgroundColor||"transparent"}),pa=f.default.div.withConfig({shouldForwardProp:function(e){return!["span","rowGap","align","justify","wrap"].includes(e)}})(la||(la=y(["\n display: flex;\n width: ",";\n row-gap: ",";\n align-items: ",";\n justify-content: ",";\n flex-wrap: ",";\n box-sizing: border-box;\n"],["\n display: flex;\n width: ",";\n row-gap: ",";\n align-items: ",";\n justify-content: ",";\n flex-wrap: ",";\n box-sizing: border-box;\n"])),function(e){return void 0!==e.span?"calc(".concat(e.span," / 24 * 100%)"):"100%"},function(e){return void 0!==e.rowGap?"number"==typeof e.rowGap?"".concat(e.rowGap,"px"):e.rowGap:"0"},function(e){return e.align||"stretch"},function(e){return e.justify||"flex-start"},function(e){return!1!==e.wrap?"wrap":"nowrap"}),fa=f.default.div.withConfig({shouldForwardProp:function(e){return!["span","offset","push","pull","order","gap"].includes(e)}})(ca||(ca=y(["\n flex: ",";\n max-width: ",";\n margin-left: ",";\n margin-right: ",";\n order: ",";\n padding-left: ",";\n padding-right: ",";\n box-sizing: border-box;\n"],["\n flex: ",";\n max-width: ",";\n margin-left: ",";\n margin-right: ",";\n order: ",";\n padding-left: ",";\n padding-right: ",";\n box-sizing: border-box;\n"])),function(e){return void 0!==e.span?"0 0 calc(".concat(e.span," / 24 * 100%)"):"1"},function(e){return void 0!==e.span?"calc(".concat(e.span," / 24 * 100%)"):"100%"},function(e){return void 0!==e.pull?"calc(-".concat(e.pull," / 24 * 100%)"):void 0!==e.offset?"calc(".concat(e.offset," / 24 * 100%)"):"0"},function(e){return void 0!==e.push?"calc(".concat(e.push," / 24 * 100%)"):"0"},function(e){return void 0!==e.order?e.order:"0"},function(e){return void 0!==e.gap?"number"==typeof e.gap?"".concat(e.gap/2,"px"):"calc(".concat(e.gap," / 2)"):"0"},function(e){return void 0!==e.gap?"number"==typeof e.gap?"".concat(e.gap/2,"px"):"calc(".concat(e.gap," / 2)"):"0"}),ha=n.createContext({}),ga=n.createContext({}),ma=u.default.forwardRef(function(t,r){var i=t.children,o=t.className,a=t.style,s=t.span,l=t.offset,c=t.push,d=t.pull,u=t.order,f=t.gap,h=n.useContext(ga),g=null==h?void 0:h.gap,m=void 0!==f?f:g;return e.jsx(fa,{ref:r,className:p.default("idp-grid-col",o),style:a,span:s,offset:l,push:c,pull:d,order:u,gap:m,children:i})});ma.displayName="Grid.Col";var va=u.default.forwardRef(function(t,r){var i=t.children,o=t.className,a=t.style,s=t.span,l=t.gap,c=t.rowGap,d=t.align,u=t.justify,f=t.wrap,h=void 0===f||f,g=n.useContext(ha),m=null==g?void 0:g.gap,v=void 0!==l?l:m;return e.jsx(ga.Provider,{value:{gap:v},children:e.jsx(pa,{ref:r,className:p.default("idp-grid-row",o),style:a,span:s,rowGap:c,align:d,justify:u,wrap:h,children:i})})});va.displayName="Grid.Row";var xa=Object.assign(va,{Col:ma}),ba=u.default.forwardRef(function(n,t){var r=n.children,i=n.className,o=n.style,a=n.width,s=n.height,l=n.gap,c=n.padding,d=n.backgroundColor;return e.jsx(ha.Provider,{value:{gap:l},children:e.jsx(ua,{ref:t,className:p.default("idp-grid",i),style:o,width:a,height:s,gap:l,padding:c,backgroundColor:d,children:r})})});ba.displayName="Grid";var ya=Object.assign(ba,{Row:xa,Col:ma}),Ca=function(t){var r=t.open,i=t.title,o=t.width,s=void 0===o?460:o,l=t.height,c=void 0===l?300:l,d=t.placement,u=void 0===d?"right":d,f=t.maskClosable,h=void 0===f||f,m=t.mask,v=void 0===m||m,x=t.onClose,b=t.children,y=t.className,C=t.style,w=t.maskStyle,_=t.maskClassName,E=t.contentClassName,N=t.contentStyle,S=t.header,T=t.headerClassName,O=t.headerStyle,L=t.footer,A=t.footerClassName,k=t.footerStyle,M=t.getContainer,I=void 0!==M&&M,j=t.destroyOnClose,R=void 0!==j&&j,H=t.closable,P=void 0===H||H,z=t.zIndex,V=void 0===z?1e3:z,B=t.loading,U=void 0!==B&&B,F=t.loadingIcon,Y=t.resizable,$=void 0!==Y&&Y,G=t.resizeHandleSize,W=void 0===G?8:G,K=t.minWidth,Z=void 0===K?460:K,X=t.minHeight,q=void 0===X?150:X,J=t.onChange,Q=n.useState(!1),ee=Q[0],ne=Q[1],te=n.useState(!1),re=te[0],ie=te[1],oe=n.useState(!1),ae=oe[0],le=oe[1],ce=window.innerWidth,de=window.innerHeight,ue=n.useState("number"==typeof s?s:460),pe=ue[0],fe=ue[1],he=n.useState("number"==typeof c?c:300),ge=he[0],me=he[1],ve=n.useState(!1),xe=ve[0],be=ve[1],ye=n.useRef(null),Ce=n.useRef({x:0,y:0}),we=n.useRef({width:0,height:0}),_e=n.useRef({width:pe,height:ge}),Ee=n.useRef({placement:u,minWidth:Z,maxWidth:ce,minHeight:q,maxHeight:de,onChange:J});n.useEffect(function(){_e.current={width:pe,height:ge}},[pe,ge]),n.useEffect(function(){Ee.current={placement:u,minWidth:Z,maxWidth:ce,minHeight:q,maxHeight:de,onChange:J}},[u,Z,ce,q,de,J]),n.useEffect(function(){"number"==typeof s&&fe(s)},[s]),n.useEffect(function(){"number"==typeof c&&me(c)},[c]),n.useEffect(function(){if(!r){ie(!1),le(!0);var e=setTimeout(function(){ne(!1),le(!1)},300);return function(){return clearTimeout(e)}}return le(!1),ne(!0),document.body.style.overflow="hidden",requestAnimationFrame(function(){requestAnimationFrame(function(){ie(!0)})}),function(){document.body.style.overflow=""}},[r,300]);var Ne=function(){h&&x()},Se=function(){x()},Te=function(e){return"number"==typeof e?"".concat(e,"px"):e},Oe=function(){var e=g(g({},C),{zIndex:V}),n=$?{width:pe,height:ge}:{width:s,height:c};switch(u){case"left":case"right":e.width=Te(n.width),e.height="100%";break;case"top":case"bottom":e.height=Te(n.height),e.width="100%"}return xe&&(e.transition="none"),e},Le=$&&ee,Ae=function(){switch(u){case"left":return"idp-drawer-resize-handle--right";case"right":return"idp-drawer-resize-handle--left";case"top":return"idp-drawer-resize-handle--bottom";case"bottom":return"idp-drawer-resize-handle--top";default:return""}},ke=function(){switch(u){case"left":case"right":return"col-resize";case"top":case"bottom":return"row-resize";default:return"default"}},Me=n.useCallback(function(e){e.preventDefault(),e.stopPropagation();var n=_e.current.width,t=_e.current.height;if(ye.current){var r=Ee.current;"left"===r.placement||"right"===r.placement?ye.current.style.width="".concat(n,"px"):ye.current.style.height="".concat(t,"px")}be(!0),Ce.current={x:e.clientX,y:e.clientY},we.current={width:n,height:t}},[]),Ie=n.useCallback(function(e){var n,t=Ee.current,r=e.clientX-Ce.current.x,i=e.clientY-Ce.current.y,o=we.current.width,a=we.current.height;if("left"===t.placement){var s=we.current.width+r;(o=Math.max(t.minWidth,Math.min(t.maxWidth,s)))!==s&&(Ce.current.x=e.clientX,we.current.width=o)}else if("right"===t.placement){s=we.current.width-r;(o=Math.max(t.minWidth,Math.min(t.maxWidth,s)))!==s&&(Ce.current.x=e.clientX,we.current.width=o)}else if("top"===t.placement){var l=we.current.height+i;(a=Math.max(t.minHeight,Math.min(t.maxHeight,l)))!==l&&(Ce.current.y=e.clientY,we.current.height=a)}else if("bottom"===t.placement){l=we.current.height-i;(a=Math.max(t.minHeight,Math.min(t.maxHeight,l)))!==l&&(Ce.current.y=e.clientY,we.current.height=a)}_e.current={width:o,height:a},fe(o),me(a),null===(n=t.onChange)||void 0===n||n.call(t,{width:o,height:a})},[]),je=n.useCallback(function(){be(!1)},[]);n.useEffect(function(){return xe?(document.addEventListener("mousemove",Ie),document.addEventListener("mouseup",je)):(document.removeEventListener("mousemove",Ie),document.removeEventListener("mouseup",je)),function(){document.removeEventListener("mousemove",Ie),document.removeEventListener("mouseup",je)}},[xe,Ie,je]);var Re=function(){return U?F?e.jsx("div",{className:"idp-drawer-loading",children:e.jsx("div",{className:"idp-drawer-loading-content",children:F})}):e.jsx("div",{className:"idp-drawer-loading",children:e.jsx("div",{className:"idp-drawer-loading-content",children:e.jsx("div",{className:"idp-drawer-loading-spinner",children:e.jsxs("svg",{viewBox:"0 0 24 24",className:"idp-drawer-loading-icon",children:[e.jsx("circle",{className:"idp-drawer-loading-track",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"}),e.jsx("circle",{className:"idp-drawer-loading-indicator",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"})]})})})}):null},De=function(){return!1===S?null:S?e.jsx("div",{className:p.default("idp-drawer-header",T),style:O,children:S}):i||P?e.jsxs("div",{className:p.default("idp-drawer-header",T),style:O,children:[e.jsx("div",{className:"idp-drawer-header__title",children:i}),P&&e.jsx("button",{className:"idp-drawer-header__close",onClick:Se,type:"button","aria-label":"Close",children:e.jsx(D,{type:"close",size:20})})]}):null},He=function(){var n;return Le?e.jsx("div",{className:p.default("idp-drawer-resize-handle",Ae()),style:(n={cursor:ke()},n["left"===u||"right"===u?"width":"height"]=W,n),onMouseDown:Me}):null},Pe=function(){if(!ee&&!ae)return null;var n=e.jsx("div",{className:p.default("idp-drawer-overlay",{"idp-drawer-overlay--visible":re&&!ae,"idp-drawer-overlay--closing":ae,"idp-drawer-overlay--resizing":xe},_),style:g({zIndex:V},w),onClick:Ne,children:e.jsxs("div",{ref:ye,className:p.default("idp-drawer","idp-drawer--".concat(u),{"idp-drawer--visible":re&&!ae,"idp-drawer--closing":ae,"idp-drawer--no-mask":!v,"idp-drawer--resizing":xe},y),style:Oe(),onClick:function(e){return e.stopPropagation()},children:[Re(),De(),e.jsx("div",{className:p.default("idp-drawer-content",E),style:N,children:R&&ae?null:b}),!1!==L&&e.jsx("div",{className:p.default("idp-drawer-footer",A),style:k,children:L||e.jsxs(e.Fragment,{children:[e.jsx(se,{onClick:Se,type:"button",children:"取消"}),e.jsx(se,{variant:"primary",onClick:Se,type:"button",children:"确认"})]})}),He()]})});return v?n:e.jsx("div",{className:p.default("idp-drawer-wrapper",{"idp-drawer-wrapper--visible":re&&!ae,"idp-drawer-wrapper--closing":ae}),style:{zIndex:V},children:e.jsxs("div",{ref:ye,className:p.default("idp-drawer","idp-drawer--".concat(u),{"idp-drawer--visible":re&&!ae,"idp-drawer--closing":ae,"idp-drawer--no-mask":!v,"idp-drawer--resizing":xe},y),style:Oe(),children:[Re(),De(),e.jsx("div",{className:p.default("idp-drawer-content",E),style:N,children:R&&ae?null:b}),!1!==L&&e.jsx("div",{className:p.default("idp-drawer-footer",A),style:k,children:L||e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:Se,type:"button",children:"取消"}),e.jsx("button",{onClick:Se,type:"button",children:"确认"})]})}),He()]})})}();if(!Pe)return null;if(!1===I)return Pe;var ze="function"==typeof I?I():I;return ze?a.createPortal(Pe,ze):Pe},wa=n.createContext(void 0),_a=function(t){var r,i=t.value,o=t.checked,a=t.defaultChecked,s=void 0!==a&&a,l=t.onChange,c=t.disabled,d=void 0!==c&&c,u=t.indeterminate,f=void 0!==u&&u,h=t.children,m=t.className,v=t.style,x=t.label,y=t.labelGap,C=void 0===y?8:y,w=t.labelClassName,_=void 0===w?"":w,E=t.labelStyle,N=n.useContext(wa),S=!!N,T=n.useState(s),O=T[0],L=T[1],A=S?null===(r=N.value)||void 0===r?void 0:r.includes(i):void 0!==o?o:O;n.useEffect(function(){S||void 0===o||L(o)},[o,S]);var k=p.default("idp-checkbox",{"idp-checkbox--checked":A,"idp-checkbox--disabled":d||S&&N.disabled,"idp-checkbox--indeterminate":f},m);return e.jsx("label",{className:k,style:v,children:e.jsxs("div",{className:"idp-checkbox-wrapper",style:{display:"flex",alignItems:"center"},children:[x&&e.jsx("div",{className:"idp-checkbox-label ".concat(_),style:g({marginRight:"number"==typeof C?"".concat(C,"px"):C},E),children:x}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[e.jsx("input",{type:"checkbox",className:"idp-checkbox__input",checked:A,onChange:function(e){var n,t=e.target.checked;if(!(d||S&&N.disabled))if(S){var r=N.value||[],o=void 0;o=t?b(b([],r,!0),[i],!1):r.filter(function(e){return e!==i}),null===(n=N.onChange)||void 0===n||n.call(N,o)}else L(t),null==l||l(t,i)},disabled:d||S&&N.disabled,value:i,ref:function(e){e&&(e.indeterminate=f)}}),e.jsx("span",{className:"idp-checkbox__inner"}),h&&e.jsx("span",{className:"idp-checkbox__label",children:h})]})]})})};_a.Group=function(t){var r=t.value,i=t.defaultValue,o=void 0===i?[]:i,a=t.onChange,s=t.disabled,l=void 0!==s&&s,c=t.options,d=t.children,u=t.className,f=t.style,h=t.layout,m=void 0===h?"vertical":h,v=t.gap,x=void 0===v?8:v,b=n.useState(o||[]),y=b[0],C=b[1];n.useEffect(function(){void 0!==r&&C(r)},[r]);var w=p.default("idp-checkbox-group",{"idp-checkbox-group--horizontal":"horizontal"===m},u),_=g(g({},f),{gap:"number"==typeof x?"".concat(x,"px"):x});return e.jsx(wa.Provider,{value:{value:void 0!==r?r:y,onChange:function(e){C(e),null==a||a(e)},disabled:l},children:e.jsx("div",{className:w,style:_,children:c?c.map(function(n,t){var r;return e.jsx(_a,{value:n.value,disabled:n.disabled||l,children:n.label},null!==(r=n.value)&&void 0!==r?r:t)}):d})})},_a.displayName="Checkbox",_a.Group.displayName="Checkbox.Group";var Ea=_a,Na=u.default.forwardRef(function(t,r){var i=t.children,o=t.className,a=t.style,s=t.size,l=void 0===s?"medium":s,c=t.backgroundColor,d=t.color,u=t.icon,f=t.closable,h=void 0!==f&&f,v=t.onClose,x=t.onClick,b=m(t,["children","className","style","size","backgroundColor","color","icon","closable","onClose","onClick"]),y=n.useState(!0),C=y[0],w=y[1];if(!C)return null;var _=p.default("idp-tag","idp-tag--".concat(l),{"idp-tag--clickable":x,"idp-tag--closable":h},o),E=g({backgroundColor:c,color:d},a);return e.jsxs("span",g({ref:r,className:_,style:E,onClick:x},b,{children:[u?"string"==typeof u?e.jsx("span",{className:"idp-tag__icon",children:e.jsx(D,{type:u})}):e.jsx("span",{className:"idp-tag__icon",children:u}):null,e.jsx("span",{className:"idp-tag__content",children:i}),h&&e.jsx("span",{className:"idp-tag__close",onClick:function(e){e.stopPropagation(),null==v||v(e),w(!1)},role:"button",tabIndex:0,"aria-label":"close",children:e.jsx(D,{type:"close"})})]}))});Na.displayName="Tag";var Sa=Na,Ta=function(t){var r=t.title,i=void 0===r?"确认删除吗?":r,o=t.description,s=t.okText,l=void 0===s?"确定":s,c=t.cancelText,d=void 0===c?"取消":c,u=t.okButtonProps,f=void 0===u?{}:u,h=t.cancelButtonProps,m=void 0===h?{}:h,b=t.onConfirm,y=t.onCancel,C=t.disabled,w=void 0!==C&&C,_=t.icon,E=t.type,N=void 0===E?"warning":E,S=t.placement,T=void 0===S?"top":S,O=t.showCancel,L=void 0===O||O,A=t.getContainer,k=void 0===A?function(){return document.body}:A,M=t.className,I=t.style,j=t.children,R=n.useState(!1),H=R[0],P=R[1],z=n.useState(!1),V=z[0],B=z[1],U=n.useState({top:0,left:0}),F=U[0],Y=U[1],$=n.useRef(null),G=n.useRef(null),W={top:"idp-popconfirm-top",bottom:"idp-popconfirm-bottom",left:"idp-popconfirm-left",right:"idp-popconfirm-right",topLeft:"idp-popconfirm-topLeft",topRight:"idp-popconfirm-topRight",bottomLeft:"idp-popconfirm-bottomLeft",bottomRight:"idp-popconfirm-bottomRight",leftTop:"idp-popconfirm-leftTop",leftBottom:"idp-popconfirm-leftBottom",rightTop:"idp-popconfirm-rightTop",rightBottom:"idp-popconfirm-rightBottom"},K=function(){if($.current&&G.current){var e=$.current.getBoundingClientRect(),n=G.current.getBoundingClientRect(),t=0,r=0;switch(T){case"top":case"topLeft":case"topRight":t=e.top-n.height-8,r=e.left+(e.width-n.width)/2,"topLeft"===T?r=e.left:"topRight"===T&&(r=e.right-n.width);break;case"bottom":case"bottomLeft":case"bottomRight":t=e.bottom+8,r=e.left+(e.width-n.width)/2,"bottomLeft"===T?r=e.left:"bottomRight"===T&&(r=e.right-n.width);break;case"left":case"leftTop":case"leftBottom":t=e.top+(e.height-n.height)/2,r=e.left-n.width-8,"leftTop"===T?t=e.top:"leftBottom"===T&&(t=e.bottom-n.height);break;case"right":case"rightTop":case"rightBottom":t=e.top+(e.height-n.height)/2,r=e.right+8,"rightTop"===T?t=e.top:"rightBottom"===T&&(t=e.bottom-n.height)}var i=window.innerWidth,o=window.innerHeight;r<10&&(r=10),r+n.width>i-10&&(r=i-n.width-10),t<10&&(t=10),t+n.height>o-10&&(t=o-n.height-10),Y({top:t,left:r})}},Z=function(e){w||(e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),P(!0))},X=function(){return v(void 0,void 0,void 0,function(){return x(this,function(e){switch(e.label){case 0:if(!b)return[3,5];B(!0),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,b()];case 2:return e.sent(),P(!1),[3,4];case 3:return B(!1),[7];case 4:return[3,6];case 5:P(!1),e.label=6;case 6:return[2]}})})},q=function(){y&&y(),P(!1)},J=function(e){G.current&&!G.current.contains(e.target)&&$.current&&!$.current.contains(e.target)&&P(!1)};n.useEffect(function(){if(H){setTimeout(function(){K()},0),document.addEventListener("mousedown",J);var e=function(){return K()},n=function(){return K()};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",n),function(){document.removeEventListener("mousedown",J),window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",n)}}},[H,T]);var Q,ee;return e.jsxs(e.Fragment,{children:[(Q=j,ee=Q.props||{},e.jsx("span",{ref:$,style:{display:"inline-block"},children:n.cloneElement(Q,g(g({},ee),{onClick:Z}))})),function(){if(!H)return null;var n,t=e.jsxs("div",{ref:G,className:p.default("idp-popconfirm","idp-popconfirm-visible",W[T],"idp-popconfirm--".concat(N),M),style:g({position:"fixed",top:"".concat(F.top,"px"),left:"".concat(F.left,"px")},I),children:[e.jsx("div",{className:"idp-popconfirm-arrow"}),e.jsxs("div",{className:"idp-popconfirm-inner",children:[e.jsxs("div",{className:"idp-popconfirm-header",children:[e.jsx("span",{style:{display:_?"inline-block":"none"},className:"idp-popconfirm-icon",children:_||(n={info:{type:"info-circle",color:"#1890ff"},success:{type:"check-circle",color:"#52c41a"},warning:{type:"warning-circle",color:"#faad14"},error:{type:"close-circle",color:"#f5222d"},danger:{type:"close-circle",color:"#f5222d"}}[N],e.jsx(D,{type:n.type,size:18,color:n.color}))}),e.jsx("span",{className:"idp-popconfirm-title",children:i})]}),o&&e.jsx("div",{className:"idp-popconfirm-description",children:o}),e.jsxs("div",{className:"idp-popconfirm-actions",children:[L&&e.jsx(se,{variant:m.variant||"secondary",onClick:q,disabled:m.disabled||V,size:"small",children:d}),e.jsx(se,{variant:f.variant||"primary",onClick:X,loading:f.loading||V,disabled:f.disabled,size:"small",children:l})]})]})]});if(!1===k)return t;var r="function"==typeof k?k():k;return r?a.createPortal(t,r):t}()]})},Oa=function(n){var t,r,i,o=n.percent,a=void 0===o?0:o,s=n.type,l=void 0===s?"line":s,c=n.status,d=n.showInfo,u=void 0===d||d,f=n.format,h=n.strokeColor,m=void 0===h?"#1890ff":h,v=n.trailColor,x=void 0===v?"gainsboro":v,b=n.strokeWidth,y=n.size,C=void 0===y?"default":y,w=n.transition,_=void 0===w||w,E=n.steps,N=n.segments,S=n.icon,T=n.prefix,O=n.suffix,L=n.children,A=n.className,k=n.style,M=c||(a>=100?"success":a<0?"exception":"normal"),I=function(){return f?f(a):"".concat(Math.floor(a),"%")},j=function(e){return"object"==typeof e&&"from"in e&&"to"in e},R=function(){return"success"===M?"#52c41a":"exception"===M?"#ff4d4f":j(m)?m.from:m},H=function(){return S||("success"===M?e.jsx(D,{type:"check-circle",style:{color:"#52c41a"}}):"exception"===M?e.jsx(D,{type:"close-circle",style:{color:"#ff4d4f"}}):null)};if("circle"===l||"dashboard"===l){var P=50-(b||6),z=2*Math.PI*P,V=z-a/100*z,B="success"===M?"#52c41a":"exception"===M?"#ff4d4f":m,U=j(B)?(r=(t=B).from,i=t.to,"from-".concat(r.replace("#",""),"-to-").concat(i.replace("#",""))):null;return e.jsxs("div",{className:p.default("idp-progress","idp-progress--circle",A),style:k,children:[e.jsxs("svg",{width:120,height:120,viewBox:"0 0 120 120",style:{transform:"rotate(-90deg)"},children:[U&&e.jsx("defs",{children:e.jsxs("linearGradient",{id:U,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[e.jsx("stop",{offset:"0%",stopColor:B.from}),e.jsx("stop",{offset:"100%",stopColor:B.to})]})}),e.jsx("circle",{cx:60,cy:60,r:P,stroke:x,strokeWidth:b||6,fill:"none"}),e.jsx("circle",{cx:60,cy:60,r:P,stroke:U?"url(#".concat(U,")"):R(),strokeWidth:b||6,fill:"none",strokeDasharray:z,strokeDashoffset:V,strokeLinecap:"round",style:{transition:_?"stroke-dashoffset 0.3s cubic-bezier(0.34, 0.69, 0.1, 1)":"none"}})]}),u&&e.jsx("div",{className:"idp-progress-info",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",margin:0},children:L||e.jsxs(e.Fragment,{children:[H(),T,I(),O]})})]})}var F=function(e){var n=e.color;if(j(n)){var t=n.from,r=n.to,i=n.direction;return{background:"linear-gradient(".concat(void 0===i?"to right":i,", ").concat(t,", ").concat(r,")")}}return{backgroundColor:n}};return e.jsxs("div",{className:p.default("idp-progress","idp-progress--".concat(C),"idp-progress--line",{"idp-progress--success":"success"===M},{"idp-progress--exception":"exception"===M},{"idp-progress--steps":E&&E>0},{"idp-progress--has-segments":N&&N.length>0},A),style:k,children:[e.jsx("div",{className:"idp-progress-wrapper",children:e.jsx("div",{className:"idp-progress-outer",children:E&&E>0?function(){if(!E||E<=0)return null;var n=a/100,t=Math.min(1,Math.max(0,n)),r=Array.from({length:E},function(n,r){var i=r/E,o=(r+1)/E,a=t>=o,s=t>i&&t<o,l=t<=i,c=t>=1;return e.jsx("div",{className:p.default("idp-progress-step",{"idp-progress-step--completed":a,"idp-progress-step--current":s,"idp-progress-step--pending":l,"idp-progress-step--success":c}),style:{transition:_?"all var(--idp-transition-duration) var(--idp-transition-timing-function)":"none"}},r)});return e.jsx("div",{className:"idp-progress-steps",children:r})}():N&&N.length>0?function(){if(!N||0===N.length)return null;var n=N.reduce(function(e,n){return e+n.percent},0),t=void 0===a||0===a?n:a,r=n>0?t/n:t/100,i=Math.min(1,Math.max(0,r)),o=0,s=N.map(function(t,r){var a=t.percent,s=o/n,l=(o+a)/n;o+=a;var c=i>=l,d=i>s&&i<l,u=i<=s;return e.jsx("div",{className:p.default("idp-progress-segment",{"idp-progress-segment--completed":c,"idp-progress-segment--current":d,"idp-progress-segment--pending":u}),style:g(g({width:"".concat(a,"%")},u?{}:F(t)),{transition:_?"all var(--idp-transition-duration) var(--idp-transition-timing-function)":"none"})},r)}),l=100-n;return l>0&&s.push(e.jsx("div",{className:"idp-progress-segment idp-progress-segment--remaining",style:{width:"".concat(l,"%"),backgroundColor:"gainsboro",transition:_?"all var(--idp-transition-duration) var(--idp-transition-timing-function)":"none"}},"remaining")),e.jsx("div",{className:"idp-progress-segments",children:s})}():e.jsx("div",{className:"idp-progress-inner",style:{background:x},children:e.jsx("div",{className:p.default("idp-progress-bg",{"idp-progress-bg--success":"success"===M,"idp-progress-bg--exception":"exception"===M,"idp-progress-bg--animated":function(){var e="success"===M?"#52c41a":"exception"===M?"#ff4d4f":m;return j(e)&&!0===e.animated}()}),style:g(g({width:"".concat(Math.min(100,Math.max(0,a)),"%"),backgroundColor:j(m)?void 0:R()},function(){var e="success"===M?"#52c41a":"exception"===M?"#ff4d4f":m;if(j(e)){var n=e.from,t=e.to,r=e.direction;return{background:"linear-gradient(".concat(void 0===r?"to right":r,", ").concat(n,", ").concat(t,")")}}return{}}()),{transition:_?"width 0.3s cubic-bezier(0.34, 0.69, 0.1, 1)":"none"})})})})}),u&&e.jsxs("div",{className:"idp-progress-info",children:[H()&&e.jsx("span",{className:"idp-progress-icon",children:H()}),T&&e.jsx("span",{className:"idp-progress-prefix",children:T}),e.jsx("span",{children:I()}),O&&e.jsx("span",{className:"idp-progress-suffix",children:O})]})]})},La=function(e,n,t,r){var i=function(e){return e.toString().padStart(2,"0")};return"HH:mm"===r?"".concat(i(e),":").concat(i(n)):"".concat(i(e),":").concat(i(n),":").concat(i(t))},Aa=function(n){var t=n.options,r=n.value,i=n.onChange,o=n.unit,a=u.default.useRef(null),s=u.default.useRef(null);return u.default.useEffect(function(){if(s.current&&a.current){var e=a.current,n=s.current,t=e.clientHeight,r=n.offsetTop-t/2+18;requestAnimationFrame(function(){e.scrollTo({top:Math.max(0,r),behavior:"smooth"})})}},[r]),e.jsxs("div",{className:"time-picker-column",children:[e.jsx("div",{className:"time-picker-column-header",children:o}),e.jsx("div",{className:"time-picker-column-list",ref:a,children:t.map(function(n){return e.jsx("div",{ref:r===n?s:null,className:p.default("time-picker-option",{selected:r===n}),onClick:function(){return null==i?void 0:i(n)},children:n.toString().padStart(2,"0")},n)})})]})},ka=function(t){var r,i,o,a=t.value,s=t.onChange,l=t.format,c=t.hourStep,d=t.minuteStep,u=t.secondStep,p=t.disabledHours,f=t.disabledMinutes,h=t.disabledSeconds,g=t.hideDisabledOptions,m=void 0!==g&&g,v=t.showNow,x=void 0===v||v,b=t.showOk,y=void 0===b||b,C=t.onNow,w=t.onOk,_=function(e){if(!e)return null;var n=e.split(":");return n.length<2?null:{hour:parseInt(n[0],10)||0,minute:parseInt(n[1],10)||0,second:parseInt(n[2],10)||0}}(a),E=n.useState(null!==(r=null==_?void 0:_.hour)&&void 0!==r?r:0),N=E[0],S=E[1],T=n.useState(null!==(i=null==_?void 0:_.minute)&&void 0!==i?i:0),O=T[0],L=T[1],A=n.useState(null!==(o=null==_?void 0:_.second)&&void 0!==o?o:0),k=A[0],M=A[1];n.useEffect(function(){if(_)S(_.hour),L(_.minute),M(_.second);else{var e=new Date;S(e.getHours()),L(e.getMinutes()),M(e.getSeconds())}},[a,_]);var I=function(e,n,t){void 0===t&&(t=[]);for(var r=[],i=0;i<e;i+=n)m&&t.includes(i)||r.push(i);return r},j=n.useMemo(function(){return(null==p?void 0:p())||[]},[p]),R=n.useMemo(function(){return(null==f?void 0:f(N))||[]},[f,N]),D=n.useMemo(function(){return(null==h?void 0:h(N,O))||[]},[h,N,O]),H=n.useMemo(function(){return I(24,c,j)},[c,j,m]),P=n.useMemo(function(){return I(60,d,R)},[d,R,m]),z=n.useMemo(function(){return I(60,u,D)},[u,D,m]),V=l.includes("ss");return e.jsxs("div",{className:"time-picker-panel-container",children:[e.jsxs("div",{className:"time-picker-panel",children:[e.jsx(Aa,{unit:"时",options:H,value:N,onChange:function(e){S(e),null==s||s(La(e,O,k,l))}}),e.jsx(Aa,{unit:"分",options:P,value:O,onChange:function(e){L(e),null==s||s(La(N,e,k,l))}}),V&&e.jsx(Aa,{unit:"秒",options:z,value:k,onChange:function(e){M(e),null==s||s(La(N,O,e,l))}})]}),(x||y)&&e.jsxs("div",{className:"time-picker-footer",children:[x&&e.jsx("button",{className:"time-picker-now-btn",onClick:C,children:"此刻"}),y&&e.jsx("button",{className:"time-picker-ok-btn",onClick:function(){return null==w?void 0:w(La(N,O,k,l))},children:"确定"})]})]})},Ma=function(t){var r,i=t.size,o=void 0===i?"middle":i,a=t.value,s=t.defaultValue,l=t.onChange,c=t.placeholder,d=void 0===c?"请选择时间":c,u=t.disabled,f=void 0!==u&&u,m=t.readOnly,v=void 0!==m&&m,x=t.className,b=void 0===x?"":x,y=t.style,C=t.width,w=void 0===C?120:C,_=t.format,E=void 0===_?"HH:mm:ss":_,N=t.allowClear,S=void 0===N||N,T=t.hourStep,O=void 0===T?1:T,L=t.minuteStep,A=void 0===L?1:L,k=t.secondStep,M=void 0===k?1:k,I=t.disabledHours,j=t.disabledMinutes,R=t.disabledSeconds,H=t.hideDisabledOptions,P=void 0!==H&&H,z=t.label,V=t.labelGap,B=void 0===V?8:V,U=t.labelClassName,F=void 0===U?"":U,Y=t.labelStyle,$=t.onOpenChange,G=t.open,W=t.showNow,K=void 0===W||W,Z=t.showOk,X=void 0===Z||Z,q=n.useState(s),J=q[0],Q=q[1],ee=n.useState(!1),ne=ee[0],te=ee[1],re=n.useState(!1),ie=re[0],oe=re[1],ae=n.useState({top:0,left:0,width:0}),se=ae[0],le=ae[1],ce=n.useState(!1),de=ce[0],ue=ce[1],pe=n.useRef(null),fe=n.useRef(null),he=void 0!==a,ge=he?a:J,me=void 0!==G?G:ne,ve=n.useCallback(function(){if(pe.current){var e=pe.current.getBoundingClientRect(),n=Math.max(e.width,200),t=window.innerHeight-e.bottom,r=e.bottom+window.scrollY+4,i=e.left+window.scrollX;t<280&&e.top>280&&(r=e.top+window.scrollY-280-4);var o=window.innerWidth;i+n>o&&(i=o-n-16),le({top:r,left:i,width:n})}},[]);n.useEffect(function(){if(me&&fe.current&&pe.current){return ue(!1),requestAnimationFrame(function(){var e=pe.current.getBoundingClientRect(),n=fe.current.offsetHeight;if(window.innerHeight-e.bottom<280&&e.top>280){var t=e.top+window.scrollY-n-4;le(function(e){return g(g({},e),{top:t})})}ue(!0)}),function(){ue(!1)}}},[me]),n.useEffect(function(){var e=function(e){pe.current&&!pe.current.contains(e.target)&&fe.current&&!fe.current.contains(e.target)&&(void 0===G&&te(!1),null==$||$(!1),oe(!1))};return me&&(document.addEventListener("mousedown",e),ve(),window.addEventListener("scroll",ve,!0),window.addEventListener("resize",ve)),function(){document.removeEventListener("mousedown",e),window.removeEventListener("scroll",ve,!0),window.removeEventListener("resize",ve)}},[me,G,$,ve]);var xe=n.useCallback(function(e){he||Q(e),null==l||l(e)},[he,l]),be=function(){var e=new Date,n=function(e,n,t,r){var i=function(e){return e.toString().padStart(2,"0")};return"HH:mm"===r?"".concat(i(e),":").concat(i(n)):"".concat(i(e),":").concat(i(n),":").concat(i(t))}(e.getHours(),e.getMinutes(),e.getSeconds(),E);xe(n)},ye=g({width:"number"==typeof w?"".concat(w,"px"):w},y),Ce=g({marginRight:"number"==typeof B?"".concat(B,"px"):B},Y),we=e.jsxs("div",{ref:pe,className:p.default("time-picker-trigger",(r={focused:ie,disabled:f},r["size-".concat(o)]=o,r)),onClick:function(){if(!f&&!v){var e=!me;void 0===G&&te(e),null==$||$(e),oe(e)}},children:[e.jsx("span",{className:p.default("time-picker-value",{placeholder:!ge}),children:ge||d}),e.jsxs("span",{className:"time-picker-suffix",children:[S&&ge&&!f&&!v&&e.jsx("span",{className:"time-picker-clear",onClick:function(e){e.stopPropagation(),he||Q(void 0),null==l||l("")},children:e.jsx(D,{type:"close",size:"small"})}),e.jsx(D,{type:"clock",size:"small",className:p.default("time-picker-icon",{open:me,"has-clear":S&&ge&&!f&&!v})})]})]});return e.jsxs("div",{className:p.default("time-picker",b,{"time-picker-with-label":z}),style:ye,children:[z&&e.jsx("span",{className:p.default("time-picker-label",F),style:Ce,children:z}),we,function(){if(!me)return null;var n=e.jsx("div",{ref:fe,className:"time-picker-dropdown",style:{position:"fixed",top:se.top,left:se.left,minWidth:se.width||("number"==typeof w?w:parseInt(w,10)),zIndex:999,opacity:de?1:0,transition:"opacity 0.15s ease"},children:e.jsx(ka,{value:ge,onChange:xe,format:E,hourStep:O,minuteStep:A,secondStep:M,disabledHours:I,disabledMinutes:j,disabledSeconds:R,hideDisabledOptions:P,showNow:K,showOk:X,onNow:be,onOk:function(e){return function(e){e&&!ge&&xe(e),void 0===G&&te(!1),null==$||$(!1),oe(!1)}(e)}})});return h.default.createPortal(n,document.body)}()]})};Ma.RangePicker=function(t){var r,i=t.size,o=void 0===i?"middle":i,a=t.value,s=t.defaultValue,l=t.onChange,c=t.placeholder,d=void 0===c?["开始时间","结束时间"]:c,u=t.disabled,f=void 0!==u&&u,m=t.readOnly,v=void 0!==m&&m,x=t.className,b=void 0===x?"":x,y=t.style,C=t.width,w=void 0===C?"auto":C,_=t.format,E=void 0===_?"HH:mm:ss":_,N=t.allowClear,S=void 0===N||N,T=t.hourStep,O=void 0===T?1:T,L=t.minuteStep,A=void 0===L?1:L,k=t.secondStep,M=void 0===k?1:k,I=t.disabledHours,j=t.disabledMinutes,R=t.disabledSeconds,H=t.hideDisabledOptions,P=void 0!==H&&H,z=t.label,V=t.labelGap,B=void 0===V?8:V,U=t.labelClassName,F=void 0===U?"":U,Y=t.labelStyle,$=t.onOpenChange,G=t.open,W=t.separator,K=n.useState(s),Z=K[0],X=K[1],q=n.useState(!1),J=q[0],Q=q[1],ee=n.useState("start"),ne=ee[0],te=ee[1],re=n.useState(!1),ie=re[0],oe=re[1],ae=n.useState({top:0,left:0,width:0}),se=ae[0],le=ae[1],ce=n.useState(!1),de=ce[0],ue=ce[1],pe=n.useRef(null),fe=n.useRef(null),he=void 0!==a,ge=he?a:Z,me=void 0!==G?G:J,ve=(null==ge?void 0:ge[0])||"",xe=(null==ge?void 0:ge[1])||"",be=n.useCallback(function(){if(pe.current){var e=pe.current.getBoundingClientRect(),n=Math.max(e.width,200),t=window.innerHeight-e.bottom,r=e.bottom+window.scrollY+4,i=e.left+window.scrollX;t<280&&e.top>280&&(r=e.top+window.scrollY-280-4);var o=window.innerWidth;i+n>o&&(i=o-n-16),le({top:r,left:i,width:n})}},[]);n.useEffect(function(){if(me&&fe.current&&pe.current){return ue(!1),requestAnimationFrame(function(){var e=pe.current.getBoundingClientRect(),n=fe.current.offsetHeight;if(window.innerHeight-e.bottom<280&&e.top>280){var t=e.top+window.scrollY-n-4;le(function(e){return g(g({},e),{top:t})})}ue(!0)}),function(){ue(!1)}}},[me]),n.useEffect(function(){var e=function(e){pe.current&&!pe.current.contains(e.target)&&fe.current&&!fe.current.contains(e.target)&&(void 0===G&&Q(!1),null==$||$(!1),oe(!1))};return me&&(document.addEventListener("mousedown",e),be(),window.addEventListener("scroll",be,!0),window.addEventListener("resize",be)),function(){document.removeEventListener("mousedown",e),window.removeEventListener("scroll",be,!0),window.removeEventListener("resize",be)}},[me,G,$,be]);var ye=n.useCallback(function(e,n){var t=[0===e?n:(null==ge?void 0:ge[0])||"",1===e?n:(null==ge?void 0:ge[1])||""];he||X(t),null==l||l(t)},[he,l,ge]),Ce=function(e){f||v||(te(e),void 0===G&&Q(!0),null==$||$(!0),oe(!0))},we=function(){void 0===G&&Q(!1),null==$||$(!1),oe(!1)},_e=g({width:"number"==typeof w?"".concat(w,"px"):w},y),Ee=g({marginRight:"number"==typeof B?"".concat(B,"px"):B},Y),Ne=ve||xe;return e.jsxs("div",{className:p.default("time-picker time-range-picker",b,{"time-picker-with-label":z}),style:_e,children:[z&&e.jsx("span",{className:p.default("time-picker-label",F),style:Ee,children:z}),e.jsxs("div",{ref:pe,className:p.default("time-range-picker-trigger",(r={focused:ie,disabled:f},r["size-".concat(o)]=o,r)),children:[e.jsx("div",{className:p.default("time-range-picker-input",{active:"start"===ne&&me}),onClick:function(){return Ce("start")},children:e.jsx("span",{className:p.default("time-range-picker-value",{placeholder:!ve}),children:ve||d[0]})}),e.jsx("span",{className:"time-range-picker-separator",children:W||e.jsx(D,{type:"arrow-right",size:"small"})}),e.jsx("div",{className:p.default("time-range-picker-input",{active:"end"===ne&&me}),onClick:function(){return Ce("end")},children:e.jsx("span",{className:p.default("time-range-picker-value",{placeholder:!xe}),children:xe||d[1]})}),e.jsxs("span",{className:"time-picker-suffix time-range-picker-suffix",children:[S&&Ne&&!f&&!v&&e.jsx("span",{className:"time-picker-clear",onClick:function(e){e.stopPropagation(),he||X(void 0),null==l||l(["",""])},children:e.jsx(D,{type:"close",size:"small"})}),e.jsx(D,{type:"clock",size:"small",className:p.default("time-picker-icon",{"has-clear":S&&Ne&&!f&&!v})})]})]}),function(){if(!me)return null;var n="start"===ne?ve:xe,t=e.jsx("div",{ref:fe,className:"time-picker-dropdown time-range-picker-dropdown",style:{position:"fixed",top:se.top,left:se.left,minWidth:se.width||("number"==typeof w?w:parseInt(w,10)),zIndex:999,opacity:de?1:0,transition:"opacity 0.15s ease"},children:e.jsx(ka,{value:n,onChange:function(e){return ye("start"===ne?0:1,e)},format:E,hourStep:O,minuteStep:A,secondStep:M,disabledHours:I,disabledMinutes:j,disabledSeconds:R,hideDisabledOptions:P,showNow:!1,showOk:!0,onOk:we})});return h.default.createPortal(t,document.body)}()]})};var Ia=Ma,ja=function(e,n){if(!e)return"";var t=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0");switch(n){case"YYYY/MM/DD":return"".concat(t,"/").concat(r,"/").concat(i);case"DD-MM-YYYY":return"".concat(i,"-").concat(r,"-").concat(t);case"MM/DD/YYYY":return"".concat(r,"/").concat(i,"/").concat(t);default:return"".concat(t,"-").concat(r,"-").concat(i)}},Ra=function(e,n){var t,r,i,o,a,s,l;if(!e)return null;try{switch(n){case"YYYY/MM/DD":a=(t=e.split("/").map(Number))[0],s=t[1],l=t[2];break;case"DD-MM-YYYY":l=(r=e.split("-").map(Number))[0],s=r[1],a=r[2];break;case"MM/DD/YYYY":s=(i=e.split("/").map(Number))[0],l=i[1],a=i[2];break;default:a=(o=e.split("-").map(Number))[0],s=o[1],l=o[2]}if(isNaN(a)||isNaN(s)||isNaN(l))return null;var c=new Date(a,s-1,l);return c.getFullYear()!==a||c.getMonth()!==s-1||c.getDate()!==l?null:c}catch(e){return null}},Da=function(e,n){return new Date(e,n+1,0).getDate()},Ha=function(e,n){return!(!e||!n)&&(e.getFullYear()===n.getFullYear()&&e.getMonth()===n.getMonth()&&e.getDate()===n.getDate())},Pa=function(e,n){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),r=new Date(n.getFullYear(),n.getMonth(),n.getDate());return t.getTime()<r.getTime()},za=function(t){var r=t.size,i=void 0===r?"middle":r,o=t.value,a=t.defaultValue,s=t.onChange,l=t.placeholder,c=void 0===l?["开始日期","结束日期"]:l,d=t.disabled,u=void 0!==d&&d,f=t.readOnly,m=void 0!==f&&f,v=t.className,x=void 0===v?"":v,b=t.style,y=t.width,C=void 0===y?"auto":y,w=t.format,_=void 0===w?"YYYY-MM-DD":w,E=t.allowClear,N=void 0===E||E,S=t.disabledDate,T=t.disabledDates,O=t.label,L=t.labelGap,A=void 0===L?8:L,k=t.labelClassName,M=void 0===k?"":k,I=t.labelStyle,j=t.onOpenChange,R=t.open,H=t.showOk,P=void 0===H||H,z=t.separator,V=n.useState(a),B=V[0],U=V[1],F=n.useState(!1),Y=F[0],$=F[1],G=n.useState("start"),W=G[0],K=G[1],Z=n.useState(!1),X=Z[0],q=Z[1],J=n.useState({top:0,left:0,width:0}),Q=J[0],ee=J[1],ne=n.useState(!1),te=ne[0],re=ne[1],ie=n.useRef(null),oe=n.useRef(null),ae=void 0!==o,se=ae?o:B,le=void 0!==R?R:Y,ce=(null==se?void 0:se[0])||"",de=(null==se?void 0:se[1])||"",ue=n.useMemo(function(){return Ra(ce,_)},[ce,_]),pe=n.useMemo(function(){return Ra(de,_)},[de,_]),fe=n.useState(ue||new Date),he=fe[0],ge=fe[1],me=n.useState(function(){if(pe)return pe;if(ue){var e=new Date(ue);return e.setMonth(e.getMonth()+1),e}var n=new Date;return n.setMonth(n.getMonth()+1),n}),ve=me[0],xe=me[1];n.useEffect(function(){ue&&ge(ue),pe&&xe(pe)},[ue,pe]);var be=n.useCallback(function(){if(ie.current){var e=ie.current.getBoundingClientRect(),n=Math.max(e.width,560),t=window.innerHeight-e.bottom,r=e.bottom+window.scrollY+4,i=e.left+window.scrollX;t<360&&e.top>360&&(r=e.top+window.scrollY-360-4);var o=window.innerWidth;i+n>o&&(i=o-n-16),ee({top:r,left:i,width:n})}},[]);n.useEffect(function(){if(le&&oe.current&&ie.current){return re(!1),requestAnimationFrame(function(){var e=ie.current.getBoundingClientRect(),n=oe.current.offsetHeight;if(window.innerHeight-e.bottom<360&&e.top>360){var t=e.top+window.scrollY-n-4;ee(function(e){return g(g({},e),{top:t})})}re(!0)}),function(){re(!1)}}},[le]),n.useEffect(function(){var e=function(e){ie.current&&!ie.current.contains(e.target)&&oe.current&&!oe.current.contains(e.target)&&(void 0===R&&$(!1),null==j||j(!1),q(!1))};return le&&(document.addEventListener("mousedown",e),be(),window.addEventListener("scroll",be,!0),window.addEventListener("resize",be)),function(){document.removeEventListener("mousedown",e),window.removeEventListener("scroll",be,!0),window.removeEventListener("resize",be)}},[le,R,j,be]);var ye=n.useCallback(function(e,n){var t=[0===e?n:(null==se?void 0:se[0])||"",1===e?n:(null==se?void 0:se[1])||""];ae||U(t),null==s||s(t)},[ae,s,se]),Ce=function(e){u||m||(K(e),void 0===R&&$(!0),null==j||j(!0),q(!0))},we=function(){void 0===R&&$(!1),null==j||j(!1),q(!1)},_e=n.useCallback(function(e){if(S&&S(e))return!0;if(T&&T.length>0){var n=ja(e,_);return T.includes(n)}return!1},[S,T,_]),Ee=function(e){for(var n=e.getFullYear(),t=e.getMonth(),r=Da(n,t),i=function(e,n){return new Date(e,n,1).getDay()}(n,t),o=Da(n,t-1),a=[],s=i-1;s>=0;s--)a.push({date:new Date(n,t-1,o-s),isCurrentMonth:!1});for(s=1;s<=r;s++)a.push({date:new Date(n,t,s),isCurrentMonth:!0});var l=42-a.length;for(s=1;s<=l;s++)a.push({date:new Date(n,t+1,s),isCurrentMonth:!1});return a},Ne=function(n){var t=n.viewDate,r=n.onPrevMonth,i=n.onNextMonth,o=n.label,a=t.getFullYear(),s=t.getMonth();return e.jsxs("div",{className:"idp-datepicker-range-calendar-header",children:[e.jsx("div",{className:"idp-datepicker-range-header-left",children:e.jsx("button",{className:"idp-datepicker-range-header-btn",onClick:r,title:"上个月",children:e.jsx(D,{type:"arrowLeft",size:14,color:"var(--idp-text-color-secondary)"})})}),e.jsxs("div",{className:"idp-datepicker-range-header-center",children:[e.jsxs("span",{children:[a,"年 ",["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"][s]]}),e.jsx("span",{className:"idp-datepicker-range-header-label",children:o})]}),e.jsx("div",{className:"idp-datepicker-range-header-right",children:e.jsx("button",{className:"idp-datepicker-range-header-btn",onClick:i,title:"下个月",children:e.jsx(D,{type:"arrowRight",size:14,color:"var(--idp-text-color-secondary)"})})})]})},Se=function(t){var r=t.viewDate,i=t.onPrevMonth,o=t.onNextMonth,a=t.label,s=n.useMemo(function(){return Ee(r)},[r]);return e.jsxs("div",{className:"idp-datepicker-range-calendar",children:[e.jsx(Ne,{viewDate:r,onPrevMonth:i,onNextMonth:o,label:a}),e.jsxs("div",{className:"idp-datepicker-range-calendar-body",children:[e.jsx("div",{className:"idp-datepicker-range-week-header",children:["日","一","二","三","四","五","六"].map(function(n){return e.jsx("div",{className:"idp-datepicker-range-week-day",children:n},n)})}),e.jsx("div",{className:"idp-datepicker-range-date-grid",children:s.map(function(n,t){var r=n.date,i=n.isCurrentMonth,o=Ha(r,"start"===W?ue:pe),a=function(e){var n=new Date;return Ha(e,n)}(r),s=_e(r),l=function(e){return!(!ue||!pe)&&Pa(ue,e)&&Pa(e,pe)}(r),c=function(e){return Ha(e,ue)}(r),d=function(e){return Ha(e,pe)}(r);return e.jsx("div",{className:p.default("idp-datepicker-range-date-cell",{"idp-datepicker-range-date-cell--selected":o,"idp-datepicker-range-date-cell--today":a&&!o,"idp-datepicker-range-date-cell--disabled":s,"idp-datepicker-range-date-cell--other-month":!i,"idp-datepicker-range-date-cell--in-range":l&&!c&&!d,"idp-datepicker-range-date-cell--range-start":c,"idp-datepicker-range-date-cell--range-end":d}),onClick:function(){return function(e){if(!_e(e)){var n=ja(e,_);"start"===W?(ye(0,n),pe&&Pa(pe,e)&&ye(1,""),K("end")):(ue&&Pa(e,ue)?(ye(0,n),ye(1,ce)):ye(1,n),P||we())}}(r)},children:r.getDate()},t)})})]})]})},Te=g({width:"number"==typeof C?"".concat(C,"px"):C},b),Oe=g({marginRight:"number"==typeof A?"".concat(A,"px"):A},I),Le=ce||de,Ae={"idp-datepicker-range-picker-trigger--small":"small"===i,"idp-datepicker-range-picker-trigger--middle":"middle"===i,"idp-datepicker-range-picker-trigger--large":"large"===i};return e.jsxs("div",{className:p.default("idp-datepicker-range-picker",x,{"idp-datepicker-range-picker-with-label":O}),style:Te,children:[O&&e.jsx("span",{className:p.default("idp-datepicker-range-picker-label",M),style:Oe,children:O}),e.jsxs("div",{ref:ie,className:p.default("idp-datepicker-range-picker-trigger",Ae,{"idp-datepicker-range-picker-trigger--focused":X,"idp-datepicker-range-picker-trigger--disabled":u}),children:[e.jsx("div",{className:p.default("idp-datepicker-range-picker-input",{"idp-datepicker-range-picker-input--active":"start"===W&&le}),onClick:function(){return Ce("start")},children:e.jsx("span",{className:p.default("idp-datepicker-range-picker-value",{"idp-datepicker-range-picker-value--placeholder":!ce}),children:ce||c[0]})}),e.jsx("span",{className:"idp-datepicker-range-picker-separator",children:z||e.jsx(D,{type:"arrow-right",size:"small"})}),e.jsx("div",{className:p.default("idp-datepicker-range-picker-input",{"idp-datepicker-range-picker-input--active":"end"===W&&le}),onClick:function(){return Ce("end")},children:e.jsx("span",{className:p.default("idp-datepicker-range-picker-value",{"idp-datepicker-range-picker-value--placeholder":!de}),children:de||c[1]})}),e.jsxs("span",{className:"idp-datepicker-range-picker-suffix",children:[N&&Le&&!u&&!m&&e.jsx("span",{className:"idp-datepicker-range-picker-clear",onClick:function(e){e.stopPropagation(),ae||U(void 0),null==s||s(["",""])},children:e.jsx(D,{type:"close",size:"small"})}),e.jsx(D,{type:"calendar",size:"small",className:p.default("idp-datepicker-range-picker-icon",{"idp-datepicker-range-picker-icon--has-clear":N&&Le&&!u&&!m})})]})]}),function(){if(!le)return null;var n=e.jsxs("div",{ref:oe,className:"idp-datepicker-range-dropdown",style:{position:"fixed",top:Q.top,left:Q.left,minWidth:Q.width||("number"==typeof C?C:parseInt(C,10)||280),zIndex:999,opacity:te?1:0,transition:"opacity 0.15s ease"},children:[e.jsxs("div",{className:"idp-datepicker-range-panels",children:[e.jsx(Se,{viewDate:he,onPrevMonth:function(){var e=new Date(he);e.setMonth(e.getMonth()-1),ge(e)},onNextMonth:function(){var e=new Date(he);e.setMonth(e.getMonth()+1),ge(e)},label:"开始日期"}),e.jsx(Se,{viewDate:ve,onPrevMonth:function(){var e=new Date(ve);e.setMonth(e.getMonth()-1),xe(e)},onNextMonth:function(){var e=new Date(ve);e.setMonth(e.getMonth()+1),xe(e)},label:"结束日期"})]}),P&&e.jsxs("div",{className:"idp-datepicker-range-footer",children:[e.jsx("div",{className:"idp-datepicker-range-footer-spacer"}),e.jsx("div",{className:"idp-datepicker-range-footer-actions",children:e.jsx("button",{className:"idp-datepicker-range-btn idp-datepicker-range-btn--primary",onClick:we,children:"确定"})})]})]});return h.default.createPortal(n,document.body)}()]})},Va=f.default.div.withConfig({shouldForwardProp:function(e){return!["width","minWidth"].includes(e)}})(Qa||(Qa=y(["\n display: inline-block;\n position: relative;\n font-size: 14px;\n font-family: inherit;\n width: ",";\n min-width: ",";\n"],["\n display: inline-block;\n position: relative;\n font-size: 14px;\n font-family: inherit;\n width: ",";\n min-width: ",";\n"])),function(e){return"number"==typeof e.width?"".concat(e.width,"px"):e.width||"auto"},function(e){return e.minWidth?"number"==typeof e.minWidth?"".concat(e.minWidth,"px"):e.minWidth:"0px"}),Ba=f.default.div.withConfig({shouldForwardProp:function(e){return!["focused"].includes(e)}})(es||(es=y(["\n display: flex;\n align-items: center;\n width: 100%;\n min-height: ",";\n height: auto;\n padding: ",";\n border: 1px solid ",";\n border-radius: var(--idp-border-radius-sm);\n background-color: ",";\n cursor: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: var(--idp-primary-color);\n box-shadow: var(--idp-input-box-shadow-focus);\n }\n"],["\n display: flex;\n align-items: center;\n width: 100%;\n min-height: ",";\n height: auto;\n padding: ",";\n border: 1px solid ",";\n border-radius: var(--idp-border-radius-sm);\n background-color: ",";\n cursor: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: var(--idp-primary-color);\n box-shadow: var(--idp-input-box-shadow-focus);\n }\n"])),function(e){switch(e.size){case"small":return"24px";case"large":return"40px";default:return"32px"}},function(e){switch(e.size){case"small":return"1px 12px";case"large":return"3px 12px";default:return"2px 12px"}},function(e){return e.disabled?"var(--idp-border-color-extra-light)":e.focused?"var(--idp-primary-color)":"var(--idp-border-color-extra-light)"},function(e){return e.disabled?"var(--idp-bg-color-light)":"var(--idp-bg-color-white)"},function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.disabled?"var(--idp-border-color-extra-light)":"var(--idp-primary-color)"}),Ua=f.default.span.withConfig({shouldForwardProp:function(e){return!["isPlaceholder"].includes(e)}})(ns||(ns=y(["\n flex: 1;\n color: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 14px;\n\n /* 多选模式下的 tags 布局 */\n &.idp-datepicker-value--tags {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n align-items: center;\n overflow: visible;\n white-space: normal;\n padding: 2px 0;\n }\n"],["\n flex: 1;\n color: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 14px;\n\n /* 多选模式下的 tags 布局 */\n &.idp-datepicker-value--tags {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n align-items: center;\n overflow: visible;\n white-space: normal;\n padding: 2px 0;\n }\n"])),function(e){return e.disabled?"var(--idp-text-color-tertiary)":e.isPlaceholder?"var(--idp-text-color-light)":"var(--idp-text-color)"}),Fa=f.default.span(ts||(ts=y(["\n display: flex;\n align-items: center;\n margin-left: 8px;\n color: var(--idp-text-color-light);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n position: relative;\n width: 16px;\n height: 16px;\n"],["\n display: flex;\n align-items: center;\n margin-left: 8px;\n color: var(--idp-text-color-light);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n position: relative;\n width: 16px;\n height: 16px;\n"]))),Ya=f.default.span(rs||(rs=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n color: var(--idp-text-color-tertiary);\n cursor: pointer;\n border-radius: 50%;\n background-color: transparent;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n opacity: 0;\n visibility: hidden;\n z-index: 2;\n\n &:hover {\n color: var(--idp-text-color);\n background-color: var(--idp-bg-color-light);\n }\n\n & > * {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n color: var(--idp-text-color-tertiary);\n cursor: pointer;\n border-radius: 50%;\n background-color: transparent;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n opacity: 0;\n visibility: hidden;\n z-index: 2;\n\n &:hover {\n color: var(--idp-text-color);\n background-color: var(--idp-bg-color-light);\n }\n\n & > * {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"]))),$a=f.default.span(is||(is=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 14px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n opacity: 1;\n visibility: visible;\n z-index: 1;\n width: 16px;\n height: 16px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 14px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n opacity: 1;\n visibility: visible;\n z-index: 1;\n width: 16px;\n height: 16px;\n"]))),Ga=f.default.div.withConfig({shouldForwardProp:function(e){return!["top","left","minWidth"].includes(e)}})(os||(os=y(["\n position: fixed;\n top: ","px;\n left: ","px;\n z-index: 999;\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n box-shadow: var(--idp-shadow-lg);\n overflow: hidden;\n min-width: ",";\n"],["\n position: fixed;\n top: ","px;\n left: ","px;\n z-index: 999;\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n box-shadow: var(--idp-shadow-lg);\n overflow: hidden;\n min-width: ",";\n"])),function(e){return e.top},function(e){return e.left},function(e){return e.minWidth?"".concat(e.minWidth,"px"):"280px"}),Wa=f.default.div(as||(as=y(["\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n"],["\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n"]))),Ka=f.default.div(ss||(ss=y(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n border-bottom: 1px solid var(--idp-border-color-light);\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n border-bottom: 1px solid var(--idp-border-color-light);\n"]))),Za=f.default.div(ls||(ls=y(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),Xa=f.default.div(cs||(cs=y(["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n color: var(--idp-text-color);\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n color: var(--idp-text-color);\n"]))),qa=f.default.div(ds||(ds=y(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),Ja=f.default.button(us||(us=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n border: none;\n background-color: transparent;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: var(--idp-text-color-secondary);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not(:disabled) {\n background-color: var(--idp-bg-color-light);\n color: var(--idp-primary-color);\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n border: none;\n background-color: transparent;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: var(--idp-text-color-secondary);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not(:disabled) {\n background-color: var(--idp-bg-color-light);\n color: var(--idp-primary-color);\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"])));f.default.select(ps||(ps=y(["\n border: none;\n background-color: transparent;\n font-size: 14px;\n font-weight: 500;\n color: var(--idp-text-color);\n cursor: pointer;\n padding: 2px 4px;\n border-radius: var(--idp-border-radius-sm);\n\n &:hover {\n background-color: var(--idp-bg-color-light);\n }\n\n &:focus {\n outline: none;\n background-color: var(--idp-bg-color-light);\n }\n"],["\n border: none;\n background-color: transparent;\n font-size: 14px;\n font-weight: 500;\n color: var(--idp-text-color);\n cursor: pointer;\n padding: 2px 4px;\n border-radius: var(--idp-border-radius-sm);\n\n &:hover {\n background-color: var(--idp-bg-color-light);\n }\n\n &:focus {\n outline: none;\n background-color: var(--idp-bg-color-light);\n }\n"])));var Qa,es,ns,ts,rs,is,os,as,ss,ls,cs,ds,us,ps,fs,hs,gs,ms,vs,xs,bs,ys,Cs,ws,_s,Es,Ns,Ss,Ts,Os,Ls,As,ks,Ms,Is,js,Rs,Ds,Hs,Ps,zs,Vs,Bs,Us,Fs,Ys,$s,Gs,Ws,Ks,Zs,Xs,qs,Js,Qs,el,nl,tl,rl,il,ol,al,sl=f.default.div(fs||(fs=y(["\n padding: 12px 16px;\n"],["\n padding: 12px 16px;\n"]))),ll=f.default.div(hs||(hs=y(["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 0;\n margin-bottom: 8px;\n"],["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 0;\n margin-bottom: 8px;\n"]))),cl=f.default.div(gs||(gs=y(["\n text-align: center;\n font-size: 12px;\n color: var(--idp-text-color-tertiary);\n padding: 8px 0;\n font-weight: 500;\n"],["\n text-align: center;\n font-size: 12px;\n color: var(--idp-text-color-tertiary);\n padding: 8px 0;\n font-weight: 500;\n"]))),dl=f.default.div(ms||(ms=y(["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 4px;\n"],["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 4px;\n"]))),ul=f.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isInSelectedSet","isToday","isCurrentMonth"].includes(e)}})(vs||(vs=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n font-size: 13px;\n cursor: ",";\n border-radius: var(--idp-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n font-size: 13px;\n cursor: ",";\n border-radius: var(--idp-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"])),function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.disabled?"var(--idp-text-color-light)":e.isSelected?"#fff":e.isInSelectedSet||e.isToday?"var(--idp-primary-color)":e.isCurrentMonth?"var(--idp-text-color)":"var(--idp-text-color-light)"},function(e){return e.isSelected?"var(--idp-primary-color)":e.isInSelectedSet?"var(--idp-primary-light-color, rgba(24, 100, 240, 0.1))":"transparent"},function(e){return e.isToday||e.isSelected||e.isInSelectedSet?"500":"normal"},function(e){return e.isSelected?"var(--idp-primary-hover-color)":e.isInSelectedSet?"var(--idp-primary-light-hover-color, rgba(24, 100, 240, 0.2))":"var(--idp-bg-color-light)"},function(e){return e.isToday&&!e.isSelected&&"\n border: 1px solid var(--idp-primary-color);\n "}),pl=f.default.div(xs||(xs=y(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px;\n border-top: 1px solid var(--idp-border-color-light);\n gap: 8px;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px;\n border-top: 1px solid var(--idp-border-color-light);\n gap: 8px;\n"]))),fl=f.default.div(bs||(bs=y(["\n flex: 1;\n"],["\n flex: 1;\n"]))),hl=f.default.div(ys||(ys=y(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),gl=f.default.button.withConfig({shouldForwardProp:function(e){return!["variant"].includes(e)}})(Cs||(Cs=y(["\n padding: 4px 12px;\n font-size: 13px;\n border-radius: var(--idp-border-radius-sm);\n cursor: pointer;\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n border: 1px solid ",";\n background-color: ",";\n color: ",";\n\n &:hover:not(:disabled) {\n border-color: var(--idp-primary-color);\n ","\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"],["\n padding: 4px 12px;\n font-size: 13px;\n border-radius: var(--idp-border-radius-sm);\n cursor: pointer;\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n border: 1px solid ",";\n background-color: ",";\n color: ",";\n\n &:hover:not(:disabled) {\n border-color: var(--idp-primary-color);\n ","\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"])),function(e){return"primary"===e.variant?"var(--idp-primary-color)":"var(--idp-border-color-extra-light)"},function(e){return"primary"===e.variant?"var(--idp-primary-color)":"var(--idp-bg-color-white)"},function(e){return"primary"===e.variant?"#fff":"var(--idp-text-color)"},function(e){return"primary"===e.variant?"background-color: var(--idp-primary-hover-color);":"color: var(--idp-primary-color);"}),ml=f.default.div.withConfig({shouldForwardProp:function(e){return!["gap"].includes(e)}})(ws||(ws=y(["\n display: flex;\n align-items: center;\n gap: ",";\n"],["\n display: flex;\n align-items: center;\n gap: ",";\n"])),function(e){return"number"==typeof e.gap?"".concat(e.gap,"px"):e.gap||"8px"}),vl=f.default.label(_s||(_s=y(["\n font-size: 14px;\n color: var(--idp-text-color);\n white-space: nowrap;\n user-select: none;\n"],["\n font-size: 14px;\n color: var(--idp-text-color);\n white-space: nowrap;\n user-select: none;\n"]))),xl=f.default.div(Es||(Es=y(["\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n min-width: 280px;\n"],["\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n min-width: 280px;\n"]))),bl=f.default.div(Ns||(Ns=y(["\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 8px;\n padding: 16px;\n"],["\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 8px;\n padding: 16px;\n"]))),yl=f.default.div(Ss||(Ss=y(["\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n min-width: 280px;\n"],["\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n min-width: 280px;\n"]))),Cl=f.default.div(Ts||(Ts=y(["\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 8px;\n padding: 16px;\n"],["\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 8px;\n padding: 16px;\n"]))),wl=f.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isInSelectedSet","isCurrentMonth"].includes(e)}})(Os||(Os=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 40px;\n font-size: 14px;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 40px;\n font-size: 14px;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"])),function(e){return e.isSelected?"#fff":e.isInSelectedSet||e.isCurrentMonth?"var(--idp-primary-color)":"var(--idp-text-color)"},function(e){return e.isSelected?"var(--idp-primary-color)":e.isInSelectedSet?"var(--idp-primary-light-color, rgba(24, 100, 240, 0.1))":"transparent"},function(e){return e.isCurrentMonth||e.isSelected||e.isInSelectedSet?"500":"normal"},function(e){return e.isSelected?"var(--idp-primary-hover-color)":e.isInSelectedSet?"var(--idp-primary-light-hover-color, rgba(24, 100, 240, 0.2))":"var(--idp-bg-color-light)"},function(e){return e.isCurrentMonth&&!e.isSelected&&!e.isInSelectedSet&&"\n border: 1px solid var(--idp-primary-color);\n "}),_l=f.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isInSelectedSet","isCurrentYear"].includes(e)}})(Ls||(Ls=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 40px;\n font-size: 14px;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 40px;\n font-size: 14px;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"])),function(e){return e.isSelected?"#fff":e.isInSelectedSet||e.isCurrentYear?"var(--idp-primary-color)":"var(--idp-text-color)"},function(e){return e.isSelected?"var(--idp-primary-color)":e.isInSelectedSet?"var(--idp-primary-light-color, rgba(24, 100, 240, 0.1))":"transparent"},function(e){return e.isCurrentYear||e.isSelected||e.isInSelectedSet?"500":"normal"},function(e){return e.isSelected?"var(--idp-primary-hover-color)":e.isInSelectedSet?"var(--idp-primary-light-hover-color, rgba(24, 100, 240, 0.2))":"var(--idp-bg-color-light)"},function(e){return e.isCurrentYear&&!e.isSelected&&!e.isInSelectedSet&&"\n border: 1px solid var(--idp-primary-color);\n "}),El=f.default.div(As||(As=y(["\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n min-width: 280px;\n"],["\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n min-width: 280px;\n"]))),Nl=f.default.div(ks||(ks=y(["\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 8px;\n padding: 16px;\n"],["\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 8px;\n padding: 16px;\n"]))),Sl=f.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isInSelectedSet","isCurrentQuarter"].includes(e)}})(Ms||(Ms=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 48px;\n font-size: 14px;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 48px;\n font-size: 14px;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"])),function(e){return e.isSelected?"#fff":e.isInSelectedSet||e.isCurrentQuarter?"var(--idp-primary-color)":"var(--idp-text-color)"},function(e){return e.isSelected?"var(--idp-primary-color)":e.isInSelectedSet?"var(--idp-primary-light-color, rgba(24, 100, 240, 0.1))":"transparent"},function(e){return e.isCurrentQuarter||e.isSelected||e.isInSelectedSet?"500":"normal"},function(e){return e.isSelected?"var(--idp-primary-hover-color)":e.isInSelectedSet?"var(--idp-primary-light-hover-color, rgba(24, 100, 240, 0.2))":"var(--idp-bg-color-light)"},function(e){return e.isCurrentQuarter&&!e.isSelected&&!e.isInSelectedSet&&"\n border: 1px solid var(--idp-primary-color);\n "});f.default.div(Is||(Is=y(["\n display: inline-block;\n position: relative;\n font-size: 14px;\n font-family: inherit;\n width: ",";\n"],["\n display: inline-block;\n position: relative;\n font-size: 14px;\n font-family: inherit;\n width: ",";\n"])),function(e){return"number"==typeof e.width?"".concat(e.width,"px"):e.width||"auto"}),f.default.div.withConfig({shouldForwardProp:function(e){return!["focused","size","disabled"].includes(e)}})(js||(js=y(["\n display: flex;\n align-items: center;\n width: 100%;\n min-height: ",";\n height: auto;\n padding: ",";\n border: 1px solid ",";\n border-radius: var(--idp-border-radius-sm);\n background-color: ",";\n cursor: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: var(--idp-primary-color);\n box-shadow: var(--idp-input-box-shadow-focus);\n }\n"],["\n display: flex;\n align-items: center;\n width: 100%;\n min-height: ",";\n height: auto;\n padding: ",";\n border: 1px solid ",";\n border-radius: var(--idp-border-radius-sm);\n background-color: ",";\n cursor: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: var(--idp-primary-color);\n box-shadow: var(--idp-input-box-shadow-focus);\n }\n"])),function(e){switch(e.size){case"small":return"24px";case"large":return"40px";default:return"32px"}},function(e){switch(e.size){case"small":return"1px 12px";case"large":return"3px 12px";default:return"2px 12px"}},function(e){return e.disabled?"var(--idp-border-color-extra-light)":e.focused?"var(--idp-primary-color)":"var(--idp-border-color-extra-light)"},function(e){return e.disabled?"var(--idp-bg-color-light)":"var(--idp-bg-color-white)"},function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.disabled?"var(--idp-border-color-extra-light)":"var(--idp-primary-color)"}),f.default.div.withConfig({shouldForwardProp:function(e){return!["active"].includes(e)}})(Rs||(Rs=y(["\n flex: 1;\n padding: 4px 8px;\n text-align: center;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n ","\n\n &:hover {\n background-color: var(--idp-bg-color-light);\n }\n"],["\n flex: 1;\n padding: 4px 8px;\n text-align: center;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n ","\n\n &:hover {\n background-color: var(--idp-bg-color-light);\n }\n"])),function(e){return e.active&&"\n background-color: var(--idp-primary-light-color, rgba(24, 100, 240, 0.1));\n "}),f.default.span.withConfig({shouldForwardProp:function(e){return!["isPlaceholder"].includes(e)}})(Ds||(Ds=y(["\n color: ",";\n font-size: 14px;\n"],["\n color: ",";\n font-size: 14px;\n"])),function(e){return e.isPlaceholder?"var(--idp-text-color-light)":"var(--idp-text-color)"}),f.default.span(Hs||(Hs=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 8px;\n color: var(--idp-text-color-light);\n font-size: 14px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 8px;\n color: var(--idp-text-color-light);\n font-size: 14px;\n"]))),f.default.span(Ps||(Ps=y(["\n display: flex;\n align-items: center;\n margin-left: 8px;\n color: var(--idp-text-color-light);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n position: relative;\n width: 16px;\n height: 16px;\n"],["\n display: flex;\n align-items: center;\n margin-left: 8px;\n color: var(--idp-text-color-light);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n position: relative;\n width: 16px;\n height: 16px;\n"]))),f.default.span(zs||(zs=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n color: var(--idp-text-color-tertiary);\n cursor: pointer;\n border-radius: 50%;\n background-color: transparent;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n opacity: 0;\n visibility: hidden;\n z-index: 2;\n\n &:hover {\n color: var(--idp-text-color);\n background-color: var(--idp-bg-color-light);\n }\n\n & > * {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n color: var(--idp-text-color-tertiary);\n cursor: pointer;\n border-radius: 50%;\n background-color: transparent;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n opacity: 0;\n visibility: hidden;\n z-index: 2;\n\n &:hover {\n color: var(--idp-text-color);\n background-color: var(--idp-bg-color-light);\n }\n\n & > * {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"]))),f.default.span(Vs||(Vs=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 14px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n opacity: 1;\n visibility: visible;\n z-index: 1;\n width: 16px;\n height: 16px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 14px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n opacity: 1;\n visibility: visible;\n z-index: 1;\n width: 16px;\n height: 16px;\n"]))),f.default.div.withConfig({shouldForwardProp:function(e){return!["top","left"].includes(e)}})(Bs||(Bs=y(["\n position: fixed;\n top: ","px;\n left: ","px;\n z-index: 999;\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n box-shadow: var(--idp-shadow-lg);\n overflow: hidden;\n min-width: 560px;\n"],["\n position: fixed;\n top: ","px;\n left: ","px;\n z-index: 999;\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n box-shadow: var(--idp-shadow-lg);\n overflow: hidden;\n min-width: 560px;\n"])),function(e){return e.top},function(e){return e.left}),f.default.div(Us||(Us=y(["\n display: flex;\n gap: 16px;\n padding: 16px;\n"],["\n display: flex;\n gap: 16px;\n padding: 16px;\n"]))),f.default.div(Fs||(Fs=y(["\n flex: 1;\n min-width: 252px;\n"],["\n flex: 1;\n min-width: 252px;\n"]))),f.default.div(Ys||(Ys=y(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 8px 0;\n margin-bottom: 8px;\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 8px 0;\n margin-bottom: 8px;\n"]))),f.default.div($s||($s=y(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),f.default.div(Gs||(Gs=y(["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n color: var(--idp-text-color);\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n color: var(--idp-text-color);\n"]))),f.default.div(Ws||(Ws=y(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),f.default.button(Ks||(Ks=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n border: none;\n background-color: transparent;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: var(--idp-text-color-secondary);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not(:disabled) {\n background-color: var(--idp-bg-color-light);\n color: var(--idp-primary-color);\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n border: none;\n background-color: transparent;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: var(--idp-text-color-secondary);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not(:disabled) {\n background-color: var(--idp-bg-color-light);\n color: var(--idp-primary-color);\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"]))),f.default.span(Zs||(Zs=y(["\n font-size: 12px;\n color: var(--idp-text-color-tertiary);\n margin-left: 8px;\n"],["\n font-size: 12px;\n color: var(--idp-text-color-tertiary);\n margin-left: 8px;\n"]))),f.default.div(Xs||(Xs=y(["\n padding: 8px 0;\n"],["\n padding: 8px 0;\n"]))),f.default.div(qs||(qs=y(["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 0;\n margin-bottom: 4px;\n"],["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 0;\n margin-bottom: 4px;\n"]))),f.default.div(Js||(Js=y(["\n text-align: center;\n font-size: 12px;\n color: var(--idp-text-color-tertiary);\n padding: 4px 0;\n font-weight: 500;\n"],["\n text-align: center;\n font-size: 12px;\n color: var(--idp-text-color-tertiary);\n padding: 4px 0;\n font-weight: 500;\n"]))),f.default.div(Qs||(Qs=y(["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 4px;\n"],["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 4px;\n"]))),f.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isToday","isCurrentMonth","isInRange","isRangeStart","isRangeEnd","disabled"].includes(e)}})(el||(el=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 28px;\n font-size: 13px;\n cursor: ",";\n border-radius: ",";\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 28px;\n font-size: 13px;\n cursor: ",";\n border-radius: ",";\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"])),function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.isRangeStart?"4px 0 0 4px":e.isRangeEnd?"0 4px 4px 0":e.isInRange?"0":"var(--idp-border-radius-sm)"},function(e){return e.disabled?"var(--idp-text-color-light)":e.isSelected?"#fff":e.isCurrentMonth?"var(--idp-text-color)":"var(--idp-text-color-light)"},function(e){return e.isSelected?"var(--idp-primary-color)":e.isInRange?"var(--idp-primary-light-color, rgba(24, 100, 240, 0.1))":"transparent"},function(e){return e.isToday||e.isSelected?"500":"normal"},function(e){return e.isSelected?"var(--idp-primary-hover-color)":"var(--idp-bg-color-light)"},function(e){return e.isToday&&!e.isSelected&&!e.isInRange&&"\n border: 1px solid var(--idp-primary-color);\n "}),f.default.div(nl||(nl=y(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 16px;\n border-top: 1px solid var(--idp-border-color-light);\n gap: 8px;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 16px;\n border-top: 1px solid var(--idp-border-color-light);\n gap: 8px;\n"]))),f.default.div(tl||(tl=y(["\n flex: 1;\n"],["\n flex: 1;\n"]))),f.default.div(rl||(rl=y(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),f.default.button.withConfig({shouldForwardProp:function(e){return!["variant"].includes(e)}})(il||(il=y(["\n padding: 4px 12px;\n font-size: 13px;\n border-radius: var(--idp-border-radius-sm);\n cursor: pointer;\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n border: 1px solid ",";\n background-color: ",";\n color: ",";\n\n &:hover:not(:disabled) {\n border-color: var(--idp-primary-color);\n ","\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"],["\n padding: 4px 12px;\n font-size: 13px;\n border-radius: var(--idp-border-radius-sm);\n cursor: pointer;\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n border: 1px solid ",";\n background-color: ",";\n color: ",";\n\n &:hover:not(:disabled) {\n border-color: var(--idp-primary-color);\n ","\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"])),function(e){return"primary"===e.variant?"var(--idp-primary-color)":"var(--idp-border-color-extra-light)"},function(e){return"primary"===e.variant?"var(--idp-primary-color)":"var(--idp-bg-color-white)"},function(e){return"primary"===e.variant?"#fff":"var(--idp-text-color)"},function(e){return"primary"===e.variant?"background-color: var(--idp-primary-hover-color);":"color: var(--idp-primary-color);"}),f.default.div.withConfig({shouldForwardProp:function(e){return!["gap"].includes(e)}})(ol||(ol=y(["\n display: flex;\n align-items: center;\n gap: ",";\n"],["\n display: flex;\n align-items: center;\n gap: ",";\n"])),function(e){return"number"==typeof e.gap?"".concat(e.gap,"px"):e.gap||"8px"}),f.default.label(al||(al=y(["\n font-size: 14px;\n color: var(--idp-text-color);\n white-space: nowrap;\n user-select: none;\n"],["\n font-size: 14px;\n color: var(--idp-text-color);\n white-space: nowrap;\n user-select: none;\n"])));var Tl=function(e,n){if(!e)return"";var t=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0");switch(n){case"YYYY/MM/DD":return"".concat(t,"/").concat(r,"/").concat(i);case"DD-MM-YYYY":return"".concat(i,"-").concat(r,"-").concat(t);case"MM/DD/YYYY":return"".concat(r,"/").concat(i,"/").concat(t);default:return"".concat(t,"-").concat(r,"-").concat(i)}},Ol=function(e,n){return new Date(e,n+1,0).getDate()},Ll=function(e,n){return!(!e||!n)&&(e.getFullYear()===n.getFullYear()&&e.getMonth()===n.getMonth()&&e.getDate()===n.getDate())},Al=function(t){var r=t.currentYear,i=t.startYear,o=t.onYearSelect,a=t.onBack,s=t.onPrevPage,l=t.onNextPage,c=n.useMemo(function(){for(var e=[],n=0;n<12;n++)e.push(i+n);return e},[i]),d=(new Date).getFullYear(),u=i+11;return e.jsxs(xl,{children:[e.jsxs(Ka,{children:[e.jsx(Za,{children:e.jsx(Ja,{onClick:s,title:"上一页",children:e.jsx(D,{type:"arrowLeft",size:14,color:"var(--idp-text-color-secondary)"})})}),e.jsx(Xa,{children:e.jsxs("span",{style:{cursor:"pointer"},onClick:a,children:[i," - ",u]})}),e.jsx(qa,{children:e.jsx(Ja,{onClick:l,title:"下一页",children:e.jsx(D,{type:"arrowRight",size:14,color:"var(--idp-text-color-secondary)"})})})]}),e.jsx(bl,{children:c.map(function(n){return e.jsx(_l,{isSelected:n===r,isCurrentYear:n===d,onClick:function(){return o(n)},children:n},n)})})]})},kl=function(t){var r=t.currentMonth,i=t.onMonthSelect,o=t.onBack,a=n.useMemo(function(){return["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},[]),s=(new Date).getMonth();return e.jsxs(yl,{children:[e.jsxs(Ka,{children:[e.jsx(Za,{children:e.jsx(Ja,{onClick:o,title:"返回",children:e.jsx(D,{type:"arrowLeft",size:14,color:"var(--idp-text-color-secondary)"})})}),e.jsx(Xa,{children:e.jsx("span",{style:{cursor:"pointer"},onClick:o,children:"选择月份"})}),e.jsx(qa,{})]}),e.jsx(Cl,{children:a.map(function(n,t){return e.jsx(wl,{isSelected:t===r,isCurrentMonth:t===s,onClick:function(){return i(t)},children:n},t)})})]})},Ml=function(n){var t=n.currentMonth,r=n.onPrevMonth,i=n.onNextMonth,o=n.onYearClick,a=n.onMonthClick,s=t.getFullYear(),l=t.getMonth();return e.jsxs(Ka,{children:[e.jsx(Za,{children:e.jsx(Ja,{onClick:r,title:"上个月",children:e.jsx(D,{type:"arrowLeft",size:14,color:"var(--idp-text-color-secondary)"})})}),e.jsxs(Xa,{children:[e.jsxs("span",{style:{cursor:"pointer",fontWeight:500},onClick:o,children:[s,"年"]}),e.jsx("span",{style:{cursor:"pointer",fontWeight:500},onClick:a,children:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"][l]})]}),e.jsx(qa,{children:e.jsx(Ja,{onClick:i,title:"下个月",children:e.jsx(D,{type:"arrowRight",size:14,color:"var(--idp-text-color-secondary)"})})})]})},Il=function(t){var r=t.value,i=t.selectedValues,o=void 0===i?[]:i,a=t.onChange,s=t.format,l=t.disabledDate,c=t.disabledDates,d=t.showToday,u=void 0===d||d,f=t.showOk,h=void 0===f||f,g=t.onToday,m=t.onOk,v=t.showTime,x=t.onHasSelectedDateChange,b=n.useMemo(function(){return function(e,n){var t,r,i,o;if(!e)return null;var a,s,l,c=e.split(" ")[0];try{switch(n){case"YYYY/MM/DD":a=(t=c.split("/").map(Number))[0],s=t[1],l=t[2];break;case"DD-MM-YYYY":l=(r=c.split("-").map(Number))[0],s=r[1],a=r[2];break;case"MM/DD/YYYY":s=(i=c.split("/").map(Number))[0],l=i[1],a=i[2];break;default:a=(o=c.split("-").map(Number))[0],s=o[1],l=o[2]}if(isNaN(a)||isNaN(s)||isNaN(l))return null;var d=new Date(a,s-1,l);return d.getFullYear()!==a||d.getMonth()!==s-1||d.getDate()!==l?null:d}catch(e){return null}}(r,s)},[r,s]),y=n.useMemo(function(){return new Set(o)},[o]),C=n.useState(b||new Date),w=C[0],_=C[1],E=n.useState("calendar"),N=E[0],S=E[1],T=function(e){return 12*Math.floor(e/12)},O=n.useState(T((b||new Date).getFullYear())),L=O[0],A=O[1];n.useEffect(function(){b&&_(b)},[b]);var k=function(e){if(!e||!v)return{hour:0,minute:0,second:0};var n=e.split(" ");if(n.length>1){var t=n[1].split(":");return{hour:parseInt(t[0],10)||0,minute:parseInt(t[1],10)||0,second:parseInt(t[2],10)||0}}return{hour:0,minute:0,second:0}},M=k(r),I=n.useState(M),j=I[0],R=I[1];n.useEffect(function(){R(k(r))},[r]);var D=n.useMemo(function(){for(var e=w.getFullYear(),n=w.getMonth(),t=Ol(e,n),r=function(e,n){return new Date(e,n,1).getDay()}(e,n),i=Ol(e,n-1),o=[],a=r-1;a>=0;a--)o.push({date:new Date(e,n-1,i-a),isCurrentMonth:!1});for(a=1;a<=t;a++)o.push({date:new Date(e,n,a),isCurrentMonth:!0});var s=42-o.length;for(a=1;a<=s;a++)o.push({date:new Date(e,n+1,a),isCurrentMonth:!1});return o},[w]),H=n.useCallback(function(e){if(l&&l(e))return!0;if(c&&c.length>0){var n=Tl(e,s);return c.includes(n)}return!1},[l,c,s]),P=!!b;n.useEffect(function(){null==x||x(P)},[P,x]);return"year"===N?e.jsx(Al,{currentYear:w.getFullYear(),startYear:L,onYearSelect:function(e){var n=new Date(w);n.setFullYear(e),_(n),S("month")},onBack:function(){return S("calendar")},onPrevPage:function(){return A(function(e){return e-12})},onNextPage:function(){return A(function(e){return e+12})}}):"month"===N?e.jsx(kl,{currentMonth:w.getMonth(),onMonthSelect:function(e){var n=new Date(w);n.setMonth(e),_(n),S("calendar")},onBack:function(){return S("calendar")}}):e.jsxs(Wa,{children:[e.jsxs("div",{className:p.default("idp-datepicker-content",{"idp-datepicker-content-with-time":v&&P}),children:[e.jsxs("div",{className:"idp-datepicker-calendar-section",children:[e.jsx(Ml,{currentMonth:w,onPrevMonth:function(){var e=new Date(w);e.setMonth(e.getMonth()-1),_(e)},onNextMonth:function(){var e=new Date(w);e.setMonth(e.getMonth()+1),_(e)},onYearClick:function(){A(T(w.getFullYear())),S("year")},onMonthClick:function(){S("month")}}),e.jsxs(sl,{children:[e.jsx(ll,{children:["日","一","二","三","四","五","六"].map(function(n){return e.jsx(cl,{children:n},n)})}),e.jsx(dl,{children:D.map(function(n,t){var r=n.date,i=n.isCurrentMonth,o=Tl(r,s),l=Ll(r,b),c=y.has(o),d=function(e){var n=new Date;return Ll(e,n)}(r),u=H(r);return e.jsx(ul,{isSelected:l,isInSelectedSet:c,isToday:d,disabled:u,isCurrentMonth:i,onClick:function(){return function(e){if(!H(e)){var n=Tl(e,s);if(v){var t=P?"".concat(String(j.hour).padStart(2,"0"),":").concat(String(j.minute).padStart(2,"0"),":").concat(String(j.second).padStart(2,"0")):"00:00:00";null==a||a("".concat(n," ").concat(t))}else null==a||a(n)}}(r)},children:r.getDate()},t)})})]})]}),v&&P&&e.jsxs("div",{className:"idp-datepicker-time-section",children:[e.jsxs("div",{className:"idp-datepicker-time-header",children:[String(j.hour).padStart(2,"0"),":",String(j.minute).padStart(2,"0"),":",String(j.second).padStart(2,"0")]}),e.jsx(ka,{value:"".concat(String(j.hour).padStart(2,"0"),":").concat(String(j.minute).padStart(2,"0"),":").concat(String(j.second).padStart(2,"0")),onChange:function(e){if(b){var n=e.split(":").map(Number),t=n[0],r=n[1],i=n[2];R({hour:t,minute:r,second:i});var o=Tl(b,s);null==a||a("".concat(o," ").concat(e))}},format:"HH:mm:ss",hourStep:1,minuteStep:1,secondStep:1,showNow:!1,showOk:!1})]})]}),(u||h)&&e.jsxs(pl,{children:[u?e.jsx(gl,{onClick:function(){var e=new Date;if(_(e),v){var n="".concat(String(e.getHours()).padStart(2,"0"),":").concat(String(e.getMinutes()).padStart(2,"0"),":").concat(String(e.getSeconds()).padStart(2,"0"));null==a||a("".concat(Tl(e,s)," ").concat(n))}else null==a||a(Tl(e,s));null==g||g()},children:"今天"}):e.jsx(fl,{}),h&&e.jsx(hl,{children:e.jsx(gl,{variant:"primary",onClick:m,children:"确定"})})]})]})},jl=function(t){var r=t.size,i=void 0===r?"middle":r,o=t.value,a=t.defaultValue,s=t.onChange,l=t.placeholder,c=void 0===l?"请选择日期":l,d=t.disabled,u=void 0!==d&&d,f=t.readOnly,m=void 0!==f&&f,v=t.className,x=void 0===v?"":v,y=t.style,C=t.width,w=void 0===C?160:C,_=t.format,E=void 0===_?"YYYY-MM-DD":_,N=t.allowClear,S=void 0===N||N,T=t.disabledDate,O=t.disabledDates,L=t.label,A=t.labelGap,k=void 0===A?8:A,M=t.labelClassName,I=void 0===M?"":M,j=t.labelStyle,R=t.onOpenChange,H=t.open,P=t.showToday,z=void 0===P||P,V=t.showOk,B=void 0===V||V,U=t.picker,F=void 0===U?"date":U,Y=t.multiple,$=void 0!==Y&&Y,G=t.maxTagCount,W=t.maxTagDisplayCount,K=t.separator,Z=void 0===K?",":K,X=t.showTime,q=void 0!==X&&X,J=n.useState(a),Q=J[0],ee=J[1],ne=n.useState(!1),te=ne[0],re=ne[1],ie=n.useState(!1),oe=ie[0],ae=ie[1],se=n.useState({top:0,left:0,width:0}),le=se[0],ce=se[1],de=n.useState(!1),ue=de[0],pe=de[1],fe=n.useState(!1),he=fe[0],ge=fe[1],me=n.useRef(null),ve=n.useRef(null),xe=void 0!==o,be=xe?o:Q,ye=n.useMemo(function(){return be?be.split(Z).filter(function(e){return e.trim()}):[]},[be,Z]),Ce=n.useCallback(function(e){return ye.includes(e)},[ye]),we=n.useCallback(function(e){return Ce(e)?ye.filter(function(n){return n!==e}).join(Z):void 0!==G&&ye.length>=G?ye.join(Z):b(b([],ye,!0),[e],!1).join(Z)},[ye,Ce,Z,G]),_e=void 0!==H?H:te,Ee=n.useCallback(function(){if(me.current){var e=me.current.getBoundingClientRect(),n=q&&he?480:280,t=Math.max(e.width,n),r=window.innerHeight-e.bottom,i=e.bottom+window.scrollY+4,o=e.left+window.scrollX;r<360&&e.top>360&&(i=e.top+window.scrollY-360-4);var a=window.innerWidth;o+t>a&&(o=a-t-16),ce({top:i,left:o,width:t})}},[q,he]);n.useEffect(function(){if(_e&&ve.current&&me.current){return pe(!1),requestAnimationFrame(function(){var e=me.current.getBoundingClientRect(),n=ve.current.offsetHeight;if(window.innerHeight-e.bottom<360&&e.top>360){var t=e.top+window.scrollY-n-4;ce(function(e){return g(g({},e),{top:t})})}pe(!0)}),function(){pe(!1)}}},[_e]),n.useEffect(function(){var e=function(e){me.current&&!me.current.contains(e.target)&&ve.current&&!ve.current.contains(e.target)&&(void 0===H&&re(!1),null==R||R(!1),ae(!1))};return _e&&(document.addEventListener("mousedown",e),Ee(),window.addEventListener("scroll",Ee,!0),window.addEventListener("resize",Ee)),function(){document.removeEventListener("mousedown",e),window.removeEventListener("scroll",Ee,!0),window.removeEventListener("resize",Ee)}},[_e,H,R,Ee]);var Ne=function(){if(!u&&!m){var e=!_e;void 0===H&&re(e),null==R||R(e),ae(e)}},Se=function(e){var n;n=$?we(e):e,xe||ee(n),null==s||s(n),$||B||(void 0===H&&re(!1),null==R||R(!1),ae(!1))},Te=function(e){e.stopPropagation(),xe||ee(void 0),null==s||s("")},Oe=function(){void 0===H&&re(!1),null==R||R(!1),ae(!1)},Le=function(){var t,r,i=function(e){if(!e)return null;var n=e.match(/^(\d{4})-(\d{2})$/);return n?{year:parseInt(n[1],10),month:parseInt(n[2],10)-1}:null}(be),o=new Date,a=n.useState(null!==(t=null==i?void 0:i.year)&&void 0!==t?t:o.getFullYear()),l=a[0],c=a[1],d=null!==(r=null==i?void 0:i.month)&&void 0!==r?r:null,u=n.useMemo(function(){return["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},[]),p=o.getMonth(),f=o.getFullYear(),h=n.useMemo(function(){return $?new Set(ye.filter(function(e){return e.match(/^\d{4}-\d{2}$/)})):new Set},[ye,$]),g=function(e){var n="".concat(l,"-").concat(String(e+1).padStart(2,"0"));return h.has(n)};return e.jsxs(yl,{children:[e.jsxs(Ka,{children:[e.jsx(Za,{children:e.jsx(Ja,{onClick:function(){return c(function(e){return e-1})},title:"上一年",children:e.jsx(D,{type:"arrowLeft",size:14,color:"var(--idp-text-color-secondary)"})})}),e.jsx(Xa,{children:e.jsxs("span",{children:[l,"年"]})}),e.jsx(qa,{children:e.jsx(Ja,{onClick:function(){return c(function(e){return e+1})},title:"下一年",children:e.jsx(D,{type:"arrowRight",size:14,color:"var(--idp-text-color-secondary)"})})})]}),e.jsx(Cl,{children:u.map(function(n,t){var r=$?g(t):t===d&&l===(null==i?void 0:i.year),o=$&&g(t)&&!(t===d&&l===(null==i?void 0:i.year));return e.jsx(wl,{isSelected:r,isInSelectedSet:o,isCurrentMonth:t===p&&l===f,onClick:function(){return function(e){var n="".concat(l,"-").concat(String(e+1).padStart(2,"0"));if($){var t=we(n);xe||ee(t),null==s||s(t)}else xe||ee(n),null==s||s(n),B||Oe()}(t)},children:n},t)})}),B&&e.jsxs(pl,{children:[e.jsx(fl,{}),e.jsx(hl,{children:e.jsx(gl,{variant:"primary",onClick:Oe,children:"确定"})})]})]})},Ae=function(){var t,r,i=function(e){if(!e)return null;var n=e.match(/^(\d{4})-Q(\d)$/);return n?{year:parseInt(n[1],10),quarter:parseInt(n[2],10)}:null}(be),o=new Date,a=n.useState(null!==(t=null==i?void 0:i.year)&&void 0!==t?t:o.getFullYear()),l=a[0],c=a[1],d=null!==(r=null==i?void 0:i.quarter)&&void 0!==r?r:null,u=o.getMonth(),p=Math.floor(u/3)+1,f=o.getFullYear(),h=n.useMemo(function(){return $?new Set(ye.filter(function(e){return e.match(/^\d{4}-Q\d$/)})):new Set},[ye,$]),g=function(e){var n="".concat(l,"-Q").concat(e);return h.has(n)};return e.jsxs(El,{children:[e.jsxs(Ka,{children:[e.jsx(Za,{children:e.jsx(Ja,{onClick:function(){return c(function(e){return e-1})},title:"上一年",children:e.jsx(D,{type:"arrowLeft",size:14,color:"var(--idp-text-color-secondary)"})})}),e.jsx(Xa,{children:e.jsxs("span",{children:[l,"年"]})}),e.jsx(qa,{children:e.jsx(Ja,{onClick:function(){return c(function(e){return e+1})},title:"下一年",children:e.jsx(D,{type:"arrowRight",size:14,color:"var(--idp-text-color-secondary)"})})})]}),e.jsx(Nl,{children:["Q1","Q2","Q3","Q4"].map(function(n,t){var r=t+1,o=l===f&&r===p,a=$?g(r):r===d&&l===(null==i?void 0:i.year),c=$&&g(r)&&!(r===d&&l===(null==i?void 0:i.year));return e.jsx(Sl,{isSelected:a,isInSelectedSet:c,isCurrentQuarter:o,onClick:function(){return function(e,n){var t="".concat(e,"-Q").concat(n);if($){var r=we(t);xe||ee(r),null==s||s(r)}else xe||ee(t),null==s||s(t),B||Oe()}(l,r)},children:n},n)})}),B&&e.jsxs(pl,{children:[e.jsx(fl,{}),e.jsx(hl,{children:e.jsx(gl,{variant:"primary",onClick:Oe,children:"确定"})})]})]})},ke=function(){var t,r=function(e){if(!e)return null;var n=e.match(/^(\d{4})$/);return n?parseInt(n[1],10):null}(be),i=(new Date).getFullYear(),o=n.useState((t=null!=r?r:i,12*Math.floor(t/12))),a=o[0],l=o[1],c=n.useMemo(function(){for(var e=[],n=0;n<12;n++)e.push(a+n);return e},[a]),d=n.useMemo(function(){return $?new Set(ye.filter(function(e){return e.match(/^\d{4}$/)})):new Set},[ye,$]);return e.jsxs(xl,{children:[e.jsxs(Ka,{children:[e.jsx(Za,{children:e.jsx(Ja,{onClick:function(){return l(function(e){return e-12})},title:"上一页",children:e.jsx(D,{type:"arrowLeft",size:14,color:"var(--idp-text-color-secondary)"})})}),e.jsx(Xa,{children:e.jsxs("span",{children:[a," - ",a+11]})}),e.jsx(qa,{children:e.jsx(Ja,{onClick:function(){return l(function(e){return e+12})},title:"下一页",children:e.jsx(D,{type:"arrowRight",size:14,color:"var(--idp-text-color-secondary)"})})})]}),e.jsx(bl,{children:c.map(function(n){var t=$?d.has(String(n)):n===r,o=$&&d.has(String(n))&&n!==r;return e.jsx(_l,{isSelected:t,isInSelectedSet:o,isCurrentYear:n===i,onClick:function(){return function(e){var n=String(e);if($){var t=we(n);xe||ee(t),null==s||s(t)}else xe||ee(n),null==s||s(n),B||Oe()}(n)},children:n},n)})}),B&&e.jsxs(pl,{children:[e.jsx(fl,{}),e.jsx(hl,{children:e.jsx(gl,{variant:"primary",onClick:Oe,children:"确定"})})]})]})},Me=n.useCallback(function(e){return function(n){n.stopPropagation();var t=ye.filter(function(n){return n!==e}).join(Z);xe||ee(t||void 0),null==s||s(t)}},[ye,Z,xe,s]),Ie=function(){var t,r,o,a=n.useMemo(function(){return be||""},[be]);return e.jsxs(Ba,{ref:me,focused:oe,disabled:u,size:i,className:p.default("idp-datepicker-trigger","idp-datepicker-trigger--".concat(i),{"idp-datepicker-trigger--disabled":u,"idp-datepicker-trigger--focused":oe,"idp-datepicker-trigger--multiple":$},x),style:y,onClick:Ne,children:[$&&ye.length>0?e.jsx(Ua,{isPlaceholder:!1,disabled:u,className:p.default("idp-datepicker-value","idp-datepicker-value--tags",{"idp-datepicker-value--disabled":u}),children:(t=void 0!==W&&W>0,r=t?ye.slice(0,W):ye,o=t?ye.length-W:0,e.jsxs(e.Fragment,{children:[r.map(function(n,t){return e.jsx(Sa,{size:"small",closable:!u,onClose:Me(n),className:"idp-datepicker-tag",children:n},"".concat(n,"-").concat(t))}),o>0&&e.jsxs(Sa,{size:"small",className:"idp-datepicker-tag idp-datepicker-tag--more",children:["...+",o]},"more")]}))}):e.jsx(Ua,{isPlaceholder:!be,disabled:u,className:p.default("idp-datepicker-value",{"idp-datepicker-value--placeholder":!be,"idp-datepicker-value--disabled":u}),children:a||c}),e.jsxs(Fa,{className:"idp-datepicker-suffix",children:[S&&be&&!u&&e.jsx(Ya,{className:"idp-datepicker-clear",onClick:Te,children:e.jsx(D,{type:"close",style:{fontSize:10}})}),e.jsx($a,{className:p.default("idp-datepicker-icon",{"has-clear":S&&be&&!u}),children:e.jsx(D,{type:"calendar",style:{fontSize:14}})})]})]})},je=function(){switch(F){case"month":return e.jsx(Le,{});case"quarter":return e.jsx(Ae,{});case"year":return e.jsx(ke,{});default:return e.jsx(Il,{value:be,selectedValues:ye,onChange:Se,format:E,disabledDate:T,disabledDates:O,showToday:z,showOk:B,showTime:q,onToday:function(){B||Oe()},onOk:Oe,onHasSelectedDateChange:ge})}},Re=function(){if(!_e)return null;var n=e.jsx(Ga,{ref:ve,top:le.top,left:le.left,minWidth:le.width||(q&&he?480:280),className:"idp-datepicker-dropdown",style:{opacity:ue?1:0,transition:"opacity 0.15s ease"},children:je()});return h.default.createPortal(n,document.body)},De=$?"auto":w;return L?e.jsxs(ml,{gap:k,className:"idp-datepicker-with-label",children:["string"==typeof L?e.jsx(vl,{className:p.default("idp-datepicker-label",I),style:j,children:L}):L,e.jsxs(Va,{width:De,minWidth:$?w:void 0,className:"idp-datepicker",children:[Ie(),Re()]})]}):e.jsxs(Va,{width:De,minWidth:$?w:void 0,className:"idp-datepicker",children:[Ie(),Re()]})};jl.RangePicker=za;var Rl=jl,Dl=function(n){var t=n.className;return e.jsx("span",{className:t,children:e.jsx("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor",children:e.jsx("path",{d:"M12 4V2A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8z"})})})},Hl=function(){return e.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"currentColor",children:e.jsx("path",{d:"M8 5l8 7-8 7V5z"})})},Pl=function(n){var t=n.expanded;return e.jsx("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor",children:t?e.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"}):e.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"})})},zl=function(){return e.jsxs("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor",children:[e.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),e.jsx("polyline",{points:"14 2 14 8 20 8",stroke:"currentColor",strokeWidth:"2",fill:"none"})]})},Vl=function(){return e.jsx("svg",{viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",opacity:"0.3",children:e.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"})})},Bl=function(e,n){return e.children&&0!==e.children.length?e.children.every(function(e){return Bl(e,n)}):n.includes(e.key)},Ul=function(e,n){if(!e.children||0===e.children.length)return n.includes(e.key);var t=e.children.map(function(e){return{key:e.key,allChecked:Bl(e,n),someChecked:Ul(e,n)}}),r=t.some(function(e){return e.allChecked||e.someChecked}),i=t.every(function(e){return e.allChecked});return r&&!i},Fl=function(e,n){for(var t=0,r=e;t<r.length;t++){var i=r[t];if(i.key===n)return i;if(i.children){var o=Fl(i.children,n);if(o)return o}}return null},Yl=function(e){return e.reduce(function(e,n){return e.push(n.key),n.children&&e.push.apply(e,Yl(n.children)),e},[])},$l=function(e,n){for(var t=0,r=e;t<r.length;t++){var i=r[t];if(i.children){if(i.children.some(function(e){return e.key===n}))return i;var o=$l(i.children,n);if(o)return o}}return null},Gl=function(e,n,t){var r;if(null===n)return e.push.apply(e,t),!0;for(var i=0,o=e;i<o.length;i++){var a=o[i];if(a.key===n)return a.children||(a.children=[]),(r=a.children).push.apply(r,t),!0;if(a.children)if(Gl(a.children,n,t))return!0}return!1},Wl=function(e,n){var t=e.findIndex(function(e){return e.key===n});if(-1!==t)return e.splice(t,1),!0;for(var r=0,i=e;r<i.length;r++){var o=i[r];if(o.children)if(Wl(o.children,n))return!0}return!1},Kl=function(e,n,t){for(var r=0,i=e;r<i.length;r++){var o=i[r];if(o.key===n)return Object.assign(o,t),!0;if(o.children)if(Kl(o.children,n,t))return!0}return!1},Zl=function(e,n,t){return e.reduce(function(e,r){var i=t(n,r),o=r.children?Zl(r.children,n,t):[];return(i||o.length>0)&&e.push(g(g({},r),{children:o.length>0?o:void 0})),e},[])},Xl=n.memo(function(t){var r=t.node,i=t.level,o=t.expanded,a=t.selected,s=t.checked,l=t.halfChecked,c=t.loading,d=t.isLeaf,u=t.showIcon,p=t.showLine,f=t.checkable,h=t.draggable,m=t.checkStrictly,v=t.expandedKeys,x=t.selectedKeys,b=t.checkedKeys,y=t.motionDuration,C=t.prefixCls,w=t.renderNode,_=t.addable,E=t.removable,N=t.editable,S=t.actionDisplayMode,T=t.onAddNode,O=t.onRemoveNode,L=t.onEditNode,A=t.editingNodeKey,k=t.editValue,M=t.onEditChange,I=t.onEditConfirm,j=t.onEditCancel,R=t.onExpand,D=t.onSelect,H=t.onCheck,P=t.onNodeMount,z=t.onDrop,V=t.dragEndCounter,B=t.tooltip,U=n.useState(!1),F=U[0],Y=U[1],$=n.useState(null),G=$[0],W=$[1],K=n.useState(!1),Z=K[0],X=K[1],q=n.useRef(null),J=n.useRef(null);n.useEffect(function(){void 0!==V&&V>0&&(Y(!1),W(null))},[V]);var Q=n.useCallback(function(e){q.current=e,P&&P(r.key,e)},[P,r.key]),ee=Boolean(r.children&&r.children.length>0),ne=void 0!==r.children,te=v.includes(r.key),re=r.disabled,ie=h&&!re,oe=void 0!==r.isLeaf?r.isLeaf:!ne,ae=n.useCallback(function(e){e.stopPropagation(),oe||c||R(r.key,e)},[oe,c,r.key,R]),se=n.useCallback(function(e){e.stopPropagation(),re||r.disableCheckbox||H(r.key,e)},[re,r.disableCheckbox,r.key,H]),le=n.useCallback(function(e){re||(f?se(e):D(r.key,e))},[re,f,r.key,D,se]),ce=n.useCallback(function(e){if(ie){e.stopPropagation(),e.dataTransfer.setData("text/plain",String(r.key)),e.dataTransfer.effectAllowed="move";var n=document.createElement("div");n.style.cssText="\n position: absolute;\n top: -1000px;\n left: -1000px;\n padding: 4px 8px;\n background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);\n color: white;\n border-radius: 4px;\n font-size: 14px;\n font-family: inherit;\n white-space: nowrap;\n max-width: 200px;\n overflow: hidden;\n text-overflow: ellipsis;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n z-index: 9999;\n pointer-events: none;\n ";var t="string"==typeof r.title?r.title:String(r.title);n.textContent=t,document.body.appendChild(n),e.dataTransfer.setDragImage(n,10,10),setTimeout(function(){document.body.removeChild(n)},0)}},[ie,r.key,r.title]),de=n.useCallback(function(){Y(!1),W(null)},[]),ue=n.useCallback(function(e){var n;if(ie){e.preventDefault(),e.dataTransfer.dropEffect="move";var t=e.target,r=q.current;if(r&&t&&r.contains(t)){var i=r.querySelector(".".concat(C,"-child-tree"));if(i&&i.contains(t))return}var o=null===(n=q.current)||void 0===n?void 0:n.getBoundingClientRect();if(o){var a=e.clientY-o.top,s=o.height;W(oe?a<s/2?"before":"after":a<s/3?"before":a>2*s/3?"after":"inside"),Y(!0)}}},[ie,oe,C]),pe=n.useCallback(function(){Y(!1),W(null)},[]),fe=n.useCallback(function(e){e.preventDefault(),e.stopPropagation(),Y(!1),W(null);var n=e.dataTransfer.getData("text/plain");n&&n!==String(r.key)&&z&&G&&z(n,r.key,G)},[r.key,G,z]),he=A===r.key,ge=["".concat(C,"-treenode"),"".concat(C,"-treenode-ellipsis"),a&&"".concat(C,"-node-selected"),re&&"".concat(C,"-treenode-disabled"),ie&&"".concat(C,"-treenode-draggable"),F&&"".concat(C,"-treenode-drag-over"),F&&G&&"".concat(C,"-treenode-drop-target"),oe&&"".concat(C,"-treenode-leaf"),p&&"".concat(C,"-line")].filter(Boolean).join(" "),me=["".concat(C,"-node-content-wrapper"),a&&"".concat(C,"-node-selected")].filter(Boolean).join(" ");return e.jsxs("div",{ref:Q,className:ge,draggable:ie,onDragStart:ce,onDragEnd:de,onDragOver:ue,onDragLeave:pe,onDrop:fe,"data-drop-position":G,children:[function(){if(0===i)return null;for(var n=[],t=0;t<i;t++)n.push(e.jsx("span",{className:"".concat(C,"-indent")},t));return n}(),p&&i>0&&e.jsx("span",{className:"".concat(C,"-line-point")}),function(){if(c)return e.jsx("span",{className:"".concat(C,"-switcher"),children:e.jsx(Dl,{className:"".concat(C,"-loading-icon")})});if(oe)return e.jsx("span",{className:"".concat(C,"-switcher ").concat(C,"-switcher-spaced"),style:{visibility:"hidden"}});var n=["".concat(C,"-switcher"),"".concat(C,te?"-switcher-open":"-switcher-close")].join(" ");return e.jsx("span",{className:n,onClick:ae,children:e.jsx(Hl,{})})}(),function(){if(!f)return null;var n=["".concat(C,"-checkbox"),s&&!l&&"".concat(C,"-checkbox-checked"),l&&"".concat(C,"-checkbox-indeterminate"),(re||r.disableCheckbox)&&"".concat(C,"-checkbox-disabled")].filter(Boolean).join(" ");return e.jsx("span",{className:n,onClick:se})}(),!u||w?null:r.icon?e.jsx("span",{className:"".concat(C,"-icon"),children:r.icon}):e.jsx("span",{className:"".concat(C,"-icon"),children:d?e.jsx(zl,{}):e.jsx(Pl,{expanded:te})}),e.jsx("span",{className:me,onClick:le,children:function(){var n,t="".concat(C,"-title"),i=void 0!==r.tooltip?"boolean"==typeof r.tooltip?r.tooltip?{title:r.title}:null:g(g({},r.tooltip),{title:r.tooltip.title||r.title}):void 0!==B?"boolean"==typeof B?B?{title:r.title}:null:g(g({},B),{title:B.title||r.title}):null,o=w?e.jsx("span",{className:t,children:w(r)}):he?e.jsx("span",{className:t,children:e.jsx("input",{type:"text",value:k||"",onChange:function(e){return null==M?void 0:M(e.target.value)},onKeyDown:function(e){"Enter"===e.key?null==I||I():"Escape"===e.key&&(null==j||j())},onBlur:function(){return null==I?void 0:I()},autoFocus:!0,className:"".concat(C,"-title-input"),style:{border:"1px solid #1890ff",borderRadius:"2px",padding:"0 4px",fontSize:"inherit",fontFamily:"inherit",outline:"none",width:"auto",minWidth:"60px"}})}):e.jsx("span",{className:t,children:r.title});return i&&!he?e.jsx(_t,{title:i.title||r.title,placement:i.placement||"top",trigger:i.trigger||"hover",delay:null!==(n=i.delay)&&void 0!==n?n:100,backgroundColor:i.backgroundColor,style:i.style,className:i.className,children:o}):o}()}),function(){if(!_&&!E&&!N)return null;if(he)return null;var n="dropdown"===S,t=function(e){null==e||e.stopPropagation(),null==T||T(r),n&&X(!1)},i=function(e){null==e||e.stopPropagation(),null==O||O(r),n&&X(!1)},o=function(e){null==e||e.stopPropagation(),null==L||L(r),n&&X(!1)};if(n)return e.jsxs("span",{className:"".concat(C,"-actions ").concat(C,"-actions-dropdown"),ref:J,onMouseEnter:function(){return X(!0)},onMouseLeave:function(){return X(!1)},children:[e.jsx("button",{className:"".concat(C,"-action-trigger"),title:"操作",onClick:function(e){return e.stopPropagation()},children:"⋮"}),Z&&e.jsxs("div",{className:"".concat(C,"-action-menu"),children:[_&&e.jsxs("div",{className:"".concat(C,"-action-menu-item ").concat(C,"-action-menu-add"),onClick:t,children:[e.jsx("span",{className:"".concat(C,"-action-menu-icon"),children:"+"}),e.jsx("span",{children:"添加子节点"})]}),N&&e.jsxs("div",{className:"".concat(C,"-action-menu-item ").concat(C,"-action-menu-edit"),onClick:o,children:[e.jsx("span",{className:"".concat(C,"-action-menu-icon"),children:"✎"}),e.jsx("span",{children:"编辑"})]}),E&&e.jsxs("div",{className:"".concat(C,"-action-menu-item ").concat(C,"-action-menu-remove"),onClick:i,children:[e.jsx("span",{className:"".concat(C,"-action-menu-icon"),children:"×"}),e.jsx("span",{children:"删除"})]})]})]});var a={padding:"0 4px",marginLeft:"4px",fontSize:"12px",cursor:"pointer",background:"transparent",border:"none",color:"#1890ff",transition:"opacity 0.2s"};return e.jsxs("span",{className:"".concat(C,"-actions"),style:{marginLeft:"auto",display:"flex",alignItems:"center"},children:[_&&e.jsx("button",{onClick:t,style:a,title:"添加子节点",className:"".concat(C,"-action-btn ").concat(C,"-action-add"),children:"+"}),N&&e.jsx("button",{onClick:o,style:a,title:"编辑",className:"".concat(C,"-action-btn ").concat(C,"-action-edit"),children:"✎"}),E&&e.jsx("button",{onClick:i,style:g(g({},a),{color:"#ff4d4f"}),title:"删除",className:"".concat(C,"-action-btn ").concat(C,"-action-remove"),children:"×"})]})}(),!oe&&e.jsx("div",{className:["".concat(C,"-child-tree"),te&&"".concat(C,"-child-tree-expand")].filter(Boolean).join(" "),children:e.jsx("div",{children:ee?r.children.map(function(n,t){return e.jsx(Xl,{node:n,level:i+1,expanded:o,selected:x.includes(n.key),checked:b.includes(n.key),halfChecked:Ul(n,b),loading:n.loading||!1,isLeaf:!n.children||0===n.children.length,showIcon:u,showLine:p,checkable:f,draggable:h,checkStrictly:m,expandedKeys:v,selectedKeys:x,checkedKeys:b,motionDuration:y,prefixCls:C,renderNode:w,addable:_,removable:E,editable:N,actionDisplayMode:S,onAddNode:T,onRemoveNode:O,onEditNode:L,editingNodeKey:A,editValue:k,onEditChange:M,onEditConfirm:I,onEditCancel:j,onExpand:R,onSelect:D,onCheck:H,onNodeMount:P,onDrop:z,dragEndCounter:V,tooltip:B},"".concat(n.key,"-").concat(t))}):e.jsx("div",{className:"".concat(C,"-empty-drop-zone"),style:{minHeight:"4px",width:"100%"}})})})]})});Xl.displayName="TreeNodeComponent";var ql=n.forwardRef(function(t,r){var i=t.treeData,o=void 0===i?[]:i,a=t.defaultExpandedKeys,s=void 0===a?[]:a,l=t.expandedKeys,c=t.onExpand,d=t.defaultSelectedKeys,u=void 0===d?[]:d,p=t.selectedKeys,f=t.onSelect,h=t.defaultCheckedKeys,m=void 0===h?[]:h,v=t.checkedKeys,x=t.onCheck,y=t.checkable,C=void 0!==y&&y,w=t.checkStrictly,_=void 0!==w&&w,E=t.multiple,N=void 0!==E&&E,S=t.showSearch,T=void 0!==S&&S,O=t.filterOption,L=t.showLine,A=void 0!==L&&L,k=t.showIndent,M=void 0!==k&&k,I=t.showIcon,j=void 0===I||I,R=t.loadData,D=t.motionDuration,H=void 0===D?200:D,P=t.draggable,z=void 0!==P&&P,V=t.renderNode,B=t.addable,U=void 0!==B&&B,F=t.removable,Y=void 0!==F&&F,$=t.editable,G=void 0!==$&&$,W=t.actionDisplayMode,K=void 0===W?"inline":W,Z=t.onAddNode,X=t.onRemoveNode,q=t.onEditNode,J=t.prefixCls,Q=void 0===J?"idp-tree":J,ee=t.className,ne=void 0===ee?"":ee,te=t.style,re=void 0===te?{}:te,ie=t.disabled,oe=void 0!==ie&&ie,ae=t.defaultExpandAll,se=void 0!==ae&&ae,le=t.tooltip,ce=t.onDrop,de=n.useState(o),ue=de[0],pe=de[1],fe=n.useRef(o);n.useEffect(function(){fe.current!==o&&(fe.current=o,pe(o))},[o]);var he=n.useState(function(){if(se){var e=function(n){return n.reduce(function(n,t){return t.children&&t.children.length>0&&n.push.apply(n,b([t.key],e(t.children),!1)),n},[])};return e(o)}return s}),ge=he[0],me=he[1],ve=n.useState(u),xe=ve[0],be=ve[1],ye=n.useState(m),Ce=ye[0],we=ye[1],_e=n.useState([]),Ee=_e[0],Ne=_e[1],Se=n.useState(""),Te=Se[0],Oe=Se[1],Le=n.useState(null),Ae=Le[0],ke=Le[1],Me=n.useState(""),Ie=Me[0],je=Me[1],Re=n.useState(0),De=Re[0],He=Re[1],Pe=n.useRef(new Map),ze=n.useRef(null),Ve=n.useCallback(function(e){if(Z){var n=Z(e);if(n){var t=Array.isArray(n)?n:[n];pe(function(n){var r=b([],n,!0);return Gl(r,e.key,t),ge.includes(e.key)||me(function(n){return b(b([],n,!0),[e.key],!1)}),r})}}},[Z,ge]),Be=n.useCallback(function(e){X?X(e)&&pe(function(n){var t=b([],n,!0);return Wl(t,e.key),me(function(n){return n.filter(function(n){return n!==e.key})}),be(function(n){return n.filter(function(n){return n!==e.key})}),we(function(n){return n.filter(function(n){return n!==e.key})}),Pe.current.delete(e.key),t}):pe(function(n){var t=b([],n,!0);return Wl(t,e.key),me(function(n){return n.filter(function(n){return n!==e.key})}),be(function(n){return n.filter(function(n){return n!==e.key})}),we(function(n){return n.filter(function(n){return n!==e.key})}),Pe.current.delete(e.key),t})},[X]),Ue=n.useCallback(function(e){ke(e.key),je(String(e.title||""))},[]),Fe=n.useCallback(function(e){je(e)},[]),Ye=n.useCallback(function(){if(null!==Ae){if(q){var e=Fl(ue,Ae);if(e){var n=q(e,Ie),t=void 0!==n?n:Ie;pe(function(e){var n=b([],e,!0);return Kl(n,Ae,{title:t}),n})}}else pe(function(e){var n=b([],e,!0);return Kl(n,Ae,{title:Ie}),n});ke(null),je("")}},[Ae,Ie,q,ue]),$e=n.useCallback(function(){ke(null),je("")},[]);n.useImperativeHandle(r,function(){return{scrollTo:function(e){var n=Pe.current.get(e);n&&ze.current&&n.scrollIntoView({behavior:"smooth",block:"center"})},addNode:function(e,n){pe(function(t){var r=b([],t,!0),i=Array.isArray(n)?n:[n];return Gl(r,e,i),r})},removeNode:function(e){var n=!1;return pe(function(t){var r=b([],t,!0);return(n=Wl(r,e))&&(me(function(n){return n.filter(function(n){return n!==e})}),be(function(n){return n.filter(function(n){return n!==e})}),we(function(n){return n.filter(function(n){return n!==e})}),Pe.current.delete(e)),r}),n},updateNode:function(e,n){var t=!1;return pe(function(r){var i=b([],r,!0);return t=Kl(i,e,n),i}),t}}});var Ge=n.useCallback(function(e,n){n?Pe.current.set(e,n):Pe.current.delete(e)},[]),We=void 0!==l,Ke=void 0!==p,Ze=void 0!==v,Xe=We?l:ge,qe=Ke?p:xe,Je=Ze?v:Ce,Qe=n.useCallback(function(e,n){if(!oe){var t=Xe.includes(e),r=t?Xe.filter(function(n){return n!==e}):b(b([],Xe,!0),[e],!1);if(!t&&R){var i=Fl(ue,e);!i||i.children&&0!==i.children.length||(Ne(function(n){return b(b([],n,!0),[e],!1)}),R(i).finally(function(){Ne(function(n){return n.filter(function(n){return n!==e})})}))}We||me(r),null==c||c(r,{expanded:!t,node:Fl(ue,e),nativeEvent:n})}},[oe,Xe,We,c,ue,R]),en=n.useCallback(function(e,n){if(!oe){var t,r=qe.includes(e);t=N?r?qe.filter(function(n){return n!==e}):b(b([],qe,!0),[e],!1):r?[]:[e],Ke||be(t),null==f||f(t,{selected:!r,node:Fl(ue,e),nativeEvent:n})}},[oe,qe,Ke,N,f,ue]),nn=n.useCallback(function(e,n){if(!oe){var t,r,i=Je.includes(e);if(i){if(t=Je.filter(function(n){return n!==e}),!_)if(null==(r=Fl(ue,e))?void 0:r.children){var o=Yl(r.children);t=t.filter(function(e){return!o.includes(e)})}}else if(t=b(b([],Je,!0),[e],!1),!_)if(null==(r=Fl(ue,e))?void 0:r.children){var a=Yl(r.children);t=t.concat(a.filter(function(e){return-1===t.indexOf(e)}))}Ze||we(t),null==x||x(t,{checked:!i,node:Fl(ue,e),nativeEvent:n})}},[oe,Je,Ze,_,x,ue]),tn=n.useCallback(function(e,n,t){if(e!==n){var r=Fl(ue,e),i=Fl(ue,n);if(r&&i){var o=function(e,n){if(e.children)for(var t=0,r=e.children;t<r.length;t++){var i=r[t];if(i.key===n)return!0;if(o(i,n))return!0}return!1};if(!o(r,n)){var a=void 0!==i.isLeaf?i.isLeaf:void 0===i.children,s=function(e){return g(g({},e),{children:e.children?e.children.map(s):void 0})};pe(function(i){var o=i.map(s);Wl(o,e);var l=s(r),c="inside"===t&&a?"after":t;if("inside"===c)Gl(o,n,[l]),ge.includes(n)||me(function(e){return b(b([],e,!0),[n],!1)});else{var d=$l(o,n),u=d?d.children||[]:o,p=u.findIndex(function(e){return e.key===n});if(-1!==p){var f="before"===c?p:p+1;u.splice(f,0,l)}}return o}),null==ce||ce({event:{},node:i,dragNode:r,dragPosition:t}),He(function(e){return e+1})}}}},[ue,ge,ce]),rn=n.useMemo(function(){return T&&Te&&O?Zl(ue,Te,O):ue},[ue,T,Te,O]),on=[Q,A&&"".concat(Q,"-show-line"),ne].filter(Boolean).join(" ");return e.jsxs("div",{ref:ze,className:on,style:re,children:[T?e.jsx("div",{className:"".concat(Q,"-search-wrapper"),children:e.jsx("input",{type:"text",className:"".concat(Q,"-search-input"),placeholder:"Search...",value:Te,onChange:function(e){return Oe(e.target.value)}})}):null,e.jsxs("div",{className:"".concat(Q,"-node-list"),children:[rn.map(function(n){return e.jsx(Xl,{node:n,level:0,expanded:Xe.includes(n.key),selected:qe.includes(n.key),checked:Je.includes(n.key),halfChecked:Ul(n,Je),loading:Ee.includes(n.key),isLeaf:void 0!==n.isLeaf?n.isLeaf:void 0===n.children,showIcon:j,showLine:A,showIndent:M,checkable:C,draggable:z,checkStrictly:_,expandedKeys:Xe,selectedKeys:qe,checkedKeys:Je,motionDuration:H,prefixCls:Q,renderNode:V,addable:U,removable:Y,editable:G,actionDisplayMode:K,onAddNode:Ve,onRemoveNode:Be,onEditNode:Ue,editingNodeKey:Ae,editValue:Ie,onEditChange:Fe,onEditConfirm:Ye,onEditCancel:$e,onExpand:Qe,onSelect:en,onCheck:nn,onNodeMount:Ge,onDrop:tn,dragEndCounter:De,tooltip:le},String(n.key))}),rn.length>0?null:e.jsxs("div",{className:"".concat(Q,"-empty"),children:[e.jsx("div",{className:"".concat(Q,"-empty-icon"),children:e.jsx(Vl,{})}),e.jsx("div",{children:"No Data"})]})]})]})});ql.displayName="Tree";var Jl=ql,Ql=function(n){var t=n.fileList,r=n.onRemove,i=n.showUploadList;if(!i||0===t.length)return null;var o="boolean"==typeof i?i:!1!==i.showRemoveIcon,a=function(n){switch(n){case"uploading":return e.jsx(D,{type:"loading",spin:!0});case"success":return e.jsx(D,{type:"check-circle",style:{color:"var(--success-color, #52c41a)"}});case"error":return e.jsx(D,{type:"close-circle",style:{color:"var(--error-color, #ff4d4f)"}});default:return e.jsx(D,{type:"file"})}},s=function(e){if(0===e)return"0 B";var n=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,n)).toFixed(2))+" "+["B","KB","MB","GB"][n]};return e.jsx("div",{className:"idp-upload__list",children:t.map(function(n){return e.jsxs("div",{className:p.default("idp-upload__list-item",{"idp-upload__list-item--error":"error"===n.status,"idp-upload__list-item--success":"success"===n.status}),children:[e.jsxs("div",{className:"idp-upload__list-item-info",children:[e.jsx("span",{className:"idp-upload__list-item-icon",children:a(n.status)}),e.jsxs("span",{className:"idp-upload__list-item-name",title:n.name,children:[n.name,e.jsxs("span",{style:{color:"var(--text-secondary, #999)",marginLeft:8,fontSize:12},children:["(",s(n.size),")"]})]})]}),o&&e.jsx("span",{className:"idp-upload__list-item-actions",children:e.jsx("button",{className:"idp-upload__list-item-action",onClick:function(){return r(n)},title:"删除",children:e.jsx(D,{type:"trash"})})}),e.jsx("div",{className:p.default("idp-upload__progress-wrapper",{"idp-upload__progress-wrapper--visible":"uploading"===n.status}),children:e.jsx(Oa,{percent:n.percent||0,size:"small",showInfo:!1})})]},n.uid)})})},ec=function(t){var r=t.disabled,i=t.onFileDrop,o=t.children,a=t.accept,s=t.multiple,l=n.useState(!1),c=l[0],d=l[1],u=n.useRef(null),f=n.useCallback(function(e){e.preventDefault(),e.stopPropagation(),r||d(!0)},[r]),h=n.useCallback(function(e){e.preventDefault(),e.stopPropagation(),d(!1)},[]),g=n.useCallback(function(e){if(e.preventDefault(),e.stopPropagation(),d(!1),!r){var n=e.dataTransfer.files;n&&n.length>0&&i(n)}},[r,i]),m=n.useCallback(function(){if(u.current&&!r){var e=document.createElement("input");e.type="file",a&&(e.accept=a),s&&(e.multiple=!0),e.onchange=function(e){var n=e.target.files;n&&i(n)},e.click()}},[a,s,r,i]);return e.jsx("div",{ref:u,className:p.default("idp-upload__drag",{"idp-upload__drag--over":c,"idp-upload__drag--disabled":r}),onDragOver:f,onDragLeave:h,onDrop:g,onClick:m,children:o||e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"idp-upload__drag-icon",children:e.jsx(D,{type:"upload",style:{fontSize:48}})}),e.jsx("div",{className:"idp-upload__drag-text",children:"点击或拖拽文件到此区域上传"}),e.jsx("div",{className:"idp-upload__drag-hint",children:"支持单次或批量上传"})]})})},nc=function(t){var r=t.action,i=t.defaultFileList,o=void 0===i?[]:i,a=t.fileList,s=t.onChange,l=t.beforeUpload,c=t.onProgress,d=t.onSuccess,u=t.onError,f=t.onRemove,h=t.headers,m=t.name,y=void 0===m?"file":m,C=t.data,w=t.withCredentials,_=void 0!==w&&w,E=t.accept,N=t.multiple,S=void 0!==N&&N,T=t.disabled,O=void 0!==T&&T,L=t.drag,A=void 0!==L&&L,k=t.style,M=t.className,I=t.customRequest,j=t.showUploadList,R=void 0===j||j,H=t.method,P=void 0===H?"POST":H,z=t.children,V=t.maxCount,B=n.useState(o),U=B[0],F=B[1],Y=n.useRef(null),$=void 0!==a,G=$?a:U,W=n.useCallback(function(e){$||F(e),s&&s(e)},[$,s]),K=n.useCallback(function(e,n){var t=G.map(function(t){return t.uid===e?g(g({},t),n):t});W(t)},[G,W]),Z=n.useCallback(function(e){return v(void 0,void 0,void 0,function(){var n,t,i;return x(this,function(o){return r||I?(n=e.raw)?(K(e.uid,{status:"uploading",percent:0}),t="function"==typeof C?C(n):C,i={action:r||"",filename:y,file:n,data:t,headers:h,withCredentials:_,method:P.toUpperCase(),onProgress:function(n){K(e.uid,{percent:n}),c&&c(n,e)},onSuccess:function(n){K(e.uid,{status:"success",response:n,percent:100}),d&&d(n,e)},onError:function(n){K(e.uid,{status:"error",error:n}),u&&u(n,e)}},I?I(i):function(e){var n=e.action,t=e.filename,r=e.file,i=e.data,o=e.headers,a=e.withCredentials,s=e.onProgress,l=e.onSuccess,c=e.onError,d=e.method,u=new XMLHttpRequest;s&&u.upload&&(u.upload.onprogress=function(e){if(e.total>0){var n=Math.round(e.loaded/e.total*100);s(n)}}),u.onerror=function(){c(new Error("Upload failed"))},u.onload=function(){u.status>=200&&u.status<300?l(u.response):c(new Error("Upload failed with status ".concat(u.status)))},u.open(d,n,!0),a&&(u.withCredentials=!0),o&&Object.keys(o).forEach(function(e){u.setRequestHeader(e,o[e])});var p=new FormData;p.append(t,r),i&&Object.keys(i).forEach(function(e){p.append(e,i[e])}),u.send(p)}(i),[2]):[2]:(console.warn("Upload: action or customRequest is required"),[2])})})},[r,I,y,C,h,_,P,c,d,u,K]),X=n.useCallback(function(e){return v(void 0,void 0,void 0,function(){var n,t,i,o,a;return x(this,function(s){switch(s.label){case 0:if(!e||0===e.length)return[2];if(n=Array.from(e),void 0!==V&&G.length+n.length>V)return console.warn("Upload: Maximum file count is ".concat(V)),[2];t=function(e){var t,i,o;return x(this,function(a){switch(a.label){case 0:if(t={uid:"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),name:e.name,size:e.size,type:e.type,status:"ready",percent:0,raw:e},!l)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,l(e,n)];case 2:return!1===(i=a.sent())?[2,"continue"]:(i instanceof File&&(t.raw=i,t.name=i.name,t.size=i.size,t.type=i.type),[3,4]);case 3:return a.sent(),[2,"continue"];case 4:return(r||I)&&(t.status="uploading"),o=b(b([],G,!0),[t],!1),W(o),(r||I)&&setTimeout(function(){return Z(t)},0),[2]}})},i=0,o=n,s.label=1;case 1:return i<o.length?(a=o[i],[5,t(a)]):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},[G,V,l,r,I,Z,W]),q=n.useCallback(function(e){X(e.target.files),Y.current&&(Y.current.value="")},[X]),J=n.useCallback(function(){!O&&Y.current&&Y.current.click()},[O]),Q=n.useCallback(function(e){return v(void 0,void 0,void 0,function(){var n;return x(this,function(t){switch(t.label){case 0:return f?[4,f(e)]:[3,2];case 1:if(!1===t.sent())return[2];t.label=2;case 2:return n=G.filter(function(n){return n.uid!==e.uid}),W(n),[2]}})})},[G,f,W]),ee=n.useCallback(function(e){X(e)},[X]);return e.jsxs("div",{className:p.default("idp-upload",M,{"idp-upload--disabled":O}),style:k,children:[e.jsx("input",{ref:Y,type:"file",className:"idp-upload__input",accept:E,multiple:S,onChange:q}),A?e.jsx(ec,{disabled:O,onFileDrop:ee,accept:E,multiple:S,children:z}):e.jsx("div",{className:"idp-upload__trigger",onClick:J,children:z||e.jsxs("button",{className:"idp-btn idp-btn--primary",disabled:O,children:[e.jsx(D,{type:"upload",style:{marginRight:4}}),"点击上传"]})}),R&&e.jsx(Ql,{fileList:G,onRemove:Q,showUploadList:R})]})},tc=function(e,n){return g({display:"flex",flexDirection:"horizontal"===e?"row":"column",alignItems:"stretch",width:"100%",height:"100%",overflow:"hidden",background:"var(--idp-splitter-panel-bg)",borderRadius:"var(--idp-splitter-panel-radius)"},n)},rc=function(e,n,t,r){void 0===t&&(t=0),void 0===r&&(r=2);var i={position:"relative",overflow:"auto",flexShrink:0,alignSelf:"stretch",background:"var(--idp-splitter-panel-bg)"};return"horizontal"===n?(i.width="".concat(e,"px"),i.height="auto",i.minHeight="100%"):(i.width="auto",i.minWidth="100%",i.height="".concat(e,"px")),t<r-1&&(i.boxShadow="horizontal"===n?"var(--idp-splitter-panel-shadow)":"var(--idp-splitter-panel-shadow-vertical)",i.zIndex=r-t),i},ic=function(e,n,t,r){void 0===r&&(r=0);var i={position:"relative",flexShrink:0,background:t?"var(--idp-bg-color-light)":"var(--idp-splitter-bar-bg)",cursor:t?"not-allowed":"horizontal"===e?"col-resize":"row-resize",userSelect:"none",touchAction:"none",zIndex:10+5*r,display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"var(--idp-splitter-shadow-sm)",transition:"all var(--idp-transition-duration) var(--idp-transition-timing-function)"};return void 0!==n&&("horizontal"===e?(i.width="".concat(n,"px"),i.height="100%"):(i.width="100%",i.height="".concat(n,"px"))),t&&(i.opacity="var(--idp-opacity-disabled)"),i},oc=function(e,n,t,r,i){void 0===i&&(i=!1);var o={borderRadius:"var(--idp-border-radius-sm)",transition:"all var(--idp-transition-duration) var(--idp-transition-timing-function)"};return"horizontal"===e?(o.width=n?"2px":"var(--idp-splitter-line-width)",o.height=n?"32px":"var(--idp-splitter-line-length)",o.minHeight="var(--idp-splitter-line-min-length)"):(o.width=n?"32px":"var(--idp-splitter-line-length)",o.minWidth="var(--idp-splitter-line-min-length)",o.height=n?"2px":"var(--idp-splitter-line-width)"),i&&r&&t?(o.backgroundColor=t,o.boxShadow="var(--idp-splitter-shadow-active)"):r&&t?(o.backgroundColor=t,o.boxShadow="var(--idp-splitter-shadow-md)"):n?o.backgroundColor=n:o.background="var(--idp-splitter-line-bg)",o},ac=function(e,n,t){var r;if(void 0===e)return new Array(n).fill(t);if(Array.isArray(e)){for(var i=b([],e,!0);i.length<n;)i.push(null!==(r=i[i.length-1])&&void 0!==r?r:t);return i.slice(0,n)}return new Array(n).fill(e)},sc=function(t){var r=t.layout,i=void 0===r?"horizontal":r,o=t.panels,a=t.defaultSize,s=void 0===a?"50%":a,l=t.minSize,c=void 0===l?50:l,d=t.maxSize,p=void 0===d?1/0:d,f=t.splitterSize,h=t.lineColor,g=t.lineHoverColor,m=t.disabled,v=void 0!==m&&m,x=t.onResize,y=t.onResizeEnd,C=t.className,w=void 0===C?"":C,_=t.style,E=t.left,N=t.right,S=t.top,T=t.bottom,O=t.children,L=n.useRef(null),A=n.useState([]),k=A[0],M=A[1],I=n.useState(!1),j=I[0],R=I[1],D=n.useState(-1),H=D[0],P=D[1],z=n.useRef({isDragging:!1,startPosition:0,startSizes:[],containerSize:0,splitterIndex:-1}),V=n.useMemo(function(){if(o&&o.length>0)return o.map(function(e){return e.content});if("vertical"===i){if(S&&T)return[S,T]}else if(E&&N)return[E,N];return O&&Array.isArray(O)?O:[]},[o,i,E,N,S,T,O]),B=V.length,U=n.useCallback(function(e){return o&&o[e]?o[e]:{}},[o]),F=n.useCallback(function(){if(!L.current)return 0;var e=L.current.getBoundingClientRect();return"horizontal"===i?e.width:e.height},[i]),Y=n.useCallback(function(){if(void 0!==f)return f;var e=getComputedStyle(document.documentElement).getPropertyValue("--idp-splitter-bar-size").trim();return parseInt(e,10)||10},[f]);n.useEffect(function(){var e=F();if(e>0&&B>0){var n=Y()*(B-1),t=Math.max(0,e-n),r=function(e,n,t){var r;if(void 0===t&&(t="50%"),void 0===e){var i="".concat(100/n,"%");return new Array(n).fill(i)}if(Array.isArray(e)){for(var o=b([],e,!0);o.length<n;)o.push(null!==(r=o[o.length-1])&&void 0!==r?r:t);return o.slice(0,n)}return new Array(n).fill(e)}(s,B,"".concat(100/B,"%")),i=ac(c,B,50),a=ac(p,B,1/0),l=o?o.map(function(e){var n;return null!==(n=e.defaultSize)&&void 0!==n?n:r[o.indexOf(e)]}):r,d=o?o.map(function(e){var n;return null!==(n=e.minSize)&&void 0!==n?n:i[o.indexOf(e)]}):i,u=o?o.map(function(e){var n;return null!==(n=e.maxSize)&&void 0!==n?n:a[o.indexOf(e)]}):a,f=l.map(function(e){return function(e,n){return"number"==typeof e?e:"string"==typeof e&&e.endsWith("%")?n*(parseFloat(e)/100):parseFloat(e)||n/2}(e,t)}),h=f.reduce(function(e,n){return e+n},0);if(h!==t&&t>0){var g=t/h;f=f.map(function(e){return e*g})}f=f.map(function(e,n){return Math.max(d[n],Math.min(u[n],e))}),M(f)}},[B]),n.useEffect(function(){var e=function(){var e=F();if(e>0&&k.length>0){var n=Y()*(B-1),t=Math.max(0,e-n),r=k.reduce(function(e,n){return e+n},0);if(r>0){var i=t/r;M(function(e){return e.map(function(e){return e*i})})}}};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[k,B,F,Y]);var $=n.useCallback(function(e){return function(n){if(!v){var t=U(e),r=U(e+1);if(!t.disabled&&!r.disabled){n.preventDefault();var o="touches"in n?n.touches[0].clientX:n.clientX,a="touches"in n?n.touches[0].clientY:n.clientY,s="horizontal"===i?o:a,l=F();z.current={isDragging:!0,startPosition:s,startSizes:b([],k,!0),containerSize:l,splitterIndex:e},R(!0),P(e)}}}},[v,i,k,F,U]),G=n.useCallback(function(e){if(z.current.isDragging&&!v){var n="touches"in e?e.touches[0].clientX:e.clientX,t="touches"in e?e.touches[0].clientY:e.clientY,r=("horizontal"===i?n:t)-z.current.startPosition,a=z.current.splitterIndex,s=z.current.startSizes,l=ac(c,B,50),d=ac(p,B,1/0),u=o?o.map(function(e,n){var t;return null!==(t=e.minSize)&&void 0!==t?t:l[n]}):l,f=o?o.map(function(e,n){var t;return null!==(t=e.maxSize)&&void 0!==t?t:d[n]}):d,h=u[a],g=f[a],m=u[a+1],y=f[a+1],C=s[a],w=s[a+1],_=C+r,E=w-r;_<h?(_=h,E=C+w-h):_>g&&(_=g,E=C+w-g),E<m?(E=m,_=C+w-m):E>y&&(E=y,_=C+w-y);var N=b([],k,!0);N[a]=_,N[a+1]=E,M(N),null==x||x(N,a)}},[v,i,k,B,c,p,o,x]),W=n.useCallback(function(){z.current.isDragging&&(z.current.isDragging=!1,R(!1),P(-1),null==y||y(k))},[k,y]);if(n.useEffect(function(){if(j)return document.addEventListener("mousemove",G),document.addEventListener("mouseup",W),document.addEventListener("touchmove",G,{passive:!1}),document.addEventListener("touchend",W),function(){document.removeEventListener("mousemove",G),document.removeEventListener("mouseup",W),document.removeEventListener("touchmove",G),document.removeEventListener("touchend",W)}},[j,G,W]),B<2)return console.warn("Splitter requires at least 2 panels"),null;var K=["idp-splitter","idp-splitter--".concat(i),j?"idp-splitter--dragging":"",w].filter(Boolean).join(" ");return e.jsx("div",{ref:L,className:K,style:tc(i,_),children:V.map(function(n,t){var r=k[t]||0,o=t===B-1;return e.jsxs(u.default.Fragment,{children:[e.jsx("div",{className:"idp-splitter__panel",style:rc(r,i,t,B),children:n}),!o&&e.jsx("div",{className:["idp-splitter__bar",H===t?"idp-splitter__bar--dragging":"",v||U(t).disabled||U(t+1).disabled?"idp-splitter__bar--disabled":""].filter(Boolean).join(" "),style:ic(i,f,v,t),onMouseDown:$(t),onTouchStart:$(t),children:e.jsx("div",{className:"idp-splitter__line",style:oc(i,h,g,j,H===t)})})]},t)})})};exports.Anchor=It,exports.Breadcrumb=jt,exports.Button=se,exports.Carousel=ue,exports.Cascader=fe,exports.Checkbox=Ea,exports.Col=ma,exports.ColorPicker=ze,exports.CopyToClipboard=Ue,exports.DatePicker=Rl,exports.Divider=Ye,exports.Drawer=Ca,exports.Dropdown=Jr,exports.Empty=pe,exports.Flex=$e,exports.Form=da,exports.Grid=ya,exports.I18nProvider=qr,exports.Icon=D,exports.Input=Je,exports.Label=vo,exports.Layout=Zo,exports.Marquee=pn,exports.Masonry=Lt,exports.Menu=Si,exports.Message=fn,exports.MessageProvider=function(t){var r=t.children,i=n.useState([]),o=i[0],a=i[1],s=n.useState(0),l=s[0],c=s[1],d=n.useCallback(function(e,n,t){void 0===t&&(t=3e3);var r=l;c(function(e){return e+1}),a(function(i){return b(b([],i,!0),[{id:r,type:e,content:n,duration:t}],!1)});var i=setTimeout(function(){o(r)},t),o=function(e){a(function(n){return n.filter(function(n){return n.id!==e})})};return{close:function(){clearTimeout(i),o(r)}}},[l]),u={success:function(e,n){return d("success",e,n)},warning:function(e,n){return d("warning",e,n)},error:function(e,n){return d("error",e,n)},info:function(e,n){return d("info",e,n)},close:function(){return a([])}};return e.jsxs(bn.Provider,{value:{message:u},children:[r,o.map(function(n){return e.jsx(fn,{type:n.type,content:n.content,duration:n.duration,onClose:function(){return a(function(e){return e.filter(function(e){return e.id!==n.id})})}},n.id)})]})},exports.Modal=yn,exports.Notice=Tn,exports.Notification=Ln,exports.Pagination=wt,exports.Popconfirm=Ta,exports.Progress=Oa,exports.Radio=Jn,exports.Rate=Ti,exports.Row=xa,exports.Select=yt,exports.Slider=Oi,exports.Space=At,exports.Spin=de,exports.Splitter=sc,exports.Steps=Mi,exports.Switch=Vi,exports.Table=Nt,exports.Tabs=Ui,exports.Tag=Sa,exports.Textarea=Ze,exports.TimePicker=Ia,exports.Tooltip=_t,exports.Top=Tt,exports.Transfer=go,exports.Tree=Jl,exports.TreeSelect=Pe,exports.Typography=Ot,exports.Upload=nc,exports.i18n=Er,exports.load18n=function(e){var n={};return Object.keys(e).forEach(function(t){var r=e[t];if(r&&"object"==typeof r){var i=void 0,o=r;if(r.language)i=r.language,r.translation&&"object"==typeof r.translation&&(o=r.translation);else if(r.locale)i=r.locale,r.translation&&"object"==typeof r.translation&&(o=r.translation);else if(1===Object.keys(r).length){var a=Object.keys(r)[0];/^[a-z]{2}(-[A-Za-z]{2})?$/.test(a)&&(i=a,o=r[a])}else if(r.translation&&"object"==typeof r.translation&&1===Object.keys(r.translation).length){a=Object.keys(r.translation)[0];/^[a-z]{2}(-[A-Za-z]{2})?$/.test(a)&&(i=a,o=r.translation[a])}if(!i){(i={JP:"ja-JP",HK:"zh-HK",US:"en-US",CN:"zh-CN",EN:"en-US",ZH:"zh-CN"}[t]||t)!==t||/^[a-z]{2}(-[A-Za-z]{2})?$/.test(t)||console.warn('Using key "'.concat(t,'" as language code. For better results, ')+'please use explicit language codes like "ja-JP" or "zh-HK", or include language information in your JSON files.')}if(!i||"string"!=typeof i)return void console.warn("Invalid language code for resource ".concat(t));n[i]||(n[i]={}),o.translation&&"object"==typeof o.translation?n[i].translation=g(g({},n[i].translation),o.translation):n[i].translation=g(g({},n[i].translation),o)}}),n},exports.message=xn,exports.useCopy=Fe,exports.useI18n=function(){return Wr()},exports.useMessage=function(){var e=n.useContext(bn);return(null==e?void 0:e.message)?e.message:xn};
1
+ "use strict";var e=require("react/jsx-runtime"),n=require("react"),t=require("classnames"),r=require("styled-components"),i=require("react-color"),o=require("react-dom/client"),a=require("react-dom"),s=require("@dnd-kit/core"),l=require("@dnd-kit/sortable"),c=require("@dnd-kit/utilities");function d(e){return e&&e.__esModule?e:{default:e}}var u=d(n),p=d(t),f=d(r),h=d(a),g=function(){return g=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},g.apply(this,arguments)};function m(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t}function v(e,n,t,r){return new(t||(t=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(a,s)}l((r=r.apply(e,n||[])).next())})}function x(e,n){var t,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(t=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],r=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function b(e,n,t){if(t||2===arguments.length)for(var r,i=0,o=n.length;i<o;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return e.concat(r||Array.prototype.slice.call(n))}function y(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}"function"==typeof SuppressedError&&SuppressedError;var C={path:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z",viewBox:"0 0 24 24"},w={path:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z",viewBox:"0 0 24 24"},_={path:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",viewBox:"0 0 24 24"},E={path:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",viewBox:"0 0 24 24"},N={path:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",viewBox:"0 0 24 24"},S={path:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z",viewBox:"0 0 24 24"},T={path:"M19 13H5v-2h14v2z",viewBox:"0 0 24 24"},O={path:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",viewBox:"0 0 24 24"},L={path:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",viewBox:"0 0 24 24"},A={path:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",viewBox:"0 0 24 24"},k={path:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z",viewBox:"0 0 24 24"},M={search:C,loading:w,user:_,close:E,check:N,plus:S,minus:T,arrowLeft:O,arrowRight:L,arrowUp:A,arrowDown:k,app:{path:"M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z",viewBox:"0 0 24 24"},layout:{path:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 16H5V5h6v14zm8-10h-6V5h6v4zm0 6h-6v-4h6v4z",viewBox:"0 0 24 24"},setting:{path:"M19.14 12.94c.04-.31.06-.63.06-.94 0-.31-.02-.63-.06-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.04.31-.06.63-.06.94s.02.63.06.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z",viewBox:"0 0 24 24"},eye:{path:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",viewBox:"0 0 24 24"},eyeOff:{path:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z",viewBox:"0 0 24 24"},trash:{path:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z",viewBox:"0 0 24 24"},edit:{path:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",viewBox:"0 0 24 24"},download:{path:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z",viewBox:"0 0 24 24"},upload:{path:"M9 16h6v-6h4l-7-7-7 7h4v6zm-4 2h14v2H5v-2z",viewBox:"0 0 24 24"},refresh:{path:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",viewBox:"0 0 24 24"},home:{path:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z",viewBox:"0 0 24 24"},menu:{path:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z",viewBox:"0 0 24 24"},more:{path:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",viewBox:"0 0 24 24"},bell:{path:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z",viewBox:"0 0 24 24"},mail:{path:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z",viewBox:"0 0 24 24"},calendar:{path:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM9 10H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm-8 4H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2z",viewBox:"0 0 24 24"},clock:{path:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z",viewBox:"0 0 24 24"},star:{path:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",viewBox:"0 0 24 24"},starOutline:{path:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z",viewBox:"0 0 24 24"},heart:{path:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",viewBox:"0 0 24 24"},heartOutline:{path:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z",viewBox:"0 0 24 24"},info:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z",viewBox:"0 0 24 24"},warning:{path:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",viewBox:"0 0 24 24"},error:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",viewBox:"0 0 24 24"},success:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",viewBox:"0 0 24 24"},question:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z",viewBox:"0 0 24 24"},link:{path:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z",viewBox:"0 0 24 24"},image:{path:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z",viewBox:"0 0 24 24"},folder:{path:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z",viewBox:"0 0 24 24"},file:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},cloud:{path:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z",viewBox:"0 0 24 24"},exclamation:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",viewBox:"0 0 24 24"},facebook:{path:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",viewBox:"0 0 24 24"},twitter:{path:"M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z",viewBox:"0 0 24 24"},instagram:{path:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z",viewBox:"0 0 24 24"},linkedin:{path:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z",viewBox:"0 0 24 24"},copy:{path:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",viewBox:"0 0 24 24"},paste:{path:"M19 2h-4.18C14.4 2 14 2.4 14 2.82V7h-4V2.82C10 2.4 9.6 2 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0h4v5h-4V2zm5 18H5V4h4v3h1.18C10.6 7 11 7.4 11 7.82V20h8V4h-4v3h-.18C14.4 7 14 7.4 14 7.82V20z",viewBox:"0 0 24 24"},cut:{path:"M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14zm-1-7h-3V8h-2v4H8l4 4 4-4z",viewBox:"0 0 24 24"},select:{path:"M3 3v18h18V3H3zm16 16H5V5h14v14zM11 7h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2z",viewBox:"0 0 24 24"},fileText:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},filePdf:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},fileExcel:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},fileWord:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},arrowUpRight:{path:"M13 3h-2v5H6v2h5v8h2v-8h5v-2h-5V3z",viewBox:"0 0 24 24"},arrowDownRight:{path:"M19 15v-2h-5V6h-2v7H6v2h7v5h2v-5h5z",viewBox:"0 0 24 24"},arrowUpLeft:{path:"M11 3v5H6v2h5v8h2v-8h5v-2h-5V3h-2z",viewBox:"0 0 24 24"},arrowDownLeft:{path:"M11 19H6v-2h5v-5h2v5h5v2h-5z",viewBox:"0 0 24 24"},filter:{path:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z",viewBox:"0 0 24 24"},sort:{path:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z",viewBox:"0 0 24 24"},searchPlus:{path:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm7.5 4l3.04 3.04.71-.71-3.75-3.75z",viewBox:"0 0 24 24"},searchMinus:{path:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm7.5-2h-5v-2h5v2z",viewBox:"0 0 24 24"},shield:{path:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z",viewBox:"0 0 24 24"},lock:{path:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z",viewBox:"0 0 24 24"},unlock:{path:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z",viewBox:"0 0 24 24"},tag:{path:"M20.59 13.41l-7.17 7.17c-.18.18-.43.29-.71.29H8c-1.1 0-1.99-.9-1.99-2V9.3c0-.28.11-.53.29-.71l7.17-7.17c.56-.56 1.41-.22 1.79.58l3.31 8.83c.38.95-.29 1.95-1.24 1.95h-2.06c-.28 0-.53.11-.71.29z",viewBox:"0 0 24 24"},bookmark:{path:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z",viewBox:"0 0 24 24"},flag:{path:"M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6h-5.6z",viewBox:"0 0 24 24"},map:{path:"M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.7z",viewBox:"0 0 24 24"},message:{path:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z",viewBox:"0 0 24 24"},phone:{path:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z",viewBox:"0 0 24 24"},camera:{path:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",viewBox:"0 0 24 24"},video:{path:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z",viewBox:"0 0 24 24"},music:{path:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z",viewBox:"0 0 24 24"},play:{path:"M8 5v14l11-7z",viewBox:"0 0 24 24"},pause:{path:"M6 19h4V5H6v14zm8-14v14h4V5h-4z",viewBox:"0 0 24 24"},stop:{path:"M6 19h12V5H6v14z",viewBox:"0 0 24 24"},refreshCw:{path:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",viewBox:"0 0 24 24"},refreshCcw:{path:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z",viewBox:"0 0 24 24"},undo:{path:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z",viewBox:"0 0 24 24"},redo:{path:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22l2.37.78C4.63 15.17 7.74 13 11.5 13c1.95 0 3.73.72 5.12 1.88L13 20h9V11l-3.6-3.6z",viewBox:"0 0 24 24"},zoomIn:{path:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm2.5-2h-2v-2h2v2z",viewBox:"0 0 24 24"},zoomOut:{path:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z",viewBox:"0 0 24 24"},infoCircle:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",viewBox:"0 0 24 24"},warningCircle:{path:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2V7h2v7z",viewBox:"0 0 24 24"},errorCircle:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",viewBox:"0 0 24 24"},checkCircle:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",viewBox:"0 0 24 24"},questionCircle:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z",viewBox:"0 0 24 24"},youtube:{path:"M10,15.5C10,16.88 8.67,18.14 6.88,18.64C5.08,19.14 3,18.47 3,17V7C3,5.53 5.08,4.86 6.88,5.36C8.67,5.86 10,7.12 10,8.5V15.5M15.5,15.5C15.5,16.88 14.17,18.14 12.38,18.64C10.58,19.14 8.5,18.47 8.5,17V7C8.5,5.53 10.58,4.86 12.38,5.36C14.17,5.86 15.5,7.12 15.5,8.5V15.5M19.83,7.41C20.22,7.69 20.39,8.14 20.39,8.64V15.36C20.39,15.86 20.22,16.31 19.83,16.59C19.63,16.72 19.39,16.79 19.14,16.79H15.41V7.21H19.14C19.39,7.21 19.63,7.28 19.83,7.41M19.14,15.56H16.5V8.44H19.14V15.56Z",viewBox:"0 0 24 24"},github:{path:"M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z",viewBox:"0 0 24 24"},weibo:{path:"M19,4H5C3.89,4 3,4.89 3,6V18A2,2 0 0,0 5,20H19A2,2 0 0,0 21,18V6C21,4.89 20.1,4 19,4M19,18H5V6H19V18M9.5,8A1.5,1.5 0 0,0 8,9.5A1.5,1.5 0 0,0 9.5,11A1.5,1.5 0 0,0 11,9.5A1.5,1.5 0 0,0 9.5,8M14.5,15A1.5,1.5 0 0,0 13,16.5A1.5,1.5 0 0,0 14.5,18A1.5,1.5 0 0,0 16,16.5A1.5,1.5 0 0,0 14.5,15M18,11C18,14.87 14.87,18 11,18C7.13,18 4,14.87 4,11C4,7.13 7.13,4 11,4C14.87,4 18,7.13 18,11Z",viewBox:"0 0 24 24"},telegram:{path:"M18.88,6.85L14.19,11.54L4.76,10.43L7.26,15.53L6.21,20.21L11.89,17.4L16.8,22L18.88,15.28L18.88,6.85Z",viewBox:"0 0 24 24"},hammer:{path:"M19.66,3.99C18.87,3.63 18,3.36 17.11,3.19L15,5.41L18.59,9L20.81,7.88C20.64,7 20.37,6.12 20.01,5.34L19.66,3.99M16.59,10L13,6.41L4,15.41V19H7.58L16.59,10Z",viewBox:"0 0 24 24"},wrench:{path:"M14.71,15.88L10.83,12L14.71,8.12L13.29,6.71L9.41,10.59L5.53,6.71L4.12,8.12L7.99,12L4.12,15.88L5.53,17.29L9.41,13.41L13.29,17.29L14.71,15.88Z",viewBox:"0 0 24 24"},screwdriver:{path:"M5,18H9V20H5V18M11,5.83V17.17L8,14.17L9.41,12.76L11,14.34V5.83M21.71,4.04C22.1,3.65 22.1,3 21.71,2.63L19.37,0.29C19,-0.1 18.35,-0.1 17.96,0.29L15,3.25L18.75,7L21.71,4.04Z",viewBox:"0 0 24 24"},paintbrush:{path:"M18,4A4,4 0 0,1 22,8A4,4 0 0,1 18,12A4,4 0 0,1 14,8A4,4 0 0,1 18,4M8.5,14.5A1.5,1.5 0 0,1 7,13A1.5,1.5 0 0,1 8.5,11.5A1.5,1.5 0 0,1 10,13A1.5,1.5 0 0,1 8.5,14.5M12,17A3,3 0 0,1 9,20H3V22H9A5,5 0 0,0 14,17H12Z",viewBox:"0 0 24 24"},fileEarmark:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z",viewBox:"0 0 24 24"},fileEarmarkText:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M15,12V14H9V12H15M15,16V18H9V16H15M15,8H9V10H15V8Z",viewBox:"0 0 24 24"},fileEarmarkImage:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M10,13L15,16L10,19V13Z",viewBox:"0 0 24 24"},fileEarmarkPdf:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M10,13H8V18H10V13M12,13H10V11H12V13M14,13H12V11H14V13M16,13H14V11H16V13Z",viewBox:"0 0 24 24"},arrowUpRightSquare:{path:"M18,2A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4C4,2.89 4.89,2 6,2H18M17,10L12,15L7,10H17Z",viewBox:"0 0 24 24"},arrowDownRightSquare:{path:"M18,2A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H18M17,14L12,9L7,14H17Z",viewBox:"0 0 24 24"},arrowUpLeftSquare:{path:"M18,2A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H18M7,10L12,15L17,10H7Z",viewBox:"0 0 24 24"},arrowDownLeftSquare:{path:"M18,2A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H18M7,14L12,9L17,14H7Z",viewBox:"0 0 24 24"},compass:{path:"M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4Z",viewBox:"0 0 24 24"},mapPin:{path:"M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z",viewBox:"0 0 24 24"},location:{path:"M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z",viewBox:"0 0 24 24"},pencilSquare:{path:"M18,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V4A2,2 0 0,0 18,2M15.5,13.5C15.5,14.35 15.13,15.09 14.5,15.5C13.88,15.91 13.15,16.1 12.3,16.1C11.45,16.1 10.73,15.91 10.1,15.5C9.47,15.09 9.1,14.35 9.1,13.5A4.4,4.4 0 0,1 13.5,9.1C14.35,9.1 15.09,9.47 15.5,10.1C15.91,10.73 16.1,11.45 16.1,12.3C16.1,13.15 15.91,13.88 15.5,14.5V13.5M12.3,14.9C12.69,14.9 13.07,14.82 13.4,14.66C14.08,14.34 14.4,13.69 14.4,13C14.4,12.31 14.08,11.66 13.4,11.34C13.07,11.18 12.69,11.1 12.3,11.1C11.91,11.1 11.53,11.18 11.2,11.34C10.52,11.66 10.2,12.31 10.2,13C10.2,13.69 10.52,14.34 11.2,14.66C11.53,14.82 11.91,14.9 12.3,14.9Z",viewBox:"0 0 24 24"},highlighter:{path:"M6,17A2,2 0 0,1 4,15V3A1,1 0 0,1 5,2H19A1,1 0 0,1 20,3V15A2,2 0 0,1 18,17H8L6,21V17M13,9H18V15H13V9M8,9H11V15H8V9Z",viewBox:"0 0 24 24"},checkCircleFill:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M10,17L5,12L6.41,10.59L10,14.17L17.59,6.58L19,8L10,17Z",viewBox:"0 0 24 24"},exclamationCircleFill:{path:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z",viewBox:"0 0 24 24"},infoCircleFill:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M11,17H13V19H11V17M12,5A1,1 0 0,0 11,6A1,1 0 0,0 12,7A1,1 0 0,0 13,6A1,1 0 0,0 12,5Z",viewBox:"0 0 24 24"},laptop:{path:"M20,18H4V6H20M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",viewBox:"0 0 24 24"},tablet:{path:"M21,18H3V5H21M21,3H3A2,2 0 0,0 1,5V18A2,2 0 0,0 3,20H21A2,2 0 0,0 23,18V5A2,2 0 0,0 21,3Z",viewBox:"0 0 24 24"},mobile:{path:"M17,19H7V5H17M17,3H7A2,2 0 0,0 5,5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V5A2,2 0 0,0 17,3Z",viewBox:"0 0 24 24"},dollar:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M14,18H12V15H14V18M14,13H12V4H10V13H8V11L12,15L16,11V13Z",viewBox:"0 0 24 24"},euro:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M15,18H13L11,15V13H15V18M13,9H11V7H15V10L13,9Z",viewBox:"0 0 24 24"},sun:{path:"M12,18A6,6 0 0,0 18,12A6,6 0 0,0 12,6A6,6 0 0,0 6,12A6,6 0 0,0 12,18M12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4M12,2V4M12,20V22M4.93,4.93L6.34,6.34M17.66,17.66L19.07,19.07M2,12H4M20,12H22M6.34,17.66L4.93,19.07M19.07,4.93L17.66,6.34",viewBox:"0 0 24 24"},moon:{path:"M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M12,19.93A7.93,7.93 0 0,1 4.07,12A7.93,7.93 0 0,1 12,4.07A7.93,7.93 0 0,1 19.93,12A7.93,7.93 0 0,1 12,19.93Z",viewBox:"0 0 24 24"},cloudSun:{path:"M19.35,10.03C18.67,6.59 15.64,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20H20C21.11,20 22,19.1 22,18C22,16.5 20.9,15.3 19.35,13.97L12,20V13L19.35,10.03Z",viewBox:"0 0 24 24"},settings:{path:"M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.22,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.22,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.68 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",viewBox:"0 0 24 24"},tools:{path:"M21.71,20.29L20.29,21.71C20.1,21.9 19.85,22 19.59,22C19.33,22 19.08,21.9 18.88,21.71L15,17.83C13.22,19.34 10.91,20.17 8.5,20C4.91,19.96 1.84,17.59 0.89,14.15C0,10.82 1.9,7.5 5,6C5,6 6,6 7,7C7,7 8,8 8,9C10,9 11,10 12,11C13,12 14,13 15,13C16,14 17,15 18,15C19,16 20,17 20,18C22.5,20.5 22.5,22.5 21.71,20.29M5.5,18C6.33,18 7,18.67 7,19.5C7,20.33 6.33,21 5.5,21C4.67,21 4,20.33 4,19.5C4,18.67 4.67,18 5.5,18Z",viewBox:"0 0 24 24"},tool:{path:"M22.7,19.6L14.4,11.3C14.7,10.5 14.9,9.7 14.9,8.8C14.9,5.6 12.3,3 9.1,3C8.2,3 7.3,3.2 6.5,3.5L10.8,7.8L7.9,10.7L3.6,6.4C3.2,7.2 3,8.1 3,9.1C3,12.3 5.6,14.9 8.8,14.9C9.7,14.9 10.5,14.7 11.3,14.4L19.6,22.7C20,23.1 20.5,23.3 21,23.3C21.5,23.3 22,23.1 22.4,22.7C23.1,22 23.1,20.8 22.7,19.6Z",viewBox:"0 0 24 24"},mallet:{path:"M2,19.63L13.43,8.2L12.72,7.5L14.14,6.07L12,3.89C13.2,2.7 15.09,2.7 16.27,3.89L19.87,7.5L18.45,8.91H21.29L22,9.62L18.45,13.21L17.74,12.5V9.62L16.27,11.04L15.56,10.33L4.13,21.76L2,19.63Z",viewBox:"0 0 24 24"},driver:{path:"M18,1.83C17.5,1.83 17,2 16.59,2.41L13.17,5.83L15.83,8.5L19.5,4.83C20,4.33 20,3.5 19.5,3C19,2.5 18.5,1.83 18,1.83M13,4L4,13C3.5,13.5 3.5,14.5 4,15L9,20C9.5,20.5 10.5,20.5 11,20L20,11C20.5,10.5 20.5,9.5 20,9L15,4C14.5,3.5 13.5,3.5 13,4M6.5,18.5L3.5,17.5L6,15L8.5,17.5L6.5,18.5Z",viewBox:"0 0 24 24"},document:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z",viewBox:"0 0 24 24"},directory:{path:"M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",viewBox:"0 0 24 24"},"folder-open":{path:"M19,20H4C2.89,20 2,19.1 2,18V6C2,4.89 2.89,4 4,4H10L12,6H19A2,2 0 0,1 21,8H21L4,8V18L6.14,10H23.21L20.93,18.5C20.7,19.37 19.92,20 19,20Z",viewBox:"0 0 24 24"},"file-pdf":{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M7,13H9V19H7V13M10,13H12V17H10V13M13,13H15V19H13V13Z",viewBox:"0 0 24 24"},"file-text":{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M8,13H16V15H8V13M8,9H10V11H8V9M8,17H13V19H8V17Z",viewBox:"0 0 24 24"},"arrow-left":{path:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z",viewBox:"0 0 24 24"},"arrow-right":{path:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z",viewBox:"0 0 24 24"},"arrow-up":{path:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",viewBox:"0 0 24 24"},"arrow-down":{path:"M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z",viewBox:"0 0 24 24"},"chevron-left":{path:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",viewBox:"0 0 24 24"},"chevron-right":{path:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",viewBox:"0 0 24 24"},"m-home":{path:"M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z",viewBox:"0 0 24 24"},"m-menu":{path:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",viewBox:"0 0 24 24"},"m-search":{path:"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",viewBox:"0 0 24 24"},"m-close":{path:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",viewBox:"0 0 24 24"},"m-user":{path:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",viewBox:"0 0 24 24"},"m-edit":{path:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",viewBox:"0 0 24 24"},delete:{path:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",viewBox:"0 0 24 24"},"m-copy":{path:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z",viewBox:"0 0 24 24"},"m-out":{path:"M19,3L13,9L15,11L22,4V3M12,12.5A0.5,0.5 0 0,1 11.5,12A0.5,0.5 0 0,1 12,11.5A0.5,0.5 0 0,1 12.5,12A0.5,0.5 0 0,1 12,12.5M6,20A2,2 0 0,1 4,18C4,16.89 4.9,16 6,16A2,2 0 0,1 8,18C8,19.11 7.1,20 6,20M6,8A2,2 0 0,1 4,6C4,4.89 4.9,4 6,4A2,2 0 0,1 8,6C8,7.11 7.1,8 6,8M9.64,7.64C9.87,7.14 10,6.59 10,6A4,4 0 0,0 6,2A4,4 0 0,0 2,6A4,4 0 0,0 6,10C6.59,10 7.14,9.87 7.64,9.64L10,12L7.64,14.36C7.14,14.13 6.59,14 6,14A4,4 0 0,0 2,18A4,4 0 0,0 6,22A4,4 0 0,0 10,18C10,17.41 9.87,16.86 9.64,16.36L12,14L19,21H22V20L9.64,7.64Z",viewBox:"0 0 24 24"},bold:{path:"M13.5,15.5H10V12.5H13.5A1.5,1.5 0 0,1 15,14A1.5,1.5 0 0,1 13.5,15.5M10,6.5H13A1.5,1.5 0 0,1 14.5,8A1.5,1.5 0 0,1 13,9.5H10M15.6,10.79C16.57,10.11 17.25,9 17.25,8C17.25,5.74 15.5,4 13.25,4H7V18H14.04C16.14,18 17.75,16.3 17.75,14.21C17.75,12.69 16.89,11.39 15.6,10.79Z",viewBox:"0 0 24 24"},"m-check":{path:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",viewBox:"0 0 24 24"},"m-error":{path:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",viewBox:"0 0 24 24"},"m-warning":{path:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z",viewBox:"0 0 24 24"},"m-info":{path:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",viewBox:"0 0 24 24"},"m-loading":{path:"M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z",viewBox:"0 0 24 24"},"m-phone":{path:"M6.62,10.79C8.06,13.62 10.38,15.94 13.21,17.38L15.41,15.18C15.69,14.9 16.08,14.82 16.43,14.93C17.55,15.3 18.75,15.5 20,15.5A1,1 0 0,1 21,16.5V20A1,1 0 0,1 20,21A17,17 0 0,1 3,4A1,1 0 0,1 4,3H7.5A1,1 0 0,1 8.5,4C8.5,5.25 8.7,6.45 9.07,7.57C9.18,7.92 9.1,8.31 8.82,8.59L6.62,10.79Z",viewBox:"0 0 24 24"},photograph:{path:"M4,4H7L9,2H15L17,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9Z",viewBox:"0 0 24 24"},printer:{path:"M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z",viewBox:"0 0 24 24"},headphones:{path:"M12,1C7,1 3,5 3,10V17A3,3 0 0,0 6,20H9V12H5V10A7,7 0 0,1 12,3A7,7 0 0,1 19,10V12H15V20H18A3,3 0 0,0 21,17V10C21,5 16.97,1 12,1Z",viewBox:"0 0 24 24"},mouse:{path:"M11,1.07C7.05,1.56 4,4.92 4,9H11M4,15A8,8 0 0,0 12,23A8,8 0 0,0 20,15V11H4M13,1.07V9H20C20,4.92 16.94,1.56 13,1.07Z",viewBox:"0 0 24 24"},schedule:{path:"M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z",viewBox:"0 0 24 24"},"m-clock":{path:"M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z",viewBox:"0 0 24 24"},"m-bell":{path:"M10,21H14A2,2 0 0,1 12,23A2,2 0 0,1 10,21M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19Z",viewBox:"0 0 24 24"},"m-star":{path:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",viewBox:"0 0 24 24"},"m-heart":{path:"M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z",viewBox:"0 0 24 24"},"m-download":{path:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",viewBox:"0 0 24 24"},"m-upload":{path:"M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z",viewBox:"0 0 24 24"},share:{path:"M18,16.08C17.24,16.08 16.56,16.38 16.04,16.85L8.91,12.7C8.96,12.47 9,12.24 9,12C9,11.76 8.96,11.53 8.91,11.3L15.96,7.19C16.5,7.69 17.21,8 18,8A3,3 0 0,0 21,5A3,3 0 0,0 18,2A3,3 0 0,0 15,5C15,5.24 15.04,5.47 15.09,5.7L8.04,9.81C7.5,9.31 6.79,9 6,9A3,3 0 0,0 3,12A3,3 0 0,0 6,15C6.79,15 7.5,14.69 8.04,14.19L15.16,18.34C15.11,18.55 15.08,18.77 15.08,19C15.08,20.61 16.39,21.91 18,21.91C19.61,21.91 20.92,20.61 20.92,19A2.92,2.92 0 0,0 18,16.08Z",viewBox:"0 0 24 24"},"external-link":{path:"M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",viewBox:"0 0 24 24"},"m-mail":{path:"M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",viewBox:"0 0 24 24"},secure:{path:"M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",viewBox:"0 0 24 24"},open:{path:"M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z",viewBox:"0 0 24 24"},view:{path:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z",viewBox:"0 0 24 24"},off:{path:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z",viewBox:"0 0 24 24"},"m-sort":{path:"M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z",viewBox:"0 0 24 24"},grid:{path:"M10,4V8H14V4H10M16,4V8H20V4H16M16,10V14H20V10H16M16,16V20H20V16H16M14,20V16H10V20H14M8,20V16H4V20H8M8,14V10H4V14H8M8,8V4H4V8H8M10,14H14V10H10V14M4,2H20A2,2 0 0,1 22,4V20A2,2 0 0,1 20,22H4C2.92,22 2,21.1 2,20V4A2,2 0 0,1 4,2Z",viewBox:"0 0 24 24"},list:{path:"M3,13H21V11H3V13M3,6H21V4H3V6M3,18H21V16H3V18Z",viewBox:"0 0 24 24"},reload:{path:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",viewBox:"0 0 24 24"},"volume-high":{path:"M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z",viewBox:"0 0 24 24"},"volume-off":{path:"M12,4L9.91,6.09L12,8.18M4.27,3L3,4.27L7.73,9H3V15H7L12,20V13.27L16.25,17.52C15.58,18.04 14.83,18.46 14,18.7V20.77C15.38,20.45 16.63,19.82 17.68,18.96L19.73,21L21,19.73L12,10.73M19,12C19,12.94 18.8,13.82 18.46,14.64L19.97,16.15C20.62,14.91 21,13.5 21,12C21,7.72 18,4.14 14,3.23V5.29C16.89,6.15 19,8.83 19,12M16.5,12C16.5,10.23 15.5,8.71 14,7.97V10.18L16.45,12.63C16.5,12.43 16.5,12.21 16.5,12Z",viewBox:"0 0 24 24"},"shield-check":{path:"M12,2L4,5V11C4,16.55 7.84,21.74 12,23C16.16,21.74 20,16.55 20,11V5L12,2M10.59,16.59L7.41,13.41L8.82,12L10.59,13.76L15.18,9.17L16.59,10.58L10.59,16.59Z",viewBox:"0 0 24 24"},"shield-off":{path:"M19,11V5L12,2L5,5V11C5,14.54 6.64,17.89 9.25,20.02L3.27,4.27L4.55,3L21,19.45L19.73,20.73L17.3,18.3C15.95,19.4 14.36,20.28 12.65,20.82C11.29,20.4 10.05,19.73 8.96,18.86L11.19,16.63C11.46,16.41 11.73,16.18 12,15.92V15.92C12.56,15.36 13.07,14.76 13.5,14.11L9.89,10.5L8.47,9.08L6.59,7.2V11C6.59,12.51 7.06,13.96 7.91,15.2L9.33,16.62",viewBox:"0 0 24 24"},key:{path:"M7,14A5,5 0 0,1 12,9A5,5 0 0,1 17,14A5,5 0 0,1 12,19A5,5 0 0,1 7,14M12,11A3,3 0 0,0 9,14A3,3 0 0,0 12,17A3,3 0 0,0 15,14A3,3 0 0,0 12,11M19,7L17,7V4H15V7H12V9H15V12H17V9H19V7Z",viewBox:"0 0 24 24"},"key-outline":{path:"M12,3A7,7 0 0,1 19,10A7,7 0 0,1 12,17A7,7 0 0,1 5,10A7,7 0 0,1 12,3M12,5A5,5 0 0,0 7,10A5,5 0 0,0 12,15A5,5 0 0,0 17,10A5,5 0 0,0 12,5M19,7H17V4H15V7H12V9H15V12H17V9H19V7Z",viewBox:"0 0 24 24"},logout:{path:"M14,17V14H6V10H14V7L19,12L14,17M4,19H12V21H4A2,2 0 0,1 2,19V5A2,2 0 0,1 4,3H12V5H4V19Z",viewBox:"0 0 24 24"},login:{path:"M10,17V14H18V10H10V7L5,12L10,17M20,19H12V21H20A2,2 0 0,0 22,19V5A2,2 0 0,0 20,3H12V5H20V19Z",viewBox:"0 0 24 24"},"settings-2":{path:"M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M4,12C4,11.3 4.07,10.62 4.2,9.95L2,8.5L3.5,6L5.95,6.8C6.44,6.28 6.99,5.82 7.6,5.44L7.3,2.8H10.2L10.5,5.44C11.17,5.2 11.85,5.08 12.55,5.08C13.25,5.08 13.93,5.2 14.6,5.44L14.9,2.8H17.8L17.5,5.44C18.11,5.82 18.66,6.28 19.15,6.8L21.6,6L23.1,8.5L20.9,9.95C21.03,10.62 21.1,11.3 21.1,12C21.1,12.7 21.03,13.38 20.9,14.05L23.1,15.5L21.6,18L19.15,17.2C18.66,17.72 18.11,18.18 17.5,18.56L17.8,21.2H14.9L14.6,18.56C13.93,18.8 13.25,18.92 12.55,18.92C11.85,18.92 11.17,18.8 10.5,18.56L10.2,21.2H7.3L7.6,18.56C6.99,18.18 6.44,17.72 5.95,17.2L3.5,18L2,15.5L4.2,14.05C4.07,13.38 4,12.7 4,12Z",viewBox:"0 0 24 24"},sliders:{path:"M10,4H4V6H10V4M20,4H14V6H20V4M16,9H4V11H16V9M20,9H18V11H20V9M8,14H4V16H8V14M20,14H12V16H20V14M12,19H4V21H12V19M20,19H16V21H20V19Z",viewBox:"0 0 24 24"},"chart-bar":{path:"M4,19H20V21H2V3H4V19M8,17V9H10V17H8M12,17V5H14V17H12M16,17V12H18V17H16Z",viewBox:"0 0 24 24"},"chart-line":{path:"M3,17L9,11L13,15L21,7L19.6,5.6L13,12.2L9,8.2L1.6,15.6L3,17M2,19H22V21H2V19Z",viewBox:"0 0 24 24"},"chart-pie":{path:"M11,2V12H21C20.45,6.4 16,2 11,2M13,13V3.08C7.94,3.58 4,7.86 4,13C4,18.52 8.48,23 14,23C19.14,23 23.42,19.06 23.92,14H13Z",viewBox:"0 0 24 24"},clipboard:{path:"M16,4H14.18C13.76,2.84 12.69,2 11.5,2C10.31,2 9.24,2.84 8.82,4H7A2,2 0 0,0 5,6V20A2,2 0 0,0 7,22H17A2,2 0 0,0 19,20V6A2,2 0 0,0 17,4H16M11.5,4A1,1 0 0,1 12.5,5A1,1 0 0,1 11.5,6A1,1 0 0,1 10.5,5A1,1 0 0,1 11.5,4Z",viewBox:"0 0 24 24"},"clipboard-check":{path:"M9,16.17L6.83,14L5.42,15.41L9,19L18,10L16.59,8.59L9,16.17M16,4H14.18C13.76,2.84 12.69,2 11.5,2C10.31,2 9.24,2.84 8.82,4H7A2,2 0 0,0 5,6V20A2,2 0 0,0 7,22H17A2,2 0 0,0 19,20V6A2,2 0 0,0 17,4H16Z",viewBox:"0 0 24 24"},"clipboard-text":{path:"M16,4H14.18C13.76,2.84 12.69,2 11.5,2C10.31,2 9.24,2.84 8.82,4H7A2,2 0 0,0 5,6V20A2,2 0 0,0 7,22H17A2,2 0 0,0 19,20V6A2,2 0 0,0 17,4H16M8,10H16V12H8V10M8,14H16V16H8V14Z",viewBox:"0 0 24 24"},database:{path:"M12,3C7.58,3 4,4.79 4,7V17C4,19.21 7.58,21 12,21C16.42,21 20,19.21 20,17V7C20,4.79 16.42,3 12,3M12,5C15.31,5 18,6.12 18,7.5C18,8.88 15.31,10 12,10C8.69,10 6,8.88 6,7.5C6,6.12 8.69,5 12,5M6,10.5C7.26,11.35 9.43,12 12,12C14.57,12 16.74,11.35 18,10.5V13C18,14.38 15.31,15.5 12,15.5C8.69,15.5 6,14.38 6,13V10.5M6,15.5C7.26,16.35 9.43,17 12,17C14.57,17 16.74,16.35 18,15.5V17C18,18.38 15.31,19.5 12,19.5C8.69,19.5 6,18.38 6,17V15.5Z",viewBox:"0 0 24 24"},server:{path:"M4,4H20A2,2 0 0,1 22,6V10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V6A2,2 0 0,1 4,4M4,14H20A2,2 0 0,1 22,16V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V16A2,2 0 0,1 4,14M6,7A1,1 0 0,0 5,8A1,1 0 0,0 6,9A1,1 0 0,0 7,8A1,1 0 0,0 6,7M6,17A1,1 0 0,0 5,18A1,1 0 0,0 6,19A1,1 0 0,0 7,18A1,1 0 0,0 6,17Z",viewBox:"0 0 24 24"},terminal:{path:"M4,5H20A2,2 0 0,1 22,7V17A2,2 0 0,1 20,19H4A2,2 0 0,1 2,17V7A2,2 0 0,1 4,5M6,8L10,12L6,16L7.41,17.41L12.83,12L7.41,6.59L6,8M13,15H18V17H13V15Z",viewBox:"0 0 24 24"},code:{path:"M8.59,16.59L4,12L8.59,7.41L7.17,6L1.17,12L7.17,18L8.59,16.59M15.41,16.59L20,12L15.41,7.41L16.83,6L22.83,12L16.83,18L15.41,16.59Z",viewBox:"0 0 24 24"},bug:{path:"M14,6H18V8H14V6M6,6H10V8H6V6M12,2A4,4 0 0,1 16,6V7H8V6A4,4 0 0,1 12,2M5,9H19V11H5V9M7,12H9V20H7V12M15,12H17V20H15V12M11,12H13V22H11V12Z",viewBox:"0 0 24 24"},gift:{path:"M20,12V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V12H20M12,2A2.5,2.5 0 0,1 14.5,4.5A2.5,2.5 0 0,1 12,7A2.5,2.5 0 0,1 9.5,4.5A2.5,2.5 0 0,1 12,2M2,8H22V12H2V8M11,12H13V22H11V12Z",viewBox:"0 0 24 24"},cart:{path:"M7,18A2,2 0 0,0 9,20A2,2 0 0,0 11,18A2,2 0 0,0 9,16A2,2 0 0,0 7,18M15,18A2,2 0 0,0 17,20A2,2 0 0,0 19,18A2,2 0 0,0 17,16A2,2 0 0,0 15,18M7.16,12H17.55L20.31,6H6L5.21,4H2V6H4L7.6,13.59L6.25,16H19V14H8.42L7.16,12Z",viewBox:"0 0 24 24"},"shopping-bag":{path:"M6,6V5A4,4 0 0,1 10,1H14A4,4 0 0,1 18,5V6H21A1,1 0 0,1 22,7V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V7A1,1 0 0,1 3,6H6M8,6H16V5A2,2 0 0,0 14,3H10A2,2 0 0,0 8,5V6Z",viewBox:"0 0 24 24"},"credit-card":{path:"M4,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M4,7V9H20V7H4M6,14H12V16H6V14Z",viewBox:"0 0 24 24"},wallet:{path:"M3,7H20A2,2 0 0,1 22,9V17A2,2 0 0,1 20,19H4A2,2 0 0,1 2,17V7A2,2 0 0,1 4,5H20V7H3M18,12A1,1 0 0,0 17,13A1,1 0 0,0 18,14A1,1 0 0,0 19,13A1,1 0 0,0 18,12Z",viewBox:"0 0 24 24"},"tag-outline":{path:"M20.59,13.41L11,3.83A2,2 0 0,0 9.59,3H5A2,2 0 0,0 3,5V9.59A2,2 0 0,0 3.59,11L13.17,20.59A2,2 0 0,0 16,20.59L20.59,16A2,2 0 0,0 20.59,13.41M7,7A1.5,1.5 0 0,1 8.5,5.5A1.5,1.5 0 0,1 10,7A1.5,1.5 0 0,1 8.5,8.5A1.5,1.5 0 0,1 7,7Z",viewBox:"0 0 24 24"},"bookmark-outline":{path:"M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5A2,2 0 0,0 17,3M17,18L12,16L7,18V5H17V18Z",viewBox:"0 0 24 24"},pin:{path:"M12,2A7,7 0 0,1 19,9C19,14.25 12,22 12,22C12,22 5,14.25 5,9A7,7 0 0,1 12,2M12,6.5A2.5,2.5 0 0,0 9.5,9A2.5,2.5 0 0,0 12,11.5A2.5,2.5 0 0,0 14.5,9A2.5,2.5 0 0,0 12,6.5Z",viewBox:"0 0 24 24"},"pin-outline":{path:"M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2M12,4A5,5 0 0,1 17,9C17,12.74 13.8,17.15 12,19.29C10.2,17.15 7,12.74 7,9A5,5 0 0,1 12,4M12,6.5A2.5,2.5 0 0,0 9.5,9A2.5,2.5 0 0,0 12,11.5A2.5,2.5 0 0,0 14.5,9A2.5,2.5 0 0,0 12,6.5Z",viewBox:"0 0 24 24"},"bell-outline":{path:"M12,22A2,2 0 0,0 14,20H10A2,2 0 0,0 12,22M18,16V11A6,6 0 0,0 12,5A6,6 0 0,0 6,11V16L4,18V19H20V18L18,16M12,7A4,4 0 0,1 16,11V16H8V11A4,4 0 0,1 12,7Z",viewBox:"0 0 24 24"},"bell-off":{path:"M2,5.27L3.28,4L20,20.72L18.73,22L16.68,19.95C15.7,20.4 14.61,20.68 13.5,20.78V22H10.5V20.78C9.62,20.7 8.74,20.48 7.91,20.14L6.5,21.55L5.23,20.28L7.05,18.46L4,15V11A6,6 0 0,1 9.08,5.08L7.61,3.61C8.98,2.59 10.55,2 12,2A6,6 0 0,1 18,8V12L20,14V15H17.82L15.82,13H18V12A4,4 0 0,0 14,8C13.46,8 12.93,8.11 12.45,8.32L9.95,5.82C10.62,5.29 11.29,5.03 12,5.03A6,6 0 0,1 18,11V16L19.18,17.18L2,5.27Z",viewBox:"0 0 24 24"},"check-circle":{path:"M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M10,17L5,12L6.41,10.59L10,14.17L17.59,6.58L19,8L10,17Z",viewBox:"0 0 24 24"},"close-circle":{path:"M12,2C6.47,2 2,6.47 2,12C2,17.53 6.47,22 12,22C17.53,22 22,17.53 22,12C22,6.47 17.53,2 12,2M15.59,17L12,13.41L8.41,17L7,15.59L10.59,12L7,8.41L8.41,7L12,10.59L15.59,7L17,8.41L13.41,12L17,15.59L15.59,17Z",viewBox:"0 0 24 24"}},I={search:C,loading:w,user:_,close:E,check:N,plus:S,minus:T,arrowLeft:O,arrowRight:L,arrowUp:A,arrowDown:k},j=function(e){return I[e]?I[e]:M[e]},R={small:12,medium:16,large:24},D=function(t){var r=t.type,i=t.path,o=t.viewBox,a=void 0===o?"0 0 24 24":o,s=t.size,l=void 0===s?"medium":s,c=t.color,d=void 0===c?"#339af0":c,u=t.hoverColor,p=t.spin,f=void 0!==p&&p,h=t.rotate,m=t.align,v=void 0===m?"center":m,x=t.className,b=void 0===x?"":x,y=t.style,C=t.onClick,w=n.useMemo(function(){return"number"==typeof l?l:R[l]||16},[l]),_=n.useMemo(function(){if(i)return i;if(r){var e=j(r);return(null==e?void 0:e.path)||""}return""},[r,i]),E=n.useMemo(function(){if("0 0 24 24"!==a)return a;if(r){var e=j(r);return(null==e?void 0:e.viewBox)||"0 0 24 24"}return"0 0 24 24"},[r,a]);if(!_)return null;var N=g({width:w,height:w,fill:d,transform:h?"rotate(".concat(h,"deg)"):void 0},y);return e.jsx("div",{className:"icon-container align-".concat(v," ").concat(b),children:e.jsx("svg",{viewBox:E,className:"icon ".concat(f?"icon-spin":""),style:N,onMouseEnter:function(e){u&&(e.currentTarget.style.fill=u)},onMouseLeave:function(e){u&&(e.currentTarget.style.fill=d)},onClick:C,children:e.jsx("path",{d:_})})})},H=u.default.forwardRef(function(n,t){var r=n.children,i=n.variant,o=void 0===i?"secondary":i,a=n.size,s=void 0===a?"medium":a,l=n.disabled,c=void 0!==l&&l,d=n.loading,u=void 0!==d&&d,f=n.onClick,h=n.className,v=n.style,x=n.icon,b=n.type,y=void 0===b?"button":b,C=n.href,w=m(n,["children","variant","size","disabled","loading","onClick","className","style","icon","type","href"]),_=p.default("idp-btn","idp-btn--".concat(o),"idp-btn--".concat(s),{"idp-btn--disabled":c||u},h),E=function(e){c||u?null==e||e.preventDefault():f&&f()},N=function(){return u?e.jsx(D,{type:"loading",style:{marginRight:r?"2px":0}}):x?"string"==typeof x?e.jsx(D,{type:x,style:{marginRight:r?"2px":0}}):e.jsx("span",{style:{marginRight:r?"8px":0,display:"inline-flex",alignItems:"center"},children:x}):null};return"link"===o&&C?e.jsxs("a",g({ref:t,href:c?void 0:C,className:_,onClick:E,style:v},w,{children:[N(),r]})):e.jsxs("button",g({ref:t,type:y,className:_,onClick:E,disabled:c,style:v},w,{children:[N(),r]}))});H.displayName="Button";var P,z,V,B,U,F,Y,$,G,W,K,Z,X,q,J,Q,ee,ne,te,re,ie,oe,ae,se=H,le=function(n){var t=n.size;return e.jsxs("svg",{viewBox:"0 0 24 24",className:"idp-spin-icon",style:{width:t,height:t},children:[e.jsx("circle",{className:"idp-spin-track",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"}),e.jsx("circle",{className:"idp-spin-indicator",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"})]})},ce={small:16,default:24,large:32},de=function(t){var r=t.spinning,i=void 0===r||r,o=t.indicator,a=t.tip,s=t.size,l=void 0===s?"default":s,c=t.delay,d=void 0===c?0:c,u=t.className,p=void 0===u?"":u,f=t.style,h=t.children,g=t.fullscreen,m=void 0!==g&&g,v=n.useState(i),x=v[0],b=v[1],y=n.useState(0===d),C=y[0],w=y[1];n.useEffect(function(){if(i){if(b(!0),d>0){var e=setTimeout(function(){w(!0)},d);return function(){return clearTimeout(e)}}w(!0)}else b(!1),w(!1)},[i,d]);var _=ce[l],E=n.useMemo(function(){return o||e.jsx(le,{size:_})},[o,_]),N=function(){return e.jsxs("div",{className:"idp-spin-content ".concat(a?"idp-spin-has-tip":""),children:[E,a&&e.jsx("div",{className:"idp-spin-tip",children:a})]})};return m?x&&C?e.jsx("div",{className:"idp-spin-fullscreen ".concat(p),style:f,children:N()}):null:h?e.jsxs("div",{className:"idp-spin-nested-wrapper ".concat(p),style:f,children:[h,x&&C&&e.jsx("div",{className:"idp-spin-mask idp-spin-mask-".concat(l),children:N()})]}):x&&C?e.jsx("div",{className:"idp-spin idp-spin-".concat(l," ").concat(p),style:f,children:N()}):null},ue=function(t){var r=t.items,i=t.currentIndex,o=t.defaultCurrentIndex,a=void 0===o?0:o,s=t.onChange,l=t.autoplay,c=void 0===l||l,d=t.interval,u=void 0===d?3e3:d,f=t.effect,h=void 0===f?"slide":f,m=t.direction,v=void 0===m?"horizontal":m,x=t.showIndicators,y=void 0===x||x,C=t.indicatorPosition,w=void 0===C?"bottom":C,_=t.showArrows,E=void 0===_||_,N=t.loop,S=void 0===N||N,T=t.pauseOnHover,O=void 0===T||T,L=t.className,A=t.style,k=t.contentClassName,M=t.contentStyle,I=t.onItemClick,j=t.duration,R=void 0===j?500:j,H=t.prevIcon,P=t.nextIcon,z=t.upIcon,V=t.downIcon,B=t.indicatorProgress,U=void 0!==B&&B,F=void 0!==i,Y=n.useState(a),$=Y[0],G=Y[1],W=F?i:$,K=n.useState(!1),Z=K[0],X=K[1],q=n.useState(!1),J=q[0],Q=q[1],ee=n.useState(!1),ne=ee[0],te=ee[1],re=n.useState([]),ie=re[0],oe=re[1],ae=n.useState([]),se=ae[0],le=ae[1],ce=n.useRef(null),de=n.useRef(null),ue=n.useRef(null),pe=n.useRef(null),fe=r.length,he="vertical"===v,ge="fade"===h,me=["flip","cards","creative","coverflow","parallax","zoom","book","curtain","mosaic","rain"].includes(h),ve=n.useCallback(function(e){if(S){if(e<0)return fe-1;if(e>=fe)return 0}else{if(e<0)return 0;if(e>=fe)return fe-1}return e},[S,fe]),xe=n.useCallback(function(e,n){if(void 0===n&&(n=!1),!(J||fe<=1)){var t=ve(e);if(t!==W){if("rain"===h&&n&&!ne)return te(!0),oe(Ee()),void(ce.current=setTimeout(function(){Q(!0),F||G(t),null==s||s(t),setTimeout(function(){Q(!1),te(!1),oe([])},R)},1500));Q(!0),F||G(t),null==s||s(t),setTimeout(function(){Q(!1)},R)}}},[W,F,J,s,ve,R,fe,h,ne]),be=n.useCallback(function(){xe(W+1)},[W,xe]),ye=n.useCallback(function(){xe(W-1)},[W,xe]);n.useEffect(function(){if(c&&!(fe<=1)&&(!O||!Z))return ue.current=setInterval(function(){be()},u),function(){ue.current&&clearInterval(ue.current)}},[c,u,Z,O,be,fe]);var Ce=n.useMemo(function(){return ge||me?0:100*-W},[W,ge,me]),we=n.useCallback(function(e,n,t){if(!S)return e-n;var r=e-n,i=r>0?r-t:r+t;return Math.abs(r)<=Math.abs(i)?r:i},[S]),_e=function(e){if(!me)return{};var n=e===W,t=we(e,W,fe);switch(h){case"flip":return{transform:"rotateY(".concat(o=180*t,"deg)"),opacity:Math.abs(t)<=1?n?1:.5:0,zIndex:n?10:1};case"cards":var r=n?0:-100,i=n?1:.9,o=5*t;return{transform:"translateX(".concat(c=30*t,"%) translateZ(").concat(r,"px) scale(").concat(i,") rotateY(").concat(o,"deg)"),opacity:n?1:Math.abs(t)<=2?.6-.2*Math.abs(t):0,zIndex:n?10:5-Math.abs(t)};case"coverflow":var a=Math.abs(t);o=-45*t,r=n?0:-200,i=n?1:.8;return{transform:"translateX(".concat(c=50*t,"%) translateZ(").concat(r,"px) rotateY(").concat(o,"deg) scale(").concat(i,")"),opacity:a<=2?1-.3*a:0,zIndex:n?10:5-a};case"parallax":i=n?1:.8;return{transform:"translateX(".concat(c=100*t,"%) scale(").concat(i,")"),opacity:Math.abs(t)<=1?1:0,zIndex:n?10:5};case"zoom":var s=n?1:0,l=n?0:10;return{transform:"scale(".concat(i=n?1:2,")"),opacity:s,filter:"blur(".concat(l,"px)"),zIndex:n?10:1};case"book":s=n?1:-1===t?.3:0;return{transform:"rotateY(".concat(o=t<0?-90:t>0?90:0,"deg)"),opacity:s,zIndex:n?10:5};case"mosaic":var c=20*t,d=5*t;return{transform:"scale(".concat(i=n?1:.8,") translateX(").concat(c,"%) rotate(").concat(d,"deg)"),opacity:n?1:0,filter:n?"blur(0)":"blur(5px)",zIndex:n?10:5};case"creative":default:return{};case"curtain":var u=n?1:0,p=t<0?"right":"left";return{transform:"translateX(".concat(c=n?0:t<0?-100:100,"%) scaleX(").concat(u,")"),opacity:n?1:0,zIndex:n?10:5,transformOrigin:p}}},Ee=n.useCallback(function(){for(var e=[],n=0;n<80;n++){var t=Math.random()>.7;e.push({id:n,left:100*Math.random(),delay:1.5*Math.random(),duration:.4+.4*Math.random(),isLarge:t})}return e},[]),Ne=p.default("idp-carousel","idp-carousel--".concat(h),"idp-carousel--".concat(v),{"idp-carousel--hover":Z,"idp-carousel--raining":ne},L),Se=p.default("idp-carousel__content",k),Te=p.default("idp-carousel__indicators","idp-carousel__indicators--".concat(w));return 0===fe?null:e.jsxs("div",{ref:de,className:Ne,style:A,onMouseEnter:function(){return X(!0)},onMouseLeave:function(){return X(!1)},onTouchStart:function(e){var n=e.touches[0];pe.current={x:n.clientX,y:n.clientY}},onTouchEnd:function(e){if(pe.current){var n=e.changedTouches[0],t=n.clientX-pe.current.x,r=n.clientY-pe.current.y;he?Math.abs(r)>50&&(r>0?ye():be()):Math.abs(t)>50&&(t>0?ye():be()),pe.current=null}},onKeyDown:function(e){"ArrowLeft"===e.key||"ArrowUp"===e.key?ye():"ArrowRight"!==e.key&&"ArrowDown"!==e.key||be()},onClick:function(e){var n;if("rain"===h){var t=null===(n=de.current)||void 0===n?void 0:n.getBoundingClientRect();if(t){var r=e.clientX-t.left,i=e.clientY-t.top,o={id:Date.now(),x:r,y:i};le(function(e){return b(b([],e,!0),[o],!1)}),te(!0),oe(Ee()),setTimeout(function(){be(),te(!1),oe([])},1500),setTimeout(function(){le(function(e){return e.filter(function(e){return e.id!==o.id})})},1e3)}}},tabIndex:0,role:"region","aria-roledescription":"carousel",children:[e.jsx("div",{className:Se,style:g(g({},M),me||ge?{}:{transform:he?"translateY(".concat(Ce,"%)"):"translateX(".concat(Ce,"%)"),transitionDuration:"".concat(R,"ms")}),children:r.map(function(n,t){var r=t===W,i=t-W,o=p.default("idp-carousel__item",{"idp-carousel__item--active":r,"idp-carousel__item--prev":-1===i,"idp-carousel__item--next":1===i,"idp-carousel__item--exit":"book"===h&&-1===i});return e.jsx("div",{className:o,style:g({},me?_e(t):ge?{opacity:r?1:0,zIndex:r?1:0,transitionDuration:"".concat(R,"ms")}:{}),role:"group","aria-roledescription":"slide","aria-label":"".concat(t+1," of ").concat(fe),"aria-hidden":!r,children:n.render?n.render():e.jsxs("div",{className:"idp-carousel__item-inner",onClick:function(){return function(e,n){e.link&&window.open(e.link,"_blank"),null==I||I(e,n)}(n,t)},style:{cursor:n.link||I?"pointer":"default"},children:[e.jsx("img",{src:n.image,alt:"string"==typeof n.title?n.title:"",className:"idp-carousel__image",draggable:!1}),(n.title||n.description)&&e.jsxs("div",{className:p.default("idp-carousel__info","idp-carousel__info--".concat(n.infoPosition||"bottom")),children:[n.title&&e.jsx("div",{className:"idp-carousel__title",children:n.title}),n.description&&e.jsx("div",{className:"idp-carousel__description",children:n.description})]})]})},n.key)})}),E&&fe>1&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:p.default("idp-carousel__arrow","idp-carousel__arrow--prev"),onClick:ye,"aria-label":"Previous slide",type:"button",children:he?null!=z?z:e.jsx(D,{type:"arrow-up",size:20}):null!=H?H:e.jsx(D,{type:"chevron-left",size:20})}),e.jsx("button",{className:p.default("idp-carousel__arrow","idp-carousel__arrow--next"),onClick:be,"aria-label":"Next slide",type:"button",children:he?null!=V?V:e.jsx(D,{type:"arrow-down",size:20}):null!=P?P:e.jsx(D,{type:"chevron-right",size:20})})]}),y&&fe>1&&e.jsx("div",{className:Te,role:"tablist",children:r.map(function(n,t){var r=t===W,i=U&&c&&r;return e.jsx("button",{className:p.default("idp-carousel__indicator",{"idp-carousel__indicator--active":r,"idp-carousel__indicator--progress":i}),onClick:function(){return xe(t)},role:"tab","aria-selected":r,"aria-label":"Go to slide ".concat(t+1),type:"button",style:i?{"--progress-duration":"".concat(u,"ms")}:void 0,children:i&&e.jsx("span",{className:"idp-carousel__indicator-progress-bar"},"progress-".concat(W))},"".concat(n.key,"-").concat(i?"progress":"static"))})}),e.jsxs("div",{className:"idp-carousel__pagination",children:[e.jsx("span",{className:"idp-carousel__pagination-current",children:W+1}),e.jsx("span",{className:"idp-carousel__pagination-separator",children:"/"}),e.jsx("span",{className:"idp-carousel__pagination-total",children:fe})]}),"rain"===h&&e.jsx("div",{className:"idp-carousel__rain-overlay"}),"rain"===h&&ie.map(function(n){return e.jsx("span",{className:p.default("idp-carousel__rain-drop",{"idp-carousel__rain-drop--large":n.isLarge}),style:{left:"".concat(n.left,"%"),animationDelay:"".concat(n.delay,"s"),animationDuration:"".concat(n.duration,"s")}},n.id)}),"rain"===h&&se.map(function(n){return e.jsx("span",{className:"idp-carousel__ripple",style:{left:n.x-20,top:n.y-20,width:40,height:40}},n.id)})]})},pe=function(n){var t=n.icon,r=n.image,i=n.description,o=void 0===i?"暂无数据":i,a=n.children,s=n.size,l=void 0===s?"middle":s,c=n.style,d=n.className;return e.jsxs("div",{className:"idp-empty idp-empty--".concat(l," ").concat(d||""),style:c,children:[e.jsxs("div",{className:"idp-empty__icon-wrapper",children:[t&&e.jsx("div",{className:"idp-empty__icon",children:t}),r&&e.jsx("img",{src:r,alt:"empty",className:"idp-empty__image"}),!t&&!r&&e.jsx(D,{type:"file-text",size:"large"===l?64:"small"===l?32:48,color:"#d9d9d9"})]}),e.jsx("div",{className:"idp-empty__description",children:o}),a&&e.jsx("div",{className:"idp-empty__actions",children:a})]})},fe=function(t){var r,i=t.value,o=t.defaultValue,a=t.onChange,s=t.options,l=void 0===s?[]:s,c=t.placeholder,d=void 0===c?"请选择":c,u=t.disabled,p=void 0!==u&&u,f=t.size,h=void 0===f?"middle":f,m=t.style,v=t.className,x=void 0===v?"":v,y=t.allowClear,C=void 0===y||y,w=t.expandTrigger,_=void 0===w?"click":w,E=t.changeOnSelect,N=void 0!==E&&E,S=t.fieldNames,T=void 0===S?{}:S,O=t.width,L=t.dropdownWidth,A=t.dropdownHeight,k=t.dropdownStyle,M=void 0===k?{}:k,I=t.dropdownClassName,j=void 0===I?"":I,R=t.placement,H=void 0===R?"bottomLeft":R,P=t.checkbox,z=void 0!==P&&P,V=t.autoWidth,B=void 0!==V&&V,U=n.useState(!1),F=U[0],Y=U[1],$=n.useState([]),G=$[0],W=$[1],K=n.useState([]),Z=K[0],X=K[1],q=n.useRef(null),J=n.useRef(null),Q=T.label,ee=void 0===Q?"label":Q,ne=T.value,te=void 0===ne?"value":ne,re=T.children,ie=void 0===re?"children":re,oe=n.useCallback(function(e){return e[te]||e.value},[te]),ae=n.useCallback(function(e){return e[ee]||e.label},[ee]),se=n.useCallback(function(e){return e[ie]||e.children},[ie]),le=n.useCallback(function(e){for(var n=[],t=l,r=function(e){var r=t.find(function(n){return oe(n)===e});if(!r)return{value:n};n.push(r),t=se(r)||[]},i=0,o=e;i<o.length;i++){var a=r(o[i]);if("object"==typeof a)return a.value}return n},[l,oe,se]),ce=n.useCallback(function(e){for(var n=[],t=l,r=function(e){var r=t.find(function(n){return oe(n)===e});if(!r)return{value:n};n.push(r),t=se(r)||[]},i=0,o=e;i<o.length;i++){var a=r(o[i]);if("object"==typeof a)return a.value}return n},[l,oe,se]),de=n.useCallback(function(){var e=void 0!==i?i:o;return!e||Array.isArray(e)&&0===e.length?[]:z?Array.isArray(e)&&Array.isArray(e[0])?e:[e]:Array.isArray(e)&&!Array.isArray(e[0])?[e]:[]},[i,o,z]),ue=n.useState(de()),fe=ue[0],he=ue[1];n.useEffect(function(){var e=void 0!==i?i:o;if(!e)return he([]),void W([]);if(z){var n=void 0;n=Array.isArray(e)?0===e.length?[]:Array.isArray(e[0])?e:[e]:[],he(n);var t=n.map(function(e){return ce(e)});W(t.map(function(e){return e&&0!==e.length?e[e.length-1]:null}).filter(function(e){return null!==e}))}else{(n=Array.isArray(e)&&!Array.isArray(e[0])?e:e[0])&&n.length>0?he([n]):he([])}},[i,o,z,ce]);var ge=n.useCallback(function(e){var n=[],t=function(e,r){for(var i=0,o=e;i<o.length;i++){var a=o[i];if(oe(a)===oe(r))return n.push(ae(a)),!0;var s=se(a);if(s&&s.length>0&&t(s,r))return n.unshift(ae(a)),!0}return!1};return t(l,e),n},[l,oe,ae,se]),me=n.useCallback(function(){if(z){if(!G||0===G.length)return d;var e=G.filter(function(e){var n=se(e);return!n||0===n.length}).map(function(e){return ge(e).join("/")});return e.length>3?e.slice(0,3).join(", ")+" +".concat(e.length-3):e.join(", ")}return 0!==fe.length&&fe[0]&&0!==fe[0].length?le(fe[0]).map(function(e){return ae(e)}).join(" / "):d},[fe,G,z,le,ae,d,ge,se]),ve=n.useCallback(function(e){var n=[],t=function(e,r,i){for(var o=0,a=e;o<a.length;o++){var s=a[o],l=b(b([],i,!0),[oe(s)],!1);if(oe(s)===oe(r))return n.push.apply(n,l),!0;var c=se(s);if(c&&c.length>0&&t(c,r,l))return!0}return!1};return t(l,e,[]),n},[l,oe,se]),xe=n.useCallback(function(e,n){var t=ve(n),r=ve(e);if(r.length<=t.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==r[i])return!1;return!0},[ve]),be=n.useCallback(function(e){var n=[],t=function(e,r,i){for(var o=0,a=e;o<a.length;o++){var s=a[o];if(oe(s)===oe(r))return n.unshift(s),!0;var l=se(s);if(l&&l.length>0&&t(l,r,b(b([],i,!0),[s],!1)))return n.unshift(s),!0}return!1};return t(l,e,[]),n},[l,oe,se]),ye=n.useCallback(function(e,n,t){if(e.stopPropagation(),z){var r=b([],G,!0),o=r.findIndex(function(e){return oe(e)===oe(n)});if(o>-1){r.splice(o,1);var s=r.filter(function(e){return!xe(e,n)});r.splice.apply(r,b([0,r.length],s,!1))}else{be(n).forEach(function(e){-1===r.findIndex(function(n){return oe(n)===oe(e)})&&r.push(e)})}W(r);var l=r.map(function(e){return ve(e)});null==a||a(l,r),void 0===i&&he(l);var c=se(n);if(c&&c.length>0){var d=b(b([],Z.slice(0,t),!0),[oe(n)],!1);X(d)}else{d=Z.slice(0,t+1);X(d)}}},[G,z,oe,se,ve,be,xe,a,i,Z]),Ce=n.useCallback(function(e,n){if(z){var t=b([],G,!0),r=t.findIndex(function(n){return oe(n)===oe(e)});if(r>-1){t.splice(r,1);var o=t.filter(function(n){return!xe(n,e)});t.splice.apply(t,b([0,t.length],o,!1))}else{be(e).forEach(function(e){-1===t.findIndex(function(n){return oe(n)===oe(e)})&&t.push(e)})}W(t);var s=t.map(function(e){return ve(e)});if(null==a||a(s,t),void 0===i&&he(s),(c=se(e))&&c.length>0){var l=b(b([],Z.slice(0,n),!0),[oe(e)],!1);X(l)}else{l=Z.slice(0,n+1);X(l)}}else{var c;l=b(b([],Z.slice(0,n),!0),[oe(e)],!1);if(X(l),(c=se(e))&&c.length>0){if(N){var d=le(l);null==a||a(l,d),void 0===i&&he([l])}}else{var u=le(l);null==a||a(l,u),void 0===i&&he([l]),Y(!1),X([])}}},[Z,G,z,oe,ae,se,N,le,ve,be,xe,a,i]),we=n.useCallback(function(e,n){if("hover"===_){var t=b(b([],Z.slice(0,n),!0),[oe(e)],!1);X(t)}},[Z,_,oe]),_e=n.useCallback(function(e,n,t){if(e.stopPropagation(),z){var r=se(n);if(r&&r.length>0){var i=b(b([],Z.slice(0,t),!0),[oe(n)],!1);X(i)}}else Ce(n,t)},[z,Z,oe,se,Ce]),Ee=n.useCallback(function(e){e.stopPropagation(),z?(null==a||a([],[]),W([]),void 0===i&&he([])):(null==a||a([],[]),void 0===i&&he([])),X([])},[a,i,z]),Ne=n.useCallback(function(e,n){if(e.stopPropagation(),z){var t=b([],G,!0),r=oe(n),o=t.findIndex(function(e){return oe(e)===r});if(o>-1){t.splice(o,1);var s=t.filter(function(e){return!xe(e,n)});t.splice.apply(t,b([0,t.length],s,!1));for(var l=be(n),c=function(e){var n=l[e],r=oe(n);if(!t.some(function(e){return oe(e)!==r&&xe(e,n)})){var i=t.findIndex(function(e){return oe(e)===r});i>-1&&t.splice(i,1)}},d=l.length-2;d>=0;d--)c(d);W(t);var u=t.map(function(e){return ve(e)});null==a||a(u,t),void 0===i&&he(u)}}},[G,z,oe,ve,be,xe,a,i]),Se=n.useCallback(function(){p||Y(!F)},[F,p]);n.useEffect(function(){var e=function(e){q.current&&!q.current.contains(e.target)&&(Y(!1),X([]))};return F&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[F]);var Te=n.useCallback(function(e){if(0===e)return l;for(var n=Z.slice(0,e),t=l,r=function(e){var n=t.find(function(n){return oe(n)===e});if(!n)return{value:[]};t=se(n)||[]},i=0,o=n;i<o.length;i++){var a=r(o[i]);if("object"==typeof a)return a.value}return t},[l,Z,oe,se]);n.useEffect(function(){z||(F&&fe.length>0&&fe[0]?X(fe[0]):F||X([]))},[F,fe,z]);var Oe=n.useCallback(function(e){return!!z&&G.some(function(n){return oe(n)===oe(e)})},[G,z,oe]),Le=n.useCallback(function(e,n){return!z&&(!(n>=fe.length||!fe[0])&&fe[0][n]===oe(e))},[fe,z,oe]),Ae=n.useCallback(function(e,n){return!(n>=Z.length)&&Z[n]===oe(e)},[Z,oe]),ke=n.useCallback(function(){if(0===Z.length)return 1;for(var e=Z.length,n=l,t=function(e){var t=n.find(function(n){return oe(n)===e});if(!t)return"break";n=se(t)||[]},r=0,i=Z;r<i.length;r++){if("break"===t(i[r]))break}return n&&n.length>0&&e++,e},[Z,l,oe,se]),Me=n.useCallback(function(){var e=g({},m);return O&&(e.width="number"==typeof O?"".concat(O,"px"):O),B||O?B&&!O?e.minWidth="180px":!B&&O&&(e.maxWidth="number"==typeof O?"".concat(O,"px"):O):(e.minWidth="180px",e.maxWidth="100%"),e},[O,m,B]),Ie=n.useCallback(function(){var e=g({},M);switch(H){case"bottomLeft":e.top="100%",e.left="0",e.marginTop="4px";break;case"bottomRight":e.top="100%",e.right="0",e.marginTop="4px";break;case"topLeft":e.bottom="100%",e.left="0",e.marginBottom="4px";break;case"topRight":e.bottom="100%",e.right="0",e.marginBottom="4px"}return L&&(e.width="number"==typeof L?"".concat(L,"px"):L),A&&(e.maxHeight="number"==typeof A?"".concat(A,"px"):A),e},[L,A,M,H]),je=z?G.filter(function(e){var n=se(e);return!n||0===n.length}).length>0:fe.length>0&&(null===(r=fe[0])||void 0===r?void 0:r.length)>0;return e.jsxs("div",{ref:q,className:"cascader cascader-".concat(h," ").concat(x," ").concat(p?"cascader-disabled":""," ").concat(F?"cascader-open":""," ").concat(je?"cascader-has-value":""),style:Me(),children:[e.jsxs("div",{className:"cascader-trigger",onClick:Se,children:[e.jsx("span",{className:"cascader-selection-placeholder ".concat(je?"cascader-selection-hidden":""),children:d}),z?e.jsx("div",{className:"cascader-selection-value ".concat(je?"":"cascader-selection-hidden"),children:G.filter(function(e){var n=se(e);return!n||0===n.length}).map(function(n){var t=ge(n);return e.jsxs("span",{className:"cascader-tag",children:[e.jsx("span",{className:"cascader-tag-content",children:t.join("/")}),e.jsx("span",{className:"cascader-tag-close",onClick:function(e){return!p&&Ne(e,n)},children:e.jsx(D,{type:"close",size:10})})]},oe(n))})}):e.jsx("span",{className:"cascader-selection-value ".concat(je?"":"cascader-selection-hidden"),children:me()}),e.jsx("span",{className:"cascader-arrow",children:e.jsx(D,{type:"arrowDown",size:12})}),C&&je&&!p&&e.jsx("span",{className:"cascader-clear",onClick:Ee,children:e.jsx(D,{type:"close",size:12})})]}),F&&e.jsx("div",{className:"cascader-dropdown cascader-dropdown-".concat(H," ").concat(j),ref:J,style:Ie(),children:e.jsx("div",{className:"cascader-menus",style:{width:L?void 0:"".concat(180*ke(),"px")},children:Array.from({length:ke()}).map(function(n,t){return function(n){var t=Te(n);return t&&0!==t.length?e.jsx("ul",{className:"cascader-menu cascader-menu-".concat(n," ").concat(z?"cascader-menu-checkbox":""),children:t.map(function(t,r){var i=z?Oe(t):Le(t,n),o=Ae(t,n),a=se(t)&&se(t).length>0,s=t.disabled;return e.jsxs("li",{className:"cascader-menu-item ".concat(i?"cascader-menu-item-selected":""," ").concat(o?"cascader-menu-item-active":""," ").concat(s?"cascader-menu-item-disabled":""),onClick:function(){return!s&&(z?void 0:Ce(t,n))},onMouseEnter:function(){return!s&&we(t,n)},children:[z&&e.jsx("span",{className:"cascader-menu-item-checkbox",onClick:function(e){return!s&&ye(e,t,n)},children:e.jsx("input",{type:"checkbox",checked:i,readOnly:!0})}),e.jsx("span",{className:"cascader-menu-item-content",onClick:function(e){return!s&&_e(e,t,n)},children:ae(t)}),a&&e.jsx("span",{className:"cascader-menu-item-expand-icon",children:e.jsx(D,{type:"arrowRight",size:12,color:"#bfbfbf"})})]},"".concat(oe(t),"-").concat(r))})}):e.jsx("div",{className:"cascader-menu cascader-menu-empty",children:e.jsx(pe,{size:"small",description:"暂无数据"})})}(t)})})})]})},he=function(e,n){return"var(".concat(e,", ").concat(n,")")},ge=f.default.div(P||(P=y(["\n position: relative;\n display: inline-block;\n width: ",";\n min-width: 180px;\n font-size: 14px;\n color: ",";\n box-sizing: border-box;\n\n &.treeselect-wrapper {\n /* 外部可通过 .treeselect-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: relative;\n display: inline-block;\n width: ",";\n min-width: 180px;\n font-size: 14px;\n color: ",";\n box-sizing: border-box;\n\n &.treeselect-wrapper {\n /* 外部可通过 .treeselect-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){return e.$width||"100%"},he("--idp-text-color","rgba(0, 0, 0, 0.85)"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),me=f.default.div(z||(z=y(["\n position: relative;\n display: flex;\n align-items: center;\n min-height: 32px;\n padding: 4px 28px 4px 11px;\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n cursor: pointer;\n transition: all "," ",";\n box-sizing: border-box;\n\n &.treeselect-selection {\n /* 外部可通过 .treeselect-selection 选择器覆盖样式 */\n }\n\n &:hover {\n border-color: ",";\n }\n\n ","\n\n ","\n\n ","\n\n ","\n"],["\n position: relative;\n display: flex;\n align-items: center;\n min-height: 32px;\n padding: 4px 28px 4px 11px;\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n cursor: pointer;\n transition: all "," ",";\n box-sizing: border-box;\n\n &.treeselect-selection {\n /* 外部可通过 .treeselect-selection 选择器覆盖样式 */\n }\n\n &:hover {\n border-color: ",";\n }\n\n ","\n\n ","\n\n ","\n\n ","\n"])),he("--idp-bg-color-white","#fff"),he("--idp-border-color-extra-light","#d9d9d9"),he("--idp-border-radius-sm","4px"),he("--idp-transition-duration","0.2s"),he("--idp-transition-timing-function","ease-in-out"),he("--idp-primary-hover-color","#40a9ff"),function(e){return e.$open&&"\n border-color: ".concat(he("--idp-primary-color","#1890ff"),";\n box-shadow: ").concat(he("--idp-input-box-shadow-focus","0 0 0 2px rgba(51, 154, 240, 0.2)"),";\n ")},function(e){return e.$disabled&&"\n background-color: ".concat(he("--idp-input-disabled-bg","#f5f5f5"),";\n border-color: ").concat(he("--idp-border-color-extra-light","#d9d9d9"),";\n cursor: not-allowed;\n ")},function(e){var n=e.$size;return"large"===n?"\n min-height: 40px;\n padding: 6px 32px 6px 15px;\n font-size: 16px;\n ":"small"===n?"\n min-height: 24px;\n padding: 2px 24px 2px 7px;\n font-size: 14px;\n ":""},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ve=f.default.div(V||(V=y(["\n flex: 1;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n overflow: hidden;\n\n &.treeselect-selection__rendered {\n /* 外部可通过 .treeselect-selection__rendered 选择器覆盖样式 */\n }\n\n ","\n"],["\n flex: 1;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n overflow: hidden;\n\n &.treeselect-selection__rendered {\n /* 外部可通过 .treeselect-selection__rendered 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){return e.$isPlaceholder&&"\n color: ".concat(he("--idp-input-placeholder-color","#bfbfbf"),";\n ")}),xe=f.default.span(B||(B=y(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-selection__item {\n /* 外部可通过 .treeselect-selection__item 选择器覆盖样式 */\n }\n"],["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-selection__item {\n /* 外部可通过 .treeselect-selection__item 选择器覆盖样式 */\n }\n"]))),be=f.default.span(U||(U=y(["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n padding: 2px 8px;\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-size: 12px;\n line-height: 1.5;\n\n &.treeselect-selection__tag {\n /* 外部可通过 .treeselect-selection__tag 选择器覆盖样式 */\n }\n\n &.treeselect-selection__tag--more {\n background-color: transparent;\n border-color: transparent;\n color: ",";\n }\n\n ","\n\n ","\n"],["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n padding: 2px 8px;\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-size: 12px;\n line-height: 1.5;\n\n &.treeselect-selection__tag {\n /* 外部可通过 .treeselect-selection__tag 选择器覆盖样式 */\n }\n\n &.treeselect-selection__tag--more {\n background-color: transparent;\n border-color: transparent;\n color: ",";\n }\n\n ","\n\n ","\n"])),he("--idp-bg-color-light","#f5f5f5"),he("--idp-border-color-light","#f0f0f0"),he("--idp-border-radius-sm","4px"),he("--idp-text-color-secondary","rgba(0, 0, 0, 0.65)"),function(e){var n=e.$size;return"large"===n?"\n font-size: 14px;\n padding: 4px 10px;\n ":"small"===n?"\n font-size: 12px;\n padding: 1px 6px;\n ":""},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ye=f.default.span(F||(F=y(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-selection__tag-content {\n /* 外部可通过 .treeselect-selection__tag-content 选择器覆盖样式 */\n }\n"],["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-selection__tag-content {\n /* 外部可通过 .treeselect-selection__tag-content 选择器覆盖样式 */\n }\n"]))),Ce=f.default.span(Y||(Y=y(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n padding: 2px;\n color: ",";\n cursor: pointer;\n transition: color ",";\n\n &.treeselect-selection__tag-close {\n /* 外部可通过 .treeselect-selection__tag-close 选择器覆盖样式 */\n }\n\n &:hover {\n color: ",";\n }\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n padding: 2px;\n color: ",";\n cursor: pointer;\n transition: color ",";\n\n &.treeselect-selection__tag-close {\n /* 外部可通过 .treeselect-selection__tag-close 选择器覆盖样式 */\n }\n\n &:hover {\n color: ",";\n }\n"])),he("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),he("--idp-transition-duration","0.2s"),he("--idp-text-color","rgba(0, 0, 0, 0.85)")),we=f.default.div($||($=y(["\n flex: 1;\n min-width: 30px;\n\n &.treeselect-selection__search {\n /* 外部可通过 .treeselect-selection__search 选择器覆盖样式 */\n }\n"],["\n flex: 1;\n min-width: 30px;\n\n &.treeselect-selection__search {\n /* 外部可通过 .treeselect-selection__search 选择器覆盖样式 */\n }\n"]))),_e=f.default.input(G||(G=y(["\n width: 100%;\n padding: 0;\n border: none;\n outline: none;\n background: transparent;\n font-size: 14px;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n\n &.treeselect-selection__search-input,\n &.treeselect-dropdown__search-input {\n /* 外部可通过这些选择器覆盖样式 */\n }\n"],["\n width: 100%;\n padding: 0;\n border: none;\n outline: none;\n background: transparent;\n font-size: 14px;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n\n &.treeselect-selection__search-input,\n &.treeselect-dropdown__search-input {\n /* 外部可通过这些选择器覆盖样式 */\n }\n"])),he("--idp-text-color","rgba(0, 0, 0, 0.85)"),he("--idp-input-placeholder-color","#bfbfbf")),Ee=f.default.span(W||(W=y(["\n position: absolute;\n right: 28px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n color: ",";\n cursor: pointer;\n transition: color ",";\n z-index: 1;\n\n &.treeselect-selection__clear {\n /* 外部可通过 .treeselect-selection__clear 选择器覆盖样式 */\n }\n\n &:hover {\n color: ",";\n }\n\n ","\n"],["\n position: absolute;\n right: 28px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n color: ",";\n cursor: pointer;\n transition: color ",";\n z-index: 1;\n\n &.treeselect-selection__clear {\n /* 外部可通过 .treeselect-selection__clear 选择器覆盖样式 */\n }\n\n &:hover {\n color: ",";\n }\n\n ","\n"])),he("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),he("--idp-transition-duration","0.2s"),he("--idp-text-color","rgba(0, 0, 0, 0.85)"),function(e){var n=e.$size;return"large"===n?"right: 32px;":"small"===n?"right: 24px;":""}),Ne=f.default.span(K||(K=y(["\n position: absolute;\n right: 11px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n transition: transform ",";\n pointer-events: none;\n\n &.treeselect-selection__arrow {\n /* 外部可通过 .treeselect-selection__arrow 选择器覆盖样式 */\n }\n\n ","\n\n ","\n"],["\n position: absolute;\n right: 11px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n transition: transform ",";\n pointer-events: none;\n\n &.treeselect-selection__arrow {\n /* 外部可通过 .treeselect-selection__arrow 选择器覆盖样式 */\n }\n\n ","\n\n ","\n"])),he("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),he("--idp-transition-duration","0.2s"),function(e){return e.$open&&"\n transform: translateY(-50%) rotate(180deg);\n "},function(e){var n=e.$size;return"large"===n?"right: 15px;":"small"===n?"right: 7px;":""}),Se=f.default.div(Z||(Z=y(["\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1050;\n margin-top: 4px;\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n overflow: hidden;\n width: ",";\n max-height: ",";\n\n &.treeselect-dropdown {\n /* 外部可通过 .treeselect-dropdown 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1050;\n margin-top: 4px;\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n overflow: hidden;\n width: ",";\n max-height: ",";\n\n &.treeselect-dropdown {\n /* 外部可通过 .treeselect-dropdown 选择器覆盖样式 */\n }\n\n ","\n"])),he("--idp-bg-color-white","#fff"),he("--idp-border-radius-sm","4px"),he("--idp-shadow-lg","0 8px 24px rgba(0, 0, 0, 0.15)"),function(e){return e.$width||"100%"},function(e){return e.$height||"300px"},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Te=f.default.div(X||(X=y(["\n padding: 8px 12px;\n border-bottom: 1px solid ",";\n\n &.treeselect-dropdown__search {\n /* 外部可通过 .treeselect-dropdown__search 选择器覆盖样式 */\n }\n"],["\n padding: 8px 12px;\n border-bottom: 1px solid ",";\n\n &.treeselect-dropdown__search {\n /* 外部可通过 .treeselect-dropdown__search 选择器覆盖样式 */\n }\n"])),he("--idp-border-color-light","#f0f0f0")),Oe=f.default.input(q||(q=y(["\n width: 100%;\n padding: 4px 8px;\n background-color: ",";\n border: none;\n border-radius: ",";\n outline: none;\n font-size: 14px;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n"],["\n width: 100%;\n padding: 4px 8px;\n background-color: ",";\n border: none;\n border-radius: ",";\n outline: none;\n font-size: 14px;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n"])),he("--idp-bg-color-light","#f5f5f5"),he("--idp-border-radius-sm","4px"),he("--idp-text-color","rgba(0, 0, 0, 0.85)"),he("--idp-input-placeholder-color","#bfbfbf")),Le=f.default.div(J||(J=y(["\n max-height: 300px;\n overflow-y: auto;\n padding: 4px 0;\n\n &.treeselect-dropdown__content {\n /* 外部可通过 .treeselect-dropdown__content 选择器覆盖样式 */\n }\n\n /* 滚动条样式 */\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.15);\n border-radius: 3px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.25);\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n"],["\n max-height: 300px;\n overflow-y: auto;\n padding: 4px 0;\n\n &.treeselect-dropdown__content {\n /* 外部可通过 .treeselect-dropdown__content 选择器覆盖样式 */\n }\n\n /* 滚动条样式 */\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.15);\n border-radius: 3px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.25);\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n"]))),Ae=f.default.div(Q||(Q=y(["\n padding: 32px 0;\n\n &.treeselect-dropdown__empty {\n /* 外部可通过 .treeselect-dropdown__empty 选择器覆盖样式 */\n }\n"],["\n padding: 32px 0;\n\n &.treeselect-dropdown__empty {\n /* 外部可通过 .treeselect-dropdown__empty 选择器覆盖样式 */\n }\n"]))),ke=f.default.div(ee||(ee=y(["\n display: flex;\n flex-direction: column;\n\n &.treeselect-tree-node-wrapper {\n /* 外部可通过 .treeselect-tree-node-wrapper 选择器覆盖样式 */\n }\n"],["\n display: flex;\n flex-direction: column;\n\n &.treeselect-tree-node-wrapper {\n /* 外部可通过 .treeselect-tree-node-wrapper 选择器覆盖样式 */\n }\n"]))),Me=f.default.div(ne||(ne=y(["\n display: flex;\n align-items: center;\n padding: 8px 12px;\n padding-left: ",";\n cursor: pointer;\n transition: background-color ",";\n user-select: none;\n\n &.treeselect-tree-node {\n /* 外部可通过 .treeselect-tree-node 选择器覆盖样式 */\n }\n\n &:hover {\n background-color: ",";\n }\n\n ","\n\n ","\n\n ","\n"],["\n display: flex;\n align-items: center;\n padding: 8px 12px;\n padding-left: ",";\n cursor: pointer;\n transition: background-color ",";\n user-select: none;\n\n &.treeselect-tree-node {\n /* 外部可通过 .treeselect-tree-node 选择器覆盖样式 */\n }\n\n &:hover {\n background-color: ",";\n }\n\n ","\n\n ","\n\n ","\n"])),function(e){return"".concat(20*e.$level+12,"px")},he("--idp-transition-duration","0.2s"),he("--idp-bg-color-light","#f5f5f5"),function(e){return e.$selected&&"\n background-color: #e6f7ff;\n\n &:hover {\n background-color: #bae7ff;\n }\n "},function(e){return e.$disabled&&"\n color: ".concat(he("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),";\n cursor: not-allowed;\n\n &:hover {\n background-color: transparent;\n }\n ")},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Ie=f.default.span(te||(te=y(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n margin-right: 4px;\n cursor: pointer;\n transition: transform ",";\n\n &.treeselect-tree-node__expand-icon {\n /* 外部可通过 .treeselect-tree-node__expand-icon 选择器覆盖样式 */\n }\n\n ","\n\n ","\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n margin-right: 4px;\n cursor: pointer;\n transition: transform ",";\n\n &.treeselect-tree-node__expand-icon {\n /* 外部可通过 .treeselect-tree-node__expand-icon 选择器覆盖样式 */\n }\n\n ","\n\n ","\n"])),he("--idp-transition-duration","0.2s"),function(e){return e.$expanded&&"\n transform: rotate(90deg);\n "},function(e){return!e.$hasChildren&&"\n visibility: hidden;\n cursor: default;\n "}),je=f.default.span(re||(re=y(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-right: 8px;\n\n &.treeselect-tree-node__checkbox {\n /* 外部可通过 .treeselect-tree-node__checkbox 选择器覆盖样式 */\n }\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-right: 8px;\n\n &.treeselect-tree-node__checkbox {\n /* 外部可通过 .treeselect-tree-node__checkbox 选择器覆盖样式 */\n }\n"]))),Re=f.default.span(ie||(ie=y(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n border: 1px solid ",";\n border-radius: 2px;\n background-color: ",";\n transition: all ",";\n\n &.treeselect-tree-node__checkbox-inner {\n /* 外部可通过 .treeselect-tree-node__checkbox-inner 选择器覆盖样式 */\n }\n\n .treeselect-tree-node:hover & {\n border-color: ",";\n }\n\n ","\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n border: 1px solid ",";\n border-radius: 2px;\n background-color: ",";\n transition: all ",";\n\n &.treeselect-tree-node__checkbox-inner {\n /* 外部可通过 .treeselect-tree-node__checkbox-inner 选择器覆盖样式 */\n }\n\n .treeselect-tree-node:hover & {\n border-color: ",";\n }\n\n ","\n"])),he("--idp-border-color-extra-light","#d9d9d9"),he("--idp-bg-color-white","#fff"),he("--idp-transition-duration","0.2s"),he("--idp-primary-color","#1890ff"),function(e){return e.$checked&&"\n background-color: ".concat(he("--idp-primary-color","#1890ff"),";\n border-color: ").concat(he("--idp-primary-color","#1890ff"),";\n ")}),De=f.default.span(oe||(oe=y(["\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-tree-node__title {\n /* 外部可通过 .treeselect-tree-node__title 选择器覆盖样式 */\n }\n"],["\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-tree-node__title {\n /* 外部可通过 .treeselect-tree-node__title 选择器覆盖样式 */\n }\n"]))),He=f.default.div(ae||(ae=y(["\n display: flex;\n flex-direction: column;\n\n &.treeselect-tree-node-children {\n /* 外部可通过 .treeselect-tree-node-children 选择器覆盖样式 */\n }\n"],["\n display: flex;\n flex-direction: column;\n\n &.treeselect-tree-node-children {\n /* 外部可通过 .treeselect-tree-node-children 选择器覆盖样式 */\n }\n"]))),Pe=function(t){var r=t.treeData,i=void 0===r?[]:r,o=t.value,a=t.defaultValue,s=t.onChange,l=t.placeholder,c=void 0===l?"请选择":l,d=t.disabled,u=void 0!==d&&d,f=t.multiple,h=void 0!==f&&f,g=t.maxTagCount,m=t.allowClear,v=void 0===m||m,x=t.size,y=void 0===x?"middle":x,C=t.styles,w=t.className,_=t.dropdownWidth,E=t.dropdownHeight,N=void 0===E?300:E,S=t.showSearch,T=void 0!==S&&S,O=t.filterOption,L=t.autoClearSearchValue,A=void 0===L||L,k=t.fieldNames,M=void 0===k?{}:k,I=t.width,j=n.useState(!1),R=j[0],H=j[1],P=n.useState(function(){return a?Array.isArray(a)?a:[a]:[]}),z=P[0],V=P[1],B=n.useState(""),U=B[0],F=B[1],Y=n.useRef(null),$=n.useRef(null),G=n.useState(new Set),W=G[0],K=G[1],Z=M.title,X=void 0===Z?"title":Z,q=M.value,J=void 0===q?"value":q,Q=M.children,ee=void 0===Q?"children":Q,ne=n.useCallback(function(e){return e[J]||e.value},[J]),te=n.useCallback(function(e){return e[X]||e.title},[X]),re=n.useCallback(function(e){return e[ee]},[ee]),ie=n.useMemo(function(){return void 0!==o?h?Array.isArray(o)?o:[o]:null!==o&&""!==o?[o]:[]:z},[o,z,h]),oe=n.useCallback(function(e,n){void 0===n&&(n=i);for(var t=0,r=n;t<r.length;t++){var o=r[t];if(ne(o)===e)return o;var a=re(o);if(a&&a.length>0){var s=oe(e,a);if(s)return s}}return null},[i,ne,re]),ae=n.useMemo(function(){return ie.map(function(e){return oe(e)}).filter(Boolean)},[ie,oe]);n.useEffect(function(){var e=function(e){Y.current&&!Y.current.contains(e.target)&&(H(!1),F(""))};return R&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[R]),n.useEffect(function(){R&&T&&$.current&&setTimeout(function(){var e;return null===(e=$.current)||void 0===e?void 0:e.focus()},0)},[R,T]);var se=n.useCallback(function(e){var n=ne(e);if(h){var t=void 0,r=(t=ie.includes(n)?ie.filter(function(e){return e!==n}):b(b([],ie,!0),[n],!1)).map(function(e){return oe(e)}).filter(Boolean);void 0===o&&V(t),null==s||s(t,r)}else void 0===o&&V([n]),null==s||s(n,[e]),H(!1);A&&F("")},[ie,h,ne,oe,o,s,A]),le=n.useCallback(function(e){e.stopPropagation(),void 0===o&&V([]),null==s||s(h?[]:void 0,[])},[o,s,h]),ce=n.useCallback(function(e,n){e.stopPropagation();var t=ie.filter(function(e){return e!==n}),r=t.map(function(e){return oe(e)}).filter(Boolean);void 0===o&&V(t),null==s||s(t,r)},[ie,oe,o,s]),de=n.useCallback(function(e,n){e.stopPropagation();var t=ne(n),r=new Set(W);r.has(t)?r.delete(t):r.add(t),K(r)},[W,ne]),ue=n.useCallback(function(e){if(!U)return!0;var n=String(te(e));return O?O(U,e):n.toLowerCase().includes(U.toLowerCase())},[U,te,O]),fe=n.useCallback(function(e){var n=re(e);return!(!n||0===n.length)&&n.some(function(e){return ue(e)||fe(e)})},[re,ue]),he=n.useCallback(function(n,t){void 0===t&&(t=0);var r=ne(n),i=te(n),o=re(n),a=o&&o.length>0,s=ie.includes(r),l=W.has(r),c=!!n.disabled,d=ue(n),u=fe(n);return d||u?e.jsxs(ke,{className:"treeselect-tree-node-wrapper",children:[e.jsxs(Me,{className:p.default("treeselect-tree-node",{"treeselect-tree-node--selected":s,"treeselect-tree-node--disabled":c,"treeselect-tree-node--leaf":!a}),$selected:s,$disabled:c,$level:t,$styles:null==C?void 0:C.treeNode,onClick:function(){return!c&&se(n)},children:[e.jsx(Ie,{className:p.default("treeselect-tree-node__expand-icon",{"treeselect-tree-node__expand-icon--expanded":l,"treeselect-tree-node__expand-icon--no-children":!a}),$expanded:l,$hasChildren:!!a,onClick:function(e){return a&&de(e,n)},children:a&&e.jsx(D,{type:"arrowRight",size:12,color:"#bfbfbf"})}),h&&e.jsx(je,{className:"treeselect-tree-node__checkbox",children:e.jsx(Re,{className:p.default("treeselect-tree-node__checkbox-inner",{"treeselect-tree-node__checkbox-inner--checked":s}),$checked:s,children:s&&e.jsx(D,{type:"check",size:10,color:"#fff"})})}),e.jsx(De,{className:"treeselect-tree-node__title",children:i})]}),a&&l&&e.jsx(He,{className:"treeselect-tree-node-children",children:o.map(function(e){return he(e,t+1)})})]},String(r)):null},[ie,W,ne,te,re,h,ue,fe,se,de,null==C?void 0:C.treeNode]),Pe=n.useCallback(function(){if(!h){var n=ae[0];return n?e.jsx(xe,{className:"treeselect-selection__item",children:te(n)}):c}if(0===ae.length)return c;var t=ae,r=0;return void 0!==g&&g>0&&ae.length>g&&(t=ae.slice(0,g),r=ae.length-g),e.jsxs(e.Fragment,{children:[t.map(function(n){return e.jsxs(be,{className:p.default("treeselect-selection__tag",{"treeselect-selection__tag--more":!1}),$size:y,$styles:null==C?void 0:C.tag,children:[e.jsx(ye,{className:"treeselect-selection__tag-content",children:te(n)}),e.jsx(Ce,{className:"treeselect-selection__tag-close",onClick:function(e){return ce(e,ne(n))},children:e.jsx(D,{type:"close",size:10})})]},ne(n))}),r>0&&e.jsxs(be,{className:"treeselect-selection__tag treeselect-selection__tag--more",$size:y,$styles:null==C?void 0:C.tag,children:["+",r]})]})},[h,ae,g,ne,te,ce,c,y,null==C?void 0:C.tag]),ze=p.default("treeselect-wrapper",w);return e.jsxs(ge,{ref:Y,className:ze,$width:I,$styles:null==C?void 0:C.wrapper,children:[e.jsxs(me,{className:p.default("treeselect-selection",{"treeselect-selection--open":R,"treeselect-selection--disabled":u}),$open:R,$disabled:u,$size:y,$styles:null==C?void 0:C.selection,onClick:function(){u||(H(!R),R||F(""))},children:[T&&R?e.jsx(we,{className:"treeselect-selection__search",children:e.jsx(_e,{ref:$,type:"text",className:"treeselect-selection__search-input",value:U,onChange:function(e){return F(e.target.value)},placeholder:0===ae.length?c:"",onClick:function(e){return e.stopPropagation()}})}):e.jsx(ve,{className:p.default("treeselect-selection__rendered",{"treeselect-selection__rendered--placeholder":0===ae.length}),$isPlaceholder:0===ae.length,children:Pe()}),v&&!u&&ae.length>0&&e.jsx(Ee,{className:"treeselect-selection__clear",$size:y,onClick:le,children:e.jsx(D,{type:"close",size:12})}),e.jsx(Ne,{className:p.default("treeselect-selection__arrow",{"treeselect-selection__arrow--open":R}),$open:R,$size:y,children:e.jsx(D,{type:"arrowDown",size:12})})]}),R&&e.jsxs(Se,{className:"treeselect-dropdown",$width:_,$height:N,$styles:null==C?void 0:C.dropdown,children:[T&&!R&&e.jsx(Te,{className:"treeselect-dropdown__search",children:e.jsx(Oe,{ref:$,type:"text",className:"treeselect-dropdown__search-input",value:U,onChange:function(e){return F(e.target.value)},placeholder:"搜索"})}),e.jsx(Le,{className:"treeselect-dropdown__content",children:i.length>0?i.map(function(e){return he(e)}):e.jsx(Ae,{className:"treeselect-dropdown__empty",children:e.jsx(pe,{size:"small",description:"暂无数据"})})})]})]})},ze=function(t){var r=t.color,o=t.onChange,a=t.onColorChange,s=t.disabled,l=void 0!==s&&s,c=t.className,d=t.style,u=t.alpha,f=void 0!==u&&u,h=t.presetColors,g=void 0===h?[]:h,m=t.gradient,v=void 0!==m&&m,x=t.children,y=n.useState(!1),C=y[0],w=y[1],_=n.useState(r),E=_[0],N=_[1],S=n.useState([r,"#ffffff"]),T=S[0],O=S[1],L=n.useState(90),A=L[0],k=L[1],M=n.useRef(null),I=n.useRef(null),j=p.default("idp-color-picker",{"idp-color-picker--disabled":l,"idp-color-picker--open":C},c),R=function(e,n){if(v&&void 0!==n){var t=b([],T,!0);t[n]=e.hex,O(t),D()}else N(e.hex),null==a||a(e.hex)},D=function(){var e="linear-gradient(".concat(A,"deg, ").concat(T[0],", ").concat(T[1],")");N(e),null==a||a(e)},H=function(e){e.stopPropagation(),l||w(!C)};return n.useEffect(function(){var e=function(e){var n=M.current&&M.current.contains(e.target),t=I.current&&I.current.contains(e.target);n||t||w(!1)};return C&&document.addEventListener("click",e),function(){document.removeEventListener("click",e)}},[C]),n.useEffect(function(){if(v&&r&&r.startsWith("linear-gradient")){var e=r.match(/linear-gradient\((\d+)deg,\s*(#[0-9a-fA-F]+),\s*(#[0-9a-fA-F]+)\)/);e&&(k(parseInt(e[1])),O([e[2],e[3]]))}},[r,v]),e.jsxs("div",{className:j,style:d,children:[x?e.jsx("div",{ref:I,className:"idp-color-picker-trigger-container",onClick:H,children:x}):e.jsx("div",{ref:I,className:"idp-color-picker-default-trigger",style:{background:r},onClick:H}),C&&e.jsxs("div",{className:"idp-color-picker-popup",children:[e.jsxs("div",{className:"idp-color-picker-content",ref:M,children:[v?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"idp-color-picker-gradient",children:[e.jsxs("div",{className:"idp-color-picker-gradient-item",children:[e.jsx("div",{className:"idp-color-picker-gradient-label",children:"起始颜色"}),e.jsx(i.SketchPicker,{color:T[0],onChange:function(e){R(e,0)},disableAlpha:!f})]}),e.jsxs("div",{className:"idp-color-picker-gradient-item",children:[e.jsx("div",{className:"idp-color-picker-gradient-label",children:"结束颜色"}),e.jsx(i.SketchPicker,{color:T[1],onChange:function(e){R(e,1)},disableAlpha:!f})]})]}),e.jsxs("div",{className:"idp-color-picker-gradient-direction",children:[e.jsxs("div",{className:"idp-color-picker-gradient-direction-label",children:["渐变方向: ",A,"°"]}),e.jsx("input",{type:"range",min:"0",max:"360",value:A,onChange:function(e){k(parseInt(e.target.value)),D()},className:"idp-color-picker-gradient-range"})]})]}):e.jsx(i.SketchPicker,{color:E,onChange:function(e){R(e)},disableAlpha:!f}),g.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"idp-color-picker-presets-label",children:"预设颜色"}),e.jsx("div",{className:"idp-color-picker-presets",children:g.map(function(n,t){return e.jsx("div",{className:"idp-color-picker-preset",style:{backgroundColor:n},onClick:function(){return R({hex:n})},title:n},t)})})]}),e.jsxs("div",{className:"idp-color-picker-actions",children:[e.jsx("div",{className:"idp-color-picker-preview-label",children:"参考值:"}),e.jsx("div",{className:"idp-color-picker-preview ".concat(v?"idp-color-picker-gradient-preview":"idp-color-picker-solid-preview"),style:{background:E}}),e.jsxs("div",{className:"idp-color-picker-button-group",children:[e.jsx(se,{size:"small",onClick:function(){N(r),v&&(O([r,"#ffffff"]),k(90)),w(!1)},children:"取消"}),e.jsx(se,{variant:"primary",size:"small",onClick:function(){o(E),w(!1)},children:"确认"})]})]})]}),e.jsx("div",{className:"idp-color-picker-overlay",onClick:function(){return w(!1)}})]})]})},Ve=function(e){return v(void 0,void 0,void 0,function(){var n;return x(this,function(t){switch(t.label){case 0:return navigator.clipboard&&window.isSecureContext?[4,navigator.clipboard.writeText(e)]:[3,2];case 1:return t.sent(),[3,3];case 2:(n=document.createElement("textarea")).style.position="fixed",n.style.top=n.style.left="-100vh",n.style.opacity="0",n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),t.label=3;case 3:return[2]}})})};function Be(){var e=this;return u.default.useCallback(function(n){return v(e,void 0,void 0,function(){return x(this,function(e){switch(e.label){case 0:return[4,Ve(n)];case 1:return[2,e.sent()]}})})},[])}var Ue=function(n){var t=n.url,r=n.onCopyStatusChange,i=n.children,o=Be();return e.jsx("span",{style:{margin:"0px",padding:"0px"},onClick:function(){return v(void 0,void 0,void 0,function(){return x(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,o(t)];case 1:return e.sent(),null==r||r("success"),[3,3];case 2:return e.sent(),null==r||r("error"),[3,3];case 3:return[2]}})})},children:i})},Fe=Be,Ye=function(n){var t=n.orientation,r=void 0===t?"horizontal":t,i=n.type,o=void 0===i?"solid":i,a=n.color,s=void 0===a?"#339af0":a,l=n.className,c=void 0===l?"":l,d=n.style;return e.jsx("div",{className:"divider divider-".concat(r," divider-").concat(o," ").concat(c),style:g({backgroundColor:"horizontal"===r?s:"transparent",borderColor:"vertical"===r?s:"transparent"},d)})},$e=function(n){var t=n.children,r=n.layout,i=void 0===r?"horizontal":r,o=n.direction,a=n.justify,s=void 0===a?"flex-start":a,l=n.align,c=void 0===l?"stretch":l,d=n.wrap,u=void 0===d?"nowrap":d,p=n.gap,f=n.style,h=void 0===f?{}:f,m=o||("column"===i?"column":"row");return e.jsx("div",{className:"flex",style:g({gap:"number"==typeof p?"".concat(p,"px"):p,justifyContent:s,alignItems:c,flexWrap:u,flexDirection:m},h),children:t})},Ge=function(n){var t=n.type,r=void 0===t?"text":t,i=n.placeholder,o=void 0===i?"":i,a=n.width,s=n.className,l=void 0===s?"":s,c=n.style,d=n.value,p=n.defaultValue,f=n.onChange,h=n.onBlur,v=n.onFocus,x=n.disabled,b=void 0!==x&&x,y=n.readOnly,C=void 0!==y&&y,w=n.onKeyDown,_=n.prefix,E=n.suffix,N=n.clear,S=void 0!==N&&N,T=n.extra,O=n.label,L=n.labelGap,A=void 0===L?8:L,k=n.labelClassName,M=void 0===k?"":k,I=n.labelStyle,j=n.autoComplete,R=m(n,["type","placeholder","width","className","style","value","defaultValue","onChange","onBlur","onFocus","disabled","readOnly","onKeyDown","prefix","suffix","clear","extra","label","labelGap","labelClassName","labelStyle","error","autoComplete"]),H=u.default.useState(p||""),P=H[0],z=H[1],V=u.default.useState(!1),B=V[0],U=V[1],F=function(n){return n?"string"==typeof n?e.jsx(D,{type:n,size:"medium",color:"#909399"}):n:null},Y=void 0!==d?d:P,$=S&&!b&&!C&&B&&null!=Y&&Y.toString().length>0;return e.jsxs("div",{className:"input-base-container",children:[e.jsxs("div",{className:"input-label-wrapper",style:{display:"flex",alignItems:"center"},children:[O&&e.jsx("div",{className:"input-label ".concat(M),style:g({marginRight:"number"==typeof A?"".concat(A,"px"):A},I),children:O}),e.jsxs("div",{className:"input-wrapper ".concat(l," ").concat(b?"input-disabled":""," ").concat(C?"input-readonly":""),style:g({width:a},c),children:[_&&e.jsx("div",{className:"input-prefix",children:F(_)}),e.jsx("input",g({type:r,placeholder:o,className:"input-inner",value:null!=d?String(d):Y,onChange:function(e){void 0===d&&z(e.target.value),null==f||f(e)},onBlur:function(e){U(!1),null==h||h(e)},onFocus:function(e){U(!0),null==v||v(e)},disabled:b,readOnly:C,onKeyDown:w,autoComplete:null!=j?j:"password"===r?"current-password":void 0},R)),e.jsxs("div",{className:"input-suffix-group",children:[e.jsx("div",{className:"input-suffix-clear ".concat($?"visible":""),onClick:function(){b||C||(void 0!==d||z(""),f&&f({target:{value:""}}))},children:e.jsx(D,{type:"close",size:"medium",color:"#1890ff"})}),E&&e.jsx("div",{className:"input-suffix-content",children:F(E)})]})]})]}),T&&e.jsx("div",{className:"input-extra",children:T})]})},We=function(n){var t=n.type,r=void 0===t?"text":t,i=n.placeholder,o=void 0===i?"搜索":i,a=n.width,s=n.className,l=void 0===s?"":s,c=n.style,d=n.value,u=n.onChange,p=n.onBlur,f=n.onFocus,h=n.disabled,v=void 0!==h&&h,x=n.readOnly,b=void 0!==x&&x,y=n.onSearch,C=n.onClear,w=n.clear,_=void 0!==w&&w,E=n.suffix,N=m(n,["type","placeholder","width","className","style","value","onChange","onBlur","onFocus","disabled","readOnly","onSearch","onClear","clear","suffix"]),S=function(){null==y||y()},T=_?e.jsx(D,{type:"search",onClick:S,style:{cursor:"pointer"}}):E;return e.jsxs("div",{className:"search-input-wrapper ".concat(l),style:g({width:a},c),children:[e.jsx(Ge,g({type:r,placeholder:o,width:"100%",value:d,onChange:u,onBlur:p,onFocus:f,disabled:v,readOnly:b,onKeyDown:function(e){"Enter"===e.key&&(null==y||y())},clear:_,suffix:T},N)),!_&&e.jsxs("div",{className:"search-input-suffix",children:[d&&e.jsx(D,{type:"clear",size:"small",onClick:function(){if(null==C||C(),!C&&u){u({target:{value:""}})}},style:{cursor:"pointer",marginRight:"8px"}}),e.jsx(D,{type:"search",onClick:S,style:{cursor:"pointer"}})]})]})},Ke=function(n){var t=n.nType,r=n.errorMessage,i=n.extra,o=n.value,a=n.onChange,s=n.clear,l=void 0!==s&&s,c=m(n,["nType","errorMessage","extra","value","onChange","clear"]),d=function(e){if(!e)return{isValid:!0,message:""};var n=("string"==typeof e?e:String(e)).trim(),r=parseFloat(n);if(isNaN(r))return{isValid:!1,message:"请输入有效的数字"};switch(t){case"positive-float":return/^\d+(\.\d+)?$/.test(n)&&r>0?{isValid:!0,message:""}:{isValid:!1,message:"请输入正浮点数"};case"negative-float":return/^-\d+(\.\d+)?$/.test(n)&&r<0?{isValid:!0,message:""}:{isValid:!1,message:"请输入负浮点数"};case"positive-integer":return/^\d+$/.test(n)&&r>0?{isValid:!0,message:""}:{isValid:!1,message:"请输入正整数"};case"negative-integer":return/^-\d+$/.test(n)&&r<0?{isValid:!0,message:""}:{isValid:!1,message:"请输入负整数"};case"integer":return/^-?\d+$/.test(n)?{isValid:!0,message:""}:{isValid:!1,message:"请输入整数"};case"negative":return/^-\d+(\.\d+)?$/.test(n)&&r<0?{isValid:!0,message:""}:{isValid:!1,message:"请输入负数"};case"positive":return/^\d+(\.\d+)?$/.test(n)&&r>0?{isValid:!0,message:""}:{isValid:!1,message:"请输入正数"};default:return{isValid:!0,message:""}}},p=u.default.useState({isValid:!0,message:""}),f=p[0],h=p[1];u.default.useEffect(function(){if(t&&o){var e=d(o);h(e)}},[t,o]);var v=r||f.message,x=!!v,b=!x&&i;return e.jsxs("div",{className:"number-input-wrapper",children:[e.jsx(Ge,g({type:"text",value:o,onChange:function(e){var n=e.target.value;if(null==a||a(e),t){var r=d(n);h(r)}},clear:l},c,{className:"".concat(c.className||""," ").concat(x?"input-error":"")})),x&&e.jsx("div",{className:"input-error-message ".concat(x?"visible":""),children:v}),b&&e.jsx("div",{className:"input-extra",children:i})]})},Ze=function(n){var t=n.placeholder,r=void 0===t?"":t,i=n.width,o=n.height,a=n.className,s=void 0===a?"":a,l=n.style,c=n.value,d=n.defaultValue,p=n.onChange,f=n.onBlur,h=n.onFocus,m=n.onKeyDown,v=n.disabled,x=void 0!==v&&v,b=n.readOnly,y=void 0!==b&&b,C=n.rows,w=void 0===C?4:C,_=n.cols,E=n.maxLength,N=n.showCount,S=void 0!==N&&N,T=n.clear,O=void 0!==T&&T,L=n.extra,A=n.label,k=n.labelGap,M=void 0===k?8:k,I=n.labelClassName,j=void 0===I?"":I,R=n.labelStyle,H=n.resizable,P=void 0!==H&&H,z=n.resizeHandleSize,V=void 0===z?10:z,B=n.minWidth,U=void 0===B?200:B,F=n.maxWidth,Y=void 0===F?2e3:F,$=n.minHeight,G=void 0===$?80:$,W=n.maxHeight,K=void 0===W?800:W,Z=n.onResize,X=u.default.useState(d||""),q=X[0],J=X[1],Q=u.default.useState(!1),ee=Q[0],ne=Q[1],te=u.default.useState(!1),re=te[0],ie=te[1],oe=u.default.useRef(null),ae=u.default.useRef(null),se=u.default.useRef(null),le=function(e){if(void 0===e)return 0;if("number"==typeof e)return e;var n=String(e).match(/^(\d+)px$/);return n?parseInt(n[1],10):0},ce=function(e){if(void 0===e)return 0;if("number"==typeof e)return e;var n=String(e).match(/^(\d+)px$/);return n?parseInt(n[1],10):0},de=u.default.useState(le(i)||0),ue=de[0],pe=de[1],fe=u.default.useState(ce(o)||24*w||80),he=fe[0],ge=fe[1];u.default.useEffect(function(){if(ae.current){var e=le(i)||ae.current.offsetWidth||0,n=ce(o)||24*w||80;pe(e),ge(n)}},[]);var me=void 0!==c,ve=me?c:q,xe=(null==ve?void 0:ve.length)||0;u.default.useEffect(function(){var e=function(e){if(re&&se.current){var n=e.clientX-se.current.mouseX,t=e.clientY-se.current.mouseY,r=se.current.width+n,i=se.current.height+t;r=Math.max(U,Math.min(Y,r)),i=Math.max(G,Math.min(K,i)),pe(r),ge(i),null==Z||Z({width:r,height:i})}},n=function(){se.current=null,ie(!1)};return re&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}},[re,U,Y,G,K,Z]);var be={display:"inline-flex",flexDirection:"column",width:i?"number"==typeof i?"".concat(i,"px"):i:"100%"},ye={position:"relative",display:"flex",alignItems:"flex-start",flex:1,width:P?"number"==typeof ue?"".concat(ue,"px"):ue:void 0},Ce=g({width:"100%",height:o?"number"==typeof o?"".concat(o,"px"):o:void 0,resize:"none"},l),we=O&&ve&&!x&&!y,_e=P?g(g({},Ce),{width:"100%",height:P?"number"==typeof he?"".concat(he,"px"):he:void 0}):Ce;return e.jsxs("div",{className:"textarea-wrapper ".concat(s),style:be,ref:ae,children:[(A||S||we)&&e.jsxs("div",{className:"textarea-header",style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[A?e.jsx("label",{className:"input-label ".concat(j),style:g({marginRight:"number"==typeof M?"".concat(M,"px"):M},R),children:A}):null,e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[we&&e.jsx("span",{className:"textarea-clear",onClick:function(){if(!x&&!y){me||J(""),null==p||p({target:{value:""}})}},style:{cursor:"pointer"},children:e.jsx(D,{type:"close-circle",size:"small",color:"#909399"})}),S&&E&&e.jsxs("span",{className:"textarea-count",style:{fontSize:"12px",color:"#909399"},children:[xe,"/",E]})]})]}),e.jsxs("div",{className:"input-wrapper textarea-input-wrapper ".concat(ee?"focused":""," ").concat(x?"disabled":""," ").concat(re?"resizing":""),style:ye,children:[e.jsx("textarea",{ref:oe,className:"input-base textarea-base",placeholder:r,value:ve,defaultValue:me?void 0:d,onChange:function(e){var n=e.target.value;me||J(n),null==p||p(e)},onBlur:function(e){ne(!1),null==f||f(e)},onFocus:function(e){ne(!0),null==h||h(e)},onKeyDown:m,disabled:x,readOnly:y,rows:w,cols:_,maxLength:E,style:_e}),P&&e.jsx("div",{className:"textarea-resize-handle",onMouseDown:function(e){P&&!x&&!y&&ae.current&&(e.preventDefault(),e.stopPropagation(),se.current={mouseX:e.clientX,mouseY:e.clientY,width:ae.current.offsetWidth,height:ae.current.offsetHeight},ie(!0))},style:{position:"absolute",bottom:"0",right:"0",width:"".concat(V,"px"),height:"".concat(V,"px"),cursor:"nwse-resize",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx("div",{style:{width:"8px",height:"8px",borderRight:"2px solid #909399",borderBottom:"2px solid #909399"}})})]}),L&&e.jsx("div",{className:"input-extra",style:{marginTop:"4px"},children:L})]})},Xe=function(n){var t=n.defaultVisible,r=void 0!==t&&t,i=n.onVisibleChange,o=n.autoComplete,a=void 0===o?"current-password":o,s=m(n,["defaultVisible","onVisibleChange","autoComplete"]),l=u.default.useState(r),c=l[0],d=l[1],p=function(){var e=!c;d(e),null==i||i(e)};return e.jsx(Ge,g({type:c?"text":"password",suffix:e.jsx("div",{className:"input-suffix-content",onClick:p,style:{cursor:"pointer"},children:e.jsx(D,{type:c?"eye":"eyeOff",size:"medium",color:"#909399"})}),autoComplete:a},s))},qe=Ge;qe.Search=We,qe.Number=Ke,qe.Textarea=Ze,qe.Password=Xe;var Je=qe,Qe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},en=u.default.createContext&&u.default.createContext(Qe),nn=["attr","size","title"];function tn(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(n.indexOf(r)>=0)continue;t[r]=e[r]}return t}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function rn(){return rn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},rn.apply(this,arguments)}function on(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function an(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?on(Object(t),!0).forEach(function(n){sn(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):on(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function sn(e,n,t){var r;return(n="symbol"==typeof(r=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"))?r:r+"")in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ln(e){return e&&e.map((e,n)=>u.default.createElement(e.tag,an({key:n},e.attr),ln(e.child)))}function cn(e){return n=>u.default.createElement(dn,rn({attr:an({},e.attr)},n),ln(e.child))}function dn(e){var n=n=>{var t,{attr:r,size:i,title:o}=e,a=tn(e,nn),s=i||n.size||"1em";return n.className&&(t=n.className),e.className&&(t=(t?t+" ":"")+e.className),u.default.createElement("svg",rn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:t,style:an(an({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&u.default.createElement("title",null,o),e.children)};return void 0!==en?u.default.createElement(en.Consumer,null,e=>n(e)):n(Qe)}function un(e){return cn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}var pn=function(t){var r=t.announcement,i=t.height,o=void 0===i?40:i,a=t.speed,s=void 0===a?50:a,l=t.backgroundColor,c=void 0===l?"linear-gradient(to right, #e8eaf6 0%, #f5f5f5 50%, #e8eaf6 100%)":l,d=t.visible,u=void 0===d||d,p=t.fixed,f=void 0!==p&&p,h=t.fixedTop,g=void 0===h?0:h,m=t.isIcon,v=void 0===m||m,x=t.onClose;if(!r)return null;var b=n.useState(!0),y=b[0],C=b[1],w=u&&y,_=n.useRef(null),E=n.useRef(null),N=n.useRef(void 0),S=n.useRef(!1),T=n.useRef(!0);return n.useEffect(function(){if(w&&_.current&&E.current){var e=_.current,n=E.current;n.style.left="".concat(e.offsetWidth,"px");var t=function(){if(T.current&&n)if(S.current)N.current=requestAnimationFrame(t);else{var r=parseFloat(n.style.left)||0;r<-n.offsetWidth?n.style.left="".concat(e.offsetWidth,"px"):n.style.left="".concat(r-s/100,"px"),N.current=requestAnimationFrame(t)}};N.current=requestAnimationFrame(t);var r=function(){S.current=!0},i=function(){S.current=!1};return e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",i),function(){N.current&&cancelAnimationFrame(N.current),e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",i)}}},[s,r,w]),w?e.jsxs("div",{ref:_,className:"marquee-container ".concat(f?"marquee-container-fixed":""),style:{height:"".concat(o,"px"),background:c,top:f?"".concat(g,"px"):void 0},children:[e.jsx("div",{ref:E,className:"marquee-text",children:Array.isArray(r)?e.jsx("span",{children:r.map(function(n,t){return e.jsxs("span",{style:0==t?{}:{marginLeft:"100px"},children:[e.jsx("span",{style:{marginRight:"5px"},children:v?"📢":null}),n]},t)})}):r}),e.jsx("div",{className:"marquee-close",style:{height:"".concat(o,"px"),width:"45px",background:c},onClick:function(){T.current=!1,C(!1),x&&x()},onMouseEnter:function(){S.current=!0},onMouseLeave:function(){S.current=!1},children:e.jsx(un,{size:18,color:"#666"})})]}):null},fn=function(t){var r=t.type,i=t.content,o=t.duration,a=void 0===o?3e3:o,s=t.className,l=void 0===s?"":s,c=t.style,d=t.onClose,u=n.useState(!0),p=u[0],f=u[1];if(n.useEffect(function(){if(a>0){var e=setTimeout(function(){f(!1),null==d||d()},a);return function(){return clearTimeout(e)}}},[a,d]),!p)return null;return e.jsx("div",{className:"idp-message idp-message--".concat(r," ").concat(l," ").concat(p?"idp-message--show":""),style:c,children:e.jsxs("div",{className:"idp-message-content",children:[e.jsx(D,{type:function(){switch(r){case"success":return"success";case"warning":return"warning";case"error":return"error";default:return"infoCircleFill"}}(),size:20,color:function(){switch(r){case"success":return"var(--idp-success-color)";case"warning":return"var(--idp-warning-color)";case"error":return"var(--idp-error-color)";default:return"var(--idp-primary-color)"}}()}),e.jsx("span",{className:"idp-message-text",children:i})]})})},hn=0,gn=new Map,mn=function(e){var n=gn.get(e);if(n){var t=n.container;n.root.unmount(),document.body.contains(t)&&document.body.removeChild(t),gn.delete(e)}},vn=function(n,t,r){void 0===r&&(r=3e3);var i=++hn,a=function(){var e=document.createElement("div");return e.style.position="fixed",e.style.top="20px",e.style.left="50%",e.style.transform="translateX(-50%)",e.style.zIndex="1050",e.style.pointerEvents="none",document.body.appendChild(e),e}(),s=o.createRoot(a);s.render(e.jsx(fn,{type:n,content:t,duration:r,onClose:function(){mn(i)}})),gn.set(i,{container:a,root:s});var l=setTimeout(function(){mn(i)},r);return{close:function(){clearTimeout(l),mn(i)}}},xn={success:function(e,n){vn("success",e,n)},warning:function(e,n){vn("warning",e,n)},error:function(e,n){vn("error",e,n)},info:function(e,n){vn("info",e,n)},close:function(){gn.forEach(function(e,n){return mn(n)})}},bn=n.createContext({message:null}),yn=function(t){var r,i=t.visible,o=t.title,s=void 0===o?"标题":o,l=t.width,c=void 0===l?600:l,d=t.height,u=void 0===d?300:d,f=t.headerHeight,h=void 0===f?40:f,m=t.footerHeight,v=void 0===m?40:m,x=t.confirmLoading,b=void 0!==x&&x,y=t.direction,C=void 0===y?"normal":y,w=t.top,_=t.onCancel,E=t.onOk,N=t.children,S=t.footer,T=void 0===S?null:S,O=t.bordered,L=void 0!==O&&O,A=t.className,k=t.style,M=t.okText,I=void 0===M?"确认":M,j=t.cancelText,R=void 0===j?"取消":j,H=t.getContainer,P=void 0===H?function(){return document.body}:H,z=t.maskStyle,V=t.maskClassName,B=t.zIndex,U=void 0===B?1e3:B,F=t.contentClassName,Y=t.contentStyle,$=t.destroyOnClose,G=void 0!==$&&$,W=t.loading,K=void 0!==W&&W,Z=t.loadingIcon,X=n.useState(!1),q=X[0],J=X[1],Q=n.useState(!1),ee=Q[0],ne=Q[1],te=n.useState({x:0,y:0}),re=te[0],ie=te[1],oe=n.useRef(null),ae=C,le=function(e){if("number"==typeof e)return e;var n=e.match(/^(\d+)px$/);return n?parseInt(n[1],10):0};n.useEffect(function(){var e=function(e){oe.current={x:e.clientX,y:e.clientY}};return document.addEventListener("mousedown",e,!0),function(){document.removeEventListener("mousedown",e,!0)}},[]),n.useEffect(function(){if(!i){ne(!0);var e=setTimeout(function(){J(!1),ne(!1)},550);return function(){return clearTimeout(e)}}var n=function(){var e=oe.current;if(!e||"undefined"==typeof window)return{x:0,y:0};var n=u?le(u):0;if("center"===ae&&void 0!==w){var t=window.innerWidth/2,r=w+(n>0?n/2:0);return{x:e.x-t,y:e.y-r}}if("center"===ae)return t=window.innerWidth/2,r=window.innerHeight/2,{x:e.x-t,y:e.y-r};if(void 0!==w&&n>0)return t=window.innerWidth/2,r=w+n/2,{x:e.x-t,y:e.y-r};return t=window.innerWidth/2,r=window.innerHeight/2,{x:e.x-t,y:e.y-r}}();ie(n),ne(!1),J(!0)},[i,550,u,w,G]);var ce=function(){ne(!0);var e=setTimeout(function(){J(!1),ne(!1),null==_||_()},550);return function(){return clearTimeout(e)}},de=function(){null==E||E()},ue=g(((r={width:"number"==typeof c?"".concat(c,"px"):c,top:void 0!==w?"".concat(w,"px"):void 0})["--idp-modal-origin-x"]="".concat(re.x,"px"),r["--idp-modal-origin-y"]="".concat(re.y,"px"),r),k),pe={height:"number"==typeof h?"".concat(h,"px"):h},fe=u?le(u):0,he=le(h),ge=le(v),me=fe>0?Math.max(0,fe-he-ge):void 0,ve=g({},Y);if(!ve.maxHeight&&u){var xe=le(u);ve.maxHeight="".concat(xe,"px")}!ve.maxHeight&&me&&(ve.maxHeight="".concat(me,"px"));var be={height:"number"==typeof v?"".concat(v,"px"):v},ye=function(){if(!q&&!ee)return null;var n=g({zIndex:U},z);return e.jsx("div",{className:p.default("idp-modal-overlay",{"idp-modal-overlay--visible":q,"idp-modal-overlay--closing":ee,"idp-modal-overlay--custom-top":void 0!==w},A,V),onClick:ce,style:n,children:e.jsxs("div",{className:p.default("idp-modal-container",{"idp-modal-container--center-top":q&&!ee&&"center"===ae&&void 0!==w,"idp-modal-container--center":q&&!ee&&"center"===ae&&void 0===w,"idp-modal-container--top-right":q&&!ee&&"top-right"===ae,"idp-modal-container--bottom-right":q&&!ee&&"bottom-right"===ae,"idp-modal-container--bottom-left":q&&!ee&&"bottom-left"===ae,"idp-modal-container--normal":q&&!ee&&"normal"===ae,"idp-modal-container--closing-center-top":ee&&"center"===ae&&void 0!==w,"idp-modal-container--closing-center":ee&&"center"===ae&&void 0===w,"idp-modal-container--closing-top-right":ee&&"top-right"===ae,"idp-modal-container--closing-bottom-right":ee&&"bottom-right"===ae,"idp-modal-container--closing-bottom-left":ee&&"bottom-left"===ae,"idp-modal-container--closing-normal":ee&&"normal"===ae,"idp-modal-container--bordered":L,"idp-modal-container--has-height":void 0!==u}),style:ue,onClick:function(e){return e.stopPropagation()},children:[K?Z?e.jsx("div",{className:"idp-modal-loading",children:e.jsx("div",{className:"idp-modal-loading-content",children:Z})}):e.jsx("div",{className:"idp-modal-loading",children:e.jsx("div",{className:"idp-modal-loading-content",children:e.jsx("div",{className:"idp-modal-loading-spinner",children:e.jsxs("svg",{viewBox:"0 0 24 24",className:"idp-modal-loading-icon",children:[e.jsx("circle",{className:"idp-modal-loading-track",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"}),e.jsx("circle",{className:"idp-modal-loading-indicator",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"})]})})})}):null,e.jsxs("div",{className:"idp-modal-header",style:pe,children:[e.jsx("div",{className:"idp-modal-header__left",children:e.jsx("span",{className:"idp-modal-header__title",children:s})}),e.jsx("div",{className:"idp-modal-header__right",children:e.jsx("div",{className:"idp-modal-close-btn",onClick:ce,children:e.jsx(D,{type:"close",size:20,color:"currentColor"})})})]}),q&&e.jsx("div",{className:p.default("idp-modal-content",F),style:ve,children:G&&ee?null:N}),e.jsx($e,{className:"idp-modal-footer",align:"center",justify:"flex-end",style:Object.assign({},be,{padding:"0px 10px"}),gap:12,children:null===T?e.jsxs($e,{className:"idp-modal-footer__actions",justify:"flex-end",gap:12,children:[e.jsx(se,{variant:"secondary",onClick:ce,disabled:b,children:R||"取消"}),e.jsx(se,{variant:"primary",onClick:de,loading:b,children:I||"确认"})]}):T})]})})}();if(!ye)return null;if(!1===P)return ye;var Ce="function"==typeof P?P():P;return Ce?a.createPortal(ye,Ce):ye},Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});var wn=u.default;function _n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var En=_n(wn);!function(e){if(!e||"undefined"==typeof window)return;const n=document.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=e,document.head.appendChild(n)}('.rfm-marquee-container {\n overflow-x: hidden;\n display: flex;\n flex-direction: row;\n position: relative;\n width: var(--width);\n transform: var(--transform);\n}\n.rfm-marquee-container:hover div {\n animation-play-state: var(--pause-on-hover);\n}\n.rfm-marquee-container:active div {\n animation-play-state: var(--pause-on-click);\n}\n\n.rfm-overlay {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.rfm-overlay::before, .rfm-overlay::after {\n background: linear-gradient(to right, var(--gradient-color), rgba(255, 255, 255, 0));\n content: "";\n height: 100%;\n position: absolute;\n width: var(--gradient-width);\n z-index: 2;\n pointer-events: none;\n touch-action: none;\n}\n.rfm-overlay::after {\n right: 0;\n top: 0;\n transform: rotateZ(180deg);\n}\n.rfm-overlay::before {\n left: 0;\n top: 0;\n}\n\n.rfm-marquee {\n flex: 0 0 auto;\n min-width: var(--min-width);\n z-index: 1;\n display: flex;\n flex-direction: row;\n align-items: center;\n animation: scroll var(--duration) linear var(--delay) var(--iteration-count);\n animation-play-state: var(--play);\n animation-delay: var(--delay);\n animation-direction: var(--direction);\n}\n@keyframes scroll {\n 0% {\n transform: translateX(0%);\n }\n 100% {\n transform: translateX(-100%);\n }\n}\n\n.rfm-initial-child-container {\n flex: 0 0 auto;\n display: flex;\n min-width: auto;\n flex-direction: row;\n align-items: center;\n}\n\n.rfm-child {\n transform: var(--transform);\n}');const Nn=wn.forwardRef(function({style:e={},className:n="",autoFill:t=!1,play:r=!0,pauseOnHover:i=!1,pauseOnClick:o=!1,direction:a="left",speed:s=50,delay:l=0,loop:c=0,gradient:d=!1,gradientColor:u="white",gradientWidth:p=200,onFinish:f,onCycleComplete:h,onMount:g,children:m},v){const[x,b]=wn.useState(0),[y,C]=wn.useState(0),[w,_]=wn.useState(1),[E,N]=wn.useState(!1),S=wn.useRef(null),T=v||S,O=wn.useRef(null),L=wn.useCallback(()=>{if(O.current&&T.current){const e=T.current.getBoundingClientRect(),n=O.current.getBoundingClientRect();let r=e.width,i=n.width;"up"!==a&&"down"!==a||(r=e.height,i=n.height),_(t&&r&&i&&i<r?Math.ceil(r/i):1),b(r),C(i)}},[t,T,a]);wn.useEffect(()=>{if(E&&(L(),O.current&&T.current)){const e=new ResizeObserver(()=>L());return e.observe(T.current),e.observe(O.current),()=>{e&&e.disconnect()}}},[L,T,E]),wn.useEffect(()=>{L()},[L,m]),wn.useEffect(()=>{N(!0)},[]),wn.useEffect(()=>{"function"==typeof g&&g()},[]);const A=wn.useMemo(()=>t?y*w/s:y<x?x/s:y/s,[t,x,y,w,s]),k=wn.useMemo(()=>Object.assign(Object.assign({},e),{"--pause-on-hover":!r||i?"paused":"running","--pause-on-click":!r||i&&!o||o?"paused":"running","--width":"up"===a||"down"===a?"100vh":"100%","--transform":"up"===a?"rotate(-90deg)":"down"===a?"rotate(90deg)":"none"}),[e,r,i,o,a]),M=wn.useMemo(()=>({"--gradient-color":u,"--gradient-width":"number"==typeof p?`${p}px`:p}),[u,p]),I=wn.useMemo(()=>({"--play":r?"running":"paused","--direction":"left"===a?"normal":"reverse","--duration":`${A}s`,"--delay":`${l}s`,"--iteration-count":c?`${c}`:"infinite","--min-width":t?"auto":"100%"}),[r,a,A,l,c,t]),j=wn.useMemo(()=>({"--transform":"up"===a?"rotate(90deg)":"down"===a?"rotate(-90deg)":"none"}),[a]),R=wn.useCallback(e=>[...Array(Number.isFinite(e)&&e>=0?e:0)].map((e,n)=>En.default.createElement(wn.Fragment,{key:n},wn.Children.map(m,e=>En.default.createElement("div",{style:j,className:"rfm-child"},e)))),[j,m]);return E?En.default.createElement("div",{ref:T,style:k,className:"rfm-marquee-container "+n},d&&En.default.createElement("div",{style:M,className:"rfm-overlay"}),En.default.createElement("div",{className:"rfm-marquee",style:I,onAnimationIteration:h,onAnimationEnd:f},En.default.createElement("div",{className:"rfm-initial-child-container",ref:O},wn.Children.map(m,e=>En.default.createElement("div",{style:j,className:"rfm-child"},e))),R(w-1)),En.default.createElement("div",{className:"rfm-marquee",style:I},R(w))):null});var Sn=Cn.default=Nn,Tn=function(n){var t=n.text,r=void 0===t?"":t,i=n.speed,o=void 0===i?50:i,a=n.height,s=void 0===a?60:a,l=n.icon,c=void 0===l?null:l,d=n.styles,p=void 0===d?{}:d,f=n.closeStyle,h=void 0===f?{}:f,m=n.showCloseButton,v=void 0!==m&&m,x=n.floatingTop,b=void 0!==x&&x,y=n.pauseOnHover,C=void 0===y||y,w=n.type,_=void 0===w?"primary":w,E=n.className,N=void 0===E?"":E,S=u.default.useState(!0),T=S[0],O=S[1];if(!r||!T)return null;return e.jsxs("div",{className:"idp-notice idp-notice--".concat(_," ").concat(b?"idp-notice-floating":""," ").concat(N),style:g({height:"".concat(s,"px")},p),children:[e.jsxs(Sn,{pauseOnHover:C,speed:o,gradient:!1,children:[e.jsx("span",{style:{width:"1200px"}}),Array.isArray(r)?e.jsx("div",{className:"idp-notice-content",children:r.map(function(n,t){return e.jsxs("span",{style:{marginRight:"15px",display:"inline-block"},children:[c?e.jsx("span",{className:"idp-notice-icon",children:c}):null,e.jsx("span",{className:"idp-notice-text",children:n})]},t)})}):e.jsx("div",{className:"idp-notice-content",children:e.jsxs("span",{children:[c?e.jsx("span",{className:"idp-notice-icon",children:c}):null,e.jsx("span",{className:"idp-notice-text",children:r})]})})]}),v&&e.jsx("div",{className:"idp-notice-close",style:g({height:"".concat(s,"px")},h),onClick:function(){O(!1)},children:e.jsx("span",{className:"idp-notice-close-icon",children:"×"})})]})},On=function(n){switch(n){case"success":return e.jsx("i",{className:"fas fa-check-circle"});case"warning":return e.jsx("i",{className:"fas fa-exclamation-triangle"});case"error":return e.jsx("i",{className:"fas fa-times-circle"});default:return e.jsx("i",{className:"fas fa-info-circle"})}},Ln=function(t){var r=t.message,i=t.duration,o=void 0===i?3e3:i,a=t.type,s=void 0===a?"info":a,l=t.position,c=void 0===l?"center":l,d=t.color,u=t.top,p=t.open,f=t.clickOutsideToClose,h=void 0!==f&&f,m=t.onClose,v=void 0!==p,x=n.useState(!0),b=x[0],y=x[1],C=n.useState(!0),w=C[0],_=C[1],E=n.useRef(null),N=v?p:b;if(n.useEffect(function(){var e=function(e){h&&E.current&&!E.current.contains(e.target)&&(_(!1),setTimeout(function(){m&&m(),v||y(!1)},500))};return h&&N&&document.addEventListener("click",e),function(){document.removeEventListener("click",e)}},[h,N,v,m]),n.useEffect(function(){v&&(p?_(!0):(_(!1),setTimeout(function(){m&&m()},500)))},[p,v,m]),n.useEffect(function(){if(N){var e=setTimeout(function(){_(!1),setTimeout(function(){m&&m(),v||y(!1)},500)},o);return function(){return clearTimeout(e)}}},[o,N,v,m]),!N||!w)return null;var S="notification-".concat(s),T=d?"notification-custom":"",O=function(){var e={};if(void 0!==u)if(e.top="".concat(u,"px"),c.startsWith("top-"))switch(c){case"top-left":e.left="20px",e.right="auto";break;case"top-center":e.left="50%",e.transform="translateX(-50%)",e.right="auto";break;case"top-right":e.right="20px",e.left="auto"}else e.right="20px",e.left="auto",e.bottom="auto";return e}(),L=g({backgroundColor:d},O),A=void 0===u?"notification-".concat(c):"";return e.jsx("div",{ref:E,className:"notification ".concat(S," ").concat(A," ").concat(T," ").concat(w?"fade-in":"fade-out"),style:L,children:e.jsxs("div",{className:"notification-content",children:[On(s),e.jsx("span",{children:r})]})})},An=n.createContext(void 0),kn=function(t){var r,i=t.value,o=t.checked,a=t.defaultChecked,s=void 0!==a&&a,l=t.onChange,c=t.disabled,d=void 0!==c&&c,u=t.size,f=t.children,h=t.className,m=t.style,v=t.label,x=t.labelGap,b=void 0===x?8:x,y=t.labelClassName,C=void 0===y?"":y,w=t.labelStyle,_=n.useContext(An),E=!!_,N=n.useRef(null),S=n.useState(s),T=S[0],O=S[1],L=E?_.value===i:void 0!==o?o:T,A=u||(E?_.size:void 0),k="button"===(E?_.type:void 0);n.useEffect(function(){if(E&&_.registerRadio)return _.registerRadio(i,N.current),function(){var e;null===(e=_.unregisterRadio)||void 0===e||e.call(_,i)}},[E,i,_]),n.useEffect(function(){L&&E&&_.updateIndicator&&requestAnimationFrame(function(){var e;null===(e=_.updateIndicator)||void 0===e||e.call(_)})},[L,E]),n.useEffect(function(){E||void 0===o||O(o)},[o,E]);var M=p.default("idp-radio",((r={"idp-radio--checked":L,"idp-radio--disabled":d||E&&_.disabled})["idp-radio--".concat(A)]=A,r["idp-radio--button"]=k,r),h);return e.jsx("label",{ref:N,className:M,style:m,children:e.jsxs("div",{className:"idp-radio-wrapper",style:{display:"flex",alignItems:"center"},children:[v&&e.jsx("div",{className:"idp-radio-label ".concat(C),style:g({marginRight:"number"==typeof b?"".concat(b,"px"):b},w),children:v}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[e.jsx("input",{type:"radio",className:"idp-radio__input",checked:L,onChange:function(e){var n,t=e.target.checked;d||E&&_.disabled||(E?null===(n=_.onChange)||void 0===n||n.call(_,i):(O(t),null==l||l(t,i)))},disabled:d||E&&_.disabled,value:i}),!k&&e.jsx("span",{className:"idp-radio__inner"}),f&&e.jsx("span",{className:"idp-radio__label",children:f})]})]})})};kn.Group=function(t){var r,i=t.value,o=t.defaultValue,a=t.onChange,s=t.disabled,l=void 0!==s&&s,c=t.type,d=void 0===c?"radio":c,u=t.size,f=void 0===u?"middle":u,h=t.children,g=t.className,m=t.style,v=n.useState(o),x=v[0],b=v[1],y=n.useRef(null),C=n.useRef(new Map),w=n.useState({width:0,height:0,transform:"translateX(0px)"}),_=w[0],E=w[1],N=void 0!==i?i:x,S=n.useCallback(function(e,n){n&&C.current.set(e,n)},[]),T=n.useCallback(function(e){C.current.delete(e)},[]),O=n.useCallback(function(){if("button"===d&&y.current){var e=C.current.get(N);if(e){var n=y.current.getBoundingClientRect(),t=e.getBoundingClientRect(),r=t.left-n.left;E({width:t.width,height:t.height,transform:"translateX(".concat(r,"px)")})}}},[N,d]);n.useEffect(function(){if("button"===d){var e=requestAnimationFrame(function(){O()});return function(){return cancelAnimationFrame(e)}}},[d,O]),n.useEffect(function(){if("button"===d){var e=function(){O()};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[d,O]),n.useEffect(function(){void 0!==i&&b(i)},[i]);var L=p.default("idp-radio-group",((r={"idp-radio-group--button":"button"===d})["idp-radio-group--".concat(f)]=f,r),g);return e.jsx(An.Provider,{value:{value:N,onChange:function(e){b(e),null==a||a(e)},disabled:l,type:d,size:f,registerRadio:S,unregisterRadio:T,updateIndicator:O},children:e.jsxs("div",{ref:y,className:L,style:m,children:["button"===d&&e.jsx("div",{className:"idp-radio-group__indicator",style:{width:_.width,height:_.height,transform:_.transform}}),h]})})},kn.displayName="Radio",kn.Group.displayName="Radio.Group";var Mn,In,jn,Rn,Dn,Hn,Pn,zn,Vn,Bn,Un,Fn,Yn,$n,Gn,Wn,Kn,Zn,Xn,qn,Jn=kn,Qn=function(e,n){return"var(".concat(e,", ").concat(n,")")},et=f.default.div(Mn||(Mn=y(["\n display: inline-block;\n position: relative;\n width: 100%;\n\n &.select-wrapper {\n /* 外部可通过 .select-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: inline-block;\n position: relative;\n width: 100%;\n\n &.select-wrapper {\n /* 外部可通过 .select-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),nt=f.default.div(In||(In=y(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),tt=f.default.div(jn||(jn=y(["\n font-size: 14px;\n color: ",";\n white-space: nowrap;\n flex-shrink: 0;\n font-weight: 500;\n letter-spacing: 0.2px;\n"],["\n font-size: 14px;\n color: ",";\n white-space: nowrap;\n flex-shrink: 0;\n font-weight: 500;\n letter-spacing: 0.2px;\n"])),Qn("--idp-text-color","rgba(0, 0, 0, 0.85)")),rt=f.default.div(Rn||(Rn=y(["\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n border: 1px solid ",";\n border-radius: ",";\n background: linear-gradient(135deg, "," 0%, "," 100%);\n transition: all "," ",";\n outline: none;\n box-sizing: border-box;\n box-shadow: ","; \n overflow: hidden;\n cursor: ",";\n opacity: ",";\n\n &:hover {\n border-color: ",";\n box-shadow: ",";\n }\n\n &.select-selector {\n /* 外部可通过 .select-selector 选择器覆盖样式 */\n }\n\n /* 尺寸样式 */\n ","\n\n ","\n"],["\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n border: 1px solid ",";\n border-radius: ",";\n background: linear-gradient(135deg, "," 0%, "," 100%);\n transition: all "," ",";\n outline: none;\n box-sizing: border-box;\n box-shadow: ","; \n overflow: hidden;\n cursor: ",";\n opacity: ",";\n\n &:hover {\n border-color: ",";\n box-shadow: ",";\n }\n\n &.select-selector {\n /* 外部可通过 .select-selector 选择器覆盖样式 */\n }\n\n /* 尺寸样式 */\n ","\n\n ","\n"])),function(e){return e.$open?Qn("--idp-primary-color","#1890ff"):Qn("--idp-input-border","#d9d9d9")},Qn("--idp-border-radius-lg","8px"),Qn("--idp-bg-color-white","#fff"),Qn("--idp-bg-color","#fafafa"),Qn("--idp-transition-duration","0.2s"),Qn("--idp-transition-timing-function","ease-in-out"),function(e){return e.$open?Qn("--idp-input-box-shadow-focus","0 0 0 2px rgba(51, 154, 240, 0.2)"):Qn("--idp-shadow-extra-light","0 2px 8px rgba(0, 0, 0, 0.08)")},function(e){return e.$disabled?"not-allowed":"pointer"},function(e){return e.$disabled?Qn("--idp-opacity-disabled","0.65"):1},function(e){return e.$disabled?Qn("--idp-input-border","#d9d9d9"):Qn("--idp-primary-color","#1890ff")},function(e){return e.$disabled?"none":Qn("--idp-input-box-shadow-hover","0 0 0 2px rgba(51, 154, 240, 0.2)")},function(e){switch(e.$size){case"small":return"\n min-height: 24px;\n padding: 2px 8px;\n font-size: 13px;\n ";case"large":return"\n min-height: 40px;\n padding: 8px 16px;\n font-size: 15px;\n ";default:return"\n min-height: 32px;\n padding: 6px 12px;\n font-size: 14px;\n "}},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),it=f.default.div(Dn||(Dn=y(["\n flex: 1;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 4px;\n overflow: hidden;\n"],["\n flex: 1;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 4px;\n overflow: hidden;\n"]))),ot=f.default.span(Hn||(Hn=y(["\n color: ",";\n user-select: none;\n"],["\n color: ",";\n user-select: none;\n"])),Qn("--idp-text-color-light","#bfbfbf")),at=f.default.span(Pn||(Pn=y(["\n color: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n color: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])),Qn("--idp-text-color","rgba(0, 0, 0, 0.85)")),st=f.default.div(zn||(zn=y(["\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 4px;\n"]))),lt=f.default.span(Vn||(Vn=y(["\n display: inline-flex;\n align-items: center;\n padding: 2px 8px;\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n color: ",";\n font-size: 13px;\n line-height: 1.4;\n transition: all "," ease;\n\n &:hover {\n background: ",";\n color: ",";\n }\n\n ","\n\n ","\n"],["\n display: inline-flex;\n align-items: center;\n padding: 2px 8px;\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n color: ",";\n font-size: 13px;\n line-height: 1.4;\n transition: all "," ease;\n\n &:hover {\n background: ",";\n color: ",";\n }\n\n ","\n\n ","\n"])),Qn("--idp-primary-light-color","rgba(24, 100, 240, 0.1)"),Qn("--idp-primary-color","#1890ff"),Qn("--idp-border-radius-sm","4px"),Qn("--idp-primary-color","#1890ff"),Qn("--idp-transition-duration","0.2s"),Qn("--idp-primary-color","#1890ff"),Qn("--idp-bg-color-white","#fff"),function(e){return e.$disabled&&"\n cursor: not-allowed;\n opacity: 0.6;\n "},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ct=f.default.span(Bn||(Bn=y(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n cursor: pointer;\n transition: all 0.2s ease;\n\n &:hover {\n background: rgba(0, 0, 0, 0.1);\n }\n\n svg {\n width: 10px;\n height: 10px;\n }\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n cursor: pointer;\n transition: all 0.2s ease;\n\n &:hover {\n background: rgba(0, 0, 0, 0.1);\n }\n\n svg {\n width: 10px;\n height: 10px;\n }\n"]))),dt=f.default.input(Un||(Un=y(["\n flex: 1;\n min-width: 60px;\n border: none;\n outline: none;\n background: transparent;\n padding: 0;\n font-size: inherit;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n"],["\n flex: 1;\n min-width: 60px;\n border: none;\n outline: none;\n background: transparent;\n padding: 0;\n font-size: inherit;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n"])),Qn("--idp-text-color","rgba(0, 0, 0, 0.85)"),Qn("--idp-text-color-light","#bfbfbf")),ut=f.default.div(Fn||(Fn=y(["\n display: flex;\n align-items: center;\n gap: 8px;\n margin-left: 8px;\n flex-shrink: 0;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n margin-left: 8px;\n flex-shrink: 0;\n"]))),pt=f.default.div(Yn||(Yn=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.06);\n color: ",";\n cursor: pointer;\n transition: all "," ease;\n\n &:hover {\n background: rgba(0, 0, 0, 0.12);\n color: ",";\n }\n\n svg {\n width: 10px;\n height: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.06);\n color: ",";\n cursor: pointer;\n transition: all "," ease;\n\n &:hover {\n background: rgba(0, 0, 0, 0.12);\n color: ",";\n }\n\n svg {\n width: 10px;\n height: 10px;\n }\n"])),Qn("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),Qn("--idp-transition-duration","0.2s"),Qn("--idp-text-color-secondary","rgba(0, 0, 0, 0.65)")),ft=f.default.div($n||($n=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n transition: transform "," ease;\n transform: ",";\n\n svg {\n width: 12px;\n height: 12px;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n transition: transform "," ease;\n transform: ",";\n\n svg {\n width: 12px;\n height: 12px;\n }\n"])),Qn("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),Qn("--idp-transition-duration","0.2s"),function(e){return e.$open?"rotate(180deg)":"rotate(0deg)"}),ht=f.default.div(Gn||(Gn=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n animation: select-spin 1s linear infinite;\n\n svg {\n width: 14px;\n height: 14px;\n }\n\n @keyframes select-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n animation: select-spin 1s linear infinite;\n\n svg {\n width: 14px;\n height: 14px;\n }\n\n @keyframes select-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n"])),Qn("--idp-primary-color","#1890ff")),gt=f.default.div(Wn||(Wn=y(["\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n right: 0;\n z-index: ",";\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n box-shadow: ",";\n opacity: ",";\n visibility: ",";\n transform: ",";\n transition: all "," ",";\n overflow: hidden;\n\n &.select-dropdown {\n /* 外部可通过 .select-dropdown 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n right: 0;\n z-index: ",";\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n box-shadow: ",";\n opacity: ",";\n visibility: ",";\n transform: ",";\n transition: all "," ",";\n overflow: hidden;\n\n &.select-dropdown {\n /* 外部可通过 .select-dropdown 选择器覆盖样式 */\n }\n\n ","\n"])),Qn("--idp-z-index-modal","1000"),Qn("--idp-bg-color-white","#fff"),Qn("--idp-border-color-light","#f0f0f0"),Qn("--idp-border-radius-md","6px"),Qn("--idp-shadow-lg","0 8px 24px rgba(0, 0, 0, 0.15)"),function(e){return e.$open?1:0},function(e){return e.$open?"visible":"hidden"},function(e){return e.$open?"translateY(0)":"translateY(-8px)"},Qn("--idp-transition-duration","0.2s"),Qn("--idp-transition-timing-function","ease-in-out"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),mt=f.default.div(Kn||(Kn=y(["\n max-height: ",";\n overflow-y: auto;\n padding: 4px 0;\n\n /* 滚动条样式 */\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background: ",";\n border-radius: 3px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background: ",";\n }\n"],["\n max-height: ",";\n overflow-y: auto;\n padding: 4px 0;\n\n /* 滚动条样式 */\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background: ",";\n border-radius: 3px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background: ",";\n }\n"])),function(e){var n=e.$maxHeight;return n?"".concat(n,"px"):"256px"},Qn("--idp-border-color","#e8e8e8"),Qn("--idp-text-color-light","#bfbfbf")),vt=f.default.div(Zn||(Zn=y(["\n display: flex;\n align-items: center;\n padding: 10px 12px;\n cursor: ",";\n transition: all "," ease;\n background: ",";\n color: ",";\n opacity: ",";\n\n &:hover {\n background: ",";\n }\n\n &.select-option {\n /* 外部可通过 .select-option 选择器覆盖样式 */\n }\n\n &.select-option-selected {\n font-weight: 500;\n }\n\n &.select-option-active {\n background: ",";\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n padding: 10px 12px;\n cursor: ",";\n transition: all "," ease;\n background: ",";\n color: ",";\n opacity: ",";\n\n &:hover {\n background: ",";\n }\n\n &.select-option {\n /* 外部可通过 .select-option 选择器覆盖样式 */\n }\n\n &.select-option-selected {\n font-weight: 500;\n }\n\n &.select-option-active {\n background: ",";\n }\n\n ","\n"])),function(e){return e.$disabled?"not-allowed":"pointer"},Qn("--idp-transition-duration","0.2s"),function(e){return e.$selected?Qn("--idp-primary-light-color","rgba(24, 100, 240, 0.1)"):"transparent"},function(e){var n=e.$disabled,t=e.$selected;return n?Qn("--idp-text-color-light","#bfbfbf"):t?Qn("--idp-primary-color","#1890ff"):Qn("--idp-text-color","rgba(0, 0, 0, 0.85)")},function(e){return e.$disabled?.6:1},function(e){var n=e.$disabled,t=e.$selected;return n?"transparent":t?Qn("--idp-primary-light-color","rgba(24, 100, 240, 0.1)"):Qn("--idp-bg-color","#fafafa")},Qn("--idp-bg-color","#fafafa"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),xt=f.default.div(Xn||(Xn=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 8px;\n color: ",";\n\n svg {\n width: 14px;\n height: 14px;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 8px;\n color: ",";\n\n svg {\n width: 14px;\n height: 14px;\n }\n"])),Qn("--idp-primary-color","#1890ff")),bt=f.default.div(qn||(qn=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 24px 16px;\n color: ",";\n font-size: 14px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 24px 16px;\n color: ",";\n font-size: 14px;\n"])),Qn("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)")),yt=function(t){var r=t.value,i=t.defaultValue,o=t.options,a=void 0===o?[]:o,s=t.disabled,l=void 0!==s&&s,c=t.loading,d=void 0!==c&&c,u=t.mode,p=void 0===u?"single":u,f=t.placeholder,h=void 0===f?"请选择":f,m=t.searchable,v=void 0!==m&&m,x=t.clearable,y=void 0!==x&&x,C=t.size,w=void 0===C?"default":C,_=t.width,E=t.styles,N=t.onChange,S=t.onOpenChange,T=t.onSearch,O=t.optionRender,L=t.tagRender,A=t.label,k=t.labelGap,M=void 0===k?8:k,I=t.labelClassName,j=void 0===I?"":I,R=t.labelStyle,D=t.className,H=void 0===D?"":D,P=t.style,z=t.showArrow,V=void 0===z||z,B=t.maxHeight,U=void 0===B?256:B,F=t.emptyContent,Y=void 0===F?"暂无数据":F,$=t.getPopupContainer,G=void 0!==r,W=n.useState(void 0!==i?i:"multiple"===p?[]:""),K=W[0],Z=W[1],X=n.useState(!1),q=X[0],J=X[1],Q=n.useState(""),ee=Q[0],ne=Q[1],te=n.useState(-1),re=te[0],ie=te[1],oe=n.useState(!1),ae=oe[0],se=oe[1],le=n.useRef(null),ce=n.useRef(null),de=n.useRef(null);n.useEffect(function(){!function(){if("undefined"!=typeof document){var e="select-global-styles";if(!document.getElementById(e)){var n=document.createElement("style");n.id=e,n.textContent="\n @keyframes select-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n ",document.head.appendChild(n)}}}()},[]);var ue=G?r:K,pe="multiple"===p,fe=n.useMemo(function(){return ee?a.filter(function(e){return String(e.label).toLowerCase().includes(ee.toLowerCase())}):a},[a,ee]),he=n.useMemo(function(){if(pe){var e=Array.isArray(ue)?ue:[];return a.filter(function(n){return e.includes(n.value)})}return a.find(function(e){return e.value===ue})||null},[ue,a,pe]),ge=n.useCallback(function(e,n){G||Z(e),null==N||N(e,n)},[G,N]),me=n.useCallback(function(e){e.disabled||(ge(e.value,e),ne(""),J(!1))},[ge]),ve=n.useCallback(function(e){if(!e.disabled){var n,t,r=Array.isArray(ue)?ue:[];r.includes(e.value)?(n=r.filter(function(n){return n!==e.value}),t=he.filter(function(n){return n.value!==e.value})):(n=b(b([],r,!0),[e.value],!1),t=b(b([],he,!0),[e],!1)),ge(n,t),ne(""),setTimeout(function(){var e;return null===(e=de.current)||void 0===e?void 0:e.focus()},0)}},[ue,ge,he]),xe=n.useCallback(function(e){pe?ve(e):me(e)},[pe,ve,me]),be=n.useCallback(function(e,n){if(e.stopPropagation(),!l){var t=(Array.isArray(ue)?ue:[]).filter(function(e){return e!==n}),r=he.filter(function(e){return e.value!==n});ge(t,r)}},[ue,l,ge,he]),ye=n.useCallback(function(e){(e.stopPropagation(),l)||(ge(pe?[]:"",pe?[]:void 0),ne(""))},[l,pe,ge]),Ce=n.useCallback(function(e){var n=e.target.value;ne(n),null==T||T(n)},[T]);n.useEffect(function(){var e=function(e){le.current&&!le.current.contains(e.target)&&(J(!1),ne(""))};return q&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[q]),n.useEffect(function(){null==S||S(q),q&&v&&setTimeout(function(){var e;return null===(e=de.current)||void 0===e?void 0:e.focus()},0)},[q,v,S]);var we,_e=n.useCallback(function(e){if(q)switch(e.key){case"Escape":e.preventDefault(),J(!1);break;case"ArrowDown":e.preventDefault(),ie(function(e){return e<fe.length-1?e+1:0});break;case"ArrowUp":e.preventDefault(),ie(function(e){return e>0?e-1:fe.length-1});break;case"Enter":e.preventDefault(),re>=0&&re<fe.length&&xe(fe[re])}else"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),J(!0))},[q,re,fe,xe]),Ee=function(n){return L?L({value:n.value,label:n.label,onClose:function(e){return be(e,n.value)},disabled:l}):e.jsxs(lt,{className:"select-tag",$disabled:l,$styles:null==E?void 0:E.tag,children:[e.jsx("span",{children:n.label}),!l&&e.jsx(ct,{className:"select-tag-close",onClick:function(e){return be(e,n.value)},children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})]},n.value)},Ne=function(n,t){var r=pe?ue.includes(n.value):ue===n.value,i=t===re,o=O?O(n):e.jsxs(e.Fragment,{children:[r&&pe&&e.jsx(xt,{children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})})}),e.jsx("span",{children:n.label})]});return e.jsx(vt,{className:"select-option ".concat(r?"select-option-selected":""," ").concat(i?"select-option-active":""),$selected:r,$active:i,$disabled:!!n.disabled,$styles:null==E?void 0:E.option,onClick:function(){return xe(n)},onMouseEnter:function(){return ie(t)},children:o},n.value)},Se=pe?Array.isArray(ue)&&ue.length>0:""!==ue&&null!=ue,Te=y&&!l&&Se&&!d&&ae,Oe=V&&!d&&!Te;return e.jsx(et,{ref:le,className:"select-wrapper ".concat(H),$styles:null==E?void 0:E.wrapper,style:g({width:_},P),children:e.jsxs(nt,{children:[A&&e.jsx(tt,{className:"select-label ".concat(j),style:g({marginRight:"number"==typeof M?"".concat(M,"px"):M},R),children:A}),e.jsxs("div",{style:{flex:1,position:"relative"},children:[e.jsxs(rt,{className:"select-selector select-".concat(w," ").concat(q?"select-open":""," ").concat(l?"select-disabled":""),$disabled:l,$loading:d,$size:w,$open:q,$styles:null==E?void 0:E.selector,onClick:function(){return!l&&!d&&J(!q)},onKeyDown:_e,onMouseEnter:function(){return se(!0)},onMouseLeave:function(){return se(!1)},tabIndex:l?-1:0,role:"combobox","aria-expanded":q,"aria-haspopup":"listbox",children:[e.jsx(it,{children:function(){if(v&&q){var n=pe?"搜索...":String((null==he?void 0:he.label)||h);return e.jsx(dt,{ref:de,type:"text",value:ee,onChange:Ce,placeholder:n,onClick:function(e){return e.stopPropagation()}})}if(pe){var t=he;return t.length>0?e.jsx(st,{children:t.map(Ee)}):e.jsx(ot,{children:h})}var r=he;return r?e.jsx(at,{children:r.label}):e.jsx(ot,{children:h})}()}),e.jsxs(ut,{children:[Te&&e.jsx(pt,{className:"select-clear",onClick:ye,children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})}),d&&e.jsx(ht,{className:"select-loading",children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"})})}),Oe&&e.jsx(ft,{className:"select-arrow ".concat(q?"select-open":""),$open:q,children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M7 10l5 5 5-5z"})})})]})]}),(we=e.jsx(gt,{ref:ce,className:"select-dropdown",$open:q,$styles:null==E?void 0:E.dropdown,children:e.jsx(mt,{$maxHeight:U,children:fe.length>0?fe.map(Ne):e.jsx(bt,{className:"select-empty",children:Y})})}),$?$()?we:null:we)]})]})})},Ct=function(t){var r=t.value,i=t.options,o=t.onChange,a=n.useState(!1),s=a[0],l=a[1],c=n.useRef(null),d=n.useRef(null),u=n.useState({}),p=u[0],f=u[1],h=n.useCallback(function(){var e,n;if(c.current){var t=c.current.getBoundingClientRect(),r=window.innerHeight,i=(null===(e=d.current)||void 0===e?void 0:e.offsetWidth)||120,o=(null===(n=d.current)||void 0===n?void 0:n.offsetHeight)||200,a=t.left+t.width/2-i/2+window.scrollX,s=r-t.bottom,l=s>=o||s>=t.top;f(l?{top:t.bottom+window.scrollY+6,left:a,width:"auto",minWidth:Math.max(i,120)}:{top:t.top+window.scrollY-o-6,left:a,width:"auto",minWidth:Math.max(i,120)})}},[]);n.useEffect(function(){var e=function(e){c.current&&!c.current.contains(e.target)&&l(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),n.useEffect(function(){if(s){h();var e=function(){return h()};return window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}}},[s,h]);return e.jsxs("div",{className:"idp-page-size-select",ref:c,children:[e.jsxs("div",{className:"idp-page-size-select-trigger ".concat(s?"is-open":""),onClick:function(){l(!s),s||setTimeout(h,0)},children:[e.jsxs("span",{className:"idp-page-size-select-value",children:[r," 条/页"]}),e.jsx("svg",{className:"idp-page-size-select-arrow",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:e.jsx("path",{d:"M6 8L1 3h10z",fill:"currentColor"})})]}),s&&e.jsx("div",{className:"idp-page-size-select-dropdown is-open",ref:d,style:p,children:i.map(function(n){var t="number"==typeof n?n:parseInt(n,10);return e.jsxs("div",{className:"idp-page-size-select-option ".concat(r===t?"is-selected":""),onClick:function(){return o(t),void l(!1)},children:[n," 条/页"]},n)})})]})},wt=function(t){var r=t.total,i=void 0===r?0:r,o=t.current,a=t.pageSize,s=void 0===a?10:a,l=t.onChange,c=t.pageSizeOptions,d=void 0===c?["10","20","50","100"]:c,u=t.showSizeChanger,p=void 0!==u&&u,f=t.showQuickJumper,h=void 0!==f&&f,g=t.showTotal,m=t.size,v=void 0===m?"default":m,x=t.align,b=t.className,y=void 0===b?"":b,C=t.style,w=n.useState(1),_=w[0],E=w[1],N=n.useState(s),S=N[0],T=N[1],O=n.useRef(!0),L=void 0!==o?o:_,A=void 0!==s?s:S,k=Math.ceil(i/A),M=n.useRef(l);M.current=l,n.useEffect(function(){void 0!==s&&T(s)},[s]),n.useEffect(function(){void 0!==o&&E(o)},[o]),n.useEffect(function(){if(O.current)O.current=!1;else if(L>k&&k>0){var e=k;void 0===o&&E(e),M.current&&M.current(e,A)}},[L,k,o,A]);var I=function(e){e===L||e<1||e>k||(void 0===o&&E(e),l&&l(e,A))},j=(L-1)*A+1,R=Math.min(L*A,i),H="center"===x?"align-center":"flex-end"===x?"align-right":"";return e.jsxs("div",{className:"idp-pagination ".concat("small"===v?"mini":""," ").concat(H," ").concat(y),style:C,children:[g&&e.jsx("div",{className:"idp-pagination-total-text",children:g(i,[j,R])}),e.jsxs("ul",{className:"idp-pagination-list",children:[e.jsx("li",{className:"idp-pagination-prev ".concat(L<=1?"idp-pagination-prev-disabled":""),onClick:function(){L>1&&I(L-1)},children:e.jsx(D,{type:"arrowLeft"})}),function(){if(k<=7)return Array.from({length:k},function(e,n){return n+1});var e=[];if(e.push(1),L<=4){for(var n=2;n<=5;n++)e.push(n);e.push("..."),e.push(k)}else if(L>=k-3){e.push("...");for(n=k-4;n<=k-1;n++)e.push(n);e.push(k)}else{e.push("...");for(n=L-1;n<=L+1;n++)e.push(n);e.push("..."),e.push(k)}return e}().map(function(n,t){return e.jsx("li",{className:"number"==typeof n?"idp-pagination-item ".concat(n===L?"idp-pagination-item-active":""):"idp-pagination-ellipsis",onClick:function(){return"number"==typeof n&&I(n)},children:n},t)}),e.jsx("li",{className:"idp-pagination-next ".concat(L>=k?"idp-pagination-next-disabled":""),onClick:function(){L<k&&I(L+1)},children:e.jsx(D,{type:"arrowRight"})})]}),(p||h)&&e.jsxs("div",{className:"idp-pagination-options",children:[p&&e.jsx(Ct,{value:A,options:d,onChange:function(e){return function(e){var n=parseInt(e,10);void 0===s&&T(n),void 0===o&&E(1),l&&l(1,n)}(e.toString())}}),h&&e.jsxs("div",{className:"idp-pagination-options-quick-jumper",children:[e.jsx("div",{style:{minWidth:"30px"},children:"跳至"}),e.jsx("input",{type:"text",onKeyPress:function(e){if("Enter"===e.key){var n=e.target,t=parseInt(n.value,10);!isNaN(t)&&t>=1&&t<=k&&(I(t),n.value="")}},placeholder:"页码"}),"页"]})]})]})},_t=function(t){var r=t.children,i=t.title,o=t.placement,a=void 0===o?"top":o,s=t.trigger,l=void 0===s?"hover":s,c=t.delay,d=void 0===c?100:c,u=t.open,p=t.backgroundColor,f=t.style,h=void 0===f?{}:f,m=t.className,v=void 0===m?"":m,x=n.useState(!1),b=x[0],y=x[1],C=n.useState(!1),w=C[0],_=C[1],E=n.useState({top:0,left:0}),N=E[0],S=E[1],T=n.useRef(null),O=n.useRef(null),L=n.useRef(null),A=n.useRef(null),k=void 0!==u,M=(k?u:b)||w,I=n.useCallback(function(){if(T.current&&O.current){var e=T.current.getBoundingClientRect(),n=O.current.getBoundingClientRect(),t=window.pageYOffset||document.documentElement.scrollTop,r=window.pageXOffset||document.documentElement.scrollLeft,i=0,o=0;switch(a){case"top":i=e.top-n.height-8,o=e.left+(e.width-n.width)/2;break;case"bottom":i=e.bottom+8,o=e.left+(e.width-n.width)/2;break;case"left":i=e.top+(e.height-n.height)/2,o=e.left-n.width-8;break;case"right":i=e.top+(e.height-n.height)/2,o=e.right+8}S({top:i+t,left:o+r})}},[a]),j=n.useCallback(function(){i&&(A.current&&(clearTimeout(A.current),A.current=null),k||(y(!0),requestAnimationFrame(function(){_(!0)})))},[i,k]),R=n.useCallback(function(){k||(_(!1),A.current=setTimeout(function(){y(!1),A.current=null},200))},[k]),D=n.useCallback(function(e){if("click"===l&&!k&&b){var n=e.target;T.current&&!T.current.contains(n)&&O.current&&!O.current.contains(n)&&R()}},[l,k,b,R]);return n.useEffect(function(){k&&(u?(A.current&&(clearTimeout(A.current),A.current=null),requestAnimationFrame(function(){_(!0)})):(_(!1),A.current=setTimeout(function(){A.current=null},200)))},[u,k]),n.useEffect(function(){if(M){requestAnimationFrame(I);var e=function(){return I()},n=function(){return I()};return window.addEventListener("resize",e),window.addEventListener("scroll",n,!0),"click"!==l||k||document.addEventListener("click",D),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",n,!0),"click"!==l||k||document.removeEventListener("click",D)}}},[M,a,l,k,I,D]),n.useEffect(function(){return function(){L.current&&clearTimeout(L.current),A.current&&clearTimeout(A.current)}},[]),e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:T,onMouseEnter:"hover"===l?function(){"hover"!==l||k||(L.current&&clearTimeout(L.current),L.current=setTimeout(function(){j(),L.current=null},d))}:void 0,onMouseLeave:"hover"===l?function(){"hover"!==l||k||(L.current&&(clearTimeout(L.current),L.current=null),R())}:void 0,onClick:"click"===l?function(){"click"!==l||k||(b?R():j())}:void 0,style:{display:"inline-block"},children:r}),M&&i&&e.jsxs("div",{ref:O,className:"idp-tooltip idp-tooltip-".concat(a," ").concat(w?"idp-tooltip-visible":""," ").concat(v),style:g({position:"fixed",top:N.top,left:N.left,zIndex:1e3,backgroundColor:p},h),onMouseEnter:"hover"!==l||k?void 0:function(){A.current&&(clearTimeout(A.current),A.current=null),y(!0),_(!0)},onMouseLeave:"hover"!==l||k?void 0:R,children:[e.jsx("div",{className:"idp-tooltip-content",children:i}),e.jsx("div",{className:"idp-tooltip-arrow",style:{backgroundColor:p}})]})]})},Et=function(n){var t=n.id,r=n.record,i=n.rowIndex,o=n.allColumns,a=n.renderTableCell,s=l.useSortable({id:t}),d=s.attributes,u=s.listeners,p=s.setNodeRef,f=s.transform,h=s.transition,m=s.isDragging,v={transform:c.CSS.Transform.toString(f),transition:h,opacity:m?.5:1,cursor:"grab"};return e.jsx("tr",g({ref:p,style:v},d,u,{className:"idp-table-sortable-row ".concat(m?"is-dragging":""),"data-dragging":m,children:o.map(function(e,n){return a(e,r,i,n,o)})}))},Nt=function(t){var r=t.dataSource,i=void 0===r?[]:r,o=t.columns,a=void 0===o?[]:o,c=t.bordered,d=void 0!==c&&c,p=t.scroll,f=void 0===p?{}:p,h=t.rowKey,v=void 0===h?"key":h,x=t.className,y=void 0===x?"":x,C=t.pagination,w=t.empty,_=t.loading,E=void 0!==_&&_,N=t.loadingText,S=void 0===N?"加载中...":N,T=t.loadingDelay,O=t.draggable,L=void 0!==O&&O,A=t.onDragEnd,k=n.useState([]),M=k[0],I=k[1],j=n.useState([]),R=j[0],H=j[1],P=n.useState([]),z=P[0],V=P[1],B=n.useState([]),U=B[0],F=B[1],Y=n.useState(1),$=Y[0],G=Y[1],W=n.useState(10),K=W[0],Z=W[1],X=n.useState(E),q=X[0],J=X[1],Q=n.useState(i),ee=Q[0],ne=Q[1],te=n.useRef(null),re=n.useRef(null),ie=n.useRef(null),oe=n.useRef(null),ae=n.useRef(null),se=n.useRef(0),le=n.useRef(!1),ce=n.useRef(null),de=n.useRef(0),ue=n.useState(null),fe=ue[0],he=ue[1],ge=n.useState(""),me=ge[0],ve=ge[1];n.useEffect(function(){ne(i)},[i]),n.useEffect(function(){return te.current&&(clearTimeout(te.current),te.current=null),E&&T&&T>0?(J(!0),te.current=setTimeout(function(){J(!1)},T)):J(E),function(){te.current&&clearTimeout(te.current)}},[E,T]),n.useEffect(function(){C&&"object"==typeof C&&(void 0!==C.current&&G(C.current),void 0!==C.pageSize&&Z(C.pageSize))},[C&&"object"==typeof C?C.current:void 0,C&&"object"==typeof C?C.pageSize:void 0]),n.useEffect(function(){return function(){ae.current&&cancelAnimationFrame(ae.current),ce.current&&clearTimeout(ce.current)}},[]);n.useEffect(function(){var e=[],n=[],t=[],r=[];a.forEach(function(i,o){var a,s=(a=i.width)?"number"==typeof a?a:parseInt(a,10)||0:0;r[o]=s;var l=g(g({},i),{_index:o});"start"===i.fixed||!0===i.fixed?e.push(l):"end"===i.fixed?n.push(l):t.push(l)}),I(e),H(n),V(t),F(r),requestAnimationFrame(function(){xe.current(0)})},[a]);var xe=n.useRef(function(e){re.current&&re.current.querySelectorAll('.custom-table th[style*="sticky"], .custom-table td[style*="sticky"]').forEach(function(n){var t=n,r=window.getComputedStyle(t),i=r.left,o=r.right;"auto"!==i&&"0px"!==i?t.style.transform="translateX(".concat(e,"px)"):"auto"!==o&&"0px"!==o&&(t.style.transform="translateX(".concat(-e,"px)"))})}),be=function(e,n,t){ae.current&&cancelAnimationFrame(ae.current),ae.current=requestAnimationFrame(function(){n&&n.scrollLeft!==t&&(n.scrollLeft=t),xe.current(t),ae.current=null})},ye=function(e,n){var t=n||K,r=t!==K?1:e;G(r),Z(t),C&&"function"==typeof C.onChange&&C.onChange(r,n)},Ce=function(e,n){if(void 0===e&&(e=$),void 0===n&&(n=K),!1===C)return null;var t,r=void 0!==(null==C?void 0:C.total)?C.total:ee.length,i=Math.ceil(r/n)||1,o=Math.min(e,i);if(void 0!==(null==C?void 0:C.total))t=ee;else{var a=(o-1)*n,s=a+n;t=ee.slice(a,s)}return{data:t,total:r,pageSize:n,current:o,totalPages:i}},we=function(e,n){return"function"==typeof v?v(e,n):e[v]||n},_e=function(e){if(null==e)return"";if("string"==typeof e)return e;if("number"==typeof e)return String(e);if("boolean"==typeof e)return"";if(Array.isArray(e))return e.map(_e).join("");if("object"==typeof e&&!u.default.isValidElement(e)){if(void 0!==e.name)return String(e.name);if(void 0!==e.label)return String(e.label);if(void 0!==e.title)return String(e.title);try{return JSON.stringify(e)}catch(e){return""}}return"object"==typeof e&&e.props&&e.props.children?_e(e.props.children):""},Ee=function(e,n,t){he({rowIndex:e,colKey:n}),ve(String(t||""))},Ne=function(e,n){n.onSave&&n.onSave(e,me),he(null),ve("")},Se=function(){he(null),ve("")},Te=function(n,t,r,i,o){var a={width:n.width||"auto",textAlign:n.align||"left",backgroundColor:"white"};if("start"===n.fixed||!0===n.fixed){a.position="sticky";for(var s=0,l=0;l<i;l++)s+=U[l]||0;a.left="".concat(s,"px"),a.zIndex=5}else if("end"===n.fixed){a.position="sticky";var c=0;for(l=o.length-1;l>i;l--)c+=U[l]||0;a.right="".concat(c,"px"),a.zIndex=5}var d=M.length?M.length-1:-1,p=R.length?M.length+z.length:-1,f=("start"===n.fixed||!0===n.fixed)&&i===d,h="end"===n.fixed&&i===p,g=n.key||n.dataIndex||n._index,m=(null==fe?void 0:fe.rowIndex)===r&&(null==fe?void 0:fe.colKey)===String(g),v=n.dataIndex?t[n.dataIndex]:null;n.render&&(v=n.render(v,t,r));var x=v;if(null!==v&&"object"==typeof v&&!u.default.isValidElement(v))if(void 0!==v.name)x=String(v.name);else if(void 0!==v.label)x=String(v.label);else if(void 0!==v.title)x=String(v.title);else try{x=JSON.stringify(v)}catch(e){x=""}var b=n.maxLines&&n.maxLines>0,y="";if(n.tooltip&&!m&&!(y=_e(x))&&n.dataIndex){var C=t[n.dataIndex];y="object"==typeof C?_e(C):String(C||"")}if(n.editable&&m)return e.jsx("td",{style:a,className:"".concat(f?"idp-table-fixed-left-shadow":"").concat(h?" idp-table-fixed-right-shadow":""),children:e.jsxs("div",{className:"idp-table-edit-cell",onClick:function(e){return e.stopPropagation()},children:[e.jsx("input",{type:"text",className:"idp-table-edit-input",value:me,onChange:function(e){return ve(e.target.value)},autoFocus:!0,onClick:function(e){return e.stopPropagation()}}),e.jsxs("div",{className:"idp-table-edit-actions",children:[e.jsx("span",{className:"idp-table-edit-icon idp-edit-submit",onClick:function(){return Ne(t,n)},title:"保存",children:e.jsx(D,{type:"check",size:24,color:"#339af0"})}),e.jsx("span",{className:"idp-table-edit-icon idp-edit-cancel",onClick:Se,title:"取消",children:e.jsx(D,{type:"close",size:24,color:"#339af0"})})]})]})},n.key||n.dataIndex||n._index);var w=b?e.jsx("div",{className:"idp-table-cell-ellipsis",style:{WebkitLineClamp:n.maxLines},children:x}):x,_=y?e.jsx(_t,{title:y,placement:"top",children:w}):w;return e.jsxs("td",{style:a,onClick:n.editable?function(){return Ee(r,String(g),v)}:void 0,className:"".concat(f?"idp-table-fixed-left-shadow":"").concat(h?" idp-table-fixed-right-shadow":"").concat(b?" idp-table-cell-has-ellipsis":"").concat(n.editable?" idp-table-editable-cell":""),children:[_,n.editable&&e.jsx("span",{className:"idp-table-edit-icon-wrapper",children:e.jsx(D,{type:"edit",size:16,color:"#339af0"})})]},n.key||n.dataIndex||n._index)},Oe=s.useSensors(s.useSensor(s.PointerSensor,{activationConstraint:{distance:8}}),s.useSensor(s.KeyboardSensor,{coordinateGetter:l.sortableKeyboardCoordinates})),Le=function(e){var n=e.active,t=e.over;if(t&&n.id!==t.id){var r=Ce(),i=r?r.data:ee,o=i.findIndex(function(e,t){return String(we(e,t))===String(n.id)}),a=i.findIndex(function(e,n){return String(we(e,n))===String(t.id)});if(-1!==o&&-1!==a){var s=l.arrayMove(i,o,a);if(r&&C&&"object"==typeof C&&void 0===C.total){var c=(r.current-1)*r.pageSize,d=b([],ee,!0);s.forEach(function(e,n){d[c+n]=e}),ne(d),A&&A(d)}else ne(s),A&&A(s)}}},Ae={width:f.x?"number"==typeof f.x?"".concat(f.x,"px"):f.x:"100%"},ke={maxHeight:f.y?"number"==typeof f.y?"".concat(f.y,"px"):f.y:"auto",overflowY:f.y?"auto":"visible",overflowX:f.x?"auto":"visible"},Me=b(b(b([],M,!0),z,!0),R,!0),Ie=n.useMemo(function(){return Ce()},[ee,C,K,$]),je=Ie?Ie.data:ee;return e.jsxs("div",{ref:re,className:"custom-table-container ".concat(d?"bordered":""," ").concat(y," ").concat(L?"draggable":""),style:Ae,children:[q&&e.jsx("div",{className:"custom-table-loading-mask",children:e.jsxs("div",{className:"custom-table-loading-content",children:[e.jsx("div",{className:"custom-table-loading-spinner",children:e.jsxs("svg",{viewBox:"0 0 24 24",className:"custom-table-loading-icon",children:[e.jsx("circle",{className:"custom-table-loading-track",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"}),e.jsx("circle",{className:"custom-table-loading-indicator",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"})]})}),S&&e.jsx("div",{className:"custom-table-loading-text",children:S})]})}),e.jsx("div",{className:"custom-table-header",ref:ie,onScroll:function(e){if(ie.current&&oe.current){var n=e.target;if(n===ie.current){var t=n.scrollLeft;le.current=!0,ce.current&&clearTimeout(ce.current),ce.current=setTimeout(function(){le.current=!1},150),Math.abs(t-se.current)>.5&&(se.current=t,de.current=t,be(ie.current,oe.current,t))}}},children:e.jsxs("table",{className:"custom-table ".concat(d?"bordered":""),children:[e.jsx("colgroup",{children:Me.map(function(n,t){return e.jsx("col",{style:{width:n.width||"auto"}},"header-col-".concat(n.dataIndex||n.key||t))})}),e.jsx("thead",{children:e.jsx("tr",{children:Me.map(function(n,t){return function(n,t,r){var i={width:n.width||"auto",textAlign:n.align||"left",backgroundColor:"#fafafa !important",top:0};if("start"===n.fixed||!0===n.fixed){i.position="sticky";for(var o=0,a=0;a<t;a++)o+=U[a]||0;i.left="".concat(o,"px"),i.zIndex=10}else if("end"===n.fixed){i.position="sticky";var s=0;for(a=r.length-1;a>t;a--)s+=U[a]||0;i.right="".concat(s,"px"),i.zIndex=10}return e.jsx("th",{style:i,children:n.title||""},n.key||n.dataIndex||n._index)}(n,t,Me)})})})]})}),e.jsx("div",{className:"custom-table-body",ref:oe,style:ke,onScroll:function(e){if(ie.current&&oe.current){var n=e.target;if(n===oe.current){var t=n.scrollLeft;le.current=!0,ce.current&&clearTimeout(ce.current),ce.current=setTimeout(function(){le.current=!1},150),Math.abs(t-se.current)>.5&&(se.current=t,de.current=t,be(oe.current,ie.current,t))}}},children:function(){var n=e.jsxs("table",{className:"custom-table ".concat(d?"bordered":""),children:[e.jsx("colgroup",{children:Me.map(function(n,t){return e.jsx("col",{style:{width:n.width||"auto"}},"body-col-".concat(n.dataIndex||n.key||t))})}),e.jsx("tbody",{children:L?je.map(function(n,t){return e.jsx(Et,{id:String(we(n,t)),record:n,rowIndex:t,columns:a,columnWidths:U,fixedLeftColumns:M,fixedRightColumns:R,normalColumns:z,allColumns:Me,editingCell:fe,editingValue:me,handleEdit:Ee,handleSave:Ne,handleCancel:Se,setEditingValue:ve,renderTableCell:Te},we(n,t))}):je.map(function(n,t){return e.jsx("tr",{children:Me.map(function(e,r){return Te(e,n,t,r,Me)})},we(n,t))})})]});if(L){var t=je.map(function(e,n){return String(we(e,n))});return e.jsx(s.DndContext,{sensors:Oe,collisionDetection:s.closestCenter,onDragEnd:Le,children:e.jsx(l.SortableContext,{items:t,strategy:l.verticalListSortingStrategy,children:n})})}return n}()}),0===je.length&&e.jsx("div",{className:"custom-table-empty",children:w||e.jsx(pe,{size:"small",description:"暂无数据"})}),function(){if(!1===C||!Ie)return null;var n=Ie.total,t=Ie.current,r=Ie.pageSize,i=m(C||{},["onChange","pageSize","current"]);return e.jsx("div",{className:"custom-table-pagination-wrapper",children:e.jsx(wt,g({total:n,current:t,pageSize:r,onChange:ye,showTotal:function(e,n){return"第 ".concat(n[0],"-").concat(n[1]," 条,共 ").concat(e," 条")},showSizeChanger:!0,showQuickJumper:!0,align:"flex-end"},i))})}()]})};function St(e){return cn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"},child:[]}]})(e)}var Tt=function(t){var r=t.showAfter,i=void 0===r?100:r,o=t.bottom,a=void 0===o?30:o,s=t.right,l=void 0===s?30:s,c=t.size,d=void 0===c?40:c,u=t.color,p=void 0===u?"#fff":u,f=t.bgColor,h=void 0===f?"#1a2980":f,g=t.boxShadow,m=void 0===g?"0 2px 10px rgba(0, 0, 0, 0.15)":g,v=t.onClick,x=t.containerRef,b=t.icon,y=n.useState(!1),C=y[0],w=y[1],_=n.useRef(null),E=n.useCallback(function(){(null==x?void 0:x.current)?x.current.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"}),null==v||v()},[v,x]);if(n.useEffect(function(){var e=function(){var e=0;e=(null==x?void 0:x.current)?x.current.scrollTop:window.pageYOffset,w(e>i)};if(null==x?void 0:x.current){var n=x.current;return n.addEventListener("scroll",e),e(),function(){return n.removeEventListener("scroll",e)}}return window.addEventListener("scroll",e),e(),function(){return window.removeEventListener("scroll",e)}},[i,x]),!C)return null;var N=e.jsx(St,{size:Math.floor(.5*d)}),S=.5*d;return(null==x?void 0:x.current)?e.jsx("div",{ref:_,className:"top-button-wrapper-container",style:{position:"sticky",bottom:"".concat(a,"px"),marginLeft:"auto",width:"".concat(d,"px"),height:"".concat(d,"px"),right:"".concat(l,"px"),zIndex:10},children:e.jsx("button",{className:"top-button",onClick:E,style:{width:"".concat(d,"px"),height:"".concat(d,"px"),backgroundColor:h,color:p,boxShadow:m,padding:0,border:"none"},children:b?e.jsx("span",{style:{width:S,height:S,display:"flex",alignItems:"center",justifyContent:"center"},children:b}):N})}):e.jsx("div",{ref:_,className:"top-button-wrapper",style:{position:"fixed",bottom:"".concat(a,"px"),right:"".concat(l,"px"),zIndex:1e3},children:e.jsx("button",{className:"top-button",onClick:E,style:{width:"".concat(d,"px"),height:"".concat(d,"px"),backgroundColor:h,color:p,boxShadow:m,padding:0,border:"none"},children:b?e.jsx("span",{style:{width:S,height:S,display:"flex",alignItems:"center",justifyContent:"center"},children:b}):N})})},Ot=function(n){var t=n.children,r=n.width,i=n.rows,o=n.style,a=n.className,s=g(g({},o),{width:r}),l=["idp-typography",function(e){return e?"idp-typography--line-clamp-".concat(e):""}(i),a].filter(Boolean);return e.jsx("div",{className:l.join(" "),style:s,children:t})},Lt=function(t){var r=t.items,i=t.columns,o=void 0===i?3:i,a=t.gutter,s=void 0===a?20:a,l=t.className,c=t.style,d=t.classNames,u=void 0===d?{}:d,p=t.styles,f=void 0===p?{}:p,h=t.onLayoutChange,m=n.useRef(null),v=n.useState(3),x=v[0],b=v[1],y=n.useState(20),C=y[0],w=y[1],_=function(e,n,t){if(null!==e&&"object"==typeof e&&!Array.isArray(e)){for(var r=e,i=0,o=Object.keys(r).map(Number).sort(function(e,n){return n-e});i<o.length;i++){var a=o[i];if(t>=a&&r.hasOwnProperty(a))return r[a]}return n}return e};n.useEffect(function(){var e,n=function(){clearTimeout(e),e=window.setTimeout(function(){if(m.current){var e=m.current.offsetWidth,n=_(o,3,e),t=_(s,20,e);b(n),w(t),h&&h(n,r)}},100)};return n(),window.addEventListener("resize",n),function(){clearTimeout(e),window.removeEventListener("resize",n)}},[o,s,r,h]);var E=n.useMemo(function(){var e=Array.from({length:x},function(){return[]});return r.filter(function(n){return!(void 0!==n.column&&n.column>=0&&n.column<x)||(e[n.column].push(n),!1)}).forEach(function(n,t){e[t%x].push(n)}),e},[r,x]),N=function(e,n){var t=u[e];return"function"==typeof t?t(n):t||""},S=function(e,n){var t=f[e];return"function"==typeof t?t(n):t||{}};return e.jsx("div",{ref:m,className:"idp-masonry ".concat(l||""," ").concat(N("container",0)),style:g(g({display:"flex",gap:"".concat(C,"px")},c),S("container",0)),children:E.map(function(n,t){return e.jsx("div",{className:"idp-masonry-column ".concat(N("column",t)),style:g({flex:1,display:"flex",flexDirection:"column",gap:"".concat(C,"px")},S("column",t)),children:n.map(function(n,t){return e.jsx("div",{className:"idp-masonry-item ".concat(N("item",t)),style:g({},S("item",t)),children:n.content},n.key)})},"column-".concat(t))})})},At=function(n){var t=n.children,r=n.gap,i=void 0===r?12:r,o=n.align,a=void 0===o?"center":o,s=n.wrap,l=void 0===s?"nowrap":s,c=n.className,d=n.style,p=void 0===d?{}:d,f=n.inline,h=void 0!==f&&f,m=u.default.Children.toArray(t).filter(function(e){return null!=e});return 0===m.length?null:e.jsx("div",{className:"space ".concat(h?"space-inline":""," ").concat(c||""),style:g({display:h?"inline-flex":"flex",gap:"number"==typeof i?"".concat(i,"px"):i,alignItems:function(){switch(a){case"start":return"flex-start";case"end":return"flex-end";case"center":default:return"center";case"baseline":return"baseline";case"stretch":return"stretch"}}(),flexWrap:l},p),children:m.map(function(n,t){return e.jsx("div",{className:"space-item",children:n},t)})})},kt=function(){return null},Mt=function(t){var r=t.className,i=t.style,o=t.children,a=t.offsetTop,s=void 0===a?0:a,l=t.affix,c=void 0===l||l,d=t.bounds,p=void 0===d?5:d,f=t.getContainer,h=void 0===f?function(){return window.document.documentElement}:f,m=t.onChange,v=n.useState(""),x=v[0],y=v[1],C=n.useState([]),w=C[0],_=C[1],E=n.useRef(null),N=n.useRef(null),S=n.useRef(""),T=n.useRef(!1),O=n.useRef("");n.useEffect(function(){S.current=x},[x]);var L=function(){var e=h(),n=e===window.document.documentElement||e===document.body,t=!1,r=w.map(function(r){var i=document.querySelector(r.href);if(i){var o=i.getBoundingClientRect(),a=0;if(n)a=o.top+window.scrollY-s;else{var l=e.getBoundingClientRect();a=o.top-l.top+e.scrollTop-s}if(Math.abs(a-r.top)>1)return t=!0,g(g({},r),{top:a})}return r});t&&_(r)},A=function(){if(!T.current&&0!==w.length){for(var e=h(),n=(e===window.document.documentElement||e===document.body?window.scrollY:e.scrollTop)+s+p,t="",r=b([],w,!0).sort(function(e,n){return e.top-n.top}),i=0;i<r.length&&n>=r[i].top;i+=1)t=r[i].href;if(O.current){var o=r.find(function(e){return e.href===O.current});if(o)return void(Math.abs(n-o.top)<50&&(O.current!==S.current&&(y(O.current),S.current=O.current,null==m||m(O.current)),O.current=""))}t!==S.current&&(y(t),S.current=t,null==m||m(t))}};n.useEffect(function(){var e=function(e){var n=[],t=function(e){if(u.default.isValidElement(e)){var r=e;if(r.type===kt&&r.props.href&&r.props.title&&n.push({href:r.props.href,title:r.props.title,top:0}),"children"in r.props&&r.props.children){var i=r.props.children;Array.isArray(i)?i.forEach(t):t(i)}}};return Array.isArray(e)?e.forEach(t):t(e),n}(o);_(e)},[o]),n.useEffect(function(){L(),A();var e=h();N.current=function(){A()},e.addEventListener("scroll",N.current);var n=function(){L(),A()};return window.addEventListener("resize",n),function(){N.current&&e.removeEventListener("scroll",N.current),window.removeEventListener("resize",n)}},[w,s,p,h,m]);var k="idp-anchor ".concat(r||""," ").concat(c?"idp-anchor-affix":"");return e.jsx("div",{ref:E,className:k,style:i,children:e.jsx("ul",{className:"idp-anchor-list",children:w.map(function(n){return e.jsx("li",{className:"idp-anchor-link ".concat(x===n.href?"idp-anchor-link-active":""),children:e.jsx("a",{href:n.href,onClick:function(e){return function(e,n){e.preventDefault();var t=document.querySelector(n);if(t){var r=h();T.current=!0,O.current=n,y(n),S.current=n,m&&m(n),setTimeout(function(){if(r!==window.document.documentElement&&r!==document.body){var e=r.getBoundingClientRect(),n=(i=t.getBoundingClientRect()).top-e.top+r.scrollTop-s;r&&"function"==typeof r.scrollTo&&r.scrollTo({top:n,behavior:"smooth"})}else{var i=t.getBoundingClientRect(),o=window.pageYOffset||document.documentElement.scrollTop;n=i.top+o-s,window.scrollTo({top:n,behavior:"smooth"})}setTimeout(function(){T.current=!1},1500)},0)}}(e,n.href)},className:"idp-anchor-link-a",children:n.title})},n.href)})})})};Mt.Link=kt;var It=Mt,jt=function(n){var t=n.items,r=n.separator,i=void 0===r?"/":r,o=n.className,a=void 0===o?"":o;return t&&0!==t.length?e.jsx("nav",{className:"breadcrumb ".concat(a),"aria-label":"breadcrumb",children:e.jsx("ol",{className:"breadcrumb-list",children:t.map(function(n,r){var o=r===t.length-1;return e.jsx("li",{className:"breadcrumb-item",children:o?e.jsx("span",{className:"breadcrumb-current",children:n.label}):e.jsxs(e.Fragment,{children:[n.href?e.jsx("a",{href:n.href,className:"breadcrumb-link",children:n.label}):e.jsx("span",{className:"breadcrumb-text",children:n.label}),r<t.length-1&&e.jsx("span",{className:"breadcrumb-separator",children:i})]})},r)})})}):null};const Rt=e=>"string"==typeof e,Dt=()=>{let e,n;const t=new Promise((t,r)=>{e=t,n=r});return t.resolve=e,t.reject=n,t},Ht=e=>null==e?"":""+e,Pt=/###/g,zt=e=>e&&e.indexOf("###")>-1?e.replace(Pt,"."):e,Vt=e=>!e||Rt(e),Bt=(e,n,t)=>{const r=Rt(n)?n.split("."):n;let i=0;for(;i<r.length-1;){if(Vt(e))return{};const n=zt(r[i]);!e[n]&&t&&(e[n]=new t),e=Object.prototype.hasOwnProperty.call(e,n)?e[n]:{},++i}return Vt(e)?{}:{obj:e,k:zt(r[i])}},Ut=(e,n,t)=>{const{obj:r,k:i}=Bt(e,n,Object);if(void 0!==r||1===n.length)return void(r[i]=t);let o=n[n.length-1],a=n.slice(0,n.length-1),s=Bt(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Bt(e,a,Object),s?.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=t},Ft=(e,n)=>{const{obj:t,k:r}=Bt(e,n);if(t&&Object.prototype.hasOwnProperty.call(t,r))return t[r]},Yt=(e,n,t)=>{for(const r in n)"__proto__"!==r&&"constructor"!==r&&(r in e?Rt(e[r])||e[r]instanceof String||Rt(n[r])||n[r]instanceof String?t&&(e[r]=n[r]):Yt(e[r],n[r],t):e[r]=n[r]);return e},$t=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Gt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Wt=e=>Rt(e)?e.replace(/[&<>"'\/]/g,e=>Gt[e]):e;const Kt=[" ",",","?","!",";"],Zt=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(void 0!==n)return n;const t=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,t),this.regExpQueue.push(e),t}}(20),Xt=(e,n,t=".")=>{if(!e)return;if(e[n]){if(!Object.prototype.hasOwnProperty.call(e,n))return;return e[n]}const r=n.split(t);let i=e;for(let e=0;e<r.length;){if(!i||"object"!=typeof i)return;let n,o="";for(let a=e;a<r.length;++a)if(a!==e&&(o+=t),o+=r[a],n=i[o],void 0!==n){if(["string","number","boolean"].indexOf(typeof n)>-1&&a<r.length-1)continue;e+=a-e+1;break}i=n}return i},qt=e=>e?.replace("_","-"),Jt={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,n){console?.[e]?.apply?.(console,n)}};class Qt{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||Jt,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,t,r){return r&&!this.debug?null:(Rt(e[0])&&(e[0]=`${t}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new Qt(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Qt(this.logger,e)}}var er=new Qt;class nr{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const t=this.observers[e].get(n)||0;this.observers[e].set(n,t+1)}),this}off(e,n){this.observers[e]&&(n?this.observers[e].delete(n):delete this.observers[e])}emit(e,...n){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,t])=>{for(let r=0;r<t;r++)e(...n)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([t,r])=>{for(let i=0;i<r;i++)t.apply(t,[e,...n])})}}}class tr extends nr{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,t,r={}){const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,n],t&&(Array.isArray(t)?a.push(...t):Rt(t)&&i?a.push(...t.split(i)):a.push(t)));const s=Ft(this.data,a);return!s&&!n&&!t&&e.indexOf(".")>-1&&(e=a[0],n=a[1],t=a.slice(2).join(".")),!s&&o&&Rt(t)?Xt(this.data?.[e]?.[n],t,i):s}addResource(e,n,t,r,i={silent:!1}){const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,n];t&&(a=a.concat(o?t.split(o):t)),e.indexOf(".")>-1&&(a=e.split("."),r=n,n=a[1]),this.addNamespaces(n),Ut(this.data,a,r),i.silent||this.emit("added",e,n,t,r)}addResources(e,n,t,r={silent:!1}){for(const r in t)(Rt(t[r])||Array.isArray(t[r]))&&this.addResource(e,n,r,t[r],{silent:!0});r.silent||this.emit("added",e,n,t)}addResourceBundle(e,n,t,r,i,o={silent:!1,skipCopy:!1}){let a=[e,n];e.indexOf(".")>-1&&(a=e.split("."),r=t,t=n,n=a[1]),this.addNamespaces(n);let s=Ft(this.data,a)||{};o.skipCopy||(t=JSON.parse(JSON.stringify(t))),r?Yt(s,t,i):s={...s,...t},Ut(this.data,a,s),o.silent||this.emit("added",e,n,t)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return void 0!==this.getResource(e,n)}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(e=>n[e]&&Object.keys(n[e]).length>0)}toJSON(){return this.data}}var rr={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,n,t,r,i){return e.forEach(e=>{n=this.processors[e]?.process(n,t,r,i)??n}),n}};const ir=Symbol("i18next/PATH_KEY");function or(e,n){const{[ir]:t}=e(function(){const e=[],n=Object.create(null);let t;return n.get=(r,i)=>(t?.revoke?.(),i===ir?e:(e.push(i),t=Proxy.revocable(r,n),t.proxy)),Proxy.revocable(Object.create(null),n).proxy}());return t.join(n?.keySeparator??".")}const ar={},sr=e=>!Rt(e)&&"boolean"!=typeof e&&"number"!=typeof e;class lr extends nr{constructor(e,n={}){var t,r;super(),t=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{t[e]&&(r[e]=t[e])}),this.options=n,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=er.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const t={...n};if(null==e)return!1;const r=this.resolve(e,t);if(void 0===r?.res)return!1;const i=sr(r.res);return!1!==t.returnObjects||!i}extractFromKey(e,n){let t=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===t&&(t=":");const r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=t&&e.indexOf(t)>-1,a=!(this.options.userDefinedKeySeparator||n.keySeparator||this.options.userDefinedNsSeparator||n.nsSeparator||((e,n,t)=>{n=n||"",t=t||"";const r=Kt.filter(e=>n.indexOf(e)<0&&t.indexOf(e)<0);if(0===r.length)return!0;const i=Zt.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let o=!i.test(e);if(!o){const n=e.indexOf(t);n>0&&!i.test(e.substring(0,n))&&(o=!0)}return o})(e,t,r));if(o&&!a){const n=e.match(this.interpolator.nestingRegexp);if(n&&n.length>0)return{key:e,namespaces:Rt(i)?[i]:i};const o=e.split(t);(t!==r||t===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return{key:e,namespaces:Rt(i)?[i]:i}}translate(e,n,t){let r="object"==typeof n?{...n}:n;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=or(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);const i=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],r),l=s[s.length-1];let c=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const d=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===d?.toLowerCase())return u?i?{res:`${l}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${c}${a}`:i?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:a;const p=this.resolve(e,r);let f=p?.res;const h=p?.usedKey||a,g=p?.exactUsedKey||a,m=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,x=void 0!==r.count&&!Rt(r.count),b=lr.hasDefaultValue(r),y=x?this.pluralResolver.getSuffix(d,r.count,r):"",C=r.ordinal&&x?this.pluralResolver.getSuffix(d,r.count,{ordinal:!1}):"",w=x&&!r.ordinal&&0===r.count,_=w&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${y}`]||r[`defaultValue${C}`]||r.defaultValue;let E=f;v&&!f&&b&&(E=_);const N=sr(E),S=Object.prototype.toString.apply(E);if(!(v&&E&&N&&["[object Number]","[object Function]","[object RegExp]"].indexOf(S)<0)||Rt(m)&&Array.isArray(E))if(v&&Rt(m)&&Array.isArray(f))f=f.join(m),f&&(f=this.extendTranslation(f,e,r,t));else{let n=!1,i=!1;!this.isValidLookup(f)&&b&&(n=!0,f=_),this.isValidLookup(f)||(i=!0,f=a);const s=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:f,u=b&&_!==f&&this.options.updateMissing;if(i||n||u){if(this.logger.log(u?"updateKey":"missingKey",d,l,a,u?_:f),o){const e=this.resolve(a,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const t=(e,n,t)=>{const i=b&&t!==f?t:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,i,u,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,n,i,u,r),this.emit("missingKey",e,l,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?e.forEach(e=>{const n=this.pluralResolver.getSuffixes(e,r);w&&r[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach(n=>{t([e],a+n,r[`defaultValue${n}`]||_)})}):t(e,a,_))}f=this.extendTranslation(f,e,r,p,t),i&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}${c}${a}`),(i||n)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${c}${a}`:a,n?f:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...r,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(p.res=e,p.usedParams=this.getUsedParamsDetails(r),p):e}if(o){const e=Array.isArray(E),n=e?[]:{},t=e?g:h;for(const e in E)if(Object.prototype.hasOwnProperty.call(E,e)){const i=`${t}${o}${e}`;n[e]=b&&!f?this.translate(i,{...r,defaultValue:sr(_)?_[e]:void 0,joinArrays:!1,ns:s}):this.translate(i,{...r,joinArrays:!1,ns:s}),n[e]===i&&(n[e]=E[e])}f=n}}return i?(p.res=f,p.usedParams=this.getUsedParamsDetails(r),p):f}extendTranslation(e,n,t,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...t},t.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!t.skipInterpolation){t.interpolation&&this.interpolator.init({...t,interpolation:{...this.options.interpolation,...t.interpolation}});const o=Rt(e)&&(void 0!==t?.interpolation?.skipOnVariables?t.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(o){const n=e.match(this.interpolator.nestingRegexp);a=n&&n.length}let s=t.replace&&!Rt(t.replace)?t.replace:t;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,t.lng||this.language||r.usedLng,t),o){const n=e.match(this.interpolator.nestingRegexp);a<(n&&n.length)&&(t.nest=!1)}!t.lng&&r&&r.res&&(t.lng=this.language||r.usedLng),!1!==t.nest&&(e=this.interpolator.nest(e,(...e)=>i?.[0]!==e[0]||t.context?this.translate(...e,n):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${n[0]}`),null),t)),t.interpolation&&this.interpolator.reset()}const o=t.postProcess||this.options.postProcess,a=Rt(o)?[o]:o;return null!=e&&a?.length&&!1!==t.applyPostProcessor&&(e=rr.handle(a,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(t)},...t}:t,this)),e}resolve(e,n={}){let t,r,i,o,a;return Rt(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,n),l=s.key;r=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const d=void 0!==n.count&&!Rt(n.count),u=d&&!n.ordinal&&0===n.count,p=void 0!==n.context&&(Rt(n.context)||"number"==typeof n.context)&&""!==n.context,f=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);c.forEach(e=>{this.isValidLookup(t)||(a=e,ar[`${f[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(a)||(ar[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(r=>{if(this.isValidLookup(t))return;o=r;const a=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,r,e,n);else{let e;d&&(e=this.pluralResolver.getSuffix(r,n.count,n));const t=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(n.ordinal&&0===e.indexOf(i)&&a.push(l+e.replace(i,this.options.pluralSeparator)),a.push(l+e),u&&a.push(l+t)),p){const r=`${l}${this.options.contextSeparator||"_"}${n.context}`;a.push(r),d&&(n.ordinal&&0===e.indexOf(i)&&a.push(r+e.replace(i,this.options.pluralSeparator)),a.push(r+e),u&&a.push(r+t))}}let s;for(;s=a.pop();)this.isValidLookup(t)||(i=s,t=this.getResource(r,e,s,n))}))})}),{res:t,usedKey:r,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,n,t,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,t,r):this.resourceStore.getResource(e,n,t,r)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],t=e.replace&&!Rt(e.replace);let r=t?e.replace:e;if(t&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t){r={...r};for(const e of n)delete r[e]}return r}static hasDefaultValue(e){const n="defaultValue";for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}class cr{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=er.create("languageUtils")}getScriptPartFromCode(e){if(!(e=qt(e))||e.indexOf("-")<0)return null;const n=e.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}getLanguagePartFromCode(e){if(!(e=qt(e))||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Rt(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch(e){}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(e=>{if(n)return;const t=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(t)||(n=t)}),!n&&this.options.supportedLngs&&e.forEach(e=>{if(n)return;const t=this.getScriptPartFromCode(e);if(this.isSupportedCode(t))return n=t;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0)}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if("function"==typeof e&&(e=e(n)),Rt(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let t=e[n];return t||(t=e[this.getScriptPartFromCode(n)]),t||(t=e[this.formatLanguageCode(n)]),t||(t=e[this.getLanguagePartFromCode(n)]),t||(t=e.default),t||[]}toResolveHierarchy(e,n){const t=this.getFallbackCodes((!1===n?[]:n)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return Rt(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):Rt(e)&&i(this.formatLanguageCode(e)),t.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}}const dr={zero:0,one:1,two:2,few:3,many:4,other:5},ur={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class pr{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=er.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const t=qt("dev"===e?"en":e),r=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:t,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(t,{type:r})}catch(t){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),ur;if(!e.match(/-|_/))return ur;const r=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(r,n)}return this.pluralRulesCache[i]=o,o}needsPlural(e,n={}){let t=this.getRule(e,n);return t||(t=this.getRule("dev",n)),t?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n,t={}){return this.getSuffixes(e,t).map(e=>`${n}${e}`)}getSuffixes(e,n={}){let t=this.getRule(e,n);return t||(t=this.getRule("dev",n)),t?t.resolvedOptions().pluralCategories.sort((e,n)=>dr[e]-dr[n]).map(e=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,n,t={}){const r=this.getRule(e,t);return r?`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,t))}}const fr=(e,n,t,r=".",i=!0)=>{let o=((e,n,t)=>{const r=Ft(e,t);return void 0!==r?r:Ft(n,t)})(e,n,t);return!o&&i&&Rt(t)&&(o=Xt(e,t,r),void 0===o&&(o=Xt(n,t,r))),o},hr=e=>e.replace(/\$/g,"$$$$");class gr{constructor(e={}){this.logger=er.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:t,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:u,nestingPrefixEscaped:p,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=void 0!==n?n:Wt,this.escapeValue=void 0===t||t,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?$t(i):o||"{{",this.suffix=a?$t(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=u?$t(u):p||$t("$t("),this.nestingSuffix=f?$t(f):h||$t(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,n)=>e?.source===n?(e.lastIndex=0,e):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,t,r){let i,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const i=fr(n,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,t,{...r,...n,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(fr(n,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,t,{...r,...n,interpolationkey:o})};this.resetRegExp();const c=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>hr(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?hr(this.escape(e)):hr(e)}].forEach(n=>{for(a=0;i=n.regex.exec(e);){const t=i[1].trim();if(o=l(t),void 0===o)if("function"==typeof c){const n=c(e,i,r);o=Rt(n)?n:""}else if(r&&Object.prototype.hasOwnProperty.call(r,t))o="";else{if(d){o=i[0];continue}this.logger.warn(`missed to pass in variable ${t} for interpolating ${e}`),o=""}else Rt(o)||this.useRawValueToEscape||(o=Ht(o));const s=n.safeValue(o);if(e=e.replace(i[0],s),d?(n.regex.lastIndex+=o.length,n.regex.lastIndex-=i[0].length):n.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,n,t={}){let r,i,o;const a=(e,n)=>{const t=this.nestingOptionsSeparator;if(e.indexOf(t)<0)return e;const r=e.split(new RegExp(`${t}[ ]*{`));let i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);const a=i.match(/'/g),s=i.match(/"/g);((a?.length??0)%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),n&&(o={...n,...o})}catch(n){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,n),`${e}${t}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];o={...t},o=o.replace&&!Rt(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const l=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==l&&(s=r[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,l)),i=n(a.call(this,r[1].trim(),o),o),i&&r[0]===e&&!Rt(i))return i;Rt(i)||(i=Ht(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),s.length&&(i=s.reduce((e,n)=>this.format(e,n,t.lng,{...t,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const mr=e=>{const n={};return(t,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=n[a];return s||(s=e(qt(r),i),n[a]=s),s(t)}},vr=e=>(n,t,r)=>e(qt(t),r)(n);class xr{constructor(e={}){this.logger=er.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const t=n.cacheInBuiltFormats?mr:vr;this.formats={number:t((e,n)=>{const t=new Intl.NumberFormat(e,{...n});return e=>t.format(e)}),currency:t((e,n)=>{const t=new Intl.NumberFormat(e,{...n,style:"currency"});return e=>t.format(e)}),datetime:t((e,n)=>{const t=new Intl.DateTimeFormat(e,{...n});return e=>t.format(e)}),relativetime:t((e,n)=>{const t=new Intl.RelativeTimeFormat(e,{...n});return e=>t.format(e,n.range||"day")}),list:t((e,n)=>{const t=new Intl.ListFormat(e,{...n});return e=>t.format(e)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=mr(n)}format(e,n,t,r={}){const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(e=>e.indexOf(")")>-1)){const e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,n)=>{const{formatName:i,formatOptions:o}=(e=>{let n=e.toLowerCase().trim();const t={};if(e.indexOf("(")>-1){const r=e.split("(");n=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===n&&i.indexOf(":")<0?t.currency||(t.currency=i.trim()):"relativetime"===n&&i.indexOf(":")<0?t.range||(t.range=i.trim()):i.split(";").forEach(e=>{if(e){const[n,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=n.trim();t[o]||(t[o]=i),"false"===i&&(t[o]=!1),"true"===i&&(t[o]=!0),isNaN(i)||(t[o]=parseInt(i,10))}})}return{formatName:n,formatOptions:t}})(n);if(this.formats[i]){let n=e;try{const a=r?.formatParams?.[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||t;n=this.formats[i](e,s,{...o,...r,...a})}catch(e){this.logger.warn(e)}return n}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class br extends nr{constructor(e,n,t,r={}){super(),this.backend=e,this.store=n,this.services=t,this.languageUtils=t.languageUtils,this.options=r,this.logger=er.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(t,r.backend,r)}queueLoad(e,n,t,r){const i={},o={},a={},s={};return e.forEach(e=>{let r=!0;n.forEach(n=>{const a=`${e}|${n}`;!t.reload&&this.store.hasResourceBundle(e,n)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[n]&&(s[n]=!0)))}),r||(a[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,n,t){const r=e.split("|"),i=r[0],o=r[1];n&&this.emit("failedLoading",i,o,n),!n&&t&&this.store.addResourceBundle(i,o,t,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&t&&(this.state[e]=0);const a={};this.queue.forEach(t=>{((e,n,t)=>{const{obj:r,k:i}=Bt(e,n,Object);r[i]=r[i]||[],r[i].push(t)})(t.loaded,[i],o),((e,n)=>{void 0!==e.pending[n]&&(delete e.pending[n],e.pendingCount--)})(t,e),n&&t.errors.push(n),0!==t.pendingCount||t.done||(Object.keys(t.loaded).forEach(e=>{a[e]||(a[e]={});const n=t.loaded[e];n.length&&n.forEach(n=>{void 0===a[e][n]&&(a[e][n]=!0)})}),t.done=!0,t.errors.length?t.callback(t.errors):t.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,n,t,r=0,i=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:n,fcName:t,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,n,t,r+1,2*i,o)},i):o(a,s)},s=this.backend[t].bind(this.backend);if(2!==s.length)return s(e,n,a);try{const t=s(e,n);t&&"function"==typeof t.then?t.then(e=>a(null,e)).catch(a):a(null,t)}catch(e){a(e)}}prepareLoading(e,n,t={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Rt(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Rt(n)&&(n=[n]);const i=this.queueLoad(e,n,t,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,n,t){this.prepareLoading(e,n,{},t)}reload(e,n,t){this.prepareLoading(e,n,{reload:!0},t)}loadOne(e,n=""){const t=e.split("|"),r=t[0],i=t[1];this.read(r,i,"read",void 0,void 0,(t,o)=>{t&&this.logger.warn(`${n}loading namespace ${i} for language ${r} failed`,t),!t&&o&&this.logger.log(`${n}loaded namespace ${i} for language ${r}`,o),this.loaded(e,t,o)})}saveMissing(e,n,t,r,i,o={},a=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(n)){if(null!=t&&""!==t){if(this.backend?.create){const s={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(e,n,t,r,s):l(e,n,t,r),i&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else l(e,n,t,r,a,s)}e&&e[0]&&this.store.addResource(e[0],n,t,r)}}else this.logger.warn(`did not save key "${t}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const yr=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let n={};if("object"==typeof e[1]&&(n=e[1]),Rt(e[1])&&(n.defaultValue=e[1]),Rt(e[2])&&(n.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const t=e[3]||e[2];Object.keys(t).forEach(e=>{n[e]=t[e]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Cr=e=>(Rt(e.ns)&&(e.ns=[e.ns]),Rt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Rt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),wr=()=>{};class _r extends nr{constructor(e={},n){var t;if(super(),this.options=Cr(e),this.services={},this.logger=er,this.modules={external:[]},t=this,Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(e=>{"function"==typeof t[e]&&(t[e]=t[e].bind(t))}),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,"function"==typeof e&&(n=e,e={}),null==e.defaultNS&&e.ns&&(Rt(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const t=yr();this.options={...t,...this.options,...Cr(e)},this.options.interpolation={...t.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=t.overloadTranslationOptionHandler),!0===this.options.debug&&"undefined"!=typeof console&&console.warn("i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com");const r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?er.init(r(this.modules.logger),this.options):er.init(null,this.options),e=this.modules.formatter?this.modules.formatter:xr;const n=new cr(this.options);this.store=new tr(this.options.resources,this.options);const i=this.services;i.logger=er,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new pr(n,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==t.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==t.interpolation.format||(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new gr(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new br(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(e,...n)=>{this.emit(e,...n)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new lr(this.services,this.options),this.translator.on("*",(e,...n)=>{this.emit(e,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=wr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...n)=>this.store[e](...n)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...n)=>(this.store[e](...n),this)});const i=Dt(),o=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),n(e,t)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?o():setTimeout(o,0),i}loadResources(e,n=wr){let t=n;const r=Rt(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===r?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],n=n=>{if(!n)return;if("cimode"===n)return;this.services.languageUtils.toResolveHierarchy(n).forEach(n=>{"cimode"!==n&&e.indexOf(n)<0&&e.push(n)})};if(r)n(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>n(e))}this.options.preload?.forEach?.(e=>n(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,n,t){const r=Dt();return"function"==typeof e&&(t=e,e=void 0),"function"==typeof n&&(t=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),t||(t=wr),this.services.backendConnector.reload(e,n,e=>{r.resolve(),t(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&rr.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const n=this.languages[e];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const t=Dt();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,o)=>{o?this.isLanguageChangingTo===e&&(r(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,t.resolve((...e)=>this.t(...e)),n&&n(i,(...e)=>this.t(...e))},o=n=>{e||n||!this.services.languageDetector||(n=[]);const t=Rt(n)?n:n&&n[0],o=this.store.hasLanguageSomeTranslations(t)?t:this.services.languageUtils.getBestMatchFromCodes(Rt(n)?[n]:n);o&&(this.language||r(o),this.translator.language||this.translator.changeLanguage(o),this.services.languageDetector?.cacheUserLanguage?.(o)),this.loadResources(o,e=>{i(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),t}getFixedT(e,n,t){const r=(e,n,...i)=>{let o;o="object"!=typeof n?this.options.overloadTranslationOptionHandler([e,n].concat(i)):{...n},o.lng=o.lng||r.lng,o.lngs=o.lngs||r.lngs,o.ns=o.ns||r.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||t||r.keyPrefix);const a=this.options.keySeparator||".";let s;return o.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=or(e,{...this.options,...n})),`${o.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=or(e,{...this.options,...n})),s=o.keyPrefix?`${o.keyPrefix}${a}${e}`:e),this.t(s,o)};return Rt(e)?r.lng=e:r.lngs=e,r.ns=n,r.keyPrefix=t,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const t=n.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===t.toLowerCase())return!0;const o=(e,n)=>{const t=this.services.backendConnector.state[`${e}|${n}`];return-1===t||0===t||2===t};if(n.precheck){const e=n.precheck(this,o);if(void 0!==e)return e}return!!this.hasResourceBundle(t,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(t,e)||r&&!o(i,e)))}loadNamespaces(e,n){const t=Dt();return this.options.ns?(Rt(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{t.resolve(),n&&n(e)}),t):(n&&n(),Promise.resolve())}loadLanguages(e,n){const t=Dt();Rt(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{t.resolve(),n&&n(e)}),t):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const n=new Intl.Locale(e);if(n&&n.getTextInfo){const e=n.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const n=this.services?.languageUtils||new cr(yr());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const t=new _r(e,n);return t.createInstance=_r.createInstance,t}cloneInstance(e={},n=wr){const t=e.forkResourceStore;t&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new _r(r);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));if(["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},t){const e=Object.keys(this.store.data).reduce((e,n)=>(e[n]={...this.store.data[n]},e[n]=Object.keys(e[n]).reduce((t,r)=>(t[r]={...e[n][r]},t),e[n]),e),{});i.store=new tr(e,r),i.services.resourceStore=i.store}if(e.interpolation){const n={...yr().interpolation,...this.options.interpolation,...e.interpolation},t={...r,interpolation:n};i.services.interpolator=new gr(t)}return i.translator=new lr(i.services,r),i.translator.on("*",(e,...n)=>{i.emit(e,...n)}),i.init(r,n),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Er=_r.createInstance(),Nr={},Sr=(e,n,t,r)=>{Ar(t)&&Nr[t]||(Ar(t)&&(Nr[t]=new Date),((e,n,t,r)=>{const i=[t,{code:n,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);Ar(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)})(e,n,t,r))},Tr=(e,n)=>()=>{if(e.isInitialized)n();else{const t=()=>{setTimeout(()=>{e.off("initialized",t)},0),n()};e.on("initialized",t)}},Or=(e,n,t)=>{e.loadNamespaces(n,Tr(e,t))},Lr=(e,n,t,r)=>{if(Ar(t)&&(t=[t]),e.options.preload&&e.options.preload.indexOf(n)>-1)return Or(e,t,r);t.forEach(n=>{e.options.ns.indexOf(n)<0&&e.options.ns.push(n)}),e.loadLanguages(n,Tr(e,r))},Ar=e=>"string"==typeof e,kr=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Mr={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Ir=e=>Mr[e];let jr={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(kr,Ir),transDefaultProps:void 0};let Rr;const Dr={type:"3rdParty",init(e){((e={})=>{jr={...jr,...e}})(e.options.react),(e=>{Rr=e})(e)}},Hr=n.createContext();class Pr{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var zr,Vr={exports:{}},Br={};var Ur,Fr={};"production"===process.env.NODE_ENV?Vr.exports=function(){if(zr)return Br;zr=1;var e=u.default,n="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},t=e.useState,r=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function a(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var s=n(),l=t({inst:{value:s,getSnapshot:n}}),c=l[0].inst,d=l[1];return i(function(){c.value=s,c.getSnapshot=n,a(c)&&d({inst:c})},[e,s,n]),r(function(){return a(c)&&d({inst:c}),e(function(){a(c)&&d({inst:c})})},[e]),o(s),s};return Br.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,Br}():Vr.exports=(Ur||(Ur=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=u.default,t="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},r=n.useState,i=n.useEffect,o=n.useLayoutEffect,a=n.useDebugValue,s=!1,l=!1,c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(c,d){s||void 0===n.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var u=d();if(!l){var p=d();t(u,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var f=(p=r({inst:{value:u,getSnapshot:d}}))[0].inst,h=p[1];return o(function(){f.value=u,f.getSnapshot=d,e(f)&&h({inst:f})},[c,u,d]),i(function(){return e(f)&&h({inst:f}),c(function(){e(f)&&h({inst:f})})},[c]),a(u),u};Fr.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Fr);var Yr=Vr.exports;const $r={t:(e,n)=>{return Ar(n)?n:"object"==typeof(t=n)&&null!==t&&Ar(n.defaultValue)?n.defaultValue:Array.isArray(e)?e[e.length-1]:e;var t},ready:!1},Gr=()=>()=>{},Wr=(e,t={})=>{const{i18n:r}=t,{i18n:i,defaultNS:o}=n.useContext(Hr)||{},a=r||i||Rr;a&&!a.reportNamespaces&&(a.reportNamespaces=new Pr),a||Sr(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const s=n.useMemo(()=>({...jr,...a?.options?.react,...t}),[a,t]),{useSuspense:l,keyPrefix:c}=s,d=e||o||a?.options?.defaultNS,u=Ar(d)?[d]:d||["translation"],p=n.useMemo(()=>u,u);a?.reportNamespaces?.addUsedNamespaces?.(p);const f=n.useRef(0),h=n.useCallback(e=>{if(!a)return Gr;const{bindI18n:n,bindI18nStore:t}=s,r=()=>{f.current+=1,e()};return n&&a.on(n,r),t&&a.store.on(t,r),()=>{n&&n.split(" ").forEach(e=>a.off(e,r)),t&&t.split(" ").forEach(e=>a.store.off(e,r))}},[a,s]),g=n.useRef(),m=n.useCallback(()=>{if(!a)return $r;const e=!(!a.isInitialized&&!a.initializedStoreOnce)&&p.every(e=>((e,n,t={})=>n.languages&&n.languages.length?n.hasLoadedNamespace(e,{lng:t.lng,precheck:(n,r)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!r(n.isLanguageChangingTo,e))return!1}}):(Sr(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0))(e,a,s)),n=t.lng||a.language,r=f.current,i=g.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;const o={t:a.getFixedT(n,"fallback"===s.nsMode?p:p[0],c),ready:e,lng:n,keyPrefix:c,revision:r};return g.current=o,o},[a,p,c,s,t.lng]),[v,x]=n.useState(0),{t:b,ready:y}=Yr.useSyncExternalStore(h,m,m);n.useEffect(()=>{if(a&&!y&&!l){const e=()=>x(e=>e+1);t.lng?Lr(a,t.lng,p,e):Or(a,p,e)}},[a,t.lng,p,y,l,v]);const C=a||{},w=n.useRef(null),_=n.useRef(),E=e=>{const n=Object.getOwnPropertyDescriptors(e);n.__original&&delete n.__original;const t=Object.create(Object.getPrototypeOf(e),n);if(!Object.prototype.hasOwnProperty.call(t,"__original"))try{Object.defineProperty(t,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return t},N=n.useMemo(()=>{const e=C,n=e?.language;let t=e;e&&(w.current&&w.current.__original===e?_.current!==n?(t=E(e),w.current=t,_.current=n):t=w.current:(t=E(e),w.current=t,_.current=n));const r=[b,t,y];return r.t=b,r.i18n=t,r.ready=y,r},[b,C,y,C.resolvedLanguage,C.language,C.languages]);if(a&&l&&!y)throw new Promise(e=>{const n=()=>e();t.lng?Lr(a,t.lng,p,n):Or(a,p,n)});return N};function Kr({i18n:e,defaultNS:t,children:r}){const i=n.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return n.createElement(Hr.Provider,{value:i},r)}var Zr={MODAL_TITLE:"标题",MODAL_OKTEXT:"确认",MODAL_CANCELTEXT:"取消",EMPTY_DESCRIPTION:"空状态组件,用于在数据为空时展示友好的提示信息。",SELECT_PLACEHOLDER:"请选择",INTRO:"简介",INSTALL:"安装",I18N:"国际化",BUTTON:"按钮",COLORPICKER:"颜色选择器",COPYTOCLIPBOARD:"剪贴板复制",DIVIDER:"分割线",EMPTY:"空状态",FLEX:"弹性布局",ICON:"icon",INPUT:"输入框",MARQUEE:"跑马灯",MESSAGE:"消息提示",NOTICE:"公告栏",NOTIFICATION:"通知",RADIO:"单选框",TABLE:"表格",TOP:"回到顶部",TYPOGRAPHY:"排版",VARIABLES:"自定义变量",API_REF:"API 参考",IDP_DESIGN:"ZjpCy Design",IDP_STUDIO:"IDP Studio",INTRO_DESCRIPTION:"ZjpCy Design 组件库介绍",INSTALL_DESCRIPTION:"如何安装和引用",I18N_DESCRIPTION:"组件库国际化支持",BUTTON_DESCRIPTION:"可定制的按钮组件,支持多种样式和尺寸。",COLORPICKER_DESCRIPTION:"用于选择颜色的组件,支持预设颜色、透明度调整和渐变色等功能。",COPYTOCLIPBOARD_DESCRIPTION:"用于将文本复制到剪贴板的组件,支持自定义样式和状态回调。",DIVIDER_DESCRIPTION:"用于页面内容分割的组件,支持横向和纵向两种方向,以及实线和虚线两种类型。",FLEX_DESCRIPTION:"通用的 flex 布局组件,提供灵活的布局方式。",ICON_DESCRIPTION:"图标组件",INPUT_DESCRIPTION:"输入框组件",MARQUEE_DESCRIPTION:"这是一个可定制的滚动公告栏组件,支持多种样式和配置选项。",MESSAGE_DESCRIPTION:"消息提示组件",NOTICE_DESCRIPTION:"公告栏组件",NOTIFICATION_DESCRIPTION:"通知组件",RADIO_DESCRIPTION:"单选框组件",SELECT_DESCRIPTION:"选择器组件",TABLE_DESCRIPTION:"表格组件",TOP_DESCRIPTION:"回到顶部组件",TYPOGRAPHY_DESCRIPTION:"排版组件,支持自定义宽度和行数限制,超过行数限制时显示省略号。",VARIABLES_DESCRIPTION:"自定义组件库主题颜色",API_REF_DESCRIPTION:"查看组件 API 文档",LANGUAGE_SWITCH:"语言切换",ENGLISH:"English",CHINESE:"中文",VERSION:"版本",BUTTON_COMPONENT:"Button 组件",BASIC_USAGE:"基本使用",SHOW_VARIANTS_SIZES:"展示不同变体和尺寸的按钮。",VARIANT_BUTTONS:"变体按钮",SIZE_BUTTONS:"尺寸按钮",DISABLED_STATE:"禁用状态",ICON_BUTTONS:"带图标按钮",CUSTOM_STYLE:"自定义样式",API_PARAMETERS:"API 参数",PARAM_NAME:"参数名",TYPE:"类型",DEFAULT_VALUE:"默认值",DESCRIPTION:"描述",CHILDREN:"children",CHILDREN_DESC:"按钮文本内容",VARIANT:"variant",VARIANT_DESC:"按钮变体样式",SIZE:"size",SIZE_DESC:"按钮尺寸",DISABLED:"disabled",DISABLED_DESC:"是否禁用按钮",ON_CLICK:"onClick",ON_CLICK_DESC:"点击事件回调",CLASS_NAME:"className",CLASS_NAME_DESC:"自定义 CSS 类名",STYLE:"style",STYLE_DESC:"自定义内联样式",ICON_DESC:"按钮前缀图标,支持字符串(内置图标名)或自定义图标节点",CODE_EXAMPLES:"代码示例",USAGE_IN_OTHER_PROJECTS:"在其他项目中引用",BASIC_USAGE_CODE:"基本用法",DIFFERENT_SIZES:"不同尺寸",DISABLED_BUTTON:"禁用状态",BUTTON_WITH_ICON:"带图标按钮",BUTTON_SEARCH:"搜索",BUTTON_USER:"用户",BUTTON_DELETE:"删除",BUTTON_CONFIRM:"确认",BUTTON_WARNING:"警告",CUSTOM_STYLE_CLICK:"自定义样式和点击事件",INSTALLATION:"安装",INSTALLATION_DESCRIPTION:"ZjpCy Design 组件库支持多种安装方式,您可以根据实际需求选择适合的安装方法。",LOCAL_FILE_INSTALLATION:"从本地文件安装",LOCAL_FILE_INSTALLATION_DESC:"如果您已经获取了 ZjpCy Design 组件库的本地文件,可以通过以下方式安装:",NPM_LOCAL_INSTALL:"使用 npm 从本地目录安装",NPM_LOCAL_INSTALL_DESC:"将本地组件库目录作为依赖安装到您的项目中:",YARN_LOCAL_INSTALL:"使用 yarn 从本地目录安装",PATH_TO_IDP_DESIGN:"/path/to/idp-design",PATH_TO_IDP_DESIGN_DESC:"是您本地 ZjpCy Design 组件库的绝对路径。",GIT_REPO_INSTALLATION:"从 Git 仓库安装",GIT_REPO_INSTALLATION_DESC:"您可以直接从 Git 仓库安装 ZjpCy Design 组件库,支持指定分支或标签:",LATEST_MAIN_BRANCH:"安装主分支最新版本",SPECIFIC_BRANCH:"安装指定分支",BRANCH_NAME:"branch-name",BRANCH_NAME_DESC:"替换为您想要安装的分支名称,例如",EXAMPLE_BRANCHES:"dev 或 feature/new-component。",SPECIFIC_TAG:"安装指定标签版本",V1_0_0:"v1.0.0",V1_0_0_DESC:"替换为您想要安装的具体版本标签。",UPDATING_DEPENDENCIES:"更新依赖",UPDATING_DEPENDENCIES_DESC:"当 ZjpCy Design 组件库有新版本发布时,您可以通过以下方式更新依赖:",UPDATING_INSTALLED_DEPENDENCIES:"更新本地安装的依赖",REINSTALLING_LOCAL_FILES:"重新安装本地文件依赖",USING_FORCE_PARAM:"使用 --force 参数强制重新安装,确保获取最新的本地文件。",UPDATING_GIT_DEPENDENCIES:"更新 Git 仓库依赖",UNINSTALL_REINSTALL:"或者先卸载再重新安装:",SEARCH:"搜索",USER:"用户",DELETE:"删除",CONFIRM:"确认",WARNING:"警告",REFERENCE_COMPONENT:"引用组件",COLORPICKER_COMPONENT:"ColorPicker 组件",DIVIDER_ORIENTATION:"分割线方向",DIVIDER_TYPE:"分割线类型",DIVIDER_COLOR:"分割线颜色",DIVIDER_COMPONENT:"Divider 组件",DIVIDER_SHOW_ORIENTATIONS_TYPES:"展示不同方向和类型的分割线。",HORIZONTAL_DIVIDER:"横向分割线",ABOVE_DEFAULT_HORIZONTAL:"上方是默认的横向分割线",BELOW_DEFAULT_HORIZONTAL:"下方是默认的横向分割线",VERTICAL_DIVIDER:"纵向分割线",LEFT_CONTENT:"左侧内容",RIGHT_CONTENT:"右侧内容",SOLID_DASHED:"实线与虚线",ABOVE_SOLID_DEFAULT:"上方是实线分割线(默认)",CONTENT_BETWEEN_DIVIDERS:"实线分割线和虚线分割线之间的内容",BELOW_DASHED:"下方是虚线分割线",CUSTOM_COLOR:"颜色自定义",DIVIDERS_DIFFERENT_COLORS:"不同颜色的分割线",COMBINED_USAGE:"组合用法",HORIZONTAL_DASHED_CUSTOM_COLOR:"横向虚线,自定义颜色",DIVIDERS_CUSTOM_STYLE:"带有自定义样式的分割线",DIVIDER_WITH_TEXT:"带文本的分割线效果",TEXT_CONTENT:"文本内容",COPY_URL_OR_TEXT_CONTENT:"需要复制的URL或文本内容",COPY_STATUS_CHANGE_CALLBACK:"复制状态变化回调",CUSTOM_CHILD_ELEMENT:"自定义子元素",COPY_OPERATION_PROMISE:"复制操作的Promise",COPY_SUCCESS:"复制成功!",COPY_FAILED:"复制失败!",COPYTOCLIPBOARD_COMPONENT:"CopyToClipboard 组件",DISPLAY_DIFFERENT_STYLES_COPY_BUTTONS:"展示不同样式的复制按钮。",TEXT_LINK_STYLE:"文本链接样式",COPY_LINK:"复制链接",BUTTON_STYLE:"按钮样式",CLICK_TO_COPY_CUSTOM_LINK:"点击复制自定义链接",STYLED_LINK:"带样式的链接",COPY_STYLED_LINK:"复制带样式的链接",USING_USECOPY_HOOK:"使用 useCopy 钩子",USE_USECOPY_TO_COPY_LINK:"使用 useCopy 复制链接",COMPONENT:"组件",HOOK:"钩子",SUCCESS:"成功",EMPTY_COMPONENT:"Empty 空状态",DEFAULT_EMPTY_STATE:"默认空状态",CUSTOM_DESCRIPTION:"自定义描述",CUSTOM_ICON:"自定义图标",CUSTOM_IMAGE:"自定义图片",WITH_ACTION_BUTTON:"带操作按钮",LARGE_SIZE:"大尺寸",MIDDLE_SIZE:"中尺寸",SMALL_SIZE:"小尺寸",NO_EXCEL_FILE:"暂无Excel文件",UPLOAD_FILE:"上传文件",VIEW_TEMPLATE:"查看模板",LOAD_DATA:"点击加载",TRANSPARENCY_ADJUSTMENT:"透明度调整",ENABLE_ALPHA_PROPERTY:"通过 alpha 属性启用透明度调整,支持 RGBA 颜色格式。",WITH_TRANSPARENCY:"带透明度",PRESET_COLORS:"预设颜色",SET_PRESET_COLORS:"通过 presetColors 属性设置常用的预设颜色,方便快速选择。",DISABLE_COLOR_PICKER:"通过 disabled 属性禁用颜色选择器,禁用后无法打开选择面板。",COLOR_SQUARE:"颜色方块",COLOR_TEXT:"颜色文字",COLOR_BUTTON:"颜色按钮",SELECT_COLOR:"选择颜色",CUSTOM_STYLE_PROPERTY:"通过 style 属性自定义颜色选择器的样式。",CUSTOM_BORDER_RADIUS:"自定义圆角",GRADIENT_SUPPORT:"渐变色支持",ENABLE_GRADIENT:"通过 gradient 属性启用渐变色支持,支持线性渐变颜色选择。",BASIC_GRADIENT:"基本渐变色",GRADIENT_COLOR:"渐变颜色",FEATURES:"特性说明",LIGHTWEIGHT:"轻量:仅 2.8KB gzipped(比 react-color 轻 13 倍)",TREE_SHAKING:"支持树摇:仅导入使用的部分",FAST:"快速:使用 hooks 和函数组件",TYPE_SAFE:"类型安全:严格的 TypeScript 支持",MOBILE_FRIENDLY:"移动端友好:支持触摸设备",ACCESSIBLE:"可访问性:遵循 WAI-ARIA 指南",NO_DEPENDENCIES:"无依赖:不依赖其他库",FLEX_COMPONENT:"Flex 组件",INTERACTIVE_EXAMPLE:"交互式示例",ADJUST_PROPERTIES:"通过下方的按钮和输入框,实时调整 flex 布局的各项属性。",ITEM_COUNT:"项目数量",ITEMS:"个项目",DIRECTION:"Direction (优先级高于Layout)",CURRENT_VALUE:"当前值",DEMONSTRATION_EFFECT:"演示效果",CURRENT_CONFIGURATION:"当前配置",MULTI_LEVEL_NESTING:"多层次嵌套示例",NESTING_DESCRIPTION:"展示 Flex 组件的多层次嵌套使用,实现复杂的布局结构。",TITLE_AREA:"标题区域",VERTICAL_LAYOUT:"垂直布局",CENTER_ALIGNMENT:"居中对齐",JUSTIFY_BETWEEN:"两端对齐",WRAP_LAYOUT:"换行布局",COMPLEX_USAGE:"复合使用",ACTION_AREA:"操作区域",FLEX_CHILDREN_DESC:"子组件内容",FLEX_LAYOUT_DESC:"快速设置布局方向,horizontal 为水平布局,column 为列布局",FLEX_DIRECTION_DESC:"flex-direction 属性,优先级高于 layout",FLEX_JUSTIFY_DESC:"justify-content 属性",FLEX_ALIGN_DESC:"align-items 属性",FLEX_WRAP_DESC:"flex-wrap 属性",FLEX_GAP_DESC:"gap 属性,支持数值(px)和字符串",CENTER_CONTENT:"居中内容",MARQUEE_COMPONENT:"Marquee 公告组件",DEFAULT_CONFIGURATION:"1. 默认配置",DEFAULT_CONFIG_DESC:"默认高度: 40px, 默认速度: 50, 默认渐变背景",DEFAULT_ANNOUNCEMENT:"这是一条默认配置的公告信息,从右向左滚动,播放完毕后会自动重复播放!",CUSTOM_HEIGHT:"支持自定义公告栏高度(默认为60px,范围30-100px)",HEIGHT_60PX:"高度: 60px",CUSTOM_HEIGHT_ANNOUNCEMENT:"这是一条自定义高度为60px的公告信息!",CUSTOM_SPEED:"3. 自定义速度",SLOW_SPEED:"慢速: 20",SLOW_SPEED_ANNOUNCEMENT:"这是一条慢速滚动的公告信息,速度为20!",FAST_SPEED:"快速: 100",FAST_SPEED_ANNOUNCEMENT:"这是一条快速滚动的公告信息,速度为100!",CUSTOM_BACKGROUND:"4. 自定义背景色",CUSTOM_GRADIENT_BACKGROUND:"自定义渐变背景",GRADIENT_BACKGROUND_ANNOUNCEMENT_1:"这是一条自定义渐变背景的公告信息",GRADIENT_BACKGROUND_ANNOUNCEMENT_2:"这是第二条自定义渐变背景的公告信息",COMPREHENSIVE_CUSTOM:"5. 综合自定义",COMPREHENSIVE_CUSTOM_DESC:"高度: 50px, 速度: 75, 自定义背景",COMPREHENSIVE_ANNOUNCEMENT:"这是一条综合自定义配置的公告信息,高度50px,速度75,自定义渐变背景!",FIXED_TOP:"6. 固定到顶部",FIXED_TOP_DESC:"fixed=true,公告栏会浮动固定在页面顶部",FIXED_TOP_ANNOUNCEMENT:"这是一条固定顶部的公告信息,滚动页面时保持可见!",CLOSE_CALLBACK:"7. 关闭回调",CLOSE_CALLBACK_DESC:"点击关闭按钮触发 onClose 回调",CLOSE_CALLBACK_ANNOUNCEMENT:"这是一条带关闭回调的公告信息,点击右侧X关闭!",FULL_FUNCTIONALITY:"8. 完整功能示例",FULL_FUNCTIONALITY_DESC:"固定顶部 + 自定义高度 + 自定义速度 + 关闭回调",FULL_FUNCTIONALITY_ANNOUNCEMENT:"这是一条功能完整的公告信息,固定顶部、自定义高度和速度、支持关闭!",ANNOUNCEMENT_TEXT:"公告文本,可以是字符串或字符串数组",ANNOUNCEMENT_HEIGHT:"公告栏高度,单位为像素",SCROLL_SPEED:"滚动速度,数值越大滚动越快",ANNOUNCEMENT_BACKGROUND:"公告栏背景色,可以是纯色或渐变",DISPLAY_ANNOUNCEMENT:"是否显示公告栏",FIXED_POSITION:"是否固定在页面顶部",FIXED_DISTANCE:"固定时距离顶部的距离,单位为像素",DISPLAY_ICON:"是否显示公告图标",CLOSE_BUTTON_CALLBACK:"关闭按钮点击时的回调函数",COLORPICKER_CURRENT_COLOR:"当前颜色",COLORPICKER_CURRENT_GRADIENT:"当前渐变色",COLORPICKER_COLOR_VALUE:"当前颜色值(支持 HEX 格式)",COLORPICKER_CONFIRM_CHANGE:"确认选择颜色后的回调函数",COLORPICKER_REAL_TIME_CHANGE:"实时颜色变化时的回调函数",COLORPICKER_PRESET_COLORS:"预设颜色数组",COLORPICKER_GRADIENT_SUPPORT:"是否支持渐变色,启用后可选择线性渐变颜色",COLORPICKER_CUSTOM_TRIGGER:"自定义触发区域,支持任意 React 节点",EMPTY_CUSTOM_ICON:"自定义图标",EMPTY_CUSTOM_IMAGE_PATH:"自定义图片路径",EMPTY_DATA:"暂无数据",EMPTY_STATUS_DESCRIPTION:"空状态描述信息",EMPTY_CUSTOM_ACTION_AREA:"自定义操作区域",EMPTY_SIZE:"空状态尺寸",EMPTY_CUSTOM_STYLE:"自定义样式",EMPTY_CUSTOM_CLASS_NAME:"自定义CSS类名",NOTICE_COMPONENT_DESC:"这是一个滚动通知栏组件,使用 react-fast-marquee 实现无缝滚动效果。",NOTICE_HIDDEN:"通知已隐藏",HIDE_NOTICE:"隐藏通知",SHOW_NOTICE:"显示通知",CUSTOM_CONFIGURATION:"自定义配置",NOTICE_TEXT:"通知文本",ENTER_NOTICE_TEXT:"输入通知文本",NOTICE_BAR_HEIGHT:"公告栏高度",SHOW_CLOSE_BUTTON:"显示关闭按钮",FLOAT_TO_TOP:"悬浮到顶部",SEAMLESS_SCROLL:"使用 Marquee 组件实现无缝滚动效果",CONFIGURABLE_SPEED:"滚动速度可配置(默认为50,范围10-100)",CUSTOM_NOTICE_TEXT:"支持自定义通知文本内容",OPTIONAL_CLOSE_BUTTON:"可选择显示关闭按钮,宽度30px,点击可隐藏公告栏",FLOATING_TOP_FUNCTION:"支持悬浮到顶部功能,固定显示在页面顶部",TYPESCRIPT_SUPPORT:"组件支持TypeScript类型定义",USAGE_SCENARIOS:"使用场景",WEBSITE_ANNOUNCEMENT:"网站公告",SYSTEM_NOTIFICATION:"系统通知",PROMOTION_INFO:"促销活动信息",IMPORTANT_REMINDER:"重要消息提醒",SPEED_DESC:"滚动速度,数值越大滚动越快",HEIGHT_DESC:"公告栏高度,单位为像素",STYLES_DESC:"自定义通知栏样式",ICON_NOTICE_DESC:"通知文本前的图标",SHOW_CLOSE_BUTTON_DESC:"是否显示关闭按钮",CLOSE_STYLE_DESC:"自定义关闭按钮样式",FLOATING_TOP_DESC:"是否固定悬浮在页面顶部",PAUSE_ON_HOVER_DESC:"鼠标悬停时是否暂停滚动",MESSAGE_COMPONENT_DESC:"轻量级消息提示框,用于显示成功、警告和错误信息。",CLICK_BUTTONS_TO_SHOW_MESSAGES:"点击按钮显示不同类型的消息提示。",SHOW_SUCCESS_MESSAGE:"显示成功消息",SHOW_WARNING_MESSAGE:"显示警告消息",SHOW_ERROR_MESSAGE:"显示错误消息",OPERATION_SUCCESS:"操作成功!",WARNING_CHECK_INPUT:"警告:请检查输入!",OPERATION_FAILED_RETRY:"操作失败,请重试!",MESSAGE_TYPE:"消息类型",MESSAGE_CONTENT:"消息内容",MESSAGE_DURATION:"消息自动关闭时长(毫秒)",MESSAGE_CLOSE_CALLBACK:"消息关闭回调",MODAL_COMPONENT_DESC:"模态对话框组件,用于显示重要信息或需要用户确认的操作。",CLICK_BUTTON_OPEN_BASIC_MODAL:"点击按钮打开基本弹窗。",OPEN_BASIC_MODAL:"打开基本弹窗",BASIC_MODAL:"基本弹窗",MODAL_CONTENT_AREA:"这是弹窗的内容区域,可以放置任意内容。",MODAL_CENTERED:"弹窗会上下左右居中显示。",CUSTOM_SIZE:"自定义尺寸",CAN_CUSTOMIZE_MODAL_WIDTH_HEIGHT:"可以自定义弹窗的宽度和高度。",SMALL_SIZE_MODAL:"小尺寸弹窗",LARGE_SIZE_MODAL:"大尺寸弹窗",SMALL_SIZE_MODAL_CONTENT:"这是小尺寸弹窗,宽度为 400px。",LARGE_SIZE_MODAL_CONTENT:"这是大尺寸弹窗,宽度为 800px,高度为 500px。",CAN_PLACE_MORE_CONTENT:"可以放置更多内容。",ASYNC_CONFIRMATION:"异步确认",CLICK_CONFIRM_TO_PERFORM_ASYNC_OPERATION:"点击确认按钮后可以进行异步操作,完成后关闭弹窗。",ASYNC_CONFIRMATION_MODAL:"异步确认弹窗",AFTER_CLICK_CONFIRM_BUTTON:"点击确认按钮后,会模拟 1 秒的异步操作。",MODAL_WILL_AUTOMATICALLY_CLOSE_AFTER_OPERATION_COMPLETE:"操作完成后弹窗会自动关闭。",CONTENT_HEIGHT_AUTO_ADJUSTMENT:"内容高度自适应",WHEN_HEIGHT_NOT_SET_CONTENT_AREA_ADAPTS:"当未设置height时,内容区域高度自适应;当设置height时,内容区域高度自动计算。",AUTO_ADJUST_HEIGHT:"自适应高度",CONTENT_SCROLL_EXAMPLE:"内容滚动示例",AUTO_ADJUST_HEIGHT_MODAL:"自适应高度弹窗",THIS_IS_A_MODAL_WITHOUT_HEIGHT_SET:"这是一个未设置height的弹窗,内容区域高度会根据内容自动调整。",YOU_CAN_ADD_MORE_CONTENT_TO_TEST_ADAPTIVE_EFFECT:"你可以添加更多内容来测试自适应效果。",CONTENT_SCROLL_MODAL:"内容滚动弹窗",LONG_CONTENT_TEST:"长内容测试",THIS_IS_A_MODAL_WITH_FIXED_HEIGHT:"这是一个设置了固定高度的弹窗,内容区域高度会自动计算。",WHEN_CONTENT_EXCEEDS_CALCULATED_HEIGHT:"当内容超过计算高度时,会自动显示滚动条。",ANIMATION_DIRECTION_DEMONSTRATION:"动画方向演示",SUPPORT_FOUR_ANIMATION_DIRECTIONS:"支持四种动画方向,打开和关闭将使用相同的方向设置。",CENTER_ANIMATION:"中心动画",TOP_RIGHT_ANIMATION:"右上角动画",BOTTOM_RIGHT_ANIMATION:"右下角动画",NORMAL_ANIMATION:"正常动画",OPEN_FROM_CENTER_POINT_ENLARGE:"打开:从中心点放大",CLOSE_FROM_CENTER_POINT_SHRINK:"关闭:从中心点缩小消失",OPEN_FROM_TOP_RIGHT_MOVE_AND_ENLARGE:"打开:从右上角移动并放大",CLOSE_TO_TOP_RIGHT_MOVE_AND_SHRINK:"关闭:向右上角移动并缩小消失",OPEN_FROM_BOTTOM_RIGHT_MOVE_AND_ENLARGE:"打开:从右下角移动并放大",CLOSE_TO_BOTTOM_RIGHT_MOVE_AND_SHRINK:"关闭:向右下角移动并缩小消失",OPEN_SLIGHTLY_ENLARGE_AND_FADE_IN:"打开:轻微放大并淡入",CLOSE_SLIGHTLY_SHRINK_AND_FADE_OUT:"关闭:轻微缩小并淡出",CUSTOM_TOP_POSITION:"自定义顶部位置",THROUGH_TOP_PARAM_CUSTOMIZE_MODAL_DISTANCE_FROM_TOP:"通过 top 参数可以自定义弹窗距离顶部的位置,当同时设置 direction 时,direction 会强制使用默认值 normal。",USE_TOP_AND_DIRECTION_SIMULTANEOUSLY:"top 与 direction 同时使用",THIS_MODAL_IS_100PX_FROM_TOP:"此弹窗距离顶部 100px",USE_TOP_PARAM_TO_CUSTOMIZE_MODAL_VERTICAL_POSITION:"使用 top 参数可以自定义弹窗的垂直位置",THIS_MODAL_IS_200PX_FROM_TOP:"此弹窗距离顶部 200px",ALTHOUGH_DIRECTION_TOP_RIGHT_SET_BUT_DUE_TO_TOP_PARAM:'虽然设置了 direction="top-right",但由于同时设置了 top 参数,direction 被强制为 normal',CUSTOM_FOOTER:"自定义 Footer",CAN_CUSTOMIZE_BOTTOM_BUTTONS_THROUGH_FOOTER_PARAM:"可以通过 footer 参数自定义底部按钮,footer 为 null 时显示默认按钮,提供值时显示自定义按钮。",CUSTOM_FOOTER_MODAL:"自定义 Footer 弹窗",CANCEL:"取消",SAVE:"保存",THIS_IS_A_MODAL_WITH_CUSTOM_FOOTER:"这是一个自定义 Footer 的弹窗,底部显示了三个按钮:取消、保存和删除。",YOU_CAN_CUSTOMIZE_FOOTER_CONTENT_AND_STYLE:"您可以根据需要自定义 footer 的内容和样式。",CUSTOM_MOUNT_CONTAINER:"自定义挂载容器",CAN_SPECIFY_MODAL_MOUNT_HTML_NODE_THROUGH_GET_CONTAINER_PARAM:"可以通过 getContainer 参数指定 Modal 挂载的 HTML 节点,false 为挂载在当前 DOM。",MOUNT_IN_CURRENT_DOM:"挂载在当前 DOM",MOUNT_IN_CUSTOM_CONTAINER:"挂载在自定义容器",THIS_IS_A_CUSTOM_MOUNT_CONTAINER:"这是一个自定义的挂载容器",CLICK_MOUNT_IN_CUSTOM_CONTAINER_BUTTON:'点击"挂载在自定义容器"按钮,Modal 将挂载在此处',THIS_MODAL_IS_MOUNTED_IN_CURRENT_DOM:"这个 Modal 被挂载在当前 DOM 中,而不是 document.body。",CAN_ACHIEVE_THIS_EFFECT_THROUGH_GET_CONTAINER_FALSE:"可以通过 getContainer={false} 实现此效果。",THIS_MODAL_IS_MOUNTED_IN_CUSTOM_CONTAINER:"这个 Modal 被挂载在页面中的自定义容器里。",CAN_SPECIFY_MOUNTED_HTML_NODE_THROUGH_GET_CONTAINER_PROPERTY:"可以通过 getContainer 属性指定挂载的 HTML 节点。",CUSTOM_MASK_BACKGROUND_COLOR:"自定义遮罩背景色",CAN_CUSTOMIZE_MASK_BACKGROUND_COLOR_AND_OTHER_STYLES:"可以通过 maskStyle 属性自定义遮罩层的背景色和其他样式。",THIS_MODAL_MASK_USES_CUSTOM_BACKGROUND_COLOR:"这个 Modal 的遮罩层使用了自定义的背景色(半透明的红色)。",CAN_SET_VARIOUS_STYLES_OF_MASK_THROUGH_MASK_STYLE_PROPERTY:"可以通过 maskStyle 属性设置遮罩层的各种样式,如背景色、透明度等。",CUSTOM_ZINDEX:"自定义zIndex",CAN_SET_MASK_LAYER_LEVEL_THROUGH_ZINDEX_PROPERTY:"可以通过zIndex属性设置遮罩层的层级,默认值为1000。在嵌套Modal的情况下,需要设置不同的zIndex值来确保正确的显示层级。",OPEN_FIRST_MODAL:"打开第一个Modal",FIRST_MODAL_ZINDEX_1000:"第一个Modal (zIndex: 1000)",CLOSE:"关闭",OPEN_SECOND_MODAL:"打开第二个Modal",THIS_IS_THE_FIRST_MODAL_USING_DEFAULT_ZINDEX_1000:"这是第一个Modal,使用默认的zIndex值(1000)。",CLICK_OPEN_SECOND_MODAL_BUTTON_TO_POP_UP_SECOND_MODAL:'点击"打开第二个Modal"按钮,会弹出第二个Modal。',SECOND_MODAL_ZINDEX_1010:"第二个Modal (zIndex: 1010)",THIS_IS_THE_SECOND_MODAL_USING_HIGHER_ZINDEX_1010:"这是第二个Modal,使用了更高的zIndex值(1010)。",DUE_TO_HIGHER_ZINDEX_IT_WILL_DISPLAY_ABOVE_FIRST_MODAL:"由于设置了更高的zIndex,它会显示在第一个Modal的上方。",MODAL_VISIBLE_DESC:"控制弹窗显示/隐藏(必填)",MODAL_TITLE_DESC:"弹窗标题",MODAL_WIDTH_DESC:"弹窗宽度",MODAL_HEIGHT_DESC:"弹窗高度(可选,不设置则自适应)",MODAL_HEADER_HEIGHT_DESC:"顶部区域高度",MODAL_FOOTER_HEIGHT_DESC:"底部区域高度",MODAL_CONFIRM_LOADING_DESC:"确认按钮是否显示加载状态",MODAL_DIRECTION_DESC:"打开和关闭的动画方向",MODAL_TOP_DESC:"弹窗距离顶部的距离,设置后direction会强制使用normal",MODAL_FOOTER_DESC:"底部内容,为 null 时显示默认按钮,提供值时显示自定义内容",MODAL_ON_CANCEL_DESC:"取消按钮点击回调",MODAL_ON_OK_DESC:"确认按钮点击回调",MODAL_CHILDREN_DESC:"弹窗内容",MODAL_GET_CONTAINER_DESC:"指定 Modal 挂载的 HTML 节点,false 为挂载在当前 DOM",MODAL_OK_TEXT_DESC:"确认按钮文本",MODAL_CANCEL_TEXT_DESC:"取消按钮文本",MODAL_MASK_STYLE_DESC:"自定义遮罩层样式",MODAL_MASK_CLASS_NAME_DESC:"自定义遮罩层类名",MODAL_Z_INDEX_DESC:"遮罩层的z-index值",TYPOGRAPHY_COMPONENT:"Typography 组件",SHOW_BASIC_USAGE_TYPOGRAPHY:"展示Typography组件的基本使用方式。",DEFAULT_DISPLAY_NO_ROW_LIMIT:"默认显示(不限制行数)",LIMIT_1_ROW:"限制1行",LIMIT_2_ROWS:"限制2行",LIMIT_3_ROWS:"限制3行",DIFFERENT_WIDTHS:"不同宽度",WIDTH_200PX_LIMIT_1_ROW:"宽度200px,限制1行",WIDTH_300PX_LIMIT_2_ROWS:"宽度300px,限制2行",WIDTH_500PX_LIMIT_3_ROWS:"宽度500px,限制3行",MIXED_TEXT_WRAPPING:"中英文混合文本(测试换行问题)",MIXED_TEXT_CONTENT:"这是一段包含English英文的测试文本,用于测试中英文混合时的换行问题。当文本内容超过容器宽度时,英文应该紧跟在中文后面,而不是单独换行显示。",MIXED_TEXT_LIMIT_2_ROWS:"中英文混合文本(限制2行)",TYPOGRAPHY_LONG_TEXT:"这是一段很长的测试文本,用于测试Typography组件的行数限制功能。当文本内容超过指定的行数限制时,应该在末尾显示省略号。这个组件支持自定义宽度和行数限制,可以满足不同的布局需求。",TYPOGRAPHY_CHILDREN_DESC:"文本内容",TYPOGRAPHY_WIDTH_DESC:"宽度限制",TYPOGRAPHY_ROWS_DESC:"行数限制",TYPOGRAPHY_STYLE_DESC:"自定义样式",TYPOGRAPHY_CLASSNAME_DESC:"自定义类名",TYPOGRAPHY_MIXED_TEXT:"这是一段包含English英文的测试文本,用于测试中英文混合时的换行问题。当文本内容超过容器宽度时,英文应该紧跟在中文后面,而不是单独换行显示。",TYPOGRAPHY_MIXED_TEXT_2:"这是一段包含English英文的测试文本,用于测试中英文混合时的换行问题。当文本内容超过容器宽度时,英文应该紧跟在中文后面,而不是单独换行显示。",TYPOGRAPHY_DEFAULT_DISPLAY:"默认显示(不限制行数)",TYPOGRAPHY_LIMIT_1_ROW:"限制1行",TYPOGRAPHY_LIMIT_2_ROWS:"限制2行",TYPOGRAPHY_LIMIT_3_ROWS:"限制3行",TYPOGRAPHY_DIFFERENT_WIDTHS:"不同宽度",TYPOGRAPHY_MIXED_TEXT_TEST:"中英文混合文本(测试换行问题)",TYPOGRAPHY_MIXED_TEXT_TEST_2:"中英文混合文本(限制2行)",TYPOGRAPHY_BASIC_USAGE:"基本使用",TYPOGRAPHY_API_PARAMETERS:"API 参数",TYPOGRAPHY_CODE_EXAMPLE:"代码示例",TYPOGRAPHY_COMPONENT_DESCRIPTION:"排版组件,支持自定义宽度和行数限制,超过行数限制时显示省略号。",TYPOGRAPHY_BASIC_USAGE_DESCRIPTION:"展示Typography组件的基本使用方式。",TYPOGRAPHY_WIDTH_200PX:"宽度200px,限制1行",TYPOGRAPHY_WIDTH_300PX:"宽度300px,限制2行",TYPOGRAPHY_WIDTH_500PX:"宽度500px,限制3行"},Xr={MODAL_TITLE:"Title",MODAL_OKTEXT:"OK",MODAL_CANCELTEXT:"Cancel",EMPTY_DESCRIPTION:"Empty state component used to display friendly prompt messages when there is no data.",SELECT_PLACEHOLDER:"Please select",INTRO:"Introduction",INSTALL:"Installation",I18N:"Internationalization",BUTTON:"Button",COLORPICKER:"Color Picker",COPYTOCLIPBOARD:"Copy to Clipboard",DIVIDER:"Divider",EMPTY:"Empty State",FLEX:"Flex",ICON:"icon",INPUT:"Input",MARQUEE:"Marquee",MESSAGE:"Message",NOTICE:"Notice",NOTIFICATION:"Notification",RADIO:"Radio",TABLE:"Table",TOP:"Back to Top",TYPOGRAPHY:"Typography",VARIABLES:"Variables",API_REF:"API Reference",IDP_DESIGN:"ZjpCy Design",IDP_STUDIO:"IDP Studio",INTRO_DESCRIPTION:"Introduction to ZjpCy Design Component Library",INSTALL_DESCRIPTION:"How to install and reference",I18N_DESCRIPTION:"Internationalization support for component library",BUTTON_DESCRIPTION:"Customizable button component with multiple styles and sizes.",COLORPICKER_DESCRIPTION:"Color selection component that supports preset colors, opacity adjustment, and gradient colors.",COPYTOCLIPBOARD_DESCRIPTION:"Component for copying text to clipboard, supporting custom styles and status callbacks.",DIVIDER_DESCRIPTION:"Component for dividing page content, supporting both horizontal and vertical orientations, and solid and dashed types.",FLEX_DESCRIPTION:"General flex layout component that provides flexible layout options.",ICON_DESCRIPTION:"Icon component",INPUT_DESCRIPTION:"Input component",MARQUEE_DESCRIPTION:"This is a customizable scrolling announcement component that supports various styles and configuration options.",MESSAGE_DESCRIPTION:"Message component",NOTICE_DESCRIPTION:"Notice component",NOTIFICATION_DESCRIPTION:"Notification component",RADIO_DESCRIPTION:"Radio component",SELECT_DESCRIPTION:"Select component",TABLE_DESCRIPTION:"Table component",TOP_DESCRIPTION:"Back to top component",TYPOGRAPHY_DESCRIPTION:"Typography component, supports custom width and row limits, displays ellipsis when exceeding row limits.",VARIABLES_DESCRIPTION:"Customize component library theme colors",API_REF_DESCRIPTION:"View component API documentation",LANGUAGE_SWITCH:"Language Switch",ENGLISH:"English",CHINESE:"中文",VERSION:"Version",BUTTON_COMPONENT:"Button Component",BASIC_USAGE:"Basic Usage",SHOW_VARIANTS_SIZES:"Display buttons with different variants and sizes.",VARIANT_BUTTONS:"Variant Buttons",SIZE_BUTTONS:"Size Buttons",DISABLED_STATE:"Disabled State",ICON_BUTTONS:"Buttons with Icons",CUSTOM_STYLE:"Custom Style",API_PARAMETERS:"API Parameters",PARAM_NAME:"Parameter Name",TYPE:"Type",DEFAULT_VALUE:"Default Value",DESCRIPTION:"Description",CHILDREN:"children",CHILDREN_DESC:"Button text content",VARIANT:"variant",VARIANT_DESC:"Button variant style",SIZE:"size",SIZE_DESC:"Button size",DISABLED:"disabled",DISABLED_DESC:"Whether the button is disabled",ON_CLICK:"onClick",ON_CLICK_DESC:"Click event callback",CLASS_NAME:"className",CLASS_NAME_DESC:"Custom CSS class name",STYLE:"style",STYLE_DESC:"Custom inline style",ICON_DESC:"Button prefix icon, supports string (built-in icon name) or custom icon node",CODE_EXAMPLES:"Code Examples",USAGE_IN_OTHER_PROJECTS:"Usage in Other Projects",BASIC_USAGE_CODE:"Basic Usage",DIFFERENT_SIZES:"Different Sizes",DISABLED_BUTTON:"Disabled Button",BUTTON_WITH_ICON:"Button with Icon",BUTTON_SEARCH:"Search",BUTTON_USER:"User",BUTTON_DELETE:"Delete",BUTTON_CONFIRM:"Confirm",BUTTON_WARNING:"Warning",CUSTOM_STYLE_CLICK:"Custom Style and Click Event",INSTALLATION:"Installation",INSTALLATION_DESCRIPTION:"ZjpCy Design component library supports multiple installation methods, you can choose the one that suits your needs.",LOCAL_FILE_INSTALLATION:"Installation from Local Files",LOCAL_FILE_INSTALLATION_DESC:"If you have obtained the local files of the ZjpCy Design component library, you can install it in the following ways:",NPM_LOCAL_INSTALL:"Install from local directory using npm",NPM_LOCAL_INSTALL_DESC:"Install the local component library directory as a dependency in your project:",YARN_LOCAL_INSTALL:"Install from local directory using yarn",PATH_TO_IDP_DESIGN:"/path/to/idp-design",PATH_TO_IDP_DESIGN_DESC:"is the absolute path to your local ZjpCy Design component library.",GIT_REPO_INSTALLATION:"Installation from Git Repository",GIT_REPO_INSTALLATION_DESC:"You can directly install the ZjpCy Design component library from the Git repository, supporting specified branches or tags:",LATEST_MAIN_BRANCH:"Install the latest version of the main branch",SPECIFIC_BRANCH:"Install a specified branch",BRANCH_NAME:"branch-name",BRANCH_NAME_DESC:"Replace with the branch name you want to install, for example",EXAMPLE_BRANCHES:"dev or feature/new-component.",SPECIFIC_TAG:"Install a specified tag version",V1_0_0:"v1.0.0",V1_0_0_DESC:"Replace with the specific version tag you want to install.",UPDATING_DEPENDENCIES:"Updating Dependencies",UPDATING_DEPENDENCIES_DESC:"When a new version of the ZjpCy Design component library is released, you can update the dependencies in the following ways:",UPDATING_INSTALLED_DEPENDENCIES:"Update locally installed dependencies",REINSTALLING_LOCAL_FILES:"Reinstall local file dependencies",USING_FORCE_PARAM:"Use the --force parameter to force reinstallation to ensure you get the latest local files.",UPDATING_GIT_DEPENDENCIES:"Update Git repository dependencies",UNINSTALL_REINSTALL:"Or uninstall and then reinstall:",SEARCH:"Search",USER:"User",DELETE:"Delete",CONFIRM:"Confirm",WARNING:"Warning",REFERENCE_COMPONENT:"Reference Component",COLORPICKER_COMPONENT:"ColorPicker Component",DIVIDER_ORIENTATION:"Divider orientation",DIVIDER_TYPE:"Divider type",DIVIDER_COLOR:"Divider color",DIVIDER_COMPONENT:"Divider Component",DIVIDER_SHOW_ORIENTATIONS_TYPES:"Display dividers with different orientations and types.",HORIZONTAL_DIVIDER:"Horizontal Divider",ABOVE_DEFAULT_HORIZONTAL:"Above is the default horizontal divider",BELOW_DEFAULT_HORIZONTAL:"Below is the default horizontal divider",VERTICAL_DIVIDER:"Vertical Divider",LEFT_CONTENT:"Left Content",RIGHT_CONTENT:"Right Content",SOLID_DASHED:"Solid and Dashed",ABOVE_SOLID_DEFAULT:"Above is the solid divider (default)",CONTENT_BETWEEN_DIVIDERS:"Content between solid and dashed dividers",BELOW_DASHED:"Below is the dashed divider",CUSTOM_COLOR:"Custom Color",DIVIDERS_DIFFERENT_COLORS:"Dividers with different colors",COMBINED_USAGE:"Combined Usage",HORIZONTAL_DASHED_CUSTOM_COLOR:"Horizontal dashed line with custom color",DIVIDERS_CUSTOM_STYLE:"Dividers with custom styles",DIVIDER_WITH_TEXT:"Divider with Text",TEXT_CONTENT:"Text content",COPY_URL_OR_TEXT_CONTENT:"URL or text content to copy",COPY_STATUS_CHANGE_CALLBACK:"Copy status change callback",CUSTOM_CHILD_ELEMENT:"Custom child element",COPY_OPERATION_PROMISE:"Copy operation Promise",COPY_SUCCESS:"Copy successful!",COPY_FAILED:"Copy failed!",COPYTOCLIPBOARD_COMPONENT:"CopyToClipboard Component",DISPLAY_DIFFERENT_STYLES_COPY_BUTTONS:"Display copy buttons with different styles.",TEXT_LINK_STYLE:"Text Link Style",COPY_LINK:"Copy Link",BUTTON_STYLE:"Button Style",CLICK_TO_COPY_CUSTOM_LINK:"Click to copy custom link",STYLED_LINK:"Styled Link",COPY_STYLED_LINK:"Copy styled link",USING_USECOPY_HOOK:"Using useCopy Hook",USE_USECOPY_TO_COPY_LINK:"Use useCopy to copy link",COMPONENT:"Component",HOOK:"Hook",SUCCESS:"success",EMPTY_COMPONENT:"Empty Empty State",DEFAULT_EMPTY_STATE:"Default Empty State",CUSTOM_DESCRIPTION:"Custom Description",CUSTOM_ICON:"Custom Icon",CUSTOM_IMAGE:"Custom Image",WITH_ACTION_BUTTON:"With Action Button",LARGE_SIZE:"Large Size",MIDDLE_SIZE:"Middle Size",SMALL_SIZE:"Small Size",NO_EXCEL_FILE:"No Excel Files",UPLOAD_FILE:"Upload File",VIEW_TEMPLATE:"View Template",LOAD_DATA:"Load Data",TRANSPARENCY_ADJUSTMENT:"Transparency Adjustment",ENABLE_ALPHA_PROPERTY:"Enable transparency adjustment through the alpha property, supporting RGBA color format.",WITH_TRANSPARENCY:"With Transparency",PRESET_COLORS:"Preset Colors",SET_PRESET_COLORS:"Set common preset colors through the presetColors property for quick selection.",DISABLE_COLOR_PICKER:"Disable the color picker through the disabled property; cannot open the selection panel when disabled.",COLOR_SQUARE:"Color Square",COLOR_TEXT:"Color Text",COLOR_BUTTON:"Color Button",SELECT_COLOR:"Select Color",CUSTOM_STYLE_PROPERTY:"Customize the style of the color picker through the style property.",CUSTOM_BORDER_RADIUS:"Custom Border Radius",GRADIENT_SUPPORT:"Gradient Support",ENABLE_GRADIENT:"Enable gradient color support through the gradient property, supporting linear gradient color selection.",BASIC_GRADIENT:"Basic Gradient",GRADIENT_COLOR:"Gradient Color",FEATURES:"Features",LIGHTWEIGHT:"Lightweight: Only 2.8KB gzipped (13 times lighter than react-color)",TREE_SHAKING:"Tree Shaking: Only import used parts",FAST:"Fast: Uses hooks and functional components",TYPE_SAFE:"Type Safe: Strict TypeScript support",MOBILE_FRIENDLY:"Mobile Friendly: Supports touch devices",ACCESSIBLE:"Accessible: Follows WAI-ARIA guidelines",NO_DEPENDENCIES:"No Dependencies: Does not depend on other libraries",FLEX_COMPONENT:"Flex Component",INTERACTIVE_EXAMPLE:"Interactive Example",ADJUST_PROPERTIES:"Adjust various properties of the flex layout in real-time through the buttons and input boxes below.",ITEM_COUNT:"Item Count",ITEMS:"items",DIRECTION:"Direction (higher priority than Layout)",CURRENT_VALUE:"Current Value",DEMONSTRATION_EFFECT:"Demonstration Effect",CURRENT_CONFIGURATION:"Current Configuration",MULTI_LEVEL_NESTING:"Multi-level Nesting Example",NESTING_DESCRIPTION:"Demonstrates the multi-level nesting usage of the Flex component to achieve complex layout structures.",TITLE_AREA:"Title Area",VERTICAL_LAYOUT:"Vertical Layout",CENTER_ALIGNMENT:"Center Alignment",JUSTIFY_BETWEEN:"Space Between",WRAP_LAYOUT:"Wrap Layout",COMPLEX_USAGE:"Complex Usage",ACTION_AREA:"Action Area",FLEX_CHILDREN_DESC:"Child component content",FLEX_LAYOUT_DESC:"Quickly set the layout direction, horizontal for horizontal layout, column for column layout",FLEX_DIRECTION_DESC:"flex-direction property, with higher priority than layout",FLEX_JUSTIFY_DESC:"justify-content property",FLEX_ALIGN_DESC:"align-items property",FLEX_WRAP_DESC:"flex-wrap property",FLEX_GAP_DESC:"gap property, supporting numeric values (px) and strings",CENTER_CONTENT:"Center Content",MARQUEE_COMPONENT:"Marquee Announcement Component",DEFAULT_CONFIGURATION:"1. Default Configuration",DEFAULT_CONFIG_DESC:"Default height: 40px, default speed: 50, default gradient background",DEFAULT_ANNOUNCEMENT:"This is a default configured announcement message that scrolls from right to left and automatically repeats after playback!",CUSTOM_HEIGHT:"Supports custom notice bar height (default: 60px, range: 30-100px)",HEIGHT_60PX:"Height: 60px",CUSTOM_HEIGHT_ANNOUNCEMENT:"This is an announcement message with a custom height of 60px!",CUSTOM_SPEED:"3. Custom Speed",SLOW_SPEED:"Slow Speed: 20",SLOW_SPEED_ANNOUNCEMENT:"This is a slow-scrolling announcement message with a speed of 20!",FAST_SPEED:"Fast Speed: 100",FAST_SPEED_ANNOUNCEMENT:"This is a fast-scrolling announcement message with a speed of 100!",CUSTOM_BACKGROUND:"4. Custom Background",CUSTOM_GRADIENT_BACKGROUND:"Custom Gradient Background",GRADIENT_BACKGROUND_ANNOUNCEMENT_1:"This is an announcement with a custom gradient background",GRADIENT_BACKGROUND_ANNOUNCEMENT_2:"This is the second announcement with a custom gradient background",COMPREHENSIVE_CUSTOM:"5. Comprehensive Customization",COMPREHENSIVE_CUSTOM_DESC:"Height: 50px, Speed: 75, Custom Background",COMPREHENSIVE_ANNOUNCEMENT:"This is a comprehensively customized announcement, height 50px, speed 75, custom gradient background!",FIXED_TOP:"6. Fixed to Top",FIXED_TOP_DESC:"fixed=true, the announcement bar will be fixed at the top of the page",FIXED_TOP_ANNOUNCEMENT:"This is an announcement fixed at the top, remaining visible while scrolling!",CLOSE_CALLBACK:"7. Close Callback",CLOSE_CALLBACK_DESC:"Click the close button to trigger onClose callback",CLOSE_CALLBACK_ANNOUNCEMENT:"This is an announcement with close callback, click the X on the right to close!",FULL_FUNCTIONALITY:"8. Full Functionality Example",FULL_FUNCTIONALITY_DESC:"Fixed Top + Custom Height + Custom Speed + Close Callback",FULL_FUNCTIONALITY_ANNOUNCEMENT:"This is a fully functional announcement with fixed top, custom height and speed, and close support!",ANNOUNCEMENT_TEXT:"Announcement text, can be a string or string array",ANNOUNCEMENT_HEIGHT:"Height of the announcement bar in pixels",SCROLL_SPEED:"Scrolling speed, larger values scroll faster",ANNOUNCEMENT_BACKGROUND:"Background color of the announcement bar, can be solid color or gradient",DISPLAY_ANNOUNCEMENT:"Whether to display the announcement bar",FIXED_POSITION:"Whether to fix at the top of the page",FIXED_DISTANCE:"Distance from the top when fixed, in pixels",DISPLAY_ICON:"Whether to display the announcement icon",CLOSE_BUTTON_CALLBACK:"Callback function when the close button is clicked",COLORPICKER_CURRENT_COLOR:"Current Color",COLORPICKER_CURRENT_GRADIENT:"Current Gradient",COLORPICKER_COLOR_VALUE:"Current color value (supports HEX format)",COLORPICKER_CONFIRM_CHANGE:"Callback function after confirming color selection",COLORPICKER_REAL_TIME_CHANGE:"Callback function when color changes in real-time",COLORPICKER_PRESET_COLORS:"Array of preset colors",COLORPICKER_GRADIENT_SUPPORT:"Whether to support gradient colors; after enabling, can select linear gradient colors",COLORPICKER_CUSTOM_TRIGGER:"Custom trigger area, supports any React node",EMPTY_CUSTOM_ICON:"Custom icon",EMPTY_CUSTOM_IMAGE_PATH:"Custom image path",EMPTY_DATA:"No data",EMPTY_STATUS_DESCRIPTION:"Empty state description",EMPTY_CUSTOM_ACTION_AREA:"Custom action area",EMPTY_SIZE:"Empty state size",EMPTY_CUSTOM_STYLE:"Custom style",EMPTY_CUSTOM_CLASS_NAME:"Custom CSS class name",NOTICE_COMPONENT_DESC:"This is a scrolling notification bar component that uses react-fast-marquee to achieve seamless scrolling effects.",NOTICE_HIDDEN:"Notice hidden",HIDE_NOTICE:"Hide notice",SHOW_NOTICE:"Show notice",CUSTOM_CONFIGURATION:"Custom Configuration",NOTICE_TEXT:"Notice text",ENTER_NOTICE_TEXT:"Enter notice text",NOTICE_BAR_HEIGHT:"Notice bar height",SHOW_CLOSE_BUTTON:"Show close button",FLOAT_TO_TOP:"Float to top",SEAMLESS_SCROLL:"Uses Marquee component to achieve seamless scrolling effect",CONFIGURABLE_SPEED:"Scrolling speed configurable (default: 50, range: 10-100)",CUSTOM_NOTICE_TEXT:"Supports custom notice text content",OPTIONAL_CLOSE_BUTTON:"Optional close button, 30px wide, click to hide the notice bar",FLOATING_TOP_FUNCTION:"Supports floating top function, fixed at the top of the page",TYPESCRIPT_SUPPORT:"Component supports TypeScript type definitions",USAGE_SCENARIOS:"Usage Scenarios",WEBSITE_ANNOUNCEMENT:"Website announcements",SYSTEM_NOTIFICATION:"System notifications",PROMOTION_INFO:"Promotional activity information",IMPORTANT_REMINDER:"Important message reminders",SPEED_DESC:"Scrolling speed, larger values scroll faster",HEIGHT_DESC:"Height of the notice bar in pixels",STYLES_DESC:"Custom notice bar styles",ICON_NOTICE_DESC:"Icon before the notice text",SHOW_CLOSE_BUTTON_DESC:"Whether to show the close button",CLOSE_STYLE_DESC:"Custom close button style",FLOATING_TOP_DESC:"Whether to fix and float at the top of the page",PAUSE_ON_HOVER_DESC:"Whether to pause scrolling when hovering",MESSAGE_COMPONENT_DESC:"Lightweight message prompt box for displaying success, warning and error messages.",CLICK_BUTTONS_TO_SHOW_MESSAGES:"Click the buttons to display different types of message prompts.",SHOW_SUCCESS_MESSAGE:"Show success message",SHOW_WARNING_MESSAGE:"Show warning message",SHOW_ERROR_MESSAGE:"Show error message",OPERATION_SUCCESS:"Operation successful!",WARNING_CHECK_INPUT:"Warning: Please check your input!",OPERATION_FAILED_RETRY:"Operation failed, please try again!",MESSAGE_TYPE:"Message type",MESSAGE_CONTENT:"Message content",MESSAGE_DURATION:"Message auto-close duration (milliseconds)",MESSAGE_CLOSE_CALLBACK:"Message close callback",MODAL_COMPONENT_DESC:"Modal dialog component for displaying important information or operations that require user confirmation.",CLICK_BUTTON_OPEN_BASIC_MODAL:"Click the button to open the basic modal.",OPEN_BASIC_MODAL:"Open Basic Modal",BASIC_MODAL:"Basic Modal",MODAL_CONTENT_AREA:"This is the content area of the modal, which can contain any content.",MODAL_CENTERED:"The modal will be centered horizontally and vertically.",CUSTOM_SIZE:"Custom Size",CAN_CUSTOMIZE_MODAL_WIDTH_HEIGHT:"You can customize the width and height of the modal.",SMALL_SIZE_MODAL:"Small Size Modal",LARGE_SIZE_MODAL:"Large Size Modal",SMALL_SIZE_MODAL_CONTENT:"This is a small size modal with a width of 400px.",LARGE_SIZE_MODAL_CONTENT:"This is a large size modal with a width of 800px and height of 500px.",CAN_PLACE_MORE_CONTENT:"You can place more content.",ASYNC_CONFIRMATION:"Async Confirmation",CLICK_CONFIRM_TO_PERFORM_ASYNC_OPERATION:"Click the confirm button to perform asynchronous operations, and close the modal after completion.",ASYNC_CONFIRMATION_MODAL:"Async Confirmation Modal",AFTER_CLICK_CONFIRM_BUTTON:"After clicking the confirm button, it will simulate a 1-second asynchronous operation.",MODAL_WILL_AUTOMATICALLY_CLOSE_AFTER_OPERATION_COMPLETE:"The modal will automatically close after the operation is complete.",CONTENT_HEIGHT_AUTO_ADJUSTMENT:"Content Height Auto-adjustment",WHEN_HEIGHT_NOT_SET_CONTENT_AREA_ADAPTS:"When height is not set, the content area height adapts; when height is set, the content area height is automatically calculated.",AUTO_ADJUST_HEIGHT:"Auto-adjust Height",CONTENT_SCROLL_EXAMPLE:"Content Scroll Example",AUTO_ADJUST_HEIGHT_MODAL:"Auto-adjust Height Modal",THIS_IS_A_MODAL_WITHOUT_HEIGHT_SET:"This is a modal without height set, and the content area height will automatically adjust according to the content.",YOU_CAN_ADD_MORE_CONTENT_TO_TEST_ADAPTIVE_EFFECT:"You can add more content to test the adaptive effect.",CONTENT_SCROLL_MODAL:"Content Scroll Modal",LONG_CONTENT_TEST:"Long Content Test",THIS_IS_A_MODAL_WITH_FIXED_HEIGHT:"This is a modal with fixed height, and the content area height is automatically calculated.",WHEN_CONTENT_EXCEEDS_CALCULATED_HEIGHT:"When the content exceeds the calculated height, a scrollbar will be automatically displayed.",ANIMATION_DIRECTION_DEMONSTRATION:"Animation Direction Demonstration",SUPPORT_FOUR_ANIMATION_DIRECTIONS:"Supports four animation directions, and opening and closing will use the same direction setting.",CENTER_ANIMATION:"Center Animation",TOP_RIGHT_ANIMATION:"Top Right Animation",BOTTOM_RIGHT_ANIMATION:"Bottom Right Animation",NORMAL_ANIMATION:"Normal Animation",OPEN_FROM_CENTER_POINT_ENLARGE:"Open: Enlarge from the center point",CLOSE_FROM_CENTER_POINT_SHRINK:"Close: Shrink from the center point",OPEN_FROM_TOP_RIGHT_MOVE_AND_ENLARGE:"Open: Move from top right and enlarge",CLOSE_TO_TOP_RIGHT_MOVE_AND_SHRINK:"Close: Move to top right and shrink",OPEN_FROM_BOTTOM_RIGHT_MOVE_AND_ENLARGE:"Open: Move from bottom right and enlarge",CLOSE_TO_BOTTOM_RIGHT_MOVE_AND_SHRINK:"Close: Move to bottom right and shrink",OPEN_SLIGHTLY_ENLARGE_AND_FADE_IN:"Open: Slightly enlarge and fade in",CLOSE_SLIGHTLY_SHRINK_AND_FADE_OUT:"Close: Slightly shrink and fade out",CUSTOM_TOP_POSITION:"Custom Top Position",THROUGH_TOP_PARAM_CUSTOMIZE_MODAL_DISTANCE_FROM_TOP:"You can customize the modal's distance from the top through the top parameter. When direction is set at the same time, direction will be forced to use normal.",USE_TOP_AND_DIRECTION_SIMULTANEOUSLY:"Use top and direction simultaneously",THIS_MODAL_IS_100PX_FROM_TOP:"This modal is 100px from the top",USE_TOP_PARAM_TO_CUSTOMIZE_MODAL_VERTICAL_POSITION:"Use the top parameter to customize the vertical position of the modal",THIS_MODAL_IS_200PX_FROM_TOP:"This modal is 200px from the top",ALTHOUGH_DIRECTION_TOP_RIGHT_SET_BUT_DUE_TO_TOP_PARAM:'Although direction="top-right" is set, direction is forced to normal because the top parameter is set at the same time',CUSTOM_FOOTER:"Custom Footer",CAN_CUSTOMIZE_BOTTOM_BUTTONS_THROUGH_FOOTER_PARAM:"You can customize the bottom buttons through the footer parameter. When footer is null, default buttons are displayed; when a value is provided, custom buttons are displayed.",CUSTOM_FOOTER_MODAL:"Custom Footer Modal",CANCEL:"Cancel",SAVE:"Save",THIS_IS_A_MODAL_WITH_CUSTOM_FOOTER:"This is a modal with custom footer, which displays three buttons at the bottom: Cancel, Save, and Delete.",YOU_CAN_CUSTOMIZE_FOOTER_CONTENT_AND_STYLE:"You can customize the content and style of the footer according to your needs.",CUSTOM_MOUNT_CONTAINER:"Custom Mount Container",CAN_SPECIFY_MODAL_MOUNT_HTML_NODE_THROUGH_GET_CONTAINER_PARAM:"You can specify the HTML node where the Modal is mounted through the getContainer parameter. false means mount in the current DOM.",MOUNT_IN_CURRENT_DOM:"Mount in Current DOM",MOUNT_IN_CUSTOM_CONTAINER:"Mount in Custom Container",THIS_IS_A_CUSTOM_MOUNT_CONTAINER:"This is a custom mount container",CLICK_MOUNT_IN_CUSTOM_CONTAINER_BUTTON:'Click the "Mount in Custom Container" button, and the Modal will be mounted here',THIS_MODAL_IS_MOUNTED_IN_CURRENT_DOM:"This Modal is mounted in the current DOM, not in document.body.",CAN_ACHIEVE_THIS_EFFECT_THROUGH_GET_CONTAINER_FALSE:"You can achieve this effect through getContainer={false}.",THIS_MODAL_IS_MOUNTED_IN_CUSTOM_CONTAINER:"This Modal is mounted in a custom container on the page.",CAN_SPECIFY_MOUNTED_HTML_NODE_THROUGH_GET_CONTAINER_PROPERTY:"You can specify the mounted HTML node through the getContainer property.",CUSTOM_MASK_BACKGROUND_COLOR:"Custom Mask Background Color",CAN_CUSTOMIZE_MASK_BACKGROUND_COLOR_AND_OTHER_STYLES:"You can customize the mask background color and other styles through the maskStyle property.",THIS_MODAL_MASK_USES_CUSTOM_BACKGROUND_COLOR:"The mask layer of this Modal uses a custom background color (semi-transparent red).",CAN_SET_VARIOUS_STYLES_OF_MASK_THROUGH_MASK_STYLE_PROPERTY:"You can set various styles of the mask through the maskStyle property, such as background color, opacity, etc.",CUSTOM_ZINDEX:"Custom zIndex",CAN_SET_MASK_LAYER_LEVEL_THROUGH_ZINDEX_PROPERTY:"You can set the level of the mask layer through the zIndex property, with a default value of 1000. In the case of nested Modals, you need to set different zIndex values to ensure the correct display level.",OPEN_FIRST_MODAL:"Open First Modal",FIRST_MODAL_ZINDEX_1000:"First Modal (zIndex: 1000)",CLOSE:"Close",OPEN_SECOND_MODAL:"Open Second Modal",THIS_IS_THE_FIRST_MODAL_USING_DEFAULT_ZINDEX_1000:"This is the first Modal, using the default zIndex value (1000).",CLICK_OPEN_SECOND_MODAL_BUTTON_TO_POP_UP_SECOND_MODAL:'Click the "Open Second Modal" button to pop up the second Modal.',SECOND_MODAL_ZINDEX_1010:"Second Modal (zIndex: 1010)",THIS_IS_THE_SECOND_MODAL_USING_HIGHER_ZINDEX_1010:"This is the second Modal, using a higher zIndex value (1010).",DUE_TO_HIGHER_ZINDEX_IT_WILL_DISPLAY_ABOVE_FIRST_MODAL:"Due to the higher zIndex setting, it will be displayed above the first Modal.",MODAL_VISIBLE_DESC:"Controls whether the modal is displayed/hidden (required)",MODAL_TITLE_DESC:"Modal title",MODAL_WIDTH_DESC:"Modal width",MODAL_HEIGHT_DESC:"Modal height (optional, adapts if not set)",MODAL_HEADER_HEIGHT_DESC:"Top area height",MODAL_FOOTER_HEIGHT_DESC:"Bottom area height",MODAL_CONFIRM_LOADING_DESC:"Whether the confirm button shows loading status",MODAL_DIRECTION_DESC:"Animation direction for opening and closing",MODAL_TOP_DESC:"Distance from the top of the modal; when set, direction will be forced to normal",MODAL_FOOTER_DESC:"Bottom content, shows default buttons when null, shows custom content when provided",MODAL_ON_CANCEL_DESC:"Cancel button click callback",MODAL_ON_OK_DESC:"Confirm button click callback",MODAL_CHILDREN_DESC:"Modal content",MODAL_GET_CONTAINER_DESC:"Specifies the HTML node where the Modal is mounted; false means mount in current DOM",MODAL_OK_TEXT_DESC:"Confirm button text",MODAL_CANCEL_TEXT_DESC:"Cancel button text",MODAL_MASK_STYLE_DESC:"Custom mask layer style",MODAL_MASK_CLASS_NAME_DESC:"Custom mask layer class name",MODAL_Z_INDEX_DESC:"z-index value of the mask layer",TYPOGRAPHY_COMPONENT:"Typography component",SHOW_BASIC_USAGE_TYPOGRAPHY:"Demonstrates the basic usage of the Typography component.",DEFAULT_DISPLAY_NO_ROW_LIMIT:"Default display (no row limit)",LIMIT_1_ROW:"Limit to 1 row",LIMIT_2_ROWS:"Limit to 2 rows",LIMIT_3_ROWS:"Limit to 3 rows",DIFFERENT_WIDTHS:"Different widths",WIDTH_200PX_LIMIT_1_ROW:"Width 200px, limit to 1 row",WIDTH_300PX_LIMIT_2_ROWS:"Width 300px, limit to 2 rows",WIDTH_500PX_LIMIT_3_ROWS:"Width 500px, limit to 3 rows",MIXED_TEXT_WRAPPING:"Mixed Chinese and English text (testing line break issues)",MIXED_TEXT_CONTENT:"This is a test text containing English, used to test line break issues when mixing Chinese and English. When the text content exceeds the container width, English should follow immediately after Chinese instead of starting a new line separately.",MIXED_TEXT_LIMIT_2_ROWS:"Mixed Chinese and English text (limit to 2 rows)",TYPOGRAPHY_LONG_TEXT:"This is a long test text used to test the row limit function of the Typography component. When the text content exceeds the specified row limit, ellipsis should be displayed at the end. This component supports custom width and row limits to meet different layout needs.",TYPOGRAPHY_CHILDREN_DESC:"Text content",TYPOGRAPHY_WIDTH_DESC:"Width limit",TYPOGRAPHY_ROWS_DESC:"Row limit",TYPOGRAPHY_STYLE_DESC:"Custom style",TYPOGRAPHY_CLASSNAME_DESC:"Custom class name",TYPOGRAPHY_MIXED_TEXT:"This is a test text containing English, used to test line break issues when mixing Chinese and English. When the text content exceeds the container width, English should follow immediately after Chinese instead of starting a new line separately.",TYPOGRAPHY_MIXED_TEXT_2:"This is a test text containing English, used to test line break issues when mixing Chinese and English. When the text content exceeds the container width, English should follow immediately after Chinese instead of starting a new line separately.",TYPOGRAPHY_DEFAULT_DISPLAY:"Default display (no row limit)",TYPOGRAPHY_LIMIT_1_ROW:"Limit to 1 row",TYPOGRAPHY_LIMIT_2_ROWS:"Limit to 2 rows",TYPOGRAPHY_LIMIT_3_ROWS:"Limit to 3 rows",TYPOGRAPHY_DIFFERENT_WIDTHS:"Different widths",TYPOGRAPHY_MIXED_TEXT_TEST:"Mixed Chinese and English text (testing line break issues)",TYPOGRAPHY_MIXED_TEXT_TEST_2:"Mixed Chinese and English text (limit to 2 rows)",TYPOGRAPHY_BASIC_USAGE:"Basic usage",TYPOGRAPHY_API_PARAMETERS:"API parameters",TYPOGRAPHY_CODE_EXAMPLE:"Code example",TYPOGRAPHY_COMPONENT_DESCRIPTION:"Typography component that supports custom width and row limits, displaying ellipsis when exceeding row limits.",TYPOGRAPHY_BASIC_USAGE_DESCRIPTION:"Demonstrates the basic usage of the Typography component.",TYPOGRAPHY_WIDTH_200PX:"Width 200px, limit to 1 row",TYPOGRAPHY_WIDTH_300PX:"Width 300px, limit to 2 rows",TYPOGRAPHY_WIDTH_500PX:"Width 500px, limit to 3 rows"};Er.use(Dr).init({resources:{"zh-CN":{translation:Zr},"en-US":{translation:Xr}},lng:"zh-CN",fallbackLng:"zh-CN",interpolation:{escapeValue:!1}});var qr=function(n){var t=n.children,r=n.locale,i=n.resources;return u.default.useEffect(function(){i&&Object.keys(i).forEach(function(e){var n=i[e];Object.keys(n).forEach(function(t){var r=n[t];Er.addResourceBundle(e,t,r,!0)})})},[i]),u.default.useEffect(function(){r&&r!==Er.language&&Er.changeLanguage(r)},[r]),e.jsx(Kr,{i18n:Er,children:t})},Jr=function(t){var r=t.items,i=t.type,o=void 0===i?"text":i,a=t.children,s=t.trigger,l=void 0===s?"click":s,c=t.placement,d=void 0===c?"bottom":c,u=t.disabled,f=void 0!==u&&u,g=t.open,m=t.ellipsis,v=void 0===m||m,x=t.className,b=t.style,y=t.contentStyles,C=t.getContainer,w=t.onVisibleChange,_=t.onChange,E=void 0!==g,N=n.useState(!1),S=N[0],T=N[1],O=n.useState(!1),L=O[0],A=O[1],k=E?g:S,M=n.useRef(null),I=n.useRef(null),j=n.useRef(null);n.useEffect(function(){return function(){j.current&&clearTimeout(j.current)}},[]),n.useEffect(function(){var e=function(e){M.current&&!M.current.contains(e.target)&&R()};return k&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[k,w,E]);var R=function(){A(!0),j.current&&clearTimeout(j.current),j.current=setTimeout(function(){A(!1),E||T(!1),null==w||w(!1)},200)},H=function(){j.current&&(clearTimeout(j.current),j.current=null),A(!1),E||T(!0),null==w||w(!0)},P=function(){f||"click"===l&&(k||L?R():H())},z=function(){f||"hover"!==l||H()},V=function(){f||"hover"!==l||R()};return e.jsx("div",{ref:M,className:p.default("dropdown",x,{"dropdown--disabled":f}),style:b,children:e.jsxs("div",{className:"dropdown-content-wrapper",children:["button"===o?e.jsx(se,{variant:"secondary",size:"medium",disabled:f,onClick:P,icon:"caret-down",children:a||"Dropdown"}):e.jsxs("div",{ref:I,className:p.default("dropdown-trigger",{"dropdown-trigger--text":"text"===o,"dropdown-trigger--disabled":f}),onClick:P,onMouseEnter:z,onMouseLeave:V,children:[a||"Dropdown",e.jsx(D,{type:"caret-down",className:"dropdown-arrow"})]}),function(){if(!r||0===r.length||!k&&!L)return null;var n=e.jsx("div",{className:p.default("dropdown-menu dropdown-menu--".concat(d," dropdown-menu--p-").concat(d),{"dropdown-menu--visible":k&&!L,"dropdown-menu--closing":L}),children:e.jsx("ul",{className:"dropdown-list",style:y,children:r.map(function(n){return e.jsxs("li",{className:p.default("dropdown-item",{"dropdown-item--disabled":n.disabled}),onClick:function(){return function(e){var n;e.disabled||(null===(n=e.onClick)||void 0===n||n.call(e),null==_||_(e),R())}(n)},children:[n.icon&&e.jsx("span",{className:"dropdown-item-icon",children:"string"==typeof n.icon?e.jsx(D,{type:n.icon}):n.icon}),e.jsx("span",{className:p.default("dropdown-item-label",{"dropdown-item-label--with-width":(null==y?void 0:y.width)&&!v,"dropdown-item-label--ellipsis":(null==y?void 0:y.width)&&v}),children:n.label})]},n.key)})})});if(C){var t=C();if(t)return h.default.createPortal(n,t)}return n}()]})})},Qr=function(e){var n,t=e.trim();return t&&(null===(n=Array.from(t)[0])||void 0===n?void 0:n.toUpperCase())||""},ei=u.default.memo(function(t){var r,i,o,a=t.item,s=t.level,l=t.mode,c=t.collapsed,d=t.theme,u=t.openKeySet,p=t.selectedKey,f=t.onItemClick,h=t.onToggleOpen,g=!!a.children&&a.children.length>0,m=u.has(a.key),v=p===a.key,x="horizontal"===l,b="inline"===l,y="vertical-flat"===l,C=0===s,w=n.useCallback(function(e){e.stopPropagation(),a.disabled||(g&&!y&&h(a.key),y&&g||f(a,a.key))},[a,f,h,g,y]),_=x&&C?16:b?12+24*s:c?0:12+16*s,E=m&&(!c||x),N=function(e){var t=n.useState(e),r=t[0],i=t[1],o=n.useState(e),a=o[0],s=o[1];return n.useEffect(function(){var n;return e?(s(!0),n=requestAnimationFrame(function(){i(!0)})):(i(!1),n=setTimeout(function(){s(!1)},150)),function(){"number"==typeof n?cancelAnimationFrame(n):clearTimeout(n)}},[e]),{isVisible:r,shouldRender:a}}(E&&x&&C),S=N.isVisible,T=N.shouldRender,O=g&&(!c||!C)&&!y,L=d||"light";return e.jsxs("div",{className:"idp-menu-item-wrapper ".concat(C?"root":""),children:[e.jsx("div",{className:"\n idp-menu-item\n ".concat(v?"selected":"","\n ").concat(a.disabled?"disabled":"","\n ").concat(g?"has-children":"","\n ").concat(C?"root":"","\n ").concat(c&&C?"collapsed":"","\n ").concat(l,"\n ").concat(L,"\n "),style:{padding:"0px ".concat(_,"px")},title:c&&C?a.label:void 0,onClick:w,children:e.jsxs("div",{className:"idp-menu-item-content",children:[c?e.jsx(e.Fragment,{children:a.icon?e.jsx("span",{className:"idp-menu-item-icon collapsed",children:a.icon}):e.jsx("span",{className:"idp-menu-item-collapsed-label",children:Qr(a.label)})}):e.jsxs(e.Fragment,{children:[a.icon&&e.jsx("span",{className:"idp-menu-item-icon",children:a.icon}),e.jsxs("div",{className:"idp-menu-item-text",children:[e.jsx("span",{className:"idp-menu-item-label",children:a.label}),a.description&&!g&&e.jsx("span",{className:"idp-menu-item-description",children:a.description})]})]}),O&&e.jsx("span",{className:"idp-menu-item-arrow ".concat(E?"open":""," ").concat(l),children:e.jsx("svg",{viewBox:"0 0 1024 1024",width:"10",height:"10",fill:"currentColor",children:e.jsx("path",{d:"M840.4 300H183.6c-19.7 0-30.7 25.7-18.5 40.5l328.4 402.4c9.4 11.6 26.7 11.6 36.1 0l328.4-402.4c12.2-14.8 1.2-40.5-18.5-40.5z"})})})]})}),g&&(!x||!C||T)&&e.jsx("div",{className:"idp-menu-submenu-wrapper ".concat(l," ").concat(x&&C?"horizontal-popup-wrapper":""," ").concat(y?"vertical-flat":""),children:e.jsx("div",{className:"idp-menu-submenu ".concat((i=x&&C?"horizontal-popup":"",o=b&&E?"open inline":"",y?"open vertical-flat":x&&C?"".concat(x&&C?S?"open":"":E?"open":""," ").concat(i).trim():b?o:E?"open":"")," ").concat(l),children:e.jsx("div",{className:"idp-menu-submenu-content",children:null===(r=a.children)||void 0===r?void 0:r.map(function(n){return e.jsx(ei,{item:n,level:s+1,mode:l,collapsed:c,theme:d,openKeySet:u,selectedKey:p,onItemClick:f,onToggleOpen:h},n.key)})})})})]})});ei.displayName="MenuItemComponent";var ni,ti,ri,ii,oi,ai,si,li,ci,di,ui,pi,fi,hi,gi,mi,vi,xi,bi,yi,Ci,wi,_i,Ei,Ni,Si,Ti=function(t){var r=t.mode,i=void 0===r?"vertical":r,o=t.items,a=t.className,s=void 0===a?"":a,l=t.style,c=t.selectedKey,d=t.defaultOpenKeys,u=void 0===d?[]:d,p=t.openKeys,f=t.collapsed,h=void 0!==f&&f,g=t.open,m=t.theme,v=void 0===m?"light":m,x=t.onChange,y=t.onOpenChange,C=n.useRef(null),w=n.useState(!0)[0],_=n.useState(u),E=_[0],N=_[1],S=n.useState(""),T=S[0],O=S[1],L=void 0!==p,A=void 0!==c,k=L?p:E,M=A?c:T,I=void 0!==g?g:w,j=n.useMemo(function(){return new Set(k)},[k]);n.useEffect(function(){void 0!==c&&O(c)},[c]),n.useEffect(function(){if(M&&!L&&"horizontal"!==i&&"vertical-flat"!==i){var e=function(n,t,r){void 0===r&&(r=[]);for(var i=0,o=n;i<o.length;i++){var a=o[i];if(a.key===t)return r;if(a.children&&a.children.length>0){var s=e(a.children,t,b(b([],r,!0),[a.key],!1));if(s.length>0)return s}}return[]},n=e(o,M);n.length>0&&N(function(e){var t=new Set(b(b([],e,!0),n,!0));return Array.from(t)})}},[M,o,L,i]);var R,D,H=n.useCallback(function(e,n){A||O(n),null==x||x(e,n),"horizontal"===i&&(!e.children||0===e.children.length)&&k.length>0&&(L||N([]),null==y||y([]))},[x,A,i,k.length,L,y]),P=n.useCallback(function(e){if(L){var n=j.has(e)?k.filter(function(n){return n!==e}):b(b([],k,!0),[e],!1);null==y||y(n)}else N(function(n){var t=n.includes(e)?n.filter(function(n){return n!==e}):b(b([],n,!0),[e],!1);return null==y||y(t),t})},[j,k,L,y]),z="horizontal"!==i&&h;return R=C,D=n.useCallback(function(){"horizontal"===i&&k.length>0&&(L||N([]),null==y||y([]))},[i,k.length,L,y]),n.useEffect(function(){var e=function(e){R.current&&!R.current.contains(e.target)&&D(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[R,D]),I?e.jsx("div",{ref:C,className:"idp-menu idp-menu-".concat(v," idp-menu-").concat(i," ").concat(z?"collapsed":""," ").concat(s),style:l,role:"menu",children:o.map(function(n){return e.jsx(ei,{item:n,level:0,mode:i,collapsed:z,theme:v,openKeySet:j,selectedKey:M,onItemClick:H,onToggleOpen:P},n.key)})}):null},Oi=function(t){var r=t.value,i=void 0===r?0:r,o=t.count,a=void 0===o?5:o,s=t.allowHalf,l=void 0===s||s,c=t.disabled,d=void 0!==c&&c,u=t.color,p=void 0===u?"#1677ff":u,f=t.onChange,h=t.className,g=void 0===h?"":h,m=t.size,v=void 0===m?24:m,x=t.chats,b=n.useState(0),y=b[0],C=b[1],w=n.useRef([]),_=n.useRef(0),E=Array.isArray(x)&&x.length>=a&&x.every(function(e){return null!=e&&""!==e}),N=n.useState([]),S=N[0],T=N[1],O=n.useState(!1),L=O[0],A=O[1];w.current.length!==a&&(w.current=Array(a).fill(null)),n.useEffect(function(){if(E)if("string"==typeof i&&i.length>0){var e=Math.min(i.length,a);T(x.slice(0,e))}else T([]);else T([])},[i,E,x,a]),n.useLayoutEffect(function(){0===y&&L&&A(!1)},[y,L]);var k=y||(E?S.length:parseFloat(Number(i).toFixed(1)||"0")),M=n.useCallback(function(e){return function(n){w.current[e]=n}},[]),I=n.useMemo(function(){return Array.from({length:a}).map(function(e,n){var t=n+1,r=!1,i=!1;E?r=n<(L&&y>0?y:S.length):k>=t?r=!0:l&&k>n&&k<t&&(i=!0);return{index:n,isHalf:i,isFull:r,iconType:i?"half":r?"full":"empty",iconColor:r||i?p:"#d9d9d9"}})},[a,k,l,p,E,S.length,L,y]),j=function(n){if(E){var t=x[n.index],r=n.isFull;return e.jsx("span",{className:"rate-chat-item",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",fontSize:"inherit",backgroundColor:"transparent",color:d?"inherit":r?p:"inherit",cursor:d?"default":"pointer"},onMouseEnter:function(e){if(!d){e.stopPropagation();var t=n.index+1;t!==_.current&&(_.current=t,C(t))}},onClick:function(e){if(!d){e.stopPropagation();var t=n.index+1;if(x&&Array.isArray(x)&&x.length>=0){var r=x.slice(0,t);T(r),null==f||f(r.join(""))}else null==f||f(t.toString());C(0),_.current=0,A(!1)}},children:t})}return e.jsxs(e.Fragment,{children:[e.jsx(D,{type:"starOutline",size:v,color:"#d9d9d9",className:"rate-star-bg"}),e.jsx("span",{className:"rate-star-left",onMouseEnter:function(e){if(!d&&l){e.stopPropagation();var t=n.index+.5;t!==_.current&&(_.current=t,C(t))}},onClick:function(e){!d&&l&&(e.stopPropagation(),null==f||f((n.index+.5).toString()),C(0),_.current=0,A(!1))}}),e.jsx("span",{className:"rate-star-right",onMouseEnter:function(e){if(!d){e.stopPropagation();var t=n.index+1;t!==_.current&&(_.current=t,C(t))}},onClick:function(e){if(!d){if(e.stopPropagation(),E){var t=x.slice(0,n.index+1);null==f||f(t.join(""))}else null==f||f((n.index+1).toString());C(0),_.current=0,A(!1)}}}),e.jsx("span",{className:"rate-star-fill ".concat(n.isHalf?"half":""," ").concat(n.isFull?"full":""),style:{color:n.iconColor},children:e.jsx(D,{type:"star",size:v,color:n.iconColor,className:"rate-star-icon"})})]})};return e.jsx("div",{className:"rate ".concat(d?"disabled":""," ").concat(E?"rate-chats-mode":"rate-star-mode"," ").concat(g),style:{"--rate-color":p},onMouseEnter:function(){d||A(!0)},onMouseLeave:function(){d||(A(!1),C(0),_.current=0)},children:I.map(function(n){return e.jsx("span",{ref:M(n.index),className:"rate-star",style:{fontSize:"".concat(v,"px")},children:j(n)},n.index)})})},Li=function(t){var r,i=t.min,o=void 0===i?0:i,a=t.max,s=void 0===a?100:a,l=t.step,c=void 0===l?1:l,d=t.value,u=t.defaultValue,p=void 0===u?0:u,f=t.disabled,h=void 0!==f&&f,m=t.marks,v=void 0===m?{}:m,x=t.showValue,b=void 0!==x&&x,y=t.trackColor,C=void 0===y?"#1890ff":y,w=t.handleColor,_=void 0===w?"#1890ff":w,E=t.gradient,N=t.onChange,S=t.onAfterChange,T=t.className,O=void 0===T?"":T,L=t.style,A=n.useState(p),k=A[0],M=A[1],I=n.useState(!1),j=I[0],R=I[1],D=n.useRef(null),H=n.useRef(null),P=n.useRef(void 0!==d?d:p),z=void 0!==d,V=z?d:k;n.useEffect(function(){P.current=V},[V]);var B=n.useCallback(function(e){var n=(e-o)/(s-o);return Math.max(0,Math.min(1,n))},[o,s]),U=n.useCallback(function(e){var n=Math.max(0,Math.min(1,e)),t=o+n*(s-o);if(c>0){var r=Math.round(t/c)*c;return Math.min(s,Math.max(o,r))}return Math.min(s,Math.max(o,t))},[o,s,c]),F=function(e){return"touches"in e?e.touches[0].clientX:e.clientX},Y=n.useCallback(function(e){D.current&&!h&&(H.current&&cancelAnimationFrame(H.current),H.current=requestAnimationFrame(function(){var n=D.current.getBoundingClientRect(),t=(e-n.left)/n.width,r=U(t);r!==P.current&&(P.current=r,z||M(r),null==N||N(r))}))},[h,z,U,N]),$=function(e){if(!h){e.preventDefault(),R(!0);var n=F(e);Y(n)}};n.useEffect(function(){if(j){var e=function(e){e.preventDefault();var n=F(e);Y(n)},n=function(){R(!1),H.current&&(cancelAnimationFrame(H.current),H.current=null),null==S||S(P.current)};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",n),document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n),document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n),H.current&&(cancelAnimationFrame(H.current),H.current=null)}}},[j,Y,S]);var G=B(V),W=n.useMemo(function(){return Object.entries(v).map(function(e){var n=e[0],t=e[1],r=Number(n),i="string"==typeof t?{trackColor:void 0,handleColor:void 0,mark:t}:t;return{value:r,label:i.mark,trackColor:i.trackColor,handleColor:i.handleColor,position:B(r)}}).sort(function(e,n){return e.value-n.value})},[v,B]),K=n.useMemo(function(){for(var e=0;e<W.length;e++){var n=W[e];if(V<=n.value)return{trackColor:n.trackColor,handleColor:n.handleColor,mark:n.label}}var t=W[W.length-1];return t?{trackColor:t.trackColor,handleColor:t.handleColor,mark:t.label}:{trackColor:void 0,handleColor:void 0,mark:""}},[W,V]),Z=L&&L["--idp-slider-track-filled-bg"],X=L&&L["--idp-slider-handle-border"],q=E&&!K.trackColor&&!Z&&"#1890ff"===C,J=K.trackColor||Z||C,Q=K.handleColor||X||_;return e.jsxs("div",{className:"slider-container ".concat(h?"disabled":""," ").concat(j?"dragging":""," ").concat(O),style:g((r={},r["--idp-slider-track-filled-bg"]=J,r["--idp-slider-handle-border"]="2px solid ".concat(Q),r),L),children:[e.jsxs("div",{ref:D,className:"slider-track",onClick:function(e){h||(e.target.classList.contains("slider-handle")||(Y(e.clientX),null==S||S(V)))},role:"presentation",children:[e.jsx("div",{className:"slider-track-filled",style:g({width:"".concat(100*G,"%")},q&&E?{background:"linear-gradient(to right, ".concat(E.startColor,", ").concat(E.endColor,")")}:{})}),e.jsx("div",{className:"slider-handle",style:{left:"".concat(100*G,"%")},onMouseDown:$,onTouchStart:$,onKeyDown:function(e){if(!h){var n=V;switch(e.key){case"ArrowLeft":case"ArrowDown":n=Math.max(o,V-c);break;case"ArrowRight":case"ArrowUp":n=Math.min(s,V+c);break;case"Home":n=o;break;case"End":n=s;break;case"PageDown":n=Math.max(o,V-10*c);break;case"PageUp":n=Math.min(s,V+10*c);break;default:return}e.preventDefault(),void 0===d&&M(n),null==N||N(n),null==S||S(n)}},role:"slider","aria-valuemin":o,"aria-valuemax":s,"aria-valuenow":V,"aria-disabled":h,tabIndex:h?-1:0,children:e.jsx("div",{className:"slider-tooltip",children:V})})]}),W.length>0&&e.jsx("div",{className:"slider-marks",children:W.map(function(n){return e.jsx("div",{className:"slider-mark",style:{left:"".concat(100*n.position,"%"),color:n.trackColor||void 0},children:n.label},n.value)})}),b&&e.jsxs("div",{className:"slider-value-display",children:["当前值:",V]})]})},Ai=n.createContext(null),ki=function(n){var t=n.index,r=n.status,i=n.item;return i.node?e.jsx("span",{className:"idp-step-node idp-step-node-".concat(r),children:i.node}):i.title?e.jsx("span",{className:"idp-step-node idp-step-node-".concat(r),children:i.title}):i.description?e.jsx("span",{className:"idp-step-node idp-step-node-".concat(r),children:i.description}):"finish"===r?e.jsx("span",{className:"idp-step-node idp-step-node-finish",children:"✓"}):"error"===r?e.jsx("span",{className:"idp-step-node idp-step-node-error",children:"✕"}):e.jsx("span",{className:"idp-step-node idp-step-node-".concat(r),children:t+1})},Mi=function(t){var r=t.item,i=t.index,o=t.isLast,a=u.default.useRef(null),s=n.useContext(Ai),l=n.useState(0),c=l[0],d=l[1];if(!s)return null;var p=s.current,f=s.status,h=s.direction,g=s.onChange,m=r.status||(i<p?"finish":i===p?f:"wait");u.default.useEffect(function(){var e;if(a.current&&"panel"===s.type){var n=null===(e=a.current.getBoundingClientRect())||void 0===e?void 0:e.height;d(n||0)}},[a,s]);var v=n.useMemo(function(){if("panel"!==s.type||0===c)return null;var n=c/4-8;return e.jsx("div",{style:{transform:"translateY(".concat(n,"px)")},className:"idp-step-arrow",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:e.jsx("path",{d:"M5.5 3L10.5 8L5.5 13",stroke:"currentColor",strokeWidth:"2",fill:"none"})})})},[c,s]),x={};r.tailColor&&(x.backgroundColor=r.tailColor);var b=r.tailType||"solid";return e.jsxs("div",{className:"idp-step ".concat(h," ").concat(m," ").concat(r.disabled?"disabled":""),onClick:function(){!r.disabled&&g&&i!==p&&g(i)},ref:a,children:[e.jsxs("div",{className:"idp-step-head",children:[e.jsx(ki,{index:i,status:m,item:r}),!o&&e.jsxs(e.Fragment,{children:["default"===s.type&&e.jsx("div",{className:"idp-step-tail idp-step-tail-".concat(b),style:x,children:r.tailTitle&&e.jsx("div",{className:"idp-step-tail-title",children:r.tailTitle})}),v]})]}),e.jsxs("div",{className:"idp-step-content",children:[r.title&&e.jsx("div",{className:"idp-step-title",children:r.title}),r.description&&e.jsx("div",{className:"idp-step-description",children:r.description})]})]})},Ii=function(n){var t=n.current,r=void 0===t?0:t,i=n.status,o=void 0===i?"process":i,a=n.direction,s=void 0===a?"horizontal":a,l=n.size,c=void 0===l?"default":l,d=n.type,u=void 0===d?"default":d,p=n.items,f=n.onChange,h=n.className,g=void 0===h?"":h,m=n.style,v={current:r,status:o,direction:s,size:c,type:u,onChange:f};return e.jsx(Ai.Provider,{value:v,children:e.jsx("div",{className:"idp-steps ".concat(s," ").concat(c," ").concat(u," ").concat(g),style:m,children:p.map(function(n,t){return e.jsx(Mi,{item:n,index:t,isLast:t===p.length-1},t)})})})},ji=function(e,n){return"var(".concat(e,", ").concat(n,")")},Ri=f.default.div(ni||(ni=y(["\n display: inline-block;\n\n &.switch-wrapper {\n /* 外部可通过 .switch-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: inline-block;\n\n &.switch-wrapper {\n /* 外部可通过 .switch-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Di=f.default.div(ti||(ti=y(["\n position: relative;\n background: ",";\n border-radius: ",";\n transition: ",";\n cursor: ",";\n opacity: ",";\n box-sizing: border-box;\n overflow: hidden;\n box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);\n\n &.switch-track {\n /* 外部可通过 .switch-track 选择器覆盖样式 */\n }\n\n &.switch-track-checked {\n background: ",";\n box-shadow: 0 2px 8px rgba(24, 144, 255, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.2);\n }\n\n &.switch-track-disabled {\n cursor: not-allowed;\n opacity: var(--idp-switch-disabled-opacity, 0.65);\n background: ",";\n }\n\n &.switch-track-loading {\n cursor: wait;\n }\n\n &:hover:not(.switch-track-disabled) {\n box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);\n }\n\n &.switch-track-checked:hover:not(.switch-track-disabled) {\n box-shadow: 0 4px 12px rgba(24, 144, 255, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.2);\n }\n\n ","\n\n ","\n\n ","\n\n ","\n"],["\n position: relative;\n background: ",";\n border-radius: ",";\n transition: ",";\n cursor: ",";\n opacity: ",";\n box-sizing: border-box;\n overflow: hidden;\n box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);\n\n &.switch-track {\n /* 外部可通过 .switch-track 选择器覆盖样式 */\n }\n\n &.switch-track-checked {\n background: ",";\n box-shadow: 0 2px 8px rgba(24, 144, 255, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.2);\n }\n\n &.switch-track-disabled {\n cursor: not-allowed;\n opacity: var(--idp-switch-disabled-opacity, 0.65);\n background: ",";\n }\n\n &.switch-track-loading {\n cursor: wait;\n }\n\n &:hover:not(.switch-track-disabled) {\n box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);\n }\n\n &.switch-track-checked:hover:not(.switch-track-disabled) {\n box-shadow: 0 4px 12px rgba(24, 144, 255, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.2);\n }\n\n ","\n\n ","\n\n ","\n\n ","\n"])),ji("--idp-switch-track-bg-gradient","linear-gradient(135deg, #e8e8e8 0%, #d9d9d9 100%)"),ji("--idp-switch-track-radius","12px"),ji("--idp-switch-transition","all 0.2s ease-in-out"),function(e){return e.$disabled?"not-allowed":"pointer"},function(e){return e.$disabled?"var(--idp-switch-disabled-opacity, 0.65)":1},ji("--idp-switch-track-active-gradient","linear-gradient(135deg, #1890ff 0%, #40a9ff 100%)"),ji("--idp-switch-disabled-bg","#f5f5f5"),function(e){var n=e.$size,t=e.$hasChildren,r=e.$width;return r?"\n width: ".concat(r,"px;\n min-width: ").concat(r,"px;\n height: ").concat("small"===n?ji("--idp-switch-small-height","16px"):ji("--idp-switch-default-height","22px"),";\n "):"small"===n?"\n width: ".concat(t?"auto":ji("--idp-switch-small-width","28px"),";\n min-width: ").concat(ji("--idp-switch-small-width","28px"),";\n height: ").concat(ji("--idp-switch-small-height","16px"),";\n "):"\n width: ".concat(t?"auto":ji("--idp-switch-default-width","44px"),";\n min-width: ").concat(ji("--idp-switch-default-width","44px"),";\n height: ").concat(ji("--idp-switch-default-height","22px"),";\n ")},function(e){return e.$checked&&"\n background: ".concat(ji("--idp-switch-track-active-gradient","linear-gradient(135deg, #1890ff 0%, #40a9ff 100%)"),";\n box-shadow: 0 2px 8px rgba(24, 144, 255, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.2);\n ")},function(e){return e.$loading&&"\n cursor: wait;\n "},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Hi=f.default.div(ri||(ri=y(["\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n background: linear-gradient(135deg, "," 0%, "," 100%);\n border-radius: ",";\n box-shadow: ",";\n transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;\n z-index: 2;\n\n &.switch-thumb {\n /* 外部可通过 .switch-thumb 选择器覆盖样式 */\n }\n\n &.switch-thumb-checked {\n box-shadow: ",";\n }\n\n ","\n\n ","\n\n ","\n"],["\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n background: linear-gradient(135deg, "," 0%, "," 100%);\n border-radius: ",";\n box-shadow: ",";\n transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;\n z-index: 2;\n\n &.switch-thumb {\n /* 外部可通过 .switch-thumb 选择器覆盖样式 */\n }\n\n &.switch-thumb-checked {\n box-shadow: ",";\n }\n\n ","\n\n ","\n\n ","\n"])),ji("--idp-switch-thumb-bg","#fff"),ji("--idp-bg-color-light","#f5f5f5"),ji("--idp-switch-thumb-radius","50%"),ji("--idp-switch-thumb-shadow","0 2px 8px rgba(0, 0, 0, 0.15)"),ji("--idp-switch-thumb-shadow-active","0 2px 8px rgba(24, 144, 255, 0.4)"),function(e){var n=e.$size,t=e.$checked,r=e.$width,i="small"===n?12:18;if(r){var o="".concat(t?r-i-2:2,"px");return"\n width: ".concat(i,"px;\n height: ").concat(i,"px;\n left: ").concat(o,";\n ")}if("small"===n){var a=t?"14px":"2px";return"\n width: ".concat(i,"px;\n height: ").concat(i,"px;\n left: ").concat(a,";\n ")}var s=t?"24px":"2px";return"\n width: ".concat(i,"px;\n height: ").concat(i,"px;\n left: ").concat(s,";\n ")},function(e){return e.$loading&&"\n animation: idp-switch-thumb-spin 1s linear infinite;\n "},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Pi=f.default.div(ii||(ii=y(["\n position: absolute;\n top: 50%;\n margin-top: -6px; /* 12px 高度的一半,实现垂直居中 */\n width: ",";\n height: ",";\n z-index: 3;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &.switch-loading-icon {\n /* 外部可通过 .switch-loading-icon 选择器覆盖样式 */\n }\n\n /* SVG 旋转动画 - 以中心点旋转 */\n & > svg {\n width: 100%;\n height: 100%;\n animation: idp-switch-spin 1s linear infinite;\n transform-origin: center center;\n display: block;\n fill: ",";\n }\n\n ","\n\n ","\n"],["\n position: absolute;\n top: 50%;\n margin-top: -6px; /* 12px 高度的一半,实现垂直居中 */\n width: ",";\n height: ",";\n z-index: 3;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &.switch-loading-icon {\n /* 外部可通过 .switch-loading-icon 选择器覆盖样式 */\n }\n\n /* SVG 旋转动画 - 以中心点旋转 */\n & > svg {\n width: 100%;\n height: 100%;\n animation: idp-switch-spin 1s linear infinite;\n transform-origin: center center;\n display: block;\n fill: ",";\n }\n\n ","\n\n ","\n"])),ji("--idp-switch-loading-size","12px"),ji("--idp-switch-loading-size","12px"),ji("--idp-switch-loading-color","#1890ff"),function(e){var n=e.$size,t=e.$checked,r=e.$width,i="small"===n?12:18;return r?"\n left: ".concat((t?r-i-2:2)+(i-12)/2,"px;\n "):"small"===n?"\n left: ".concat((t?14:2)+(i-12)/2,"px;\n "):"\n left: ".concat((t?24:2)+(i-12)/2,"px;\n ")},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),zi=f.default.span(oi||(oi=y(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: ",";\n display: flex;\n align-items: center;\n justify-content: flex-start;\n font-size: ",";\n color: #fff;\n white-space: nowrap;\n user-select: none;\n z-index: 1;\n padding-right: ",";\n font-weight: 500;\n letter-spacing: 0.2px;\n\n &.switch-checked-inner {\n /* 外部可通过 .switch-checked-inner 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: absolute;\n top: 0;\n bottom: 0;\n left: ",";\n display: flex;\n align-items: center;\n justify-content: flex-start;\n font-size: ",";\n color: #fff;\n white-space: nowrap;\n user-select: none;\n z-index: 1;\n padding-right: ",";\n font-weight: 500;\n letter-spacing: 0.2px;\n\n &.switch-checked-inner {\n /* 外部可通过 .switch-checked-inner 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){return"small"===e.$size?"3px":"4px"},function(e){return"small"===e.$size?"9px":"10px"},function(e){return"small"===e.$size?"14px":"20px"},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Vi=f.default.span(ai||(ai=y(["\n position: absolute;\n top: 0;\n bottom: 0;\n right: ",";\n display: flex;\n align-items: center;\n justify-content: flex-end;\n font-size: ",";\n color: ",";\n white-space: nowrap;\n user-select: none;\n z-index: 1;\n padding-left: ",";\n font-weight: 500;\n letter-spacing: 0.2px;\n\n &.switch-unchecked-inner {\n /* 外部可通过 .switch-unchecked-inner 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: absolute;\n top: 0;\n bottom: 0;\n right: ",";\n display: flex;\n align-items: center;\n justify-content: flex-end;\n font-size: ",";\n color: ",";\n white-space: nowrap;\n user-select: none;\n z-index: 1;\n padding-left: ",";\n font-weight: 500;\n letter-spacing: 0.2px;\n\n &.switch-unchecked-inner {\n /* 外部可通过 .switch-unchecked-inner 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){return"small"===e.$size?"3px":"4px"},function(e){return"small"===e.$size?"9px":"10px"},ji("--idp-text-color-secondary","rgba(0, 0, 0, 0.65)"),function(e){return"small"===e.$size?"14px":"20px"},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Bi=function(t){var r=t.checked,i=t.defaultChecked,o=void 0!==i&&i,a=t.disabled,s=void 0!==a&&a,l=t.loading,c=void 0!==l&&l,d=t.size,u=void 0===d?"default":d,p=t.width,f=t.checkedChildren,h=t.unCheckedChildren,m=t.styles,v=t.onChange,x=t.label,b=t.labelGap,y=void 0===b?8:b,C=t.labelClassName,w=void 0===C?"":C,_=t.labelStyle,E=void 0!==r,N=n.useState(o),S=N[0],T=N[1],O=E?r:S,L=void 0!==f||void 0!==h;n.useEffect(function(){!function(){if("undefined"!=typeof document&&!document.getElementById("idp-switch-styles")){var e=document.createElement("style");e.id="idp-switch-styles",e.textContent="\n @keyframes idp-switch-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n @keyframes idp-switch-thumb-spin {\n from { transform: translateY(-50%) rotate(0deg); }\n to { transform: translateY(-50%) rotate(360deg); }\n }\n ",document.head.appendChild(e)}}()},[]);return e.jsx(Ri,{className:"switch-wrapper",$styles:null==m?void 0:m.wrapper,children:e.jsxs("div",{className:"switch-label-wrapper",style:{display:"flex",alignItems:"center"},children:[x&&e.jsx("div",{className:"switch-label ".concat(w),style:g({marginRight:"number"==typeof y?"".concat(y,"px"):y},_),children:x}),e.jsxs(Di,{className:"switch-track".concat(O?" switch-track-checked":"").concat(s?" switch-track-disabled":"").concat(c?" switch-track-loading":""),$checked:O,$disabled:s,$size:u,$loading:c,$hasChildren:L,$width:p,$styles:null==m?void 0:m.track,onClick:function(){if(!s&&!c){var e=!O;E||T(e),null==v||v(e)}},children:[c&&e.jsx(Pi,{className:"switch-loading-icon",$checked:O,$size:u,$width:p,$styles:null==m?void 0:m.loading,children:e.jsx("svg",{viewBox:"0 0 24 24",width:"12",height:"12",fill:"#1890ff",children:e.jsx("path",{d:"M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"})})}),!c&&O&&f&&e.jsx(zi,{className:"switch-checked-inner",$size:u,$styles:null==m?void 0:m.inner,children:f}),!c&&!O&&h&&e.jsx(Vi,{className:"switch-unchecked-inner",$size:u,$styles:null==m?void 0:m.inner,children:h}),e.jsx(Hi,{className:"switch-thumb".concat(O?" switch-thumb-checked":""),$checked:O,$size:u,$loading:c,$hasChildren:L,$width:p,$styles:null==m?void 0:m.thumb})]})]})})},Ui=function(n){var t=n.item,r=n.isActive,i=n.isClosable,o=n.onClick,a=n.onClose,s=n.tabRefs,d=l.useSortable({id:t.key,disabled:t.disabled}),u=d.attributes,f=d.listeners,h=d.setNodeRef,m=d.transform,v=d.transition,x=d.isDragging,b={transform:c.CSS.Transform.toString(m),transition:v,opacity:x?.5:1,zIndex:x?1e3:"auto",position:"relative"};return e.jsxs("div",{ref:function(e){h(e),e?s.current.set(t.key,e):s.current.delete(t.key)},className:p.default("idp-tabs-tab",{"idp-tabs-tab--active":r,"idp-tabs-tab--disabled":t.disabled,"idp-tabs-tab--dragging":x}),role:"tab","aria-selected":r,style:b,children:[e.jsxs("div",g({className:"idp-tabs-tab__drag-handle"},u,f,{onClick:o,style:{cursor:t.disabled?"not-allowed":"grab",display:"flex",alignItems:"center",gap:"6px"},children:[t.icon&&e.jsx("span",{className:"idp-tabs-tab__icon",children:t.icon}),e.jsx("span",{className:"idp-tabs-tab__label",children:t.label})]})),i&&!t.disabled&&e.jsx("span",{className:"idp-tabs-tab__close",onClick:function(e){return a(e)},children:e.jsx(D,{type:"close",size:12})})]})},Fi=function(t){var r=t.items,i=void 0===r?[]:r,o=t.activeKey,a=t.defaultActiveKey,c=t.onChange,d=t.onClose,f=t.tabsClosable,h=void 0!==f&&f,m=t.tabPlacement,v=void 0===m?"top":m,x=t.type,b=void 0===x?"line":x,y=t.onAdd,C=t.className,w=t.style,_=t.contentClassName,E=t.contentStyle,N=t.draggable,S=void 0!==N&&N,T=t.onDragEnd,O=n.useState(function(){return a}),L=O[0],A=O[1],k=n.useRef(null),M=n.useRef(new Map),I=n.useRef(null),j=n.useState({}),R=j[0],H=j[1],P=n.useState(!1),z=P[0],V=P[1],B=n.useState(!1),U=B[0],F=B[1],Y=n.useState(!1),$=Y[0],G=Y[1],W=n.useState(!1),K=W[0],Z=W[1],X=n.useRef(!1),q=n.useRef(!0),J=n.useState(!1),Q=J[0],ee=J[1],ne=n.useState(i),te=ne[0],re=ne[1];n.useEffect(function(){void 0!==o&&A(o)},[o]),n.useEffect(function(){re(i)},[i]),n.useEffect(function(){var e;if(void 0===o){var n=null===(e=i[0])||void 0===e?void 0:e.key;if(!(!!a&&i.some(function(e){return e.key===a}))||L)if(n)i.some(function(e){return e.key===L})||A(n);else A(void 0);else A(a)}},[i,L,o,a]);var ie=void 0!==o?o:L,oe=n.useMemo(function(){return i.find(function(e){return e.key===ie})||i[0]},[i,ie]),ae=function(e,n){if(void 0===n&&(n=!0),e&&k.current){var t=M.current.get(e),r=k.current;if(t&&r){var i=r.querySelector(".idp-tabs-indicator"),o=q.current;if(i&&o&&(i.style.transition="none"),"top"===v||"bottom"===v){if(H({left:t.offsetLeft,width:t.offsetWidth,top:void 0,height:void 0}),!n){var a=t.offsetLeft,s=a+t.offsetWidth,l=r.scrollLeft,c=r.clientWidth;(a<l||s>l+c)&&t.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"})}}else H({top:t.offsetTop,height:t.offsetHeight,left:void 0,width:void 0});i&&o&&n?requestAnimationFrame(function(){i.style.transition="",q.current=!1}):o&&(q.current=!1)}}},se=u.default.useCallback(function(){if(k.current){var e=k.current,n="top"===v||"bottom"===v;if("card"===b)return V(!1),F(!1),void G(!1);if(n){var t=Math.ceil(e.scrollWidth)>Math.floor(e.clientWidth);if(V(t),t){var r=e.scrollLeft>1;F(r);var i=e.scrollWidth-e.clientWidth,o=e.scrollLeft<i-1;G(o)}else F(!1),G(!1)}else V(!1),F(!1),G(!1)}},[v,b]),le=function(e){if(k.current&&!X.current){var n=k.current,t=n.clientWidth,r=Math.max(200,.6*t);X.current=!0,"left"===e?n.scrollTo({left:n.scrollLeft-r,behavior:"smooth"}):n.scrollTo({left:n.scrollLeft+r,behavior:"smooth"}),setTimeout(function(){X.current=!1,se()},400)}};n.useEffect(function(){ie&&(ae(ie,!1),se())},[ie,i,v,se]),n.useEffect(function(){se();var e=requestAnimationFrame(function(){ie&&ae(ie,!1),se()});return function(){return cancelAnimationFrame(e)}},[se,ie]),n.useEffect(function(){var e,n=function(){ie&&ae(ie,!1),se()},t=function(){clearTimeout(e),e=setTimeout(function(){se()},100)},r=k.current;return r&&r.addEventListener("scroll",t),window.addEventListener("resize",n),function(){window.removeEventListener("resize",n),r&&r.removeEventListener("scroll",t),clearTimeout(e)}},[se,ie]),n.useEffect(function(){var e=function(){if(I.current&&k.current&&"card"===b&&y){var e=k.current,n=I.current,t=e.getBoundingClientRect(),r=n.getBoundingClientRect(),i=t.right-r.right;ee(i<=20)}else ee(!1)};e();var n=function(){e()},t=k.current;return t&&(t.addEventListener("scroll",n),window.addEventListener("resize",n)),function(){t&&t.removeEventListener("scroll",n),window.removeEventListener("resize",n)}},[b,y,i]);var ce=function(e){e.disabled||(void 0===o&&A(e.key),ae(e.key,!0),se(),null==c||c(e.key))},de=function(e,n){e.stopPropagation(),n.disabled||null==d||d(n.key)},ue=function(){null==y||y(),setTimeout(function(){k.current&&requestAnimationFrame(function(){if(k.current&&M.current.size>0){var e=Array.from(M.current.keys());if(e.length>0){var n=e[e.length-1],t=M.current.get(n),r=k.current;if(t&&r&&I.current)if("card"===b){var i=I.current.offsetWidth+4,o=t.offsetLeft+t.offsetWidth,a=r.clientWidth;if(o-r.scrollLeft>a-i){var s=o-a+i;r.scrollTo({left:s,behavior:"smooth"})}}else t.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"})}}})},100)},pe=s.useSensors(s.useSensor(s.PointerSensor,{activationConstraint:{distance:8}})),fe=function(e){},he=function(e){var n=e.active,t=e.over;if(t&&n.id!==t.id){var r=te.findIndex(function(e){return e.key===n.id}),i=te.findIndex(function(e){return e.key===t.id});if(-1!==r&&-1!==i){var o=l.arrayMove(te,r,i);re(o),null==T||T(o)}}},ge=function(){var n="top"===v||"bottom"===v,t="card"===b,r=S?te:i,o=e.jsxs("div",{className:"idp-tabs-nav-wrapper",onMouseEnter:function(){return Z(!0)},onMouseLeave:function(){return Z(!1)},children:[n&&z&&!t&&e.jsx("button",{className:p.default("idp-tabs-nav__button","idp-tabs-nav__button--left",{"idp-tabs-nav__button--disabled":!U,"idp-tabs-nav__button--visible":K}),onClick:function(){return le("left")},disabled:!U,type:"button",children:e.jsx(D,{type:"arrowLeft",size:12})}),e.jsxs("div",{className:"idp-tabs-nav",ref:k,children:[r.map(function(n){return function(n,t,r){return!S||n.disabled||"top"!==v&&"bottom"!==v?e.jsxs("div",{ref:function(e){e?M.current.set(n.key,e):M.current.delete(n.key)},className:p.default("idp-tabs-tab",{"idp-tabs-tab--active":t,"idp-tabs-tab--disabled":n.disabled}),role:"tab","aria-selected":t,onClick:function(){return ce(n)},children:[n.icon&&e.jsx("span",{className:"idp-tabs-tab__icon",children:n.icon}),e.jsx("span",{className:"idp-tabs-tab__label",children:n.label}),r&&!n.disabled&&e.jsx("span",{className:"idp-tabs-tab__close",onClick:function(e){return de(e,n)},children:e.jsx(D,{type:"close",size:12})})]},n.key):e.jsx(Ui,{item:n,isActive:t,isClosable:r,onClick:function(){return ce(n)},onClose:function(e){return de(e,n)},tabRefs:M},n.key)}(n,n.key===ie,h||n.closable||!1)}),"card"===b&&y&&e.jsx("div",{ref:I,className:p.default("idp-tabs-tab idp-tabs-tab--add",{sticky:!0===Q}),role:"tab",onClick:ue,children:e.jsx(D,{type:"plus",size:16})}),e.jsx("div",{className:"idp-tabs-indicator",style:R})]}),n&&z&&!t&&e.jsx("button",{className:p.default("idp-tabs-nav__button","idp-tabs-nav__button--right",{"idp-tabs-nav__button--disabled":!$,"idp-tabs-nav__button--visible":K}),onClick:function(){return le("right")},disabled:!$,type:"button",children:e.jsx(D,{type:"arrowRight",size:12})})]});return!S||t||"top"!==v&&"bottom"!==v?o:e.jsx(s.DndContext,{sensors:pe,collisionDetection:s.closestCenter,onDragStart:fe,onDragEnd:he,children:e.jsx(l.SortableContext,{items:r.map(function(e){return e.key}),strategy:l.horizontalListSortingStrategy,children:o})})},me=function(){var n=(null==oe?void 0:oe.renderContent)?oe.renderContent():null==oe?void 0:oe.content,t=p.default("idp-tabs-content","idp-tabs-content--".concat(v),_),r=g({},E);return e.jsx("div",{className:t,style:r,children:n})};return e.jsx("div",{className:p.default("idp-tabs","idp-tabs--".concat(v),"idp-tabs--".concat(b),C),style:w,children:"bottom"===v?e.jsxs(e.Fragment,{children:[me(),ge()]}):e.jsxs(e.Fragment,{children:[ge(),me()]})})},Yi=function(e,n){return"var(".concat(e,", ").concat(n,")")},$i=f.default.div(si||(si=y(["\n display: flex;\n align-items: center;\n gap: 8px;\n\n &.transfer-wrapper {\n /* 外部可通过 .transfer-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n\n &.transfer-wrapper {\n /* 外部可通过 .transfer-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Gi=f.default.div(li||(li=y(["\n width: ",";\n height: ",";\n border: 1px solid ",";\n border-radius: ",";\n background: ",";\n display: flex;\n flex-direction: column;\n overflow: hidden;\n opacity: ",";\n /* 立体感阴影效果 */\n box-shadow:\n 0 2px 4px rgba(0, 0, 0, 0.04),\n 0 4px 8px rgba(0, 0, 0, 0.06),\n 0 8px 16px rgba(0, 0, 0, 0.04),\n inset 0 1px 0 rgba(255, 255, 255, 0.8);\n transition: box-shadow 0.3s ease, transform 0.3s ease;\n\n &.transfer-list {\n /* 外部可通过 .transfer-list 选择器覆盖样式 */\n }\n\n ","\n"],["\n width: ",";\n height: ",";\n border: 1px solid ",";\n border-radius: ",";\n background: ",";\n display: flex;\n flex-direction: column;\n overflow: hidden;\n opacity: ",";\n /* 立体感阴影效果 */\n box-shadow:\n 0 2px 4px rgba(0, 0, 0, 0.04),\n 0 4px 8px rgba(0, 0, 0, 0.06),\n 0 8px 16px rgba(0, 0, 0, 0.04),\n inset 0 1px 0 rgba(255, 255, 255, 0.8);\n transition: box-shadow 0.3s ease, transform 0.3s ease;\n\n &.transfer-list {\n /* 外部可通过 .transfer-list 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$width;return"number"==typeof n?"".concat(n,"px"):n||Yi("--transfer-list-width","200px")},function(e){var n=e.$height;return"number"==typeof n?"".concat(n,"px"):n||Yi("--transfer-height","300px")},Yi("--transfer-border-color","#d9d9d9"),Yi("--transfer-border-radius","6px"),Yi("--transfer-bg","#fff"),function(e){return e.$disabled?.6:1},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Wi=f.default.div(ci||(ci=y(["\n height: ",";\n padding: 0 ",";\n background: ",";\n border-bottom: 1px solid ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: ",";\n font-weight: 500;\n color: ",";\n\n &.transfer-list-header {\n /* 外部可通过 .transfer-list-header 选择器覆盖样式 */\n }\n"],["\n height: ",";\n padding: 0 ",";\n background: ",";\n border-bottom: 1px solid ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: ",";\n font-weight: 500;\n color: ",";\n\n &.transfer-list-header {\n /* 外部可通过 .transfer-list-header 选择器覆盖样式 */\n }\n"])),Yi("--transfer-header-height","40px"),Yi("--transfer-padding","12px"),Yi("--transfer-header-bg","#fafafa"),Yi("--transfer-border-color","#d9d9d9"),Yi("--transfer-header-font-size","14px"),Yi("--transfer-item-text-color","rgba(0, 0, 0, 0.85)")),Ki=f.default.div(di||(di=y(["\n display: flex;\n align-items: center;\n gap: 8px;\n\n .transfer-checkbox {\n cursor: pointer;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n\n .transfer-checkbox {\n cursor: pointer;\n }\n"]))),Zi=f.default.span(ui||(ui=y(["\n font-size: 12px;\n color: ",";\n"],["\n font-size: 12px;\n color: ",";\n"])),Yi("--transfer-description-color","rgba(0, 0, 0, 0.45)")),Xi=f.default.div(pi||(pi=y(["\n padding: 8px ",";\n border-bottom: 1px solid ",";\n display: flex;\n align-items: center;\n gap: 8px;\n box-sizing: border-box;\n width: 100%;\n\n &.transfer-search-wrapper {\n /* 外部可通过 .transfer-search-wrapper 选择器覆盖样式 */\n }\n"],["\n padding: 8px ",";\n border-bottom: 1px solid ",";\n display: flex;\n align-items: center;\n gap: 8px;\n box-sizing: border-box;\n width: 100%;\n\n &.transfer-search-wrapper {\n /* 外部可通过 .transfer-search-wrapper 选择器覆盖样式 */\n }\n"])),Yi("--transfer-padding","12px"),Yi("--transfer-border-color","#d9d9d9")),qi=f.default.input(fi||(fi=y(["\n flex: 1;\n min-width: 0;\n height: ",";\n padding: ",";\n border: 1px solid ",";\n border-radius: 4px;\n font-size: ",";\n outline: none;\n transition: ",";\n box-sizing: border-box;\n\n &::placeholder {\n color: ",";\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:disabled {\n background: #f5f5f5;\n cursor: not-allowed;\n }\n\n ","\n"],["\n flex: 1;\n min-width: 0;\n height: ",";\n padding: ",";\n border: 1px solid ",";\n border-radius: 4px;\n font-size: ",";\n outline: none;\n transition: ",";\n box-sizing: border-box;\n\n &::placeholder {\n color: ",";\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:disabled {\n background: #f5f5f5;\n cursor: not-allowed;\n }\n\n ","\n"])),Yi("--transfer-search-height","32px"),Yi("--transfer-search-padding","0 8px"),Yi("--transfer-search-border","#d9d9d9"),Yi("--transfer-font-size","14px"),Yi("--transfer-transition","all 0.3s"),Yi("--transfer-search-placeholder-color","rgba(0, 0, 0, 0.45)"),Yi("--transfer-search-focus-border","#1890ff"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Ji=f.default.button(hi||(hi=y(["\n width: 32px;\n min-width: 32px;\n height: ",";\n border: 1px solid ",";\n border-radius: 4px;\n background: ",";\n cursor: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n transition: ",";\n opacity: ",";\n flex-shrink: 0;\n padding: 0;\n box-sizing: border-box;\n\n &:hover:not(:disabled) {\n border-color: ",";\n color: ",";\n }\n\n &:disabled {\n background: #f5f5f5;\n }\n\n /* 搜索图标 */\n .search-icon {\n width: 16px;\n height: 16px;\n }\n"],["\n width: 32px;\n min-width: 32px;\n height: ",";\n border: 1px solid ",";\n border-radius: 4px;\n background: ",";\n cursor: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n transition: ",";\n opacity: ",";\n flex-shrink: 0;\n padding: 0;\n box-sizing: border-box;\n\n &:hover:not(:disabled) {\n border-color: ",";\n color: ",";\n }\n\n &:disabled {\n background: #f5f5f5;\n }\n\n /* 搜索图标 */\n .search-icon {\n width: 16px;\n height: 16px;\n }\n"])),Yi("--transfer-search-height","32px"),Yi("--transfer-search-border","#d9d9d9"),Yi("--transfer-bg","#fff"),function(e){return e.$disabled?"not-allowed":"pointer"},Yi("--transfer-transition","all 0.3s"),function(e){return e.$disabled?.6:1},Yi("--transfer-search-focus-border","#1890ff"),Yi("--transfer-search-focus-border","#1890ff")),Qi=f.default.div(gi||(gi=y(["\n flex: 1;\n overflow-y: auto;\n padding: 4px 0;\n\n &.transfer-list-body {\n /* 外部可通过 .transfer-list-body 选择器覆盖样式 */\n }\n\n /* 滚动条样式 - 淡色精致设计 */\n &::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n border: 2px solid transparent;\n background-clip: padding-box;\n transition: background 0.2s ease;\n\n &:hover {\n background: rgba(0, 0, 0, 0.25);\n }\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n border-radius: 4px;\n }\n\n &::-webkit-scrollbar-corner {\n background: transparent;\n }\n"],["\n flex: 1;\n overflow-y: auto;\n padding: 4px 0;\n\n &.transfer-list-body {\n /* 外部可通过 .transfer-list-body 选择器覆盖样式 */\n }\n\n /* 滚动条样式 - 淡色精致设计 */\n &::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n border: 2px solid transparent;\n background-clip: padding-box;\n transition: background 0.2s ease;\n\n &:hover {\n background: rgba(0, 0, 0, 0.25);\n }\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n border-radius: 4px;\n }\n\n &::-webkit-scrollbar-corner {\n background: transparent;\n }\n"]))),eo=f.default.div(mi||(mi=y(["\n height: ",";\n padding: ",";\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: ",";\n transition: ",";\n font-size: ",";\n color: ",";\n background: ",";\n\n &:hover {\n background: ",";\n }\n\n &.transfer-list-item {\n /* 外部可通过 .transfer-list-item 选择器覆盖样式 */\n }\n\n ","\n"],["\n height: ",";\n padding: ",";\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: ",";\n transition: ",";\n font-size: ",";\n color: ",";\n background: ",";\n\n &:hover {\n background: ",";\n }\n\n &.transfer-list-item {\n /* 外部可通过 .transfer-list-item 选择器覆盖样式 */\n }\n\n ","\n"])),Yi("--transfer-item-height","32px"),Yi("--transfer-item-padding","0 12px"),function(e){return e.$disabled?"not-allowed":"pointer"},Yi("--transfer-transition","all 0.3s"),Yi("--transfer-item-font-size","14px"),function(e){return e.$disabled?Yi("--transfer-item-disabled-color","rgba(0, 0, 0, 0.25)"):Yi("--transfer-item-text-color","rgba(0, 0, 0, 0.85)")},function(e){return e.$selected?Yi("--transfer-item-selected-bg","#e6f7ff"):"transparent"},function(e){var n=e.$disabled,t=e.$selected;return n?"transparent":t?Yi("--transfer-item-selected-bg","#e6f7ff"):Yi("--transfer-item-hover-bg","#f5f5f5")},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),no=f.default.span(vi||(vi=y(["\n width: 16px;\n height: 16px;\n border: 1px solid\n ",";\n border-radius: 2px;\n background: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: all 0.3s;\n\n &::after {\n content: ",";\n font-size: ",";\n color: #fff;\n transform: scale(",");\n transition: all 0.2s;\n line-height: 1;\n font-weight: ",";\n }\n"],["\n width: 16px;\n height: 16px;\n border: 1px solid\n ",";\n border-radius: 2px;\n background: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: all 0.3s;\n\n &::after {\n content: ",";\n font-size: ",";\n color: #fff;\n transform: scale(",");\n transition: all 0.2s;\n line-height: 1;\n font-weight: ",";\n }\n"])),function(e){var n=e.$checked,t=e.$indeterminate;return n||t?"#1890ff":"#d9d9d9"},function(e){var n=e.$checked,t=e.$indeterminate;return n||t?"#1890ff":"#fff"},function(e){var n=e.$checked;return e.$indeterminate?"'−'":n?"'✓'":"''"},function(e){return e.$indeterminate?"14px":"12px"},function(e){var n=e.$checked,t=e.$indeterminate;return n||t?1:0},function(e){return e.$indeterminate?"bold":"normal"}),to=f.default.span(xi||(xi=y(["\n width: 16px;\n height: 16px;\n border: 1px solid ",";\n border-radius: 2px;\n background: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: all 0.3s;\n\n &::after {\n content: '✓';\n font-size: 12px;\n color: #fff;\n transform: scale(",");\n transition: all 0.2s;\n line-height: 1;\n }\n"],["\n width: 16px;\n height: 16px;\n border: 1px solid ",";\n border-radius: 2px;\n background: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: all 0.3s;\n\n &::after {\n content: '✓';\n font-size: 12px;\n color: #fff;\n transform: scale(",");\n transition: all 0.2s;\n line-height: 1;\n }\n"])),function(e){return e.$checked?"#1890ff":"#d9d9d9"},function(e){return e.$checked?"#1890ff":"#fff"},function(e){return e.$checked?1:0}),ro=f.default.span(bi||(bi=y(["\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]))),io=f.default.div(yi||(yi=y(["\n padding: 8px ",";\n border-top: 1px solid ",";\n font-size: ",";\n color: ",";\n min-height: 20px;\n display: flex;\n align-items: center;\n\n &.transfer-list-footer {\n /* 外部可通过 .transfer-list-footer 选择器覆盖样式 */\n }\n"],["\n padding: 8px ",";\n border-top: 1px solid ",";\n font-size: ",";\n color: ",";\n min-height: 20px;\n display: flex;\n align-items: center;\n\n &.transfer-list-footer {\n /* 外部可通过 .transfer-list-footer 选择器覆盖样式 */\n }\n"])),Yi("--transfer-padding","12px"),Yi("--transfer-border-color","#d9d9d9"),Yi("--transfer-description-font-size","12px"),Yi("--transfer-description-color","rgba(0, 0, 0, 0.45)")),oo=f.default.div(Ci||(Ci=y(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: ",";\n align-items: center;\n\n &.transfer-operation {\n /* 外部可通过 .transfer-operation 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: ",";\n align-items: center;\n\n &.transfer-operation {\n /* 外部可通过 .transfer-operation 选择器覆盖样式 */\n }\n\n ","\n"])),Yi("--transfer-operation-width","40px"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ao=f.default.button(wi||(wi=y(["\n width: 32px;\n height: 28px;\n border: 1px solid ",";\n border-radius: 4px;\n background: ",";\n cursor: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n transition: ",";\n opacity: ",";\n\n &:hover:not(:disabled) {\n background: ",";\n border-color: ",";\n color: #1890ff;\n }\n\n &:disabled {\n background: ",";\n color: ",";\n }\n\n /* 箭头图标 - 使用字符 */\n &::before {\n content: ",";\n font-size: 14px;\n font-weight: 600;\n line-height: 1;\n color: inherit;\n }\n"],["\n width: 32px;\n height: 28px;\n border: 1px solid ",";\n border-radius: 4px;\n background: ",";\n cursor: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n transition: ",";\n opacity: ",";\n\n &:hover:not(:disabled) {\n background: ",";\n border-color: ",";\n color: #1890ff;\n }\n\n &:disabled {\n background: ",";\n color: ",";\n }\n\n /* 箭头图标 - 使用字符 */\n &::before {\n content: ",";\n font-size: 14px;\n font-weight: 600;\n line-height: 1;\n color: inherit;\n }\n"])),Yi("--transfer-operation-border","#d9d9d9"),Yi("--transfer-operation-bg","#f5f5f5"),function(e){return e.$disabled?"not-allowed":"pointer"},Yi("--transfer-transition","all 0.3s"),function(e){return e.$disabled?.6:1},Yi("--transfer-operation-hover-bg","#e6f7ff"),Yi("--transfer-operation-hover-border","#1890ff"),Yi("--transfer-operation-disabled-bg","#f5f5f5"),Yi("--transfer-operation-disabled-color","rgba(0, 0, 0, 0.25)"),function(e){return"right"===e.$direction?"'>'":"'<'"}),so=f.default.div(_i||(_i=y(["\n padding: 32px 0;\n text-align: center;\n color: ",";\n font-size: ",";\n\n &.transfer-empty {\n /* 外部可通过 .transfer-empty 选择器覆盖样式 */\n }\n"],["\n padding: 32px 0;\n text-align: center;\n color: ",";\n font-size: ",";\n\n &.transfer-empty {\n /* 外部可通过 .transfer-empty 选择器覆盖样式 */\n }\n"])),Yi("--transfer-description-color","rgba(0, 0, 0, 0.45)"),Yi("--transfer-font-size","14px")),lo=f.default.div(Ei||(Ei=y(["\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 32px 0;\n\n &.transfer-loading {\n /* 外部可通过 .transfer-loading 选择器覆盖样式 */\n }\n"],["\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 32px 0;\n\n &.transfer-loading {\n /* 外部可通过 .transfer-loading 选择器覆盖样式 */\n }\n"]))),co=f.default.div(Ni||(Ni=y(["\n width: 32px;\n height: 32px;\n border: 3px solid ",";\n border-top-color: ",";\n border-radius: 50%;\n animation: transfer-spin 0.8s linear infinite;\n\n @keyframes transfer-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n"],["\n width: 32px;\n height: 32px;\n border: 3px solid ",";\n border-top-color: ",";\n border-radius: 50%;\n animation: transfer-spin 0.8s linear infinite;\n\n @keyframes transfer-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n"])),Yi("--transfer-loading-track-color","#f0f0f0"),Yi("--transfer-loading-spinner-color","#1890ff")),uo=function(e,n,t){return n?e[n]:e[t]},po=function(e,n){return uo(e,null==n?void 0:n.key,"key")},fo=function(e,n){return uo(e,null==n?void 0:n.title,"title")},ho=function(t){var r=t.dataSource,i=t.fieldNames,o=t.selectedKeys,a=t.showSearch,s=t.disabled,l=t.title,c=t.description,d=t.searchPlaceholder,u=void 0===d?"请输入搜索内容":d,p=t.filterOption,f=t.styles,h=t.listHeight,g=t.listWidth,m=t.header,v=t.search,x=t.body,y=t.onSelectChange,C=t.onSearch,w=t.render,_=t.footer,E=t.direction,N=t.rowClassName,S=t.loading,T=t.loadingRender,O=t.loadingDelay,L=t.sourceSelectedKeys,A=t.targetSelectedKeys,k=n.useState(""),M=k[0],I=k[1],j=n.useState(S),R=j[0],H=j[1],P=n.useRef(null);n.useEffect(function(){return P.current&&(clearTimeout(P.current),P.current=null),S&&O&&O>0?(H(!0),P.current=setTimeout(function(){H(!1)},O)):H(S),function(){P.current&&clearTimeout(P.current)}},[S,O]);var z=n.useMemo(function(){return M?p?r.filter(function(e){return p(M,e)}):r.filter(function(e){var n=fo(e,i),t=null!=n?String(n):"";if(t)return t.toLowerCase().includes(M.toLowerCase());var r=M.toLowerCase();return Object.keys(e).some(function(n){var t=e[n];return"key"!==n&&"disabled"!==n&&(null!=t&&String(t).toLowerCase().includes(r))})}):r},[r,M,p,i]),V=n.useMemo(function(){var e=z.filter(function(e){return!e.disabled});return 0!==e.length&&e.every(function(e){return o.includes(po(e,i))})},[z,o,i]),B=n.useMemo(function(){var e=z.filter(function(e){return!e.disabled});if(0===e.length)return!1;var n=e.filter(function(e){return o.includes(po(e,i))}).length;return n>0&&n<e.length},[z,o,i]),U=n.useCallback(function(){if(!s){var e=z.filter(function(e){return!e.disabled}).map(function(e){return po(e,i)});if(V){var n=o.filter(function(n){return!e.includes(n)});"left"===E?y(n,A):y(L,n)}else{var t=b(b([],o,!0),e,!0);n=t.filter(function(e,n){return t.indexOf(e)===n});"left"===E?y(n,A):y(L,n)}}},[s,z,o,V,y,i,E,L,A]),F=n.useCallback(function(e){if(!s&&!e.disabled){var n,t=po(e,i),r=o.indexOf(t);n=r>-1?b(b([],o.slice(0,r),!0),o.slice(r+1),!0):b(b([],o,!0),[t],!1),"left"===E?y(n,A):y(L,n)}},[s,o,y,i,E,L,A]),Y=n.useCallback(function(e){var n=e.target.value;I(n)},[]),$=n.useCallback(function(){null==C||C(M)},[C,M]),G=n.useCallback(function(e){"Enter"===e.key&&$()},[$]),W=n.useCallback(function(){$()},[$]),K=n.useMemo(function(){var e=o.length,n=r.length;return"".concat(e,"/").concat(n)},[o,r]);return e.jsxs(Gi,{className:"transfer-list",$disabled:s,$styles:null==f?void 0:f.list,$height:h,$width:g,children:[function(){if(m){var n=m({direction:E,dataSource:r,selectedKeys:o,sourceSelectedKeys:L,targetSelectedKeys:A});return null===n?null:n}return e.jsxs(Wi,{className:"transfer-list-header",children:[e.jsxs(Ki,{children:[e.jsx(no,{className:"transfer-checkbox",$checked:V,$indeterminate:B,$disabled:s||0===z.length,onClick:U,style:{opacity:s||0===z.length?.6:1}}),e.jsx("span",{children:l})]}),e.jsx(Zi,{children:K})]})}(),a&&null!==m&&e.jsx(Xi,{className:"transfer-search-wrapper",children:v?v({direction:E,value:M,onChange:function(e){I(e),null==C||C(e)},disabled:s}):e.jsxs(e.Fragment,{children:[e.jsx(qi,{type:"text",placeholder:u,value:M,onChange:Y,onKeyDown:G,disabled:s,$styles:null==f?void 0:f.search}),e.jsx(Ji,{onClick:W,disabled:s,$disabled:s,"aria-label":"搜索",children:e.jsx(D,{type:"search",size:"small",color:s?"#bfbfbf":"#1890ff"})})]})}),x?x({direction:E,dataSource:z,selectedKeys:o,sourceSelectedKeys:L,targetSelectedKeys:A,onSelectChange:y}):R?e.jsx(lo,{className:"transfer-loading",children:T?T():e.jsx(co,{className:"transfer-loading-spinner"})}):e.jsx(Qi,{className:"transfer-list-body",children:z.length>0?z.map(function(n){var t=po(n,i),r=o.includes(t),a=(null==N?void 0:N(n))||"";return e.jsxs(eo,{className:"transfer-list-item ".concat(a),$selected:r,$disabled:s||n.disabled,$styles:null==f?void 0:f.item,onClick:function(){return F(n)},children:[e.jsx(to,{$checked:r}),e.jsx(ro,{children:w?w(n):fo(n,i)})]},t)}):e.jsx(so,{className:"transfer-empty",children:"暂无数据"})}),(c||_)&&e.jsx(io,{className:"transfer-list-footer",children:_?_({direction:E}):c})]})},go=function(n){var t=n.moveToRightDisabled,r=n.moveToLeftDisabled,i=n.onMoveToRight,o=n.onMoveToLeft,a=n.style;return e.jsxs(oo,{className:"transfer-operation",$styles:a,children:[e.jsx(ao,{type:"button",$direction:"right",$disabled:t,onClick:i,disabled:t,"aria-label":"移动到右侧"}),e.jsx(ao,{type:"button",$direction:"left",$disabled:r,onClick:o,disabled:r,"aria-label":"移动到左侧"})]})},mo=function(t){var r=t.dataSource,i=t.fieldNames,o=t.targetKeys,a=t.defaultTargetKeys,s=void 0===a?[]:a,l=t.selectedKeys,c=t.defaultSelectedKeys,d=void 0===c?[]:c,u=t.showSearch,p=void 0!==u&&u,f=t.disabled,h=void 0!==f&&f,g=t.leftTitle,m=void 0===g?"源列表":g,v=t.rightTitle,x=void 0===v?"目标列表":v,y=t.leftDescription,C=t.rightDescription,w=t.filterOption,_=t.styles,E=t.listHeight,N=t.listWidth,S=t.header,T=t.search,O=t.body,L=t.onSelectChange,A=t.onChange,k=t.onSearch,M=t.render,I=t.footer,j=t.rowClassName,R=t.mode,D=void 0===R?"transfer":R,H=t.loading,P=void 0!==H&&H,z=t.loadingRender,V=t.loadingDelay,B=void 0!==o,U=void 0!==l,F=n.useState(s),Y=F[0],$=F[1],G=n.useState(d),W=G[0],K=G[1],Z=n.useState([]),X=Z[0],q=Z[1],J=B?o:Y,Q=U?l.filter(function(e){return!J.includes(e)}):W,ee=U?l.filter(function(e){return J.includes(e)}):X,ne=n.useMemo(function(){return r.filter(function(e){return!J.includes(po(e,i))})},[r,J,i]),te=n.useMemo(function(){return r.filter(function(e){return J.includes(po(e,i))})},[r,J,i]),re=n.useCallback(function(e,n){U||K(e),null==L||L(e,n)},[U,L]),ie=n.useCallback(function(e,n){U||q(n),null==L||L(e,n)},[U,L]),oe=n.useCallback(function(){if(0!==Q.length){var e=b(b([],J,!0),Q,!0),n=b([],Q,!0);B||($(e),K([])),null==A||A(e,"right",n)}},[Q,J,B,A]),ae=n.useCallback(function(){if(0!==ee.length){var e=J.filter(function(e){return!ee.includes(e)}),n=b([],ee,!0);B||($(e),q([])),null==A||A(e,"left",n)}},[ee,J,B,A]),se=n.useCallback(function(e){null==k||k("left",e)},[k]),le=n.useCallback(function(e){null==k||k("right",e)},[k]),ce=h||0===Q.length,de=h||0===ee.length,ue=n.useCallback(function(e,n){var t=e;B||$(t),null==A||A(t,"right",t),null==L||L([],t)},[B,A,L]),pe=n.useMemo(function(){return r},[r]),fe=n.useMemo(function(){return U?l.filter(function(e){return J.includes(e)}):J},[U,l,J]);return e.jsx($i,{className:"transfer-wrapper",$styles:null==_?void 0:_.wrapper,children:"single"===D?e.jsx(ho,{direction:"left",dataSource:pe,fieldNames:i,selectedKeys:fe,showSearch:p,disabled:h,title:m,description:y,filterOption:w,styles:_,listHeight:E,listWidth:N,header:S,search:T,body:O,onSelectChange:ue,onSearch:se,render:M,footer:I,rowClassName:j,loading:P,loadingRender:z,loadingDelay:V,sourceSelectedKeys:[],targetSelectedKeys:fe}):e.jsxs(e.Fragment,{children:[e.jsx(ho,{direction:"left",dataSource:ne,fieldNames:i,selectedKeys:Q,showSearch:p,disabled:h,title:m,description:y,filterOption:w,styles:_,listHeight:E,listWidth:N,header:S,search:T,body:O,onSelectChange:re,onSearch:se,render:M,footer:I,rowClassName:j,loading:P,loadingRender:z,loadingDelay:V,sourceSelectedKeys:Q,targetSelectedKeys:ee}),e.jsx(go,{moveToRightDisabled:ce,moveToLeftDisabled:de,onMoveToRight:oe,onMoveToLeft:ae,style:null==_?void 0:_.operation}),e.jsx(ho,{direction:"right",dataSource:te,fieldNames:i,selectedKeys:ee,showSearch:p,disabled:h,title:x,description:C,filterOption:w,styles:_,listHeight:E,listWidth:N,header:S,search:T,body:O,onSelectChange:ie,onSearch:le,render:M,footer:I,rowClassName:j,loading:P,loadingRender:z,loadingDelay:V,sourceSelectedKeys:Q,targetSelectedKeys:ee})]})})},vo=f.default.label(Si||(Si=y(["\n /* 基础样式 */\n background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);\n padding: 10px 16px;\n padding-right: var(--label-padding-right, 16px);\n padding-left: 16px;\n border-radius: 8px;\n position: relative;\n display: inline-flex;\n align-items: center;\n font-weight: 600;\n font-size: 14px;\n color: #262626;\n letter-spacing: 0.3px;\n \n /* 阴影效果 */\n box-shadow: \n 0 2px 8px rgba(0, 0, 0, 0.06),\n 0 1px 2px rgba(0, 0, 0, 0.04);\n \n /* 平滑过渡 */\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n \n /* 悬停效果 */\n &:hover {\n background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);\n box-shadow: \n 0 4px 16px rgba(0, 0, 0, 0.1),\n 0 2px 4px rgba(0, 0, 0, 0.06);\n // transform: translateY(-1px);\n }\n \n /* 指示器样式 - 渐变条 */\n &::before {\n content: '';\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n width: var(--label-indicator-width, 4px);\n height: var(--label-indicator-height, 70%);\n background: linear-gradient(\n 180deg,\n var(--label-indicator-color, #1890ff) 0%,\n rgba(24, 144, 255, 0.6) 100%\n );\n border-radius: 0 4px 4px 0;\n box-shadow: 2px 0 8px rgba(24, 144, 255, 0.3);\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n }\n \n /* 悬停时指示器效果 */\n &:hover::before {\n width: calc(var(--label-indicator-width, 4px) + 1px);\n box-shadow: 3px 0 12px rgba(24, 144, 255, 0.4);\n filter: brightness(1.1);\n }\n \n /* 光晕装饰 */\n &::after {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n width: 60px;\n height: 100%;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n rgba(255, 255, 255, 0.4) 50%,\n transparent 100%\n );\n border-radius: 0 8px 8px 0;\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.3s ease;\n }\n \n &:hover::after {\n opacity: 1;\n }\n"],["\n /* 基础样式 */\n background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);\n padding: 10px 16px;\n padding-right: var(--label-padding-right, 16px);\n padding-left: 16px;\n border-radius: 8px;\n position: relative;\n display: inline-flex;\n align-items: center;\n font-weight: 600;\n font-size: 14px;\n color: #262626;\n letter-spacing: 0.3px;\n \n /* 阴影效果 */\n box-shadow: \n 0 2px 8px rgba(0, 0, 0, 0.06),\n 0 1px 2px rgba(0, 0, 0, 0.04);\n \n /* 平滑过渡 */\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n \n /* 悬停效果 */\n &:hover {\n background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);\n box-shadow: \n 0 4px 16px rgba(0, 0, 0, 0.1),\n 0 2px 4px rgba(0, 0, 0, 0.06);\n // transform: translateY(-1px);\n }\n \n /* 指示器样式 - 渐变条 */\n &::before {\n content: '';\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n width: var(--label-indicator-width, 4px);\n height: var(--label-indicator-height, 70%);\n background: linear-gradient(\n 180deg,\n var(--label-indicator-color, #1890ff) 0%,\n rgba(24, 144, 255, 0.6) 100%\n );\n border-radius: 0 4px 4px 0;\n box-shadow: 2px 0 8px rgba(24, 144, 255, 0.3);\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n }\n \n /* 悬停时指示器效果 */\n &:hover::before {\n width: calc(var(--label-indicator-width, 4px) + 1px);\n box-shadow: 3px 0 12px rgba(24, 144, 255, 0.4);\n filter: brightness(1.1);\n }\n \n /* 光晕装饰 */\n &::after {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n width: 60px;\n height: 100%;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n rgba(255, 255, 255, 0.4) 50%,\n transparent 100%\n );\n border-radius: 0 8px 8px 0;\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.3s ease;\n }\n \n &:hover::after {\n opacity: 1;\n }\n"]))),xo=function(n){var t=n.title,r=n.indicatorColor,i=void 0===r?"blue":r,o=n.indicatorWidth,a=void 0===o?"3px":o,s=n.indicatorHeight,l=void 0===s?"100%":s,c=n.paddingRight,d=void 0===c?"8px":c,u=n.style,p=function(e){return void 0===e?"":"number"==typeof e?"".concat(e,"px"):e},f={"--label-indicator-color":i,"--label-indicator-width":p(a),"--label-indicator-height":p(l),"--label-padding-right":p(d)},h=g(g({},f),u);return e.jsx(vo,{className:"label-wrapper",style:h,children:t||null})},bo=function(e,n){return"var(".concat(e,", ").concat(n,")")},yo=f.default.div(So||(So=y(["\n display: flex;\n flex-direction: column;\n min-height: ",";\n max-height: 100vh;\n background: ",";\n box-sizing: border-box;\n position: relative;\n overflow: hidden;\n flex: 1;\n\n &.layout-wrapper {\n /* 外部可通过 .layout-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n flex-direction: column;\n min-height: ",";\n max-height: 100vh;\n background: ",";\n box-sizing: border-box;\n position: relative;\n overflow: hidden;\n flex: 1;\n\n &.layout-wrapper {\n /* 外部可通过 .layout-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),bo("--layout-min-height","100vh"),function(e){return"dark"===e.$theme?"linear-gradient(180deg, ".concat(bo("--layout-bg-dark","#000")," 0%, ").concat(bo("--idp-text-color","rgba(0, 0, 0, 0.85)")," 100%)"):"linear-gradient(180deg, ".concat(bo("--layout-bg-light","#f5f5f5")," 0%, ").concat(bo("--idp-bg-color","#fafafa")," 100%)")},function(e){return e.$hasSider&&"\n flex-direction: row;\n align-items: stretch;\n "}),Co=f.default.header(To||(To=y(["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: ",";\n background: ",";\n color: ",";\n height: ",";\n z-index: ",";\n transition: ",";\n box-sizing: border-box;\n\n &.layout-header-light {\n border-bottom: ",";\n }\n\n &.layout-header-dark {\n border-bottom: 1px solid transparent;\n }\n\n &.layout-header {\n /* 外部可通过 .layout-header 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: ",";\n background: ",";\n color: ",";\n height: ",";\n z-index: ",";\n transition: ",";\n box-sizing: border-box;\n\n &.layout-header-light {\n border-bottom: ",";\n }\n\n &.layout-header-dark {\n border-bottom: 1px solid transparent;\n }\n\n &.layout-header {\n /* 外部可通过 .layout-header 选择器覆盖样式 */\n }\n\n ","\n"])),bo("--layout-header-padding","0 24px"),function(e){return"dark"===e.$theme?"linear-gradient(135deg, ".concat(bo("--layout-header-bg-dark","#001529")," 0%, #002140 100%)"):"linear-gradient(135deg, ".concat(bo("--layout-header-bg-light","#fff")," 0%, ").concat(bo("--idp-bg-color","#fafafa")," 100%)")},function(e){return"dark"===e.$theme?bo("--layout-header-color-dark","#fff"):bo("--layout-header-color-light","rgba(0, 0, 0, 0.85)")},function(e){var n=e.$height;return"number"==typeof n?"".concat(n,"px"):n||bo("--layout-header-height","60px")},bo("--layout-header-z-index","10"),bo("--layout-header-transition","all 0.2s ease-in-out"),function(e){var n=e.$bgColor;return"1px solid ".concat(n)},function(e){return e.$fixed&&"\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n box-shadow: ".concat(bo("--layout-header-box-shadow","0 2px 8px rgba(0, 0, 0, 0.15)"),";\n ")}),wo=f.default.aside(Oo||(Oo=y(["\n display: flex;\n flex-direction: column;\n background: ",";\n color: ",";\n z-index: ",";\n transition: ",";\n flex: ",";\n box-sizing: border-box;\n border-right: ",";\n box-shadow: ",";\n\n\n &.layout-sider {\n /* 外部可通过 .layout-sider 选择器覆盖样式 */\n }\n\n /* 让子元素占据剩余空间,使 trigger 可以固定在底部 */\n & > *:not(.layout-sider-trigger) {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n\n ","\n\n ","\n\n /* ============================================\n 集成 Menu 组件样式 - 与 Menu.css 保持一致\n ============================================ */\n \n /* 覆盖 Menu 组件基础样式 */\n .idp-menu {\n background: transparent;\n }\n\n /* Menu 菜单项在 Sider 中的样式 - 覆盖默认样式 */\n .idp-menu-item {\n border-radius: ",";\n \n /* Light 主题 - 与 Menu.css 保持一致 */\n &.light {\n color: ",";\n \n &:hover:not(.disabled) {\n background: ",";\n color: ",";\n }\n \n &.selected {\n background-color: ",";\n color: ",";\n box-shadow: inset 3px 0 0 ",";\n font-weight: 600;\n \n &:hover {\n background-color: ",";\n }\n }\n }\n \n /* Dark 主题 - 与 Menu.css 保持一致 */\n &.dark {\n color: rgba(255, 255, 255, 0.85);\n \n &:hover:not(.disabled) {\n background-color: rgba(255, 255, 255, 0.08);\n color: #fff;\n }\n \n &.selected {\n background-color: rgba(24, 144, 255, 0.25);\n color: #fff;\n box-shadow: inset 3px 0 0 ",";\n font-weight: 600;\n \n &:hover {\n background-color: rgba(24, 144, 255, 0.35);\n }\n }\n }\n }\n\n /* 子菜单样式 */\n .idp-menu-submenu {\n .idp-menu-item {\n margin: 0px;\n }\n }\n\n /* Dark 主题下的子菜单样式 */\n .idp-menu-submenu.horizontal-popup,\n .idp-menu-submenu.horizontal-popup .idp-menu-submenu {\n background: linear-gradient(135deg, #001529 0%, #002140 100%);\n border: 1px solid #303030;\n }\n\n /* Dark 主题下子菜单中的菜单项 */\n .idp-menu-submenu .idp-menu-item.dark {\n color: rgba(255, 255, 255, 0.85);\n \n &:hover:not(.disabled) {\n background-color: rgba(255, 255, 255, 0.08);\n color: #fff;\n }\n \n &.selected {\n background-color: rgba(24, 144, 255, 0.25);\n color: #fff;\n }\n }\n"],["\n display: flex;\n flex-direction: column;\n background: ",";\n color: ",";\n z-index: ",";\n transition: ",";\n flex: ",";\n box-sizing: border-box;\n border-right: ",";\n box-shadow: ",";\n\n\n &.layout-sider {\n /* 外部可通过 .layout-sider 选择器覆盖样式 */\n }\n\n /* 让子元素占据剩余空间,使 trigger 可以固定在底部 */\n & > *:not(.layout-sider-trigger) {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n\n ","\n\n ","\n\n /* ============================================\n 集成 Menu 组件样式 - 与 Menu.css 保持一致\n ============================================ */\n \n /* 覆盖 Menu 组件基础样式 */\n .idp-menu {\n background: transparent;\n }\n\n /* Menu 菜单项在 Sider 中的样式 - 覆盖默认样式 */\n .idp-menu-item {\n border-radius: ",";\n \n /* Light 主题 - 与 Menu.css 保持一致 */\n &.light {\n color: ",";\n \n &:hover:not(.disabled) {\n background: ",";\n color: ",";\n }\n \n &.selected {\n background-color: ",";\n color: ",";\n box-shadow: inset 3px 0 0 ",";\n font-weight: 600;\n \n &:hover {\n background-color: ",";\n }\n }\n }\n \n /* Dark 主题 - 与 Menu.css 保持一致 */\n &.dark {\n color: rgba(255, 255, 255, 0.85);\n \n &:hover:not(.disabled) {\n background-color: rgba(255, 255, 255, 0.08);\n color: #fff;\n }\n \n &.selected {\n background-color: rgba(24, 144, 255, 0.25);\n color: #fff;\n box-shadow: inset 3px 0 0 ",";\n font-weight: 600;\n \n &:hover {\n background-color: rgba(24, 144, 255, 0.35);\n }\n }\n }\n }\n\n /* 子菜单样式 */\n .idp-menu-submenu {\n .idp-menu-item {\n margin: 0px;\n }\n }\n\n /* Dark 主题下的子菜单样式 */\n .idp-menu-submenu.horizontal-popup,\n .idp-menu-submenu.horizontal-popup .idp-menu-submenu {\n background: linear-gradient(135deg, #001529 0%, #002140 100%);\n border: 1px solid #303030;\n }\n\n /* Dark 主题下子菜单中的菜单项 */\n .idp-menu-submenu .idp-menu-item.dark {\n color: rgba(255, 255, 255, 0.85);\n \n &:hover:not(.disabled) {\n background-color: rgba(255, 255, 255, 0.08);\n color: #fff;\n }\n \n &.selected {\n background-color: rgba(24, 144, 255, 0.25);\n color: #fff;\n }\n }\n"])),function(e){var n=e.$theme,t=e.style;return void 0!==(null==t?void 0:t.background)?t.background:"dark"===n?"linear-gradient(180deg, ".concat(bo("--layout-sider-bg-dark","#001529")," 0%, #002140 100%)"):"linear-gradient(180deg, ".concat(bo("--layout-sider-bg-light","#fff")," 0%, ").concat(bo("--idp-bg-color","#fafafa")," 100%)")},function(e){var n=e.$theme,t=e.style;return void 0!==(null==t?void 0:t.color)?t.color:"dark"===n?bo("--layout-sider-color-dark","#fff"):bo("--layout-sider-color-light","rgba(0, 0, 0, 0.85)")},bo("--layout-sider-z-index","10"),bo("--layout-sider-transition","all 0.2s ease-in-out"),bo("--layout-sider-flex","0 0 200px"),function(e){return"dark"===e.$theme?"var(--layout-sider-border, 1px solid #303030)":"var(--layout-sider-border, 1px solid ".concat(bo("--idp-border-color-light","#f0f0f0"),")")},function(e){return"dark"===e.$theme?"2px 0 8px rgba(0, 0, 0, 0.3)":bo("--idp-shadow-sm","0 2px 8px rgba(0, 0, 0, 0.08)")},function(e){var n=e.$width,t=e.$collapsedWidth,r=e.$collapsed,i="number"==typeof n?"".concat(n,"px"):n||bo("--layout-sider-width","200px"),o=void 0!==t?"".concat(t,"px"):bo("--layout-sider-collapsed-width","60px");return"\n width: ".concat(r?o:i,";\n min-width: ").concat(r?o:i,";\n max-width: ").concat(r?o:i,";\n ")},function(e){return e.$fixed&&"\n position: fixed;\n top: ".concat(bo("--layout-header-height","64px"),";\n left: 0;\n bottom: 0;\n overflow-y: auto;\n box-shadow: ").concat(bo("--layout-sider-box-shadow","0 4px 12px rgba(0, 0, 0, 0.15)"),";\n ")},bo("--idp-border-radius-sm","4px"),bo("--idp-text-color","rgba(0, 0, 0, 0.85)"),bo("--idp-primary-light-color","rgba(24, 144, 255, 0.06)"),bo("--idp-primary-color","#1890ff"),bo("--idp-primary-light-color","rgba(24, 144, 255, 0.12)"),bo("--idp-primary-color","#1890ff"),bo("--idp-primary-color","#1890ff"),bo("--idp-primary-light-color","rgba(24, 144, 255, 0.18)"),bo("--idp-primary-color","#1890ff")),_o=f.default.div(Lo||(Lo=y(["\n flex: 1;\n overflow-y: auto;\n overflow-x: ",";\n\n /* 内容过渡动画 */\n & > * {\n transition: all "," ease;\n }\n\n /* 收缩状态下的内容样式 */\n ","\n"],["\n flex: 1;\n overflow-y: auto;\n overflow-x: ",";\n\n /* 内容过渡动画 */\n & > * {\n transition: all "," ease;\n }\n\n /* 收缩状态下的内容样式 */\n ","\n"])),function(e){return e.$collapsed?"visible":"hidden"},bo("--idp-transition-duration","0.2s"),function(e){return e.$collapsed&&"\n & > * {\n text-align: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "}),Eo=f.default.div(Ao||(Ao=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: ",";\n background: ",";\n color: ",";\n cursor: pointer;\n transition: ",";\n user-select: none;\n order: ",";\n\n &.layout-sider-trigger {\n /* 外部可通过 .layout-sider-trigger 选择器覆盖样式 */\n }\n\n &:hover {\n background: ",";\n color: ",";\n }\n\n /* 分割线 */\n ","\n\n ","\n\n /* 零宽度模式下,收缩时隐藏触发器 */\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n height: ",";\n background: ",";\n color: ",";\n cursor: pointer;\n transition: ",";\n user-select: none;\n order: ",";\n\n &.layout-sider-trigger {\n /* 外部可通过 .layout-sider-trigger 选择器覆盖样式 */\n }\n\n &:hover {\n background: ",";\n color: ",";\n }\n\n /* 分割线 */\n ","\n\n ","\n\n /* 零宽度模式下,收缩时隐藏触发器 */\n ","\n"])),bo("--layout-trigger-height","48px"),function(e){return"dark"===e.$theme?"linear-gradient(135deg, ".concat(bo("--layout-sider-bg-dark","#001529")," 0%, #002140 100%)"):"linear-gradient(135deg, ".concat(bo("--layout-sider-bg-light","#fff")," 0%, ").concat(bo("--idp-bg-color","#fafafa")," 100%)")},function(e){return"dark"===e.$theme?bo("--layout-sider-color-dark","#fff"):bo("--layout-sider-color-light","rgba(0, 0, 0, 0.85)")},bo("--layout-trigger-transition","all 0.2s ease-in-out"),function(e){return"top"===e.$placement?"-1":"auto"},function(e){return"dark"===e.$theme?"linear-gradient(135deg, #002140 0%, ".concat(bo("--idp-primary-color","#1890ff")," 100%)"):"linear-gradient(135deg, ".concat(bo("--idp-primary-light-color","rgba(24, 100, 240, 0.1)")," 0%, ").concat(bo("--idp-bg-color-light","#f5f5f5")," 100%)")},function(e){return"dark"===e.$theme?"#fff":bo("--idp-primary-color","#1890ff")},function(e){var n=e.$placement,t=e.$theme;return"top"===n&&"\n border-bottom: 1px solid ".concat("dark"===t?"#303030":bo("--idp-border-color-light","#f0f0f0"),";\n ")},function(e){var n=e.$placement,t=e.$theme;return"top"!==n&&"\n border-top: 1px solid ".concat("dark"===t?"#303030":bo("--idp-border-color-light","#f0f0f0"),";\n ")},function(e){var n=e.$zeroWidthMode,t=e.$collapsed;return n&&t&&"\n display: none;\n "}),No=f.default.div(ko||(ko=y(["\n position: absolute;\n top: 16px;\n left: 16px;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n background: linear-gradient(135deg, "," 0%, "," 100%);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: ",";\n z-index: 100;\n transition: all "," ",";\n\n &:hover {\n background: linear-gradient(135deg, "," 0%, #69c0ff 100%);\n box-shadow: ",";\n transform: scale(1.05);\n }\n\n &:active {\n transform: scale(0.95);\n box-shadow: ",";\n }\n"],["\n position: absolute;\n top: 16px;\n left: 16px;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n background: linear-gradient(135deg, "," 0%, "," 100%);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: ",";\n z-index: 100;\n transition: all "," ",";\n\n &:hover {\n background: linear-gradient(135deg, "," 0%, #69c0ff 100%);\n box-shadow: ",";\n transform: scale(1.05);\n }\n\n &:active {\n transform: scale(0.95);\n box-shadow: ",";\n }\n"])),bo("--idp-primary-color","#1890ff"),bo("--idp-primary-hover-color","#40a9ff"),bo("--idp-shadow-sm","0 2px 8px rgba(0, 0, 0, 0.15)"),bo("--idp-transition-duration","0.2s"),bo("--idp-transition-timing-function","ease-in-out"),bo("--idp-primary-hover-color","#40a9ff"),bo("--idp-shadow-md","0 4px 12px rgba(0, 0, 0, 0.25)"),bo("--idp-shadow-extra-light","0 2px 8px rgba(0, 0, 0, 0.08)"));f.default.div(Mo||(Mo=y(["\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow: hidden;\n\n ","\n"],["\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow: hidden;\n\n ","\n"])),function(e){return e.$hasSider&&"\n flex-direction: row;\n "});var So,To,Oo,Lo,Ao,ko,Mo,Io,jo,Ro=f.default.main(Io||(Io=y(["\n flex: 1;\n padding: ",";\n background: ",";\n min-height: ",";\n transition: ",";\n overflow-y: auto;\n box-sizing: border-box;\n position: relative;\n\n &.layout-content {\n /* 外部可通过 .layout-content 选择器覆盖样式 */\n }\n\n ","\n\n /* 滚动条样式 */\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ",";\n border-radius: ",";\n transition: background-color "," ease;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: ",";\n }\n\n /* Dark 主题滚动条样式 */\n ","\n"],["\n flex: 1;\n padding: ",";\n background: ",";\n min-height: ",";\n transition: ",";\n overflow-y: auto;\n box-sizing: border-box;\n position: relative;\n\n &.layout-content {\n /* 外部可通过 .layout-content 选择器覆盖样式 */\n }\n\n ","\n\n /* 滚动条样式 */\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ",";\n border-radius: ",";\n transition: background-color "," ease;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: ",";\n }\n\n /* Dark 主题滚动条样式 */\n ","\n"])),bo("--layout-content-padding","24px"),bo("--layout-content-bg","transparent"),bo("--layout-content-min-height","280px"),bo("--layout-content-transition","all 0.2s ease-in-out"),function(e){return e.$fixed&&"\n overflow-y: auto;\n "},bo("--idp-border-color-extra-light","#d9d9d9"),bo("--idp-border-radius-sm","4px"),bo("--idp-transition-duration","0.2s"),bo("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),function(e){return"dark"===e.$theme&&"\n &::-webkit-scrollbar-thumb {\n background-color: color-mix(in srgb, ".concat(bo("--idp-primary-color","#1890ff")," 50%, transparent);\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: color-mix(in srgb, ").concat(bo("--idp-primary-color","#1890ff")," 70%, transparent);\n }\n\n scrollbar-width: thin;\n scrollbar-color: color-mix(in srgb, ").concat(bo("--idp-primary-color","#1890ff")," 50%, transparent) transparent;\n ")}),Do=f.default.footer(jo||(jo=y(["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: ",";\n background: ",";\n color: ",";\n height: ",";\n border-top: ",";\n z-index: ",";\n transition: ",";\n box-sizing: border-box;\n\n &.layout-footer {\n /* 外部可通过 .layout-footer 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: ",";\n background: ",";\n color: ",";\n height: ",";\n border-top: ",";\n z-index: ",";\n transition: ",";\n box-sizing: border-box;\n\n &.layout-footer {\n /* 外部可通过 .layout-footer 选择器覆盖样式 */\n }\n\n ","\n"])),bo("--layout-footer-padding","24px 50px"),function(e){return"dark"===e.$theme?"linear-gradient(135deg, ".concat(bo("--layout-footer-bg-dark","#001529")," 0%, #002140 100%)"):"linear-gradient(135deg, ".concat(bo("--layout-footer-bg-light","#fff")," 0%, ").concat(bo("--idp-bg-color","#fafafa")," 100%)")},function(e){return"dark"===e.$theme?bo("--layout-footer-color-dark","#fff"):bo("--layout-footer-color-light","rgba(0, 0, 0, 0.85)")},function(e){var n=e.$height;return"number"==typeof n?"".concat(n,"px"):n||bo("--layout-footer-height","48px")},function(e){return"dark"===e.$theme?"var(--layout-footer-border, 1px solid #303030)":"var(--layout-footer-border, 1px solid ".concat(bo("--idp-border-color-light","#f0f0f0"),")")},bo("--layout-footer-z-index","10"),bo("--layout-footer-transition","all 0.2s ease-in-out"),function(e){return e.$fixed&&"\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);\n "}),Ho=n.createContext(void 0),Po=function(t){var r=t.children,i=n.useState(!1),o=i[0],a=i[1],s=n.useState(!1),l=s[0],c=s[1],d=n.useState(function(){return function(){}}),u=d[0],p=d[1];return e.jsx(Ho.Provider,{value:{siderCollapsed:o,setSiderCollapsed:a,zeroWidthMode:l,setZeroWidthMode:c,onExpand:u,setOnExpand:p},children:r})},zo=function(){var e=n.useContext(Ho);if(!e)throw new Error("useLayoutContext must be used within a LayoutProvider");return e},Vo=u.default.createContext({isNested:!1}),Bo=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,o=void 0===i?{}:i,a=n.children,s=n.width,l=void 0===s?200:s,c=n.collapsedWidth,d=void 0===c?60:c,p=n.collapsible,f=void 0!==p&&p,h=n.collapsed,g=void 0!==h&&h,m=n.onCollapse,v=n.trigger,x=n.triggerPlacement,b=void 0===x?"bottom":x,y=n.zeroWidthMode,C=void 0!==y&&y,w=n.fixed,_=void 0!==w&&w,E=n.theme,N=void 0===E?"light":E,S=u.default.useContext(Vo).isNested,T=zo(),O=T.setSiderCollapsed,L=T.setZeroWidthMode,A=T.setOnExpand;u.default.useEffect(function(){O(g),L(C)},[g,C,O,L]);var k=function(){null==m||m(!g)};u.default.useEffect(function(){A(function(){return k})},[g,m,A]);var M=C&&g?0:d;return e.jsxs(wo,{className:"layout-sider ".concat(g?"collapsed":""," ").concat(r),style:o,$width:l,$collapsedWidth:M,$collapsed:g,$fixed:_,$theme:N,$inNestedLayout:S,children:[e.jsx(_o,{children:a}),f&&e.jsx(Eo,{className:"layout-sider-trigger",$collapsed:g,$placement:C?"top":b,onClick:k,$zeroWidthMode:C,$theme:N,children:v||e.jsx(D,{type:g?"arrowRight":"arrowLeft",size:20,color:"dark"===N?"#fff":"rgba(0, 0, 0, 0.65)"})})]})},Uo=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,o=void 0===i?{}:i,a=n.children,s=n.hasSider,l=n.theme,c=void 0!==s?s:function(e){return!!e&&u.default.Children.toArray(e).some(function(e){return u.default.isValidElement(e)&&e.type===Bo})}(a);return e.jsx(Po,{children:e.jsx(Vo.Provider,{value:{isNested:!0},children:e.jsx(yo,{className:"layout-wrapper ".concat(r),style:o,$hasSider:c,$theme:l,children:a})})})};Uo.Header=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,o=void 0===i?{}:i,a=n.children,s=n.height,l=n.fixed,c=void 0!==l&&l,d=n.theme,u=void 0===d?"light":d,p=(null==o?void 0:o.background)||"#3030302b";return e.jsx(Co,{className:"layout-header layout-header-".concat(u," ").concat(r),style:o,$height:s,$fixed:c,$theme:u,$bgColor:p,children:a})},Uo.Sider=Bo,Uo.Content=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,o=void 0===i?{}:i,a=n.children,s=n.theme,l=void 0===s?"light":s,c=zo(),d=c.siderCollapsed,u=c.zeroWidthMode,p=c.onExpand;return e.jsxs(Ro,{className:"layout-content ".concat(r),style:o,$theme:l,children:[u&&d&&e.jsx(No,{onClick:p,children:e.jsx(D,{type:"menu",size:24,color:"#fff"})}),a]})},Uo.Footer=function(n){var t=n.className,r=void 0===t?"":t,i=n.style,o=void 0===i?{}:i,a=n.children,s=n.height,l=n.fixed,c=void 0!==l&&l,d=n.theme;return e.jsx(Do,{className:"layout-footer ".concat(r),style:o,$height:s,$fixed:c,$theme:d,children:a})};var Fo,Yo,$o,Go,Wo,Ko,Zo,Xo=Uo,qo=function(e,n){return"var(".concat(e,", ").concat(n,")")},Jo=r.keyframes(Fo||(Fo=y(["\n from {\n opacity: 0;\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n }\n to {\n opacity: 1;\n max-height: 100px;\n padding-bottom: 4px;\n }\n"],["\n from {\n opacity: 0;\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n }\n to {\n opacity: 1;\n max-height: 100px;\n padding-bottom: 4px;\n }\n"]))),Qo=f.default.form(Yo||(Yo=y(["\n width: 100%;\n\n &.form-wrapper {\n /* 外部可通过 .form-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n width: 100%;\n\n &.form-wrapper {\n /* 外部可通过 .form-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ea=f.default.div($o||($o=y(["\n margin-bottom: ",";\n\n &.form-item {\n /* 外部可通过 .form-item 选择器覆盖样式 */\n }\n\n ","\n\n ","\n\n ","\n"],["\n margin-bottom: ",";\n\n &.form-item {\n /* 外部可通过 .form-item 选择器覆盖样式 */\n }\n\n ","\n\n ","\n\n ","\n"])),qo("--form-item-margin-bottom","24px"),function(e){return"horizontal"===e.$layout&&"\n display: flex;\n align-items: center;\n\n & .form-label {\n margin-bottom: 0;\n }\n "},function(e){return"inline"===e.$layout&&"\n display: inline-flex;\n align-items: center;\n margin-right: ".concat(qo("--form-inline-item-margin-right","24px"),";\n margin-bottom: 0;\n\n & .form-label {\n margin-bottom: 0;\n }\n ")},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),na=f.default.label(Go||(Go=y(["\n display: block;\n font-size: ",";\n color: ",";\n margin-bottom: ",";\n white-space: nowrap;\n text-align: ",";\n\n &.form-label {\n /* 外部可通过 .form-label 选择器覆盖样式 */\n }\n\n &::after {\n content: ",";\n margin: 0 8px 0 2px;\n }\n\n &::before {\n content: ",";\n color: ",";\n margin-right: 4px;\n display: inline-block;\n vertical-align: middle;\n }\n\n ","\n"],["\n display: block;\n font-size: ",";\n color: ",";\n margin-bottom: ",";\n white-space: nowrap;\n text-align: ",";\n\n &.form-label {\n /* 外部可通过 .form-label 选择器覆盖样式 */\n }\n\n &::after {\n content: ",";\n margin: 0 8px 0 2px;\n }\n\n &::before {\n content: ",";\n color: ",";\n margin-right: 4px;\n display: inline-block;\n vertical-align: middle;\n }\n\n ","\n"])),qo("--form-label-font-size","14px"),qo("--form-label-color","#333"),qo("--form-label-margin-bottom","8px"),function(e){return e.$labelAlign||"end"},function(e){return e.$colon?'":"':""},function(e){return e.$required?'"*"':'""'},qo("--form-label-required-color","#f5222d"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ta=f.default.div(Wo||(Wo=y(["\n width: 100%;\n position: relative;\n\n &.form-control {\n /* 外部可通过 .form-control 选择器覆盖样式 */\n }\n\n ","\n"],["\n width: 100%;\n position: relative;\n\n &.form-control {\n /* 外部可通过 .form-control 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ra=f.default.div(Ko||(Ko=y(["\n font-size: ",";\n color: ",";\n line-height: 1.5;\n position: absolute;\n top: 100%;\n left: 0;\n width: 100%;\n opacity: 0;\n max-height: 0;\n overflow: hidden;\n z-index: 10;\n\n &.form-error {\n /* 外部可通过 .form-error 选择器覆盖样式 */\n }\n\n &.form-error-visible {\n animation: "," 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;\n }\n\n ","\n"],["\n font-size: ",";\n color: ",";\n line-height: 1.5;\n position: absolute;\n top: 100%;\n left: 0;\n width: 100%;\n opacity: 0;\n max-height: 0;\n overflow: hidden;\n z-index: 10;\n\n &.form-error {\n /* 外部可通过 .form-error 选择器覆盖样式 */\n }\n\n &.form-error-visible {\n animation: "," 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;\n }\n\n ","\n"])),qo("--form-error-font-size","12px"),qo("--form-error-color","#f5222d"),Jo,function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ia=f.default.div(Zo||(Zo=y(["\n font-size: ",";\n color: ",";\n line-height: 1.5;\n position: absolute;\n\n &.form-help {\n /* 外部可通过 .form-help 选择器覆盖样式 */\n }\n\n ","\n"],["\n font-size: ",";\n color: ",";\n line-height: 1.5;\n position: absolute;\n\n &.form-help {\n /* 外部可通过 .form-help 选择器覆盖样式 */\n }\n\n ","\n"])),qo("--form-help-font-size","12px"),qo("--form-help-color","#00000073"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),oa=n.createContext(null),aa=function(t){var r=t.children,i=t.className,o=void 0===i?"":i,a=t.style,s=t.layout,l=void 0===s?"horizontal":s,c=t.labelSpan,d=t.wrapperSpan,p=t.initialValues,f=void 0===p?{}:p,h=t.onFinish,m=t.onFinishFailed,b=t.colon,y=void 0===b||b,C=t.requiredMark,w=void 0===C||C,_=t.styles,E=t.formRef,N=t.form,S=n.useState(f),T=S[0],O=S[1],L=n.useState({}),A=L[0],k=L[1],M=n.useRef(null),I=n.useRef(new Map),j=n.useRef(null),R=n.useCallback(function(e,n){O(function(t){var r;return g(g({},t),((r={})[e]=n,r))}),A[e]&&k(function(n){var t=g({},n);return delete t[e],t})},[A]),D=n.useCallback(function(e){return T[e]},[T]),H=n.useCallback(function(e){O(function(n){return g(g({},n),e)}),Object.keys(e).forEach(function(e){A[e]&&k(function(n){var t=g({},n);return delete t[e],t})})},[A]),P=n.useCallback(function(e){return v(void 0,void 0,void 0,function(){var n,t,r,i,o,a,s,l;return x(this,function(c){switch(c.label){case 0:if(!(n=I.current.get(e)))return[2];if(t=n.rules,r=T[e],!t||0===t.length)return[2];i=function(n){var t,i,o,a,s,l,c,d,u;return x(this,function(p){switch(p.label){case 0:if(n.required&&(null==r||""===r))return t=n.message||"".concat(e," is required"),k(function(n){var r;return g(g({},n),((r={})[e]=t,r))}),[2,{value:t}];if(n.pattern&&!n.pattern.test(r))return i=n.message||"".concat(e," format is invalid"),k(function(n){var t;return g(g({},n),((t={})[e]=i,t))}),[2,{value:i}];if(n.type){switch(o=!0,n.type){case"email":o=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r);break;case"url":o=/^https?:\/\/.+$/.test(r);break;case"number":o=!isNaN(Number(r));break;case"integer":o=Number.isInteger(Number(r));break;case"float":o=!isNaN(parseFloat(r))&&isFinite(r);break;case"string":o="string"==typeof r;break;case"boolean":o="boolean"==typeof r;break;case"array":o=Array.isArray(r);break;case"object":o="object"==typeof r&&null!==r&&!Array.isArray(r)}if(!o)return a=n.message||"".concat(e," must be a ").concat(n.type),k(function(n){var t;return g(g({},n),((t={})[e]=a,t))}),[2,{value:a}]}if(void 0!==n.min&&r.length<n.min)return s=n.message||"".concat(e," must be at least ").concat(n.min," characters"),k(function(n){var t;return g(g({},n),((t={})[e]=s,t))}),[2,{value:s}];if(void 0!==n.max&&r.length>n.max)return l=n.message||"".concat(e," must be at most ").concat(n.max," characters"),k(function(n){var t;return g(g({},n),((t={})[e]=l,t))}),[2,{value:l}];if(void 0!==n.len&&r.length!==n.len)return c=n.message||"".concat(e," must be exactly ").concat(n.len," characters"),k(function(n){var t;return g(g({},n),((t={})[e]=c,t))}),[2,{value:c}];if(!n.validator)return[3,4];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,n.validator(n,r)];case 2:return p.sent(),[3,4];case 3:return d=p.sent(),u=d instanceof Error?d.message:n.message||"".concat(e," validation failed"),k(function(n){var t;return g(g({},n),((t={})[e]=u,t))}),[2,{value:u}];case 4:return[2]}})},o=0,a=t,c.label=1;case 1:return o<a.length?(s=a[o],[5,i(s)]):[3,4];case 2:if("object"==typeof(l=c.sent()))return[2,l.value];c.label=3;case 3:return o++,[3,1];case 4:return k(function(n){var t=g({},n);return delete t[e],t}),[2,null]}})})},[T]),z=n.useCallback(function(e){return v(void 0,void 0,void 0,function(){var n,t;return x(this,function(r){switch(r.label){case 0:return n=e||Array.from(I.current.keys()),[4,Promise.all(n.map(function(e){return P(e)}))];case 1:if(t=r.sent(),t.some(function(e){return null!==e}))throw new Error("Validation failed");return[2,T]}})})},[P,T]),V=n.useCallback(function(e){if(e){var n=g({},T);e.forEach(function(e){n[e]=f[e]||void 0}),O(n)}else O(f);k({})},[T,f]),B={getFieldValue:D,getFieldsValue:function(e){if(!e)return T;var n={};return e.forEach(function(e){n[e]=T[e]}),n},setFieldValue:R,setFieldsValue:H,setFields:function(e){var n=g({},T),t=g({},A);e.forEach(function(e){void 0!==e.value&&(n[e.name]=e.value),e.errors&&e.errors.length>0?t[e.name]=e.errors[0]:delete t[e.name]}),O(n),k(t)},resetFields:V,validateFields:z,submit:function(){z().then(function(){var e=document.querySelector("form");e&&e.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))})},destroy:function(){O({}),k({}),I.current.clear(),j.current=null}};n.useEffect(function(){j.current=B,E&&(E.current=B),N&&(N.getFieldValue=B.getFieldValue,N.getFieldsValue=B.getFieldsValue,N.setFieldValue=B.setFieldValue,N.setFieldsValue=B.setFieldsValue,N.setFields=B.setFields,N.resetFields=B.resetFields,N.validateFields=B.validateFields,N.submit=B.submit,N.destroy=B.destroy)},[B,E,N]);var U=n.useCallback(function(e,n){return I.current.set(e,n),function(){I.current.delete(e)}},[]),F={layout:l,labelSpan:c,wrapperSpan:d,colon:y,requiredMark:w,values:T,errors:A,setFieldValue:R,getFieldValue:D,setFieldValueList:H,validateField:P,validateFields:z,resetFields:V};return e.jsx(oa.Provider,{value:F,children:e.jsx(Qo,{ref:M,className:"form-wrapper ".concat(o),style:a,$styles:null==_?void 0:_.wrapper,onSubmit:function(e){return v(void 0,void 0,void 0,function(){var n;return x(this,function(t){switch(t.label){case 0:e.preventDefault(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,z()];case 2:return t.sent(),null==h||h(T),[3,4];case 3:return n=t.sent(),null==m||m({error:n,values:T}),[3,4];case 4:return[2]}})})},children:u.default.Children.map(r,function(e){return u.default.isValidElement(e)&&e.type===sa?u.default.cloneElement(e,{registerItem:U}):e})})})},sa=function(t){var r=t.name,i=t.label,o=t.required,a=t.rules,s=void 0===a?[]:a,l=t.className,c=void 0===l?"":l,d=t.style,p=t.help,f=t.validateStatus,h=t.colon,m=t.labelSpan,v=t.wrapperSpan,x=t.hidden,b=void 0!==x&&x,y=t.extra,C=t.styles,w=t.registerItem,_=t.children,E=n.useContext(oa),N=n.useState(r&&(null==E?void 0:E.values[r])?E.values[r]:""),S=N[0],T=N[1];n.useEffect(function(){if(w&&r)return w(r,{rules:s})},[w,r,s]),n.useEffect(function(){E&&r&&T(E.values[r])},[E,r,null==E?void 0:E.values]);var O=o||s.some(function(e){return e.required}),L=E&&r?E.errors[r]:"",A=!!L||"error"===f,k=void 0!==m?m:null==E?void 0:E.labelSpan,M=void 0!==v?v:null==E?void 0:E.wrapperSpan,I=k?k/24*100:void 0,j=void 0;if(void 0!==k){var R=24-k,D=void 0!==M?M:R;D>R&&(D=R),D<1&&(D=1),j=D/24*100}return b?null:e.jsxs(ea,{className:"form-item ".concat(c),style:d,$layout:(null==E?void 0:E.layout)||"horizontal",$styles:null==C?void 0:C.wrapper,children:[i&&e.jsx(na,{className:"form-label",$required:O,$colon:void 0!==h?h:null==E?void 0:E.colon,$styles:g(g({},null==C?void 0:C.label),void 0!==I?{width:"".concat(I,"%")}:{}),children:i}),e.jsxs(ta,{className:"form-control",$styles:g(g({},null==C?void 0:C.input),void 0!==j?{width:"".concat(j,"%")}:{}),children:[u.default.Children.map(u.default.Children.toArray(_).filter(function(e){return u.default.isValidElement(e)}),function(e){var n=e.props,t=n.autoComplete||function(e){if(e)return{username:"username",email:"email",password:"current-password","new-password":"new-password","current-password":"current-password",name:"name","given-name":"given-name","family-name":"family-name",tel:"tel",phone:"tel",address:"street-address",city:"address-level2",country:"country-name",zipcode:"postal-code","postal-code":"postal-code",organization:"organization",company:"organization"}[e.toLowerCase()]}(r);return u.default.cloneElement(e,{value:S,onChange:function(e){var t,i;!function(e){T(e),r&&(null==E||E.setFieldValue(r,e))}(void 0!==(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)?e.target.value:e),null===(i=n.onChange)||void 0===i||i.call(n,e)},error:A||void 0,autoComplete:t})}),A&&e.jsx(ra,{className:"form-error ".concat(A?"form-error-visible":""),$styles:null==C?void 0:C.error,children:L}),p&&!A&&e.jsx(ia,{className:"form-help",$styles:null==C?void 0:C.help,children:p}),y&&!A&&e.jsx(ia,{className:"form-help",$styles:null==C?void 0:C.help,children:y})]})]})};aa.Item=sa;var la,ca,da,ua=aa,pa=f.default.div.withConfig({shouldForwardProp:function(e){return!["width","height","gap","padding","backgroundColor"].includes(e)}})(la||(la=y(["\n width: ",";\n height: ",";\n gap: ",";\n padding: ",";\n background-color: ",";\n box-sizing: border-box;\n"],["\n width: ",";\n height: ",";\n gap: ",";\n padding: ",";\n background-color: ",";\n box-sizing: border-box;\n"])),function(e){return void 0!==e.width?"number"==typeof e.width?"".concat(e.width,"px"):e.width:"100%"},function(e){return void 0!==e.height?"number"==typeof e.height?"".concat(e.height,"px"):e.height:"auto"},function(e){return void 0!==e.gap?"number"==typeof e.gap?"".concat(e.gap,"px"):e.gap:"0"},function(e){return void 0!==e.padding?"number"==typeof e.padding?"".concat(e.padding,"px"):e.padding:"0"},function(e){return e.backgroundColor||"transparent"}),fa=f.default.div.withConfig({shouldForwardProp:function(e){return!["span","rowGap","align","justify","wrap"].includes(e)}})(ca||(ca=y(["\n display: flex;\n width: ",";\n row-gap: ",";\n align-items: ",";\n justify-content: ",";\n flex-wrap: ",";\n box-sizing: border-box;\n"],["\n display: flex;\n width: ",";\n row-gap: ",";\n align-items: ",";\n justify-content: ",";\n flex-wrap: ",";\n box-sizing: border-box;\n"])),function(e){return void 0!==e.span?"calc(".concat(e.span," / 24 * 100%)"):"100%"},function(e){return void 0!==e.rowGap?"number"==typeof e.rowGap?"".concat(e.rowGap,"px"):e.rowGap:"0"},function(e){return e.align||"stretch"},function(e){return e.justify||"flex-start"},function(e){return!1!==e.wrap?"wrap":"nowrap"}),ha=f.default.div.withConfig({shouldForwardProp:function(e){return!["span","offset","push","pull","order","gap"].includes(e)}})(da||(da=y(["\n flex: ",";\n max-width: ",";\n margin-left: ",";\n margin-right: ",";\n order: ",";\n padding-left: ",";\n padding-right: ",";\n box-sizing: border-box;\n"],["\n flex: ",";\n max-width: ",";\n margin-left: ",";\n margin-right: ",";\n order: ",";\n padding-left: ",";\n padding-right: ",";\n box-sizing: border-box;\n"])),function(e){return void 0!==e.span?"0 0 calc(".concat(e.span," / 24 * 100%)"):"1"},function(e){return void 0!==e.span?"calc(".concat(e.span," / 24 * 100%)"):"100%"},function(e){return void 0!==e.pull?"calc(-".concat(e.pull," / 24 * 100%)"):void 0!==e.offset?"calc(".concat(e.offset," / 24 * 100%)"):"0"},function(e){return void 0!==e.push?"calc(".concat(e.push," / 24 * 100%)"):"0"},function(e){return void 0!==e.order?e.order:"0"},function(e){return void 0!==e.gap?"number"==typeof e.gap?"".concat(e.gap/2,"px"):"calc(".concat(e.gap," / 2)"):"0"},function(e){return void 0!==e.gap?"number"==typeof e.gap?"".concat(e.gap/2,"px"):"calc(".concat(e.gap," / 2)"):"0"}),ga=n.createContext({}),ma=n.createContext({}),va=u.default.forwardRef(function(t,r){var i=t.children,o=t.className,a=t.style,s=t.span,l=t.offset,c=t.push,d=t.pull,u=t.order,f=t.gap,h=n.useContext(ma),g=null==h?void 0:h.gap,m=void 0!==f?f:g;return e.jsx(ha,{ref:r,className:p.default("idp-grid-col",o),style:a,span:s,offset:l,push:c,pull:d,order:u,gap:m,children:i})});va.displayName="Grid.Col";var xa=u.default.forwardRef(function(t,r){var i=t.children,o=t.className,a=t.style,s=t.span,l=t.gap,c=t.rowGap,d=t.align,u=t.justify,f=t.wrap,h=void 0===f||f,g=n.useContext(ga),m=null==g?void 0:g.gap,v=void 0!==l?l:m;return e.jsx(ma.Provider,{value:{gap:v},children:e.jsx(fa,{ref:r,className:p.default("idp-grid-row",o),style:a,span:s,rowGap:c,align:d,justify:u,wrap:h,children:i})})});xa.displayName="Grid.Row";var ba=Object.assign(xa,{Col:va}),ya=u.default.forwardRef(function(n,t){var r=n.children,i=n.className,o=n.style,a=n.width,s=n.height,l=n.gap,c=n.padding,d=n.backgroundColor;return e.jsx(ga.Provider,{value:{gap:l},children:e.jsx(pa,{ref:t,className:p.default("idp-grid",i),style:o,width:a,height:s,gap:l,padding:c,backgroundColor:d,children:r})})});ya.displayName="Grid";var Ca=Object.assign(ya,{Row:ba,Col:va}),wa=function(t){var r=t.open,i=t.title,o=t.width,s=void 0===o?460:o,l=t.height,c=void 0===l?300:l,d=t.placement,u=void 0===d?"right":d,f=t.maskClosable,h=void 0===f||f,m=t.mask,v=void 0===m||m,x=t.onClose,b=t.children,y=t.className,C=t.style,w=t.maskStyle,_=t.maskClassName,E=t.contentClassName,N=t.contentStyle,S=t.header,T=t.headerClassName,O=t.headerStyle,L=t.footer,A=t.footerClassName,k=t.footerStyle,M=t.getContainer,I=void 0!==M&&M,j=t.destroyOnClose,R=void 0!==j&&j,H=t.closable,P=void 0===H||H,z=t.zIndex,V=void 0===z?1e3:z,B=t.loading,U=void 0!==B&&B,F=t.loadingIcon,Y=t.resizable,$=void 0!==Y&&Y,G=t.resizeHandleSize,W=void 0===G?8:G,K=t.minWidth,Z=void 0===K?460:K,X=t.minHeight,q=void 0===X?150:X,J=t.onChange,Q=n.useState(!1),ee=Q[0],ne=Q[1],te=n.useState(!1),re=te[0],ie=te[1],oe=n.useState(!1),ae=oe[0],le=oe[1],ce=window.innerWidth,de=window.innerHeight,ue=n.useState("number"==typeof s?s:460),pe=ue[0],fe=ue[1],he=n.useState("number"==typeof c?c:300),ge=he[0],me=he[1],ve=n.useState(!1),xe=ve[0],be=ve[1],ye=n.useRef(null),Ce=n.useRef({x:0,y:0}),we=n.useRef({width:0,height:0}),_e=n.useRef({width:pe,height:ge}),Ee=n.useRef({placement:u,minWidth:Z,maxWidth:ce,minHeight:q,maxHeight:de,onChange:J});n.useEffect(function(){_e.current={width:pe,height:ge}},[pe,ge]),n.useEffect(function(){Ee.current={placement:u,minWidth:Z,maxWidth:ce,minHeight:q,maxHeight:de,onChange:J}},[u,Z,ce,q,de,J]),n.useEffect(function(){"number"==typeof s&&fe(s)},[s]),n.useEffect(function(){"number"==typeof c&&me(c)},[c]),n.useEffect(function(){if(!r){ie(!1),le(!0);var e=setTimeout(function(){ne(!1),le(!1)},300);return function(){return clearTimeout(e)}}return le(!1),ne(!0),document.body.style.overflow="hidden",requestAnimationFrame(function(){requestAnimationFrame(function(){ie(!0)})}),function(){document.body.style.overflow=""}},[r,300]);var Ne=function(){h&&x()},Se=function(){x()},Te=function(e){return"number"==typeof e?"".concat(e,"px"):e},Oe=function(){var e=g(g({},C),{zIndex:V}),n=$?{width:pe,height:ge}:{width:s,height:c};switch(u){case"left":case"right":e.width=Te(n.width),e.height="100%";break;case"top":case"bottom":e.height=Te(n.height),e.width="100%"}return xe&&(e.transition="none"),e},Le=$&&ee,Ae=function(){switch(u){case"left":return"idp-drawer-resize-handle--right";case"right":return"idp-drawer-resize-handle--left";case"top":return"idp-drawer-resize-handle--bottom";case"bottom":return"idp-drawer-resize-handle--top";default:return""}},ke=function(){switch(u){case"left":case"right":return"col-resize";case"top":case"bottom":return"row-resize";default:return"default"}},Me=n.useCallback(function(e){e.preventDefault(),e.stopPropagation();var n=_e.current.width,t=_e.current.height;if(ye.current){var r=Ee.current;"left"===r.placement||"right"===r.placement?ye.current.style.width="".concat(n,"px"):ye.current.style.height="".concat(t,"px")}be(!0),Ce.current={x:e.clientX,y:e.clientY},we.current={width:n,height:t}},[]),Ie=n.useCallback(function(e){var n,t=Ee.current,r=e.clientX-Ce.current.x,i=e.clientY-Ce.current.y,o=we.current.width,a=we.current.height;if("left"===t.placement){var s=we.current.width+r;(o=Math.max(t.minWidth,Math.min(t.maxWidth,s)))!==s&&(Ce.current.x=e.clientX,we.current.width=o)}else if("right"===t.placement){s=we.current.width-r;(o=Math.max(t.minWidth,Math.min(t.maxWidth,s)))!==s&&(Ce.current.x=e.clientX,we.current.width=o)}else if("top"===t.placement){var l=we.current.height+i;(a=Math.max(t.minHeight,Math.min(t.maxHeight,l)))!==l&&(Ce.current.y=e.clientY,we.current.height=a)}else if("bottom"===t.placement){l=we.current.height-i;(a=Math.max(t.minHeight,Math.min(t.maxHeight,l)))!==l&&(Ce.current.y=e.clientY,we.current.height=a)}_e.current={width:o,height:a},fe(o),me(a),null===(n=t.onChange)||void 0===n||n.call(t,{width:o,height:a})},[]),je=n.useCallback(function(){be(!1)},[]);n.useEffect(function(){return xe?(document.addEventListener("mousemove",Ie),document.addEventListener("mouseup",je)):(document.removeEventListener("mousemove",Ie),document.removeEventListener("mouseup",je)),function(){document.removeEventListener("mousemove",Ie),document.removeEventListener("mouseup",je)}},[xe,Ie,je]);var Re=function(){return U?F?e.jsx("div",{className:"idp-drawer-loading",children:e.jsx("div",{className:"idp-drawer-loading-content",children:F})}):e.jsx("div",{className:"idp-drawer-loading",children:e.jsx("div",{className:"idp-drawer-loading-content",children:e.jsx("div",{className:"idp-drawer-loading-spinner",children:e.jsxs("svg",{viewBox:"0 0 24 24",className:"idp-drawer-loading-icon",children:[e.jsx("circle",{className:"idp-drawer-loading-track",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"}),e.jsx("circle",{className:"idp-drawer-loading-indicator",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"})]})})})}):null},De=function(){return!1===S?null:S?e.jsx("div",{className:p.default("idp-drawer-header",T),style:O,children:S}):i||P?e.jsxs("div",{className:p.default("idp-drawer-header",T),style:O,children:[e.jsx("div",{className:"idp-drawer-header__title",children:i}),P&&e.jsx("button",{className:"idp-drawer-header__close",onClick:Se,type:"button","aria-label":"Close",children:e.jsx(D,{type:"close",size:20})})]}):null},He=function(){var n;return Le?e.jsx("div",{className:p.default("idp-drawer-resize-handle",Ae()),style:(n={cursor:ke()},n["left"===u||"right"===u?"width":"height"]=W,n),onMouseDown:Me}):null},Pe=function(){if(!ee&&!ae)return null;var n=e.jsx("div",{className:p.default("idp-drawer-overlay",{"idp-drawer-overlay--visible":re&&!ae,"idp-drawer-overlay--closing":ae,"idp-drawer-overlay--resizing":xe},_),style:g({zIndex:V},w),onClick:Ne,children:e.jsxs("div",{ref:ye,className:p.default("idp-drawer","idp-drawer--".concat(u),{"idp-drawer--visible":re&&!ae,"idp-drawer--closing":ae,"idp-drawer--no-mask":!v,"idp-drawer--resizing":xe},y),style:Oe(),onClick:function(e){return e.stopPropagation()},children:[Re(),De(),e.jsx("div",{className:p.default("idp-drawer-content",E),style:N,children:R&&ae?null:b}),!1!==L&&e.jsx("div",{className:p.default("idp-drawer-footer",A),style:k,children:L||e.jsxs(e.Fragment,{children:[e.jsx(se,{onClick:Se,type:"button",children:"取消"}),e.jsx(se,{variant:"primary",onClick:Se,type:"button",children:"确认"})]})}),He()]})});return v?n:e.jsx("div",{className:p.default("idp-drawer-wrapper",{"idp-drawer-wrapper--visible":re&&!ae,"idp-drawer-wrapper--closing":ae}),style:{zIndex:V},children:e.jsxs("div",{ref:ye,className:p.default("idp-drawer","idp-drawer--".concat(u),{"idp-drawer--visible":re&&!ae,"idp-drawer--closing":ae,"idp-drawer--no-mask":!v,"idp-drawer--resizing":xe},y),style:Oe(),children:[Re(),De(),e.jsx("div",{className:p.default("idp-drawer-content",E),style:N,children:R&&ae?null:b}),!1!==L&&e.jsx("div",{className:p.default("idp-drawer-footer",A),style:k,children:L||e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:Se,type:"button",children:"取消"}),e.jsx("button",{onClick:Se,type:"button",children:"确认"})]})}),He()]})})}();if(!Pe)return null;if(!1===I)return Pe;var ze="function"==typeof I?I():I;return ze?a.createPortal(Pe,ze):Pe},_a=n.createContext(void 0),Ea=function(t){var r,i=t.value,o=t.checked,a=t.defaultChecked,s=void 0!==a&&a,l=t.onChange,c=t.disabled,d=void 0!==c&&c,u=t.indeterminate,f=void 0!==u&&u,h=t.children,m=t.className,v=t.style,x=t.label,y=t.labelGap,C=void 0===y?8:y,w=t.labelClassName,_=void 0===w?"":w,E=t.labelStyle,N=n.useContext(_a),S=!!N,T=n.useState(s),O=T[0],L=T[1],A=S?null===(r=N.value)||void 0===r?void 0:r.includes(i):void 0!==o?o:O;n.useEffect(function(){S||void 0===o||L(o)},[o,S]);var k=p.default("idp-checkbox",{"idp-checkbox--checked":A,"idp-checkbox--disabled":d||S&&N.disabled,"idp-checkbox--indeterminate":f},m);return e.jsx("label",{className:k,style:v,children:e.jsxs("div",{className:"idp-checkbox-wrapper",style:{display:"flex",alignItems:"center"},children:[x&&e.jsx("div",{className:"idp-checkbox-label ".concat(_),style:g({marginRight:"number"==typeof C?"".concat(C,"px"):C},E),children:x}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[e.jsx("input",{type:"checkbox",className:"idp-checkbox__input",checked:A,onChange:function(e){var n,t=e.target.checked;if(!(d||S&&N.disabled))if(S){var r=N.value||[],o=void 0;o=t?b(b([],r,!0),[i],!1):r.filter(function(e){return e!==i}),null===(n=N.onChange)||void 0===n||n.call(N,o)}else L(t),null==l||l(t,i)},disabled:d||S&&N.disabled,value:i,ref:function(e){e&&(e.indeterminate=f)}}),e.jsx("span",{className:"idp-checkbox__inner"}),h&&e.jsx("span",{className:"idp-checkbox__label",children:h})]})]})})};Ea.Group=function(t){var r=t.value,i=t.defaultValue,o=void 0===i?[]:i,a=t.onChange,s=t.disabled,l=void 0!==s&&s,c=t.options,d=t.children,u=t.className,f=t.style,h=t.layout,m=void 0===h?"vertical":h,v=t.gap,x=void 0===v?8:v,b=n.useState(o||[]),y=b[0],C=b[1];n.useEffect(function(){void 0!==r&&C(r)},[r]);var w=p.default("idp-checkbox-group",{"idp-checkbox-group--horizontal":"horizontal"===m},u),_=g(g({},f),{gap:"number"==typeof x?"".concat(x,"px"):x});return e.jsx(_a.Provider,{value:{value:void 0!==r?r:y,onChange:function(e){C(e),null==a||a(e)},disabled:l},children:e.jsx("div",{className:w,style:_,children:c?c.map(function(n,t){var r;return e.jsx(Ea,{value:n.value,disabled:n.disabled||l,children:n.label},null!==(r=n.value)&&void 0!==r?r:t)}):d})})},Ea.displayName="Checkbox",Ea.Group.displayName="Checkbox.Group";var Na=Ea,Sa=u.default.forwardRef(function(t,r){var i=t.children,o=t.className,a=t.style,s=t.size,l=void 0===s?"medium":s,c=t.backgroundColor,d=t.color,u=t.icon,f=t.closable,h=void 0!==f&&f,v=t.onClose,x=t.onClick,b=m(t,["children","className","style","size","backgroundColor","color","icon","closable","onClose","onClick"]),y=n.useState(!0),C=y[0],w=y[1];if(!C)return null;var _=p.default("idp-tag","idp-tag--".concat(l),{"idp-tag--clickable":x,"idp-tag--closable":h},o),E=g({backgroundColor:c,color:d},a);return e.jsxs("span",g({ref:r,className:_,style:E,onClick:x},b,{children:[u?"string"==typeof u?e.jsx("span",{className:"idp-tag__icon",children:e.jsx(D,{type:u})}):e.jsx("span",{className:"idp-tag__icon",children:u}):null,e.jsx("span",{className:"idp-tag__content",children:i}),h&&e.jsx("span",{className:"idp-tag__close",onClick:function(e){e.stopPropagation(),null==v||v(e),w(!1)},role:"button",tabIndex:0,"aria-label":"close",children:e.jsx(D,{type:"close"})})]}))});Sa.displayName="Tag";var Ta=Sa,Oa=function(t){var r=t.title,i=void 0===r?"确认删除吗?":r,o=t.description,s=t.okText,l=void 0===s?"确定":s,c=t.cancelText,d=void 0===c?"取消":c,u=t.okButtonProps,f=void 0===u?{}:u,h=t.cancelButtonProps,m=void 0===h?{}:h,b=t.onConfirm,y=t.onCancel,C=t.disabled,w=void 0!==C&&C,_=t.icon,E=t.type,N=void 0===E?"warning":E,S=t.placement,T=void 0===S?"top":S,O=t.showCancel,L=void 0===O||O,A=t.getContainer,k=void 0===A?function(){return document.body}:A,M=t.className,I=t.style,j=t.children,R=n.useState(!1),H=R[0],P=R[1],z=n.useState(!1),V=z[0],B=z[1],U=n.useState({top:0,left:0}),F=U[0],Y=U[1],$=n.useRef(null),G=n.useRef(null),W={top:"idp-popconfirm-top",bottom:"idp-popconfirm-bottom",left:"idp-popconfirm-left",right:"idp-popconfirm-right",topLeft:"idp-popconfirm-topLeft",topRight:"idp-popconfirm-topRight",bottomLeft:"idp-popconfirm-bottomLeft",bottomRight:"idp-popconfirm-bottomRight",leftTop:"idp-popconfirm-leftTop",leftBottom:"idp-popconfirm-leftBottom",rightTop:"idp-popconfirm-rightTop",rightBottom:"idp-popconfirm-rightBottom"},K=function(){if($.current&&G.current){var e=$.current.getBoundingClientRect(),n=G.current.getBoundingClientRect(),t=0,r=0;switch(T){case"top":case"topLeft":case"topRight":t=e.top-n.height-8,r=e.left+(e.width-n.width)/2,"topLeft"===T?r=e.left:"topRight"===T&&(r=e.right-n.width);break;case"bottom":case"bottomLeft":case"bottomRight":t=e.bottom+8,r=e.left+(e.width-n.width)/2,"bottomLeft"===T?r=e.left:"bottomRight"===T&&(r=e.right-n.width);break;case"left":case"leftTop":case"leftBottom":t=e.top+(e.height-n.height)/2,r=e.left-n.width-8,"leftTop"===T?t=e.top:"leftBottom"===T&&(t=e.bottom-n.height);break;case"right":case"rightTop":case"rightBottom":t=e.top+(e.height-n.height)/2,r=e.right+8,"rightTop"===T?t=e.top:"rightBottom"===T&&(t=e.bottom-n.height)}var i=window.innerWidth,o=window.innerHeight;r<10&&(r=10),r+n.width>i-10&&(r=i-n.width-10),t<10&&(t=10),t+n.height>o-10&&(t=o-n.height-10),Y({top:t,left:r})}},Z=function(e){w||(e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),P(!0))},X=function(){return v(void 0,void 0,void 0,function(){return x(this,function(e){switch(e.label){case 0:if(!b)return[3,5];B(!0),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,b()];case 2:return e.sent(),P(!1),[3,4];case 3:return B(!1),[7];case 4:return[3,6];case 5:P(!1),e.label=6;case 6:return[2]}})})},q=function(){y&&y(),P(!1)},J=function(e){G.current&&!G.current.contains(e.target)&&$.current&&!$.current.contains(e.target)&&P(!1)};n.useEffect(function(){if(H){setTimeout(function(){K()},0),document.addEventListener("mousedown",J);var e=function(){return K()},n=function(){return K()};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",n),function(){document.removeEventListener("mousedown",J),window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",n)}}},[H,T]);var Q,ee;return e.jsxs(e.Fragment,{children:[(Q=j,ee=Q.props||{},e.jsx("span",{ref:$,style:{display:"inline-block"},children:n.cloneElement(Q,g(g({},ee),{onClick:Z}))})),function(){if(!H)return null;var n,t=e.jsxs("div",{ref:G,className:p.default("idp-popconfirm","idp-popconfirm-visible",W[T],"idp-popconfirm--".concat(N),M),style:g({position:"fixed",top:"".concat(F.top,"px"),left:"".concat(F.left,"px")},I),children:[e.jsx("div",{className:"idp-popconfirm-arrow"}),e.jsxs("div",{className:"idp-popconfirm-inner",children:[e.jsxs("div",{className:"idp-popconfirm-header",children:[e.jsx("span",{style:{display:_?"inline-block":"none"},className:"idp-popconfirm-icon",children:_||(n={info:{type:"info-circle",color:"#1890ff"},success:{type:"check-circle",color:"#52c41a"},warning:{type:"warning-circle",color:"#faad14"},error:{type:"close-circle",color:"#f5222d"},danger:{type:"close-circle",color:"#f5222d"}}[N],e.jsx(D,{type:n.type,size:18,color:n.color}))}),e.jsx("span",{className:"idp-popconfirm-title",children:i})]}),o&&e.jsx("div",{className:"idp-popconfirm-description",children:o}),e.jsxs("div",{className:"idp-popconfirm-actions",children:[L&&e.jsx(se,{variant:m.variant||"secondary",onClick:q,disabled:m.disabled||V,size:"small",children:d}),e.jsx(se,{variant:f.variant||"primary",onClick:X,loading:f.loading||V,disabled:f.disabled,size:"small",children:l})]})]})]});if(!1===k)return t;var r="function"==typeof k?k():k;return r?a.createPortal(t,r):t}()]})},La=function(n){var t,r,i,o=n.percent,a=void 0===o?0:o,s=n.type,l=void 0===s?"line":s,c=n.status,d=n.showInfo,u=void 0===d||d,f=n.format,h=n.strokeColor,m=void 0===h?"#1890ff":h,v=n.trailColor,x=void 0===v?"gainsboro":v,b=n.strokeWidth,y=n.size,C=void 0===y?"default":y,w=n.transition,_=void 0===w||w,E=n.steps,N=n.segments,S=n.icon,T=n.prefix,O=n.suffix,L=n.children,A=n.className,k=n.style,M=c||(a>=100?"success":a<0?"exception":"normal"),I=function(){return f?f(a):"".concat(Math.floor(a),"%")},j=function(e){return"object"==typeof e&&"from"in e&&"to"in e},R=function(){return"success"===M?"#52c41a":"exception"===M?"#ff4d4f":j(m)?m.from:m},H=function(){return S||("success"===M?e.jsx(D,{type:"check-circle",style:{color:"#52c41a"}}):"exception"===M?e.jsx(D,{type:"close-circle",style:{color:"#ff4d4f"}}):null)};if("circle"===l||"dashboard"===l){var P=50-(b||6),z=2*Math.PI*P,V=z-a/100*z,B="success"===M?"#52c41a":"exception"===M?"#ff4d4f":m,U=j(B)?(r=(t=B).from,i=t.to,"from-".concat(r.replace("#",""),"-to-").concat(i.replace("#",""))):null;return e.jsxs("div",{className:p.default("idp-progress","idp-progress--circle",A),style:k,children:[e.jsxs("svg",{width:120,height:120,viewBox:"0 0 120 120",style:{transform:"rotate(-90deg)"},children:[U&&e.jsx("defs",{children:e.jsxs("linearGradient",{id:U,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[e.jsx("stop",{offset:"0%",stopColor:B.from}),e.jsx("stop",{offset:"100%",stopColor:B.to})]})}),e.jsx("circle",{cx:60,cy:60,r:P,stroke:x,strokeWidth:b||6,fill:"none"}),e.jsx("circle",{cx:60,cy:60,r:P,stroke:U?"url(#".concat(U,")"):R(),strokeWidth:b||6,fill:"none",strokeDasharray:z,strokeDashoffset:V,strokeLinecap:"round",style:{transition:_?"stroke-dashoffset 0.3s cubic-bezier(0.34, 0.69, 0.1, 1)":"none"}})]}),u&&e.jsx("div",{className:"idp-progress-info",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",margin:0},children:L||e.jsxs(e.Fragment,{children:[H(),T,I(),O]})})]})}var F=function(e){var n=e.color;if(j(n)){var t=n.from,r=n.to,i=n.direction;return{background:"linear-gradient(".concat(void 0===i?"to right":i,", ").concat(t,", ").concat(r,")")}}return{backgroundColor:n}};return e.jsxs("div",{className:p.default("idp-progress","idp-progress--".concat(C),"idp-progress--line",{"idp-progress--success":"success"===M},{"idp-progress--exception":"exception"===M},{"idp-progress--steps":E&&E>0},{"idp-progress--has-segments":N&&N.length>0},A),style:k,children:[e.jsx("div",{className:"idp-progress-wrapper",children:e.jsx("div",{className:"idp-progress-outer",children:E&&E>0?function(){if(!E||E<=0)return null;var n=a/100,t=Math.min(1,Math.max(0,n)),r=Array.from({length:E},function(n,r){var i=r/E,o=(r+1)/E,a=t>=o,s=t>i&&t<o,l=t<=i,c=t>=1;return e.jsx("div",{className:p.default("idp-progress-step",{"idp-progress-step--completed":a,"idp-progress-step--current":s,"idp-progress-step--pending":l,"idp-progress-step--success":c}),style:{transition:_?"all var(--idp-transition-duration) var(--idp-transition-timing-function)":"none"}},r)});return e.jsx("div",{className:"idp-progress-steps",children:r})}():N&&N.length>0?function(){if(!N||0===N.length)return null;var n=N.reduce(function(e,n){return e+n.percent},0),t=void 0===a||0===a?n:a,r=n>0?t/n:t/100,i=Math.min(1,Math.max(0,r)),o=0,s=N.map(function(t,r){var a=t.percent,s=o/n,l=(o+a)/n;o+=a;var c=i>=l,d=i>s&&i<l,u=i<=s;return e.jsx("div",{className:p.default("idp-progress-segment",{"idp-progress-segment--completed":c,"idp-progress-segment--current":d,"idp-progress-segment--pending":u}),style:g(g({width:"".concat(a,"%")},u?{}:F(t)),{transition:_?"all var(--idp-transition-duration) var(--idp-transition-timing-function)":"none"})},r)}),l=100-n;return l>0&&s.push(e.jsx("div",{className:"idp-progress-segment idp-progress-segment--remaining",style:{width:"".concat(l,"%"),backgroundColor:"gainsboro",transition:_?"all var(--idp-transition-duration) var(--idp-transition-timing-function)":"none"}},"remaining")),e.jsx("div",{className:"idp-progress-segments",children:s})}():e.jsx("div",{className:"idp-progress-inner",style:{background:x},children:e.jsx("div",{className:p.default("idp-progress-bg",{"idp-progress-bg--success":"success"===M,"idp-progress-bg--exception":"exception"===M,"idp-progress-bg--animated":function(){var e="success"===M?"#52c41a":"exception"===M?"#ff4d4f":m;return j(e)&&!0===e.animated}()}),style:g(g({width:"".concat(Math.min(100,Math.max(0,a)),"%"),backgroundColor:j(m)?void 0:R()},function(){var e="success"===M?"#52c41a":"exception"===M?"#ff4d4f":m;if(j(e)){var n=e.from,t=e.to,r=e.direction;return{background:"linear-gradient(".concat(void 0===r?"to right":r,", ").concat(n,", ").concat(t,")")}}return{}}()),{transition:_?"width 0.3s cubic-bezier(0.34, 0.69, 0.1, 1)":"none"})})})})}),u&&e.jsxs("div",{className:"idp-progress-info",children:[H()&&e.jsx("span",{className:"idp-progress-icon",children:H()}),T&&e.jsx("span",{className:"idp-progress-prefix",children:T}),e.jsx("span",{children:I()}),O&&e.jsx("span",{className:"idp-progress-suffix",children:O})]})]})},Aa=function(e,n,t,r){var i=function(e){return e.toString().padStart(2,"0")};return"HH:mm"===r?"".concat(i(e),":").concat(i(n)):"".concat(i(e),":").concat(i(n),":").concat(i(t))},ka=function(n){var t=n.options,r=n.value,i=n.onChange,o=n.unit,a=u.default.useRef(null),s=u.default.useRef(null);return u.default.useEffect(function(){if(s.current&&a.current){var e=a.current,n=s.current,t=e.clientHeight,r=n.offsetTop-t/2+18;requestAnimationFrame(function(){e.scrollTo({top:Math.max(0,r),behavior:"smooth"})})}},[r]),e.jsxs("div",{className:"time-picker-column",children:[e.jsx("div",{className:"time-picker-column-header",children:o}),e.jsx("div",{className:"time-picker-column-list",ref:a,children:t.map(function(n){return e.jsx("div",{ref:r===n?s:null,className:p.default("time-picker-option",{selected:r===n}),onClick:function(){return null==i?void 0:i(n)},children:n.toString().padStart(2,"0")},n)})})]})},Ma=function(t){var r,i,o,a=t.value,s=t.onChange,l=t.format,c=t.hourStep,d=t.minuteStep,u=t.secondStep,p=t.disabledHours,f=t.disabledMinutes,h=t.disabledSeconds,g=t.hideDisabledOptions,m=void 0!==g&&g,v=t.showNow,x=void 0===v||v,b=t.showOk,y=void 0===b||b,C=t.onNow,w=t.onOk,_=function(e){if(!e)return null;var n=e.split(":");return n.length<2?null:{hour:parseInt(n[0],10)||0,minute:parseInt(n[1],10)||0,second:parseInt(n[2],10)||0}}(a),E=n.useState(null!==(r=null==_?void 0:_.hour)&&void 0!==r?r:0),N=E[0],S=E[1],T=n.useState(null!==(i=null==_?void 0:_.minute)&&void 0!==i?i:0),O=T[0],L=T[1],A=n.useState(null!==(o=null==_?void 0:_.second)&&void 0!==o?o:0),k=A[0],M=A[1];n.useEffect(function(){if(_)S(_.hour),L(_.minute),M(_.second);else{var e=new Date;S(e.getHours()),L(e.getMinutes()),M(e.getSeconds())}},[a,_]);var I=function(e,n,t){void 0===t&&(t=[]);for(var r=[],i=0;i<e;i+=n)m&&t.includes(i)||r.push(i);return r},j=n.useMemo(function(){return(null==p?void 0:p())||[]},[p]),R=n.useMemo(function(){return(null==f?void 0:f(N))||[]},[f,N]),D=n.useMemo(function(){return(null==h?void 0:h(N,O))||[]},[h,N,O]),H=n.useMemo(function(){return I(24,c,j)},[c,j,m]),P=n.useMemo(function(){return I(60,d,R)},[d,R,m]),z=n.useMemo(function(){return I(60,u,D)},[u,D,m]),V=l.includes("ss");return e.jsxs("div",{className:"time-picker-panel-container",children:[e.jsxs("div",{className:"time-picker-panel",children:[e.jsx(ka,{unit:"时",options:H,value:N,onChange:function(e){S(e),null==s||s(Aa(e,O,k,l))}}),e.jsx(ka,{unit:"分",options:P,value:O,onChange:function(e){L(e),null==s||s(Aa(N,e,k,l))}}),V&&e.jsx(ka,{unit:"秒",options:z,value:k,onChange:function(e){M(e),null==s||s(Aa(N,O,e,l))}})]}),(x||y)&&e.jsxs("div",{className:"time-picker-footer",children:[x&&e.jsx("button",{className:"time-picker-now-btn",onClick:C,children:"此刻"}),y&&e.jsx("button",{className:"time-picker-ok-btn",onClick:function(){return null==w?void 0:w(Aa(N,O,k,l))},children:"确定"})]})]})},Ia=function(t){var r,i=t.size,o=void 0===i?"middle":i,a=t.value,s=t.defaultValue,l=t.onChange,c=t.placeholder,d=void 0===c?"请选择时间":c,u=t.disabled,f=void 0!==u&&u,m=t.readOnly,v=void 0!==m&&m,x=t.className,b=void 0===x?"":x,y=t.style,C=t.width,w=void 0===C?120:C,_=t.format,E=void 0===_?"HH:mm:ss":_,N=t.allowClear,S=void 0===N||N,T=t.hourStep,O=void 0===T?1:T,L=t.minuteStep,A=void 0===L?1:L,k=t.secondStep,M=void 0===k?1:k,I=t.disabledHours,j=t.disabledMinutes,R=t.disabledSeconds,H=t.hideDisabledOptions,P=void 0!==H&&H,z=t.label,V=t.labelGap,B=void 0===V?8:V,U=t.labelClassName,F=void 0===U?"":U,Y=t.labelStyle,$=t.onOpenChange,G=t.open,W=t.showNow,K=void 0===W||W,Z=t.showOk,X=void 0===Z||Z,q=n.useState(s),J=q[0],Q=q[1],ee=n.useState(!1),ne=ee[0],te=ee[1],re=n.useState(!1),ie=re[0],oe=re[1],ae=n.useState({top:0,left:0,width:0}),se=ae[0],le=ae[1],ce=n.useState(!1),de=ce[0],ue=ce[1],pe=n.useRef(null),fe=n.useRef(null),he=void 0!==a,ge=he?a:J,me=void 0!==G?G:ne,ve=n.useCallback(function(){if(pe.current){var e=pe.current.getBoundingClientRect(),n=Math.max(e.width,200),t=window.innerHeight-e.bottom,r=e.bottom+window.scrollY+4,i=e.left+window.scrollX;t<280&&e.top>280&&(r=e.top+window.scrollY-280-4);var o=window.innerWidth;i+n>o&&(i=o-n-16),le({top:r,left:i,width:n})}},[]);n.useEffect(function(){if(me&&fe.current&&pe.current){return ue(!1),requestAnimationFrame(function(){var e=pe.current.getBoundingClientRect(),n=fe.current.offsetHeight;if(window.innerHeight-e.bottom<280&&e.top>280){var t=e.top+window.scrollY-n-4;le(function(e){return g(g({},e),{top:t})})}ue(!0)}),function(){ue(!1)}}},[me]),n.useEffect(function(){var e=function(e){pe.current&&!pe.current.contains(e.target)&&fe.current&&!fe.current.contains(e.target)&&(void 0===G&&te(!1),null==$||$(!1),oe(!1))};return me&&(document.addEventListener("mousedown",e),ve(),window.addEventListener("scroll",ve,!0),window.addEventListener("resize",ve)),function(){document.removeEventListener("mousedown",e),window.removeEventListener("scroll",ve,!0),window.removeEventListener("resize",ve)}},[me,G,$,ve]);var xe=n.useCallback(function(e){he||Q(e),null==l||l(e)},[he,l]),be=function(){var e=new Date,n=function(e,n,t,r){var i=function(e){return e.toString().padStart(2,"0")};return"HH:mm"===r?"".concat(i(e),":").concat(i(n)):"".concat(i(e),":").concat(i(n),":").concat(i(t))}(e.getHours(),e.getMinutes(),e.getSeconds(),E);xe(n)},ye=g({width:"number"==typeof w?"".concat(w,"px"):w},y),Ce=g({marginRight:"number"==typeof B?"".concat(B,"px"):B},Y),we=e.jsxs("div",{ref:pe,className:p.default("time-picker-trigger",(r={focused:ie,disabled:f},r["size-".concat(o)]=o,r)),onClick:function(){if(!f&&!v){var e=!me;void 0===G&&te(e),null==$||$(e),oe(e)}},children:[e.jsx("span",{className:p.default("time-picker-value",{placeholder:!ge}),children:ge||d}),e.jsxs("span",{className:"time-picker-suffix",children:[S&&ge&&!f&&!v&&e.jsx("span",{className:"time-picker-clear",onClick:function(e){e.stopPropagation(),he||Q(void 0),null==l||l("")},children:e.jsx(D,{type:"close",size:"small"})}),e.jsx(D,{type:"clock",size:"small",className:p.default("time-picker-icon",{open:me,"has-clear":S&&ge&&!f&&!v})})]})]});return e.jsxs("div",{className:p.default("time-picker",b,{"time-picker-with-label":z}),style:ye,children:[z&&e.jsx("span",{className:p.default("time-picker-label",F),style:Ce,children:z}),we,function(){if(!me)return null;var n=e.jsx("div",{ref:fe,className:"time-picker-dropdown",style:{position:"fixed",top:se.top,left:se.left,minWidth:se.width||("number"==typeof w?w:parseInt(w,10)),zIndex:999,opacity:de?1:0,transition:"opacity 0.15s ease"},children:e.jsx(Ma,{value:ge,onChange:xe,format:E,hourStep:O,minuteStep:A,secondStep:M,disabledHours:I,disabledMinutes:j,disabledSeconds:R,hideDisabledOptions:P,showNow:K,showOk:X,onNow:be,onOk:function(e){return function(e){e&&!ge&&xe(e),void 0===G&&te(!1),null==$||$(!1),oe(!1)}(e)}})});return h.default.createPortal(n,document.body)}()]})};Ia.RangePicker=function(t){var r,i=t.size,o=void 0===i?"middle":i,a=t.value,s=t.defaultValue,l=t.onChange,c=t.placeholder,d=void 0===c?["开始时间","结束时间"]:c,u=t.disabled,f=void 0!==u&&u,m=t.readOnly,v=void 0!==m&&m,x=t.className,b=void 0===x?"":x,y=t.style,C=t.width,w=void 0===C?"auto":C,_=t.format,E=void 0===_?"HH:mm:ss":_,N=t.allowClear,S=void 0===N||N,T=t.hourStep,O=void 0===T?1:T,L=t.minuteStep,A=void 0===L?1:L,k=t.secondStep,M=void 0===k?1:k,I=t.disabledHours,j=t.disabledMinutes,R=t.disabledSeconds,H=t.hideDisabledOptions,P=void 0!==H&&H,z=t.label,V=t.labelGap,B=void 0===V?8:V,U=t.labelClassName,F=void 0===U?"":U,Y=t.labelStyle,$=t.onOpenChange,G=t.open,W=t.separator,K=n.useState(s),Z=K[0],X=K[1],q=n.useState(!1),J=q[0],Q=q[1],ee=n.useState("start"),ne=ee[0],te=ee[1],re=n.useState(!1),ie=re[0],oe=re[1],ae=n.useState({top:0,left:0,width:0}),se=ae[0],le=ae[1],ce=n.useState(!1),de=ce[0],ue=ce[1],pe=n.useRef(null),fe=n.useRef(null),he=void 0!==a,ge=he?a:Z,me=void 0!==G?G:J,ve=(null==ge?void 0:ge[0])||"",xe=(null==ge?void 0:ge[1])||"",be=n.useCallback(function(){if(pe.current){var e=pe.current.getBoundingClientRect(),n=Math.max(e.width,200),t=window.innerHeight-e.bottom,r=e.bottom+window.scrollY+4,i=e.left+window.scrollX;t<280&&e.top>280&&(r=e.top+window.scrollY-280-4);var o=window.innerWidth;i+n>o&&(i=o-n-16),le({top:r,left:i,width:n})}},[]);n.useEffect(function(){if(me&&fe.current&&pe.current){return ue(!1),requestAnimationFrame(function(){var e=pe.current.getBoundingClientRect(),n=fe.current.offsetHeight;if(window.innerHeight-e.bottom<280&&e.top>280){var t=e.top+window.scrollY-n-4;le(function(e){return g(g({},e),{top:t})})}ue(!0)}),function(){ue(!1)}}},[me]),n.useEffect(function(){var e=function(e){pe.current&&!pe.current.contains(e.target)&&fe.current&&!fe.current.contains(e.target)&&(void 0===G&&Q(!1),null==$||$(!1),oe(!1))};return me&&(document.addEventListener("mousedown",e),be(),window.addEventListener("scroll",be,!0),window.addEventListener("resize",be)),function(){document.removeEventListener("mousedown",e),window.removeEventListener("scroll",be,!0),window.removeEventListener("resize",be)}},[me,G,$,be]);var ye=n.useCallback(function(e,n){var t=[0===e?n:(null==ge?void 0:ge[0])||"",1===e?n:(null==ge?void 0:ge[1])||""];he||X(t),null==l||l(t)},[he,l,ge]),Ce=function(e){f||v||(te(e),void 0===G&&Q(!0),null==$||$(!0),oe(!0))},we=function(){void 0===G&&Q(!1),null==$||$(!1),oe(!1)},_e=g({width:"number"==typeof w?"".concat(w,"px"):w},y),Ee=g({marginRight:"number"==typeof B?"".concat(B,"px"):B},Y),Ne=ve||xe;return e.jsxs("div",{className:p.default("time-picker time-range-picker",b,{"time-picker-with-label":z}),style:_e,children:[z&&e.jsx("span",{className:p.default("time-picker-label",F),style:Ee,children:z}),e.jsxs("div",{ref:pe,className:p.default("time-range-picker-trigger",(r={focused:ie,disabled:f},r["size-".concat(o)]=o,r)),children:[e.jsx("div",{className:p.default("time-range-picker-input",{active:"start"===ne&&me}),onClick:function(){return Ce("start")},children:e.jsx("span",{className:p.default("time-range-picker-value",{placeholder:!ve}),children:ve||d[0]})}),e.jsx("span",{className:"time-range-picker-separator",children:W||e.jsx(D,{type:"arrow-right",size:"small"})}),e.jsx("div",{className:p.default("time-range-picker-input",{active:"end"===ne&&me}),onClick:function(){return Ce("end")},children:e.jsx("span",{className:p.default("time-range-picker-value",{placeholder:!xe}),children:xe||d[1]})}),e.jsxs("span",{className:"time-picker-suffix time-range-picker-suffix",children:[S&&Ne&&!f&&!v&&e.jsx("span",{className:"time-picker-clear",onClick:function(e){e.stopPropagation(),he||X(void 0),null==l||l(["",""])},children:e.jsx(D,{type:"close",size:"small"})}),e.jsx(D,{type:"clock",size:"small",className:p.default("time-picker-icon",{"has-clear":S&&Ne&&!f&&!v})})]})]}),function(){if(!me)return null;var n="start"===ne?ve:xe,t=e.jsx("div",{ref:fe,className:"time-picker-dropdown time-range-picker-dropdown",style:{position:"fixed",top:se.top,left:se.left,minWidth:se.width||("number"==typeof w?w:parseInt(w,10)),zIndex:999,opacity:de?1:0,transition:"opacity 0.15s ease"},children:e.jsx(Ma,{value:n,onChange:function(e){return ye("start"===ne?0:1,e)},format:E,hourStep:O,minuteStep:A,secondStep:M,disabledHours:I,disabledMinutes:j,disabledSeconds:R,hideDisabledOptions:P,showNow:!1,showOk:!0,onOk:we})});return h.default.createPortal(t,document.body)}()]})};var ja=Ia,Ra=function(e,n){if(!e)return"";var t=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0");switch(n){case"YYYY/MM/DD":return"".concat(t,"/").concat(r,"/").concat(i);case"DD-MM-YYYY":return"".concat(i,"-").concat(r,"-").concat(t);case"MM/DD/YYYY":return"".concat(r,"/").concat(i,"/").concat(t);default:return"".concat(t,"-").concat(r,"-").concat(i)}},Da=function(e,n){var t,r,i,o,a,s,l;if(!e)return null;try{switch(n){case"YYYY/MM/DD":a=(t=e.split("/").map(Number))[0],s=t[1],l=t[2];break;case"DD-MM-YYYY":l=(r=e.split("-").map(Number))[0],s=r[1],a=r[2];break;case"MM/DD/YYYY":s=(i=e.split("/").map(Number))[0],l=i[1],a=i[2];break;default:a=(o=e.split("-").map(Number))[0],s=o[1],l=o[2]}if(isNaN(a)||isNaN(s)||isNaN(l))return null;var c=new Date(a,s-1,l);return c.getFullYear()!==a||c.getMonth()!==s-1||c.getDate()!==l?null:c}catch(e){return null}},Ha=function(e,n){return new Date(e,n+1,0).getDate()},Pa=function(e,n){return!(!e||!n)&&(e.getFullYear()===n.getFullYear()&&e.getMonth()===n.getMonth()&&e.getDate()===n.getDate())},za=function(e,n){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),r=new Date(n.getFullYear(),n.getMonth(),n.getDate());return t.getTime()<r.getTime()},Va=function(t){var r=t.size,i=void 0===r?"middle":r,o=t.value,a=t.defaultValue,s=t.onChange,l=t.placeholder,c=void 0===l?["开始日期","结束日期"]:l,d=t.disabled,u=void 0!==d&&d,f=t.readOnly,m=void 0!==f&&f,v=t.className,x=void 0===v?"":v,b=t.style,y=t.width,C=void 0===y?"auto":y,w=t.format,_=void 0===w?"YYYY-MM-DD":w,E=t.allowClear,N=void 0===E||E,S=t.disabledDate,T=t.disabledDates,O=t.label,L=t.labelGap,A=void 0===L?8:L,k=t.labelClassName,M=void 0===k?"":k,I=t.labelStyle,j=t.onOpenChange,R=t.open,H=t.showOk,P=void 0===H||H,z=t.separator,V=n.useState(a),B=V[0],U=V[1],F=n.useState(!1),Y=F[0],$=F[1],G=n.useState("start"),W=G[0],K=G[1],Z=n.useState(!1),X=Z[0],q=Z[1],J=n.useState({top:0,left:0,width:0}),Q=J[0],ee=J[1],ne=n.useState(!1),te=ne[0],re=ne[1],ie=n.useRef(null),oe=n.useRef(null),ae=void 0!==o,se=ae?o:B,le=void 0!==R?R:Y,ce=(null==se?void 0:se[0])||"",de=(null==se?void 0:se[1])||"",ue=n.useMemo(function(){return Da(ce,_)},[ce,_]),pe=n.useMemo(function(){return Da(de,_)},[de,_]),fe=n.useState(ue||new Date),he=fe[0],ge=fe[1],me=n.useState(function(){if(pe)return pe;if(ue){var e=new Date(ue);return e.setMonth(e.getMonth()+1),e}var n=new Date;return n.setMonth(n.getMonth()+1),n}),ve=me[0],xe=me[1];n.useEffect(function(){ue&&ge(ue),pe&&xe(pe)},[ue,pe]);var be=n.useCallback(function(){if(ie.current){var e=ie.current.getBoundingClientRect(),n=Math.max(e.width,560),t=window.innerHeight-e.bottom,r=e.bottom+window.scrollY+4,i=e.left+window.scrollX;t<360&&e.top>360&&(r=e.top+window.scrollY-360-4);var o=window.innerWidth;i+n>o&&(i=o-n-16),ee({top:r,left:i,width:n})}},[]);n.useEffect(function(){if(le&&oe.current&&ie.current){return re(!1),requestAnimationFrame(function(){var e=ie.current.getBoundingClientRect(),n=oe.current.offsetHeight;if(window.innerHeight-e.bottom<360&&e.top>360){var t=e.top+window.scrollY-n-4;ee(function(e){return g(g({},e),{top:t})})}re(!0)}),function(){re(!1)}}},[le]),n.useEffect(function(){var e=function(e){ie.current&&!ie.current.contains(e.target)&&oe.current&&!oe.current.contains(e.target)&&(void 0===R&&$(!1),null==j||j(!1),q(!1))};return le&&(document.addEventListener("mousedown",e),be(),window.addEventListener("scroll",be,!0),window.addEventListener("resize",be)),function(){document.removeEventListener("mousedown",e),window.removeEventListener("scroll",be,!0),window.removeEventListener("resize",be)}},[le,R,j,be]);var ye=n.useCallback(function(e,n){var t=[0===e?n:(null==se?void 0:se[0])||"",1===e?n:(null==se?void 0:se[1])||""];ae||U(t),null==s||s(t)},[ae,s,se]),Ce=function(e){u||m||(K(e),void 0===R&&$(!0),null==j||j(!0),q(!0))},we=function(){void 0===R&&$(!1),null==j||j(!1),q(!1)},_e=n.useCallback(function(e){if(S&&S(e))return!0;if(T&&T.length>0){var n=Ra(e,_);return T.includes(n)}return!1},[S,T,_]),Ee=function(e){for(var n=e.getFullYear(),t=e.getMonth(),r=Ha(n,t),i=function(e,n){return new Date(e,n,1).getDay()}(n,t),o=Ha(n,t-1),a=[],s=i-1;s>=0;s--)a.push({date:new Date(n,t-1,o-s),isCurrentMonth:!1});for(s=1;s<=r;s++)a.push({date:new Date(n,t,s),isCurrentMonth:!0});var l=42-a.length;for(s=1;s<=l;s++)a.push({date:new Date(n,t+1,s),isCurrentMonth:!1});return a},Ne=function(n){var t=n.viewDate,r=n.onPrevMonth,i=n.onNextMonth,o=n.label,a=t.getFullYear(),s=t.getMonth();return e.jsxs("div",{className:"idp-datepicker-range-calendar-header",children:[e.jsx("div",{className:"idp-datepicker-range-header-left",children:e.jsx("button",{className:"idp-datepicker-range-header-btn",onClick:r,title:"上个月",children:e.jsx(D,{type:"arrowLeft",size:14,color:"var(--idp-text-color-secondary)"})})}),e.jsxs("div",{className:"idp-datepicker-range-header-center",children:[e.jsxs("span",{children:[a,"年 ",["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"][s]]}),e.jsx("span",{className:"idp-datepicker-range-header-label",children:o})]}),e.jsx("div",{className:"idp-datepicker-range-header-right",children:e.jsx("button",{className:"idp-datepicker-range-header-btn",onClick:i,title:"下个月",children:e.jsx(D,{type:"arrowRight",size:14,color:"var(--idp-text-color-secondary)"})})})]})},Se=function(t){var r=t.viewDate,i=t.onPrevMonth,o=t.onNextMonth,a=t.label,s=n.useMemo(function(){return Ee(r)},[r]);return e.jsxs("div",{className:"idp-datepicker-range-calendar",children:[e.jsx(Ne,{viewDate:r,onPrevMonth:i,onNextMonth:o,label:a}),e.jsxs("div",{className:"idp-datepicker-range-calendar-body",children:[e.jsx("div",{className:"idp-datepicker-range-week-header",children:["日","一","二","三","四","五","六"].map(function(n){return e.jsx("div",{className:"idp-datepicker-range-week-day",children:n},n)})}),e.jsx("div",{className:"idp-datepicker-range-date-grid",children:s.map(function(n,t){var r=n.date,i=n.isCurrentMonth,o=Pa(r,"start"===W?ue:pe),a=function(e){var n=new Date;return Pa(e,n)}(r),s=_e(r),l=function(e){return!(!ue||!pe)&&za(ue,e)&&za(e,pe)}(r),c=function(e){return Pa(e,ue)}(r),d=function(e){return Pa(e,pe)}(r);return e.jsx("div",{className:p.default("idp-datepicker-range-date-cell",{"idp-datepicker-range-date-cell--selected":o,"idp-datepicker-range-date-cell--today":a&&!o,"idp-datepicker-range-date-cell--disabled":s,"idp-datepicker-range-date-cell--other-month":!i,"idp-datepicker-range-date-cell--in-range":l&&!c&&!d,"idp-datepicker-range-date-cell--range-start":c,"idp-datepicker-range-date-cell--range-end":d}),onClick:function(){return function(e){if(!_e(e)){var n=Ra(e,_);"start"===W?(ye(0,n),pe&&za(pe,e)&&ye(1,""),K("end")):(ue&&za(e,ue)?(ye(0,n),ye(1,ce)):ye(1,n),P||we())}}(r)},children:r.getDate()},t)})})]})]})},Te=g({width:"number"==typeof C?"".concat(C,"px"):C},b),Oe=g({marginRight:"number"==typeof A?"".concat(A,"px"):A},I),Le=ce||de,Ae={"idp-datepicker-range-picker-trigger--small":"small"===i,"idp-datepicker-range-picker-trigger--middle":"middle"===i,"idp-datepicker-range-picker-trigger--large":"large"===i};return e.jsxs("div",{className:p.default("idp-datepicker-range-picker",x,{"idp-datepicker-range-picker-with-label":O}),style:Te,children:[O&&e.jsx("span",{className:p.default("idp-datepicker-range-picker-label",M),style:Oe,children:O}),e.jsxs("div",{ref:ie,className:p.default("idp-datepicker-range-picker-trigger",Ae,{"idp-datepicker-range-picker-trigger--focused":X,"idp-datepicker-range-picker-trigger--disabled":u}),children:[e.jsx("div",{className:p.default("idp-datepicker-range-picker-input",{"idp-datepicker-range-picker-input--active":"start"===W&&le}),onClick:function(){return Ce("start")},children:e.jsx("span",{className:p.default("idp-datepicker-range-picker-value",{"idp-datepicker-range-picker-value--placeholder":!ce}),children:ce||c[0]})}),e.jsx("span",{className:"idp-datepicker-range-picker-separator",children:z||e.jsx(D,{type:"arrow-right",size:"small"})}),e.jsx("div",{className:p.default("idp-datepicker-range-picker-input",{"idp-datepicker-range-picker-input--active":"end"===W&&le}),onClick:function(){return Ce("end")},children:e.jsx("span",{className:p.default("idp-datepicker-range-picker-value",{"idp-datepicker-range-picker-value--placeholder":!de}),children:de||c[1]})}),e.jsxs("span",{className:"idp-datepicker-range-picker-suffix",children:[N&&Le&&!u&&!m&&e.jsx("span",{className:"idp-datepicker-range-picker-clear",onClick:function(e){e.stopPropagation(),ae||U(void 0),null==s||s(["",""])},children:e.jsx(D,{type:"close",size:"small"})}),e.jsx(D,{type:"calendar",size:"small",className:p.default("idp-datepicker-range-picker-icon",{"idp-datepicker-range-picker-icon--has-clear":N&&Le&&!u&&!m})})]})]}),function(){if(!le)return null;var n=e.jsxs("div",{ref:oe,className:"idp-datepicker-range-dropdown",style:{position:"fixed",top:Q.top,left:Q.left,minWidth:Q.width||("number"==typeof C?C:parseInt(C,10)||280),zIndex:999,opacity:te?1:0,transition:"opacity 0.15s ease"},children:[e.jsxs("div",{className:"idp-datepicker-range-panels",children:[e.jsx(Se,{viewDate:he,onPrevMonth:function(){var e=new Date(he);e.setMonth(e.getMonth()-1),ge(e)},onNextMonth:function(){var e=new Date(he);e.setMonth(e.getMonth()+1),ge(e)},label:"开始日期"}),e.jsx(Se,{viewDate:ve,onPrevMonth:function(){var e=new Date(ve);e.setMonth(e.getMonth()-1),xe(e)},onNextMonth:function(){var e=new Date(ve);e.setMonth(e.getMonth()+1),xe(e)},label:"结束日期"})]}),P&&e.jsxs("div",{className:"idp-datepicker-range-footer",children:[e.jsx("div",{className:"idp-datepicker-range-footer-spacer"}),e.jsx("div",{className:"idp-datepicker-range-footer-actions",children:e.jsx("button",{className:"idp-datepicker-range-btn idp-datepicker-range-btn--primary",onClick:we,children:"确定"})})]})]});return h.default.createPortal(n,document.body)}()]})},Ba=f.default.div.withConfig({shouldForwardProp:function(e){return!["width","minWidth"].includes(e)}})(es||(es=y(["\n display: inline-block;\n position: relative;\n font-size: 14px;\n font-family: inherit;\n width: ",";\n min-width: ",";\n"],["\n display: inline-block;\n position: relative;\n font-size: 14px;\n font-family: inherit;\n width: ",";\n min-width: ",";\n"])),function(e){return"number"==typeof e.width?"".concat(e.width,"px"):e.width||"auto"},function(e){return e.minWidth?"number"==typeof e.minWidth?"".concat(e.minWidth,"px"):e.minWidth:"0px"}),Ua=f.default.div.withConfig({shouldForwardProp:function(e){return!["focused"].includes(e)}})(ns||(ns=y(["\n display: flex;\n align-items: center;\n width: 100%;\n min-height: ",";\n height: auto;\n padding: ",";\n border: 1px solid ",";\n border-radius: var(--idp-border-radius-sm);\n background-color: ",";\n cursor: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: var(--idp-primary-color);\n box-shadow: var(--idp-input-box-shadow-focus);\n }\n"],["\n display: flex;\n align-items: center;\n width: 100%;\n min-height: ",";\n height: auto;\n padding: ",";\n border: 1px solid ",";\n border-radius: var(--idp-border-radius-sm);\n background-color: ",";\n cursor: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: var(--idp-primary-color);\n box-shadow: var(--idp-input-box-shadow-focus);\n }\n"])),function(e){switch(e.size){case"small":return"24px";case"large":return"40px";default:return"32px"}},function(e){switch(e.size){case"small":return"1px 12px";case"large":return"3px 12px";default:return"2px 12px"}},function(e){return e.disabled?"var(--idp-border-color-extra-light)":e.focused?"var(--idp-primary-color)":"var(--idp-border-color-extra-light)"},function(e){return e.disabled?"var(--idp-bg-color-light)":"var(--idp-bg-color-white)"},function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.disabled?"var(--idp-border-color-extra-light)":"var(--idp-primary-color)"}),Fa=f.default.span.withConfig({shouldForwardProp:function(e){return!["isPlaceholder"].includes(e)}})(ts||(ts=y(["\n flex: 1;\n color: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 14px;\n\n /* 多选模式下的 tags 布局 */\n &.idp-datepicker-value--tags {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n align-items: center;\n overflow: visible;\n white-space: normal;\n padding: 2px 0;\n }\n"],["\n flex: 1;\n color: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 14px;\n\n /* 多选模式下的 tags 布局 */\n &.idp-datepicker-value--tags {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n align-items: center;\n overflow: visible;\n white-space: normal;\n padding: 2px 0;\n }\n"])),function(e){return e.disabled?"var(--idp-text-color-tertiary)":e.isPlaceholder?"var(--idp-text-color-light)":"var(--idp-text-color)"}),Ya=f.default.span(rs||(rs=y(["\n display: flex;\n align-items: center;\n margin-left: 8px;\n color: var(--idp-text-color-light);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n position: relative;\n width: 16px;\n height: 16px;\n"],["\n display: flex;\n align-items: center;\n margin-left: 8px;\n color: var(--idp-text-color-light);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n position: relative;\n width: 16px;\n height: 16px;\n"]))),$a=f.default.span(is||(is=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n color: var(--idp-text-color-tertiary);\n cursor: pointer;\n border-radius: 50%;\n background-color: transparent;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n opacity: 0;\n visibility: hidden;\n z-index: 2;\n\n &:hover {\n color: var(--idp-text-color);\n background-color: var(--idp-bg-color-light);\n }\n\n & > * {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n color: var(--idp-text-color-tertiary);\n cursor: pointer;\n border-radius: 50%;\n background-color: transparent;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n opacity: 0;\n visibility: hidden;\n z-index: 2;\n\n &:hover {\n color: var(--idp-text-color);\n background-color: var(--idp-bg-color-light);\n }\n\n & > * {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"]))),Ga=f.default.span(os||(os=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 14px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n opacity: 1;\n visibility: visible;\n z-index: 1;\n width: 16px;\n height: 16px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 14px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n opacity: 1;\n visibility: visible;\n z-index: 1;\n width: 16px;\n height: 16px;\n"]))),Wa=f.default.div.withConfig({shouldForwardProp:function(e){return!["top","left","minWidth"].includes(e)}})(as||(as=y(["\n position: fixed;\n top: ","px;\n left: ","px;\n z-index: 999;\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n box-shadow: var(--idp-shadow-lg);\n overflow: hidden;\n min-width: ",";\n"],["\n position: fixed;\n top: ","px;\n left: ","px;\n z-index: 999;\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n box-shadow: var(--idp-shadow-lg);\n overflow: hidden;\n min-width: ",";\n"])),function(e){return e.top},function(e){return e.left},function(e){return e.minWidth?"".concat(e.minWidth,"px"):"280px"}),Ka=f.default.div(ss||(ss=y(["\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n"],["\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n"]))),Za=f.default.div(ls||(ls=y(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n border-bottom: 1px solid var(--idp-border-color-light);\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n border-bottom: 1px solid var(--idp-border-color-light);\n"]))),Xa=f.default.div(cs||(cs=y(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),qa=f.default.div(ds||(ds=y(["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n color: var(--idp-text-color);\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n color: var(--idp-text-color);\n"]))),Ja=f.default.div(us||(us=y(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),Qa=f.default.button(ps||(ps=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n border: none;\n background-color: transparent;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: var(--idp-text-color-secondary);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not(:disabled) {\n background-color: var(--idp-bg-color-light);\n color: var(--idp-primary-color);\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n border: none;\n background-color: transparent;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: var(--idp-text-color-secondary);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not(:disabled) {\n background-color: var(--idp-bg-color-light);\n color: var(--idp-primary-color);\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"])));f.default.select(fs||(fs=y(["\n border: none;\n background-color: transparent;\n font-size: 14px;\n font-weight: 500;\n color: var(--idp-text-color);\n cursor: pointer;\n padding: 2px 4px;\n border-radius: var(--idp-border-radius-sm);\n\n &:hover {\n background-color: var(--idp-bg-color-light);\n }\n\n &:focus {\n outline: none;\n background-color: var(--idp-bg-color-light);\n }\n"],["\n border: none;\n background-color: transparent;\n font-size: 14px;\n font-weight: 500;\n color: var(--idp-text-color);\n cursor: pointer;\n padding: 2px 4px;\n border-radius: var(--idp-border-radius-sm);\n\n &:hover {\n background-color: var(--idp-bg-color-light);\n }\n\n &:focus {\n outline: none;\n background-color: var(--idp-bg-color-light);\n }\n"])));var es,ns,ts,rs,is,os,as,ss,ls,cs,ds,us,ps,fs,hs,gs,ms,vs,xs,bs,ys,Cs,ws,_s,Es,Ns,Ss,Ts,Os,Ls,As,ks,Ms,Is,js,Rs,Ds,Hs,Ps,zs,Vs,Bs,Us,Fs,Ys,$s,Gs,Ws,Ks,Zs,Xs,qs,Js,Qs,el,nl,tl,rl,il,ol,al,sl,ll=f.default.div(hs||(hs=y(["\n padding: 12px 16px;\n"],["\n padding: 12px 16px;\n"]))),cl=f.default.div(gs||(gs=y(["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 0;\n margin-bottom: 8px;\n"],["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 0;\n margin-bottom: 8px;\n"]))),dl=f.default.div(ms||(ms=y(["\n text-align: center;\n font-size: 12px;\n color: var(--idp-text-color-tertiary);\n padding: 8px 0;\n font-weight: 500;\n"],["\n text-align: center;\n font-size: 12px;\n color: var(--idp-text-color-tertiary);\n padding: 8px 0;\n font-weight: 500;\n"]))),ul=f.default.div(vs||(vs=y(["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 4px;\n"],["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 4px;\n"]))),pl=f.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isInSelectedSet","isToday","isCurrentMonth"].includes(e)}})(xs||(xs=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n font-size: 13px;\n cursor: ",";\n border-radius: var(--idp-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n font-size: 13px;\n cursor: ",";\n border-radius: var(--idp-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"])),function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.disabled?"var(--idp-text-color-light)":e.isSelected?"#fff":e.isInSelectedSet||e.isToday?"var(--idp-primary-color)":e.isCurrentMonth?"var(--idp-text-color)":"var(--idp-text-color-light)"},function(e){return e.isSelected?"var(--idp-primary-color)":e.isInSelectedSet?"var(--idp-primary-light-color, rgba(24, 100, 240, 0.1))":"transparent"},function(e){return e.isToday||e.isSelected||e.isInSelectedSet?"500":"normal"},function(e){return e.isSelected?"var(--idp-primary-hover-color)":e.isInSelectedSet?"var(--idp-primary-light-hover-color, rgba(24, 100, 240, 0.2))":"var(--idp-bg-color-light)"},function(e){return e.isToday&&!e.isSelected&&"\n border: 1px solid var(--idp-primary-color);\n "}),fl=f.default.div(bs||(bs=y(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px;\n border-top: 1px solid var(--idp-border-color-light);\n gap: 8px;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px;\n border-top: 1px solid var(--idp-border-color-light);\n gap: 8px;\n"]))),hl=f.default.div(ys||(ys=y(["\n flex: 1;\n"],["\n flex: 1;\n"]))),gl=f.default.div(Cs||(Cs=y(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),ml=f.default.button.withConfig({shouldForwardProp:function(e){return!["variant"].includes(e)}})(ws||(ws=y(["\n padding: 4px 12px;\n font-size: 13px;\n border-radius: var(--idp-border-radius-sm);\n cursor: pointer;\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n border: 1px solid ",";\n background-color: ",";\n color: ",";\n\n &:hover:not(:disabled) {\n border-color: var(--idp-primary-color);\n ","\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"],["\n padding: 4px 12px;\n font-size: 13px;\n border-radius: var(--idp-border-radius-sm);\n cursor: pointer;\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n border: 1px solid ",";\n background-color: ",";\n color: ",";\n\n &:hover:not(:disabled) {\n border-color: var(--idp-primary-color);\n ","\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"])),function(e){return"primary"===e.variant?"var(--idp-primary-color)":"var(--idp-border-color-extra-light)"},function(e){return"primary"===e.variant?"var(--idp-primary-color)":"var(--idp-bg-color-white)"},function(e){return"primary"===e.variant?"#fff":"var(--idp-text-color)"},function(e){return"primary"===e.variant?"background-color: var(--idp-primary-hover-color);":"color: var(--idp-primary-color);"}),vl=f.default.div.withConfig({shouldForwardProp:function(e){return!["gap"].includes(e)}})(_s||(_s=y(["\n display: flex;\n align-items: center;\n gap: ",";\n"],["\n display: flex;\n align-items: center;\n gap: ",";\n"])),function(e){return"number"==typeof e.gap?"".concat(e.gap,"px"):e.gap||"8px"}),xl=f.default.label(Es||(Es=y(["\n font-size: 14px;\n color: var(--idp-text-color);\n white-space: nowrap;\n user-select: none;\n"],["\n font-size: 14px;\n color: var(--idp-text-color);\n white-space: nowrap;\n user-select: none;\n"]))),bl=f.default.div(Ns||(Ns=y(["\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n min-width: 280px;\n"],["\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n min-width: 280px;\n"]))),yl=f.default.div(Ss||(Ss=y(["\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 8px;\n padding: 16px;\n"],["\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 8px;\n padding: 16px;\n"]))),Cl=f.default.div(Ts||(Ts=y(["\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n min-width: 280px;\n"],["\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n min-width: 280px;\n"]))),wl=f.default.div(Os||(Os=y(["\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 8px;\n padding: 16px;\n"],["\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 8px;\n padding: 16px;\n"]))),_l=f.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isInSelectedSet","isCurrentMonth"].includes(e)}})(Ls||(Ls=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 40px;\n font-size: 14px;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 40px;\n font-size: 14px;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"])),function(e){return e.isSelected?"#fff":e.isInSelectedSet||e.isCurrentMonth?"var(--idp-primary-color)":"var(--idp-text-color)"},function(e){return e.isSelected?"var(--idp-primary-color)":e.isInSelectedSet?"var(--idp-primary-light-color, rgba(24, 100, 240, 0.1))":"transparent"},function(e){return e.isCurrentMonth||e.isSelected||e.isInSelectedSet?"500":"normal"},function(e){return e.isSelected?"var(--idp-primary-hover-color)":e.isInSelectedSet?"var(--idp-primary-light-hover-color, rgba(24, 100, 240, 0.2))":"var(--idp-bg-color-light)"},function(e){return e.isCurrentMonth&&!e.isSelected&&!e.isInSelectedSet&&"\n border: 1px solid var(--idp-primary-color);\n "}),El=f.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isInSelectedSet","isCurrentYear"].includes(e)}})(As||(As=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 40px;\n font-size: 14px;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 40px;\n font-size: 14px;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"])),function(e){return e.isSelected?"#fff":e.isInSelectedSet||e.isCurrentYear?"var(--idp-primary-color)":"var(--idp-text-color)"},function(e){return e.isSelected?"var(--idp-primary-color)":e.isInSelectedSet?"var(--idp-primary-light-color, rgba(24, 100, 240, 0.1))":"transparent"},function(e){return e.isCurrentYear||e.isSelected||e.isInSelectedSet?"500":"normal"},function(e){return e.isSelected?"var(--idp-primary-hover-color)":e.isInSelectedSet?"var(--idp-primary-light-hover-color, rgba(24, 100, 240, 0.2))":"var(--idp-bg-color-light)"},function(e){return e.isCurrentYear&&!e.isSelected&&!e.isInSelectedSet&&"\n border: 1px solid var(--idp-primary-color);\n "}),Nl=f.default.div(ks||(ks=y(["\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n min-width: 280px;\n"],["\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n min-width: 280px;\n"]))),Sl=f.default.div(Ms||(Ms=y(["\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 8px;\n padding: 16px;\n"],["\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 8px;\n padding: 16px;\n"]))),Tl=f.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isInSelectedSet","isCurrentQuarter"].includes(e)}})(Is||(Is=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 48px;\n font-size: 14px;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 48px;\n font-size: 14px;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"])),function(e){return e.isSelected?"#fff":e.isInSelectedSet||e.isCurrentQuarter?"var(--idp-primary-color)":"var(--idp-text-color)"},function(e){return e.isSelected?"var(--idp-primary-color)":e.isInSelectedSet?"var(--idp-primary-light-color, rgba(24, 100, 240, 0.1))":"transparent"},function(e){return e.isCurrentQuarter||e.isSelected||e.isInSelectedSet?"500":"normal"},function(e){return e.isSelected?"var(--idp-primary-hover-color)":e.isInSelectedSet?"var(--idp-primary-light-hover-color, rgba(24, 100, 240, 0.2))":"var(--idp-bg-color-light)"},function(e){return e.isCurrentQuarter&&!e.isSelected&&!e.isInSelectedSet&&"\n border: 1px solid var(--idp-primary-color);\n "});f.default.div(js||(js=y(["\n display: inline-block;\n position: relative;\n font-size: 14px;\n font-family: inherit;\n width: ",";\n"],["\n display: inline-block;\n position: relative;\n font-size: 14px;\n font-family: inherit;\n width: ",";\n"])),function(e){return"number"==typeof e.width?"".concat(e.width,"px"):e.width||"auto"}),f.default.div.withConfig({shouldForwardProp:function(e){return!["focused","size","disabled"].includes(e)}})(Rs||(Rs=y(["\n display: flex;\n align-items: center;\n width: 100%;\n min-height: ",";\n height: auto;\n padding: ",";\n border: 1px solid ",";\n border-radius: var(--idp-border-radius-sm);\n background-color: ",";\n cursor: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: var(--idp-primary-color);\n box-shadow: var(--idp-input-box-shadow-focus);\n }\n"],["\n display: flex;\n align-items: center;\n width: 100%;\n min-height: ",";\n height: auto;\n padding: ",";\n border: 1px solid ",";\n border-radius: var(--idp-border-radius-sm);\n background-color: ",";\n cursor: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: var(--idp-primary-color);\n box-shadow: var(--idp-input-box-shadow-focus);\n }\n"])),function(e){switch(e.size){case"small":return"24px";case"large":return"40px";default:return"32px"}},function(e){switch(e.size){case"small":return"1px 12px";case"large":return"3px 12px";default:return"2px 12px"}},function(e){return e.disabled?"var(--idp-border-color-extra-light)":e.focused?"var(--idp-primary-color)":"var(--idp-border-color-extra-light)"},function(e){return e.disabled?"var(--idp-bg-color-light)":"var(--idp-bg-color-white)"},function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.disabled?"var(--idp-border-color-extra-light)":"var(--idp-primary-color)"}),f.default.div.withConfig({shouldForwardProp:function(e){return!["active"].includes(e)}})(Ds||(Ds=y(["\n flex: 1;\n padding: 4px 8px;\n text-align: center;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n ","\n\n &:hover {\n background-color: var(--idp-bg-color-light);\n }\n"],["\n flex: 1;\n padding: 4px 8px;\n text-align: center;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n ","\n\n &:hover {\n background-color: var(--idp-bg-color-light);\n }\n"])),function(e){return e.active&&"\n background-color: var(--idp-primary-light-color, rgba(24, 100, 240, 0.1));\n "}),f.default.span.withConfig({shouldForwardProp:function(e){return!["isPlaceholder"].includes(e)}})(Hs||(Hs=y(["\n color: ",";\n font-size: 14px;\n"],["\n color: ",";\n font-size: 14px;\n"])),function(e){return e.isPlaceholder?"var(--idp-text-color-light)":"var(--idp-text-color)"}),f.default.span(Ps||(Ps=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 8px;\n color: var(--idp-text-color-light);\n font-size: 14px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 8px;\n color: var(--idp-text-color-light);\n font-size: 14px;\n"]))),f.default.span(zs||(zs=y(["\n display: flex;\n align-items: center;\n margin-left: 8px;\n color: var(--idp-text-color-light);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n position: relative;\n width: 16px;\n height: 16px;\n"],["\n display: flex;\n align-items: center;\n margin-left: 8px;\n color: var(--idp-text-color-light);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n position: relative;\n width: 16px;\n height: 16px;\n"]))),f.default.span(Vs||(Vs=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n color: var(--idp-text-color-tertiary);\n cursor: pointer;\n border-radius: 50%;\n background-color: transparent;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n opacity: 0;\n visibility: hidden;\n z-index: 2;\n\n &:hover {\n color: var(--idp-text-color);\n background-color: var(--idp-bg-color-light);\n }\n\n & > * {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n color: var(--idp-text-color-tertiary);\n cursor: pointer;\n border-radius: 50%;\n background-color: transparent;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n opacity: 0;\n visibility: hidden;\n z-index: 2;\n\n &:hover {\n color: var(--idp-text-color);\n background-color: var(--idp-bg-color-light);\n }\n\n & > * {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"]))),f.default.span(Bs||(Bs=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 14px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n opacity: 1;\n visibility: visible;\n z-index: 1;\n width: 16px;\n height: 16px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 14px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n opacity: 1;\n visibility: visible;\n z-index: 1;\n width: 16px;\n height: 16px;\n"]))),f.default.div.withConfig({shouldForwardProp:function(e){return!["top","left"].includes(e)}})(Us||(Us=y(["\n position: fixed;\n top: ","px;\n left: ","px;\n z-index: 999;\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n box-shadow: var(--idp-shadow-lg);\n overflow: hidden;\n min-width: 560px;\n"],["\n position: fixed;\n top: ","px;\n left: ","px;\n z-index: 999;\n background-color: var(--idp-bg-color-white);\n border-radius: var(--idp-border-radius-md);\n box-shadow: var(--idp-shadow-lg);\n overflow: hidden;\n min-width: 560px;\n"])),function(e){return e.top},function(e){return e.left}),f.default.div(Fs||(Fs=y(["\n display: flex;\n gap: 16px;\n padding: 16px;\n"],["\n display: flex;\n gap: 16px;\n padding: 16px;\n"]))),f.default.div(Ys||(Ys=y(["\n flex: 1;\n min-width: 252px;\n"],["\n flex: 1;\n min-width: 252px;\n"]))),f.default.div($s||($s=y(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 8px 0;\n margin-bottom: 8px;\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 8px 0;\n margin-bottom: 8px;\n"]))),f.default.div(Gs||(Gs=y(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),f.default.div(Ws||(Ws=y(["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n color: var(--idp-text-color);\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n font-weight: 500;\n color: var(--idp-text-color);\n"]))),f.default.div(Ks||(Ks=y(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),f.default.button(Zs||(Zs=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n border: none;\n background-color: transparent;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: var(--idp-text-color-secondary);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not(:disabled) {\n background-color: var(--idp-bg-color-light);\n color: var(--idp-primary-color);\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n border: none;\n background-color: transparent;\n cursor: pointer;\n border-radius: var(--idp-border-radius-sm);\n color: var(--idp-text-color-secondary);\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not(:disabled) {\n background-color: var(--idp-bg-color-light);\n color: var(--idp-primary-color);\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"]))),f.default.span(Xs||(Xs=y(["\n font-size: 12px;\n color: var(--idp-text-color-tertiary);\n margin-left: 8px;\n"],["\n font-size: 12px;\n color: var(--idp-text-color-tertiary);\n margin-left: 8px;\n"]))),f.default.div(qs||(qs=y(["\n padding: 8px 0;\n"],["\n padding: 8px 0;\n"]))),f.default.div(Js||(Js=y(["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 0;\n margin-bottom: 4px;\n"],["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 0;\n margin-bottom: 4px;\n"]))),f.default.div(Qs||(Qs=y(["\n text-align: center;\n font-size: 12px;\n color: var(--idp-text-color-tertiary);\n padding: 4px 0;\n font-weight: 500;\n"],["\n text-align: center;\n font-size: 12px;\n color: var(--idp-text-color-tertiary);\n padding: 4px 0;\n font-weight: 500;\n"]))),f.default.div(el||(el=y(["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 4px;\n"],["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 4px;\n"]))),f.default.div.withConfig({shouldForwardProp:function(e){return!["isSelected","isToday","isCurrentMonth","isInRange","isRangeStart","isRangeEnd","disabled"].includes(e)}})(nl||(nl=y(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 28px;\n font-size: 13px;\n cursor: ",";\n border-radius: ",";\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 28px;\n font-size: 13px;\n cursor: ",";\n border-radius: ",";\n color: ",";\n background-color: ",";\n font-weight: ",";\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n\n &:hover:not([disabled]) {\n background-color: ",";\n }\n\n ","\n"])),function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.isRangeStart?"4px 0 0 4px":e.isRangeEnd?"0 4px 4px 0":e.isInRange?"0":"var(--idp-border-radius-sm)"},function(e){return e.disabled?"var(--idp-text-color-light)":e.isSelected?"#fff":e.isCurrentMonth?"var(--idp-text-color)":"var(--idp-text-color-light)"},function(e){return e.isSelected?"var(--idp-primary-color)":e.isInRange?"var(--idp-primary-light-color, rgba(24, 100, 240, 0.1))":"transparent"},function(e){return e.isToday||e.isSelected?"500":"normal"},function(e){return e.isSelected?"var(--idp-primary-hover-color)":"var(--idp-bg-color-light)"},function(e){return e.isToday&&!e.isSelected&&!e.isInRange&&"\n border: 1px solid var(--idp-primary-color);\n "}),f.default.div(tl||(tl=y(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 16px;\n border-top: 1px solid var(--idp-border-color-light);\n gap: 8px;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 16px;\n border-top: 1px solid var(--idp-border-color-light);\n gap: 8px;\n"]))),f.default.div(rl||(rl=y(["\n flex: 1;\n"],["\n flex: 1;\n"]))),f.default.div(il||(il=y(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),f.default.button.withConfig({shouldForwardProp:function(e){return!["variant"].includes(e)}})(ol||(ol=y(["\n padding: 4px 12px;\n font-size: 13px;\n border-radius: var(--idp-border-radius-sm);\n cursor: pointer;\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n border: 1px solid ",";\n background-color: ",";\n color: ",";\n\n &:hover:not(:disabled) {\n border-color: var(--idp-primary-color);\n ","\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"],["\n padding: 4px 12px;\n font-size: 13px;\n border-radius: var(--idp-border-radius-sm);\n cursor: pointer;\n transition: all var(--idp-transition-duration) var(--idp-transition-timing-function);\n border: 1px solid ",";\n background-color: ",";\n color: ",";\n\n &:hover:not(:disabled) {\n border-color: var(--idp-primary-color);\n ","\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n"])),function(e){return"primary"===e.variant?"var(--idp-primary-color)":"var(--idp-border-color-extra-light)"},function(e){return"primary"===e.variant?"var(--idp-primary-color)":"var(--idp-bg-color-white)"},function(e){return"primary"===e.variant?"#fff":"var(--idp-text-color)"},function(e){return"primary"===e.variant?"background-color: var(--idp-primary-hover-color);":"color: var(--idp-primary-color);"}),f.default.div.withConfig({shouldForwardProp:function(e){return!["gap"].includes(e)}})(al||(al=y(["\n display: flex;\n align-items: center;\n gap: ",";\n"],["\n display: flex;\n align-items: center;\n gap: ",";\n"])),function(e){return"number"==typeof e.gap?"".concat(e.gap,"px"):e.gap||"8px"}),f.default.label(sl||(sl=y(["\n font-size: 14px;\n color: var(--idp-text-color);\n white-space: nowrap;\n user-select: none;\n"],["\n font-size: 14px;\n color: var(--idp-text-color);\n white-space: nowrap;\n user-select: none;\n"])));var Ol=function(e,n){if(!e)return"";var t=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0");switch(n){case"YYYY/MM/DD":return"".concat(t,"/").concat(r,"/").concat(i);case"DD-MM-YYYY":return"".concat(i,"-").concat(r,"-").concat(t);case"MM/DD/YYYY":return"".concat(r,"/").concat(i,"/").concat(t);default:return"".concat(t,"-").concat(r,"-").concat(i)}},Ll=function(e,n){return new Date(e,n+1,0).getDate()},Al=function(e,n){return!(!e||!n)&&(e.getFullYear()===n.getFullYear()&&e.getMonth()===n.getMonth()&&e.getDate()===n.getDate())},kl=function(t){var r=t.currentYear,i=t.startYear,o=t.onYearSelect,a=t.onBack,s=t.onPrevPage,l=t.onNextPage,c=n.useMemo(function(){for(var e=[],n=0;n<12;n++)e.push(i+n);return e},[i]),d=(new Date).getFullYear(),u=i+11;return e.jsxs(bl,{children:[e.jsxs(Za,{children:[e.jsx(Xa,{children:e.jsx(Qa,{onClick:s,title:"上一页",children:e.jsx(D,{type:"arrowLeft",size:14,color:"var(--idp-text-color-secondary)"})})}),e.jsx(qa,{children:e.jsxs("span",{style:{cursor:"pointer"},onClick:a,children:[i," - ",u]})}),e.jsx(Ja,{children:e.jsx(Qa,{onClick:l,title:"下一页",children:e.jsx(D,{type:"arrowRight",size:14,color:"var(--idp-text-color-secondary)"})})})]}),e.jsx(yl,{children:c.map(function(n){return e.jsx(El,{isSelected:n===r,isCurrentYear:n===d,onClick:function(){return o(n)},children:n},n)})})]})},Ml=function(t){var r=t.currentMonth,i=t.onMonthSelect,o=t.onBack,a=n.useMemo(function(){return["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},[]),s=(new Date).getMonth();return e.jsxs(Cl,{children:[e.jsxs(Za,{children:[e.jsx(Xa,{children:e.jsx(Qa,{onClick:o,title:"返回",children:e.jsx(D,{type:"arrowLeft",size:14,color:"var(--idp-text-color-secondary)"})})}),e.jsx(qa,{children:e.jsx("span",{style:{cursor:"pointer"},onClick:o,children:"选择月份"})}),e.jsx(Ja,{})]}),e.jsx(wl,{children:a.map(function(n,t){return e.jsx(_l,{isSelected:t===r,isCurrentMonth:t===s,onClick:function(){return i(t)},children:n},t)})})]})},Il=function(n){var t=n.currentMonth,r=n.onPrevMonth,i=n.onNextMonth,o=n.onYearClick,a=n.onMonthClick,s=t.getFullYear(),l=t.getMonth();return e.jsxs(Za,{children:[e.jsx(Xa,{children:e.jsx(Qa,{onClick:r,title:"上个月",children:e.jsx(D,{type:"arrowLeft",size:14,color:"var(--idp-text-color-secondary)"})})}),e.jsxs(qa,{children:[e.jsxs("span",{style:{cursor:"pointer",fontWeight:500},onClick:o,children:[s,"年"]}),e.jsx("span",{style:{cursor:"pointer",fontWeight:500},onClick:a,children:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"][l]})]}),e.jsx(Ja,{children:e.jsx(Qa,{onClick:i,title:"下个月",children:e.jsx(D,{type:"arrowRight",size:14,color:"var(--idp-text-color-secondary)"})})})]})},jl=function(t){var r=t.value,i=t.selectedValues,o=void 0===i?[]:i,a=t.onChange,s=t.format,l=t.disabledDate,c=t.disabledDates,d=t.showToday,u=void 0===d||d,f=t.showOk,h=void 0===f||f,g=t.onToday,m=t.onOk,v=t.showTime,x=t.onHasSelectedDateChange,b=n.useMemo(function(){return function(e,n){var t,r,i,o;if(!e)return null;var a,s,l,c=e.split(" ")[0];try{switch(n){case"YYYY/MM/DD":a=(t=c.split("/").map(Number))[0],s=t[1],l=t[2];break;case"DD-MM-YYYY":l=(r=c.split("-").map(Number))[0],s=r[1],a=r[2];break;case"MM/DD/YYYY":s=(i=c.split("/").map(Number))[0],l=i[1],a=i[2];break;default:a=(o=c.split("-").map(Number))[0],s=o[1],l=o[2]}if(isNaN(a)||isNaN(s)||isNaN(l))return null;var d=new Date(a,s-1,l);return d.getFullYear()!==a||d.getMonth()!==s-1||d.getDate()!==l?null:d}catch(e){return null}}(r,s)},[r,s]),y=n.useMemo(function(){return new Set(o)},[o]),C=n.useState(b||new Date),w=C[0],_=C[1],E=n.useState("calendar"),N=E[0],S=E[1],T=function(e){return 12*Math.floor(e/12)},O=n.useState(T((b||new Date).getFullYear())),L=O[0],A=O[1];n.useEffect(function(){b&&_(b)},[b]);var k=function(e){if(!e||!v)return{hour:0,minute:0,second:0};var n=e.split(" ");if(n.length>1){var t=n[1].split(":");return{hour:parseInt(t[0],10)||0,minute:parseInt(t[1],10)||0,second:parseInt(t[2],10)||0}}return{hour:0,minute:0,second:0}},M=k(r),I=n.useState(M),j=I[0],R=I[1];n.useEffect(function(){R(k(r))},[r]);var D=n.useMemo(function(){for(var e=w.getFullYear(),n=w.getMonth(),t=Ll(e,n),r=function(e,n){return new Date(e,n,1).getDay()}(e,n),i=Ll(e,n-1),o=[],a=r-1;a>=0;a--)o.push({date:new Date(e,n-1,i-a),isCurrentMonth:!1});for(a=1;a<=t;a++)o.push({date:new Date(e,n,a),isCurrentMonth:!0});var s=42-o.length;for(a=1;a<=s;a++)o.push({date:new Date(e,n+1,a),isCurrentMonth:!1});return o},[w]),H=n.useCallback(function(e){if(l&&l(e))return!0;if(c&&c.length>0){var n=Ol(e,s);return c.includes(n)}return!1},[l,c,s]),P=!!b;n.useEffect(function(){null==x||x(P)},[P,x]);return"year"===N?e.jsx(kl,{currentYear:w.getFullYear(),startYear:L,onYearSelect:function(e){var n=new Date(w);n.setFullYear(e),_(n),S("month")},onBack:function(){return S("calendar")},onPrevPage:function(){return A(function(e){return e-12})},onNextPage:function(){return A(function(e){return e+12})}}):"month"===N?e.jsx(Ml,{currentMonth:w.getMonth(),onMonthSelect:function(e){var n=new Date(w);n.setMonth(e),_(n),S("calendar")},onBack:function(){return S("calendar")}}):e.jsxs(Ka,{children:[e.jsxs("div",{className:p.default("idp-datepicker-content",{"idp-datepicker-content-with-time":v&&P}),children:[e.jsxs("div",{className:"idp-datepicker-calendar-section",children:[e.jsx(Il,{currentMonth:w,onPrevMonth:function(){var e=new Date(w);e.setMonth(e.getMonth()-1),_(e)},onNextMonth:function(){var e=new Date(w);e.setMonth(e.getMonth()+1),_(e)},onYearClick:function(){A(T(w.getFullYear())),S("year")},onMonthClick:function(){S("month")}}),e.jsxs(ll,{children:[e.jsx(cl,{children:["日","一","二","三","四","五","六"].map(function(n){return e.jsx(dl,{children:n},n)})}),e.jsx(ul,{children:D.map(function(n,t){var r=n.date,i=n.isCurrentMonth,o=Ol(r,s),l=Al(r,b),c=y.has(o),d=function(e){var n=new Date;return Al(e,n)}(r),u=H(r);return e.jsx(pl,{isSelected:l,isInSelectedSet:c,isToday:d,disabled:u,isCurrentMonth:i,onClick:function(){return function(e){if(!H(e)){var n=Ol(e,s);if(v){var t=P?"".concat(String(j.hour).padStart(2,"0"),":").concat(String(j.minute).padStart(2,"0"),":").concat(String(j.second).padStart(2,"0")):"00:00:00";null==a||a("".concat(n," ").concat(t))}else null==a||a(n)}}(r)},children:r.getDate()},t)})})]})]}),v&&P&&e.jsxs("div",{className:"idp-datepicker-time-section",children:[e.jsxs("div",{className:"idp-datepicker-time-header",children:[String(j.hour).padStart(2,"0"),":",String(j.minute).padStart(2,"0"),":",String(j.second).padStart(2,"0")]}),e.jsx(Ma,{value:"".concat(String(j.hour).padStart(2,"0"),":").concat(String(j.minute).padStart(2,"0"),":").concat(String(j.second).padStart(2,"0")),onChange:function(e){if(b){var n=e.split(":").map(Number),t=n[0],r=n[1],i=n[2];R({hour:t,minute:r,second:i});var o=Ol(b,s);null==a||a("".concat(o," ").concat(e))}},format:"HH:mm:ss",hourStep:1,minuteStep:1,secondStep:1,showNow:!1,showOk:!1})]})]}),(u||h)&&e.jsxs(fl,{children:[u?e.jsx(ml,{onClick:function(){var e=new Date;if(_(e),v){var n="".concat(String(e.getHours()).padStart(2,"0"),":").concat(String(e.getMinutes()).padStart(2,"0"),":").concat(String(e.getSeconds()).padStart(2,"0"));null==a||a("".concat(Ol(e,s)," ").concat(n))}else null==a||a(Ol(e,s));null==g||g()},children:"今天"}):e.jsx(hl,{}),h&&e.jsx(gl,{children:e.jsx(ml,{variant:"primary",onClick:m,children:"确定"})})]})]})},Rl=function(t){var r=t.size,i=void 0===r?"middle":r,o=t.value,a=t.defaultValue,s=t.onChange,l=t.placeholder,c=void 0===l?"请选择日期":l,d=t.disabled,u=void 0!==d&&d,f=t.readOnly,m=void 0!==f&&f,v=t.className,x=void 0===v?"":v,y=t.style,C=t.width,w=void 0===C?160:C,_=t.format,E=void 0===_?"YYYY-MM-DD":_,N=t.allowClear,S=void 0===N||N,T=t.disabledDate,O=t.disabledDates,L=t.label,A=t.labelGap,k=void 0===A?8:A,M=t.labelClassName,I=void 0===M?"":M,j=t.labelStyle,R=t.onOpenChange,H=t.open,P=t.showToday,z=void 0===P||P,V=t.showOk,B=void 0===V||V,U=t.picker,F=void 0===U?"date":U,Y=t.multiple,$=void 0!==Y&&Y,G=t.maxTagCount,W=t.maxTagDisplayCount,K=t.separator,Z=void 0===K?",":K,X=t.showTime,q=void 0!==X&&X,J=n.useState(a),Q=J[0],ee=J[1],ne=n.useState(!1),te=ne[0],re=ne[1],ie=n.useState(!1),oe=ie[0],ae=ie[1],se=n.useState({top:0,left:0,width:0}),le=se[0],ce=se[1],de=n.useState(!1),ue=de[0],pe=de[1],fe=n.useState(!1),he=fe[0],ge=fe[1],me=n.useRef(null),ve=n.useRef(null),xe=void 0!==o,be=xe?o:Q,ye=n.useMemo(function(){return be?be.split(Z).filter(function(e){return e.trim()}):[]},[be,Z]),Ce=n.useCallback(function(e){return ye.includes(e)},[ye]),we=n.useCallback(function(e){return Ce(e)?ye.filter(function(n){return n!==e}).join(Z):void 0!==G&&ye.length>=G?ye.join(Z):b(b([],ye,!0),[e],!1).join(Z)},[ye,Ce,Z,G]),_e=void 0!==H?H:te,Ee=n.useCallback(function(){if(me.current){var e=me.current.getBoundingClientRect(),n=q&&he?480:280,t=Math.max(e.width,n),r=window.innerHeight-e.bottom,i=e.bottom+window.scrollY+4,o=e.left+window.scrollX;r<360&&e.top>360&&(i=e.top+window.scrollY-360-4);var a=window.innerWidth;o+t>a&&(o=a-t-16),ce({top:i,left:o,width:t})}},[q,he]);n.useEffect(function(){if(_e&&ve.current&&me.current){return pe(!1),requestAnimationFrame(function(){var e=me.current.getBoundingClientRect(),n=ve.current.offsetHeight;if(window.innerHeight-e.bottom<360&&e.top>360){var t=e.top+window.scrollY-n-4;ce(function(e){return g(g({},e),{top:t})})}pe(!0)}),function(){pe(!1)}}},[_e]),n.useEffect(function(){var e=function(e){me.current&&!me.current.contains(e.target)&&ve.current&&!ve.current.contains(e.target)&&(void 0===H&&re(!1),null==R||R(!1),ae(!1))};return _e&&(document.addEventListener("mousedown",e),Ee(),window.addEventListener("scroll",Ee,!0),window.addEventListener("resize",Ee)),function(){document.removeEventListener("mousedown",e),window.removeEventListener("scroll",Ee,!0),window.removeEventListener("resize",Ee)}},[_e,H,R,Ee]);var Ne=function(){if(!u&&!m){var e=!_e;void 0===H&&re(e),null==R||R(e),ae(e)}},Se=function(e){var n;n=$?we(e):e,xe||ee(n),null==s||s(n),$||B||(void 0===H&&re(!1),null==R||R(!1),ae(!1))},Te=function(e){e.stopPropagation(),xe||ee(void 0),null==s||s("")},Oe=function(){void 0===H&&re(!1),null==R||R(!1),ae(!1)},Le=function(){var t,r,i=function(e){if(!e)return null;var n=e.match(/^(\d{4})-(\d{2})$/);return n?{year:parseInt(n[1],10),month:parseInt(n[2],10)-1}:null}(be),o=new Date,a=n.useState(null!==(t=null==i?void 0:i.year)&&void 0!==t?t:o.getFullYear()),l=a[0],c=a[1],d=null!==(r=null==i?void 0:i.month)&&void 0!==r?r:null,u=n.useMemo(function(){return["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},[]),p=o.getMonth(),f=o.getFullYear(),h=n.useMemo(function(){return $?new Set(ye.filter(function(e){return e.match(/^\d{4}-\d{2}$/)})):new Set},[ye,$]),g=function(e){var n="".concat(l,"-").concat(String(e+1).padStart(2,"0"));return h.has(n)};return e.jsxs(Cl,{children:[e.jsxs(Za,{children:[e.jsx(Xa,{children:e.jsx(Qa,{onClick:function(){return c(function(e){return e-1})},title:"上一年",children:e.jsx(D,{type:"arrowLeft",size:14,color:"var(--idp-text-color-secondary)"})})}),e.jsx(qa,{children:e.jsxs("span",{children:[l,"年"]})}),e.jsx(Ja,{children:e.jsx(Qa,{onClick:function(){return c(function(e){return e+1})},title:"下一年",children:e.jsx(D,{type:"arrowRight",size:14,color:"var(--idp-text-color-secondary)"})})})]}),e.jsx(wl,{children:u.map(function(n,t){var r=$?g(t):t===d&&l===(null==i?void 0:i.year),o=$&&g(t)&&!(t===d&&l===(null==i?void 0:i.year));return e.jsx(_l,{isSelected:r,isInSelectedSet:o,isCurrentMonth:t===p&&l===f,onClick:function(){return function(e){var n="".concat(l,"-").concat(String(e+1).padStart(2,"0"));if($){var t=we(n);xe||ee(t),null==s||s(t)}else xe||ee(n),null==s||s(n),B||Oe()}(t)},children:n},t)})}),B&&e.jsxs(fl,{children:[e.jsx(hl,{}),e.jsx(gl,{children:e.jsx(ml,{variant:"primary",onClick:Oe,children:"确定"})})]})]})},Ae=function(){var t,r,i=function(e){if(!e)return null;var n=e.match(/^(\d{4})-Q(\d)$/);return n?{year:parseInt(n[1],10),quarter:parseInt(n[2],10)}:null}(be),o=new Date,a=n.useState(null!==(t=null==i?void 0:i.year)&&void 0!==t?t:o.getFullYear()),l=a[0],c=a[1],d=null!==(r=null==i?void 0:i.quarter)&&void 0!==r?r:null,u=o.getMonth(),p=Math.floor(u/3)+1,f=o.getFullYear(),h=n.useMemo(function(){return $?new Set(ye.filter(function(e){return e.match(/^\d{4}-Q\d$/)})):new Set},[ye,$]),g=function(e){var n="".concat(l,"-Q").concat(e);return h.has(n)};return e.jsxs(Nl,{children:[e.jsxs(Za,{children:[e.jsx(Xa,{children:e.jsx(Qa,{onClick:function(){return c(function(e){return e-1})},title:"上一年",children:e.jsx(D,{type:"arrowLeft",size:14,color:"var(--idp-text-color-secondary)"})})}),e.jsx(qa,{children:e.jsxs("span",{children:[l,"年"]})}),e.jsx(Ja,{children:e.jsx(Qa,{onClick:function(){return c(function(e){return e+1})},title:"下一年",children:e.jsx(D,{type:"arrowRight",size:14,color:"var(--idp-text-color-secondary)"})})})]}),e.jsx(Sl,{children:["Q1","Q2","Q3","Q4"].map(function(n,t){var r=t+1,o=l===f&&r===p,a=$?g(r):r===d&&l===(null==i?void 0:i.year),c=$&&g(r)&&!(r===d&&l===(null==i?void 0:i.year));return e.jsx(Tl,{isSelected:a,isInSelectedSet:c,isCurrentQuarter:o,onClick:function(){return function(e,n){var t="".concat(e,"-Q").concat(n);if($){var r=we(t);xe||ee(r),null==s||s(r)}else xe||ee(t),null==s||s(t),B||Oe()}(l,r)},children:n},n)})}),B&&e.jsxs(fl,{children:[e.jsx(hl,{}),e.jsx(gl,{children:e.jsx(ml,{variant:"primary",onClick:Oe,children:"确定"})})]})]})},ke=function(){var t,r=function(e){if(!e)return null;var n=e.match(/^(\d{4})$/);return n?parseInt(n[1],10):null}(be),i=(new Date).getFullYear(),o=n.useState((t=null!=r?r:i,12*Math.floor(t/12))),a=o[0],l=o[1],c=n.useMemo(function(){for(var e=[],n=0;n<12;n++)e.push(a+n);return e},[a]),d=n.useMemo(function(){return $?new Set(ye.filter(function(e){return e.match(/^\d{4}$/)})):new Set},[ye,$]);return e.jsxs(bl,{children:[e.jsxs(Za,{children:[e.jsx(Xa,{children:e.jsx(Qa,{onClick:function(){return l(function(e){return e-12})},title:"上一页",children:e.jsx(D,{type:"arrowLeft",size:14,color:"var(--idp-text-color-secondary)"})})}),e.jsx(qa,{children:e.jsxs("span",{children:[a," - ",a+11]})}),e.jsx(Ja,{children:e.jsx(Qa,{onClick:function(){return l(function(e){return e+12})},title:"下一页",children:e.jsx(D,{type:"arrowRight",size:14,color:"var(--idp-text-color-secondary)"})})})]}),e.jsx(yl,{children:c.map(function(n){var t=$?d.has(String(n)):n===r,o=$&&d.has(String(n))&&n!==r;return e.jsx(El,{isSelected:t,isInSelectedSet:o,isCurrentYear:n===i,onClick:function(){return function(e){var n=String(e);if($){var t=we(n);xe||ee(t),null==s||s(t)}else xe||ee(n),null==s||s(n),B||Oe()}(n)},children:n},n)})}),B&&e.jsxs(fl,{children:[e.jsx(hl,{}),e.jsx(gl,{children:e.jsx(ml,{variant:"primary",onClick:Oe,children:"确定"})})]})]})},Me=n.useCallback(function(e){return function(n){n.stopPropagation();var t=ye.filter(function(n){return n!==e}).join(Z);xe||ee(t||void 0),null==s||s(t)}},[ye,Z,xe,s]),Ie=function(){var t,r,o,a=n.useMemo(function(){return be||""},[be]);return e.jsxs(Ua,{ref:me,focused:oe,disabled:u,size:i,className:p.default("idp-datepicker-trigger","idp-datepicker-trigger--".concat(i),{"idp-datepicker-trigger--disabled":u,"idp-datepicker-trigger--focused":oe,"idp-datepicker-trigger--multiple":$},x),style:y,onClick:Ne,children:[$&&ye.length>0?e.jsx(Fa,{isPlaceholder:!1,disabled:u,className:p.default("idp-datepicker-value","idp-datepicker-value--tags",{"idp-datepicker-value--disabled":u}),children:(t=void 0!==W&&W>0,r=t?ye.slice(0,W):ye,o=t?ye.length-W:0,e.jsxs(e.Fragment,{children:[r.map(function(n,t){return e.jsx(Ta,{size:"small",closable:!u,onClose:Me(n),className:"idp-datepicker-tag",children:n},"".concat(n,"-").concat(t))}),o>0&&e.jsxs(Ta,{size:"small",className:"idp-datepicker-tag idp-datepicker-tag--more",children:["...+",o]},"more")]}))}):e.jsx(Fa,{isPlaceholder:!be,disabled:u,className:p.default("idp-datepicker-value",{"idp-datepicker-value--placeholder":!be,"idp-datepicker-value--disabled":u}),children:a||c}),e.jsxs(Ya,{className:"idp-datepicker-suffix",children:[S&&be&&!u&&e.jsx($a,{className:"idp-datepicker-clear",onClick:Te,children:e.jsx(D,{type:"close",style:{fontSize:10}})}),e.jsx(Ga,{className:p.default("idp-datepicker-icon",{"has-clear":S&&be&&!u}),children:e.jsx(D,{type:"calendar",style:{fontSize:14}})})]})]})},je=function(){switch(F){case"month":return e.jsx(Le,{});case"quarter":return e.jsx(Ae,{});case"year":return e.jsx(ke,{});default:return e.jsx(jl,{value:be,selectedValues:ye,onChange:Se,format:E,disabledDate:T,disabledDates:O,showToday:z,showOk:B,showTime:q,onToday:function(){B||Oe()},onOk:Oe,onHasSelectedDateChange:ge})}},Re=function(){if(!_e)return null;var n=e.jsx(Wa,{ref:ve,top:le.top,left:le.left,minWidth:le.width||(q&&he?480:280),className:"idp-datepicker-dropdown",style:{opacity:ue?1:0,transition:"opacity 0.15s ease"},children:je()});return h.default.createPortal(n,document.body)},De=$?"auto":w;return L?e.jsxs(vl,{gap:k,className:"idp-datepicker-with-label",children:["string"==typeof L?e.jsx(xl,{className:p.default("idp-datepicker-label",I),style:j,children:L}):L,e.jsxs(Ba,{width:De,minWidth:$?w:void 0,className:"idp-datepicker",children:[Ie(),Re()]})]}):e.jsxs(Ba,{width:De,minWidth:$?w:void 0,className:"idp-datepicker",children:[Ie(),Re()]})};Rl.RangePicker=Va;var Dl=Rl,Hl=function(n){var t=n.className;return e.jsx("span",{className:t,children:e.jsx("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor",children:e.jsx("path",{d:"M12 4V2A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8z"})})})},Pl=function(){return e.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"currentColor",children:e.jsx("path",{d:"M8 5l8 7-8 7V5z"})})},zl=function(n){var t=n.expanded;return e.jsx("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor",children:t?e.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"}):e.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"})})},Vl=function(){return e.jsxs("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor",children:[e.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),e.jsx("polyline",{points:"14 2 14 8 20 8",stroke:"currentColor",strokeWidth:"2",fill:"none"})]})},Bl=function(){return e.jsx("svg",{viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",opacity:"0.3",children:e.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"})})},Ul=function(e,n){return e.children&&0!==e.children.length?e.children.every(function(e){return Ul(e,n)}):n.includes(e.key)},Fl=function(e,n){if(!e.children||0===e.children.length)return n.includes(e.key);var t=e.children.map(function(e){return{key:e.key,allChecked:Ul(e,n),someChecked:Fl(e,n)}}),r=t.some(function(e){return e.allChecked||e.someChecked}),i=t.every(function(e){return e.allChecked});return r&&!i},Yl=function(e,n){for(var t=0,r=e;t<r.length;t++){var i=r[t];if(i.key===n)return i;if(i.children){var o=Yl(i.children,n);if(o)return o}}return null},$l=function(e){return e.reduce(function(e,n){return e.push(n.key),n.children&&e.push.apply(e,$l(n.children)),e},[])},Gl=function(e,n){for(var t=0,r=e;t<r.length;t++){var i=r[t];if(i.children){if(i.children.some(function(e){return e.key===n}))return i;var o=Gl(i.children,n);if(o)return o}}return null},Wl=function(e,n,t){var r;if(null===n)return e.push.apply(e,t),!0;for(var i=0,o=e;i<o.length;i++){var a=o[i];if(a.key===n)return a.children||(a.children=[]),(r=a.children).push.apply(r,t),!0;if(a.children)if(Wl(a.children,n,t))return!0}return!1},Kl=function(e,n){var t=e.findIndex(function(e){return e.key===n});if(-1!==t)return e.splice(t,1),!0;for(var r=0,i=e;r<i.length;r++){var o=i[r];if(o.children)if(Kl(o.children,n))return!0}return!1},Zl=function(e,n,t){for(var r=0,i=e;r<i.length;r++){var o=i[r];if(o.key===n)return Object.assign(o,t),!0;if(o.children)if(Zl(o.children,n,t))return!0}return!1},Xl=function(e,n,t){return e.reduce(function(e,r){var i=t(n,r),o=r.children?Xl(r.children,n,t):[];return(i||o.length>0)&&e.push(g(g({},r),{children:o.length>0?o:void 0})),e},[])},ql=n.memo(function(t){var r=t.node,i=t.level,o=t.expanded,a=t.selected,s=t.checked,l=t.halfChecked,c=t.loading,d=t.isLeaf,u=t.showIcon,p=t.showLine,f=t.checkable,h=t.draggable,m=t.checkStrictly,v=t.expandedKeys,x=t.selectedKeys,b=t.checkedKeys,y=t.motionDuration,C=t.prefixCls,w=t.renderNode,_=t.addable,E=t.removable,N=t.editable,S=t.actionDisplayMode,T=t.onAddNode,O=t.onRemoveNode,L=t.onEditNode,A=t.editingNodeKey,k=t.editValue,M=t.onEditChange,I=t.onEditConfirm,j=t.onEditCancel,R=t.onExpand,D=t.onSelect,H=t.onCheck,P=t.onNodeMount,z=t.onDrop,V=t.dragEndCounter,B=t.tooltip,U=n.useState(!1),F=U[0],Y=U[1],$=n.useState(null),G=$[0],W=$[1],K=n.useState(!1),Z=K[0],X=K[1],q=n.useRef(null),J=n.useRef(null);n.useEffect(function(){void 0!==V&&V>0&&(Y(!1),W(null))},[V]);var Q=n.useCallback(function(e){q.current=e,P&&P(r.key,e)},[P,r.key]),ee=Boolean(r.children&&r.children.length>0),ne=void 0!==r.children,te=v.includes(r.key),re=r.disabled,ie=h&&!re,oe=void 0!==r.isLeaf?r.isLeaf:!ne,ae=n.useCallback(function(e){e.stopPropagation(),oe||c||R(r.key,e)},[oe,c,r.key,R]),se=n.useCallback(function(e){e.stopPropagation(),re||r.disableCheckbox||H(r.key,e)},[re,r.disableCheckbox,r.key,H]),le=n.useCallback(function(e){re||(f?se(e):D(r.key,e))},[re,f,r.key,D,se]),ce=n.useCallback(function(e){if(ie){e.stopPropagation(),e.dataTransfer.setData("text/plain",String(r.key)),e.dataTransfer.effectAllowed="move";var n=document.createElement("div");n.style.cssText="\n position: absolute;\n top: -1000px;\n left: -1000px;\n padding: 4px 8px;\n background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);\n color: white;\n border-radius: 4px;\n font-size: 14px;\n font-family: inherit;\n white-space: nowrap;\n max-width: 200px;\n overflow: hidden;\n text-overflow: ellipsis;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n z-index: 9999;\n pointer-events: none;\n ";var t="string"==typeof r.title?r.title:String(r.title);n.textContent=t,document.body.appendChild(n),e.dataTransfer.setDragImage(n,10,10),setTimeout(function(){document.body.removeChild(n)},0)}},[ie,r.key,r.title]),de=n.useCallback(function(){Y(!1),W(null)},[]),ue=n.useCallback(function(e){var n;if(ie){e.preventDefault(),e.dataTransfer.dropEffect="move";var t=e.target,r=q.current;if(r&&t&&r.contains(t)){var i=r.querySelector(".".concat(C,"-child-tree"));if(i&&i.contains(t))return}var o=null===(n=q.current)||void 0===n?void 0:n.getBoundingClientRect();if(o){var a=e.clientY-o.top,s=o.height;W(oe?a<s/2?"before":"after":a<s/3?"before":a>2*s/3?"after":"inside"),Y(!0)}}},[ie,oe,C]),pe=n.useCallback(function(){Y(!1),W(null)},[]),fe=n.useCallback(function(e){e.preventDefault(),e.stopPropagation(),Y(!1),W(null);var n=e.dataTransfer.getData("text/plain");n&&n!==String(r.key)&&z&&G&&z(n,r.key,G)},[r.key,G,z]),he=A===r.key,ge=["".concat(C,"-treenode"),"".concat(C,"-treenode-ellipsis"),a&&"".concat(C,"-node-selected"),re&&"".concat(C,"-treenode-disabled"),ie&&"".concat(C,"-treenode-draggable"),F&&"".concat(C,"-treenode-drag-over"),F&&G&&"".concat(C,"-treenode-drop-target"),oe&&"".concat(C,"-treenode-leaf"),p&&"".concat(C,"-line")].filter(Boolean).join(" "),me=["".concat(C,"-node-content-wrapper"),a&&"".concat(C,"-node-selected")].filter(Boolean).join(" ");return e.jsxs("div",{ref:Q,className:ge,draggable:ie,onDragStart:ce,onDragEnd:de,onDragOver:ue,onDragLeave:pe,onDrop:fe,"data-drop-position":G,children:[function(){if(0===i)return null;for(var n=[],t=0;t<i;t++)n.push(e.jsx("span",{className:"".concat(C,"-indent")},t));return n}(),p&&i>0&&e.jsx("span",{className:"".concat(C,"-line-point")}),function(){if(c)return e.jsx("span",{className:"".concat(C,"-switcher"),children:e.jsx(Hl,{className:"".concat(C,"-loading-icon")})});if(oe)return e.jsx("span",{className:"".concat(C,"-switcher ").concat(C,"-switcher-spaced"),style:{visibility:"hidden"}});var n=["".concat(C,"-switcher"),"".concat(C,te?"-switcher-open":"-switcher-close")].join(" ");return e.jsx("span",{className:n,onClick:ae,children:e.jsx(Pl,{})})}(),function(){if(!f)return null;var n=["".concat(C,"-checkbox"),s&&!l&&"".concat(C,"-checkbox-checked"),l&&"".concat(C,"-checkbox-indeterminate"),(re||r.disableCheckbox)&&"".concat(C,"-checkbox-disabled")].filter(Boolean).join(" ");return e.jsx("span",{className:n,onClick:se})}(),!u||w?null:r.icon?e.jsx("span",{className:"".concat(C,"-icon"),children:r.icon}):e.jsx("span",{className:"".concat(C,"-icon"),children:d?e.jsx(Vl,{}):e.jsx(zl,{expanded:te})}),e.jsx("span",{className:me,onClick:le,children:function(){var n,t="".concat(C,"-title"),i=void 0!==r.tooltip?"boolean"==typeof r.tooltip?r.tooltip?{title:r.title}:null:g(g({},r.tooltip),{title:r.tooltip.title||r.title}):void 0!==B?"boolean"==typeof B?B?{title:r.title}:null:g(g({},B),{title:B.title||r.title}):null,o=w?e.jsx("span",{className:t,children:w(r)}):he?e.jsx("span",{className:t,children:e.jsx("input",{type:"text",value:k||"",onChange:function(e){return null==M?void 0:M(e.target.value)},onKeyDown:function(e){"Enter"===e.key?null==I||I():"Escape"===e.key&&(null==j||j())},onBlur:function(){return null==I?void 0:I()},autoFocus:!0,className:"".concat(C,"-title-input"),style:{border:"1px solid #1890ff",borderRadius:"2px",padding:"0 4px",fontSize:"inherit",fontFamily:"inherit",outline:"none",width:"auto",minWidth:"60px"}})}):e.jsx("span",{className:t,children:r.title});return i&&!he?e.jsx(_t,{title:i.title||r.title,placement:i.placement||"top",trigger:i.trigger||"hover",delay:null!==(n=i.delay)&&void 0!==n?n:100,backgroundColor:i.backgroundColor,style:i.style,className:i.className,children:o}):o}()}),function(){if(!_&&!E&&!N)return null;if(he)return null;var n="dropdown"===S,t=function(e){null==e||e.stopPropagation(),null==T||T(r),n&&X(!1)},i=function(e){null==e||e.stopPropagation(),null==O||O(r),n&&X(!1)},o=function(e){null==e||e.stopPropagation(),null==L||L(r),n&&X(!1)};if(n)return e.jsxs("span",{className:"".concat(C,"-actions ").concat(C,"-actions-dropdown"),ref:J,onMouseEnter:function(){return X(!0)},onMouseLeave:function(){return X(!1)},children:[e.jsx("button",{className:"".concat(C,"-action-trigger"),title:"操作",onClick:function(e){return e.stopPropagation()},children:"⋮"}),Z&&e.jsxs("div",{className:"".concat(C,"-action-menu"),children:[_&&e.jsxs("div",{className:"".concat(C,"-action-menu-item ").concat(C,"-action-menu-add"),onClick:t,children:[e.jsx("span",{className:"".concat(C,"-action-menu-icon"),children:"+"}),e.jsx("span",{children:"添加子节点"})]}),N&&e.jsxs("div",{className:"".concat(C,"-action-menu-item ").concat(C,"-action-menu-edit"),onClick:o,children:[e.jsx("span",{className:"".concat(C,"-action-menu-icon"),children:"✎"}),e.jsx("span",{children:"编辑"})]}),E&&e.jsxs("div",{className:"".concat(C,"-action-menu-item ").concat(C,"-action-menu-remove"),onClick:i,children:[e.jsx("span",{className:"".concat(C,"-action-menu-icon"),children:"×"}),e.jsx("span",{children:"删除"})]})]})]});var a={padding:"0 4px",marginLeft:"4px",fontSize:"12px",cursor:"pointer",background:"transparent",border:"none",color:"#1890ff",transition:"opacity 0.2s"};return e.jsxs("span",{className:"".concat(C,"-actions"),style:{marginLeft:"auto",display:"flex",alignItems:"center"},children:[_&&e.jsx("button",{onClick:t,style:a,title:"添加子节点",className:"".concat(C,"-action-btn ").concat(C,"-action-add"),children:"+"}),N&&e.jsx("button",{onClick:o,style:a,title:"编辑",className:"".concat(C,"-action-btn ").concat(C,"-action-edit"),children:"✎"}),E&&e.jsx("button",{onClick:i,style:g(g({},a),{color:"#ff4d4f"}),title:"删除",className:"".concat(C,"-action-btn ").concat(C,"-action-remove"),children:"×"})]})}(),!oe&&e.jsx("div",{className:["".concat(C,"-child-tree"),te&&"".concat(C,"-child-tree-expand")].filter(Boolean).join(" "),children:e.jsx("div",{children:ee?r.children.map(function(n,t){return e.jsx(ql,{node:n,level:i+1,expanded:o,selected:x.includes(n.key),checked:b.includes(n.key),halfChecked:Fl(n,b),loading:n.loading||!1,isLeaf:!n.children||0===n.children.length,showIcon:u,showLine:p,checkable:f,draggable:h,checkStrictly:m,expandedKeys:v,selectedKeys:x,checkedKeys:b,motionDuration:y,prefixCls:C,renderNode:w,addable:_,removable:E,editable:N,actionDisplayMode:S,onAddNode:T,onRemoveNode:O,onEditNode:L,editingNodeKey:A,editValue:k,onEditChange:M,onEditConfirm:I,onEditCancel:j,onExpand:R,onSelect:D,onCheck:H,onNodeMount:P,onDrop:z,dragEndCounter:V,tooltip:B},"".concat(n.key,"-").concat(t))}):e.jsx("div",{className:"".concat(C,"-empty-drop-zone"),style:{minHeight:"4px",width:"100%"}})})})]})});ql.displayName="TreeNodeComponent";var Jl=n.forwardRef(function(t,r){var i=t.treeData,o=void 0===i?[]:i,a=t.defaultExpandedKeys,s=void 0===a?[]:a,l=t.expandedKeys,c=t.onExpand,d=t.defaultSelectedKeys,u=void 0===d?[]:d,p=t.selectedKeys,f=t.onSelect,h=t.defaultCheckedKeys,m=void 0===h?[]:h,v=t.checkedKeys,x=t.onCheck,y=t.checkable,C=void 0!==y&&y,w=t.checkStrictly,_=void 0!==w&&w,E=t.multiple,N=void 0!==E&&E,S=t.showSearch,T=void 0!==S&&S,O=t.filterOption,L=t.showLine,A=void 0!==L&&L,k=t.showIndent,M=void 0!==k&&k,I=t.showIcon,j=void 0===I||I,R=t.loadData,D=t.motionDuration,H=void 0===D?200:D,P=t.draggable,z=void 0!==P&&P,V=t.renderNode,B=t.addable,U=void 0!==B&&B,F=t.removable,Y=void 0!==F&&F,$=t.editable,G=void 0!==$&&$,W=t.actionDisplayMode,K=void 0===W?"inline":W,Z=t.onAddNode,X=t.onRemoveNode,q=t.onEditNode,J=t.prefixCls,Q=void 0===J?"idp-tree":J,ee=t.className,ne=void 0===ee?"":ee,te=t.style,re=void 0===te?{}:te,ie=t.disabled,oe=void 0!==ie&&ie,ae=t.defaultExpandAll,se=void 0!==ae&&ae,le=t.tooltip,ce=t.onDrop,de=n.useState(o),ue=de[0],pe=de[1],fe=n.useRef(o);n.useEffect(function(){fe.current!==o&&(fe.current=o,pe(o))},[o]);var he=n.useState(function(){if(se){var e=function(n){return n.reduce(function(n,t){return t.children&&t.children.length>0&&n.push.apply(n,b([t.key],e(t.children),!1)),n},[])};return e(o)}return s}),ge=he[0],me=he[1],ve=n.useState(u),xe=ve[0],be=ve[1],ye=n.useState(m),Ce=ye[0],we=ye[1],_e=n.useState([]),Ee=_e[0],Ne=_e[1],Se=n.useState(""),Te=Se[0],Oe=Se[1],Le=n.useState(null),Ae=Le[0],ke=Le[1],Me=n.useState(""),Ie=Me[0],je=Me[1],Re=n.useState(0),De=Re[0],He=Re[1],Pe=n.useRef(new Map),ze=n.useRef(null),Ve=n.useCallback(function(e){if(Z){var n=Z(e);if(n){var t=Array.isArray(n)?n:[n];pe(function(n){var r=b([],n,!0);return Wl(r,e.key,t),ge.includes(e.key)||me(function(n){return b(b([],n,!0),[e.key],!1)}),r})}}},[Z,ge]),Be=n.useCallback(function(e){X?X(e)&&pe(function(n){var t=b([],n,!0);return Kl(t,e.key),me(function(n){return n.filter(function(n){return n!==e.key})}),be(function(n){return n.filter(function(n){return n!==e.key})}),we(function(n){return n.filter(function(n){return n!==e.key})}),Pe.current.delete(e.key),t}):pe(function(n){var t=b([],n,!0);return Kl(t,e.key),me(function(n){return n.filter(function(n){return n!==e.key})}),be(function(n){return n.filter(function(n){return n!==e.key})}),we(function(n){return n.filter(function(n){return n!==e.key})}),Pe.current.delete(e.key),t})},[X]),Ue=n.useCallback(function(e){ke(e.key),je(String(e.title||""))},[]),Fe=n.useCallback(function(e){je(e)},[]),Ye=n.useCallback(function(){if(null!==Ae){if(q){var e=Yl(ue,Ae);if(e){var n=q(e,Ie),t=void 0!==n?n:Ie;pe(function(e){var n=b([],e,!0);return Zl(n,Ae,{title:t}),n})}}else pe(function(e){var n=b([],e,!0);return Zl(n,Ae,{title:Ie}),n});ke(null),je("")}},[Ae,Ie,q,ue]),$e=n.useCallback(function(){ke(null),je("")},[]);n.useImperativeHandle(r,function(){return{scrollTo:function(e){var n=Pe.current.get(e);n&&ze.current&&n.scrollIntoView({behavior:"smooth",block:"center"})},addNode:function(e,n){pe(function(t){var r=b([],t,!0),i=Array.isArray(n)?n:[n];return Wl(r,e,i),r})},removeNode:function(e){var n=!1;return pe(function(t){var r=b([],t,!0);return(n=Kl(r,e))&&(me(function(n){return n.filter(function(n){return n!==e})}),be(function(n){return n.filter(function(n){return n!==e})}),we(function(n){return n.filter(function(n){return n!==e})}),Pe.current.delete(e)),r}),n},updateNode:function(e,n){var t=!1;return pe(function(r){var i=b([],r,!0);return t=Zl(i,e,n),i}),t}}});var Ge=n.useCallback(function(e,n){n?Pe.current.set(e,n):Pe.current.delete(e)},[]),We=void 0!==l,Ke=void 0!==p,Ze=void 0!==v,Xe=We?l:ge,qe=Ke?p:xe,Je=Ze?v:Ce,Qe=n.useCallback(function(e,n){if(!oe){var t=Xe.includes(e),r=t?Xe.filter(function(n){return n!==e}):b(b([],Xe,!0),[e],!1);if(!t&&R){var i=Yl(ue,e);!i||i.children&&0!==i.children.length||(Ne(function(n){return b(b([],n,!0),[e],!1)}),R(i).finally(function(){Ne(function(n){return n.filter(function(n){return n!==e})})}))}We||me(r),null==c||c(r,{expanded:!t,node:Yl(ue,e),nativeEvent:n})}},[oe,Xe,We,c,ue,R]),en=n.useCallback(function(e,n){if(!oe){var t,r=qe.includes(e);t=N?r?qe.filter(function(n){return n!==e}):b(b([],qe,!0),[e],!1):r?[]:[e],Ke||be(t),null==f||f(t,{selected:!r,node:Yl(ue,e),nativeEvent:n})}},[oe,qe,Ke,N,f,ue]),nn=n.useCallback(function(e,n){if(!oe){var t,r,i=Je.includes(e);if(i){if(t=Je.filter(function(n){return n!==e}),!_)if(null==(r=Yl(ue,e))?void 0:r.children){var o=$l(r.children);t=t.filter(function(e){return!o.includes(e)})}}else if(t=b(b([],Je,!0),[e],!1),!_)if(null==(r=Yl(ue,e))?void 0:r.children){var a=$l(r.children);t=t.concat(a.filter(function(e){return-1===t.indexOf(e)}))}Ze||we(t),null==x||x(t,{checked:!i,node:Yl(ue,e),nativeEvent:n})}},[oe,Je,Ze,_,x,ue]),tn=n.useCallback(function(e,n,t){if(e!==n){var r=Yl(ue,e),i=Yl(ue,n);if(r&&i){var o=function(e,n){if(e.children)for(var t=0,r=e.children;t<r.length;t++){var i=r[t];if(i.key===n)return!0;if(o(i,n))return!0}return!1};if(!o(r,n)){var a=void 0!==i.isLeaf?i.isLeaf:void 0===i.children,s=function(e){return g(g({},e),{children:e.children?e.children.map(s):void 0})};pe(function(i){var o=i.map(s);Kl(o,e);var l=s(r),c="inside"===t&&a?"after":t;if("inside"===c)Wl(o,n,[l]),ge.includes(n)||me(function(e){return b(b([],e,!0),[n],!1)});else{var d=Gl(o,n),u=d?d.children||[]:o,p=u.findIndex(function(e){return e.key===n});if(-1!==p){var f="before"===c?p:p+1;u.splice(f,0,l)}}return o}),null==ce||ce({event:{},node:i,dragNode:r,dragPosition:t}),He(function(e){return e+1})}}}},[ue,ge,ce]),rn=n.useMemo(function(){return T&&Te&&O?Xl(ue,Te,O):ue},[ue,T,Te,O]),on=[Q,A&&"".concat(Q,"-show-line"),ne].filter(Boolean).join(" ");return e.jsxs("div",{ref:ze,className:on,style:re,children:[T?e.jsx("div",{className:"".concat(Q,"-search-wrapper"),children:e.jsx("input",{type:"text",className:"".concat(Q,"-search-input"),placeholder:"Search...",value:Te,onChange:function(e){return Oe(e.target.value)}})}):null,e.jsxs("div",{className:"".concat(Q,"-node-list"),children:[rn.map(function(n){return e.jsx(ql,{node:n,level:0,expanded:Xe.includes(n.key),selected:qe.includes(n.key),checked:Je.includes(n.key),halfChecked:Fl(n,Je),loading:Ee.includes(n.key),isLeaf:void 0!==n.isLeaf?n.isLeaf:void 0===n.children,showIcon:j,showLine:A,showIndent:M,checkable:C,draggable:z,checkStrictly:_,expandedKeys:Xe,selectedKeys:qe,checkedKeys:Je,motionDuration:H,prefixCls:Q,renderNode:V,addable:U,removable:Y,editable:G,actionDisplayMode:K,onAddNode:Ve,onRemoveNode:Be,onEditNode:Ue,editingNodeKey:Ae,editValue:Ie,onEditChange:Fe,onEditConfirm:Ye,onEditCancel:$e,onExpand:Qe,onSelect:en,onCheck:nn,onNodeMount:Ge,onDrop:tn,dragEndCounter:De,tooltip:le},String(n.key))}),rn.length>0?null:e.jsxs("div",{className:"".concat(Q,"-empty"),children:[e.jsx("div",{className:"".concat(Q,"-empty-icon"),children:e.jsx(Bl,{})}),e.jsx("div",{children:"No Data"})]})]})]})});Jl.displayName="Tree";var Ql=Jl,ec=function(n){var t=n.fileList,r=n.onRemove,i=n.showUploadList;if(!i||0===t.length)return null;var o="boolean"==typeof i?i:!1!==i.showRemoveIcon,a=function(n){switch(n){case"uploading":return e.jsx(D,{type:"loading",spin:!0});case"success":return e.jsx(D,{type:"check-circle",style:{color:"var(--success-color, #52c41a)"}});case"error":return e.jsx(D,{type:"close-circle",style:{color:"var(--error-color, #ff4d4f)"}});default:return e.jsx(D,{type:"file"})}},s=function(e){if(0===e)return"0 B";var n=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,n)).toFixed(2))+" "+["B","KB","MB","GB"][n]};return e.jsx("div",{className:"idp-upload__list",children:t.map(function(n){return e.jsxs("div",{className:p.default("idp-upload__list-item",{"idp-upload__list-item--error":"error"===n.status,"idp-upload__list-item--success":"success"===n.status}),children:[e.jsxs("div",{className:"idp-upload__list-item-info",children:[e.jsx("span",{className:"idp-upload__list-item-icon",children:a(n.status)}),e.jsxs("span",{className:"idp-upload__list-item-name",title:n.name,children:[n.name,e.jsxs("span",{style:{color:"var(--text-secondary, #999)",marginLeft:8,fontSize:12},children:["(",s(n.size),")"]})]})]}),o&&e.jsx("span",{className:"idp-upload__list-item-actions",children:e.jsx("button",{className:"idp-upload__list-item-action",onClick:function(){return r(n)},title:"删除",children:e.jsx(D,{type:"trash"})})}),e.jsx("div",{className:p.default("idp-upload__progress-wrapper",{"idp-upload__progress-wrapper--visible":"uploading"===n.status}),children:e.jsx(La,{percent:n.percent||0,size:"small",showInfo:!1})})]},n.uid)})})},nc=function(t){var r=t.disabled,i=t.onFileDrop,o=t.children,a=t.accept,s=t.multiple,l=n.useState(!1),c=l[0],d=l[1],u=n.useRef(null),f=n.useCallback(function(e){e.preventDefault(),e.stopPropagation(),r||d(!0)},[r]),h=n.useCallback(function(e){e.preventDefault(),e.stopPropagation(),d(!1)},[]),g=n.useCallback(function(e){if(e.preventDefault(),e.stopPropagation(),d(!1),!r){var n=e.dataTransfer.files;n&&n.length>0&&i(n)}},[r,i]),m=n.useCallback(function(){if(u.current&&!r){var e=document.createElement("input");e.type="file",a&&(e.accept=a),s&&(e.multiple=!0),e.onchange=function(e){var n=e.target.files;n&&i(n)},e.click()}},[a,s,r,i]);return e.jsx("div",{ref:u,className:p.default("idp-upload__drag",{"idp-upload__drag--over":c,"idp-upload__drag--disabled":r}),onDragOver:f,onDragLeave:h,onDrop:g,onClick:m,children:o||e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"idp-upload__drag-icon",children:e.jsx(D,{type:"upload",style:{fontSize:48}})}),e.jsx("div",{className:"idp-upload__drag-text",children:"点击或拖拽文件到此区域上传"}),e.jsx("div",{className:"idp-upload__drag-hint",children:"支持单次或批量上传"})]})})},tc=function(t){var r=t.action,i=t.defaultFileList,o=void 0===i?[]:i,a=t.fileList,s=t.onChange,l=t.beforeUpload,c=t.onProgress,d=t.onSuccess,u=t.onError,f=t.onRemove,h=t.headers,m=t.name,y=void 0===m?"file":m,C=t.data,w=t.withCredentials,_=void 0!==w&&w,E=t.accept,N=t.multiple,S=void 0!==N&&N,T=t.disabled,O=void 0!==T&&T,L=t.drag,A=void 0!==L&&L,k=t.style,M=t.className,I=t.customRequest,j=t.showUploadList,R=void 0===j||j,H=t.method,P=void 0===H?"POST":H,z=t.children,V=t.maxCount,B=n.useState(o),U=B[0],F=B[1],Y=n.useRef(null),$=void 0!==a,G=$?a:U,W=n.useCallback(function(e){$||F(e),s&&s(e)},[$,s]),K=n.useCallback(function(e,n){var t=G.map(function(t){return t.uid===e?g(g({},t),n):t});W(t)},[G,W]),Z=n.useCallback(function(e){return v(void 0,void 0,void 0,function(){var n,t,i;return x(this,function(o){return r||I?(n=e.raw)?(K(e.uid,{status:"uploading",percent:0}),t="function"==typeof C?C(n):C,i={action:r||"",filename:y,file:n,data:t,headers:h,withCredentials:_,method:P.toUpperCase(),onProgress:function(n){K(e.uid,{percent:n}),c&&c(n,e)},onSuccess:function(n){K(e.uid,{status:"success",response:n,percent:100}),d&&d(n,e)},onError:function(n){K(e.uid,{status:"error",error:n}),u&&u(n,e)}},I?I(i):function(e){var n=e.action,t=e.filename,r=e.file,i=e.data,o=e.headers,a=e.withCredentials,s=e.onProgress,l=e.onSuccess,c=e.onError,d=e.method,u=new XMLHttpRequest;s&&u.upload&&(u.upload.onprogress=function(e){if(e.total>0){var n=Math.round(e.loaded/e.total*100);s(n)}}),u.onerror=function(){c(new Error("Upload failed"))},u.onload=function(){u.status>=200&&u.status<300?l(u.response):c(new Error("Upload failed with status ".concat(u.status)))},u.open(d,n,!0),a&&(u.withCredentials=!0),o&&Object.keys(o).forEach(function(e){u.setRequestHeader(e,o[e])});var p=new FormData;p.append(t,r),i&&Object.keys(i).forEach(function(e){p.append(e,i[e])}),u.send(p)}(i),[2]):[2]:(console.warn("Upload: action or customRequest is required"),[2])})})},[r,I,y,C,h,_,P,c,d,u,K]),X=n.useCallback(function(e){return v(void 0,void 0,void 0,function(){var n,t,i,o,a;return x(this,function(s){switch(s.label){case 0:if(!e||0===e.length)return[2];if(n=Array.from(e),void 0!==V&&G.length+n.length>V)return console.warn("Upload: Maximum file count is ".concat(V)),[2];t=function(e){var t,i,o;return x(this,function(a){switch(a.label){case 0:if(t={uid:"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),name:e.name,size:e.size,type:e.type,status:"ready",percent:0,raw:e},!l)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,l(e,n)];case 2:return!1===(i=a.sent())?[2,"continue"]:(i instanceof File&&(t.raw=i,t.name=i.name,t.size=i.size,t.type=i.type),[3,4]);case 3:return a.sent(),[2,"continue"];case 4:return(r||I)&&(t.status="uploading"),o=b(b([],G,!0),[t],!1),W(o),(r||I)&&setTimeout(function(){return Z(t)},0),[2]}})},i=0,o=n,s.label=1;case 1:return i<o.length?(a=o[i],[5,t(a)]):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},[G,V,l,r,I,Z,W]),q=n.useCallback(function(e){X(e.target.files),Y.current&&(Y.current.value="")},[X]),J=n.useCallback(function(){!O&&Y.current&&Y.current.click()},[O]),Q=n.useCallback(function(e){return v(void 0,void 0,void 0,function(){var n;return x(this,function(t){switch(t.label){case 0:return f?[4,f(e)]:[3,2];case 1:if(!1===t.sent())return[2];t.label=2;case 2:return n=G.filter(function(n){return n.uid!==e.uid}),W(n),[2]}})})},[G,f,W]),ee=n.useCallback(function(e){X(e)},[X]);return e.jsxs("div",{className:p.default("idp-upload",M,{"idp-upload--disabled":O}),style:k,children:[e.jsx("input",{ref:Y,type:"file",className:"idp-upload__input",accept:E,multiple:S,onChange:q}),A?e.jsx(nc,{disabled:O,onFileDrop:ee,accept:E,multiple:S,children:z}):e.jsx("div",{className:"idp-upload__trigger",onClick:J,children:z||e.jsxs("button",{className:"idp-btn idp-btn--primary",disabled:O,children:[e.jsx(D,{type:"upload",style:{marginRight:4}}),"点击上传"]})}),R&&e.jsx(ec,{fileList:G,onRemove:Q,showUploadList:R})]})},rc=function(e,n){return g({display:"flex",flexDirection:"horizontal"===e?"row":"column",alignItems:"stretch",width:"100%",height:"100%",overflow:"hidden",background:"var(--idp-splitter-panel-bg)",borderRadius:"var(--idp-splitter-panel-radius)"},n)},ic=function(e,n,t,r){void 0===t&&(t=0),void 0===r&&(r=2);var i={position:"relative",overflow:"auto",flexShrink:0,alignSelf:"stretch",background:"var(--idp-splitter-panel-bg)"};return"horizontal"===n?(i.width="".concat(e,"px"),i.height="auto",i.minHeight="100%"):(i.width="auto",i.minWidth="100%",i.height="".concat(e,"px")),t<r-1&&(i.boxShadow="horizontal"===n?"var(--idp-splitter-panel-shadow)":"var(--idp-splitter-panel-shadow-vertical)",i.zIndex=r-t),i},oc=function(e,n,t,r){void 0===r&&(r=0);var i={position:"relative",flexShrink:0,background:t?"var(--idp-bg-color-light)":"var(--idp-splitter-bar-bg)",cursor:t?"not-allowed":"horizontal"===e?"col-resize":"row-resize",userSelect:"none",touchAction:"none",zIndex:10+5*r,display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"var(--idp-splitter-shadow-sm)",transition:"all var(--idp-transition-duration) var(--idp-transition-timing-function)"};return void 0!==n&&("horizontal"===e?(i.width="".concat(n,"px"),i.height="100%"):(i.width="100%",i.height="".concat(n,"px"))),t&&(i.opacity="var(--idp-opacity-disabled)"),i},ac=function(e,n,t,r,i){void 0===i&&(i=!1);var o={borderRadius:"var(--idp-border-radius-sm)",transition:"all var(--idp-transition-duration) var(--idp-transition-timing-function)"};return"horizontal"===e?(o.width=n?"2px":"var(--idp-splitter-line-width)",o.height=n?"32px":"var(--idp-splitter-line-length)",o.minHeight="var(--idp-splitter-line-min-length)"):(o.width=n?"32px":"var(--idp-splitter-line-length)",o.minWidth="var(--idp-splitter-line-min-length)",o.height=n?"2px":"var(--idp-splitter-line-width)"),i&&r&&t?(o.backgroundColor=t,o.boxShadow="var(--idp-splitter-shadow-active)"):r&&t?(o.backgroundColor=t,o.boxShadow="var(--idp-splitter-shadow-md)"):n?o.backgroundColor=n:o.background="var(--idp-splitter-line-bg)",o},sc=function(e,n,t){var r;if(void 0===e)return new Array(n).fill(t);if(Array.isArray(e)){for(var i=b([],e,!0);i.length<n;)i.push(null!==(r=i[i.length-1])&&void 0!==r?r:t);return i.slice(0,n)}return new Array(n).fill(e)},lc=function(t){var r=t.layout,i=void 0===r?"horizontal":r,o=t.panels,a=t.defaultSize,s=void 0===a?"50%":a,l=t.minSize,c=void 0===l?50:l,d=t.maxSize,p=void 0===d?1/0:d,f=t.splitterSize,h=t.lineColor,g=t.lineHoverColor,m=t.disabled,v=void 0!==m&&m,x=t.onResize,y=t.onResizeEnd,C=t.className,w=void 0===C?"":C,_=t.style,E=t.left,N=t.right,S=t.top,T=t.bottom,O=t.children,L=n.useRef(null),A=n.useState([]),k=A[0],M=A[1],I=n.useState(!1),j=I[0],R=I[1],D=n.useState(-1),H=D[0],P=D[1],z=n.useRef({isDragging:!1,startPosition:0,startSizes:[],containerSize:0,splitterIndex:-1}),V=n.useMemo(function(){if(o&&o.length>0)return o.map(function(e){return e.content});if("vertical"===i){if(S&&T)return[S,T]}else if(E&&N)return[E,N];return O&&Array.isArray(O)?O:[]},[o,i,E,N,S,T,O]),B=V.length,U=n.useCallback(function(e){return o&&o[e]?o[e]:{}},[o]),F=n.useCallback(function(){if(!L.current)return 0;var e=L.current.getBoundingClientRect();return"horizontal"===i?e.width:e.height},[i]),Y=n.useCallback(function(){if(void 0!==f)return f;var e=getComputedStyle(document.documentElement).getPropertyValue("--idp-splitter-bar-size").trim();return parseInt(e,10)||10},[f]);n.useEffect(function(){var e=F();if(e>0&&B>0){var n=Y()*(B-1),t=Math.max(0,e-n),r=function(e,n,t){var r;if(void 0===t&&(t="50%"),void 0===e){var i="".concat(100/n,"%");return new Array(n).fill(i)}if(Array.isArray(e)){for(var o=b([],e,!0);o.length<n;)o.push(null!==(r=o[o.length-1])&&void 0!==r?r:t);return o.slice(0,n)}return new Array(n).fill(e)}(s,B,"".concat(100/B,"%")),i=sc(c,B,50),a=sc(p,B,1/0),l=o?o.map(function(e){var n;return null!==(n=e.defaultSize)&&void 0!==n?n:r[o.indexOf(e)]}):r,d=o?o.map(function(e){var n;return null!==(n=e.minSize)&&void 0!==n?n:i[o.indexOf(e)]}):i,u=o?o.map(function(e){var n;return null!==(n=e.maxSize)&&void 0!==n?n:a[o.indexOf(e)]}):a,f=l.map(function(e){return function(e,n){return"number"==typeof e?e:"string"==typeof e&&e.endsWith("%")?n*(parseFloat(e)/100):parseFloat(e)||n/2}(e,t)}),h=f.reduce(function(e,n){return e+n},0);if(h!==t&&t>0){var g=t/h;f=f.map(function(e){return e*g})}f=f.map(function(e,n){return Math.max(d[n],Math.min(u[n],e))}),M(f)}},[B]),n.useEffect(function(){var e=function(){var e=F();if(e>0&&k.length>0){var n=Y()*(B-1),t=Math.max(0,e-n),r=k.reduce(function(e,n){return e+n},0);if(r>0){var i=t/r;M(function(e){return e.map(function(e){return e*i})})}}};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[k,B,F,Y]);var $=n.useCallback(function(e){return function(n){if(!v){var t=U(e),r=U(e+1);if(!t.disabled&&!r.disabled){n.preventDefault();var o="touches"in n?n.touches[0].clientX:n.clientX,a="touches"in n?n.touches[0].clientY:n.clientY,s="horizontal"===i?o:a,l=F();z.current={isDragging:!0,startPosition:s,startSizes:b([],k,!0),containerSize:l,splitterIndex:e},R(!0),P(e)}}}},[v,i,k,F,U]),G=n.useCallback(function(e){if(z.current.isDragging&&!v){var n="touches"in e?e.touches[0].clientX:e.clientX,t="touches"in e?e.touches[0].clientY:e.clientY,r=("horizontal"===i?n:t)-z.current.startPosition,a=z.current.splitterIndex,s=z.current.startSizes,l=sc(c,B,50),d=sc(p,B,1/0),u=o?o.map(function(e,n){var t;return null!==(t=e.minSize)&&void 0!==t?t:l[n]}):l,f=o?o.map(function(e,n){var t;return null!==(t=e.maxSize)&&void 0!==t?t:d[n]}):d,h=u[a],g=f[a],m=u[a+1],y=f[a+1],C=s[a],w=s[a+1],_=C+r,E=w-r;_<h?(_=h,E=C+w-h):_>g&&(_=g,E=C+w-g),E<m?(E=m,_=C+w-m):E>y&&(E=y,_=C+w-y);var N=b([],k,!0);N[a]=_,N[a+1]=E,M(N),null==x||x(N,a)}},[v,i,k,B,c,p,o,x]),W=n.useCallback(function(){z.current.isDragging&&(z.current.isDragging=!1,R(!1),P(-1),null==y||y(k))},[k,y]);if(n.useEffect(function(){if(j)return document.addEventListener("mousemove",G),document.addEventListener("mouseup",W),document.addEventListener("touchmove",G,{passive:!1}),document.addEventListener("touchend",W),function(){document.removeEventListener("mousemove",G),document.removeEventListener("mouseup",W),document.removeEventListener("touchmove",G),document.removeEventListener("touchend",W)}},[j,G,W]),B<2)return console.warn("Splitter requires at least 2 panels"),null;var K=["idp-splitter","idp-splitter--".concat(i),j?"idp-splitter--dragging":"",w].filter(Boolean).join(" ");return e.jsx("div",{ref:L,className:K,style:rc(i,_),children:V.map(function(n,t){var r=k[t]||0,o=t===B-1;return e.jsxs(u.default.Fragment,{children:[e.jsx("div",{className:"idp-splitter__panel",style:ic(r,i,t,B),children:n}),!o&&e.jsx("div",{className:["idp-splitter__bar",H===t?"idp-splitter__bar--dragging":"",v||U(t).disabled||U(t+1).disabled?"idp-splitter__bar--disabled":""].filter(Boolean).join(" "),style:oc(i,f,v,t),onMouseDown:$(t),onTouchStart:$(t),children:e.jsx("div",{className:"idp-splitter__line",style:ac(i,h,g,j,H===t)})})]},t)})})};exports.Anchor=It,exports.Breadcrumb=jt,exports.Button=se,exports.Carousel=ue,exports.Cascader=fe,exports.Checkbox=Na,exports.Col=va,exports.ColorPicker=ze,exports.CopyToClipboard=Ue,exports.DatePicker=Dl,exports.Divider=Ye,exports.Drawer=wa,exports.Dropdown=Jr,exports.Empty=pe,exports.Flex=$e,exports.Form=ua,exports.Grid=Ca,exports.I18nProvider=qr,exports.Icon=D,exports.Input=Je,exports.Label=xo,exports.Layout=Xo,exports.Marquee=pn,exports.Masonry=Lt,exports.Menu=Ti,exports.Message=fn,exports.MessageProvider=function(t){var r=t.children,i=n.useState([]),o=i[0],a=i[1],s=n.useState(0),l=s[0],c=s[1],d=n.useCallback(function(e,n,t){void 0===t&&(t=3e3);var r=l;c(function(e){return e+1}),a(function(i){return b(b([],i,!0),[{id:r,type:e,content:n,duration:t}],!1)});var i=setTimeout(function(){o(r)},t),o=function(e){a(function(n){return n.filter(function(n){return n.id!==e})})};return{close:function(){clearTimeout(i),o(r)}}},[l]),u={success:function(e,n){return d("success",e,n)},warning:function(e,n){return d("warning",e,n)},error:function(e,n){return d("error",e,n)},info:function(e,n){return d("info",e,n)},close:function(){return a([])}};return e.jsxs(bn.Provider,{value:{message:u},children:[r,o.map(function(n){return e.jsx(fn,{type:n.type,content:n.content,duration:n.duration,onClose:function(){return a(function(e){return e.filter(function(e){return e.id!==n.id})})}},n.id)})]})},exports.Modal=yn,exports.Notice=Tn,exports.Notification=Ln,exports.Pagination=wt,exports.Popconfirm=Oa,exports.Progress=La,exports.Radio=Jn,exports.Rate=Oi,exports.Row=ba,exports.Select=yt,exports.Slider=Li,exports.Space=At,exports.Spin=de,exports.Splitter=lc,exports.Steps=Ii,exports.Switch=Bi,exports.Table=Nt,exports.Tabs=Fi,exports.Tag=Ta,exports.Textarea=Ze,exports.TimePicker=ja,exports.Tooltip=_t,exports.Top=Tt,exports.Transfer=mo,exports.Tree=Ql,exports.TreeSelect=Pe,exports.Typography=Ot,exports.Upload=tc,exports.i18n=Er,exports.load18n=function(e){var n={};return Object.keys(e).forEach(function(t){var r=e[t];if(r&&"object"==typeof r){var i=void 0,o=r;if(r.language)i=r.language,r.translation&&"object"==typeof r.translation&&(o=r.translation);else if(r.locale)i=r.locale,r.translation&&"object"==typeof r.translation&&(o=r.translation);else if(1===Object.keys(r).length){var a=Object.keys(r)[0];/^[a-z]{2}(-[A-Za-z]{2})?$/.test(a)&&(i=a,o=r[a])}else if(r.translation&&"object"==typeof r.translation&&1===Object.keys(r.translation).length){a=Object.keys(r.translation)[0];/^[a-z]{2}(-[A-Za-z]{2})?$/.test(a)&&(i=a,o=r.translation[a])}if(!i){(i={JP:"ja-JP",HK:"zh-HK",US:"en-US",CN:"zh-CN",EN:"en-US",ZH:"zh-CN"}[t]||t)!==t||/^[a-z]{2}(-[A-Za-z]{2})?$/.test(t)||console.warn('Using key "'.concat(t,'" as language code. For better results, ')+'please use explicit language codes like "ja-JP" or "zh-HK", or include language information in your JSON files.')}if(!i||"string"!=typeof i)return void console.warn("Invalid language code for resource ".concat(t));n[i]||(n[i]={}),o.translation&&"object"==typeof o.translation?n[i].translation=g(g({},n[i].translation),o.translation):n[i].translation=g(g({},n[i].translation),o)}}),n},exports.message=xn,exports.useCopy=Fe,exports.useI18n=function(){return Wr()},exports.useMessage=function(){var e=n.useContext(bn);return(null==e?void 0:e.message)?e.message:xn};